/* =====================================================================
   DJ ACADEMY — Feuille de style unique
   ---------------------------------------------------------------------
   Sommaire
   01. Polices
   02. Variables (:root)
   03. Reset et base
   04. Typographie
   05. Mise en page (conteneurs, sections)
   06. Éléments graphiques (grain, sillons, timeline, égaliseur)
   07. Boutons et liens
   08. En-tête et navigation
   09. Hero
   10. Blocs de contenu
   11. Formations
   12. Méthode et timeline
   13. Matériel et profils
   14. Sessions
   15. Témoignages
   16. FAQ
   17. Appels à l'action
   18. Formulaire
   19. Pied de page
   20. Éléments flottants (retour haut, barre mobile)
   21. Pages secondaires
   22. Animations d'apparition
   23. Préférences de mouvement et impression
   ===================================================================== */


/* =====================================================================
   01. POLICES — auto-hébergées (aucun appel à un service externe)
   ===================================================================== */
@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk var';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =====================================================================
   02. VARIABLES
   ===================================================================== */
:root {
  /* --- Couleurs de fond --- */
  --c-black: #080a0d;
  --c-ink: #0b0e12;
  --c-anthracite: #12161b;
  --c-anthracite-hi: #171c23;
  --c-elevated: #1c222a;

  /* --- Couleurs de texte --- */
  --c-white: #f5f5f2;
  --c-text: #dfe3e8;
  --c-muted: #a3abb5;
  --c-faint: #8c949e;   /* relevé pour passer le seuil AA sur fond sombre */

  /* --- Couleurs d'accent : valeurs exactes prélevées dans le logo officiel --- */
  --c-cyan: #00aed3;        /* cyan du globe et du filet dégradé */
  --c-cyan-hi: #3fcdec;     /* survol et focus */
  --c-cyan-deep: #067694;   /* fonds pleins, texte cyan sur clair */
  --c-orange: #f2a714;      /* ambre du logo */
  --c-orange-hi: #ffc04a;
  --c-green: #83ba32;       /* vert du logo, usage très ponctuel */
  /* Filet dégradé de la signature, repris du logo */
  --g-signature: linear-gradient(90deg, var(--c-orange), var(--c-green) 42%, var(--c-cyan));

  /* --- Fond clair (sections de respiration) --- */
  --c-light-bg: #f5f5f2;
  --c-light-bg-alt: #ececeA;
  --c-light-text: #14181d;
  --c-light-muted: #4d5661;

  /* --- Lignes et voiles --- */
  --c-line: rgba(245, 245, 242, 0.11);
  --c-line-strong: rgba(245, 245, 242, 0.22);
  --c-line-light: rgba(20, 24, 29, 0.14);
  --c-veil: rgba(8, 10, 13, 0.72);

  /* --- Typographie --- */
  /* Titres : Inter Black — c'est la graisse qui porte l'impact du flyer. */
  --f-display: 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Micro-typographie technique : Space Grotesk, plus caractérisé à petite taille. */
  --f-label: 'Space Grotesk var', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-text: 'Inter var', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-eyebrow: 0.6875rem;
  --fs-micro: 0.75rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem);
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.6vw, 1.625rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.9vw, 3rem);
  --fs-h1: clamp(2.375rem, 1.5rem + 4.1vw, 5.75rem);
  --fs-giant: clamp(3.5rem, 2rem + 7vw, 8rem);

  --lh-tight: 1.04;
  --lh-title: 1.12;
  --lh-body: 1.65;

  /* --- Espacements --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.5rem;
  --sp-9: 5rem;
  --sp-10: 7rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);

  /* --- Dimensions --- */
  --container: 1240px;
  --container-narrow: 780px;
  --header-h: 68px;

  /* --- Rayons --- */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* --- Ombres --- */
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-md: 0 12px 32px -12px rgba(0, 0, 0, 0.65);
  --sh-lg: 0 32px 72px -28px rgba(0, 0, 0, 0.85);
  --sh-cyan: 0 0 0 1px rgba(0, 174, 211, 0.45), 0 14px 34px -18px rgba(0, 174, 211, 0.55);

  /* --- Transitions --- */
  --t-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-slow: 520ms cubic-bezier(0.22, 0.61, 0.36, 1);

  --z-header: 60;
  --z-menu: 70;
  --z-float: 50;
}


/* =====================================================================
   03. RESET ET BASE
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background-color: var(--c-black);
  color: var(--c-text);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

img, picture, svg, video {
  display: block;
  max-width: 100%;
}
img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Focus visible homogène sur tout le site */
:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

::selection {
  background: var(--c-cyan);
  color: var(--c-black);
}

/* Accessibilité : masquage visuel sans masquage lecteur d'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--c-cyan);
  color: var(--c-black);
  font-weight: 700;
  font-size: var(--fs-small);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Élément masqué par la configuration (donnée non renseignée) */
[hidden] { display: none !important; }


/* =====================================================================
   04. TYPOGRAPHIE
   ===================================================================== */
h1, h2, h3, h4,
.display {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: var(--lh-title);
  letter-spacing: -0.03em;
  color: var(--c-white);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.045em; font-weight: 900; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.04em; font-weight: 900; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 62ch;
}

.text-muted { color: var(--c-muted); }
.text-faint { color: var(--c-faint); }
.text-cyan { color: var(--c-cyan); }
.text-orange { color: var(--c-orange); }

/* Étiquette technique : « [ 02 · MÉTHODE ] » */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-label);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--orange { color: var(--c-orange); }
.eyebrow--dark { color: var(--c-light-muted); }
.eyebrow--dark::before { background: var(--c-orange); width: 22px; height: 2px; }

/* Petite info technique en bas de bloc */
.meta-line {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-faint);
}

.rich-text > * + * { margin-top: 1.1em; }
.rich-text h3 { margin-top: 2em; }
.rich-text a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.rich-text a:hover { color: var(--c-cyan-hi); }


/* =====================================================================
   05. MISE EN PAGE
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  position: relative;
  padding-block: var(--section-y);
  /* « clip » plutôt que « hidden » : les décors en débord sont rognés
     sans créer de conteneur de défilement, ce qui préserve position: sticky */
  overflow-x: clip;
}
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--ink { background: var(--c-ink); }
.section--anthracite { background: var(--c-anthracite); }

/* Section claire : respiration dans un parcours sombre */
.section--light {
  background: var(--c-light-bg);
  color: var(--c-light-text);
}
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 { color: var(--c-light-text); }
.section--light .lead,
.section--light .text-muted { color: var(--c-light-muted); }
.section--light .meta-line { color: var(--c-light-muted); }

/* Bandeau d'index de section */
.section-head {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
}
.section-head__top {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.section-head__top .eyebrow { flex: none; }
.section-head__rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--c-line-strong), transparent);
}
.section--light .section-head__rule {
  background: linear-gradient(90deg, var(--c-line-light), transparent);
}
.section--light .section-head__index { color: var(--c-light-muted); }

.section-head__body {
  display: grid;
  gap: var(--sp-5);
  align-items: end;
}
@media (min-width: 900px) {
  .section-head__body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--sp-8);
  }
}

.stack-sm > * + * { margin-top: var(--sp-3); }
.stack > * + * { margin-top: var(--sp-5); }
.stack-lg > * + * { margin-top: var(--sp-7); }


/* =====================================================================
   06. ÉLÉMENTS GRAPHIQUES
   ===================================================================== */

/* Grain discret sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sillons de vinyle : cercles concentriques très discrets */
.grooves {
  position: absolute;
  pointer-events: none;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.5;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(245, 245, 242, 0.055) 0 1px,
      transparent 1px 9px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 72%);
}
.grooves--right {
  top: -18%;
  right: -22%;
  width: min(760px, 90vw);
}
.grooves--left {
  bottom: -25%;
  left: -25%;
  width: min(640px, 80vw);
}
.section--light .grooves {
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(20, 24, 29, 0.07) 0 1px,
      transparent 1px 9px);
}

/* Barre signature reprenant les couleurs du logo */
.accent-bar {
  display: block;
  height: 3px;
  width: 128px;
  background: linear-gradient(90deg,
    var(--c-orange) 0 34%,
    var(--c-cyan) 34% 72%,
    var(--c-green) 72% 100%);
  border-radius: var(--r-pill);
}

/* Séparateur inspiré d'une timeline audio */
.timeline-rule {
  position: relative;
  height: 26px;
  border-top: 1px solid var(--c-line);
  background-image: repeating-linear-gradient(90deg,
    var(--c-line-strong) 0 1px,
    transparent 1px 26px);
  background-size: 100% 9px;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.timeline-rule::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 84px;
  height: 2px;
  background: var(--c-cyan);
}

/* Égaliseur du hero */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
}
.equalizer span {
  display: block;
  width: 3px;
  height: 22%;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--c-cyan), var(--c-cyan-deep));
  transform-origin: bottom;
  animation: eq 1500ms ease-in-out infinite alternate;
}
.equalizer span:nth-child(3n) { background: linear-gradient(180deg, var(--c-orange), #a34f10); }
.equalizer span:nth-child(1) { animation-duration: 1200ms; height: 34%; }
.equalizer span:nth-child(2) { animation-duration: 1700ms; height: 62%; }
.equalizer span:nth-child(3) { animation-duration: 1000ms; height: 28%; }
.equalizer span:nth-child(4) { animation-duration: 1900ms; height: 78%; }
.equalizer span:nth-child(5) { animation-duration: 1350ms; height: 44%; }
.equalizer span:nth-child(6) { animation-duration: 2100ms; height: 88%; }
.equalizer span:nth-child(7) { animation-duration: 1150ms; height: 36%; }
.equalizer span:nth-child(8) { animation-duration: 1800ms; height: 66%; }
.equalizer span:nth-child(9) { animation-duration: 1450ms; height: 50%; }
.equalizer span:nth-child(10) { animation-duration: 1650ms; height: 74%; }
.equalizer span:nth-child(11) { animation-duration: 1250ms; height: 32%; }
.equalizer span:nth-child(12) { animation-duration: 1950ms; height: 58%; }

@keyframes eq {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

/* Onde statique de séparation */
.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  opacity: 0.55;
}
.waveform span {
  display: block;
  width: 2px;
  background: var(--c-line-strong);
  border-radius: 1px;
}


/* --- Traînées lumineuses du flyer ---------------------------------------
   Faisceaux cyan / ambre / vert traversant le visuel du hero, en biais.
   Purement décoratif, sans animation : aucun coût de rendu continu. */
/* ::after porte déjà le voile de lisibilité (section 09) : les traînées
   utilisent ::before. Aucune valeur de z-index n'est nécessaire — l'ordre de
   peinture place la photo, puis les traînées, puis le voile. */
.hero__media::before,
.page-hero__media::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    linear-gradient(104deg, transparent 38%, rgba(0, 174, 211, 0.50) 47%, transparent 56%),
    linear-gradient(99deg,  transparent 47%, rgba(0, 174, 211, 0.26) 52%, transparent 58%),
    linear-gradient(97deg,  transparent 47%, rgba(242, 167, 20, 0.34) 53%, transparent 60%),
    linear-gradient(113deg, transparent 58%, rgba(131, 186, 50, 0.24) 64%, transparent 70%);
  filter: blur(24px);
  mix-blend-mode: screen;
}
/* Version atténuée sur les pages intérieures, dont le visuel est plus petit. */
.page-hero__media::before { inset: -14%; opacity: 0.62; filter: blur(22px); }

/* Un panneau suivi des filtres : sans cette marge les deux blocs se touchent. */
.panel + .filters { margin-top: var(--sp-6); }

/* Bande de repères compacte : 4 colonnes dès qu'il y a la place, pour éviter
   des cellules de 545 px contenant trois mots. */
@media (min-width: 900px) {
  .facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Fenêtre de demande d'inscription -----------------------------------
   Élément <dialog> natif : le piégeage du focus, la fermeture par Échap et
   le fond assombri sont gérés par le navigateur, sans code ni dépendance. */
.modal {
  width: min(560px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-anthracite);
  color: var(--c-text);
  box-shadow: var(--sh-lg);
  overflow: auto;
}
.modal::backdrop {
  background: rgba(8, 10, 13, 0.78);
  backdrop-filter: blur(2px);
}
.modal__corps { padding: clamp(1.25rem, 1rem + 1.6vw, 2rem); }

.modal__tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}
.modal__titre { font-size: var(--fs-h3); margin: 0.35rem 0 0; }
.modal__creneau {
  margin-top: 0.35rem;
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.modal__fermer {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.modal__fermer:hover { color: var(--c-white); border-color: var(--c-line-strong); }

.modal__grille { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
@media (min-width: 560px) {
  .modal__grille--2 { grid-template-columns: 1fr 1fr; }
}
/* La barre d'action mobile ne doit pas recouvrir la fenêtre de demande. */
body:has(dialog[open]) .mobile-cta {
  transform: translateY(100%);
  pointer-events: none;
}

.modal__statut {
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
}
.modal__statut--ok { color: var(--c-green); }
.modal__statut--erreur { color: var(--c-orange); }
.modal__statut--info { color: var(--c-muted); }

/* Repère secondaire sous une valeur pratique */
.facts__note {
  margin-top: 0.3rem;
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--c-faint);
}

/* --- Filet signature ----------------------------------------------------
   Reprise exacte du dégradé qui souligne « ACADEMY » dans le logo. */
.rule-signature {
  display: block;
  width: 116px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: var(--g-signature);
}
.rule-signature--wide { width: 100%; max-width: 320px; }

/* Séparateur de section reprenant le même dégradé, très atténué */
.section-rule {
  height: 1px;
  border: 0;
  background: var(--g-signature);
  opacity: 0.32;
}

/* =====================================================================
   07. BOUTONS ET LIENS
   ===================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-white);
  --btn-bd: var(--c-line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-label);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-base), border-color var(--t-base),
    color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__arrow {
  flex: none;
  transition: transform var(--t-base);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  --btn-bg: var(--c-cyan);
  --btn-fg: #04212b;
  --btn-bd: var(--c-cyan);
}
.btn--primary:hover {
  --btn-bg: var(--c-cyan-hi);
  --btn-bd: var(--c-cyan-hi);
  box-shadow: 0 14px 30px -16px rgba(0, 174, 211, 0.9);
}

.btn--ghost {
  --btn-bg: rgba(245, 245, 242, 0.04);
}
.btn--ghost:hover {
  --btn-bd: var(--c-white);
  --btn-bg: rgba(245, 245, 242, 0.09);
}

.btn--dark {
  --btn-bg: var(--c-black);
  --btn-fg: var(--c-white);
  --btn-bd: var(--c-black);
}
.btn--dark:hover { --btn-bg: #1b2129; --btn-bd: #1b2129; }

.btn--light {
  --btn-bg: transparent;
  --btn-fg: var(--c-light-text);
  --btn-bd: var(--c-line-light);
}
.btn--light:hover { --btn-bg: rgba(20, 24, 29, 0.06); --btn-bd: var(--c-light-text); }

.btn--sm { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Lien fléché éditorial */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--f-label);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-cyan);
  transition: color var(--t-fast);
}
.link-arrow svg { transition: transform var(--t-base); }
.link-arrow:hover { color: var(--c-cyan-hi); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--light .link-arrow { color: var(--c-light-text); }
.section--light .link-arrow:hover { color: var(--c-cyan-deep); }

/* Puce d'information */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: rgba(245, 245, 242, 0.03);
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.tag--cyan { color: var(--c-cyan); border-color: rgba(0, 174, 211, 0.4); background: rgba(0, 174, 211, 0.08); }
.tag--orange { color: var(--c-orange); border-color: rgba(242, 167, 20, 0.4); background: rgba(242, 167, 20, 0.08); }
.tag--green { color: var(--c-green); border-color: rgba(131, 186, 50, 0.4); background: rgba(131, 186, 50, 0.08); }
.section--light .tag { border-color: var(--c-line-light); color: var(--c-light-muted); background: rgba(20, 24, 29, 0.04); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
}


/* =====================================================================
   08. EN-TÊTE ET NAVIGATION
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base), border-color var(--t-base),
    backdrop-filter var(--t-base);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(8, 10, 13, 0.9);
  border-bottom-color: var(--c-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

/* Le logo est posé dans un cartouche blanc : son fond blanc est assumé */
/* Le logo officiel « blanc + couleurs » est conçu pour un fond sombre :
   il n'a plus besoin du cartouche blanc qui isolait l'ancien PNG. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: var(--r-sm);
  transition: opacity var(--t-base);
}
.brand:hover { opacity: 0.78; }
.brand:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 6px; }
.brand__logo {
  display: block;
  width: auto;
  height: 38px;
}
@media (min-width: 1000px) {
  .brand__logo { height: 46px; }
}

.site-nav { display: none; }

@media (min-width: 1000px) {
  :root { --header-h: 80px; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 0.4rem + 1.4vw, 2rem);
  }
  .site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 0.2rem + 1.3vw, 1.75rem);
    list-style: none;
  }
  .site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--c-text);
    transition: color var(--t-fast);
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 2px;
    background: var(--c-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
  }
  .site-nav__link:hover { color: var(--c-white); }
  .site-nav__link:hover::after { transform: scaleX(1); }
  .site-nav__link[aria-current="page"] { color: var(--c-white); }
  .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
}

/* Bouton du menu mobile */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  background: rgba(8, 10, 13, 0.5);
  color: var(--c-white);
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.nav-toggle:hover { border-color: var(--c-white); }
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
}

/* Panneau mobile */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--c-black);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav__list {
  list-style: none;
  border-top: 1px solid var(--c-line);
}
.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-label);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-white);
}
.mobile-nav__link span {
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--c-faint);
}
.mobile-nav__link[aria-current="page"] { color: var(--c-cyan); }
.mobile-nav__link[aria-current="page"] span { color: var(--c-cyan); }
.mobile-nav__footer {
  margin-top: auto;
  padding-top: var(--sp-6);
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 1000px) {
  .mobile-nav { display: none; }
}


/* =====================================================================
   09. HERO
   ===================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 900px);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  overflow: hidden;
  background: var(--c-black);
}
.hero--compact {
  min-height: min(62svh, 620px);
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
/* Voile : lisibilité garantie du texte quelle que soit la photo */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 13, 0.86) 0%, rgba(8, 10, 13, 0.42) 35%, rgba(8, 10, 13, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 10, 13, 0.9) 0%, rgba(8, 10, 13, 0.35) 62%, rgba(8, 10, 13, 0.6) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__grid {
  display: grid;
  gap: var(--sp-7);
}
@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr);
    align-items: end;
    gap: var(--sp-8);
  }
}

.hero__title {
  max-width: 16ch;
  margin-top: var(--sp-4);
}
.hero__title em {
  font-style: normal;
  color: var(--c-cyan);
}
.hero__text {
  margin-top: var(--sp-5);
  max-width: 54ch;
  font-size: var(--fs-lead);
  color: var(--c-text);
}
.hero__actions { margin-top: var(--sp-6); }

.hero__aside {
  display: grid;
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-strong);
}
.hero__signature {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-white);
}
.hero__readout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
}
.hero__scroll {
  display: none;
}
@media (min-width: 1000px) {
  .hero__scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transform: rotate(90deg) translateX(50%);
    transform-origin: right center;
    font-family: var(--f-label);
    font-size: var(--fs-micro);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-faint);
  }
  .hero__scroll::after {
    content: "";
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, var(--c-faint), transparent);
  }
}

/* Hero des pages intérieures */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem));
  padding-bottom: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
  overflow: hidden;
  background: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 900px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: var(--sp-8);
  }
}
.page-hero__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.page-hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 13, 0.55) 100%);
}

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: var(--fs-micro);
  font-family: var(--f-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-faint);
  margin-bottom: var(--sp-4);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--c-line-strong);
}
.breadcrumb a:hover { color: var(--c-cyan); }


/* =====================================================================
   10. BLOCS DE CONTENU
   ===================================================================== */

/* Grille éditoriale légèrement asymétrique */
.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 1rem + 5vw, 5rem); }
  .split--media-first > *:first-child { order: 2; }
  .split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  /* Le visuel occupe toute la hauteur de la rangée au lieu d'être centré. */
  .split--stretch { align-items: stretch; }
}

.media-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-anthracite);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 13, 0.92));
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-white);
}
.media-frame--offset { margin-top: clamp(0rem, -2rem + 4vw, 2.5rem); }

/* Liste à points techniques */
.check-list { list-style: none; display: grid; gap: var(--sp-3); }
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--c-text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 2px;
  background: var(--c-cyan);
}
.check-list--orange li::before { background: var(--c-orange); }
.section--light .check-list li { color: var(--c-light-text); }

/* Liste numérotée éditoriale */
.num-list { list-style: none; display: grid; gap: var(--sp-5); counter-reset: numlist; }
.num-list li {
  counter-increment: numlist;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}
.num-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.num-list li::before {
  content: counter(numlist, decimal-leading-zero);
  font-family: var(--f-label);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-cyan);
  padding-top: 0.15em;
}
.section--light .num-list li { border-color: var(--c-line-light); }

/* Carte générique sombre */
.panel {
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-anthracite);
}
.panel--flat { background: transparent; }
.panel--accent { border-left: 3px solid var(--c-cyan); }
.panel--orange { border-left: 3px solid var(--c-orange); }
.section--light .panel {
  background: #fff;
  border-color: var(--c-line-light);
}

/* Grille de faits / repères */
.facts {
  display: grid;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 640px) { .facts--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .facts--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .facts--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .facts--4 { grid-template-columns: repeat(4, 1fr); } }
.facts__item {
  padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  background: var(--c-ink);
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.facts__label {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-faint);
}
.facts__value {
  font-family: var(--f-label);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-white);
}
.section--light .facts { background: var(--c-line-light); border-color: var(--c-line-light); }
.section--light .facts__item { background: #fff; }
.section--light .facts__value { color: var(--c-light-text); }
.section--light .facts__label { color: var(--c-light-muted); }


/* =====================================================================
   11. FORMATIONS
   ===================================================================== */
.course-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 780px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Asymétrie : la première carte occupe toute la largeur */
  .course-grid > .course-card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .course-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .course-grid > .course-card:nth-child(1) { grid-column: span 6; }
  .course-grid > .course-card:nth-child(2) { grid-column: span 3; }
  .course-grid > .course-card:nth-child(3) { grid-column: span 3; }
  .course-grid > .course-card:nth-child(4) { grid-column: span 6; }
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-anthracite);
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base), background-color var(--t-base);
}
.course-card:hover {
  border-color: rgba(0, 174, 211, 0.45);
  transform: translateY(-3px);
}
.course-card:focus-within { border-color: var(--c-cyan); }

.course-card__media {
  position: relative;
  overflow: hidden;
  background: var(--c-elevated);
}
.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.course-card:hover .course-card__media img { transform: scale(1.04); }
.course-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.15), rgba(8, 10, 13, 0.75));
}
.course-card__level {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  left: 0.85rem;
}

.course-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
}
.course-card__index {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-faint);
}
.course-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.course-card__title a { position: static; }
.course-card__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
}

/* Première carte : image à gauche, texte à droite sur grand écran */
@media (min-width: 780px) {
  .course-card--feature { flex-direction: row; align-items: stretch; }
  .course-card--feature .course-card__media { flex: 0 0 46%; }
  .course-card--feature .course-card__media img { aspect-ratio: auto; min-height: 100%; }
  .course-card--feature .course-card__body { flex: 1; justify-content: center; }
}
.course-card--feature .course-card__media img { aspect-ratio: 16 / 10; }
.course-card__media img { aspect-ratio: 3 / 2; }

/* Carte sans photo (ateliers) : composition typographique */
.course-card--text {
  background:
    linear-gradient(140deg, rgba(242, 167, 20, 0.1), transparent 55%),
    var(--c-ink);
  border-color: rgba(242, 167, 20, 0.28);
}
.course-card--text:hover { border-color: rgba(242, 167, 20, 0.6); }
@media (min-width: 780px) {
  .course-card--text .course-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--sp-6);
    align-items: center;
  }
  .course-card--text .course-card__foot { grid-column: 1 / -1; }
}

/* Barre de filtres (page formations) */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--sp-7);
}
.filters__label {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-faint);
  margin-right: var(--sp-2);
}
.filter-btn {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-text);
  font-family: var(--f-label);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.filter-btn:hover { border-color: var(--c-white); color: var(--c-white); }
.filter-btn[aria-pressed="true"] {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
  color: #04212b;
  font-weight: 700;
}
.filters__count {
  margin-left: auto;
  font-size: var(--fs-small);
  color: var(--c-faint);
}


/* =====================================================================
   12. MÉTHODE ET TIMELINE
   ===================================================================== */
.method {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  counter-reset: step;
}
@media (min-width: 900px) {
  .method {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-5);
  }
  /* Ligne de timeline horizontale reliant les quatre temps */
  .method::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(90deg,
      var(--c-line-strong) 0 6px, transparent 6px 12px);
  }
}

.method__step {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding-top: 3.25rem;
  counter-increment: step;
}
.method__step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: var(--c-black);
  font-family: var(--f-label);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}
.method__step:last-child::before {
  border-color: rgba(242, 167, 20, 0.6);
  color: var(--c-orange);
}
.method__step h3 { font-size: 1.125rem; }
.method__wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 26px;
  margin-top: var(--sp-2);
}
.method__wave span {
  width: 2px;
  background: var(--c-line-strong);
}


/* =====================================================================
   13. MATÉRIEL ET PROFILS
   ===================================================================== */
.gear-grid {
  display: grid;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 560px) { .gear-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gear-grid { grid-template-columns: repeat(3, 1fr); } }
.gear-item {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: clamp(1.1rem, 0.9rem + 0.7vw, 1.5rem);
  background: var(--c-ink);
  transition: background-color var(--t-base);
}
.gear-item:hover { background: var(--c-anthracite-hi); }
.gear-item__icon {
  width: 26px;
  height: 26px;
  color: var(--c-cyan);
}
.gear-item h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.gear-item p { font-size: var(--fs-small); color: var(--c-muted); }

.profile-grid {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 700px) { .profile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .profile-grid { grid-template-columns: repeat(3, 1fr); } }
.profile-item {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: var(--sp-5) 0;
  border-top: 2px solid var(--c-light-text);
}
.profile-item__num {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-orange);
}
.profile-item h3 { font-size: 1.0625rem; }
.profile-item p { font-size: var(--fs-small); color: var(--c-light-muted); }


/* =====================================================================
   14. SESSIONS
   ===================================================================== */
.sessions { display: grid; gap: 0; }
.session-row {
  display: grid;
  gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--c-line);
  align-items: center;
}
.session-row:first-child { border-top: 1px solid var(--c-line); }
@media (min-width: 760px) {
  .session-row {
    grid-template-columns: 12rem minmax(0, 1fr) auto;
  }
}
.session-row__date {
  font-family: var(--f-label);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-cyan);
}
.session-row__note {
  font-size: var(--fs-small);
  color: var(--c-faint);
}

/* --- Planning des sessions ------------------------------------------------
   Une carte par journée (samedi, dimanche), contenant ses deux créneaux.
   Les états proviennent du statut renvoyé par la feuille Google. */
.planning { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
/* Les colonnes multiples ne valent que pour le planning pleine largeur.
   En colonne latérale (.planning--compact), on reste sur une seule colonne :
   la largeur de la fenêtre ne dit rien de la largeur du conteneur.
   minmax(0, 1fr) empêche une carte de pousser la grille au-delà du parent. */
@media (min-width: 720px) {
  .planning:not(.planning--compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .planning:not(.planning--compact) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.planning-day {
  display: grid;
  min-width: 0;
  gap: var(--sp-3);
  align-content: start;
  padding: var(--sp-5);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-anthracite);
}
.planning-day__title { font-size: var(--fs-h4); margin: 0; }

.slot {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-faint);
  border-radius: var(--r-sm);
  background: var(--c-black);
}
.slot--ouvert { border-left-color: var(--c-cyan); }
.slot--complet { border-left-color: var(--c-orange); opacity: 0.72; }
.slot--annule { border-left-color: var(--c-faint); opacity: 0.55; }
.slot--annule .slot__course { text-decoration: line-through; }

.slot__head { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: baseline; }
.slot__time {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.slot__course { font-weight: 600; color: var(--c-white); }
.slot__places {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--c-faint);
}
.slot__places--last { color: var(--c-orange); }
.slot__note { font-size: var(--fs-small); color: var(--c-muted); }
.slot__action { margin-top: 0.35rem; justify-self: start; }

/* État de chargement / erreur du calendrier */
.planning-status {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-faint);
}
.planning-status--erreur { color: var(--c-orange); }

.empty-state {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-md);
  background:
    linear-gradient(120deg, rgba(0, 174, 211, 0.06), transparent 60%),
    var(--c-anthracite);
}


/* =====================================================================
   15. TÉMOIGNAGES
   ===================================================================== */
.quote-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 820px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
.quote {
  display: grid;
  gap: var(--sp-4);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-anthracite);
}
.quote blockquote {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-white);
}
.quote figcaption {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cyan);
}


/* =====================================================================
   16. FAQ
   ===================================================================== */
.faq {
  border-top: 1px solid var(--c-line);
}
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  min-height: 64px;
  padding: 1.15rem 0;
  border: 0;
  background: transparent;
  color: var(--c-white);
  font-family: var(--f-label);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast);
}
.faq__trigger:hover { color: var(--c-cyan); }
.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  transition: border-color var(--t-fast), transform var(--t-base);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-base), opacity var(--t-fast);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__trigger[aria-expanded="true"] { color: var(--c-cyan); }
.faq__trigger[aria-expanded="true"] .faq__icon { border-color: var(--c-cyan); }
.faq__trigger[aria-expanded="true"] .faq__icon::after { opacity: 0; }

.faq__panel {
  overflow: hidden;
  height: 0;
  transition: height var(--t-base);
}
.faq__panel-inner {
  padding-bottom: 1.4rem;
  padding-right: clamp(0rem, -2rem + 6vw, 3rem);
  color: var(--c-muted);
  max-width: 78ch;
}
.faq__panel-inner > * + * { margin-top: 0.9em; }
/* Sans JavaScript, toutes les réponses restent lisibles */
.no-js .faq__panel { height: auto; }


/* =====================================================================
   17. APPELS À L'ACTION
   ===================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
}
.cta__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.95) 15%, rgba(8, 10, 13, 0.65) 70%, rgba(8, 10, 13, 0.9) 100%);
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 900px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: var(--sp-8);
  }
}
.cta__title { max-width: 18ch; }

/* Bande d'appel intermédiaire, plus discrète */
.callout {
  display: grid;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-cyan);
  border-radius: var(--r-md);
  background: var(--c-anthracite);
}
@media (min-width: 820px) {
  .callout {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-6);
  }
}
.section--light .callout { background: #fff; border-color: var(--c-line-light); border-left-color: var(--c-cyan); }


/* =====================================================================
   18. FORMULAIRE
   ===================================================================== */
.form {
  display: grid;
  gap: var(--sp-5);
}
.form-grid {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.field { display: grid; gap: 0.45rem; }
.field__label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-white);
}
.field__label .req { color: var(--c-orange); }
.field__hint {
  font-size: var(--fs-micro);
  color: var(--c-faint);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  background: var(--c-ink);
  color: var(--c-white);
  font-size: 1rem;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder,
.textarea::placeholder { color: var(--c-faint); }
.input:hover,
.select:hover,
.textarea:hover { border-color: rgba(245, 245, 242, 0.35); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 211, 0.22);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a3abb5' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
}
.select option { background: var(--c-anthracite); color: var(--c-white); }

/* Case à cocher accessible */
.checkbox {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  cursor: pointer;
  font-size: var(--fs-small);
  color: var(--c-muted);
  padding: 0.35rem 0;
}
.checkbox input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-xs);
  background: var(--c-ink);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.checkbox input::before {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #04212b;
  border-bottom: 2px solid #04212b;
  transform: rotate(-45deg) scale(0);
  transition: transform var(--t-fast);
}
.checkbox input:checked {
  background: var(--c-cyan);
  border-color: var(--c-cyan);
}
.checkbox input:checked::before { transform: rotate(-45deg) scale(1); }
.checkbox input:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }

/* Erreurs */
.field__error {
  font-size: var(--fs-small);
  color: var(--c-orange-hi);
  min-height: 0;
}
.field--invalid .input,
.field--invalid .select,
.field--invalid .textarea {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(242, 167, 20, 0.18);
}
.field--invalid .checkbox input { border-color: var(--c-orange); }

/* Champ anti-spam : jamais visible, jamais annoncé */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Message de statut du formulaire */
.form-status {
  padding: var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
}
.form-status:empty { display: none; }
.form-status--ok { border-color: rgba(131, 186, 50, 0.5); background: rgba(131, 186, 50, 0.1); color: #b7e6a8; }
.form-status--error { border-color: rgba(242, 167, 20, 0.55); background: rgba(242, 167, 20, 0.1); color: #ffc79a; }
.form-status--info { border-color: rgba(0, 174, 211, 0.45); background: rgba(0, 174, 211, 0.08); color: #a9e6f8; }


/* =====================================================================
   19. PIED DE PAGE
   ===================================================================== */
.site-footer {
  position: relative;
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-6);
  background: var(--c-black);
  border-top: 1px solid var(--c-line);
}
/* Le bandeau d'action mobile est fixe : on dégage la fin du pied de page. */
@media (max-width: 767px) {
  .site-footer { padding-bottom: calc(var(--sp-6) + 96px + env(safe-area-inset-bottom, 0px)); }
}
.site-footer__grid {
  display: grid;
  gap: var(--sp-7);
}
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
}
@media (min-width: 1080px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}
.site-footer h2 {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-faint);
  margin-bottom: var(--sp-4);
}
.footer-list { list-style: none; display: grid; gap: 0.15rem; }
.footer-list a,
.footer-list span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: var(--fs-small);
  color: var(--c-muted);
  transition: color var(--t-fast);
}
.footer-list a:hover { color: var(--c-cyan); }

.footer-brand { display: grid; gap: var(--sp-4); justify-items: start; }
.footer-brand .brand__logo { height: 54px; }

.social-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  color: var(--c-muted);
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.social-link:hover {
  color: var(--c-cyan);
  border-color: rgba(0, 174, 211, 0.5);
  background: rgba(0, 174, 211, 0.08);
}
.social-link svg { width: 18px; height: 18px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-micro);
  color: var(--c-faint);
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.site-footer__bottom a:hover { color: var(--c-cyan); }


/* =====================================================================
   20. ÉLÉMENTS FLOTTANTS
   ===================================================================== */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  background: rgba(8, 10, 13, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--c-white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base),
    border-color var(--t-fast);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
@media (max-width: 767px) {
  /* Le bouton reste au-dessus du bandeau d'action, même si ses libellés passent sur deux lignes. */
  .to-top { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Bandeau d'action mobile */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-float);
  display: flex;
  gap: var(--sp-2);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 10, 13, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line);
  transform: translateY(110%);
  transition: transform var(--t-base);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { flex: 1; min-height: 46px; padding-inline: 0.6rem; font-size: 0.8125rem; }
/* Le libellé principal est le plus long : il reçoit davantage de largeur. */
.mobile-cta .btn:first-child { flex: 1.7; }
@media (min-width: 768px) { .mobile-cta { display: none; } }


/* =====================================================================
   21. PAGES SECONDAIRES
   ===================================================================== */

/* Sommaire latéral des pages formation */
.course-layout { display: grid; gap: var(--sp-7); }
@media (min-width: 1000px) {
  .course-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
    align-items: start;
  }
  .course-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.course-aside { display: grid; gap: var(--sp-5); }

.toc { list-style: none; display: grid; gap: 0.1rem; }
.toc a {
  display: block;
  padding: 0.5rem 0 0.5rem 0.9rem;
  border-left: 2px solid var(--c-line);
  font-size: var(--fs-small);
  color: var(--c-muted);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.toc a:hover { color: var(--c-white); border-left-color: var(--c-cyan); }

.course-block { padding-top: var(--sp-7); }
.course-block + .course-block { margin-top: var(--sp-7); border-top: 1px solid var(--c-line); }
.course-block__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.course-block__num {
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-cyan);
  flex: none;
}

/* Galerie de la page Academy */
.gallery {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(4) { grid-column: span 2; }
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  background: var(--c-anthracite);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform var(--t-slow);
}
.gallery__item:hover img { transform: scale(1.05); }

/* Dispositifs de financement */
.funding-list { display: grid; gap: var(--sp-4); }
@media (min-width: 820px) { .funding-list { grid-template-columns: repeat(2, 1fr); } }
.funding-item {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-anthracite);
}
.funding-item__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-label);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.funding-item__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.funding-item__status--ok { color: var(--c-green); }
.funding-item__status--todo { color: var(--c-faint); }

/* Carte mise en avant : le financement personnel est le seul dispositif dont les
   conditions ne dépendent d'aucun organisme tiers. Il occupe toute la largeur,
   au-dessus des pistes à étudier. */
.funding-item--feature {
  border-color: rgba(0, 174, 211, 0.38);
  border-left: 3px solid var(--c-cyan);
  background: linear-gradient(180deg, var(--c-anthracite-hi), var(--c-anthracite));
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
}
.funding-item--feature h3 { font-size: var(--fs-h3); }
.funding-item--feature .lead { margin-top: 0; }
@media (min-width: 820px) {
  .funding-item--feature { grid-column: 1 / -1; }
}

/* Coordonnées */
.contact-cards { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  display: grid;
  gap: var(--sp-3);
  align-content: start;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-anthracite);
}
.contact-card h3 { font-size: 1rem; }
.contact-card a { color: var(--c-cyan); }
.contact-card a:hover { color: var(--c-cyan-hi); text-decoration: underline; text-underline-offset: 3px; }

/* Pages légales */
.legal { max-width: 74ch; }
.legal h2 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
}
.legal h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.0625rem; margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.legal p, .legal li { color: var(--c-muted); }
.legal ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; margin-block: var(--sp-4); }
.legal p + p { margin-top: 1em; }
.legal a { color: var(--c-cyan); text-decoration: underline; text-underline-offset: 3px; }

/* Bloc « information à confirmer » visible uniquement quand la donnée manque */
.pending-note {
  padding: var(--sp-4);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  color: var(--c-muted);
  background: rgba(245, 245, 242, 0.02);
}


/* =====================================================================
   22. ANIMATIONS D'APPARITION
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* Sans JavaScript, tout le contenu reste visible */
.no-js .reveal { opacity: 1; transform: none; }

/* Léger décalage des visuels au défilement (piloté en JS) */
.parallax-media { will-change: transform; }


/* =====================================================================
   23. PRÉFÉRENCES DE MOUVEMENT ET IMPRESSION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .equalizer span { animation: none; transform: scaleY(0.75); }
  .reveal { opacity: 1; transform: none; }
  .parallax-media { transform: none !important; }
}

@media print {
  body { background: #fff; color: #000; }
  body::after,
  .site-header,
  .mobile-nav,
  .to-top,
  .mobile-cta,
  .hero__media,
  .cta__media { display: none !important; }
  .hero, .page-hero, .section { padding-block: 1.5rem; }
  h1, h2, h3, h4 { color: #000; }
  a { color: #000; text-decoration: underline; }
}


/* ---------------------------------------------------------------------
   Hauteurs des barres d'onde (motif fixe, non animé)
   --------------------------------------------------------------------- */
.method__wave span:nth-child(1),
.waveform span:nth-child(8n + 1) { height: 32%; }
.method__wave span:nth-child(2),
.waveform span:nth-child(8n + 2) { height: 68%; }
.method__wave span:nth-child(3),
.waveform span:nth-child(8n + 3) { height: 44%; }
.method__wave span:nth-child(4),
.waveform span:nth-child(8n + 4) { height: 92%; }
.method__wave span:nth-child(5),
.waveform span:nth-child(8n + 5) { height: 55%; }
.method__wave span:nth-child(6),
.waveform span:nth-child(8n + 6) { height: 78%; }
.method__wave span:nth-child(7),
.waveform span:nth-child(8n + 7) { height: 38%; }
.method__wave span:nth-child(8),
.waveform span:nth-child(8n) { height: 62%; }


/* ---------------------------------------------------------------------
   Utilitaires d'espacement et de largeur de ligne
   --------------------------------------------------------------------- */
/* Titre destiné aux lecteurs d'écran : structure le document sans s'afficher. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mt-5 { margin-top: var(--sp-5); }
.mb-5 { margin-bottom: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.measure { max-width: 48ch; }
.measure-sm { max-width: 34ch; }

/* Code inline dans les notes techniques et les pages légales */
code {
  padding: 0.1em 0.4em;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xs);
  background: rgba(245, 245, 242, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--c-cyan);
  word-break: break-word;
}


/* --- Liens dans le corps de texte -------------------------------------------
   La règle de base « a { color: inherit; text-decoration: none } » rend les
   liens en ligne impossibles à distinguer du texte qui les entoure. On les
   rétablit là où ils apparaissent réellement en contenu rédigé.
   Sur fond clair, le cyan ne dépasse pas 2,4:1 : on bascule sur sa variante
   foncée, qui repasse au-dessus du seuil.
   -------------------------------------------------------------------------- */
.faq__panel-inner a,
.pending-note a,
.text-muted a,
.num-list a,
.checkbox a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section--light .faq__panel-inner a,
.section--light .pending-note a,
.section--light .text-muted a,
.section--light .num-list a,
.section--light .checkbox a {
  color: var(--c-cyan-deep);
}


/* --- Pages d'erreur (400, 401, 403, 404, 500, 503) --------------------------
   Servies à n'importe quelle profondeur d'URL : tous leurs chemins sont
   absolus. Elles ne chargent ni config.js ni main.js, pour rester affichables
   même lorsque quelque chose est cassé côté serveur.
   -------------------------------------------------------------------------- */
.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
}
.error-page__inner {
  display: grid;
  gap: var(--sp-4);
  justify-items: center;
  max-width: 36rem;
}
.error-page__logo { height: 46px; width: auto; }

/* Le dégradé de la signature, repris du logo. Le code reste lisible même si
   le fond dégradé n'est pas géré : la couleur de repli s'applique alors. */
.error-page__code {
  margin: 0;
  font-family: var(--f-label);
  font-size: clamp(3.5rem, 14vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--c-cyan);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .error-page__code {
    background: var(--g-signature);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.error-page__title { margin: 0; font-size: var(--fs-h2); }
.error-page__text { margin: 0; color: var(--c-muted); max-width: 32rem; }

.error-page__liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  width: 100%;
}
.error-page__liens a {
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.error-page__liens a:hover { color: var(--c-cyan); }
