/* =========================================================
   ÉCOLE NATIONALE DE CUISINE (ENC) — feuille de style
   ---------------------------------------------------------
   Pour changer les couleurs ou les polices de tout le site,
   modifiez uniquement les variables ci-dessous (:root).
   ========================================================= */

:root {
  /* Couleurs de la marque (reprises du logo et des affiches) */
  --rose: #d60070;          /* magenta ENC */
  --rose-fonce: #a8005a;
  --rose-clair: #ffe3f0;
  --bleu: #1d4596;          /* bleu des affiches */
  --bleu-fonce: #142f68;
  --bleu-clair: #e6edfb;
  --encre: #1b1a24;         /* texte principal */
  --gris: #5d5a68;          /* texte secondaire */
  --creme: #fff8f1;         /* fond général */
  --creme-2: #f8ede2;
  --blanc: #ffffff;
  --ligne: #eadfd3;

  /* Polices */
  --titre: "Playfair Display", Georgia, serif;
  --texte: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Divers */
  --rayon: 18px;
  --rayon-s: 10px;
  --ombre: 0 18px 40px -18px rgba(27, 26, 36, .28);
  --ombre-s: 0 6px 18px -8px rgba(27, 26, 36, .25);
  --largeur: 1200px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--titre); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--blanc { background: var(--blanc); }
.section--creme2 { background: var(--creme-2); }
.section--bleu { background: var(--bleu-fonce); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--bleu .eyebrow { color: #ff8cc6; }

.titre-section { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 20ch; text-wrap: balance; }
.titre-section em { font-style: italic; color: var(--rose); }
.section--bleu .titre-section em { color: #ff8cc6; }
.intro { font-size: 1.08rem; color: var(--gris); max-width: 60ch; }
.section--bleu .intro { color: #d5dcf0; }
.entete-section { margin-bottom: 48px; }
.entete-section--centre { text-align: center; }
.entete-section--centre .titre-section, .entete-section--centre .intro { margin-inline: auto; }
.entete-section--centre .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font: 600 .98rem/1 var(--texte); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--rose { background: var(--rose); color: #fff; box-shadow: 0 10px 24px -10px rgba(214, 0, 112, .7); }
.btn--rose:hover { background: var(--rose-fonce); }
.btn--bleu { background: var(--bleu); color: #fff; }
.btn--bleu:hover { background: var(--bleu-fonce); }
.btn--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn--contour:hover { background: var(--encre); color: #fff; }
.btn--blanc { background: #fff; color: var(--rose); }
.btn--blanc:hover { background: var(--creme); }
.btn--contour-blanc { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--contour-blanc:hover { background: #fff; color: var(--encre); }
.btn--whatsapp { background: #1fae5b; color: #fff; }
.btn--whatsapp:hover { background: #178a48; }
.btn--plein { width: 100%; }

/* ---------- Barre d'info ---------- */
.topbar { background: var(--bleu-fonce); color: #e8ecf8; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__pastille { display: inline-flex; align-items: center; gap: 8px; }
.topbar__pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 241, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-color: var(--ligne); box-shadow: 0 8px 24px -18px rgba(0,0,0,.35); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 50px; width: auto; }
.logo__texte { font: 600 .78rem/1.25 var(--texte); color: var(--bleu-fonce); letter-spacing: .02em; border-left: 1px solid var(--ligne); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 10px 14px; border-radius: 999px; color: var(--encre);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--rose-clair); color: var(--rose-fonce); }
.nav a[aria-current="page"] { color: var(--rose); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 12px 22px; color: #fff; }
.nav .btn:hover { background: var(--rose-fonce); color: #fff; }
.nav .btn[aria-current="page"] { color: #fff; background: var(--rose-fonce); }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--blanc); box-shadow: var(--ombre-s); cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--encre); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-ouvert .burger span { background: transparent; }
.menu-ouvert .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-ouvert .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (accueil) ---------- */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -140px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,0,112,.13), transparent 65%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; margin-bottom: 22px; text-wrap: balance; }
.hero h1 em { color: var(--rose); font-style: italic; }
.hero h1 .souligne { position: relative; white-space: nowrap; }
.hero h1 .souligne::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em; background: var(--rose-clair); z-index: -1; border-radius: 4px; }
.hero__texte p { font-size: 1.12rem; color: var(--gris); max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 38px; }
.hero__faits { display: flex; flex-wrap: wrap; gap: 14px; }
.fait { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 18px; min-width: 132px; }
.fait strong { display: block; font: 700 1.25rem/1.2 var(--titre); color: var(--bleu-fonce); }
.fait span { font-size: .82rem; color: var(--gris); }

.hero__visuel { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 560px; }
.hero__visuel figure { margin: 0; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--creme-2); }
.hero__visuel img { width: 100%; height: 100%; object-fit: cover; }
.hero__visuel .grand { grid-row: 1 / 3; }
.badge-rond {
  position: absolute; left: -34px; bottom: 34px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--rose); color: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: 0 16px 30px -12px rgba(214,0,112,.8); border: 6px solid var(--creme);
  transform: rotate(-8deg);
}
.badge-rond strong { font: 700 2rem/1 var(--titre); }
.badge-rond span { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.25; margin-top: 4px; }
.etiquette-flottante {
  position: absolute; right: 18px; top: 18px; background: #fff; border-radius: 999px; padding: 8px 14px 8px 8px;
  display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; box-shadow: var(--ombre-s);
}
.etiquette-flottante i { width: 30px; height: 30px; border-radius: 50%; background: var(--bleu); display: grid; place-content: center; color: #fff; font-style: normal; }

/* ---------- Bandeau défilant ---------- */
.bandeau { background: var(--rose); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: -10px -20px 0; }
.bandeau__piste { display: flex; gap: 0; width: max-content; animation: defile 38s linear infinite; }
.bandeau__piste span { font: italic 600 1.35rem/1 var(--titre); padding: 0 26px; display: inline-flex; align-items: center; gap: 52px; white-space: nowrap; }
.bandeau__piste span::after { content: "✦"; font-style: normal; font-size: 1rem; opacity: .8; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Atouts ---------- */
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.atout { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 30px 26px; position: relative; transition: transform .25s, box-shadow .25s; }
.atout:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.atout__icone { width: 56px; height: 56px; border-radius: 16px; background: var(--rose-clair); color: var(--rose); display: grid; place-content: center; margin-bottom: 18px; }
.atout:nth-child(even) .atout__icone { background: var(--bleu-clair); color: var(--bleu); }
.atout__icone svg { width: 28px; height: 28px; }
.atout h3 { font-size: 1.3rem; }
.atout p { color: var(--gris); font-size: .95rem; margin: 0; }

/* ---------- Filières (cartes) ---------- */
.filieres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.carte-filiere {
  position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--blanc);
  box-shadow: var(--ombre-s); text-decoration: none; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.carte-filiere:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte-filiere__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.carte-filiere__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carte-filiere:hover .carte-filiere__img img { transform: scale(1.06); }
.carte-filiere__num { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,.92); color: var(--rose); font: 700 .9rem/1 var(--titre); padding: 8px 12px; border-radius: 999px; }
.carte-filiere__corps { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.carte-filiere h3 { font-size: 1.45rem; margin-bottom: 8px; }
.carte-filiere p { color: var(--gris); font-size: .95rem; flex: 1; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--rose); font-size: .95rem; }
.lien-fleche::after { content: "→"; transition: transform .2s; }
.carte-filiere:hover .lien-fleche::after, .lien-fleche:hover::after { transform: translateX(4px); }

/* ---------- Parcours / diplômes ---------- */
.parcours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: etape; }
.parcours::before { content: ""; position: absolute; left: 16%; right: 16%; top: 44px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 10px, transparent 10px 20px); }
.etape-parcours { text-align: center; padding: 0 22px; position: relative; }
.etape-parcours__duree {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-content: center;
  background: #fff; color: var(--bleu-fonce); font: 700 1.6rem/1 var(--titre); position: relative; z-index: 1;
  box-shadow: 0 0 0 8px rgba(255,255,255,.12);
}
.etape-parcours__duree small { display: block; font: 600 .7rem/1 var(--texte); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; color: var(--rose); }
.etape-parcours h3 { font-size: 1.9rem; color: #fff; margin-bottom: 4px; }
.etape-parcours h3 + span { display: block; font-size: .9rem; color: #ff8cc6; font-weight: 600; margin-bottom: 12px; }
.etape-parcours p { color: #d5dcf0; font-size: .95rem; max-width: 30ch; margin-inline: auto; }
.note { font-size: .82rem; color: var(--gris); margin-top: 28px; }
.section--bleu .note { color: #aeb9d9; text-align: center; }

/* ---------- Réalisations (mosaïque) ---------- */
.mosaique { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 16px; }
.mosaique a { border-radius: var(--rayon-s); overflow: hidden; position: relative; display: block; background: var(--creme-2); }
.mosaique img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaique a:hover img { transform: scale(1.06); }
.mosaique a::after { content: attr(data-legende); position: absolute; left: 12px; bottom: 12px; right: 12px; color: #fff; font-size: .85rem; font-weight: 500; opacity: 0; transform: translateY(6px); transition: .3s; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.mosaique a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.55)); opacity: 0; transition: .3s; z-index: 1; }
.mosaique a:hover::after, .mosaique a:hover::before { opacity: 1; transform: none; }
.mosaique a::after { z-index: 2; }
.mosaique .haut { grid-row: span 2; }
.mosaique .large { grid-column: span 2; }
.centre-cta { text-align: center; margin-top: 40px; }

/* ---------- Bloc image + texte ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.duo--inverse .duo__media { order: 2; }
.duo__media { position: relative; }
.duo__media img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.duo__media .vignette { position: absolute; right: -24px; bottom: -24px; width: 42%; aspect-ratio: 1; border-radius: var(--rayon); border: 6px solid var(--creme); box-shadow: var(--ombre); object-fit: cover; }
.section--blanc .duo__media .vignette { border-color: #fff; }
.liste-coches { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.liste-coches li { display: flex; gap: 12px; align-items: flex-start; }
.liste-coches li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rose-clair); color: var(--rose); display: grid; place-content: center; font-weight: 700; font-size: .8rem; margin-top: 1px; }

/* ---------- Sites ---------- */
.sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.site-carte { background: var(--blanc); border-radius: var(--rayon); padding: 26px 24px; border: 1px solid var(--ligne); position: relative; overflow: hidden; }
.site-carte::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--bleu-clair); }
.site-carte svg { width: 30px; height: 30px; color: var(--rose); margin-bottom: 14px; position: relative; z-index: 1; }
.site-carte h3 { font-size: 1.4rem; margin-bottom: 4px; }
.site-carte p { margin: 0; color: var(--gris); font-size: .9rem; }
.site-carte--siege { background: var(--rose); border-color: var(--rose); color: #fff; }
.site-carte--siege::after { background: rgba(255,255,255,.14); }
.site-carte--siege svg { color: #fff; }
.site-carte--siege p { color: #ffe0ef; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 14px; padding: 0 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--ombre-s); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--rose-clair); color: var(--rose); display: grid; place-content: center; font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--gris); padding-bottom: 20px; margin: 0; }

/* ---------- Appel à l'action ---------- */
.cta-final { background: var(--rose); color: #fff; border-radius: 28px; padding: 64px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); right: -110px; top: -150px; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-final p { color: #ffe0ef; font-size: 1.05rem; margin: 0; }
.cta-final__btns { display: flex; flex-direction: column; gap: 14px; position: relative; }

/* ---------- En-tête des pages internes ---------- */
.page-hero { position: relative; padding: 80px 0 72px; background: var(--bleu-fonce); color: #fff; overflow: hidden; }
.page-hero__fond { position: absolute; inset: 0; }
.page-hero__fond img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero__fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,47,104,.95) 30%, rgba(20,47,104,.55)); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 16ch; }
.page-hero h1 em { color: #ff8cc6; }
.page-hero p { color: #d5dcf0; max-width: 58ch; font-size: 1.08rem; margin: 0; }
.fil-ariane { font-size: .85rem; color: #aeb9d9; margin-bottom: 18px; }
.fil-ariane a { text-decoration: none; }
.fil-ariane a:hover { color: #fff; }

/* ---------- Page Formations ---------- */
.sommaire { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sommaire a { text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); font-weight: 500; font-size: .92rem; transition: .2s; }
.sommaire a:hover { border-color: var(--rose); color: var(--rose); }
.formation { scroll-margin-top: calc(var(--header-h) + 20px); }
.formation + .formation { margin-top: 110px; }
.formation__tag { display: inline-block; font: 700 .9rem/1 var(--titre); color: var(--rose); background: var(--rose-clair); padding: 8px 14px; border-radius: 999px; margin-bottom: 16px; }
.formation h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
.colonnes-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0 28px; }
.colonnes-2 h4 { font-family: var(--texte); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bleu); margin-bottom: 10px; }
.colonnes-2 ul { margin: 0; padding-left: 1.1em; color: var(--gris); font-size: .95rem; }
.colonnes-2 li { margin-bottom: 6px; }
.colonnes-2 li::marker { color: var(--rose); }

.tableau-diplomes { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-s); }
.tableau-diplomes th, .tableau-diplomes td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--ligne); }
.tableau-diplomes th { background: var(--bleu-fonce); color: #fff; font-weight: 600; font-size: .9rem; }
.tableau-diplomes tr:last-child td { border-bottom: 0; }
.tableau-diplomes td:first-child { font: 700 1.2rem/1.2 var(--titre); color: var(--rose); white-space: nowrap; }
.tableau-scroll { overflow-x: auto; }

/* ---------- Galerie ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filtre { border: 1px solid var(--ligne); background: var(--blanc); padding: 10px 20px; border-radius: 999px; font: 500 .95rem/1 var(--texte); cursor: pointer; transition: .2s; color: var(--encre); }
.filtre:hover { border-color: var(--rose); color: var(--rose); }
.filtre.actif { background: var(--rose); border-color: var(--rose); color: #fff; }
.galerie { columns: 3 280px; column-gap: 18px; }
.galerie__item { break-inside: avoid; margin: 0 0 18px; border-radius: var(--rayon-s); overflow: hidden; position: relative; cursor: zoom-in; background: var(--creme-2); display: block; width: 100%; padding: 0; border: 0; }
.galerie__item img { width: 100%; transition: transform .5s; }
.galerie__item:hover img { transform: scale(1.04); }
.galerie__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-size: .88rem; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: .3s; }
.galerie__item:hover span, .galerie__item:focus-visible span { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 12, 20, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__legende { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #e4e4ee; font-size: .92rem; padding: 0 70px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-content: center; transition: background .2s; }
.lightbox button:hover { background: var(--rose); }
.lightbox__fermer { top: 16px; right: 16px; }
.lightbox__prec { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__suiv { right: 14px; top: 50%; transform: translateY(-50%); }
body.bloque { overflow: hidden; }

/* ---------- Formulaires ---------- */
.formulaire-zone { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.etapes { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 22px; counter-reset: e; }
.etapes li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; counter-increment: e; }
.etapes li::before { content: counter(e); width: 48px; height: 48px; border-radius: 14px; background: var(--bleu); color: #fff; display: grid; place-content: center; font: 700 1.2rem/1 var(--titre); }
.etapes strong { display: block; margin-bottom: 2px; }
.etapes p { margin: 0; color: var(--gris); font-size: .94rem; }
.carte-form { background: var(--blanc); border-radius: 24px; padding: 40px; box-shadow: var(--ombre); border-top: 6px solid var(--rose); }
.carte-form h2 { font-size: 1.9rem; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: .88rem; font-weight: 600; }
.champ label .req { color: var(--rose); }
.champ input, .champ select, .champ textarea {
  font: 400 1rem/1.4 var(--texte); color: var(--encre);
  border: 1.5px solid var(--ligne); background: var(--creme); border-radius: 12px; padding: 13px 15px; width: 100%;
  transition: border-color .2s, background .2s;
}
.champ textarea { min-height: 110px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--rose); background: #fff; }
.champ .erreur { color: #c0262d; font-size: .8rem; }
.champ.invalide input, .champ.invalide select { border-color: #c0262d; }
.form-pied { margin-top: 24px; display: grid; gap: 12px; }
.form-pied small { color: var(--gris); font-size: .82rem; text-align: center; }
.affiche { border-radius: var(--rayon); box-shadow: var(--ombre); margin-top: 30px; }

/* ---------- Contact ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-carte { background: var(--blanc); border-radius: var(--rayon); padding: 30px 28px; border: 1px solid var(--ligne); display: flex; flex-direction: column; }
.contact-carte .atout__icone { margin-bottom: 18px; }
.contact-carte h3 { font-size: 1.35rem; margin-bottom: 4px; }
.contact-carte .role { color: var(--gris); font-size: .9rem; margin-bottom: 14px; }
.contact-carte .valeur { font-weight: 600; font-size: 1.12rem; margin-bottom: 18px; word-break: break-word; }
.contact-carte .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.contact-carte .actions .btn { padding: 11px 18px; font-size: .9rem; }
.horaires { width: 100%; border-collapse: collapse; }
.horaires td { padding: 12px 0; border-bottom: 1px dashed var(--ligne); }
.horaires td:last-child { text-align: right; font-weight: 600; }
.horaires tr.aujourdhui td { color: var(--rose); }
.carte-maps { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); aspect-ratio: 4 / 3; background: var(--creme-2); }
.carte-maps iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pied de page ---------- */
.footer { background: #13121b; color: #c6c4d2; padding: 80px 0 0; margin-top: 0; }
.footer__grille { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer img.logo-pied { height: 62px; width: auto; margin-bottom: 18px; }
.footer h4 { font-family: var(--texte); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer p { font-size: .94rem; }
.footer__bas { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer__bas a { color: #ff8cc6; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-flottant {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #1fae5b; color: #fff; display: grid; place-content: center; box-shadow: 0 12px 26px -8px rgba(31,174,91,.8);
  transition: transform .2s;
}
.wa-flottant:hover { transform: scale(1.08); }
.wa-flottant svg { width: 32px; height: 32px; }
.wa-flottant::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fae5b; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bandeau__piste, .wa-flottant::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page 404 ---------- */
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 16px; }
.page-404 strong { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--titre); color: var(--rose); display: block; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .atouts { grid-template-columns: repeat(2, 1fr); }
  .sites { grid-template-columns: repeat(2, 1fr); }
  .footer__grille { grid-template-columns: 1fr 1fr; }
  .hero .container { gap: 36px; }
  .hero__visuel { height: 480px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .burger { display: inline-flex; }
  /* Le menu est positionné par rapport à l'en-tête (le flou backdrop-filter
     empêche position:fixed de se caler sur l'écran). */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 49;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 24px 20px;
    background: var(--creme); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu-ouvert .nav { visibility: visible; opacity: 1; transform: none; }
  body.menu-ouvert { overflow: hidden; }
  .nav a { font-size: 1.15rem; padding: 14px 16px; border-radius: 12px; }
  .nav .btn { margin: 14px 0 0; padding: 16px; }
  .topbar__info span:not(.topbar__pastille) { display: none; }

  .hero { padding: 36px 0 70px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero__visuel { height: 420px; }
  .badge-rond { left: -6px; bottom: -20px; width: 112px; height: 112px; }
  .badge-rond strong { font-size: 1.7rem; }
  .filieres { grid-template-columns: repeat(2, 1fr); }
  .parcours { grid-template-columns: 1fr; gap: 40px; }
  .parcours::before { display: none; }
  .mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .duo, .formulaire-zone { grid-template-columns: 1fr; gap: 48px; }
  .duo--inverse .duo__media { order: 0; }
  .duo__media .vignette { right: 12px; bottom: -20px; width: 38%; }
  .cta-final { grid-template-columns: 1fr; padding: 48px 32px; }
  .contacts { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .section { padding: 60px 0; }
  .logo img { height: 42px; }
  .logo__texte { display: none; }
  .topbar .container { justify-content: center; }
  .topbar__tel { display: none; }
  .hero h1 { font-size: 2.55rem; }
  .hero h1 .souligne { white-space: normal; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__visuel { height: 340px; gap: 10px; }
  .hero__faits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fait { min-width: 0; padding: 10px 10px; border-radius: 12px; }
  .fait strong { font-size: .98rem; }
  .fait span { font-size: .72rem; line-height: 1.3; display: block; }
  .atouts, .filieres, .sites { grid-template-columns: 1fr; }
  .mosaique { grid-auto-rows: 150px; gap: 10px; }
  .mosaique .large { grid-column: span 2; }
  .colonnes-2, .champs { grid-template-columns: 1fr; }
  .carte-form { padding: 28px 20px; }
  .cta-final { padding: 40px 22px; border-radius: 22px; }
  .footer__grille { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 10px 70px; }
  .lightbox__prec, .lightbox__suiv { top: auto; bottom: 12px; transform: none; }
  .lightbox__legende { bottom: 80px; padding: 0 16px; }
  .page-hero { padding: 56px 0 52px; }
  .wa-flottant { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .bandeau__piste span { font-size: 1.1rem; }
}
