/* ==========================================================================
   Expertis Académie — Design system
   Tokens générés selon le skill « ui-design-system » :
   couleurs de marque (logo), grille 8 pt, échelle typographique 1,25 (tierce majeure),
   rayons, ombres, durées d’animation, z-index, points de rupture.
   Documentation : DESIGN-SYSTEM.md
   ========================================================================== */

/* Polices Fontshare (licence ITF Free Font, usage commercial autorisé), auto-hébergées :
   Cabinet Grotesk pour les titres, Satoshi pour le texte. Aucune requête externe. */
@font-face {
  font-family: "Cabinet Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cabinet-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cabinet Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cabinet-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "Cabinet Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/cabinet-grotesk-800.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/satoshi-400.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/satoshi-500.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/satoshi-700.woff2") format("woff2");
}

:root {
  /* Couleurs — marque */
  --navy: #081c3b;          /* marine du logo */
  --navy-2: #0f2a52;
  --blue: #1f4fe0;          /* bleu cobalt de la flèche du logo */
  --blue-dark: #1940b8;     /* survol, contraste AA renforcé */
  --sky: #e9effd;
  --sky-2: #f4f7fe;
  /* Couleurs — neutres */
  --ink: #0b1530;           /* titres — 17,8:1 sur blanc */
  --text: #3d465c;          /* texte courant — 9,6:1 */
  --muted: #5f687d;         /* texte secondaire — 5,6:1 (AA) */
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --surface: #ffffff;        /* cartes, encarts, champs */
  --header-bg: rgba(255, 255, 255, .94);
  --band: #081c3b;           /* bandeaux sombres (CTA, en-têtes de tableau) */
  --btn-bg: #1f4fe0;         /* fond du bouton principal, identique dans les deux thèmes */
  --btn-bg-hover: #1940b8;
  --input-border: #cfd6e4;
  --ok-bg: #e8f6f0;
  --err-bg: #fdeceb;
  color-scheme: light dark;
  /* Couleurs — sémantiques */
  --success: #12805c;
  --error: var(--error);
  --warning-bg: #fff4d6;
  --warning-fg: #7a5300;

  /* Espacements — grille 8 pt */
  --space-0-5: 4px;
  --space-1: 8px;
  --space-1-5: 12px;
  --space-2: 16px;
  --space-2-5: 20px;
  --space-3: 24px;
  --space-3-5: 28px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;
  --space-12: 96px;

  /* Typographie — échelle 1,25 */
  --font-head: "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: .8rem;        /* 12,8 px */
  --text-sm: .875rem;      /* 14 px */
  --text-ui: .9375rem;     /* 15 px — libellés, boutons */
  --text-base: 1rem;       /* 16 px */
  --text-md: 1.125rem;     /* 18 px */
  --text-lg: 1.25rem;      /* 20 px */
  --text-xl: 1.5625rem;    /* 25 px */
  --text-2xl: 1.953rem;    /* 31 px */
  --text-3xl: 2.441rem;    /* 39 px */
  --text-4xl: 3.052rem;    /* 49 px */
  --leading-tight: 1.15;
  --leading-normal: 1.65;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --radius: var(--radius-md);

  /* Ombres (teintées marine) */
  --shadow-sm: 0 1px 2px rgba(8, 28, 59, .06);
  --shadow: 0 1px 2px rgba(8, 28, 59, .05), 0 8px 24px rgba(8, 28, 59, .07);
  --shadow-lg: 0 2px 4px rgba(8, 28, 59, .06), 0 18px 40px rgba(8, 28, 59, .12);
  --shadow-btn: 0 8px 20px rgba(31, 79, 224, .28);

  /* Animation */
  --duration-fast: 150ms;
  --duration: 250ms;
  --duration-slow: 500ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Z-index */
  --z-header: 50;
  --z-mobile-bar: 60;
  --z-skip: 100;

  /* Mise en page — points de rupture de référence : 640 / 900 / 1080 px */
  --container: 1160px;
  --tap: 44px;             /* cible tactile minimale (WCAG 2.5.5) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(var(--text-2xl), 4.6vw, var(--text-4xl)); font-weight: 700; }
h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--band); color: #fff; padding: var(--space-1) var(--space-1-5); border-radius: var(--radius-sm); z-index: var(--z-skip); }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }
.section { padding: var(--space-12) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: var(--space-8) 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-1-5);
}
.lead { font-size: var(--text-md); color: var(--text); max-width: 60ch; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--space-1) 0 0; max-width: 56ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  font-family: var(--font-head); font-weight: 600; font-size: var(--text-ui);
  padding: var(--space-1-5) var(--space-3); border-radius: var(--radius-full); border: 2px solid transparent;
  cursor: pointer; transition: transform var(--duration-fast) ease, background var(--duration-fast) ease, box-shadow var(--duration-fast) ease, color var(--duration-fast);
  min-height: var(--tap); white-space: nowrap;
}
.btn--primary { background: var(--btn-bg); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--btn-bg-hover); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 2px 8px rgba(8,28,59,.06); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #ffffff; color: #081c3b; }
.btn--light:hover { background: #e9effd; color: #081c3b; }
.btn--sm { padding: var(--space-1) var(--space-2); min-height: var(--tap); font-size: var(--text-sm); }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: var(--space-1-5); flex-wrap: wrap; }

/* En-tête */

.header { position: sticky; top: 0; z-index: var(--z-header); background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--duration); }
.header.is-scrolled { border-bottom-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: var(--space-3); }
.brand { display: flex; align-items: center; gap: var(--space-1-5); color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img { width: 52px; height: auto; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: var(--text-md); line-height: 1.05; letter-spacing: -.01em; }
.brand__name small { display: block; font-weight: 500; font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand__name, .nav a, .nav__item > button { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--text); font-size: var(--text-ui); font-weight: 500; padding: var(--space-1) var(--space-1-5); border-radius: var(--radius-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav__item { position: relative; }
.nav__item > button { all: unset; display: inline-flex; align-items: center; cursor: pointer; color: var(--text); font-size: var(--text-ui); font-weight: 500; padding: var(--space-1) var(--space-1-5); border-radius: var(--radius-sm); }
.nav__item > button:hover { color: var(--blue); }
.nav__item > button::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: var(--space-1); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: var(--space-1); min-width: 300px; display: none;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown, .nav__item.is-open .dropdown { display: block; }
.dropdown a { display: block; padding: var(--space-1) var(--space-1-5); border-radius: var(--radius-md); }
.dropdown a:hover { background: var(--sky-2); }
.dropdown strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: var(--text-sm); }
.dropdown span { display: block; font-size: var(--text-xs); color: var(--muted); }
.header__cta { display: flex; gap: var(--space-1); align-items: center; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-md); width: 44px; height: 44px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--navy); margin: 0 auto; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* Hero */

.media-frame__box img { border-radius: var(--radius-xl); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.float-card__icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }

/* Bandeau de confiance */
.trustbar__item { display: flex; gap: var(--space-1-5); align-items: center; padding: var(--space-2-5) var(--space-2); font-size: var(--text-sm); }
.trustbar__item + .trustbar__item { border-left: 1px solid var(--line); }
.trustbar__item strong { color: var(--ink); font-family: var(--font-head); display: block; font-size: var(--text-ui); }
.trustbar__item span { color: var(--muted); font-size: var(--text-xs); }

/* Certification Qualiopi */
.qualiopi-section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.qualiopi-certificate {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-4);
  background: var(--sky-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.qualiopi-certificate__logo {
  display: grid;
  place-items: center;
  min-height: 184px;
  padding: var(--space-2);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(8, 28, 59, .10);
}
.qualiopi-certificate__logo img { width: min(100%, 285px); height: auto; filter: none; }
.qualiopi-certificate__content { max-width: 660px; }
.qualiopi-certificate__content .eyebrow { margin-bottom: var(--space-1); }
.qualiopi-certificate__content h2 { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.qualiopi-certificate__content > p:not(.eyebrow):not(.qualiopi-certificate__scope) { font-size: var(--text-md); color: var(--text); margin-bottom: var(--space-2); }
.qualiopi-certificate__scope {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
}
.qualiopi-certificate__scope span { color: var(--blue); padding: 0 .15em; }

@media (max-width: 640px) {
  .qualiopi-certificate { grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-3); }
  .qualiopi-certificate__logo { min-height: 148px; }
  .qualiopi-certificate__content > p:not(.eyebrow):not(.qualiopi-certificate__scope) { font-size: var(--text-base); }
}

/* Icônes */
.icon { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* Grilles et cartes */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }

/* Cartes formation (style « Other courses ») */

/* Split image / texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--space-3-5); display: grid; gap: var(--space-1-5); }
.checklist li { display: flex; gap: var(--space-1-5); align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist--2 { grid-template-columns: 1fr 1fr; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: var(--space-3-5) 0; }
.stat { background: var(--sky-2); border-radius: var(--radius); padding: var(--space-2); }
.stat strong { display: block; font-family: var(--font-head); font-size: var(--text-xl); color: var(--navy); line-height: 1.1; }
.stat span { font-size: var(--text-sm); color: var(--muted); }

/* Étapes */

/* Financement */
.fund { display: flex; gap: var(--space-2); padding: var(--space-3); background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.fund h3 { font-size: var(--text-base); margin-bottom: var(--space-0-5); }
.fund p { margin: 0; font-size: var(--text-ui); }
.fund__who { display: inline-block; font-size: var(--text-xs); font-weight: 600; color: var(--blue); background: var(--sky); padding: 3px var(--space-1); border-radius: var(--radius-full); margin-bottom: var(--space-1); }

/* Tarifs */
.price-card__cat { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-family: var(--font-head); }
.price-card__price { font-family: var(--font-head); font-size: var(--text-3xl); font-weight: 700; color: var(--navy); margin: var(--space-1-5) 0 2px; }
.price-card__note { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-2-5); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-2-5) var(--space-5) var(--space-2-5) 0; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: var(--text-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-size: var(--text-lg); font-weight: 500; transition: transform var(--duration);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 var(--space-2-5); }
.faq details > div p:last-child { margin: 0; }
.faq-group + .faq-group { margin-top: var(--space-7); }
.faq-group h2 { font-size: var(--text-xl); }

/* Bandeau CTA sombre */

/* Page formation : en-tête + onglets + encart */
.page-hero { padding: var(--space-7) 0 var(--space-9); }
.page-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.breadcrumb { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-hidden] { margin: 0 var(--space-1); }
.page-hero--simple { background: var(--bg-soft); padding: var(--space-8) 0; }
.page-hero--simple .container { display: block; }

.course-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-7); align-items: start; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button {
  all: unset; cursor: pointer; padding: var(--space-1-5) var(--space-2-5); font-size: var(--text-sm); font-weight: 600; color: var(--muted);
  font-family: var(--font-head); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tabs button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.tab-panel[hidden] { display: none; }
.prose h2 { font-size: var(--text-xl); margin-top: 0; }
.prose h3 { margin-top: var(--space-4); }
.prose ul { margin: 0 0 1.4em; }
.prose li { margin-bottom: var(--space-0-5); }
.prose .figure { margin: var(--space-4) 0; }
.prose .figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.module { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: var(--space-1-5); }
.module summary { list-style: none; cursor: pointer; padding: var(--space-2) var(--space-2-5); display: flex; justify-content: space-between; gap: var(--space-2); align-items: center; }
.module summary::-webkit-details-marker { display: none; }
.module summary strong { font-family: var(--font-head); color: var(--ink); font-size: var(--text-base); }
.module summary small { display: block; color: var(--blue); font-weight: 600; font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.module summary em { font-style: normal; font-size: var(--text-xs); color: var(--muted); background: var(--sky-2); padding: var(--space-0-5) var(--space-1); border-radius: var(--radius-full); white-space: nowrap; }
.module > div { padding: 0 var(--space-2-5) var(--space-2); }
.module ul { margin: 0; }
.module .deliverable { margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--navy-2); background: var(--sky-2); padding: var(--space-1) var(--space-1-5); border-radius: var(--radius-md); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.info-box { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-2-5); background: var(--surface); }
.info-box h3 { font-size: var(--text-base); margin: 0 0 var(--space-1); }
.info-box p, .info-box ul { font-size: var(--text-ui); margin: 0; }

.buy-card { position: sticky; top: 104px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-3-5); border: 1px solid var(--line); }
.buy-card h2 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.buy-card select { width: 100%; padding: var(--space-1-5) var(--space-1-5); border: 1px solid var(--line); border-radius: var(--radius-md); font: inherit; font-size: var(--text-sm); color: var(--ink); background: var(--bg-soft); margin-bottom: var(--space-2); }
.buy-card__price { font-family: var(--font-head); font-size: var(--text-2xl); color: var(--navy); font-weight: 700; display: flex; align-items: baseline; gap: var(--space-1); }
.buy-card__price small { font-size: var(--text-xs); color: var(--muted); font-weight: 500; }
.buy-card__hint { font-size: var(--text-sm); color: var(--muted); margin: var(--space-0-5) 0 var(--space-2); min-height: 2.6em; }
.buy-card .btn + .btn { margin-top: var(--space-1); }
.meta-list { list-style: none; padding: var(--space-2-5) 0 0; margin: var(--space-2-5) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-1-5); font-size: var(--text-sm); }
.meta-list li { display: flex; gap: var(--space-1); align-items: center; }
.meta-list .icon { width: 18px; height: 18px; color: var(--blue); }
.meta-list b { color: var(--ink); font-weight: 600; }

/* Formulaire */
.form { display: grid; gap: var(--space-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--ink); margin-bottom: var(--space-0-5); }
.field input, .field select, .field textarea {
  width: 100%; padding: var(--space-1-5) var(--space-1-5); border: 1px solid var(--input-border); border-radius: var(--radius-md); font: inherit; font-size: var(--text-ui); color: var(--ink); background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,79,224,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.field--check { display: flex; gap: var(--space-1); align-items: flex-start; font-size: var(--text-sm); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form__status { font-size: var(--text-ui); padding: var(--space-1-5) var(--space-1-5); border-radius: var(--radius-md); display: none; }
.form__status.is-ok { display: block; background: var(--ok-bg); color: var(--success); }
.form__status.is-err { display: block; background: var(--err-bg); color: var(--error); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2-5); }
.contact-list li { display: flex; gap: var(--space-1-5); }
.contact-list strong { display: block; color: var(--ink); font-family: var(--font-head); }

/* Pages légales */
.legal { max-width: 820px; }
.legal h2 { font-size: var(--text-lg); margin-top: var(--space-5); }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-1) var(--space-2-5); margin: 0; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0; }
.todo { background: var(--warning-bg); color: var(--warning-fg); padding: 1px var(--space-0-5); border-radius: 4px; font-size: .9em; }

/* Pied de page */
.footer { padding: var(--space-9) 0 var(--space-4); border-top: 1px solid var(--line); margin-top: var(--space-12); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: var(--space-5); }
.footer h3, .footer__title { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-2); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.footer ul a { color: var(--text); }
.footer ul a:hover { color: var(--blue); }
.footer__about { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-2); }
.footer__legal { margin-top: var(--space-7); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--muted); display: grid; gap: var(--space-1); }
.footer__legal-links { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.footer__legal-links a { color: var(--muted); }
.qualiopi-badge { display: inline-flex; gap: var(--space-1); align-items: center; border: 1px solid var(--line); padding: var(--space-1) var(--space-1-5); border-radius: var(--radius-md); font-size: var(--text-xs); color: var(--navy); margin-top: var(--space-2); line-height: 1.3; }
.qualiopi-badge strong { font-family: var(--font-head); }

/* Barre mobile fixe */
.mobile-bar { display: none; }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--duration-slow) ease, transform var(--duration-slow) ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--space-1-5) var(--space-3) var(--space-3); box-shadow: var(--shadow);
  }
  .nav.is-open a, .nav.is-open .nav__item > button { padding: var(--space-1-5) var(--space-0-5); font-size: var(--text-base); display: block; }
  .nav.is-open .dropdown { position: static; transform: none; box-shadow: none; border: 0; padding: 0 0 0 var(--space-1-5); display: block; min-width: 0; }
  .course-layout { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: var(--space-9) 0; }
  .split--rev .split__media { order: 0; }
  .trustbar__item:nth-child(3) { border-left: 0; }
  .trustbar__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; padding-bottom: var(--space-8); }
  .container { padding: 0 var(--space-2); }
  .header .container { min-height: 66px; }
  .brand img { width: 42px; }
  .brand__name { font-size: var(--text-base); }
  .header__cta .btn--primary { display: none; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-1); }
  .stat { padding: var(--space-1-5) var(--space-1); }
  .stat strong { font-size: var(--text-lg); }
  .trustbar__item + .trustbar__item { border-left: 0; border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; }
  .legal dd { margin-bottom: var(--space-1); }
  .btn-row .btn { flex: 1 1 auto; }
  .card { padding: var(--space-3); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobile-bar);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 46px; padding: var(--space-1); }
}

/* Empêche les colonnes de grille de déborder sur mobile */
.course-layout > *, .split > *, .hero .container > *, .page-hero .container > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* Liens dans le texte : soulignés pour ne pas reposer sur la seule couleur (WCAG 1.4.1) */
p a, li a:not(.btn), dd a, .lead a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer ul a, .nav a, .dropdown a, .breadcrumb a, .course-card a, .footer__legal-links a { text-decoration: none; }
.footer__title { font-family: var(--font-head); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 var(--space-2); font-weight: 700; }
/* Cibles tactiles d'au moins 24 px (WCAG 2.5.8) pour les petits liens */

/* Blocs texte + image verticale (fiches formation) : l'image suit la hauteur du texte */
.text-media { display: grid; grid-template-columns: minmax(220px, 38%) 1fr; gap: var(--space-5); align-items: stretch; margin: var(--space-6) 0; }
.text-media--rev { grid-template-columns: 1fr minmax(220px, 38%); }
.text-media--rev .text-media__img { order: 2; }
.text-media > * { min-width: 0; }
.text-media__img { margin: 0; position: relative; min-height: 340px; }
.text-media__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.text-media h3:first-child { margin-top: 0; }
.text-media ul:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .text-media, .text-media--rev { grid-template-columns: 1fr; gap: var(--space-3); margin: var(--space-5) 0; }
  .text-media--rev .text-media__img { order: 0; }
  .text-media__img { min-height: 0; aspect-ratio: 4 / 5; max-height: 460px; }
}

/* ==========================================================================
   Refonte (skill design-taste-frontend) : moins de gabarit, plus d'éditorial.
   Règle de formes : photos et blocs 16 px (--radius-lg), boutons en pilule,
   aucune carte en boîte sur l'accueil (l'espace sépare les contenus).
   ========================================================================== */
h1 { letter-spacing: -.025em; }
h2 { letter-spacing: -.02em; font-weight: 600; }
h3 { font-weight: 600; }
.btn:active { transform: scale(.98); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }

/* Hero : texte à gauche, photo verticale à droite */
.hero { padding: var(--space-8) 0 var(--space-10); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-8); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 3.5vw, 2.9rem); line-height: 1.06; margin-bottom: var(--space-3); }
.hero h1 span { display: block; color: var(--blue); }
.hero .lead { font-size: var(--text-md); max-width: 44ch; margin-bottom: var(--space-4); }
.hero__media { margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; max-height: 640px; object-fit: cover; border-radius: var(--radius-lg); }
.hero__media--wide img { aspect-ratio: 3 / 2; }
.kicker { display: flex; align-items: center; gap: var(--space-1-5); font-family: var(--font-head); font-weight: 600; font-size: var(--text-sm); color: var(--navy-2); margin: 0 0 var(--space-2); }
.kicker .glyph { width: 32px; height: 32px; }

/* Bandeau de faits, texte seul */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.facts__list li { padding: var(--space-3) var(--space-3) var(--space-3) 0; display: grid; gap: 2px; }
.facts__list li + li { padding-left: var(--space-3); border-left: 1px solid var(--line); }
.facts__list strong { font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.facts__list span { font-size: var(--text-sm); color: var(--muted); }

.section-intro { max-width: 62ch; margin-bottom: var(--space-6); }
.section-intro h2 { margin-bottom: var(--space-1); }
.section-intro p { color: var(--muted); margin: 0; }

/* Formations : une grande carte, deux plus petites */
.course-bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: var(--space-6); }
.course-bento .course-card--featured { grid-row: span 2; }
.course-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.course-card { display: flex; flex-direction: column; }
.course-card__media { display: block; overflow: hidden; border-radius: var(--radius-lg); }
.course-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform var(--duration-slow) var(--ease); }
.course-card--featured .course-card__media img { aspect-ratio: 5 / 4; }
.course-card:hover .course-card__media img { transform: scale(1.03); }
.course-card__body { padding-top: var(--space-2-5); display: flex; flex-direction: column; flex: 1; }
.course-card__kicker { display: flex; align-items: center; gap: var(--space-1-5); font-family: var(--font-head); font-weight: 600; font-size: var(--text-sm); color: var(--navy-2); margin-bottom: var(--space-1-5); }
.course-card__kicker .glyph { width: 34px; height: 34px; }
.course-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.course-card--featured h3 { font-size: var(--text-xl); }
.course-card h3 a { color: var(--ink); }
.course-card p { color: var(--muted); margin-bottom: var(--space-2); max-width: 52ch; }
.course-card__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-4); margin: 0 0 var(--space-2-5); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.course-card__facts dt { font-size: var(--text-xs); color: var(--muted); }
.course-card__facts dd { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-head); font-weight: 600; text-decoration: none !important; margin-top: auto; min-height: var(--tap); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--duration) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Méthode : colonne fixe + liste éditoriale */
.method { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; }
.method__aside { position: sticky; top: 112px; }
.method__aside p { color: var(--muted); max-width: 46ch; }
.method__media { margin: var(--space-4) 0 0; }
.method__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
.method__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin: 0; }
.method__list--grid { grid-template-columns: repeat(4, 1fr); }
.method__list > div { padding-top: var(--space-2); border-top: 2px solid var(--ink); }
.method__list dt { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: var(--text-md); }
.method__list dd { margin: var(--space-1) 0 0; color: var(--muted); }

/* Parcours : frise qui se trace à l'apparition */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; right: 0; top: 7px; height: 2px; background: var(--blue); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.timeline li { position: relative; padding-top: var(--space-5); }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--navy); transform: scale(0); transition: transform var(--duration-slow) var(--ease); }
.timeline li:nth-child(2)::before { transition-delay: .35s; }
.timeline li:nth-child(3)::before { transition-delay: .7s; }
.timeline li:nth-child(4)::before { transition-delay: 1.05s; border-color: var(--blue); background: var(--blue); }
.timeline h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.timeline p { color: var(--muted); margin: 0; }
.timeline.is-in::before { transform: scaleX(1); }
.timeline.is-in li::before { transform: scale(1); }
html:not(.js) .timeline::before, html:not(.js) .timeline li::before { transform: none; }

/* Financement */
.funding { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-8); align-items: center; }
.funding__media { margin: 0; }
.funding__media img { width: 100%; aspect-ratio: 4 / 5; max-height: 600px; object-fit: cover; border-radius: var(--radius-lg); }
.funding__rows { list-style: none; padding: 0; margin: var(--space-3) 0 0; border-top: 1px solid var(--line); }
.funding__rows a { display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-2); padding: var(--space-2) var(--space-1); text-decoration: none; border-radius: var(--radius-md); transition: background var(--duration-fast); }
.funding__rows a::after { content: "\2192"; grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--blue); font-family: var(--font-head); transition: transform var(--duration) var(--ease); }
.funding__rows a:hover { background: var(--surface); }
.funding__rows a:hover::after { transform: translateX(4px); }
.funding__rows strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.funding__rows span { color: var(--muted); font-size: var(--text-sm); }

/* À propos : photo panoramique puis texte en deux colonnes */
.wide-media { margin: 0; }
.wide-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius-lg); }
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-8); margin-top: var(--space-6); align-items: start; }
.about p { font-size: var(--text-md); }

.faq-split { display: grid; grid-template-columns: 1fr 1.7fr; gap: var(--space-8); align-items: start; }
.faq-split > div:first-child p { color: var(--muted); }
.faq-split .faq { max-width: none; margin: 0; }

/* Bandeau final + animation de marque */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--space-5); align-items: center; background: var(--band); border-radius: var(--radius-lg); padding: var(--space-8); }
.cta-band h2 { color: #fff; margin-bottom: var(--space-1); }
.cta-band p { color: #c3cde3; max-width: 46ch; margin-bottom: var(--space-3); }
.brand-motion { width: 100%; max-width: 320px; justify-self: end; overflow: visible; }
.brand-motion path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bm-draw 7s var(--ease) infinite; }
.bm-page { stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.bm-blue { stroke: #6f93ff; }
.bm-arrow, .bm-head { stroke: #3d6bff; stroke-width: 15; }
.bm-arrow { stroke-linecap: butt; }
.bm-head { stroke-linejoin: miter; }
.brand-motion .bm-p2 { animation-delay: .12s; }
.brand-motion .bm-p3 { animation-delay: .24s; }
.brand-motion .bm-p4 { animation-delay: .36s; }
.brand-motion .bm-arrow { animation-delay: .8s; }
.brand-motion .bm-head { animation-delay: 1.25s; }
@keyframes bm-draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  22% { stroke-dashoffset: 0; }
  82% { stroke-dashoffset: 0; opacity: 1; }
  94% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}

/* Pictogrammes animés des formations */
.glyph { flex: none; overflow: visible; }
.glyph .g-line { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; }
.glyph .g-faint { fill: none; stroke: var(--line); stroke-width: 2; }
.glyph .g-accent-fill { fill: var(--blue); }
.glyph .g-navy-fill { fill: var(--navy); }
.glyph .g-dot { fill: var(--surface); stroke: var(--navy); stroke-width: 2; }
.g-needle { transform-box: view-box; transform-origin: 32px 32px; animation: g-needle 5.5s var(--ease) infinite; }
@keyframes g-needle {
  0% { transform: rotate(-70deg); } 22% { transform: rotate(38deg); } 40% { transform: rotate(-16deg); }
  55% { transform: rotate(6deg); } 66%, 100% { transform: rotate(0); }
}
.g-block { fill: var(--navy); animation: g-drop 4.8s var(--ease) infinite both; }
.glyph .g-block.g-accent-fill { fill: var(--blue); }
.g-b2 { animation-delay: .35s; }
.g-b3 { animation-delay: .7s; }
@keyframes g-drop {
  0% { transform: translateY(-16px); opacity: 0; } 12% { transform: none; opacity: 1; }
  80% { opacity: 1; } 92%, 100% { transform: none; opacity: 0; }
}
.g-link { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: g-link 4.4s var(--ease) infinite; }
.g-l2 { animation-delay: .3s; } .g-l3 { animation-delay: .6s; } .g-l4 { animation-delay: .9s; }
@keyframes g-link { 0% { stroke-dashoffset: 1; } 18%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.g-node { fill: var(--surface); stroke: var(--navy); stroke-width: 2.5; }
.g-core { fill: var(--blue); transform-box: fill-box; transform-origin: center; animation: g-pulse 4.4s var(--ease) infinite; }
@keyframes g-pulse { 0%, 30% { transform: scale(.8); } 45% { transform: scale(1.18); } 60%, 100% { transform: scale(1); } }

.contact-list__icon { color: var(--blue); flex: none; padding-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .brand-motion path, .glyph *, .g-needle { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }
  .timeline::before, .timeline li::before { transition: none; transform: none; }
}

@media (max-width: 900px) {
  .hero { padding: var(--space-5) 0 var(--space-8); }
  .hero .container, .method, .funding, .about, .faq-split, .cta-band { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero__media img { aspect-ratio: 4 / 3; }
  .course-bento, .course-pair { grid-template-columns: 1fr; }
  .course-bento .course-card--featured { grid-row: auto; }
  .course-card--featured .course-card__media img { aspect-ratio: 3 / 2; }
  .method__aside { position: static; }
  .method__list--grid { grid-template-columns: 1fr 1fr; }
  .funding__media img { aspect-ratio: 4 / 3; max-height: none; }
  .wide-media img { aspect-ratio: 16 / 10; }
  .cta-band { padding: var(--space-6) var(--space-4); }
  .brand-motion { justify-self: start; max-width: 220px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: var(--space-5); }
  .timeline::before { display: none; }
}
@media (max-width: 640px) {
  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__list li, .facts__list li + li { padding: var(--space-2) var(--space-1-5) var(--space-2) 0; border-left: 0; }
  .method__list, .method__list--grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .course-card__facts { gap: var(--space-2-5); }
  .timeline { grid-template-columns: 1fr; row-gap: var(--space-4); padding-left: var(--space-4); }
  .timeline::before { display: block; left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .timeline.is-in::before { transform: scaleY(1); }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: calc(-1 * var(--space-4)); top: 4px; }
}

/* Blog : liste, article, encarts */
.container--narrow { max-width: 760px; }
.post-meta { font-size: var(--text-sm); color: var(--muted); margin: 0 0 var(--space-1); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.post-row { display: grid; grid-template-columns: 360px 1fr; gap: var(--space-5); align-items: center; }
.post-row__media { display: block; overflow: hidden; border-radius: var(--radius-lg); }
.post-row__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform var(--duration-slow) var(--ease); }
.post-row:hover .post-row__media img { transform: scale(1.03); }
.post-row h2 { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.post-row h2 a, .post-grid h3 a { color: var(--ink); text-decoration: none; }
.post-row p { color: var(--muted); max-width: 60ch; }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.post-grid__media { display: block; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: var(--space-2); }
.post-grid__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-grid h3 { font-size: var(--text-md); }

.article__head { padding: var(--space-7) 0 var(--space-4); }
.article__head h1 { font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl)); line-height: 1.12; text-wrap: balance; }
.article__media { margin: 0 0 var(--space-6); }
.article__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.article__body { font-size: 1.0625rem; line-height: 1.75; padding-bottom: var(--space-8); }
.article__body h2 { font-size: var(--text-xl); margin-top: var(--space-6); }
.article__body h3 { font-size: var(--text-lg); margin-top: var(--space-4); }
.article__body table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0 var(--space-4); font-size: var(--text-ui); }
.article__body th { text-align: left; font-family: var(--font-head); font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); padding: var(--space-1) var(--space-1-5) var(--space-1) 0; }
.article__body td { padding: var(--space-1-5) var(--space-1-5) var(--space-1-5) 0; vertical-align: top; }
.article__body tbody tr + tr td { border-top: 1px solid var(--line); }
.answer { background: var(--sky-2); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: var(--space-2-5) var(--space-3); margin-bottom: var(--space-4); }
.answer__label { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin: 0 0 var(--space-0-5); }
.answer p:last-child { margin: 0; }
.article__sources { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--muted); }
.article__sources h2 { font-size: var(--text-md); margin-top: 0; }
.article__cta { margin-top: var(--space-6); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--sky-2); }
.article__cta-title { font-family: var(--font-head); font-weight: 600; font-size: var(--text-lg); color: var(--ink); margin: 0 0 var(--space-0-5); }

@media (max-width: 900px) {
  .post-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .post-grid { grid-template-columns: 1fr; }
  .article__media img { aspect-ratio: 16 / 10; }
  .article__body table { display: block; overflow-x: auto; }
}

/* Réglages typographiques Cabinet Grotesk / Satoshi */
h1, h2, h3, h4 { font-weight: 700; }
h1 { letter-spacing: -.03em; }
h2 { letter-spacing: -.025em; }
.hero h1 { font-weight: 800; line-height: 1.02; font-size: clamp(2.4rem, 4.6vw, 3.75rem); }
body { font-size: 17px; letter-spacing: .002em; }
.btn, .nav a, .nav__item > button { font-weight: 500; }
.btn--primary { font-weight: 700; }
@media (max-width: 640px) { body { font-size: 16px; } }

/* Fiche formation longue (prompt maître SEO) */
.course-body { font-size: 1.0625rem; line-height: 1.75; min-width: 0; }
.course-body h2 { font-size: var(--text-xl); margin-top: var(--space-8); scroll-margin-top: 100px; }
.course-body h2:first-of-type { margin-top: var(--space-6); }
.course-body h3 { font-size: var(--text-md); margin-top: var(--space-3); }
.course-intro { font-size: var(--text-md); color: var(--ink); max-width: 62ch; }
.recap { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; font-size: var(--text-ui); line-height: 1.55; }
.recap thead th { background: var(--band); color: #fff; text-align: left; font-family: var(--font-head); font-weight: 700; padding: var(--space-1-5) var(--space-2-5); }
.recap tbody th { text-align: left; vertical-align: top; width: 34%; font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: var(--space-1-5) var(--space-2-5); }
.recap td { padding: var(--space-1-5) var(--space-2-5) var(--space-1-5) 0; vertical-align: top; }
.recap tbody tr + tr > * { border-top: 1px solid var(--line); }
.toc { margin: var(--space-4) 0 0; padding: var(--space-3); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.toc__title { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin: 0 0 var(--space-1); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: var(--space-4); font-size: var(--text-ui); }
.toc li { break-inside: avoid; margin-bottom: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.course-body .module summary h3 { margin: 0; font-size: var(--text-base); display: grid; gap: 2px; }
.course-body .module summary h3 small { color: var(--blue); font-weight: 700; font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; }
.skills { columns: 2; column-gap: var(--space-4); }
.skills li { break-inside: avoid; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); margin: var(--space-3) 0; }
.why > div { padding-top: var(--space-1-5); border-top: 2px solid var(--ink); }
.why dt { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.why dd { margin: 4px 0 0; color: var(--muted); font-size: var(--text-ui); }
.why__cta { margin-top: var(--space-3); }
.byline { margin-top: var(--space-6); padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--muted); }
.course-body .faq { max-width: none; }
@media (max-width: 640px) {
  .toc ol, .skills { columns: 1; }
  .why { grid-template-columns: 1fr; }
  .recap tbody th { width: 40%; }
  .recap thead th, .recap tbody th { padding-left: var(--space-1-5); }
}

/* Corrections du contrôle responsive : chiffres de la page « Qui sommes-nous », e-mail long */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-3) 0; }
.stat { background: var(--sky-2); border-radius: var(--radius-md); padding: var(--space-2); min-width: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: var(--text-xl); color: var(--navy); line-height: 1.1; overflow-wrap: anywhere; }
.stat span { font-size: var(--text-sm); color: var(--muted); }
.contact-list li > div { min-width: 0; }
.contact-list a, .footer ul a, .legal dd, .article__body a { overflow-wrap: anywhere; }

/* Les boutons ne sont jamais soulignés, même dans un paragraphe */
.btn, p a.btn, li a.btn { text-decoration: none; }

/* ==========================================================================
   Mode sombre (suit le réglage de l'appareil)
   Contrastes : texte #c9d2e3 sur #0b1426 = 12,6:1 ; texte secondaire #9aa6bd = 7,4:1 ;
   liens #8eabff = 7,9:1. Le bouton principal garde son bleu de marque avec texte blanc (5,9:1).
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1426;
    --bg-soft: #0f1a31;
    --surface: #13203b;
    --header-bg: rgba(11, 20, 38, .92);
    --band: #12306b;
    --ink: #eef2fa;
    --text: #c9d2e3;
    --muted: #9aa6bd;
    --line: #253556;
    --navy: #e6ecfa;
    --navy-2: #c9d6f5;
    --blue: #8eabff;
    --blue-dark: #b3c7ff;
    --sky: #1b2c55;
    --sky-2: #15243f;
    --input-border: #33466e;
    --ok-bg: #0f3327;
    --err-bg: #3a1714;
    --success: #6fd3a8;
    --error: #ff9b8f;
    --warning-bg: #3a2c0c;
    --warning-fg: #f5cf73;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 44px rgba(0, 0, 0, .45);
    --shadow-btn: 0 8px 20px rgba(31, 79, 224, .35);
  }
  img { filter: brightness(.94); }
  .brand img, .footer .brand img { filter: none; }
  .glyph .g-faint { stroke: #33466e; }
  .timeline li:nth-child(4)::before { border-color: var(--blue); background: var(--blue); }
  .method__list > div, .why > div { border-top-color: var(--line); }
  .article__body th { border-bottom-color: var(--line); }
}

/* Avis de stagiaires (affiché seulement si SITE.reviews contient des avis réels) */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.reviews blockquote { margin: 0; font-family: var(--font-head); font-size: var(--text-lg); line-height: 1.35; color: var(--ink); }
.reviews blockquote p { margin: 0 0 var(--space-2); }
.reviews__who { font-size: var(--text-sm); color: var(--muted); margin: 0; padding-top: var(--space-1-5); border-top: 1px solid var(--line); }

/* Figures dans le texte : image arrondie sans contour, légende discrète */
.inline-figure { margin: var(--space-4) 0; }
.inline-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.inline-figure figcaption { font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-1); }
/* Aucun contour autour des photos */
img { border: 0; outline: 0; }
.hero__media img, .course-card__media img, .method__media img, .funding__media img, .wide-media img, .article__media img, .text-media__img img, .split__media img, .post-row__media img, .post-grid__media img { border: 0; box-shadow: none; }
