/* ==========================================================================
   Academy 21 University — Design system v2
   Couleurs prélevées sur le logo et les brochures officielles.
   Contrastes de texte vérifiés WCAG 2.2 AA.
   ========================================================================== */

/* ---------- Polices auto-hébergées (aucun appel à un service tiers) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  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: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Marque — institutionnel (brochures) */
  --navy-950: #0b111e;
  --navy-900: #111a2b;
  --navy: #172033;
  --navy-700: #252d3f;
  --navy-500: #4a5468;
  --red: #b71c1c;
  --red-600: #9a1717;
  --red-50: #fbecec;
  --gold: #9a7b3f;
  --gold-text: #7a5f2c;
  --gold-50: #f6efe1;

  /* Marque — logo */
  --logo-red: #da0612;
  --logo-yellow: #fccd01;
  --logo-green: #a7dd63;
  --logo-blue: #2f86ab;

  /* Neutres */
  --ink: #172033;
  --text: #2c3445;
  --muted: #535c6e;
  --line: #e1e5ec;
  --line-strong: #c9d0db;
  --surface: #f5f7fa;
  --surface-2: #eef1f6;
  --white: #ffffff;

  /* Verre */
  --glass-light: rgba(255, 255, 255, .72);
  --glass-light-border: rgba(255, 255, 255, .6);
  --glass-dark: rgba(255, 255, 255, .07);
  --glass-dark-border: rgba(255, 255, 255, .14);
  --blur: saturate(160%) blur(18px);

  /* Typographie */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.38rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.8vw, 4rem);

  /* Formes & ombres (couches teintées navy) */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-xs: 0 1px 2px rgba(17, 26, 43, .06);
  --shadow-sm: 0 1px 2px rgba(17, 26, 43, .05), 0 4px 12px -2px rgba(17, 26, 43, .07);
  --shadow: 0 2px 4px rgba(17, 26, 43, .04), 0 12px 28px -6px rgba(17, 26, 43, .14);
  --shadow-lg: 0 4px 8px rgba(17, 26, 43, .05), 0 24px 56px -12px rgba(17, 26, 43, .26);
  --shadow-xl: 0 8px 16px rgba(11, 17, 30, .08), 0 40px 90px -20px rgba(11, 17, 30, .45);
  --shadow-red: 0 10px 24px -8px rgba(183, 28, 28, .55);
  --shadow-yellow: 0 10px 26px -8px rgba(252, 205, 1, .55);
  --container: 1220px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 84px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--logo-blue);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 70px); }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  color: var(--text); background: var(--white); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.14; letter-spacing: -0.015em; margin: 0 0 .6em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.012em; }
h4 { font-size: var(--step-0); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { color: var(--ink); font-weight: 650; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--logo-yellow); color: var(--navy); }
main:focus { outline: none; }
[hidden] { display: none !important; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.on-dark :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--logo-yellow); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--navy); color: var(--white); padding: .8rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-lg); }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 880px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--flush-top { padding-top: 0; }
.section--surface { background: var(--surface); }
.section--mesh {
  background:
    radial-gradient(700px 380px at 0% 0%, rgba(47, 134, 171, .08), transparent 70%),
    radial-gradient(700px 380px at 100% 100%, rgba(183, 28, 28, .06), transparent 70%),
    var(--surface);
}
.section--navy {
  color: #d6dbe4;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(47, 134, 171, .22), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(183, 28, 28, .18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%);
  overflow: hidden;
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c3cad6; }

/* Texture de grille discrète pour les fonds sombres */
.grid-texture { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%); }

/* Contenus selon disponibilité de JavaScript */
.no-js .js-only, .js .nojs-only, .no-js .zoom-btn { display: none !important; }

/* ---------- Typo utilitaires ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 32px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--logo-red) 0 25%, var(--logo-yellow) 25% 50%, var(--logo-green) 50% 75%, var(--logo-blue) 75%); flex: none; }
.eyebrow--gold { color: var(--gold-text); }
.on-dark .eyebrow { color: var(--logo-yellow); }
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.section-head--row > div { max-width: 720px; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); }
.on-dark .lead { color: #c3cad6; }
.motto { font-family: var(--font-display); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: var(--step--1); color: var(--red); margin: 0 0 .8rem; }
.on-dark .motto { color: var(--logo-yellow); }
.quote { font-family: var(--font-body); font-weight: 500; font-size: var(--step-1); color: var(--ink); line-height: 1.5; border-left: 3px solid var(--logo-yellow); padding: .2rem 0 .2rem 1.2rem; margin: 1.5rem 0; }
.text-gradient { background: linear-gradient(90deg, var(--logo-yellow), #ffe066 60%, #fff3b0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--red); --btn-fg: var(--white); --btn-bd: var(--red); --btn-shadow: var(--shadow-red);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .78rem 1.45rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: var(--btn-shadow);
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.i-arrow { transform: translateX(3px); }
.btn--primary:hover { --btn-bg: var(--red-600); --btn-bd: var(--red-600); }
.btn--accent { --btn-bg: var(--logo-yellow); --btn-fg: var(--navy); --btn-bd: var(--logo-yellow); --btn-shadow: var(--shadow-yellow); }
.btn--accent:hover { --btn-bg: #ffd83a; --btn-bd: #ffd83a; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); --btn-shadow: none; }
.btn--ghost:hover { --btn-bd: var(--ink); --btn-bg: var(--white); box-shadow: var(--shadow-sm); }
.btn--glass { --btn-bg: rgba(255,255,255,.08); --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.28); --btn-shadow: none; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn--glass:hover { --btn-bg: rgba(255,255,255,.16); --btn-bd: rgba(255,255,255,.5); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy); --btn-shadow: 0 10px 24px -10px rgba(23,32,51,.6); }
.btn--navy:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); --btn-shadow: var(--shadow); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-weight: 700; color: var(--red); text-decoration: none; }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--logo-yellow); }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--navy-950); color: #c3cad6; font-size: .86rem; position: relative; z-index: 101; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .5rem; }
.topbar p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--logo-green); box-shadow: 0 0 0 4px rgba(167, 221, 99, .18); }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }

/* ---------- En-tête verre ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--glass-light); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid rgba(225, 229, 236, .7); transition: box-shadow .25s, background-color .25s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .86); box-shadow: 0 10px 30px -18px rgba(17, 26, 43, .35); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: rgba(255,255,255,.97); } }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { height: 62px; width: auto; }
.brand .brand__mark { height: 40px; }
@media (min-width: 1281px) { .brand { margin-left: -.6rem; } }
.brand__name { font-family: var(--font-display); font-weight: 800; color: var(--ink); line-height: 1.1; font-size: .98rem; letter-spacing: -.01em; }
.brand__name span { display: block; font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; margin-top: .2rem; }

.nav { display: flex; align-items: center; gap: .4rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem .85rem; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem; color: var(--ink); text-decoration: none; transition: background-color .15s, color .15s; }
.nav__link:hover { background: rgba(23, 32, 51, .06); }
.nav__link[aria-current="page"], .nav__link.is-current { color: var(--red); background: var(--red-50); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__cta { margin-left: .5rem; display: flex; gap: .5rem; }

/* Menu déroulant Formations */
.mega { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: min(720px, 92vw);
  background: rgba(255,255,255,.92); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-light-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.js .mega[hidden] { display: none; }
.mega::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); background: inherit; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.mega a { display: grid; grid-template-columns: 46px 1fr; gap: .8rem; align-items: start; padding: .8rem; border-radius: var(--radius); text-decoration: none; color: var(--text); transition: background-color .15s; }
.mega a:hover { background: var(--surface); }
.mega a:hover .mega__title { color: var(--red); }
.mega__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .78rem; color: var(--white); box-shadow: var(--shadow-sm); }
.mega__title { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.25; font-size: .97rem; }
.mega__desc { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; margin-top: .15rem; }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem .4rem; margin-top: .3rem; border-top: 1px solid var(--line); font-size: .9rem; flex-wrap: wrap; }
.mega__foot a { display: inline-flex; padding: 0; grid-template-columns: none; }
.mega__foot a:hover { background: none; }

.nav-toggle { display: none; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); font: 700 .95rem var(--font-display); cursor: pointer; box-shadow: var(--shadow-xs); }
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: .2s; }
.nav-toggle__bars::before { top: 0; } .nav-toggle__bars span { top: 5px; } .nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: 5px; transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }

@media (max-width: 1280px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 1.5rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: rgba(255,255,255,.97); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .js .nav:not(.is-open) { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; justify-content: space-between; border-radius: var(--radius-sm); padding: .75rem 1rem; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; background: var(--surface); grid-template-columns: 1fr; margin: .3rem 0 .6rem; padding: .4rem; border-radius: var(--radius); backdrop-filter: none; }
  .mega::before { display: none; }
  .nav__cta { margin: 1rem 0 0; flex-direction: column; }
  .nav__cta .btn { width: 100%; }
  .topbar ul { display: none; }
}
@media (max-width: 480px) { .brand { gap: .55rem; } .brand__name { font-size: .9rem; } .brand .brand__mark { height: 36px; } :root { --header-h: 76px; } }

/* ---------- Hero accueil ---------- */
.hero { position: relative; overflow: hidden; color: #d6dbe4; isolation: isolate;
  background:
    radial-gradient(1100px 620px at 88% -10%, rgba(47, 134, 171, .32), transparent 60%),
    radial-gradient(800px 520px at -10% 110%, rgba(183, 28, 28, .30), transparent 60%),
    radial-gradient(600px 400px at 60% 120%, rgba(252, 205, 1, .10), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(7rem, 11vw, 9.5rem); }
.hero h1 { color: var(--white); margin-bottom: 1.3rem; }
.hero .lead { max-width: 36rem; margin-bottom: 2.1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.glass-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .85rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--white);
  background: var(--glass-dark); border: 1px solid var(--glass-dark-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.glass-chip svg { width: 15px; height: 15px; color: var(--logo-yellow); }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 2.6rem 0 0; padding: 0; list-style: none; max-width: 36rem; }
.hero__stats li { padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--glass-dark); border: 1px solid var(--glass-dark-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 1.06rem; white-space: nowrap; color: var(--white); line-height: 1.1; letter-spacing: -.02em; }
.hero__stats span { font-size: .84rem; color: #b6bfcd; line-height: 1.35; display: block; margin-top: .25rem; }
@media (max-width: 520px) { .hero__stats { grid-template-columns: 1fr; } }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; margin-inline: auto; }
.hero-visual__ring { position: absolute; inset: 0; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-visual__halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(252,205,1,.25), transparent 70%); filter: blur(30px); }
.hero-visual__disc { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--photo, none) center 22% / cover no-repeat, url("../img/emblem-21.png") center / 58% no-repeat, radial-gradient(circle at 35% 28%, #ffffff 0%, #f5f7fa 55%, #dfe5ee 100%);
  box-shadow: 0 0 0 12px rgba(255,255,255,.06), 0 0 0 28px rgba(255,255,255,.03), var(--shadow-xl); }

.float-card { position: absolute; display: flex; align-items: center; gap: .8rem; padding: .85rem 1.05rem; border-radius: var(--radius); max-width: 250px; font-size: .88rem; line-height: 1.3; color: var(--ink);
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.7); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-xl); animation: float 7s ease-in-out infinite; }
.float-card strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.float-card__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.float-card__icon svg { width: 22px; height: 22px; }
.float-card--a { left: -5%; top: 12%; } .float-card--b { right: -7%; top: 46%; animation-delay: -2.5s; } .float-card--c { left: 4%; bottom: 3%; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 7vw, 96px); width: 100%; color: var(--white); z-index: 1; }

/* Panneau de recherche (verre clair) */
.finder { position: relative; z-index: 3; margin-top: clamp(-5.5rem, -7vw, -3.5rem); }
.finder__panel { background: rgba(255,255,255,.86); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: clamp(1.2rem, 3vw, 1.8rem); }
.finder__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; padding-inline: .3rem; }
.finder__title { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.15rem; margin: 0; }
.finder__head p { margin: 0; color: var(--muted); font-size: .92rem; }
.pill-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.pill-nav a { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-height: 76px; padding: .8rem 1.2rem; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; line-height: 1.2;
  border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.pill-nav a span { font-family: var(--font-body); font-weight: 500; font-size: .82rem; color: var(--muted); }
.pill-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.pill-nav .is-cta a { background: linear-gradient(135deg, var(--red), #8f1414); color: var(--white); border-color: transparent; box-shadow: var(--shadow-red); }
.pill-nav .is-cta a span { color: #ffe3e3; }
@media (max-width: 1060px) { .pill-nav { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } .hero-visual { max-width: 420px; } }
@media (max-width: 640px) { .pill-nav { grid-template-columns: 1fr 1fr; } .pill-nav .is-cta { grid-column: 1 / -1; } }
@media (max-width: 520px) {
  .float-card { font-size: .78rem; max-width: 190px; padding: .6rem .75rem; }
  .float-card__icon { width: 34px; height: 34px; }
  .float-card--a { left: -2%; } .float-card--b { right: -2%; }
}

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 2rem); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card--surface { background: var(--surface); border-color: transparent; box-shadow: none; }
.card--glass { background: var(--glass-light); border-color: var(--glass-light-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.card--navy, .card--glass-dark { color: #c9d0db; border-color: var(--glass-dark-border); }
.card--navy { background: linear-gradient(160deg, var(--navy-700), var(--navy)); box-shadow: var(--shadow-lg); }
.card--glass-dark { background: var(--glass-dark); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.card--glass-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.card--navy h3, .card--glass-dark h3 { color: var(--white); }
.card--navy p, .card--glass-dark p { color: #c9d0db; }
.card--accent-top::before { content: ""; position: absolute; top: 0; left: 1.6rem; right: 1.6rem; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--logo-red), var(--logo-yellow)); }
.card__link { margin-top: auto; padding-top: 1rem; }

.icon-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem; background: var(--red-50); color: var(--red); box-shadow: inset 0 0 0 1px rgba(183,28,28,.08); flex: none; }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--yellow { background: #fff6cc; color: #5f4a00; box-shadow: inset 0 0 0 1px rgba(95,74,0,.08); }
.icon-badge--blue { background: #e3f1f7; color: #1e6a8a; box-shadow: inset 0 0 0 1px rgba(30,106,138,.1); }
.icon-badge--green { background: #eef8e2; color: #3f6e12; box-shadow: inset 0 0 0 1px rgba(63,110,18,.1); }
.icon-badge--navy { background: rgba(255,255,255,.08); color: var(--logo-yellow); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.num { font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .14em; color: var(--red); display: block; margin-bottom: .35rem; }
.on-dark .num, .card--navy .num { color: var(--logo-yellow); }

/* Cartes programme */
.program-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card:has(h3 a:focus-visible) { box-shadow: var(--focus); }
.program-card__media { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; justify-content: space-between; padding: 1.3rem; overflow: hidden; color: var(--white); }
.program-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,17,30,.45)); }
.program-card__media svg.deco { position: absolute; right: -16%; top: -24%; width: 80%; transition: transform .6s var(--ease); }
.program-card:hover .program-card__media svg.deco { transform: rotate(18deg) scale(1.04); }
.program-card .program-card__level { position: relative; z-index: 1; display: inline-flex; flex-direction: column; font-family: var(--font-display); line-height: 1.05; margin: 0; color: var(--white); }
.program-card__level b { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.program-card__level small { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .92; margin-top: .25rem; }
.program-card__badge { position: relative; z-index: 1; align-self: flex-start; margin-bottom: auto; }
.program-card__body { padding: 1.5rem 1.5rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.program-card__type { font-family: var(--font-display); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .45rem; }
.program-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.program-card h3 a { color: inherit; text-decoration: none; }
.program-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.program-card h3 a:focus-visible { box-shadow: none; }
.program-card p { color: var(--muted); font-size: .95rem; }
.program-card__meta { list-style: none; padding: 1rem 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4rem; border-top: 1px solid var(--line); }
.program-card__more { margin-top: 1rem; }
.program-card[hidden] { display: none; }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .72rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .8rem; font-weight: 600; line-height: 1.3; }
.tag svg { width: 14px; height: 14px; }
.tag--rncp { background: #eef8e2; color: #2f5410; }
.tag--exec { background: var(--gold-50); color: #5f4a20; }
.tag--glass { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.22); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* ---------- Parcours / filière ---------- */
.pathway { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.pathway::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--logo-red), var(--logo-yellow), var(--logo-green), var(--logo-blue)); opacity: .9; }
.pathway li { position: relative; text-align: center; padding: 0 1rem 1.4rem; display: flex; flex-direction: column; }
.pathway__dot { position: relative; width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--white);
  background: rgba(23,32,51,.85); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 0 0 6px rgba(255,255,255,.04), var(--shadow-lg); }
.pathway__card { padding: 1.3rem 1.2rem; border-radius: var(--radius-lg); background: var(--glass-dark); border: 1px solid var(--glass-dark-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); flex: 1; transition: background-color .2s, transform .25s var(--ease); }
a.pathway__card { display: block; text-decoration: none; }
a.pathway__card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.pathway__role { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.1rem; display: block; }
.pathway__level { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--logo-yellow); margin-bottom: .35rem; }
.pathway p { font-size: .92rem; margin: .45rem 0 0; color: #c3cad6; }
.pathway__soon { display: inline-block; margin-top: .6rem; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c3cad6; border: 1px dashed rgba(255,255,255,.3); border-radius: 999px; padding: .15rem .6rem; }
@media (max-width: 900px) {
  .pathway { grid-template-columns: 1fr; gap: 1rem; }
  .pathway::before { left: 38px; right: auto; top: 20px; bottom: 20px; width: 3px; height: auto; background: linear-gradient(180deg, var(--logo-red), var(--logo-yellow), var(--logo-green), var(--logo-blue)); }
  .pathway li { display: grid; grid-template-columns: 78px 1fr; gap: 1rem; text-align: left; padding: 0; align-items: start; }
  .pathway__dot { margin: 0; }
}

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--60 { grid-template-columns: 1.2fr .8fr; }
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split--60 { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.visual-panel { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: clamp(1.5rem, 3vw, 2.2rem); isolation: isolate;
  background: radial-gradient(500px 300px at 100% 0%, rgba(47,134,171,.35), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(183,28,28,.3), transparent 70%), linear-gradient(150deg, var(--navy-700), var(--navy-950));
  box-shadow: var(--shadow-xl); color: #d6dbe4; }
.visual-panel .deco { position: absolute; right: -90px; top: -90px; width: 320px; opacity: .55; z-index: -1; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2.1rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .22em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--red) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; box-shadow: 0 4px 10px -4px rgba(183,28,28,.6); }
.on-dark .check-list li::before { background-color: var(--logo-yellow); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172033' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.check-list--cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
@media (max-width: 700px) { .check-list--cols { grid-template-columns: 1fr; } }

/* Statistiques en verre */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; list-style: none; margin: 0; padding: 0; }
.stats li { padding: 1.3rem; border-radius: var(--radius-lg); background: var(--glass-dark); border: 1px solid var(--glass-dark-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.stats strong { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--white); margin-bottom: .45rem; letter-spacing: -.03em; }
.stats span { font-size: .9rem; color: #c3cad6; display: block; line-height: 1.4; }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .stats--4 { grid-template-columns: repeat(2, 1fr); } }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.chips li { padding: .55rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--ink); box-shadow: var(--shadow-xs); }
.chips--center { justify-content: center; }
.on-dark .chips li { background: var(--glass-dark); border-color: var(--glass-dark-border); color: var(--white); box-shadow: none; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 1.7rem 1.5rem 1.5rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; margin-bottom: .9rem; letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--logo-red), #e8a400); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; right: -0.75rem; width: 1.1rem; height: 2px; background: var(--line-strong); }
.steps h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.steps p { font-size: .93rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li::after { display: none; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Bandeau CTA */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); padding: clamp(2rem, 5vw, 3.6rem); color: #d6dbe4;
  background: radial-gradient(600px 300px at 100% 100%, rgba(252,205,1,.18), transparent 70%), radial-gradient(600px 300px at 0% 0%, rgba(47,134,171,.28), transparent 70%), linear-gradient(120deg, var(--navy) 0%, #1e2a44 60%, #2a2140 100%);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; box-shadow: var(--shadow-xl); }
.cta-band h2 { color: var(--white); font-size: var(--step-3); margin-bottom: .5rem; }
.cta-band p { margin: 0; max-width: 40rem; color: #c3cad6; }
.cta-band svg.deco { position: absolute; right: -80px; bottom: -120px; width: 360px; opacity: .5; pointer-events: none; z-index: -1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- En-têtes de page ---------- */
.breadcrumb { font-size: .9rem; margin-bottom: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: .4rem; color: #c3cad6; }
.breadcrumb li + li::before { content: "/"; color: #8f99aa; }
.breadcrumb a { color: var(--white); }

.page-hero { position: relative; overflow: hidden; isolation: isolate; color: #d6dbe4;
  background: radial-gradient(900px 500px at 100% 0%, rgba(47,134,171,.26), transparent 60%), radial-gradient(700px 420px at 0% 120%, rgba(183,28,28,.22), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%); }
.page-hero .container { position: relative; padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(5.5rem, 9vw, 7.5rem); display: grid; grid-template-columns: 1.25fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); }
.page-hero .subtitle { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: #e6e9ef; margin-bottom: 1.4rem; }
.page-hero .kicker { font-family: var(--font-display); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .86rem; color: var(--logo-yellow); margin-bottom: .9rem; display: block; }
.page-hero .deco { position: absolute; right: -140px; top: -140px; width: 540px; opacity: .3; pointer-events: none; z-index: -1; }
.page-hero--simple .container { grid-template-columns: 1fr; }
.page-hero--simple .lead { max-width: 46rem; }
.page-hero .hero-badges { margin-top: 1.4rem; }
@media (max-width: 960px) { .page-hero .container { grid-template-columns: 1fr; } }

/* En-têtes avec photo (repli automatique sur le dégradé si l'image est absente) */
.page-hero--photo { background:
  linear-gradient(100deg, rgba(11,17,30,.95) 0%, rgba(23,32,51,.88) 42%, rgba(23,32,51,.55) 100%),
  var(--photo, none) center / cover no-repeat,
  radial-gradient(900px 500px at 100% 0%, rgba(47,134,171,.26), transparent 60%),
  linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%); }

/* Carte photo avec superpositions en verre */
.photo-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 460px; box-shadow: var(--shadow-xl); isolation: isolate;
  background: var(--photo, none) center / cover no-repeat, radial-gradient(500px 300px at 100% 0%, rgba(47,134,171,.35), transparent 70%), linear-gradient(150deg, var(--navy-700), var(--navy-950)); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,17,30,.65)); z-index: -1; }
.photo-card__glass { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (max-width: 560px) { .photo-card__glass { grid-template-columns: repeat(2, 1fr); } }
.photo-card__glass div { padding: .7rem .8rem; border-radius: var(--radius); color: var(--white); background: rgba(23,32,51,.55); border: 1px solid rgba(255,255,255,.22); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.photo-card__glass strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--white); line-height: 1.1; }
.photo-card__glass span { font-size: .84rem; color: #e6e9ef; }
.photo-card__tag { position: absolute; top: 1.2rem; left: 1.2rem; }

/* Carte « L'essentiel » en verre clair */
.facts { margin: 0; border-radius: var(--radius-xl); padding: 1.6rem; color: var(--text);
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.8); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-xl); }
.facts h2 { font-size: 1.05rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.facts h2 svg { width: 20px; height: 20px; color: var(--red); }
.facts dl { margin: 0; display: grid; }
.facts dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; padding: .72rem 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.45; }
.facts .btn-row { margin-top: 1.2rem; }
.facts .btn { flex: 1 1 auto; }
@media (max-width: 420px) { .facts dl > div { grid-template-columns: 1fr; gap: .2rem; } }

/* Sous-navigation collante en verre */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--glass-light); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; align-items: center; gap: 1rem; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; flex: 1; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav ul a { display: flex; align-items: center; min-height: 56px; padding: 0 1rem; white-space: nowrap; text-decoration: none; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: .92rem; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.subnav ul a:hover { color: var(--ink); }
.subnav ul a[aria-current="true"] { color: var(--red); border-bottom-color: var(--red); }
.subnav__cta { flex: none; }
@media (max-width: 760px) { .subnav__cta { display: none; } }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.layout-aside > aside { position: sticky; top: calc(var(--header-h) + 80px); display: grid; gap: 1rem; }
@media (max-width: 1000px) { .layout-aside { grid-template-columns: minmax(0, 1fr); } .layout-aside > aside { position: static; } }
.content-block { padding-block: clamp(2.4rem, 4vw, 3.4rem); border-bottom: 1px solid var(--line); }
.content-block:first-child { padding-top: 0; }
.content-block:last-child { border-bottom: 0; padding-bottom: 0; }
.content-block h2 { font-size: var(--step-2); }

.aside-card { border-radius: var(--radius-lg); padding: 1.6rem; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.aside-card h2, .aside-card h3 { font-size: 1.1rem; }
.aside-card--navy { color: #d6dbe4; border-color: transparent; overflow: hidden; position: relative; isolation: isolate;
  background: radial-gradient(300px 200px at 100% 0%, rgba(252,205,1,.18), transparent 70%), linear-gradient(160deg, var(--navy-700), var(--navy-950)); box-shadow: var(--shadow-lg); }
.aside-card--navy h2, .aside-card--navy h3 { color: var(--white); }
.aside-card--navy p { color: #c3cad6; }
.aside-card .btn { width: 100%; margin-top: .6rem; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .93rem; }
.aside-list li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; }
.aside-list svg { width: 20px; height: 20px; color: var(--red); margin-top: .15rem; }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.table-wrap:focus-visible { box-shadow: var(--focus); }
.data-table { min-width: 560px; font-size: .95rem; }
.data-table caption { text-align: left; padding: 1rem 1.3rem; font-family: var(--font-display); font-weight: 800; color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line); }
.data-table th, .data-table td { padding: .9rem 1.3rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.data-table tbody th { font-weight: 650; color: var(--ink); }
.data-table .vol { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.data-table tfoot th, .data-table tfoot td { background: var(--surface); font-weight: 800; color: var(--ink); border-bottom: 0; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background-color .15s; }
.data-table tbody tr:hover { background: #fafbfd; }

/* Onglets */
.tabs__list { display: inline-flex; gap: .3rem; padding: .35rem; background: var(--surface-2); border-radius: 999px; margin-bottom: 1.2rem; flex-wrap: wrap; box-shadow: inset 0 1px 2px rgba(17,26,43,.06); }
.tabs__tab { min-height: 44px; padding: .5rem 1.3rem; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font: 700 .95rem var(--font-display); color: var(--muted); transition: .2s; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs__panel[hidden] { display: none; }

/* Accordéon */
.accordion { display: grid; gap: .8rem; }
.accordion details { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-xs); transition: box-shadow .2s, border-color .2s; }
.accordion details[open] { box-shadow: var(--shadow); border-color: transparent; }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; min-height: 60px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; transition: transform .25s var(--ease), background-color .2s;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172033' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; }
.accordion details[open] summary::after { transform: rotate(45deg); background-color: var(--red-50); }
.accordion details[open] summary { color: var(--red); }
.accordion__body { padding: 0 1.4rem 1.3rem; }
.accordion__body p:last-child { margin-bottom: 0; }
.accordion summary:focus-visible { border-radius: var(--radius-lg); }
.faq-group + .faq-group { margin-top: 2.5rem; }
.faq-group h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }

/* Notes */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--gold-50); border: 1px solid #ecdfc3; font-size: .92rem; color: #3d3220; }
.notice svg { width: 22px; height: 22px; color: var(--gold-text); margin-top: .1rem; }
.notice p { margin: 0 0 .4rem; } .notice p:last-child { margin: 0; }
.notice strong { color: #2c2416; }
.notice--info { background: #eaf4f8; border-color: #cfe3ec; color: #1d3a48; }
.notice--info svg { color: #1e6a8a; }
.notice--success { background: #eef8e2; border-color: #d4ebb9; color: #24400c; }
.notice--success svg { color: #3f6e12; }

/* Blocs RNCP & listes clé/valeur */
.bloc-list { display: grid; gap: .8rem; list-style: none; padding: 0; margin: 0; }
.bloc-list li { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .2s var(--ease); }
.bloc-list li:hover { box-shadow: var(--shadow); transform: translateX(3px); }
.bloc-list b { font-family: var(--font-display); color: var(--red); font-size: .84rem; letter-spacing: .05em; padding-top: .15rem; }
.bloc-list strong { display: block; }
.bloc-list span { color: var(--muted); font-size: .94rem; }
@media (max-width: 560px) { .bloc-list li { grid-template-columns: 1fr; gap: .2rem; } }

/* Documents à télécharger */
.doc-card { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.doc-card__thumb { width: 74px; height: 96px; border-radius: 10px; position: relative; overflow: hidden; display: grid; place-items: end start; padding: .5rem;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); box-shadow: var(--shadow); color: var(--white); font: 800 .7rem var(--font-display); letter-spacing: .08em; }
.doc-card__thumb::before { content: ""; position: absolute; right: -22px; top: -22px; width: 70px; height: 70px; border-radius: 50%; border: 6px solid var(--logo-red); border-left-color: var(--logo-yellow); }
.doc-card__meta { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }

/* Filtres catalogue */
.filters { display: flex; flex-wrap: wrap; gap: 1.5rem 2.2rem; align-items: flex-end; padding: 1.4rem 1.6rem; border-radius: var(--radius-xl); margin: -3.4rem 0 2rem; position: relative; z-index: 2;
  background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-xl); }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: .6rem; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1.05rem; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--line-strong); font-weight: 600; font-size: .92rem; color: var(--ink); background: var(--white); transition: .15s; }
.seg input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 6px 14px -6px rgba(23,32,51,.6); }
.seg input:focus-visible + label { box-shadow: var(--focus); }
.seg label:hover { border-color: var(--ink); }
.results-count { font-weight: 600; color: var(--muted); margin: 0 0 1.2rem; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 680px) { .form__row, .form__row--3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; align-content: start; }
.field > label, .field legend, .field__label { font-weight: 650; color: var(--ink); font-size: .95rem; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: .4rem; }
.req { color: var(--red); }
.hint { font-size: .86rem; color: var(--muted); margin: 0; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .78rem 1rem; border: 1.5px solid #b9c1cd; border-radius: 14px; font: inherit; color: var(--ink); background: var(--white);
  transition: border-color .15s, box-shadow .15s; box-shadow: inset 0 1px 2px rgba(17,26,43,.04); }
.field select { appearance: none; padding-right: 2.6rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172033' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-500); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--logo-blue); box-shadow: 0 0 0 4px rgba(47,134,171,.18); border-radius: 14px; }
.field [aria-invalid="true"] { border-color: var(--red) !important; background-color: #fffafa !important; }
.field__error { display: flex; gap: .4rem; align-items: center; color: var(--red); font-weight: 600; font-size: .88rem; margin: 0; }
.field__error:empty { display: none; }
.field__error::before { content: ""; flex: none; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.field__counter { font-size: .82rem; color: var(--muted); text-align: right; margin: 0; }
.field input[type="file"] { padding: .7rem; border: 1.5px dashed #b9c1cd; border-radius: 14px; background: var(--surface); width: 100%; font: inherit; font-size: .92rem; cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-right: 1rem; padding: .55rem 1rem; border-radius: 999px; border: 0; background: var(--navy); color: var(--white); font: 700 .88rem var(--font-display); cursor: pointer; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .93rem; }
.checkbox input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--red); }
.checkbox label { font-weight: 500; }

/* Cartes de choix (radio) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; height: 100%; padding: 1.05rem 1.15rem; border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--white); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.choice label:hover { border-color: var(--navy-500); box-shadow: var(--shadow-sm); }
.choice__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); margin-top: .15rem; display: grid; place-items: center; transition: .15s; }
.choice__title { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.25; }
.choice__desc { display: block; font-size: .85rem; color: var(--muted); margin-top: .2rem; line-height: 1.4; }
.choice input:checked + label { border-color: var(--red); background: #fff9f9; box-shadow: 0 0 0 3px rgba(183,28,28,.12); }
.choice input:checked + label .choice__dot { border-color: var(--red); background: radial-gradient(circle, var(--red) 45%, transparent 50%); }
.choice input:focus-visible + label { box-shadow: var(--focus); }
.choice-inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-inline .choice label { display: inline-flex; align-items: center; min-height: 46px; padding: .45rem 1rem; border-radius: 999px; gap: .55rem; }
.choice-inline .choice__dot { margin: 0; width: 18px; height: 18px; }

/* Assistant de candidature */
.wizard { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .wizard { grid-template-columns: minmax(0, 1fr); } }
.stepper { position: sticky; top: calc(var(--header-h) + 24px); padding: 1.4rem; border-radius: var(--radius-xl); color: #d6dbe4; overflow: hidden; isolation: isolate;
  background: radial-gradient(300px 220px at 100% 0%, rgba(252,205,1,.16), transparent 70%), linear-gradient(160deg, var(--navy-700), var(--navy-950)); box-shadow: var(--shadow-lg); }
.stepper h2 { font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.stepper li { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; align-items: center; padding: .55rem .6rem; border-radius: 14px; font-size: .93rem; color: #aeb7c6; }
.stepper li span.n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 .85rem var(--font-display); border: 1.5px solid rgba(255,255,255,.22); }
.stepper li[aria-current="step"] { background: rgba(255,255,255,.08); color: var(--white); font-weight: 650; }
.stepper li[aria-current="step"] span.n { background: var(--logo-yellow); color: var(--navy); border-color: var(--logo-yellow); }
.stepper li.is-done span.n { background: rgba(167,221,99,.18); border-color: var(--logo-green); color: var(--logo-green); }
.stepper__progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); margin-top: 1.2rem; overflow: hidden; }
.stepper__progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--logo-red), var(--logo-yellow)); transition: width .4s var(--ease); }
.stepper__note { font-size: .82rem; margin: 1rem 0 0; color: #aeb7c6; }
@media (max-width: 960px) { .stepper { position: static; } .stepper ol { grid-template-columns: repeat(5, 1fr); } .stepper li { grid-template-columns: 1fr; justify-items: center; text-align: center; font-size: .72rem; padding: .4rem .2rem; } }
@media (max-width: 520px) { .stepper li .label { display: none; } }
.wizard__panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.4rem, 3.5vw, 2.4rem); box-shadow: var(--shadow-lg); }
.js .wizard-step:not(.is-active) { display: none; }
.wizard-step > h2 { font-size: var(--step-2); margin-bottom: .3rem; }
.wizard-step > h2:focus { outline: none; }
.wizard-step > .hint { margin-bottom: 1.6rem; font-size: .93rem; }
.no-js .wizard-step + .wizard-step { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.wizard__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wizard__nav .spacer { flex: 1; }
.no-js .wizard__nav [data-prev], .no-js .wizard__nav [data-next] { display: none; }
.js .wizard__nav [data-submit] { display: none; }
.js .wizard-step.is-last .wizard__nav [data-submit] { display: inline-flex; }
.js .wizard-step.is-last .wizard__nav [data-next] { display: none; }
.eligibility { margin-top: 1.2rem; }
.eligibility:empty { display: none; }
.recap { display: grid; gap: 1rem; }
.recap section { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.recap h3 { font-size: .95rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.recap h3 button { font: 700 .85rem var(--font-display); color: var(--red); background: none; border: 0; cursor: pointer; text-decoration: underline; min-height: 32px; }
.recap dl { margin: 0; display: grid; grid-template-columns: 12rem 1fr; gap: .35rem 1rem; font-size: .92rem; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
@media (max-width: 560px) { .recap dl { grid-template-columns: 1fr; } .recap dd { margin-bottom: .4rem; } }
.draft-note { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--muted); margin: 0; }
.draft-note svg { width: 16px; height: 16px; color: #3f6e12; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fdecec; color: #8a1414; border: 1px solid #f5c7c7; }
.form-status.is-success { background: #eef8e2; color: #2f5410; border: 1px solid #d4ebb9; }
.form-status.is-info { background: #eaf4f8; color: #1d3a48; border: 1px solid #cfe3ec; font-weight: 500; }
.form-status .btn-row { margin-top: .8rem; }
.error-summary { padding: 1.1rem 1.3rem; border-radius: var(--radius); background: #fdecec; border: 1px solid #f5c7c7; }
.error-summary h2, .error-summary h3 { font-size: 1.02rem; color: #8a1414; margin-bottom: .4rem; }
.error-summary ul { margin: 0; }
.error-summary a { color: #8a1414; font-weight: 600; }
.error-summary[hidden] { display: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: var(--white); animation: spin 0.8s linear infinite; }

/* Page de confirmation */
.success-mark { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.6rem; color: var(--navy);
  background: radial-gradient(circle at 35% 30%, #fff 0, #fff6cc 60%, var(--logo-yellow) 100%); box-shadow: var(--shadow-yellow), 0 0 0 12px rgba(252,205,1,.12); }
.success-mark svg { width: 44px; height: 44px; }
.ref-box { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1rem 1.6rem; border-radius: var(--radius); background: var(--glass-dark); border: 1px solid var(--glass-dark-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.ref-box span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #c3cad6; }
.ref-box strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); letter-spacing: .04em; }

/* Pages de texte (légal) */
.prose { max-width: 820px; }
.prose h2 { font-size: var(--step-2); margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }
.todo { background: #fff6cc; color: #4a3a00; padding: .05rem .4rem; border-radius: 4px; font-weight: 600; }
.toc { padding: 1.4rem; border-radius: var(--radius-lg); background: var(--surface); }
.toc h2 { font-size: 1rem; margin-bottom: .7rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .93rem; }

.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sitemap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
@media (max-width: 860px) { .sitemap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sitemap { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; color: #b6bfcd; font-size: .95rem; padding-top: clamp(3.5rem, 6vw, 5rem);
  background: radial-gradient(800px 400px at 100% 0%, rgba(47,134,171,.14), transparent 70%), var(--navy-950); }
.site-footer a { color: #e6e9ef; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-cta { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.6rem 1.8rem; margin-bottom: 3rem; border-radius: var(--radius-xl);
  background: var(--glass-dark); border: 1px solid var(--glass-dark-border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.footer-cta h2 { color: var(--white); font-size: 1.35rem; margin: 0 0 .2rem; }
.footer-cta p { margin: 0; }
@media (max-width: 760px) { .footer-cta { grid-template-columns: 1fr; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.8rem; }
.footer-grid h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--logo-yellow); margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-brand img { height: 96px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { color: #b6bfcd; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Retour en haut */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); cursor: pointer;
  background: rgba(23,32,51,.82); color: var(--white); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--navy); }

/* ---------- Utilitaires ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.small { font-size: .88rem; }
.center-row { display: flex; justify-content: center; }

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn, .tag, .pill-nav a, .seg label, .choice label { border: 2px solid ButtonText; }
  .check-list li::before { forced-color-adjust: none; }
}
@media print {
  .site-header, .topbar, .subnav, .site-footer, .cta-band, aside, .to-top, .wizard__nav, .stepper { display: none !important; }
  .page-hero, .hero { background: none; color: #000; }
  .page-hero h1, .hero h1 { color: #000; }
  .js .wizard-step { display: block !important; }
}
@media (max-width: 640px) { .topbar { display: none; } }

/* ---------- Fondateur ---------- */
.founder { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line);
  border-left: 6px solid var(--red); box-shadow: var(--shadow-lg); }
.founder__portrait { position: relative; width: clamp(150px, 20vw, 230px); aspect-ratio: 1; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden; color: var(--white); font: 800 clamp(2rem, 4vw, 2.8rem) var(--font-display); letter-spacing: .04em;
  background: radial-gradient(circle at 30% 25%, var(--navy-700), var(--navy-950)); box-shadow: 0 0 0 6px var(--white), 0 0 0 10px var(--red), var(--shadow-lg); }
.founder__portrait::after { content: ""; position: absolute; inset: 0; background: var(--photo, none) center top / cover no-repeat; }
.founder .eyebrow { margin-bottom: .6rem; }
.founder h2, .founder h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: .4rem; }
.founder__role { font-weight: 650; color: var(--muted); margin-bottom: 1rem; }
.founder__text { font-size: var(--step-1); line-height: 1.6; color: var(--text); }
.founder__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.6rem; }
.founder__gallery div { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--photo, none) center top / cover no-repeat, linear-gradient(160deg, var(--navy-700), var(--navy-950)); }
@media (max-width: 720px) { .founder { grid-template-columns: 1fr; justify-items: start; } }

/* Valeurs */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.values .card { padding: 1.4rem; }
.values .card h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

.mvap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .mvap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mvap { grid-template-columns: 1fr; } }
.big-stat { font: 800 clamp(2.4rem, 2rem + 2vw, 3.6rem) var(--font-display); color: var(--white); line-height: 1; display: block; letter-spacing: -.02em; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--3 li:nth-child(3n)::after { display: none; }
@media (max-width: 900px) { .steps--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps--3 { grid-template-columns: 1fr; } }
.bloc-list b { overflow-wrap: anywhere; }
.split > *, .grid > *, .layout-aside > * { min-width: 0; }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; } }

.founder--full { align-items: start; }

/* =====================================================================
   v3 — ambiances par page, en-têtes variés, motifs du logo
   ===================================================================== */
/* Ambiances : la couleur dominante change selon la page */
.amb-red    { --amb: #b71c1c; --amb-on-dark: #ff9a9a; --amb-soft: #fbecec; --amb-halo: rgba(218, 6, 18, .30); }
.amb-gold   { --amb: #7a5f2c; --amb-on-dark: #fccd01; --amb-soft: #f6efe1; --amb-halo: rgba(252, 205, 1, .22); }
.amb-green  { --amb: #3f6e12; --amb-on-dark: #b9e57f; --amb-soft: #eef8e2; --amb-halo: rgba(167, 221, 99, .25); }
.amb-blue   { --amb: #1e6a8a; --amb-on-dark: #8fd0ea; --amb-soft: #e3f1f7; --amb-halo: rgba(47, 134, 171, .40); }

/* Un mot en italique par titre, pour la chaleur */
/* Mot mis en valeur dans les titres : même typographie que l'école, posé dans un encadré légèrement incliné. */
.serif { display: inline-block; font: inherit; font-style: normal; letter-spacing: inherit; line-height: 1.12; color: #fff;
  background: var(--amb, var(--red)); padding: .02em .3em .08em; margin: .06em .04em; border-radius: .14em; transform: rotate(-1.5deg);
  box-shadow: 0 .18em .5em -.18em rgba(17, 26, 43, .35); }
.on-dark .serif, .hero .serif, .page-hero .serif, .hero-program .serif { color: var(--amb, var(--navy)); background: #fff; box-shadow: 0 .2em .6em -.2em rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) { .serif { transform: none; } }

.ring4 { color: var(--ink); }
.on-dark .ring4 { color: #fff; }
.rule4 { display: block; width: 72px; height: 4px; border-radius: 4px; margin-top: 1.4rem;
  background: linear-gradient(90deg, var(--logo-red) 0 25%, var(--logo-yellow) 25% 50%, var(--logo-green) 50% 75%, var(--logo-blue) 75%); }
.breadcrumb--light li { color: var(--muted); }
.breadcrumb--light li + li::before { color: var(--line-strong); }
.breadcrumb--light a { color: var(--ink); }

/* 1. En-tête clair et compact */
.hero-light { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(700px 360px at 100% 0%, var(--amb-soft, var(--surface)), transparent 70%), linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line); }
.hero-light__ring { position: absolute; width: 420px; right: -120px; top: -150px; opacity: .55; z-index: -1; }
.hero-light__inner { padding-block: clamp(2.2rem, 5vw, 3.6rem) clamp(3rem, 6vw, 4.6rem); display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-light--split .hero-light__inner { grid-template-columns: 1.2fr .8fr; }
.hero-light h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); margin-bottom: .8rem; }
.hero-light .lead { max-width: 38rem; margin-bottom: 0; }
.hero-light .btn-row { margin-top: 1.6rem; }
.hero-light__visual { position: relative; justify-self: end; width: min(420px, 100%); aspect-ratio: 1; }
.hero-light__visual img { width: 100%; height: 100%; object-fit: cover; display: block; box-shadow: var(--shadow-xl); }
.hero-light__visual--galet img { border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; }
.hero-light__visual--arche img { border-radius: 999px 999px 28px 28px; aspect-ratio: 4 / 5; height: auto; }
.hero-light__visual--arche { aspect-ratio: 4 / 5; }
.hero-light__visual::after { content: ""; position: absolute; inset: -14px; border-radius: inherit; border: 2px dashed var(--amb, var(--red)); opacity: .35; pointer-events: none; }
.hero-light__visual--galet::after { border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; }
.hero-light__visual--arche::after { border-radius: 999px 999px 34px 34px; }
@media (max-width: 860px) { .hero-light--split .hero-light__inner { grid-template-columns: 1fr; } .hero-light__visual { justify-self: start; width: min(300px, 80%); } }

/* 2. En-tête éditorial : grande photo, texte ancré en bas */
.hero-editorial { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(520px, 78vh, 760px); color: #d6dbe4;
  background: linear-gradient(180deg, rgba(11,17,30,.15) 0%, rgba(11,17,30,.55) 45%, rgba(11,17,30,.96) 100%), var(--photo, none) center 35% / cover no-repeat, var(--navy); }
.hero-editorial__inner { position: relative; padding-block: 4rem clamp(3rem, 6vw, 4.5rem); }
.hero-editorial h1 { color: #fff; font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem); max-width: 14em; margin-bottom: .8rem; }
.hero-editorial .lead { max-width: 34rem; }
.hero-editorial__ring { position: absolute; right: clamp(-140px, -6vw, -40px); top: 8%; width: clamp(260px, 32vw, 460px); opacity: .9; z-index: 0; }

/* 3. En-tête illustré en deux colonnes */
.hero-visual-page { position: relative; overflow: hidden; isolation: isolate; color: #d6dbe4;
  background: radial-gradient(800px 520px at 82% 40%, var(--amb-halo, rgba(47,134,171,.3)), transparent 65%), linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%); }
.hero-visual-page__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.6rem, 6vw, 4.4rem) clamp(4rem, 8vw, 6rem); }
.hero-visual-page h1 { color: #fff; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem); }
.hero-visual-page .lead { max-width: 32rem; }
.hero-visual-page__figure { margin: 0; width: min(500px, 100%); justify-self: center; }
.hero-visual-page__figure svg { width: 100%; height: auto; animation: drift 14s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@media (max-width: 900px) { .hero-visual-page__inner { grid-template-columns: 1fr; } .hero-visual-page__figure { width: min(320px, 80%); } }

/* 4. Fiches programme : photo fondue à droite + bandeau de faits */
.hero-program { position: relative; overflow: hidden; isolation: isolate; color: #d6dbe4;
  background: radial-gradient(600px 400px at 0% 100%, var(--amb-halo, rgba(183,28,28,.25)), transparent 70%), linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%); }
.hero-program__photo { position: absolute; right: 0; top: 0; width: 54%; height: 100%; z-index: -1;
  background: var(--photo, none) center 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%); mask-image: linear-gradient(90deg, transparent 0%, #000 50%); opacity: .85; }
.hero-program__visual { position: absolute; right: 2%; top: 50%; translate: 0 -50%; width: min(440px, 38%); z-index: -1; opacity: .95; }
.hero-program__visual svg { width: 100%; height: auto; }
.hero-program__inner { padding-block: clamp(2.6rem, 6vw, 4.4rem) clamp(6.5rem, 10vw, 8rem); max-width: var(--container); }
.hero-program__text { max-width: 640px; }
.hero-program h1 { color: #fff; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem); }
.hero-program .subtitle { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: #e6e9ef; margin-bottom: 1.4rem; }
.hero-program .btn-row { margin-top: 1.6rem; }
.level-tag { display: inline-flex; align-items: center; padding: .38rem .9rem; border-radius: 999px; font: 800 .82rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--amb-on-dark, var(--logo-yellow)); }
@media (max-width: 900px) { .hero-program__photo { width: 100%; opacity: .25; -webkit-mask-image: none; mask-image: none; } .hero-program__visual { display: none; } }

.facts-strip { position: relative; z-index: 3; margin-top: -4.4rem; }
.facts-strip dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); border-radius: var(--radius-xl); overflow: hidden;
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-xl); }
.facts-strip dl > div { padding: 1.15rem 1.35rem; border-right: 1px solid var(--line); }
.facts-strip dl > div:last-child { border-right: 0; }
.facts-strip dt { font-size: .8rem; font-weight: 600; color: var(--muted); }
.facts-strip dd { margin: .25rem 0 0; font: 700 .98rem/1.35 var(--font-display); color: var(--ink); }

/* 5. Pages de texte : titre simple, sans bannière */
.hero-minimal { padding-block: clamp(2.4rem, 5vw, 3.6rem) 1rem; background: #fff; }
.hero-minimal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin: .4rem 0 .6rem; }
.hero-minimal .lead { margin: 0; }

/* Livrables en bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto); gap: 1rem; }
.bento > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento > :nth-child(2) { grid-column: span 2; }
.bento > :nth-child(5), .bento > :nth-child(6) { grid-column: span 2; }
.bento .card { justify-content: flex-end; }
.bento .card--feature { background: radial-gradient(400px 260px at 100% 0%, rgba(252,205,1,.22), transparent 70%), linear-gradient(160deg, var(--navy-700), var(--navy-950)); color: #c9d0db; border-color: transparent; box-shadow: var(--shadow-lg); }
.bento .card--feature h3 { color: #fff; font-size: var(--step-2); }
.bento .card--feature .ring4 { position: absolute; top: -40px; right: -40px; width: 220px; opacity: .5; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > :nth-child(n) { grid-column: span 1; grid-row: auto; } .bento > :nth-child(1) { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento > :nth-child(1) { grid-column: auto; } }

/* Modalités en spectre */
.spectrum { position: relative; }
.spectrum__bar { height: 8px; border-radius: 8px; margin: 0 8% 1.8rem; background: linear-gradient(90deg, var(--logo-red), var(--logo-yellow) 50%, var(--logo-blue)); position: relative; }
.spectrum__bar span { position: absolute; top: 50%; width: 22px; height: 22px; translate: -50% -50%; border-radius: 50%; background: #fff; border: 4px solid var(--navy); box-shadow: var(--shadow); }
.spectrum__ends { display: flex; justify-content: space-between; margin: 0 4% .6rem; font: 700 .78rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .spectrum__bar, .spectrum__ends { display: none; } }

/* Tampons de passeport (international) */
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1rem; list-style: none; margin: 0; padding: 0; }
.stamp { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; }
.stamp__seal { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--c, var(--logo-blue));
  border: 2px dashed currentColor; background: radial-gradient(circle, #fff 58%, transparent 59%); rotate: var(--r, -6deg); transition: rotate .3s var(--ease), transform .3s var(--ease); }
.stamp__seal::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .5; }
.stamp__seal svg { width: 42px; height: 42px; }
.stamp:hover .stamp__seal { rotate: 0deg; transform: scale(1.04); }
.stamp h3 { font-size: 1rem; margin: 0; }
.stamp p { font-size: .9rem; color: var(--muted); margin: 0; max-width: 16rem; }
@media (max-width: 960px) { .stamps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stamps { grid-template-columns: 1fr; } }

/* Deux cercles (Europe / monde) */
.venn { width: min(460px, 100%); margin-inline: auto; }
.venn svg { width: 100%; height: auto; }
.venn text { font-family: var(--font-display); font-weight: 800; }

/* Frise des séances (formation IA) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; counter-reset: t; }
.timeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--logo-blue), var(--logo-green), var(--logo-yellow), var(--logo-red)); }
.timeline li { position: relative; counter-increment: t; }
.timeline__dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; background: var(--navy); color: #fff; font: 800 1rem var(--font-display); border: 4px solid #fff; box-shadow: var(--shadow); position: relative; }
.timeline__card { padding: 1.2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: calc(100% - 72px); }
.timeline h3 { font-size: 1rem; margin-bottom: .4rem; }
.timeline p { font-size: .88rem; color: var(--muted); margin: 0 0 .6rem; }
.timeline .tag { margin-top: auto; }
.timeline__out { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .6rem; }
@media (max-width: 1060px) { .timeline { grid-template-columns: 1fr; } .timeline::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; } .timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; } .timeline__card { height: auto; } }

/* Confort visuel */
@media (prefers-reduced-transparency: reduce) {
  .site-header, .finder__panel, .facts, .facts-strip dl, .card--glass, .card--glass-dark, .glass-chip, .btn--glass, .mega, .subnav, .to-top, .hero__stats li, .stats li, .pathway__card, .float-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .site-header, .subnav, .facts-strip dl, .finder__panel { background: #fff !important; }
}
@media (prefers-reduced-motion: reduce) { .hero-visual-page__figure svg { animation: none; } }
/* Frise verticale lorsqu'elle est dans la colonne de contenu d'une fiche */
.layout-aside .timeline { grid-template-columns: 1fr; }
.layout-aside .timeline::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; background: linear-gradient(180deg, var(--logo-blue), var(--logo-green), var(--logo-yellow), var(--logo-red)); }
.layout-aside .timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; }
.layout-aside .timeline__card { height: auto; }
.layout-aside .timeline__dot { margin-bottom: 0; }
.hero-minimal .container > * { max-width: 820px; }
.bento .card--feature { overflow: hidden; }
@media (max-width: 560px) { .facts-strip dl { grid-template-columns: 1fr 1fr; } .facts-strip dl > div { border-right: 0; border-bottom: 1px solid var(--line); padding: .9rem 1.1rem; } }
/* Chevauchement du bloc sous l'en-tête : grands écrans uniquement */
.overlap-up { position: relative; z-index: 2; margin-top: -3.5rem; }
@media (max-width: 960px) {
  .overlap-up { margin-top: 1.5rem; }
  .filters { margin-top: -1.5rem; }
  .hero-light__inner { padding-bottom: 2.5rem; }
}
@media (max-width: 640px) { .hero-light__ring { opacity: .18; width: 300px; right: -150px; top: -120px; } }
/* L'école : l'anneau reste derrière le texte */
.hero-editorial__inner { z-index: 1; }
.hero-editorial__ring { z-index: 0; pointer-events: none; }
@media (max-width: 640px) {
  .hero-editorial__ring { opacity: .35; width: 240px; right: -110px; top: 4%; }
  .hero-editorial { background: linear-gradient(180deg, rgba(11,17,30,.45) 0%, rgba(11,17,30,.7) 40%, rgba(11,17,30,.96) 100%), var(--photo, none) center 30% / cover no-repeat, var(--navy); }
}

/* =====================================================================
   Visionneuse de photos (zoom)
   ===================================================================== */
.zoom-btn { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; border-radius: inherit;
  background: transparent; cursor: zoom-in; display: flex; align-items: flex-end; justify-content: flex-end; }
.zoom-btn__chip { margin: .8rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--navy);
  background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  opacity: 0; transform: scale(.85); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.zoom-btn__chip svg { width: 20px; height: 20px; }
.zoom-btn:hover .zoom-btn__chip, .zoom-btn:focus-visible .zoom-btn__chip { opacity: 1; transform: none; }
.zoom-btn:focus-visible { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--logo-blue); }
@media (hover: none) { .zoom-btn__chip { opacity: .92; transform: none; width: 34px; height: 34px; margin: .6rem; } }
.founder__portrait .zoom-btn { align-items: flex-end; justify-content: center; }
.founder__portrait .zoom-btn__chip { margin: 0 0 .6rem; }
.founder__gallery > div { position: relative; overflow: hidden; }
.photo-card .zoom-btn { z-index: 0; }
.photo-card__glass, .photo-card__tag { z-index: 2; pointer-events: none; }
.hero-light__visual .zoom-btn { border-radius: inherit; }
.hero-light__visual--galet .zoom-btn { border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; }
.hero-light__visual--arche .zoom-btn { border-radius: 999px 999px 28px 28px; }

.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: transparent; color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox__veil { position: absolute; inset: 0; background: radial-gradient(1200px 700px at 50% 40%, rgba(23,32,51,.86), rgba(11,17,30,.96)); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
.lightbox__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: clamp(4.5rem, 8vh, 6rem) clamp(1rem, 6vw, 6rem) clamp(5.5rem, 12vh, 8rem); pointer-events: none; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; max-width: 100%; max-height: 100%; }
.lightbox__img { display: block; max-width: 100%; max-height: calc(100vh - clamp(10rem, 22vh, 14rem)); width: auto; height: auto; object-fit: contain; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 0 8px rgba(255,255,255,.04), 0 40px 90px -20px rgba(0,0,0,.7); pointer-events: auto; will-change: transform; }
.lightbox__caption { max-width: 46rem; text-align: center; font-family: var(--font-body); font-weight: 500; font-size: clamp(.98rem, .95rem + .2vw, 1.1rem); line-height: 1.5; color: #e6e9ef; pointer-events: auto; }
.lightbox__caption small { display: block; margin-top: .35rem; font: 700 .72rem var(--font-display); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--logo-yellow); }
.lightbox__rule { display: block; width: 56px; height: 3px; border-radius: 3px; margin: 0 auto .7rem;
  background: linear-gradient(90deg, var(--logo-red) 0 25%, var(--logo-yellow) 25% 50%, var(--logo-green) 50% 75%, var(--logo-blue) 75%); }
.lightbox__btn { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background-color .2s, transform .2s var(--ease); }
.lightbox__btn:hover { background: rgba(255,255,255,.18); transform: scale(1.05); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: clamp(1rem, 3vh, 1.6rem); right: clamp(1rem, 3vw, 1.6rem); }
.lightbox__prev { left: clamp(.6rem, 3vw, 1.6rem); top: 50%; translate: 0 -50%; }
.lightbox__next { right: clamp(.6rem, 3vw, 1.6rem); top: 50%; translate: 0 -50%; }
.lightbox__prev[hidden], .lightbox__next[hidden] { display: none; }
.lightbox :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--logo-yellow); }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 1.2rem; translate: none; } .lightbox__prev { left: 1.2rem; } .lightbox__next { right: 1.2rem; } }
body.lightbox-open { overflow: hidden; }

/* =====================================================================
   Paiement des frais d'étude de dossier
   ===================================================================== */
.spinner--dark { border-color: rgba(23,32,51,.18); border-top-color: var(--navy); display: inline-block; vertical-align: -3px; margin-right: .5rem; }
.pay { margin-top: 1rem; }
.pay-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.pay-state--error { max-width: 40rem; margin: 0 auto; padding: 2.4rem 1.6rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.pay-state__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--gold-50); color: var(--gold-text); }
.pay-state__icon svg { width: 30px; height: 30px; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 2.6rem); align-items: start; }
.pay-summary { position: sticky; top: 6.5rem; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); color: #d6dbe4;
  background: radial-gradient(420px 260px at 100% 0%, rgba(252,205,1,.16), transparent 70%), linear-gradient(160deg, var(--navy-700), var(--navy-950)); box-shadow: var(--shadow-lg); }
.pay-summary svg.deco { position: absolute; right: -70px; top: -70px; width: 220px; opacity: .35; z-index: -1; pointer-events: none; }
.pay-summary__list { margin: 0 0 1.4rem; display: grid; gap: .9rem; }
.pay-summary__list div { display: grid; gap: .15rem; }
.pay-summary__list dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #aab3c2; }
.pay-summary__list dd { margin: 0; color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.pay-summary__list div:first-child dd { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; }
.pay-summary__amount { display: grid; gap: .2rem; padding: 1.2rem 0; border-top: 1px solid var(--glass-dark-border); border-bottom: 1px solid var(--glass-dark-border); }
.pay-summary__amount > span:first-child { font-size: .9rem; color: #c3cad6; }
.pay-summary__amount strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); color: var(--white); line-height: 1.1; letter-spacing: -.02em; }
.pay-summary__fx { color: #c3cad6; } .pay-summary__fx b { color: var(--logo-yellow); font-weight: 700; }
.pay-summary__note { margin: 1rem 0 0; font-size: .82rem; color: #aab3c2; }
.pay-main > h2 { font-size: var(--step-1, 1.35rem); margin-top: .2rem; }
.pay-methods { display: grid; gap: 1rem; }
.pay-method { position: relative; display: grid; gap: .8rem; padding: 1.4rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease); }
.pay-method:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pay-method p { margin: 0; }
.pay-method__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.pay-method__head h3 { margin: 0; font-size: 1.12rem; }
.pay-method__brands { font-size: .84rem; color: var(--muted); }
.pay-method__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.pay-method__icon svg { width: 24px; height: 24px; }
.pay-method__icon--card { background: #fdecec; color: var(--red); }
.pay-method__icon--mobile { background: #fff4d1; color: #8a6400; }
.pay-method__amount { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.pay-method__off { font-size: .88rem; color: var(--muted); }
.pay-method.is-off { background: #f7f8fa; box-shadow: none; }
.pay-method.is-off:hover { transform: none; }
.pay-zones { border: 0; padding: 0; margin: 0; }
.pay-zones legend { font-weight: 700; font-size: .88rem; margin-bottom: .4rem; color: var(--ink); }
.pay-zones__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay-zones__list label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.pay-zones__list input { accent-color: var(--navy); width: 18px; height: 18px; margin: 0; }
.pay-zones__list label:has(input:checked) { border-color: var(--navy); background: #eef1f6; }
.pay-trust { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pay-trust li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: .84rem; color: var(--muted); }
.pay-trust svg { width: 20px; height: 20px; color: var(--green-text, #3f6e12); margin-top: .1rem; }
.pay-trust strong { display: block; color: var(--ink); font-size: .88rem; }
.pay-wait { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 1.6rem; border-radius: 50%; background: var(--glass-dark); border: 1px solid var(--glass-dark-border); }
.pay-wait .spinner { width: 34px; height: 34px; border-width: 3px; }
.pay-receipt dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin: 0; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.pay-receipt dt { font-weight: 600; color: var(--muted); }
.pay-receipt dd { margin: 0; overflow-wrap: anywhere; }
.success-mark--warn { background: var(--logo-yellow); }
.success-mark--fail { background: #fdecec; color: #8a1414; }
.mini-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; font-size: .92rem; color: var(--muted); }
.aside-card h2 svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: .3rem; }
.pay-link { margin-top: 1.4rem; padding: 1.2rem; border-radius: var(--radius); background: #eef8e2; border: 1px solid #d4ebb9; }
.pay-link label { display: block; font-weight: 700; margin-bottom: .5rem; color: #24400c; }
.pay-link__row { display: flex; gap: .6rem; }
.pay-link__row input { flex: 1; min-width: 0; font-size: .88rem; }
@media (max-width: 960px) { .pay-grid { grid-template-columns: 1fr; } .pay-summary { position: relative; top: 0; } }
@media (max-width: 640px) {
  .pay-trust { grid-template-columns: 1fr; }
  .pay-method__head { grid-template-columns: auto minmax(0, 1fr); }
  .pay-method__amount { grid-column: 1 / -1; font-size: 1.3rem; }
  .pay-receipt dl { grid-template-columns: 1fr; gap: .1rem; } .pay-receipt dd { margin-bottom: .6rem; }
  .pay-link__row { flex-direction: column; }
}
[data-pay-cancel] .notice { margin-bottom: 1.4rem; }
[data-paid-title]:focus, [data-pay-error-title]:focus, #methods-title:focus { outline: none; box-shadow: none; }
.aside-card h2:has(svg) { display: flex; align-items: center; gap: .4rem; }
.pay-link__row input { min-height: 44px; padding: .55rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font-family: inherit; }
.pay-link__title { font-size: 1rem; color: #24400c; margin-bottom: .6rem; }
.pay-batch { width: 100%; border-collapse: collapse; font-size: .86rem; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.pay-batch th, .pay-batch td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.pay-batch th { background: #f5f7fa; font-weight: 700; color: var(--ink); }
.pay-batch a { font-weight: 700; color: var(--red); }
#email[data-emails] { min-height: 4.5rem; resize: vertical; }
@media (max-width: 640px) {
  .pay-batch thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pay-batch tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .pay-batch td { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; border: 0; padding: .2rem .7rem; }
  .pay-batch td::before { content: attr(data-label); font-weight: 700; color: var(--muted); }
}
@media (max-width: 360px) { .brand { gap: .4rem; } .brand__name { font-size: .78rem; } .brand .brand__mark { height: 30px; } .nav-toggle { padding-inline: .7rem; gap: .4rem; } }

/* =====================================================================
   Cartes dépliables (programmes par année / par bloc, débouchés)
   ===================================================================== */
.unfold-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; margin-top: 1.4rem; }
.unfold { border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .2s var(--ease), border-color .2s; overflow: hidden; }
.unfold:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.unfold[open] { grid-column: 1 / -1; border-color: var(--amb, var(--red)); }
.unfold summary { list-style: none; cursor: pointer; display: grid; gap: .35rem; padding: 1.3rem 1.4rem; position: relative; border-top: 4px solid var(--amb, var(--red)); }
.unfold summary::-webkit-details-marker { display: none; }
.unfold summary:focus-visible { outline: 3px solid var(--logo-blue); outline-offset: -3px; }
.unfold__kicker { font: 800 .74rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--amb, var(--red)); }
.unfold__title { font: 800 1.12rem/1.25 var(--font-display); color: var(--ink); padding-right: 2.4rem; }
.unfold__meta { font-size: .9rem; color: var(--muted); } .unfold__meta b { color: var(--ink); }
.unfold__intro { font-size: .92rem; color: var(--muted); }
.unfold__cta { margin-top: .35rem; font: 700 .88rem var(--font-display); color: var(--amb, var(--red)); }
.unfold summary::after { content: ""; position: absolute; top: 1.35rem; right: 1.3rem; width: 30px; height: 30px; border-radius: 50%;
  background: var(--amb-soft, var(--surface)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172033' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s var(--ease); }
.unfold[open] summary::after { transform: rotate(180deg); }
.unfold[open] .unfold__cta { display: none; }
.unfold__list { list-style: none; margin: 0; padding: 0 1.4rem 1.2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.unfold__list li { padding: .9rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.unfold__list p { margin: .35rem 0 0; font-size: .88rem; color: var(--muted); }
.unfold__mod { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.unfold__mod strong { font-size: .95rem; }
.unfold__h { flex: none; font: 800 .82rem var(--font-display); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; }
.unfold__body { padding: 0 1.4rem 1.2rem; }
.unfold__body .check-list { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.unfold__label { font: 800 .74rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.unfold--jobs .chips { margin-top: .3rem; padding-right: 2rem; }
.chips--sm li { padding: .3rem .7rem; font-size: .82rem; box-shadow: none; background: var(--surface); }
.table-toggle { margin-top: 1.2rem; }
.table-toggle > summary { cursor: pointer; font: 700 .9rem var(--font-display); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.table-toggle[open] > summary { margin-bottom: .8rem; }
@media (max-width: 760px) {
  .unfold-grid, .unfold__list, .unfold__body .check-list { grid-template-columns: 1fr; }
}
.program-sign { margin: 1.2rem 0 0; font-size: .86rem; color: var(--muted); }
.unfold-grid:has(> .unfold:only-child) { grid-template-columns: 1fr; }
