/* ==========================================================================
   LYNEO Formation — refonte 2026
   Langage visuel « campus » : titres géants serrés, phrases en deux temps,
   sections nuit / clair, encoches, pilules. Couleurs : celles du logo LYNEO.
   ========================================================================== */

:root {
  --nuit: #141B21;
  --nuit-2: #1C252D;
  --ardoise: #26323C;
  --texte: #1D2329;
  --texte-2: #57626C;
  --texte-nuit: #C7CCD1;
  --vert: #6F8B45;
  --vert-fonce: #55692F;
  --vert-tres-fonce: #475A27;
  --vert-clair: #A9C77D;
  --papier: #F5F5F2;
  --blanc: #FFFFFF;
  --filet: #E3E1DA;
  --filet-nuit: rgba(255, 255, 255, .12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 28px;
  --radius-sm: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible { outline: 3px solid var(--vert-clair); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible, .domaines :focus-visible, .contact :focus-visible { outline-color: var(--vert-fonce); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; top: -80px; left: 10px; z-index: 100;
  background: var(--blanc); color: var(--texte); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

.night { background: var(--nuit); color: var(--blanc); }
.paper { background: var(--papier); }

/* ---------- Typo ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--vert-fonce); margin-bottom: 18px;
}
.eyebrow--light { color: var(--vert-clair); }

.h-xl {
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 650;
  max-width: 17ch;
  text-wrap: balance;
}
.h-xl.center { margin-inline: auto; }
.h-xl em { display: block; font-weight: 500; color: var(--vert-fonce); }
.h-xl--light em { color: var(--vert-clair); }

/* ---------- Boutons pilule ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 8px 8px 8px 24px;
  border-radius: 999px; border: 0;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-ui), background-color 200ms ease, color 200ms ease;
}
.pill:active { transform: scale(.96); transition-duration: 90ms; }
.pill__dot {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 20px; line-height: 1; font-weight: 500;
  transition: transform 200ms var(--ease-ui);
}
.pill--light { background: var(--blanc); color: var(--ardoise); }
.pill--light .pill__dot { background: var(--vert-fonce); color: var(--blanc); }
.pill--dark { background: var(--ardoise); color: var(--blanc); }
.pill--dark .pill__dot { background: var(--vert-clair); color: var(--nuit); }
.pill--green { background: var(--vert-fonce); color: var(--blanc); }
.pill--green .pill__dot { background: var(--blanc); color: var(--vert-fonce); }
.pill--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

@media (hover: hover) and (pointer: fine) {
  .pill--light:hover { background: #EEF1EA; }
  .pill--dark:hover { background: var(--nuit); }
  .pill--green:hover { background: var(--vert-tres-fonce); }
  .pill:hover .pill__dot { transform: rotate(90deg); }
  .pill:hover .pill__dot--arrow { transform: translateX(3px); }
}
/* écrans tactiles : le geste de survol se joue à l'appui, pour que le doigt ait le même retour que la souris */
@media (hover: none) {
  .pill:active .pill__dot { transform: rotate(90deg); transition-duration: 120ms; }
  .pill:active .pill__dot--arrow { transform: translateX(3px); }
  .link:active, .nav a:not(.pill):active, .footer__nav a:active, .contact__card a:active { opacity: .6; }
}

.link {
  font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--vert); padding-bottom: 2px;
}
.link--light { color: var(--blanc); border-color: var(--vert-clair); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--vert-fonce); }
  .link--light:hover { color: var(--vert-clair); }
}

/* ---------- Encoches (transition entre sections) ---------- */
.notch {
  position: absolute; left: 50%; bottom: -1px; z-index: 2;
  width: min(620px, 72%); height: 34px;
  transform: translateX(-50%);
  pointer-events: none;
}
.notch svg { width: 100%; height: 100%; }
.notch path { fill: currentColor; }
.notch--top { top: -1px; bottom: auto; }
.notch--paper { color: var(--papier); }
.notch--white { color: var(--blanc); }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
}
/* le verre dépoli est porté par un pseudo-élément : sinon l'en-tête devient le
   bloc conteneur du menu mobile (position: fixed) et le rend translucide */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(20, 27, 33, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background-color 300ms ease;
}
.header.is-scrolled::before { border-bottom-color: var(--filet-nuit); background: rgba(20, 27, 33, .86); }
.header__in {
  height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.pill) {
  color: rgba(255, 255, 255, .86); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:not(.pill):hover { color: var(--blanc); } }

.burger { display: none; }

@media (max-width: 860px) {
  .burger {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; color: var(--blanc); cursor: pointer; border-radius: 50%;
  }
  .burger__bars, .burger__bars::before, .burger__bars::after {
    display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform 240ms var(--ease-ui), opacity 160ms ease;
  }
  .burger__bars { position: relative; }
  .burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
  .burger__bars::before { top: -6px; }
  .burger__bars::after { top: 6px; }
  .burger[aria-expanded="true"] .burger__bars { background: transparent; }
  .burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--nuit);
    border-bottom: 1px solid var(--filet-nuit);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 200ms var(--ease-ui), transform 200ms var(--ease-ui), visibility 0s linear 200ms;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.pill) { padding: 14px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--filet-nuit); }
  .nav .pill { margin-top: 20px; justify-content: center; min-height: 48px; font-size: 16px; }
  html:not(.js) .header { position: static; height: auto; }
  html:not(.js) .header__in { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .burger { display: none; }
  html:not(.js) .nav { position: static; visibility: visible; opacity: 1; transform: none; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; padding: 0; border: 0; background: none; }
  html:not(.js) .nav a:not(.pill) { font-size: 15px; padding: 0; border: 0; }
  html:not(.js) .nav .pill { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 112px)) 0 clamp(88px, 10vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(111, 139, 69, .22), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(38, 50, 60, .9), transparent 70%),
    var(--nuit);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title { font-weight: 650; letter-spacing: -0.04em; line-height: .98; margin-bottom: 28px; text-wrap: balance; }
.hero__l1 { display: block; font-size: clamp(44px, 6.4vw, 96px); }
.hero__l2 {
  display: block; margin-top: 14px;
  font-size: clamp(24px, 2.9vw, 42px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; font-style: italic;
  background: linear-gradient(90deg, #C9DEA8 0%, var(--vert-clair) 45%, #8FB35E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--texte-nuit); max-width: 34em; margin-bottom: 36px; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }

.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px clamp(20px, 4vw, 48px);
  margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--filet-nuit);
}
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats dd { margin: 0; font-size: 34px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.stats dt { font-size: 13px; color: var(--texte-nuit); }

.hero__art { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.stamp {
  position: absolute; padding: 10px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.stamp--green { right: 0; top: 8%; background: var(--vert-fonce); color: var(--blanc); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.stamp--glass {
  left: 0; bottom: 6%;
  background: rgba(255, 255, 255, .1); color: var(--blanc);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* Tracé du bâtiment : « construire » */
.js .draw [pathLength]:not(.nodraw) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.6s var(--ease-out) forwards; }
.js .draw line:nth-of-type(2) { animation-delay: .25s; }
.js .draw line:nth-of-type(3) { animation-delay: .35s; }
.js .draw line:nth-of-type(4) { animation-delay: .45s; }
.js .draw line:nth-of-type(5) { animation-delay: .55s; }
.js .draw path { animation-delay: .8s; }
.js .draw .nodraw, .js .draw .dot { opacity: 0; animation: appear .6s ease-out 1.4s forwards; }
.js .stamp { opacity: 0; transform: translateY(8px); animation: rise .7s var(--ease-out) forwards; }
.js .stamp--green { animation: tampon .55s var(--ease-out) 1.5s forwards; transform: scale(1.3); }
.js .stamp--glass { animation-delay: 1.65s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes tampon { 55% { opacity: 1; transform: scale(.96); } to { opacity: 1; transform: none; } }
/* le dessin attend d'être à l'écran (sur téléphone, il est sous la ligne de flottaison) */
.js .hero__art:not(.is-in) .draw *, .js .hero__art:not(.is-in) .stamp { animation-play-state: paused; }

/* ---------- Devise ---------- */
.motto { padding: clamp(96px, 13vw, 180px) 0 clamp(48px, 6vw, 80px); text-align: center; }
.motto__title {
  font-size: clamp(44px, 8.4vw, 124px);
  font-weight: 650; letter-spacing: -0.045em; line-height: .98;
  color: var(--ardoise);
}
.motto__title span { display: block; }
.motto__it { font-style: italic; font-weight: 500; color: var(--vert-fonce); }
.motto__grad {
  background: linear-gradient(90deg, var(--ardoise) 10%, var(--vert-fonce) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}

/* ---------- Cartes ---------- */
.card {
  background: var(--blanc); border-radius: var(--radius);
  border: 1px solid rgba(38, 50, 60, .08);
  box-shadow: 0 1px 2px rgba(20, 27, 33, .04), 0 20px 48px -24px rgba(20, 27, 33, .18);
}

/* ---------- Qualiopi ---------- */
.qualiopi { padding: clamp(48px, 6vw, 80px) 0 clamp(96px, 11vw, 150px); }
.qualiopi .h-xl { font-size: clamp(32px, 4.2vw, 60px); max-width: 20ch; margin-bottom: clamp(36px, 5vw, 56px); }
.qualiopi .h-xl em { display: inline; }
.qualiopi__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.qcard { padding: clamp(24px, 3vw, 40px); display: flex; gap: 24px; align-items: flex-start; }
.qcard:last-child { flex-direction: column; justify-content: center; gap: 6px; }
.qcard:first-child { flex-direction: column; }
.qcard__logo { display: block; width: 220px; max-width: 100%; height: auto; background: #fff; border-radius: 8px; }
.qcard__title { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 8px; }
.qcard p { color: var(--texte-2); }
.qcard__label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vert-fonce) !important; }
.qcard__nda { font-size: clamp(32px, 3.6vw, 48px); font-weight: 650; letter-spacing: -0.02em; color: var(--ardoise) !important; font-variant-numeric: tabular-nums; }

/* ---------- Domaines : cartes empilées ---------- */
.domaines { padding: clamp(96px, 11vw, 150px) 0 clamp(96px, 11vw, 150px); background: var(--blanc); }
.domaines .h-xl { margin-bottom: clamp(40px, 6vw, 72px); }
.stack { display: grid; gap: 24px; }
.stack__card {
  position: sticky; top: calc(var(--header-h) + 24px + var(--i) * 24px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: clamp(260px, 30vw, 360px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--papier);
  border: 1px solid rgba(38, 50, 60, .06);
  box-shadow: 0 -12px 40px -28px rgba(20, 27, 33, .25);
}
.stack__card:nth-child(2) { background: #EDEFE7; }
.stack__card:nth-child(3) { background: var(--ardoise); color: var(--blanc); }
.stack__card:nth-child(3) p { color: var(--texte-nuit); }
.stack__card:nth-child(3) .stack__num { color: rgba(169, 199, 125, .5); }
.stack__card:nth-child(3) .stack__art { background: var(--papier); border-radius: 22px; padding: 12px; }
.stack__num { font-size: clamp(56px, 8vw, 120px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; color: rgba(85, 105, 47, .28); font-variant-numeric: tabular-nums; }
.stack__body h3 { font-size: clamp(28px, 3.4vw, 48px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 14px; }
.stack__body p { color: var(--texte-2); max-width: 34em; font-size: clamp(16px, 1.3vw, 19px); }
.stack__art { width: clamp(140px, 17vw, 220px); height: auto; }

/* ---------- Formations ---------- */
.programme { padding: clamp(96px, 11vw, 150px) 0 clamp(64px, 8vw, 100px); }
.programme .h-xl { margin-bottom: clamp(40px, 6vw, 72px); }
.formations { display: grid; gap: 24px; }
.formation {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4.2vw, 60px);
}
.formation__idx { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 12px; }
.formation__title { font-size: clamp(26px, 2.9vw, 40px); font-weight: 650; letter-spacing: -0.028em; line-height: 1.08; margin-bottom: 28px; text-wrap: balance; }
.formation__label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vert-fonce); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips li {
  font-size: 14.5px; line-height: 1.35; padding: 8px 14px; border-radius: 999px;
  background: var(--papier); border: 1px solid var(--filet);
}
.figures { margin: 0; display: grid; align-content: center; gap: 0; border-left: 1px solid var(--filet); padding-left: clamp(24px, 4vw, 56px); }
.figures div { display: flex; flex-direction: column-reverse; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.figures div:last-child { border-bottom: 0; }
.figures dd { margin: 0; font-size: clamp(40px, 4.6vw, 68px); font-weight: 650; letter-spacing: -0.045em; line-height: 1; color: var(--ardoise); font-variant-numeric: tabular-nums; }
.figures dd small { font-size: .38em; letter-spacing: 0; font-weight: 600; color: var(--texte-2); }
.figures dt { font-size: 13px; color: var(--texte-2); margin-top: 6px; }

/* ---------- Bandeau devise ---------- */
.marquee { overflow: hidden; padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 110px); }
.marquee__track { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); width: max-content; animation: defile 48s linear infinite; }
.marquee span { font-size: clamp(34px, 6vw, 88px); font-weight: 650; letter-spacing: -0.04em; white-space: nowrap; color: rgba(38, 50, 60, .12); }
.marquee i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--vert); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Formulaire ---------- */
.demande { position: relative; padding: clamp(110px, 12vw, 170px) 0 clamp(110px, 12vw, 170px); background:
  radial-gradient(55% 60% at 100% 0%, rgba(111, 139, 69, .2), transparent 70%), var(--nuit); }
.demande__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.demande .h-xl { font-size: clamp(34px, 4.4vw, 64px); margin-bottom: 24px; }
.demande__lead { color: var(--texte-nuit); font-size: 18px; max-width: 30em; }
.glass {
  padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 50px;
  padding: 12px 16px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .96); color: var(--texte);
  font: inherit; font-size: 16px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2326323C' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--vert-clair); box-shadow: 0 0 0 4px rgba(169, 199, 125, .35); }
.field [aria-invalid="true"] { border-color: #F2A58C; box-shadow: 0 0 0 3px rgba(242, 165, 140, .35); }
.field__err { font-size: 14px; color: #F7C2B0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #F6E4DE; border: 1px solid #D9A98E; color: #7A3B1E; padding: 12px 16px; border-radius: 14px; font-size: 15px; margin-bottom: 20px; }
.form__rgpd { font-size: 13.5px; color: var(--texte-nuit); }
.form__rgpd a { color: var(--blanc); }
.form .pill { justify-self: start; }

/* ---------- Equipe ---------- */
.equipe { padding: clamp(96px, 11vw, 150px) 0; }
.equipe .h-xl { margin-bottom: clamp(40px, 6vw, 64px); }
.lead-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4.5vw, 64px); margin-bottom: 20px; }
.lead-card__name { font-size: clamp(30px, 3.6vw, 52px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; }
.lead-card__role { color: var(--vert-fonce); font-weight: 600; margin: 6px 0 18px; }
.lead-card__text { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 36em; color: var(--texte); }
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ardoise); color: var(--vert-clair);
  font-weight: 650; font-size: 17px; letter-spacing: .02em;
}
.avatar--xl { width: clamp(96px, 12vw, 160px); height: clamp(96px, 12vw, 160px); font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -0.02em;
  background: radial-gradient(circle at 30% 25%, #3A4A57, var(--ardoise) 70%); }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.member { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius-sm); }
.member strong { display: block; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.member__role { display: block; font-size: 14.5px; color: var(--texte-2); margin-top: 2px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(96px, 11vw, 150px) 0 clamp(120px, 13vw, 180px); background: var(--blanc); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: end; }
.contact .h-xl { margin-bottom: 32px; }
.contact__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.contact__card { font-style: normal; display: grid; gap: 4px; padding: clamp(24px, 3.4vw, 40px); font-size: 17px; color: var(--texte-2); }
.contact__card strong { color: var(--texte); font-size: 20px; letter-spacing: -0.01em; margin-bottom: 6px; }
.contact__card a { color: var(--texte); text-decoration: none; font-weight: 600; }
.contact__card a:first-of-type { margin-top: 12px; }
@media (hover: hover) and (pointer: fine) { .contact__card a:hover { color: var(--vert-fonce); } }

/* ---------- Pied de page ---------- */
.footer { position: relative; padding: clamp(80px, 9vw, 120px) 0 32px; overflow: hidden; }
.footer__word {
  font-size: clamp(88px, 23vw, 340px); font-weight: 700; letter-spacing: -0.06em; line-height: .8;
  text-align: center; margin: 0 0 clamp(40px, 5vw, 64px);
  user-select: none;
}
.footer__word span {
  display: inline-block;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(169, 199, 125, .55) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .footer__word.reveal { transform: none; }
.js .footer__word span { opacity: 0; transform: translateY(35%); transition: opacity 600ms var(--ease-out), transform 1000ms var(--ease-out); }
.js .footer__word.is-in span { opacity: 1; transform: none; }
.footer__word span:nth-child(2) { transition-delay: 60ms; }
.footer__word span:nth-child(3) { transition-delay: 120ms; }
.footer__word span:nth-child(4) { transition-delay: 180ms; }
.footer__word span:nth-child(5) { transition-delay: 240ms; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--filet-nuit); }
.footer__logo { height: 84px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__nav a { color: var(--texte-nuit); text-decoration: none; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .footer__nav a:hover { color: var(--blanc); } }
.footer__legal { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: #9AA3AB; }
.footer__legal p:first-child { max-width: 720px; }

/* ---------- Apparitions au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js .card.reveal { transform: translateY(28px) scale(.97); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Titres en deux temps : la seconde moitié arrive juste après la première */
.js .h-xl.reveal em { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out) 140ms, transform 900ms var(--ease-out) 140ms; }
.js .h-xl.reveal.is-in em { opacity: 1; transform: none; }

/* Débouchés : les pastilles tombent en cascade quand la carte entre */
.js .formation.reveal .chips li { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 650ms var(--ease-out); }
.js .formation.reveal.is-in .chips li { opacity: 1; transform: none; }
.formation .chips li:nth-child(1) { transition-delay: 180ms; }
.formation .chips li:nth-child(2) { transition-delay: 225ms; }
.formation .chips li:nth-child(3) { transition-delay: 270ms; }
.formation .chips li:nth-child(4) { transition-delay: 315ms; }
.formation .chips li:nth-child(5) { transition-delay: 360ms; }

/* Devise : chaque ligne sort d'un masque, comme un titre de générique */
.js .motto__title .reveal { clip-path: inset(-.2em 0 100% 0); transform: translateY(100%); opacity: 1;
  transition: clip-path 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .motto__title .reveal.is-in { clip-path: inset(-.2em 0 -.2em 0); transform: none; }

/* Compteurs « rouleau » : seul transform bouge, le texte réel reste lu par les lecteurs d'écran */
.odo { position: relative; display: inline-block; font-variant-numeric: tabular-nums; clip-path: inset(0 -.1em); }
.odo__ph { visibility: hidden; }
.odo__strip { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; transition: transform 1500ms var(--ease-out); }
.odo__strip span { display: block; }

/* Bandeau : à l'arrêt quand il est hors écran */
.marquee.is-off .marquee__track { animation-play-state: paused; }

/* Voile derrière le menu mobile */
.scrim { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 340px; }
  .formation { grid-template-columns: 1fr; }
  .figures { border-left: 0; padding-left: 0; border-top: 1px solid var(--filet); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .figures div { border-bottom: 0; padding: 20px 0 0; }
  .figures dd { font-size: clamp(28px, 6.4vw, 48px); }
  .demande__grid, .contact__grid { grid-template-columns: 1fr; }
  .qualiopi__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .lead-card { grid-template-columns: 1fr; }
  .stats dd { font-size: 26px; }
  .stats dt { font-size: 12px; line-height: 1.35; }
  .hero__art { max-width: 300px; }
  .notch { width: 78%; height: 22px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .team { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; gap: 0; }
  .figures div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--filet); }
  .figures div:last-child { border-bottom: 0; }
  .figures dt { margin-top: 0; }
  .figures dd { font-size: 34px; }
  .pill { font-size: 15px; }
  .stamp { font-size: 11px; padding: 8px 12px; }
}

/* ---------- Domaines : la carte recouverte recule (défilement piloté, 100 % compositeur) ----------
   Chaque carte suit la progression de la SUIVANTE qui monte la recouvrir : elle rétrécit
   depuis son bord haut et s'assombrit à peine. Sans prise en charge : simple empilement. */
.stack__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--nuit); opacity: 0; pointer-events: none;
}
@supports (animation-timeline: view()) {
  .stack { timeline-scope: --dom-2, --dom-3; }
  .stack__card:nth-child(2) { view-timeline-name: --dom-2; }
  .stack__card:nth-child(3) { view-timeline-name: --dom-3; }
  .stack__card:nth-child(-n+2) { transform-origin: 50% 0; animation: recule linear both; animation-range: cover 8% cover 58%; }
  .stack__card:nth-child(-n+2)::after { animation: assombrit linear both; animation-range: cover 8% cover 58%; }
  .stack__card:nth-child(1), .stack__card:nth-child(1)::after { animation-timeline: --dom-2; }
  .stack__card:nth-child(2), .stack__card:nth-child(2)::after { animation-timeline: --dom-3; }
}
@keyframes recule { to { transform: scale(.93); } }
@keyframes assombrit { to { opacity: .1; } }

/* ---------- Menu mobile animé ---------- */
@media (max-width: 860px) {
  .js .nav {
    opacity: 1; transform: none; box-shadow: none;
    clip-path: inset(0 0 100% 0);
    /* fermeture : rapide, sans cascade */
    transition: clip-path 220ms var(--ease-ui), visibility 0s linear 220ms;
  }
  .js .nav.is-open { clip-path: inset(0 0 0 0); transition: clip-path 460ms var(--ease-drawer), visibility 0s; }
  .js .nav > * { opacity: 0; transform: translateY(-10px); transition: opacity 120ms ease, transform 200ms var(--ease-ui); }
  .js .nav.is-open > * { opacity: 1; transform: none; transition: opacity 360ms var(--ease-out), transform 520ms var(--ease-out); }
  .js .nav.is-open > :nth-child(1) { transition-delay: 70ms; }
  .js .nav.is-open > :nth-child(2) { transition-delay: 105ms; }
  .js .nav.is-open > :nth-child(3) { transition-delay: 140ms; }
  .js .nav.is-open > :nth-child(4) { transition-delay: 175ms; }
  .js .nav.is-open > :nth-child(5) { transition-delay: 210ms; }
  .burger { transition: transform 120ms var(--ease-ui); }
  .burger:active { transform: scale(.9); }
  .scrim {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    background: rgba(10, 14, 18, .55); opacity: 0; pointer-events: none;
    transition: opacity 220ms ease;
  }
  .scrim.is-open { opacity: 1; pointer-events: auto; transition-duration: 400ms; }
}

/* ---------- Téléphone : même richesse, sans rien de coûteux ----------
   Pas de flou d'arrière-plan (il se recalcule à chaque image de défilement sur un en-tête
   fixe) ; les cartes empilées restent « sticky » mais SANS ombre portée. */
@media (max-width: 767px) {
  .header::before, .header.is-scrolled::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--nuit); }
  .stamp--glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(38, 50, 60, .92); }

  .js .reveal { transform: translateY(22px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); }
  .js .card.reveal { transform: translateY(26px) scale(.97); }
  .js .reveal.is-in { transform: none; }
  .js .motto__title .reveal { transform: translateY(100%); }
  .js .motto__title .reveal.is-in { transform: none; }
  .js .footer__word.reveal { transform: none; }

  /* Domaines : carte compacte (numéro + dessin sur une ligne), empilement conservé */
  .stack { gap: 16px; }
  .stack__card {
    top: calc(var(--header-h) + 14px + var(--i) * 14px);
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num art" "body body";
    align-items: center; gap: 8px 16px; min-height: 0; padding: 24px 24px 28px;
    box-shadow: none; border-color: rgba(38, 50, 60, .1);
  }
  .stack__card:nth-child(3) { border-color: transparent; }
  .stack__num { grid-area: num; font-size: 64px; }
  .stack__art { grid-area: art; width: 128px; }
  .stack__card:nth-child(3) .stack__art { width: 132px; padding: 8px; border-radius: 16px; }
  .stack__body { grid-area: body; margin-top: 8px; }
  .stack__body h3 { font-size: 30px; margin-bottom: 10px; }

  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .marquee span { font-size: 48px; }
  .marquee i { width: 10px; height: 10px; }
  .footer__word { font-size: 31vw; margin-bottom: 40px; }
}
@media (max-width: 767px) {
  /* le dessin se joue pendant qu'on défile : tampons un peu plus tôt */
  .js .stamp--green { animation-delay: 1s; }
  .js .stamp--glass { animation-delay: 1.15s; }
}

/* ---------- Mouvement réduit : on garde les fondus, on retire le mouvement ----------
   Placé EN DERNIER : il doit l'emporter sur les réglages mobiles ci-dessus. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .js .draw [pathLength]:not(.nodraw) { animation: none; stroke-dashoffset: 0; }
  .js .draw .nodraw, .js .draw .dot { animation: none; opacity: 1; }
  .js .stamp, .js .stamp--green, .js .stamp--glass { animation: none; opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .pill, .pill__dot, .burger__bars, .burger__bars::before, .burger__bars::after, .nav { transition-duration: 0s !important; }
  .pill:active { transform: none; }
  .js .card.reveal, .js .h-xl.reveal em, .js .formation.reveal .chips li, .js .footer__word span { transform: none; }
  .js .motto__title .reveal { clip-path: none; transform: none; opacity: 0; transition: opacity 300ms ease; }
  .js .motto__title .reveal.is-in { opacity: 1; }
  .stack__card, .stack__card::after { animation: none !important; }
  .nav > * { transition: none !important; transform: none !important; }
  .scrim { transition: none !important; }
}
