/* ==========================================================================
   MULFRICA ACADEMY — SITE PUBLIC 2026–2027
   Design system « Modern 2026 × Pop », extension du portail pédagogique :
   Sora/Manrope, aplats francs, ombres dures, halftone, aplats navy.
   Thème sombre par défaut, thème clair conservé (html[data-theme="light"]).
   ========================================================================== */

:root {
  --bg: #040f26;
  --bg-2: #061a38;
  --bg-3: #08224a;
  --surface: #0a2144;
  --surface-2: #0d2a52;
  --surface-3: #123563;
  --ink: #f2f6ff;
  --ink-soft: #d7e3f7;
  --muted: #9db2d0;
  --muted-2: #7f95b6;
  --line: rgba(157, 178, 208, .16);
  --line-strong: rgba(157, 178, 208, .32);
  --navy-950: #020a1c;
  --navy-900: #071a35;
  --yellow: #ffd60a;
  --yellow-deep: #f5c000;
  --pink: #ff3d86;
  --cyan: #22e0f0;
  --purple: #a78bfa;
  --green: #34d17b;
  --coral: #ff7a66;
  --orange: #ff9a3d;
  --blue: #4d8dff;
  --danger: #ff6b5e;
  --success: #34d17b;
  --glass: rgba(6, 22, 46, .72);
  --glass-2: rgba(10, 33, 68, .55);
  --shadow-sm: 0 8px 22px rgba(0, 6, 20, .35);
  --shadow: 0 24px 60px rgba(0, 6, 20, .45);
  --shadow-hard: 6px 6px 0 rgba(0, 4, 14, .7);
  --shadow-hard-sm: 3px 3px 0 rgba(0, 4, 14, .7);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --display: 'Sora', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Manrope', 'Trebuchet MS', system-ui, sans-serif;
  --max: 1240px;
  --header-h: 74px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #eef4fd;
  --bg-2: #e4eefb;
  --bg-3: #dbe9fb;
  --surface: #ffffff;
  --surface-2: #f4f8fe;
  --surface-3: #e8f1fd;
  --ink: #0b2038;
  --ink-soft: #233a55;
  --muted: #566b86;
  --muted-2: #7288a4;
  --line: #dbe7f4;
  --line-strong: #c4d7ea;
  --navy-950: #05173a;
  --navy-900: #0a2a5e;
  --glass: rgba(255, 255, 255, .82);
  --glass-2: rgba(255, 255, 255, .65);
  --shadow-sm: 0 8px 22px rgba(10, 42, 94, .08);
  --shadow: 0 24px 60px rgba(10, 42, 94, .12);
  --shadow-hard: 6px 6px 0 var(--navy-950);
  --shadow-hard-sm: 3px 3px 0 var(--navy-950);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 15.5px/1.65 var(--body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(77, 141, 255, .22), transparent 62%),
    radial-gradient(900px 560px at -6% 12%, rgba(255, 61, 134, .10), transparent 60%),
    radial-gradient(760px 520px at 50% 108%, rgba(34, 224, 240, .08), transparent 62%);
  background-attachment: fixed;
  overflow-x: hidden;
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(900px 520px at 92% -6%, rgba(47, 127, 224, .16), transparent 62%),
    radial-gradient(760px 520px at -8% 22%, rgba(31, 161, 75, .10), transparent 60%),
    radial-gradient(rgba(13, 59, 125, .05) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
}

/* Grain + grille discrète, purement décoratifs. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(157, 178, 208, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 178, 208, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
}
html[data-theme="light"] body::before { opacity: .55; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.1; margin: 0; font-weight: 800; }
p { margin: 0; }
::selection { background: var(--yellow); color: var(--navy-950); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.ico { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: -.18em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--navy-950);
  padding: 10px 16px; border-radius: 10px; font-weight: 800;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--max), 100% - 44px); margin-inline: auto; }
.section { padding: clamp(58px, 8vw, 108px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  margin: 12px 0 0;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 10.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}
.eyebrow.light { color: var(--yellow); }
.eyebrow.center { justify-content: center; }

/* --------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px;
  font: 800 13.5px/1 var(--display);
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--yellow); color: var(--navy-950);
  box-shadow: var(--shadow-hard-sm);
}
.btn-primary:hover { box-shadow: 5px 5px 0 rgba(0, 4, 14, .75); background: #ffe14a; }
html[data-theme="light"] .btn-primary:hover { box-shadow: 5px 5px 0 var(--navy-950); }
.btn-secondary {
  background: rgba(255, 255, 255, .06); color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: rgba(255, 255, 255, .12); border-color: var(--ink-soft); }
html[data-theme="light"] .btn-secondary { background: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-yellow { background: var(--yellow); color: var(--navy-950); box-shadow: var(--shadow-hard-sm); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 3px 3px 0 rgba(0, 4, 14, .7); }
.btn-white { background: #fff; color: var(--navy-950); }
.btn-mini { padding: 8px 13px; font-size: 11.5px; border-radius: 9px; }
.btn.full { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 14.5px; border-radius: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 24px;
  font: 800 12.5px/1 var(--body); color: var(--cyan);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .18s, border-color .18s;
}
.text-link:hover { gap: 11px; border-color: currentColor; }
/* Liens isolés (téléphones, email, retour) : 26 px de haut au doigt. */
.aside-card a, .btn-prev, .contact-card a { min-height: 26px; }
.aside-card a, .contact-card a { display: inline-flex; align-items: center; }
/* Titre d'article cliquable : 24 px de haut minimum au doigt. */
.post-body h3 a { display: inline-flex; align-items: center; min-height: 24px; }
.text-link .ico { width: 15px; height: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 22px 0 0; padding: 0; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52, 209, 123, .16); }

/* --------------------------------------------------------------- Annonce */
/* Bandeau de marque : navy profond, filet jaune, liseré discret. Il reste
   identique dans les deux thèmes pour être immédiatement reconnaissable. */
.announce {
  position: relative; z-index: 95;
  background: linear-gradient(90deg, #061a38, #020a1c 52%, #071a35);
  /* Le bandeau garde son fond navy dans les deux thèmes : texte clair imposé. */
  color: #eef4ff;
  border-bottom: 1px solid rgba(255, 214, 10, .22);
  font-weight: 700; font-size: 12.5px;
  overflow: hidden;
}
.announce::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, .028) 14px 15px);
}
.announce-track {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 18px; text-align: center; flex-wrap: wrap;
}
.announce-text { color: #eef4ff; letter-spacing: .01em; }
.announce-note {
  background: rgba(255, 214, 10, .13); color: var(--yellow);
  border: 1px solid rgba(255, 214, 10, .32); border-radius: 999px;
  padding: 2px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.announce a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  color: var(--yellow); font-weight: 800; text-decoration: none;
  border-bottom: 1px solid rgba(255, 214, 10, .5); padding-bottom: 1px;
  transition: gap .16s, border-color .16s;
}
.announce a:hover { gap: 9px; border-color: var(--yellow); }
.announce a .ico { width: 14px; height: 14px; }
.announce-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); flex: 0 0 auto;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 214, 10, .55); }
  50% { box-shadow: 0 0 0 6px rgba(255, 214, 10, 0); }
}
/* Bandeau défilant : plusieurs annonces pilotées depuis la console. Le
   contenu est rendu deux fois pour que la boucle soit invisible. */
.announce-ticker .announce-track {
  justify-content: flex-start; flex-wrap: nowrap;
  width: max-content; padding: 9px 0;
  animation: announce-scroll 42s linear infinite;
}
.announce-ticker:hover .announce-track,
.announce-ticker:focus-within .announce-track { animation-play-state: paused; }
.announce-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 26px; white-space: nowrap;
}
.announce-item + .announce-item { border-left: 1px solid rgba(255, 214, 10, .28); }
@keyframes announce-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-33.3333%, 0, 0); }
}
@media (max-width: 640px) {
  .announce-ticker .announce-track { animation-duration: 26s; }
  .announce-item { padding: 0 18px; font-size: 12px; }
  .announce-ticker .announce-note { display: none; }
}

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), 100% - 44px); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--yellow), var(--yellow-deep));
  color: var(--navy-950); font: 800 24px/1 var(--display);
  border: 2px solid var(--navy-950);
  box-shadow: 3px 3px 0 var(--navy-950);
  transform: rotate(-4deg);
  transition: transform .25s;
}
.brand:hover .brand-mark { transform: rotate(0) scale(1.05); }
.brand-text strong { display: block; font: 800 14px/1 var(--display); letter-spacing: .08em; }
.brand-text small { display: block; margin-top: 4px; font: 800 8.5px/1 var(--body); letter-spacing: .15em; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1 1 auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 9px; border-radius: 9px;
  font: 700 13.5px/1 var(--body); color: var(--ink-soft);
  white-space: nowrap; transition: color .16s, background .16s;
}
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
html[data-theme="light"] .nav-link:hover { background: var(--surface-3); }
.nav-link.is-active { color: var(--yellow); }
.nav-caret {
  width: 5px; height: 5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 2px;
}
.nav-item { position: relative; }

.mega {
  position: absolute; top: calc(100% + 14px); left: -40px;
  width: min(720px, 86vw);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 60;
}
.nav-item.has-mega:hover .mega,
.nav-item.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega::before {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.mega-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mega-head a { display: inline-flex; align-items: center; gap: 6px; font: 800 11.5px/1 var(--body); color: var(--cyan); }
.mega-head a .ico { width: 13px; height: 13px; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px 0; }
.mega-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px; border-radius: 12px;
  transition: background .15s;
}
.mega-link:hover { background: var(--surface-2); }
.mega-link b { display: block; font: 700 12.5px/1.25 var(--body); }
.mega-link small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.mega-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--line-strong);
}
.mega-ico .ico { width: 17px; height: 17px; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.mega-foot .text-link { font-size: 11px; }

.accent-cyan { color: var(--cyan); background: rgba(34, 224, 240, .12); border-color: rgba(34, 224, 240, .35); }
.accent-pink { color: var(--pink); background: rgba(255, 61, 134, .12); border-color: rgba(255, 61, 134, .35); }
.accent-yellow { color: var(--yellow); background: rgba(255, 214, 10, .12); border-color: rgba(255, 214, 10, .35); }
.accent-purple { color: var(--purple); background: rgba(167, 139, 250, .14); border-color: rgba(167, 139, 250, .36); }
.accent-green { color: var(--green); background: rgba(52, 209, 123, .12); border-color: rgba(52, 209, 123, .34); }
.accent-coral { color: var(--coral); background: rgba(255, 122, 102, .12); border-color: rgba(255, 122, 102, .34); }
.accent-orange { color: var(--orange); background: rgba(255, 154, 61, .12); border-color: rgba(255, 154, 61, .34); }

.header-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink); background: rgba(255, 255, 255, .03);
  transition: background .16s, border-color .16s, color .16s;
  position: relative;
}
.icon-btn:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .08); color: var(--yellow); }
html[data-theme="light"] .icon-btn { background: #fff; }
.icon-btn .ico-sun { display: block; }
.icon-btn .ico-moon { display: none; }
html[data-theme="light"] .icon-btn .ico-sun { display: none; }
html[data-theme="light"] .icon-btn .ico-moon { display: block; }
/* Sélecteur de langue : deux options lisibles, la langue active en jaune. */
.lang-switch {
  height: 38px; padding: 0 5px 0 9px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--muted-2);
}
html[data-theme="light"] .lang-switch { background: #fff; }
.lang-switch > .ico { width: 15px; height: 15px; flex: 0 0 auto; }
.lang-opt {
  font: 800 11px/1 var(--body); letter-spacing: .07em;
  display: inline-flex; align-items: center; justify-content: center;
  /* Hauteur tactile sans élargir le bandeau : la largeur reste au texte. */
  min-height: 30px; min-width: 24px;
  padding: 6px 5px; border-radius: 6px; color: var(--muted);
  transition: color .16s, background .16s;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.is-active { color: var(--navy-950); background: var(--yellow); }
html[data-theme="light"] .lang-opt.is-active { color: var(--navy-950); }
.header-actions .btn { padding: 11px 15px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); place-items: center; color: var(--ink); }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }
.mobile-extra { display: none; }

/* Recherche */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  padding: 16px 0 12px;
  animation: slideDown .2s ease-out;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.search-form {
  width: min(var(--max), 100% - 44px); margin-inline: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 7px 8px 7px 16px;
}
.search-form > .ico { color: var(--muted); width: 20px; height: 20px; }
.search-form input {
  flex: 1; border: 0; background: transparent; padding: 10px 4px; font-size: 15px; outline: none;
  color: var(--ink); min-width: 0;
}
.search-suggest {
  width: min(var(--max), 100% - 44px); margin: 10px auto 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.search-suggest a {
  font-size: 12px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.search-suggest a:hover { color: var(--cyan); border-color: var(--cyan); }

/* --------------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding: clamp(34px, 5vw, 66px) 0 clamp(24px, 4vw, 40px);
  overflow: clip;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px 7px 8px; font-size: 11.5px; font-weight: 800;
  color: var(--ink-soft); background: var(--glass-2);
}
.hero-kicker .dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(52, 209, 123, .16); color: var(--green);
}
.hero-kicker .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  line-height: .98; letter-spacing: -.045em;
  margin: 20px 0 0;
  text-wrap: balance;
}
.hero h1 .accent {
  display: inline;
  color: var(--yellow);
  position: relative;
}
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .1em;
  background: var(--pink); opacity: .55; z-index: -1; transform: rotate(-1.2deg);
}
.hero-sub { color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 17.5px); margin-top: 22px; max-width: 54ch; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 700; flex-wrap: wrap; }
.hero-note .ico { color: var(--green); width: 15px; height: 15px; }
.hero-search { margin-top: 26px; max-width: 520px; }
.hero-search form {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 7px;
  box-shadow: var(--shadow-sm);
}
.hero-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; outline: none;
}
.hero-search .btn { padding: 10px 14px; border-radius: 9px; }
.hero-search .btn span { display: none; }

/* Visuel : constellation de filières + badge central */
.hero-art { position: relative; min-height: 480px; display: grid; place-items: center; }
.hero-orbit {
  position: relative; width: min(420px, 92%); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(77, 141, 255, .18), transparent 62%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 39px, rgba(157, 178, 208, .10) 39px 40px);
  border: 1px dashed rgba(157, 178, 208, .25);
}
.hero-orbit::before {
  content: ""; position: absolute; inset: 13%;
  border-radius: 50%; border: 1px solid rgba(157, 178, 208, .18);
}
.hero-orbit::after {
  content: ""; position: absolute; inset: 26%;
  border-radius: 50%; background: radial-gradient(circle at 40% 30%, rgba(255, 214, 10, .18), transparent 70%);
  border: 1px solid rgba(255, 214, 10, .25);
}
.hero-core {
  position: relative; z-index: 2; text-align: center;
  width: 168px; height: 168px; border-radius: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(150deg, var(--yellow), #ffb703 70%);
  color: var(--navy-950);
  border: 3px solid var(--navy-950);
  box-shadow: 8px 8px 0 rgba(0, 4, 14, .7);
  transform: rotate(-4deg);
}
.hero-core b { font: 800 40px/1 var(--display); letter-spacing: -.05em; }
.hero-core span { font: 800 9px/1.3 var(--body); letter-spacing: .13em; text-transform: uppercase; }
.hero-core small { font: 700 10px/1.4 var(--body); opacity: .75; }
.hero-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 9px 12px 9px 9px;
  box-shadow: var(--shadow-sm);
  font: 800 11.5px/1.2 var(--body);
  animation: float 6s ease-in-out infinite;
}
.hero-chip small { display: block; font: 600 9.5px/1.2 var(--body); color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.hero-chip .chip-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.hero-chip .chip-ico .ico { width: 15px; height: 15px; }
.hero-chip.c1 { top: 4%; left: -2%; animation-delay: -1s; }
.hero-chip.c2 { top: 18%; right: -3%; animation-delay: -2.4s; }
.hero-chip.c3 { bottom: 20%; left: -4%; animation-delay: -3.1s; }
.hero-chip.c4 { bottom: 5%; right: 2%; animation-delay: -.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-9px) rotate(-.6deg); }
}
.hero-stamp {
  position: absolute; z-index: 4; top: -5%; right: 13%;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--pink); color: #fff;
  border: 2px solid var(--navy-950);
  box-shadow: 4px 4px 0 var(--navy-950);
  font: 800 9.5px/1.25 var(--body); letter-spacing: .08em; text-transform: uppercase;
  animation: spinSlow 26s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero-stamp span { display: block; padding: 4px; }
.hero-star { position: absolute; color: var(--yellow); }
.hero-star.s1 { top: 0; left: 18%; width: 26px; }
.hero-star.s2 { bottom: 8%; right: 26%; width: 18px; color: var(--cyan); }
.hero-star .ico { width: 100%; height: auto; }

/* Statistiques + marquee */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--line); overflow: hidden;
}
.hero-stat { background: var(--surface); padding: 20px 22px; position: relative; }
.hero-stat b { display: block; font: 800 clamp(1.7rem, 3vw, 2.5rem)/1 var(--display); letter-spacing: -.04em; }
.hero-stat b em { font-style: normal; color: var(--yellow); }
.hero-stat span { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero-stat small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted-2); }

.marquee {
  margin-top: 22px; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 12px;
  font: 800 11.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--yellow); font-size: 13px; letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- Filières */
.filiere-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.filiere-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s, box-shadow .22s;
  min-height: 208px;
}
.filiere-card::after {
  content: ""; position: absolute; right: -36px; top: -36px;
  width: 120px; height: 120px; border-radius: 50%;
  background: currentColor; opacity: .07; transition: transform .3s, opacity .3s;
}
.filiere-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.filiere-card:hover::after { transform: scale(1.5); opacity: .12; }
.filiere-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid; position: relative; z-index: 1;
}
.filiere-icon .ico { width: 21px; height: 21px; }
.filiere-card h3 { font-size: 16.5px; line-height: 1.25; margin-top: auto; }
.filiere-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.filiere-card .filiere-count { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font: 800 10.5px/1 var(--body); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.filiere-card .filiere-count .ico { width: 15px; height: 15px; transition: transform .2s; }
.filiere-card:hover .filiere-count .ico { transform: translateX(4px); color: var(--cyan); }
.filiere-card:nth-child(5n+1) .filiere-icon { color: var(--cyan); background: rgba(34, 224, 240, .08); border-color: rgba(34, 224, 240, .3); }
.filiere-card:nth-child(5n+2) .filiere-icon { color: var(--pink); background: rgba(255, 61, 134, .08); border-color: rgba(255, 61, 134, .3); }
.filiere-card:nth-child(5n+3) .filiere-icon { color: var(--yellow); background: rgba(255, 214, 10, .08); border-color: rgba(255, 214, 10, .3); }
.filiere-card:nth-child(5n+4) .filiere-icon { color: var(--purple); background: rgba(167, 139, 250, .1); border-color: rgba(167, 139, 250, .32); }
.filiere-card:nth-child(5n+5) .filiere-icon { color: var(--green); background: rgba(52, 209, 123, .08); border-color: rgba(52, 209, 123, .3); }

/* --------------------------------------------------------------- Cartes programme */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.program-card {
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative; overflow: hidden;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.program-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent 65%);
  opacity: .7;
}
.program-card[data-accent="pink"]::before { background: linear-gradient(90deg, var(--pink), transparent 65%); }
.program-card[data-accent="yellow"]::before { background: linear-gradient(90deg, var(--yellow), transparent 65%); }
.program-card[data-accent="purple"]::before { background: linear-gradient(90deg, var(--purple), transparent 65%); }
.program-card[data-accent="green"]::before { background: linear-gradient(90deg, var(--green), transparent 65%); }
.program-card[data-accent="coral"]::before { background: linear-gradient(90deg, var(--coral), transparent 65%); }
.program-card[data-accent="orange"]::before { background: linear-gradient(90deg, var(--orange), transparent 65%); }
.program-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.program-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.program-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid; border-radius: 999px; padding: 5px 10px;
  font: 800 9.5px/1 var(--body); letter-spacing: .1em;
}
.program-badge .ico { width: 13px; height: 13px; }
/* Pastilles 9,5 px : le rose et le violet du thème passaient sous 4,5:1 sur
   les cartes navy. Ces deux teintes allégées repassent au-dessus. */
.program-badge.accent-pink { color: #ff6ea5; }
.program-badge.accent-purple { color: #b9a1ff; }
.program-duration { font: 700 10.5px/1 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.program-card h3 { font-size: 19px; margin: 14px 0 8px; line-height: 1.22; }
.program-card h3 a { display: inline-block; min-height: 24px; }
.program-card h3 a:hover { color: var(--yellow); }
.program-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; min-height: 38px; }
.program-meta {
  list-style: none; padding: 14px 0 0; margin: 16px 0 0;
  border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: 11px; color: var(--muted); font-weight: 700;
}
.program-meta li { display: inline-flex; align-items: center; gap: 5px; }
.program-meta .ico { width: 14px; height: 14px; }
.program-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.program-card-foot .text-link { font-size: 11.5px; }

/* Ligne compacte (résultats, listes) */
.program-row {
  display: grid; grid-template-columns: 44px 1fr auto 26px; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 13px;
  border: 1px solid transparent;
  transition: background .16s, border-color .16s;
}
.program-row:hover { background: var(--surface-2); border-color: var(--line); }
.program-row-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; border: 1px solid; }
.program-row-ico .ico { width: 19px; height: 19px; }
.program-row-main b { display: block; font: 700 14px/1.3 var(--body); }
.program-row-main small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.program-row-price { font: 800 12.5px/1 var(--display); color: var(--ink); white-space: nowrap; }
.program-row-go { color: var(--muted); display: grid; place-items: center; }
.program-row:hover .program-row-go { color: var(--cyan); }
.program-row-go .ico { width: 17px; height: 17px; }
/* Résultats de recherche : deux colonnes sur grand écran, une seule sinon. */
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }

/* --------------------------------------------------------------- Pourquoi */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why-card {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass-2);
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.why-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.why-num {
  position: absolute; right: 16px; top: 10px;
  font: 800 44px/1 var(--display); color: var(--ink); opacity: .05;
}
.why-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255, 214, 10, .10); color: var(--yellow);
  border: 1px solid rgba(255, 214, 10, .28);
  margin-bottom: 16px;
}
.why-card:nth-child(2n) .why-icon { background: rgba(34, 224, 240, .09); color: var(--cyan); border-color: rgba(34, 224, 240, .28); }
.why-card:nth-child(3n) .why-icon { background: rgba(255, 61, 134, .09); color: var(--pink); border-color: rgba(255, 61, 134, .28); }
.why-icon .ico { width: 22px; height: 22px; }
.why-card h3 { font-size: 16px; margin-bottom: 8px; }
.why-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------- Processus */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.process-step {
  position: relative; padding: 24px 18px 20px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
  counter-increment: step;
  transition: transform .2s, border-color .2s;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--yellow); }
.process-step::before {
  content: "0" counter(step);
  font: 800 12px/1 var(--display); color: var(--yellow);
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(255, 214, 10, .4);
  background: rgba(255, 214, 10, .08);
  margin-bottom: 16px;
}
.process-step::after {
  content: ""; position: absolute; top: 40px; right: -13px; width: 14px; height: 1px;
  background: var(--line-strong);
}
.process-step:last-child::after { display: none; }
.process-step h3 { font-size: 14.5px; line-height: 1.3; margin-bottom: 7px; }
.process-step p { font-size: 11.5px; color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------- Témoignages */
.testimonials { position: relative; }
.testimonial-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(340px, 1fr);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial {
  scroll-snap-align: start;
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial-quote {
  display: block; height: 34px; color: var(--yellow);
  font: 800 54px/1 var(--display); letter-spacing: -.04em;
}
.testimonial p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); flex: 1; }
.testimonial-who { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--cyan);
  font: 800 13px/1 var(--display);
  border: 1px solid var(--line-strong);
}

/* Monogrammes de l'équipe (photos non communiquées) : tuile jaune, initiales
   marine, ombre dure — même langage que les aplats du site. */
.contact-card .team-avatar {
  width: 58px; height: 58px; flex: 0 0 auto;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--yellow), var(--yellow-deep));
  color: var(--navy-950);
  font: 800 18px/1 var(--display); letter-spacing: .02em;
  box-shadow: var(--shadow-hard-sm);
  position: relative;
}
.contact-card .team-avatar::after {
  content: ""; position: absolute; inset: 5px;
  border-radius: 13px; border: 1px solid rgba(2, 10, 28, .2);
}
.contact-card .team-meta { display: flex; flex-direction: column; gap: 3px; }
.contact-card .team-meta b { font-size: 15px; }
.contact-card .team-meta span { font-size: 12.5px; color: var(--muted); }
.testimonial-who b { display: block; font-size: 13px; }
.testimonial-who small { display: block; color: var(--muted); font-size: 11px; }
.testimonial-tag { margin-left: auto; font: 800 9px/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); padding: 5px 8px; border-radius: 999px; }
.testimonial-nav { display: flex; gap: 7px; }
.testimonial-nav button {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--ink);
}
.testimonial-nav button:hover { background: var(--yellow); color: var(--navy-950); border-color: var(--yellow); }
.testimonial-nav .ico { width: 16px; height: 16px; }
.testimonial-nav button:first-child .ico { transform: rotate(180deg); }

/* --------------------------------------------------------------- Blog */
.post-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.post-thumb {
  position: relative; display: block; height: 168px; overflow: hidden;
  background:
    radial-gradient(280px 180px at 80% 10%, rgba(255, 61, 134, .35), transparent 65%),
    radial-gradient(240px 200px at 10% 90%, rgba(34, 224, 240, .28), transparent 60%),
    linear-gradient(135deg, #0c2b58, #071c3b);
  border-bottom: 1px solid var(--line);
}
.post-thumb-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: .35;
  mask-image: linear-gradient(120deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 75%);
}
.post-ghost {
  position: absolute; right: 10px; bottom: -30px;
  font: 800 150px/1 var(--display); color: rgba(255, 255, 255, .12);
}
.post-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--yellow); color: var(--navy-950);
  font: 800 9.5px/1 var(--body); letter-spacing: .09em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--navy-950);
  box-shadow: 2px 2px 0 rgba(0, 4, 14, .6);
}
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 12px; font: 700 10.5px/1 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.post-body h3 { font-size: 17px; line-height: 1.3; }
.post-body h3 a:hover { color: var(--yellow); }
.post-body p { font-size: 12.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.post-card-large .post-thumb { height: 230px; }
.post-card-large .post-body h3 { font-size: 22px; }
.post-card-large .post-ghost { font-size: 210px; }
.post-body .text-link { margin-top: 4px; }

/* --------------------------------------------------------------- Bande CTA */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 214, 10, .35);
  /* Pas de halo jaune : sur le navy il vire au kaki. On garde un halo cyan
     très discret et un filet jaune, qui restent nets dans les deux thèmes. */
  background:
    radial-gradient(320px 200px at 100% 0%, rgba(34, 224, 240, .16), transparent 70%),
    radial-gradient(360px 220px at 0% 100%, rgba(34, 224, 240, .06), transparent 70%),
    linear-gradient(120deg, #0b2a55, #04122b 68%);
  isolation: isolate;
  padding: clamp(30px, 5vw, 56px);
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 26px; align-items: center;
}
/* Bande CTA : fond navy fixe, donc texte clair fixe (le thème clair ne doit
   pas y injecter son encre sombre). */
.cta-band { color: #f2f6ff; }
/* Bouton secondaire sur fond navy : l'encre sombre par défaut le rendait
   invisible tant qu'on ne le survolait pas. */
.cta-band .btn-ghost, .portal-callout .btn-ghost {
  color: #f2f6ff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .05);
}
.cta-band .btn-ghost:hover, .portal-callout .btn-ghost:hover {
  color: var(--navy-950); background: var(--yellow); border-color: var(--yellow);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-top: 10px; color: #f2f6ff; }
.cta-band p { color: rgba(220, 232, 248, .88); margin-top: 12px; max-width: 58ch; }
.cta-band-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-self: end; position: relative; z-index: 1; }
/* Sur le halo jaune de la bande, un tag translucide jaune sur jaune devient
   illisible : fond opaque et texte marine, comme les autres pastilles. */
.cta-band .tag {
  background: rgba(4, 12, 30, .72); border-color: rgba(255, 255, 255, .22); color: #dbe6f7;
  line-height: 1.5; border-radius: 12px; padding: 7px 12px; max-width: 100%; text-align: left;
}
.cta-band .tag.accent {
  background: var(--yellow); border-color: var(--yellow); color: var(--navy-950);
  border-radius: 999px; padding: 5px 11px; box-shadow: 3px 3px 0 rgba(0, 4, 14, .55);
}
.cta-band-art {
  position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px;
  border-radius: 50%; border: 1px dashed rgba(255, 214, 10, .3);
}
.cta-band-art::before, .cta-band-art::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08);
}
.cta-band-art::before { inset: 40px; }
.cta-band-art::after { inset: 90px; }

/* --------------------------------------------------------------- Portail */
.portal-callout {
  position: relative;
  margin: 0 0 -2px;
  background:
    radial-gradient(700px 340px at 82% 20%, rgba(34, 224, 240, .16), transparent 62%),
    linear-gradient(120deg, #071c3b, #040f26 70%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
html[data-theme="light"] .portal-callout { background: linear-gradient(120deg, #0a2a5e, #05173a 70%); color: #f2f6ff; }
.portal-callout-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: clamp(42px, 6vw, 76px) 0;
  position: relative; z-index: 2;
}
/* L'art (anneaux + carte) occupe le bord droit : on lui réserve la place pour
   qu'il ne recouvre ni le bouton « Se connecter » ni sa légende. */
@media (min-width: 1040px) {
  .portal-callout-inner { padding-right: 300px; }
  .portal-callout-art { right: 0; }
}
@media (max-width: 1039px) {
  .portal-callout-art { display: none; }
}
.portal-callout h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-top: 10px; }
.portal-callout p { color: #b9cbe6; margin-top: 10px; max-width: 58ch; }
.portal-note { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #8fa7c7; }
.portal-note .ico { width: 15px; height: 15px; color: var(--cyan); }
.portal-callout-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.portal-callout-actions > span { font-size: 11px; color: #8fa7c7; }
.portal-callout-art { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 260px; height: 260px; opacity: .9; pointer-events: none; }
.pca-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(34, 224, 240, .28); }
.pca-ring.r1 { inset: 0; animation: spinSlow 40s linear infinite; }
.pca-ring.r2 { inset: 44px; border-style: solid; border-color: rgba(255, 214, 10, .25); }
.pca-ring.r3 { inset: 92px; border-color: rgba(255, 61, 134, .3); }
.pca-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-6deg);
  width: 110px; height: 110px; border-radius: 26px;
  background: linear-gradient(150deg, var(--yellow), #ffb703);
  color: var(--navy-950); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 2px solid var(--navy-950); box-shadow: 5px 5px 0 rgba(0, 4, 14, .6);
}
.pca-card .ico { width: 22px; height: 22px; }
.pca-card b { font: 800 10px/1 var(--display); letter-spacing: .1em; }
.pca-card small { font: 700 7.5px/1 var(--body); letter-spacing: .1em; opacity: .7; }

/* --------------------------------------------------------------- Footer */
.site-footer {
  background: #030b1d;
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) 0 22px;
  color: #c7d6ea;
}
html[data-theme="light"] .site-footer { background: #071a35; color: #c7d6ea; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1.1fr; gap: 34px; }
.footer-brand .brand-text small, .footer-brand .brand-text strong { color: #f2f6ff; }
.footer-brand .brand-text small { color: #8fa7c7; }
.footer-tagline { margin-top: 16px; font-size: 13px; color: #a9bcd8; max-width: 34ch; }
.footer-acc { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.footer-acc .ico { width: 15px; height: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h3 { font: 800 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #8fa7c7; margin-bottom: 6px; }
.footer-col a, .footer-col .footer-hours { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #c7d6ea; line-height: 1.45; }
.footer-col a:hover { color: var(--yellow); }
.footer-col .ico { width: 15px; height: 15px; margin-top: 1px; color: #7f95b6; }
.footer-contact a:hover .ico { color: var(--yellow); }
.footer-social { display: flex; gap: 8px; margin-top: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .14); color: #c7d6ea;
}
.footer-social a:hover { background: var(--yellow); color: var(--navy-950); border-color: var(--yellow); }
.footer-social .ico { width: 16px; height: 16px; }
.newsletter { margin-top: 22px; }
.newsletter label { display: block; font: 800 12px/1.3 var(--display); color: #f2f6ff; }
.newsletter p { font-size: 11px; color: #8fa7c7; margin-top: 4px; max-width: 36ch; }
.newsletter-row { display: flex; gap: 6px; margin-top: 10px; }
.newsletter input {
  flex: 1; min-width: 0; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05); padding: 9px 11px; font-size: 12px; color: #f2f6ff;
}
.newsletter input::placeholder { color: #7f95b6; }
.newsletter .btn { padding: 9px 12px; border-radius: 9px; font-size: 11px; }
.newsletter-msg { display: block; margin-top: 7px; font-size: 10.5px; color: var(--yellow); min-height: 14px; }
.footer-bottom {
  margin-top: 38px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 10.5px; color: #7f95b6;
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-legal a:hover { color: var(--yellow); }
.footer-portal { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-weight: 800; }
.footer-portal .ico { width: 13px; height: 13px; }

/* --------------------------------------------------------------- Chat */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 120; }
.chat-launcher {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 18px 8px 8px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--yellow), #ffb703); color: var(--navy-950);
  border: 2px solid var(--navy-950); flex: 0 0 auto;
}
.chat-avatar .ico { width: 19px; height: 19px; }
.chat-launcher-text b { display: block; font: 800 11.5px/1.2 var(--display); text-align: left; }
.chat-launcher-text small { display: block; font: 700 9.5px/1.2 var(--body); color: var(--muted); text-align: left; }
.chat-ping { position: absolute; top: 6px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 134, .2); animation: pulse 2s infinite; }
.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(384px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  display: none; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow);
  transform-origin: bottom right;
}
.chat[data-open="true"] .chat-panel { display: flex; animation: chatIn .22s ease-out; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgba(255, 214, 10, .14), rgba(34, 224, 240, .08));
  border-bottom: 1px solid var(--line);
}
.chat-head b { display: block; font: 800 13px/1.2 var(--display); }
.chat-head small { display: block; font-size: 10px; color: var(--muted); }
.chat-close { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border-color: transparent; }
.chat-body {
  padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px;
  flex: 1; min-height: 150px;
}
.chat-msg {
  max-width: 86%; padding: 10px 13px; border-radius: 14px;
  font-size: 12.5px; line-height: 1.55;
  animation: msgIn .2s ease-out;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.chat-msg.bot { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--yellow); color: var(--navy-950); border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 600; }
.chat-msg.agent { background: rgba(52, 209, 123, .13); border: 1px solid rgba(52, 209, 123, .45); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.agent .chat-author { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 3px; }
.chat-msg a { color: var(--cyan); text-decoration: underline; }
.chat-msg.user a { color: var(--navy-900); }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-quick button {
  font: 700 10.5px/1 var(--body); padding: 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.chat-quick button:hover { color: var(--navy-950); background: var(--yellow); border-color: var(--yellow); }
.chat-form { display: flex; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form input {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface-2);
  border-radius: 999px; padding: 10px 14px; font-size: 12.5px; outline: none;
}
.chat-form input:focus { border-color: var(--cyan); }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--navy-950); flex: 0 0 auto;
}
.chat-send .ico { width: 18px; height: 18px; }
.chat-attach {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted);
  flex: 0 0 auto;
}
.chat-attach:hover { color: var(--navy-950); background: var(--yellow); border-color: var(--yellow); }
.chat-files-note { margin: 0; padding: 0 14px 8px; font-size: 10px; color: var(--muted); text-align: right; }
.chat-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-attachments img { max-width: 190px; max-height: 150px; border-radius: 9px; display: block; border: 1px solid var(--line); }
.chat-attachments .chat-file { font-size: 11px; font-weight: 700; padding: 5px 8px; border-radius: 7px; background: rgba(0,0,0,.08); }
.chat-msg.user .chat-attachments .chat-file { background: rgba(0,0,0,.12); color: var(--navy-950); }
.chat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-links a { font-size: 11px; font-weight: 800; }
.chat-lead { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.chat-lead p { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.chat-lead input {
  width: 100%; margin-bottom: 6px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 9px; padding: 9px 11px; font-size: 12px;
}
.chat-lead .btn { padding: 10px; font-size: 11.5px; }
.chat-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 16px; border-top: 1px solid var(--line);
  font-size: 9.5px; color: var(--muted);
}
.chat-foot span, .chat-foot a { display: inline-flex; align-items: center; gap: 5px; }
.chat-foot .ico { width: 13px; height: 13px; }
.chat-foot a { color: var(--green); font-weight: 800; }

/* --------------------------------------------------------------- Page hero */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(38px, 6vw, 74px) 0 clamp(34px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-top: 14px; max-width: 20ch; }
.page-hero .lead { color: var(--muted); margin-top: 16px; max-width: 68ch; font-size: 16px; }
.page-hero-art { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; pointer-events: none; opacity: .55; }
.page-hero-art span { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.page-hero-art span:nth-child(1) { inset: 0; border-style: dashed; animation: spinSlow 50s linear infinite; }
.page-hero-art span:nth-child(2) { inset: 70px; border-color: rgba(255, 214, 10, .28); }
.page-hero-art span:nth-child(3) { inset: 140px; border-color: rgba(34, 224, 240, .3); background: radial-gradient(circle, rgba(34, 224, 240, .12), transparent 70%); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font: 700 11px/1 var(--body); color: var(--muted); margin-bottom: 20px;
}
/* Cible tactile confortable au pouce : la ligne reste discrète, la zone
   cliquable fait 28 px de haut. */
.breadcrumb a { display: inline-flex; align-items: center; min-height: 28px; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span[aria-hidden] { opacity: .5; }
.breadcrumb [aria-current] { color: var(--ink-soft); }

/* --------------------------------------------------------------- Catalogue */
.catalogue { padding-top: clamp(30px, 4vw, 46px); }
.filters {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 40;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px; background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 22px;
}
.filters form { display: contents; }
.filter-search {
  display: flex; align-items: center; gap: 7px; flex: 1 1 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px;
}
.filter-search .ico { color: var(--muted); width: 16px; height: 16px; }
.filter-search input { flex: 1; border: 0; background: transparent; outline: none; padding: 7px 0; font-size: 13px; min-width: 0; }
.filter-select {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  padding: 9px 30px 9px 12px; font-size: 12.5px; font-weight: 700; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%239db2d0' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.filter-select:focus { border-color: var(--cyan); }
.filter-reset { font-size: 11px; color: var(--muted); padding: 8px; border-radius: 8px; }
.filter-reset:hover { color: var(--pink); }
.result-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.result-line b { color: var(--ink); font-size: 13px; }
.filiere-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.filiere-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font-size: 11.5px; font-weight: 700; color: var(--muted);
  transition: all .16s;
}
.filiere-chip .ico { width: 14px; height: 14px; }
.filiere-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.filiere-chip.is-active { background: var(--yellow); color: var(--navy-950); border-color: var(--yellow); font-weight: 800; }
.filiere-chip small { opacity: .65; font-size: 9.5px; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.empty-state {
  text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); color: var(--muted);
}
.empty-state .ico { width: 34px; height: 34px; color: var(--muted-2); margin-bottom: 10px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px;
  display: grid; place-items: center; border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.pagination a:hover { border-color: var(--cyan); color: var(--cyan); }
.pagination .is-active { background: var(--yellow); color: var(--navy-950); border-color: var(--yellow); }

/* --------------------------------------------------------------- Fiche programme */
.program-hero { position: relative; padding: clamp(30px, 5vw, 56px) 0 30px; }
.program-hero-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 30px; align-items: start; }
.program-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 11px; font: 800 10px/1 var(--body); letter-spacing: .06em;
  color: var(--ink-soft); text-transform: uppercase;
}
.tag.accent { background: rgba(255, 214, 10, .1); border-color: rgba(255, 214, 10, .4); color: var(--yellow); }
.program-hero h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); margin: 0 0 12px; }
.program-hero .lead { color: var(--muted); font-size: 15.5px; max-width: 66ch; }
/* Les compétences vivent dans la colonne de gauche, sous les faits : sans
   cela, la carte d'inscription (plus haute) laissait un grand vide avant
   la section suivante. */
.hero-block { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.hero-block h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: 12px; }
.chips-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.chips-list li { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.chips-list .ico { width: 15px; height: 15px; color: var(--green); margin-top: 2px; flex: 0 0 auto; }
.hero-block-careers { margin-top: 18px; padding-top: 18px; }
.fact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; margin-top: 26px;
}
/* Une piste `1fr` ne descend pas sous le min-content de son contenu : sans
   `min-width: 0`, un montant ou une puce large élargit toute la page. */
.program-hero-grid > *, .detail-grid > *, .form-shell > *, .contact-grid > *,
.article-wrap > *, .hero-grid > *, .search-grid > *, .post-card > * { min-width: 0; }
.fact { background: var(--surface); padding: 16px 18px; min-width: 0; }
.fact small { display: block; font: 800 9px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact b { display: block; margin-top: 7px; font: 800 15px/1.2 var(--display); }
.apply-card {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.apply-card .price { font: 800 30px/1 var(--display); letter-spacing: -.03em; }
.apply-card .price small { font: 700 11px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.apply-card .apply-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
.apply-card .btn { margin-top: 14px; }
.apply-card ul { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; color: var(--muted); }
.apply-card li { display: flex; align-items: center; gap: 7px; }
.apply-card .ico { width: 14px; height: 14px; color: var(--green); }
.apply-card .portal-mini { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 10.5px; color: var(--muted); }
.apply-card .portal-mini .ico { width: 13px; height: 13px; color: var(--cyan); }

.detail-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 30px; align-items: start; }
.detail-block { padding: 26px 0; border-top: 1px solid var(--line); }
.detail-block:first-child { border-top: 0; padding-top: 0; }
.detail-block h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 16px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.check-list li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.check-list .ico { width: 16px; height: 16px; color: var(--green); margin-top: 2px; flex: 0 0 auto; }
.career-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.career-chips span {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px;
  font-size: 12px; background: var(--surface); color: var(--ink-soft);
}
.cohort-box {
  border: 1px solid rgba(52, 209, 123, .3); background: rgba(52, 209, 123, .06);
  border-radius: 14px; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.cohort-box .ico { color: var(--green); width: 22px; height: 22px; }
.cohort-box b { font-size: 13.5px; }
.cohort-box small { display: block; color: var(--muted); font-size: 11px; }
.cohort-box .tag { margin-left: auto; }
.module-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.module-table th { text-align: left; font: 800 9.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.module-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.module-table tr:hover td { background: var(--surface-2); }
.module-table .num { text-align: right; white-space: nowrap; color: var(--muted); }

/* --------------------------------------------------------------- Packs / tarifs */
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Grilles posées dans le contenu (équipe, accréditations) : elles doivent
   pouvoir se replier, un style inline ne suivrait pas les media queries. */
.pack-grid.team-grid { grid-template-columns: repeat(3, 1fr); }
.pack-grid.accr-grid { grid-template-columns: repeat(4, 1fr); }
.detail-grid.split-2 { grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) {
  .pack-grid.team-grid, .pack-grid.accr-grid, .detail-grid.split-2 { grid-template-columns: 1fr; }
}
.pack {
  padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; position: relative;
}
.pack.is-popular { border-color: rgba(255, 214, 10, .55); background: linear-gradient(170deg, rgba(255, 214, 10, .07), var(--surface) 55%); box-shadow: var(--shadow-sm); }
.pack-pop {
  position: absolute; top: -11px; left: 24px;
  background: var(--yellow); color: var(--navy-950);
  font: 800 9px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--navy-950);
}
.pack h3 { font-size: 19px; margin-top: 6px; }
.pack .pack-badge { font: 800 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.pack p { font-size: 12.5px; color: var(--muted); margin-top: 10px; min-height: 52px; }
.pack ul { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.pack li { display: flex; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.pack li .ico { width: 14px; height: 14px; color: var(--green); margin-top: 2px; flex: 0 0 auto; }
.pack .pack-fee {
  margin-top: 18px; display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(4, 12, 30, .38); border: 1px solid var(--line);
}
.pack .pack-fee-label {
  font: 800 9.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}
.pack .pack-fee b { font: 800 19px/1.3 var(--display); color: var(--ink); letter-spacing: -.01em; }
.pack.is-popular .pack-fee { background: rgba(255, 214, 10, .08); border-color: rgba(255, 214, 10, .3); }
.pack.is-popular .pack-fee b { color: var(--yellow); }
.pack .pack-fee span { font-size: 11px; color: var(--muted); }
.pack .pack-fee .pack-fee-short { color: var(--cyan); font-weight: 700; margin-top: 2px; }
html[data-theme="light"] .pack .pack-fee { background: rgba(10, 42, 94, .04); }
.pack .btn { margin-top: auto; }
.tariff-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; line-height: 1.7; color: var(--muted); margin-top: 16px; }
.tariff-note .ico { width: 15px; height: 15px; color: var(--yellow); flex: 0 0 auto; }
.tariff-note-short { color: var(--cyan); font-weight: 800; }

/* --------------------------------------------------------------- Admissions */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: adm; }
.step-card {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); counter-increment: adm; position: relative;
}
.step-card::before {
  content: counter(adm, decimal-leading-zero);
  font: 800 30px/1 var(--display); color: var(--yellow); opacity: .9;
  display: block; margin-bottom: 12px;
}
.step-card h3 { font-size: 15px; margin-bottom: 6px; }
.step-card p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.level-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass-2); }
.level-code { font: 800 28px/1 var(--display); letter-spacing: -.04em; color: var(--yellow); }
.level-card h3 { font-size: 13px; margin: 8px 0; color: var(--ink-soft); }
.level-card p { font-size: 12px; color: var(--muted); }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.req-list li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-soft); }
.req-list .ico { width: 15px; height: 15px; color: var(--cyan); margin-top: 3px; flex: 0 0 auto; }
.deadline {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255, 61, 134, .45); background: rgba(255, 61, 134, .09);
  color: #ffd9e6; padding: 9px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
}
.deadline .ico { width: 15px; height: 15px; }
html[data-theme="light"] .deadline { color: #8c1439; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.faq-heading { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 16px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); overflow: hidden;
}
.faq-item[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; cursor: pointer; font: 700 13.5px/1.4 var(--body);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--cyan); border-radius: 2px;
  top: 50%; left: 0; right: 0; height: 1.8px; transform: translateY(-50%);
}
.faq-plus::after { transform: translateY(-50%) rotate(90deg); transition: transform .2s; }
.faq-item[open] .faq-plus::after { transform: translateY(-50%) rotate(0); }
.faq-answer { padding: 0 18px 18px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }

/* --------------------------------------------------------------- Formulaire */
.form-shell {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 26px; align-items: start;
}
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.form-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.form-step-dot {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; color: var(--muted);
  padding: 6px 10px; border-radius: 999px; border: 1px solid transparent;
}
.form-step-dot b {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); font-size: 10px;
}
.form-step-dot.is-active { color: var(--ink); border-color: var(--line-strong); }
.form-step-dot.is-active b { background: var(--yellow); color: var(--navy-950); }
.form-step-dot.is-done b { background: var(--green); color: var(--navy-950); }
.form-step-bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 14px; }
.fieldset { border: 0; padding: 0; margin: 0; display: none; }
.fieldset.is-active { display: block; animation: fadeUp .25s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font: 800 10px/1.3 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field label .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface-2); padding: 11px 13px; font-size: 13.5px;
  color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%239db2d0' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 224, 240, .14);
}
.field .hint { font-size: 10.5px; color: var(--muted-2); }

/* Bandeau : bouton « Mon espace » d'un membre connecté. */
.btn-header-space { gap: 7px; padding: 9px 13px; font-size: 12.5px; }
.btn-header-space svg { width: 15px; height: 15px; }
.btn-header-space.is-active { border-color: var(--cyan); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 35%, transparent); }
@media (max-width: 560px) { .btn-header-space span { display: none; } .btn-header-space { padding: 9px 10px; } }

/* Téléphone : drapeau + indicatif à gauche, numéro national à droite. */
.phone-field { display: grid; grid-template-columns: minmax(118px, 44%) 1fr; gap: 6px; }
.phone-field .phone-code { font-size: 13px; padding-left: 11px; padding-right: 28px; }
.phone-field input { min-width: 0; }
@media (max-width: 430px) { .phone-field { grid-template-columns: 1fr; } }
.track-form .phone-field { margin-top: 5px; }
.track-form .phone-field input, .track-form .phone-field select { padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--ink); }
.track-form .phone-field select { padding-right: 28px; }
.field .err { font-size: 10.5px; color: var(--danger); min-height: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.file-drop {
  border: 1px dashed var(--line-strong); border-radius: 12px; padding: 14px;
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--surface-2); transition: border-color .16s, background .16s;
}
.file-drop:hover { border-color: var(--cyan); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop .ico { color: var(--cyan); width: 20px; height: 20px; }
.file-drop b { display: block; font-size: 11.5px; }
.file-drop small { display: block; font-size: 10px; color: var(--muted); }
.file-drop.has-file { border-color: var(--green); }
.file-drop.has-file .ico { color: var(--green); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--yellow); flex: 0 0 auto; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-actions .btn-prev { color: var(--muted); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.form-actions .btn-prev:hover { color: var(--ink); }
.form-security { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 10.5px; color: var(--muted-2); }
.form-security .ico { width: 13px; height: 13px; color: var(--green); }
.review-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.review-row:last-child { border-bottom: 0; }
.review-row span { color: var(--muted); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.form-aside { display: flex; flex-direction: column; gap: 14px; }
.aside-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass-2); }
.aside-card h3 { font-size: 13.5px; margin-bottom: 8px; }
.aside-card p { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.aside-card ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 7px; }
.aside-card li { display: flex; gap: 8px; font-size: 11.5px; color: var(--ink-soft); }
.aside-card .ico { width: 14px; height: 14px; color: var(--green); margin-top: 2px; flex: 0 0 auto; }
.aside-card.accent { border-color: rgba(255, 214, 10, .35); background: linear-gradient(160deg, rgba(255, 214, 10, .08), transparent 70%); }

/* --------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); transition: border-color .16s;
}
.contact-card:hover { border-color: var(--line-strong); }
.contact-card .cc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(34, 224, 240, .1); color: var(--cyan); flex: 0 0 auto; border: 1px solid rgba(34, 224, 240, .28); }
.contact-card b { display: block; font-size: 12px; }
.contact-card span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.contact-card .text-link { margin-top: 6px; font-size: 10.5px; }
.map-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(240px 160px at 70% 30%, rgba(34, 224, 240, .16), transparent 65%),
    repeating-linear-gradient(35deg, transparent 0 22px, rgba(157, 178, 208, .09) 22px 23px),
    var(--surface);
  padding: 26px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
}
.map-pin { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; box-shadow: 0 0 0 8px rgba(255, 61, 134, .16); margin-bottom: 4px; }
.map-pin .ico { width: 20px; height: 20px; }

/* --------------------------------------------------------------- Article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.article-head { max-width: 760px; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin: 14px 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.article-hero {
  height: clamp(180px, 26vw, 300px); border-radius: var(--radius); margin: 26px 0 30px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    radial-gradient(420px 240px at 78% 20%, rgba(255, 61, 134, .35), transparent 65%),
    radial-gradient(360px 260px at 12% 90%, rgba(34, 224, 240, .28), transparent 62%),
    linear-gradient(135deg, #0c2b58, #061229);
}
.article-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px); background-size: 14px 14px; opacity: .35; }
.article-hero .post-ghost { font-size: clamp(120px, 22vw, 240px); right: 24px; bottom: -50px; }
.prose { font-size: 15px; line-height: 1.8; color: var(--ink-soft); max-width: 72ch; }
.prose p { margin: 0 0 18px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; color: var(--ink); }
.prose h2 { font-size: 24px; margin: 34px 0 12px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--yellow);
  background: var(--surface); border-radius: 0 12px 12px 0; font-size: 15.5px; color: var(--ink);
}
.prose img { border-radius: 14px; }
.article-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 18px); }
.share-row { display: flex; gap: 7px; margin-top: 10px; }
.share-row a { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); }
.share-row a:hover { color: var(--navy-950); background: var(--yellow); border-color: var(--yellow); }

/* --------------------------------------------------------------- Campagne */
.campaign-hero {
  position: relative; padding: clamp(40px, 6vw, 78px) 0;
  background:
    radial-gradient(700px 340px at 84% 20%, rgba(255, 214, 10, .18), transparent 62%),
    radial-gradient(560px 300px at 6% 80%, rgba(255, 61, 134, .16), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.campaign-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); margin: 14px 0 8px; }
.campaign-hero .accent { color: var(--yellow); }
.campaign-bullets { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.campaign-bullets li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-soft); }
.campaign-bullets .ico { width: 16px; height: 16px; color: var(--green); margin-top: 2px; }

/* --------------------------------------------------------------- Recherche */
.search-hero { padding: clamp(30px, 5vw, 54px) 0 20px; }
.search-hero form { display: flex; gap: 8px; margin-top: 20px; max-width: 620px; }
.search-hero input {
  flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); padding: 13px 16px; font-size: 15px; outline: none;
}
.search-group { margin-top: 34px; }
.search-group h2 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.search-group h2 span { font-size: 10px; color: var(--muted); font-weight: 700; }
.search-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.search-item b { font-size: 13.5px; }
.search-item small { color: var(--muted); font-size: 11px; }
.search-item .ico { color: var(--muted); width: 16px; height: 16px; }

/* --------------------------------------------------------------- Légal */
.legal-wrap { max-width: 820px; }
.legal-wrap h2 { font-size: 18px; margin: 30px 0 10px; }
.legal-wrap p { color: var(--muted); font-size: 13.5px; line-height: 1.75; white-space: pre-line; margin-bottom: 12px; }
.legal-updated { font-size: 11px; color: var(--muted-2); margin-top: 30px; }

/* --------------------------------------------------------------- Divers */
.alert {
  padding: 12px 16px; border-radius: 10px; font-size: 12.5px; margin-bottom: 16px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
}
.alert-error { border-color: rgba(255, 107, 94, .5); background: rgba(255, 107, 94, .1); color: #ffd2cd; }
.alert-success { border-color: rgba(52, 209, 123, .5); background: rgba(52, 209, 123, .1); color: #c9ffe1; }
.alert-info { border-color: rgba(34, 224, 240, .4); background: rgba(34, 224, 240, .08); color: #ccf8fd; }
html[data-theme="light"] .alert-error { color: #8d1f18; }
html[data-theme="light"] .alert-success { color: #0f5132; }
html[data-theme="light"] .alert-info { color: #0a4d57; }
.success-box {
  border: 1px solid rgba(52, 209, 123, .4); background: rgba(52, 209, 123, .07);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); text-align: center;
}
.success-box .success-ico {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--navy-950); margin: 0 auto 18px;
  border: 3px solid var(--navy-950); box-shadow: 4px 4px 0 rgba(0, 4, 14, .5);
}
.success-box .success-ico .ico { width: 30px; height: 30px; }
.success-box h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.success-box p { color: var(--muted); margin-top: 10px; }
.ref-code {
  display: inline-block; margin: 18px 0; padding: 12px 22px; border-radius: 12px;
  border: 1px dashed var(--yellow); background: rgba(255, 214, 10, .08);
  font: 800 22px/1 var(--display); letter-spacing: .06em; color: var(--yellow);
}
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.noise { position: relative; }
.noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 5px 5px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
}

html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1); transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------- Responsive */
/* Sous 1270 px, le bouton « Candidater » du bandeau ne tient plus à côté du
   menu complet : il reste accessible dans le menu mobile et les héros. */
@media (max-width: 1270px) {
  .header-actions .hide-sm { display: none; }
}

@media (max-width: 1120px) {
  .main-nav { gap: 0; }
  .nav-link { padding: 9px 8px; font-size: 12.5px; }
  .filiere-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr .85fr; }
  .hero-art { min-height: 420px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .footer-contact h3 { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card-large { grid-column: 1 / -1; }
}

@media (max-width: 1060px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 32px); }
  .header-inner { width: calc(100% - 32px); gap: 10px; }
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }
  /* Le menu mobile contient déjà « Portail » : pas besoin du raccourci. */
  .portal-shortcut { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .lang-btn { height: 36px; min-width: 38px; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 0px) 0 auto 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line-strong);
    padding: 14px 16px 22px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    margin: 0;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; animation: slideDown .2s ease-out; }
  .nav-link { padding: 14px 10px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-item { width: 100%; }
  .nav-caret { margin-left: auto; }
  .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 8px; display: none; }
  .nav-item.has-mega.is-open .mega { display: block; }
  .nav-item.has-mega:hover .mega { display: none; }
  .nav-item.has-mega.is-open:hover .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-head, .mega-foot { padding: 10px 4px; }
  .mega-foot { display: none; }
  .mobile-extra { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
  .mobile-extra .render { display: block; }
  .mobile-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
  .mobile-contact a { display: inline-flex; align-items: center; gap: 8px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 26px; }
  .hero-art { order: -1; min-height: 360px; margin-top: -10px; }
  .hero-orbit { width: min(330px, 84%); }
  .hero-chip { font-size: 10.5px; padding: 7px 10px 7px 7px; }
  .hero-chip .chip-ico { width: 24px; height: 24px; }
  .hero-stamp { width: 76px; height: 76px; font-size: 8px; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .program-grid, .catalogue-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }
  .filiere-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .prose { max-width: none; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .detail-grid, .program-hero-grid, .form-shell, .contact-grid { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .pack-grid, .levels, .steps-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band-actions { justify-self: start; flex-direction: row; flex-wrap: wrap; }
  .portal-callout-inner { grid-template-columns: 1fr; }
  .portal-callout-art { opacity: .28; right: -40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .check-list { grid-template-columns: 1fr; }
  /* auto-fit : sur un écran de 320 px, les montants ne forcent plus la grille
     à dépasser la largeur disponible. */
  .fact-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .chips-list { grid-template-columns: 1fr; }
  .filters { position: static; }
  .campaign-bullets { grid-template-columns: 1fr; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 26px); }
  .header-inner { width: calc(100% - 26px); }
  .brand-mark { width: 38px; height: 38px; font-size: 21px; }
  .brand-text strong { font-size: 12.5px; }
  .brand-text small { font-size: 7.5px; }
  .hero-chip.c1, .hero-chip.c3 { left: -8px; }
  .hero-chip.c2, .hero-chip.c4 { right: -8px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 16px; }
  .program-grid, .catalogue-grid, .why-grid, .filiere-grid, .pack-grid, .levels, .steps-grid, .post-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; gap: 3px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .chat { right: 12px; bottom: 12px; }
  .chat-launcher-text { display: none; }
  .chat-launcher { padding: 6px; }
  .chat-panel { position: fixed; inset: auto 10px 78px 10px; width: auto; max-height: 74vh; }
  .testimonial-track { grid-auto-columns: 86%; }
  .article-head h1 { font-size: 1.9rem; }
  .page-hero .lead { font-size: 14.5px; }
  .result-line { flex-direction: column; gap: 4px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .chat-msg { font-size: 13px; }
  .program-row { grid-template-columns: 38px 1fr auto; gap: 10px; }
  .program-row-go { display: none; }
  .program-row-price { font-size: 11.5px; }
  .search-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Suivi de candidature : deux colonnes sur ordinateur, une seule en mobile. */
@media (max-width: 860px) {
  .track-grid { grid-template-columns: 1fr !important; }
  .track-form { grid-template-columns: 1fr !important; }
  .track-form .btn { width: 100%; }
}

/* Téléphones étroits (320–380 px) : le bandeau doit tenir sans déborder. */
@media (max-width: 380px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 5px; }
  .brand { gap: 8px; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-text strong { white-space: nowrap; }
  .brand-text small { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  .nav-toggle { width: 36px; height: 36px; }
  .lang-switch { padding: 0 4px; gap: 2px; }
  .lang-switch > .ico { display: none; }
  .lang-opt { padding: 6px 4px; font-size: 10.5px; }
  .section { padding: 46px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .announce-ticker .announce-track { animation: none !important; }
  .announce-ticker .announce-track { overflow-x: auto; }
}

@media print {
  .site-header, .announce, .chat, .site-footer, .portal-callout, .cta-band, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .container { width: 100%; }
}
