/* ============================================================
   PORTFOLIO — ANNE-CÉCILE LE DAIN
   style.css — Styles partagés toutes pages
   ============================================================ */

/* --- IMPORT POLICES --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Caveat:wght@400;500&display=swap');

/* --- VARIABLES --- */
:root {
  --fond: #272030;
  --fond-clair: #312842;
  --fond-card: #2e2540;
  --rose: #c79a99;
  --bleu: #e3ebf2;
  --blanc: #f5f0ee;
  --texte: #d4ccd8;
  --texte-secondaire: #9b90a5;
  --rayon: 12px;
  --rayon-card: 16px;
  --transition: 0.3s ease;
  --ombre: 0 4px 24px rgba(0,0,0,0.3);
  --ombre-hover: 0 8px 40px rgba(0,0,0,0.5);
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--fond);
  color: var(--texte);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--rose);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--bleu);
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--blanc);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 500; }

p {
  color: var(--texte);
  margin-bottom: 1.2rem;
}

.caveat {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--rose);
  font-weight: 400;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-secondaire);
}

/* --- LAYOUT --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
  display: block;
}

/* --- NAVIGATION --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

nav.scrolled {
  background: rgba(39, 32, 48, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blanc);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--rose);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--texte);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--blanc);
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blanc);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- BOUTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--rose);
  color: var(--fond);
}

.btn-primary:hover {
  background: var(--bleu);
  color: var(--fond);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 154, 153, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blanc);
  border: 1.5px solid rgba(245, 240, 238, 0.25);
}

.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-2px);
}

/* --- TAGS DE STATUT --- */
.tag-statut {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--blanc);
  color: var(--fond);
  border: 1px solid var(--blanc);
}

.tag-realise,
.tag-test,
.tag-en-cours,
.tag-competences {
  background: var(--blanc);
  color: var(--fond);
  border: 1px solid var(--blanc);
}

.projet-card .tag-statut {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
}

/* --- SÉPARATEUR --- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
  margin: 1.5rem 0;
}

/* --- STACK PILLS --- */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(227, 235, 242, 0.08);
  border: 1px solid rgba(227, 235, 242, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--bleu);
  font-weight: 400;
}

/* --- FOOTER --- */
footer {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--texte-secondaire);
  margin: 0;
}

/* --- LIEN RETOUR (pages projet) --- */
.retour {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--texte-secondaire);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color var(--transition);
  margin-bottom: 3rem;
  margin-top: 7rem;
}

.retour:hover {
  color: var(--rose);
}

.retour svg {
  width: 16px;
  height: 16px;
}

/* --- VISUELS PROJETS --- */
.visuel-projet {
  border-radius: var(--rayon-card);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 2.5rem 0;
  box-shadow: var(--ombre);
}

.visuel-projet img {
  width: 100%;
  height: auto;
}

.visuel-projet figcaption {
  padding: 0.75rem 1.25rem;
  background: var(--fond-card);
  border-top: 1px solid rgba(255,255,255,0.07);
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--blanc);
  text-align: center;
  letter-spacing: 0.01em;
}

.visuel-projet--petit {
  max-width: 33%;
  margin-left: auto;
  margin-right: auto;
}

.visuel-projet--moitie {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

/* --- PLACEHOLDER IMAGE --- */
.img-placeholder {
  width: 100%;
  min-height: 200px;
  background: var(--fond-card);
  border-radius: var(--rayon);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 2px dashed rgba(199, 154, 153, 0.3);
  color: var(--texte-secondaire);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

.img-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

/* --- SECTION HERO --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(199, 154, 153, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(227, 235, 242, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text h1 .prenom {
  display: block;
  color: var(--texte-secondaire);
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.hero-accroche {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--texte);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-sous-accroche {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: var(--rose);
  margin-bottom: 2.5rem;
  display: block;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  max-width: 420px;
  height: 520px;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  box-shadow: var(--ombre);
  filter: saturate(0.9);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  border: 1px solid rgba(199, 154, 153, 0.2);
  pointer-events: none;
}

/* --- SECTION À PROPOS --- */
#a-propos {
  background: var(--fond-clair);
}

.apropos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.apropos-photo {
  position: relative;
}

.apropos-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--rayon-card);
  filter: saturate(0.85);
}

.apropos-annotation {
  position: absolute;
  bottom: -1rem;
  right: -1.5rem;
  background: var(--fond);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(199, 154, 153, 0.2);
  box-shadow: var(--ombre);
}

.apropos-texte p:last-child {
  margin-bottom: 0;
}

/* --- SECTION COMPÉTENCES --- */
#competences {
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.skill-card {
  background: var(--fond-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rayon-card);
  padding: 1.75rem;
  transition: all var(--transition);
}

.skill-card:hover {
  border-color: rgba(199, 154, 153, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--ombre-hover);
}

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.skill-icone {
  width: 32px;
  height: 32px;
  color: var(--rose);
  margin-bottom: 0.75rem;
  display: block;
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--blanc);
}

.skill-card p {
  font-size: 0.88rem;
  color: var(--texte-secondaire);
  margin: 0;
  line-height: 1.5;
}

/* --- SECTION PROJETS --- */
#projets {
  background: var(--fond-clair);
}

.projets-filtres {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.filtre-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--texte-secondaire);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filtre-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.filtre-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--fond);
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.projet-card {
  background: var(--fond-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rayon-card);
  padding: 2rem;
  padding-bottom: 3.5rem;
  text-decoration: none;
  display: block;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.projet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rose);
  opacity: 0;
  transition: opacity var(--transition);
}

.projet-card:hover {
  border-color: rgba(199, 154, 153, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--ombre-hover);
  color: inherit;
}

.projet-card:hover::before {
  opacity: 1;
}

.projet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.projet-emoji {
  font-size: 2rem;
}

.projet-icone {
  width: 28px;
  height: 28px;
  color: var(--rose);
  flex-shrink: 0;
}

.projet-fleche {
  color: var(--texte-secondaire);
  font-size: 1.2rem;
  transition: transform var(--transition), color var(--transition);
}

.projet-card:hover .projet-fleche {
  transform: translate(3px, -3px);
  color: var(--rose);
}

.projet-card h3 {
  font-size: 1.15rem;
  color: var(--blanc);
  margin-bottom: 0.5rem;
}

.projet-card p {
  font-size: 0.9rem;
  color: var(--texte-secondaire);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* --- SECTION EN CE MOMENT --- */
#en-ce-moment {
  position: relative;
}

.moment-inner {
  max-width: 680px;
}

.moment-inner h2 {
  margin-bottom: 1.5rem;
}

.moment-inner p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- SECTION CONTACT --- */
#contact {
  background: var(--fond-clair);
}

.contact-inner {
  max-width: 600px;
}

.contact-liens {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.contact-lien {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--fond-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rayon);
  color: var(--texte);
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.contact-lien:hover {
  border-color: rgba(199, 154, 153, 0.35);
  color: var(--blanc);
  transform: translateX(4px);
}

.contact-lien svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--rose);
}

.contact-lien span {
  flex: 1;
}

.contact-lien .contact-arrow {
  color: var(--texte-secondaire);
  font-size: 0.9rem;
}

/* ===================================
   PAGES PROJET — Styles spécifiques
   =================================== */

.projet-page {
  padding-top: 0;
}

.projet-hero {
  padding: 0 0 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4rem;
}

.projet-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.projet-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1.25rem;
}

.projet-hero .intro {
  font-size: 1.15rem;
  color: var(--texte);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 0;
}

.etude-section {
  margin-bottom: 3.5rem;
}

.etude-section h2 {
  font-size: 1.3rem;
  color: var(--rose);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.etude-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(199, 154, 153, 0.15);
}

.etude-section p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--texte);
}

.chiffres-cles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.chiffre-item {
  background: var(--fond-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rayon);
  padding: 1.25rem;
  text-align: center;
}

.chiffre-valeur {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--rose);
  display: block;
  margin-bottom: 0.25rem;
}

.chiffre-label {
  font-size: 0.82rem;
  color: var(--texte-secondaire);
  line-height: 1.4;
}

.stack-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stack-section h2 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--texte-secondaire);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.retour-bas {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* --- SECTION AVIS --- */
#avis {
  background: var(--fond-clair);
}

.avis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* --- CARROUSEL TÉMOIGNAGES --- */
.carrousel-wrap {
  margin-top: 3rem;
  position: relative;
}

.carrousel-track {
  position: relative;
  min-height: 260px;
}

.carrousel-slide {
  display: none !important;
  animation: fadeIn 0.4s ease;
}

.carrousel-slide.active {
  display: flex !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.carrousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carrousel-btn {
  background: var(--fond-card);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--texte);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrousel-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.carrousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carrousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(199, 154, 153, 0.25);
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.carrousel-dot.active {
  background: var(--rose);
}

.avis-card {
  background: var(--fond-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rayon-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition);
}

.avis-card:hover {
  border-color: rgba(199, 154, 153, 0.25);
  box-shadow: var(--ombre-hover);
}

.avis-card-projet {
  margin-top: 0;
  margin-bottom: 3.5rem;
}

.avis-etoiles {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.avis-card blockquote {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--texte);
  font-style: italic;
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
}

.avis-auteur {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.avis-avatar {
  display: none;
}

.avis-auteur strong {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--rose);
}

.avis-auteur span {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  font-weight: 400;
  color: var(--texte-secondaire);
}

/* --- LIGHTBOX --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 15, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.visible {
  opacity: 1;
}

/* Conteneur qui reçoit transform (zoom + pan) */
.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.15s ease;
  will-change: transform;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--rayon-card);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  user-select: none;
  pointer-events: none; /* le pan se gère sur l'overlay */
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.visible img {
  opacity: 1;
}

/* Barre d'outils en bas */
.lightbox-toolbar {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 24, 40, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 99px;
  padding: 0.4rem 0.75rem;
  backdrop-filter: blur(8px);
}

.lightbox-toolbar button {
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1;
}

.lightbox-toolbar button:hover {
  background: rgba(199, 154, 153, 0.2);
}

.lightbox-zoom-level {
  font-size: 0.78rem;
  color: var(--texte-secondaire);
  min-width: 3rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Bouton fermer */
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--blanc);
  font-size: 1.1rem;
  transition: background var(--transition);
  line-height: 1;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(199, 154, 153, 0.3);
}

/* Curseur selon état */
.lightbox-overlay { cursor: grab; }
.lightbox-overlay.dragging { cursor: grabbing; }
.lightbox-overlay.zoom-fit { cursor: default; }

/* Curseur zoom sur les images zoomables */
.visuel-projet img {
  cursor: zoom-in;
  transition: opacity var(--transition);
}

.visuel-projet img:hover {
  opacity: 0.9;
}

/* --- MAINTENANCE PAGE --- */
.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.maintenance-inner {
  max-width: 480px;
}

.maintenance-inner h1 {
  font-size: 2rem;
  margin: 1.5rem 0 1rem;
}

.maintenance-inner p {
  color: var(--texte-secondaire);
  margin-bottom: 2rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-accroche {
    margin: 0 auto 1.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    max-width: 320px;
    height: 380px;
  }

  .apropos-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .apropos-annotation {
    position: static;
    margin-top: 1rem;
    display: inline-block;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .avis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .projets-grid {
    grid-template-columns: 1fr;
  }
  .projets-filtres {
    gap: 0.4rem;
  }
  .filtre-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(39, 32, 48, 0.98);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .chiffres-cles {
    grid-template-columns: repeat(2, 1fr);
  }
}
