/* =========================================================
   Institut Myriam — BTS Tourisme Toulouse
   CSS natif (sans framework). Les animations sont pilotées
   par la configuration JSON (admin → Animations).
   ========================================================= */

:root {
    --red: #cc2b2b; --mustard: #e0a618; --blue: #42b0f5; --pink: #e84d8a; --purple: #8c2299;
    --orange: #e15b2b; --olive: #758226; --turquoise: #1bb5a2; --navy: #1e3a8a;
    --emerald: #10b981; --amber: #f59e0b; --sky: #38bdf8; --rose: #fb7185;
    --bg: #f8fafc; --ink: #0f172a; --ink-2: #475569; --ink-3: #94a3b8; --line: #e2e8f0;
    --slate-900: #0f172a; --slate-800: #1e293b; --slate-700: #334155;
    --radius: 1.5rem; --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25); --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .35);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --bar-ms: 1600ms;
}

/* Couleurs de marque : --c (teinte), --cd (version foncée lisible), --ct (fond clair) */
.c-red { --c: var(--red); } .c-mustard { --c: var(--mustard); } .c-blue { --c: var(--blue); }
.c-pink { --c: var(--pink); } .c-purple { --c: var(--purple); } .c-orange { --c: var(--orange); }
.c-olive { --c: var(--olive); } .c-turquoise { --c: var(--turquoise); } .c-navy { --c: var(--navy); }
.c-emerald { --c: var(--emerald); } .c-amber { --c: var(--amber); } .c-sky { --c: var(--sky); } .c-rose { --c: var(--rose); }
[class*="c-"] { --cd: color-mix(in srgb, var(--c, #e15b2b) 72%, #000); --ct: color-mix(in srgb, var(--c, #e15b2b) 12%, #fff); }
.t-red { color: var(--red); } .t-orange { color: var(--orange); } .t-blue { color: #1d8fd6; } .t-purple { color: var(--purple); }
.t-pink { color: #c2336f; } .t-turquoise { color: #0f857a; } .t-olive { color: var(--olive); } .t-mustard { color: #a87b05; } .t-navy { color: var(--navy); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body ::selection { background: var(--orange); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 70%, #fff); outline-offset: 2px; border-radius: 6px; }
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; flex-shrink: 0; }
.icon .snd-waves { opacity: 0; transition: opacity .2s; } .icon .snd-mute { opacity: 1; transition: opacity .2s; }
.icon.is-on .snd-waves { opacity: 1; } .icon.is-on .snd-mute { opacity: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
main, .site-footer { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 1000px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 700; font-size: .95rem; padding: .8rem 1.5rem; border-radius: 9999px; border: 2px solid transparent; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { font-size: .8rem; padding: .6rem 1.15rem; }
.btn-lg { font-size: 1rem; padding: 1rem 2rem; }
.btn-block { display: flex; width: 100%; border-radius: .9rem; padding: .85rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--orange) 80%, transparent); }
.btn-primary:hover { background: #c94c1f; box-shadow: 0 12px 24px -10px var(--orange); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn-ghost:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.btn-soft { background: #f1f5f9; color: var(--ink); }
.btn-soft:hover { background: var(--orange); color: #fff; }
.btn-solid { background: #1d8fd6; color: #fff; box-shadow: 0 8px 18px -8px #1d8fd6; }
.btn-solid:hover { background: #1678b5; }
.btn-amber { background: #f59e0b; color: var(--slate-900); font-family: var(--mono); text-transform: uppercase; }
.btn-amber:hover { background: #fbbf24; }
.btn-dark { background: var(--slate-800); color: #fff; border-color: var(--slate-700); }
.btn-dark:hover { background: var(--slate-700); }
.btn-navy { background: var(--navy); color: #fff; border-color: #1e40af; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; box-shadow: var(--shadow); }
.btn-navy:hover { background: #172554; }

/* ---------- En-tête capsule ---------- */
/* La capsule flotte à 16 px du haut de l'écran, avec un espace égal en haut et en bas de
   son contenu (padding symétrique). Un petit bloc, de la même largeur qu'elle, comble
   l'espace au-dessus pour qu'aucun contenu ne défile dans cet interstice — il reste assez
   discret pour ne pas créer de jonction visible avec le contour arrondi de la capsule. */
.header-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 60; padding: 0 1rem; pointer-events: none; }
.header-wrap::before { content: ""; position: fixed; top: 0; left: 1rem; right: 1rem; max-width: 1280px; margin: 0 auto; height: 16px; background: linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,0)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); z-index: -1; pointer-events: none; }
.site-header { pointer-events: auto; max-width: 1280px; margin: 0 auto; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(226, 232, 240, .9); border-radius: 9999px; box-shadow: 0 10px 25px -10px rgba(15,23,42,.25); padding: .6rem 1rem; transition: border-radius .35s cubic-bezier(.22,.85,.32,1.1), box-shadow .3s; }

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; }
.brand img { height: 44px; width: auto; transition: transform .25s; } .brand:hover img { transform: scale(1.05); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.brand-name { font-size: 1.05rem; letter-spacing: -.02em; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.round-btn { width: 38px; height: 38px; border-radius: 9999px; border: 0; background: #f1f5f9; color: #475569; display: grid; place-items: center; font-size: .95rem; transition: background .2s, color .2s; }
.round-btn:hover { background: #e2e8f0; color: var(--orange); }
.hamburger { width: 42px; height: 42px; }
.icon-hamburger { width: 22px; height: 22px; }
.icon-hamburger line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transition: transform .3s cubic-bezier(.22,.85,.32,1.1), opacity .2s; }
.hamburger.is-open .bar-top { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open .bar-mid { opacity: 0; transform: scaleX(.2); }
.hamburger.is-open .bar-bot { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Menu : tableau des départs, coulisse depuis la droite ----------
   Pas de display:none pendant l'animation (ni [hidden]) : l'élément reste en place,
   hors écran via transform / opacity, sinon la transition ne pourrait pas jouer. */
.menu-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), visibility 0s .35s; }
.menu-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s var(--ease); }
body.menu-lock { overflow: hidden; }

.menu-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(430px, 100vw); background: var(--slate-900); border-left: 1px solid var(--slate-800); box-shadow: -25px 0 50px -20px rgba(0,0,0,.5); display: flex; flex-direction: column; font-family: var(--mono); transform: translateX(100%); visibility: hidden; transition: transform .4s cubic-bezier(.22,.85,.32,1.05), visibility 0s .4s; }
.menu-panel.is-open { transform: translateX(0); visibility: visible; transition: transform .4s cubic-bezier(.22,.85,.32,1.05), visibility 0s; }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem .7rem; border-bottom: 1px solid var(--slate-800); flex-shrink: 0; }
.menu-head .live { font-size: .85rem; }
.menu-close { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--slate-700); background: transparent; color: #e2e8f0; font-size: 1.2rem; line-height: 1; display: grid; place-items: center; flex-shrink: 0; transition: background .2s, color .2s; }
.menu-close:hover { background: rgba(251,191,36,.12); color: #fbbf24; }
.menu-cols, .menu-row { display: grid; grid-template-columns: 3.9rem 1fr 5.9rem; gap: .5rem; align-items: center; }
.menu-cols { padding: .7rem 1.1rem .35rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; flex-shrink: 0; }
.menu-cols span:last-child, .menu-status { text-align: right; }
.menu-rows { flex: 1; overflow-y: auto; padding: 0 .5rem .5rem; }
.menu-row { padding: .8rem .7rem; border-radius: .6rem; color: #e2e8f0; text-decoration: none; transition: background .2s, color .2s; }
.menu-row:hover, .menu-row:focus-visible { background: rgba(251, 191, 36, .1); color: #fbbf24; }
.menu-flight { font-size: .8rem; font-weight: 700; color: #94a3b8; transition: color .2s; }
.menu-row:hover .menu-flight, .menu-row:focus-visible .menu-flight { color: #fbbf24; }
.menu-dest { font-size: 1.02rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-status { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #10b981; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-row.is-last .menu-status { color: #fb7185; }
.menu-row.menu-row-in { animation: menuRowIn .32s ease-out both; }
@keyframes menuRowIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 440px) { .menu-cols, .menu-row { grid-template-columns: 3.4rem 1fr 5.2rem; gap: .4rem; } .menu-dest { font-size: .88rem; } .menu-status { font-size: .6rem; } .menu-flight { font-size: .72rem; } }
@media (max-width: 380px) { .menu-cols, .menu-row { grid-template-columns: 3.1rem 1fr 5.2rem; } .menu-dest { font-size: .8rem; } .menu-status { font-size: .56rem; } }

/* ---------- Préloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; transition: opacity 1.2s ease-out, visibility 1.2s ease-out; }
#preloader.hidden-preloader { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-box { padding: 1.25rem 1.5rem; background: var(--slate-900); border-radius: 1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--slate-800); max-width: min(94vw, 560px); }
.preloader-box { transition: transform .6s var(--ease), box-shadow .6s; }
#preloader.is-landed .preloader-box { transform: scale(1.015); box-shadow: 0 20px 45px -16px rgba(225, 91, 43, .35); }
.preloader-text { color: var(--orange); font: 700 .85rem var(--mono); letter-spacing: .25em; text-transform: uppercase; margin-top: 1.25rem; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Formes du logo en mouvement (arrière-plan) ---------- */
.bg-shapes { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.logo-shape { position: absolute; animation: shapeDrift 30s ease-in-out infinite; will-change: transform; }
.logo-shape svg { display: block; width: 100%; height: 100%; animation: shapeSpin 22s linear infinite; }
@keyframes shapeDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(.9); }
    25% { transform: translate3d(var(--x1), var(--y1), 0) scale(1.08); }
    50% { transform: translate3d(var(--x2), var(--y2), 0) scale(.95); }
    75% { transform: translate3d(var(--x3), var(--y3), 0) scale(1.12); }
}
@keyframes shapeSpin { to { transform: rotate(360deg); } }
.bg-shapes.is-still .logo-shape, .bg-shapes.is-still .logo-shape svg { animation: none; }

/* ---------- Panneau split-flap ---------- */
.flap-panel { display: flex; justify-content: center; width: fit-content; max-width: 100%; margin: 0 auto 2rem; padding: 1rem 1.25rem; background: rgba(255,255,255,.8); backdrop-filter: blur(10px); border: 1px solid rgba(226,232,240,.9); border-radius: 1.25rem; box-shadow: var(--shadow); }
.flap-fallback { display: none; font: 700 1.2rem var(--mono); }
html:not(.js) .flap-fallback { display: block; } html:not(.js) .flap-rows { display: none; }
.flap-rows { display: flex; flex-direction: column; align-items: center; gap: .5rem; max-width: 100%; overflow: hidden; }
.flap-board { --board-len: 12; --flap-w: clamp(13px, calc((min(94vw, 560px) - 4rem) / var(--board-len) - 5px), 46px); display: flex; flex-wrap: nowrap; gap: 5px; justify-content: center; }
.flap-container { perspective: 480px; flex-shrink: 0; }
.flap { position: relative; width: var(--flap-w); height: calc(var(--flap-w) * 1.45); border-radius: 8px; box-shadow: 0 5px 12px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.06); transform-style: preserve-3d; backface-visibility: hidden; will-change: transform; overflow: hidden; }
.flap-half { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; }
.flap-half.top { top: 0; background: linear-gradient(#2a3a52, #1e293b); border-radius: 8px 8px 0 0; box-shadow: inset 0 -1px 0 rgba(0,0,0,.5); }
.flap-half.bottom { bottom: 0; background: linear-gradient(to top, #17202c, #1e293b); border-radius: 0 0 8px 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.flap-face { position: absolute; left: 0; right: 0; height: 200%; display: flex; align-items: center; justify-content: center; color: #f8ad1f; font: 700 calc(var(--flap-w) * .62)/1 var(--mono); text-transform: uppercase; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.flap-half.top .flap-face { top: 0; } .flap-half.bottom .flap-face { bottom: 0; }
.flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.8); z-index: 10; }
.flap::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 7px; margin-top: -3.5px; background: linear-gradient(rgba(0,0,0,.3), transparent 45%, transparent 55%, rgba(0,0,0,.3)); z-index: 9; }
.flap.flap-tick { animation: flapTick .16s linear; }
.flap.flap-land { animation: flapLand .34s cubic-bezier(.22,.85,.32,1.2); }
@keyframes flapTick { 0% { transform: rotateX(0); } 48% { transform: rotateX(-90deg); } 52% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes flapLand { 0% { transform: rotateX(-90deg); } 65% { transform: rotateX(9deg); } 100% { transform: rotateX(0); } }

/* ---------- Révélation au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.js .reveal.active { opacity: 1; transform: none; }

/* Dans une section qui vient d'apparaître, les puces d'une liste se révèlent l'une après
   l'autre plutôt que toutes en même temps — un petit effet de cascade. */
.js .module-list li { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.active .module-list li { opacity: 1; transform: none; }
.module-list li:nth-child(1) { transition-delay: .05s; } .module-list li:nth-child(2) { transition-delay: .1s; }
.module-list li:nth-child(3) { transition-delay: .15s; } .module-list li:nth-child(4) { transition-delay: .2s; }
.module-list li:nth-child(5) { transition-delay: .25s; } .module-list li:nth-child(6) { transition-delay: .3s; }
.module-list li:nth-child(7) { transition-delay: .35s; } .module-list li:nth-child(n+8) { transition-delay: .4s; }

/* ---------- Sections ---------- */
.sec { padding: 6rem 0; position: relative; }
.sec-band { background: rgba(255,255,255,.72); border-block: 1px solid rgba(226,232,240,.7); }
.page-top { padding-top: 8.5rem; }
.page-crumbs { padding: 8.5rem 0 0; }
.sec-more { text-align: center; margin-top: 2.6rem; }

/* Surlignage des mots importants dans les textes longs : fond coloré type marqueur,
   pas seulement du gras. */
mark { background: linear-gradient(to bottom, transparent 55%, rgba(225,91,43,.22) 55%); color: inherit; padding: 0 .08em; border-radius: .15em; }

/* ---------- Illustrations décoratives (pas de vraies photos disponibles) ---------- */
.illu-wrap { max-width: 480px; margin: 0 auto 2.2rem; }
.illu-wrap svg { width: 100%; height: auto; display: block; }

/* ---------- Page d'un module du référentiel (U1 à U7) ---------- */
.module-page .module-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.module-page .module-badges .code { font: 700 .82rem var(--mono); color: #0f172a; background: rgba(15,23,42,.06); padding: .3rem .7rem; border-radius: .4rem; }
.module-page .module-badges .coef { font: 700 .78rem var(--mono); color: var(--ink-2); background: rgba(15,23,42,.04); padding: .3rem .7rem; border-radius: .4rem; }
.module-page h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 900; line-height: 1.18; margin: 0 0 1.6rem; }
.module-section { margin-top: 2.6rem; }
.module-section h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.module-section p { font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); margin: 0 0 1.1rem; }
.module-list { margin: 0 0 1.1rem; padding-left: 1.3rem; font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.module-list li { margin-bottom: .6rem; }
.module-further { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.further-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.further-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.further-card strong { color: var(--ink); font-size: .98rem; }
.further-card span { color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.module-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- Section récit (le H1, en mode storytelling, sous le hero) ---------- */
.story-sec { background: #fff; padding: 5rem 0; }
.story-col { max-width: 46rem; margin: 0 auto; text-align: left; }
.story-col h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 900; line-height: 1.15; margin: .9rem 0 1.9rem; }
.story-prose { font-size: 1.12rem; line-height: 1.85; color: var(--ink-2); }
.story-prose p { margin: 0 0 1.35rem; }
.story-prose strong { color: var(--ink); font-weight: 800; }
.story-drop::first-letter { float: left; font-family: var(--mono); font-size: 3.6rem; line-height: .78; font-weight: 800; padding: .1rem .55rem 0 0; color: var(--orange); }
.hero-lead { max-width: 42rem; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .story-sec { padding: 3.2rem 0; } .story-drop::first-letter { font-size: 2.8rem; } }

/* ---------- Barre fixe du bas (smartphone uniquement) ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
    .mobile-bar {
        display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(15,23,42,.45);
    }
    .mobile-bar-side {
        display: flex; flex-direction: column; align-items: center; gap: .15rem;
        background: none; border: 0; cursor: pointer; padding: .3rem .2rem;
        font: inherit; font-size: .62rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: .06em; color: var(--ink-2); text-decoration: none;
    }
    .mobile-bar-side .icon { width: 20px; height: 20px; }
    .mobile-bar-side:hover, .mobile-bar-side:focus-visible { color: var(--orange); }
    .mobile-bar-cta {
        display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
        background: var(--orange); color: #fff; text-decoration: none; font-weight: 800;
        font-size: .82rem; padding: .75rem 1rem; border-radius: 999px;
        box-shadow: 0 10px 22px -10px rgba(234,88,12,.8); white-space: nowrap;
    }
    .mobile-bar-cta .icon { width: 18px; height: 18px; }
    /* de quoi ne pas masquer la fin de page ni le pied de page */
    body { padding-bottom: 4.6rem; }
    .apply-lock .mobile-bar, .menu-lock .mobile-bar { display: none; }
}
@media (max-width: 400px) {
    .mobile-bar-cta { font-size: .74rem; padding: .7rem .8rem; }
    .mobile-bar-side { font-size: .56rem; }
}
.sec-head { text-align: center; max-width: 52rem; margin: 0 auto 3.5rem; }
.sec-tag { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.sec-head h2, .sec-head h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; margin-top: .5rem; }
.h1-sm { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; margin-top: .5rem; }

/* Petit trait dégradé sous les titres principaux : centré quand le titre l'est,
   aligné à gauche sinon (pages de module, articles longs). */
.sec-head h2::after, .sec-head h1::after, .h1-sm::after {
    content: ""; display: block; width: 58px; height: 4px; margin: 1rem auto 0;
    background: linear-gradient(90deg, var(--orange), var(--mustard)); border-radius: 999px;
}
.story-col h1::after, .module-page h1::after, .module-section h2::after {
    content: ""; display: block; width: 58px; height: 4px; margin-top: .9rem;
    background: linear-gradient(90deg, var(--orange), var(--mustard)); border-radius: 999px;
}
.h2-sm { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.5rem; }
.sec-intro { color: var(--ink-2); margin-top: .9rem; font-size: 1.05rem; }
.grid { display: grid; gap: 1.5rem; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.grid.stretch { align-items: stretch; } .grid.tight { gap: 1rem; }
@media (max-width: 1024px) { .g3 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .sec { padding: 4rem 0; } }
.alert { padding: .9rem 1.2rem; border-radius: 1rem; margin: 0 auto 2rem; max-width: 40rem; text-align: center; font-weight: 600; }
.alert-ok { background: #d1fae5; color: #065f46; } .alert-err { background: #fee2e2; color: #991b1b; }
.footnote { text-align: center; color: var(--ink-3); font-size: .8rem; margin-top: 1.5rem; }
.more-row { margin-top: 2.5rem; }
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .8rem; color: var(--ink-3); margin-bottom: 2rem; }
.crumbs a { text-decoration: none; color: var(--ink-2); } .crumbs a:hover { color: var(--orange); }

.pill { display: inline-block; font-weight: 700; font-size: .72rem; text-transform: uppercase; padding: .35rem .8rem; border-radius: 9999px; background: var(--ct); color: var(--cd); letter-spacing: .04em; }
.pill-green { background: #d1fae5; color: #065f46; letter-spacing: .06em; }
.mono-sm { font: 700 .75rem var(--mono); text-transform: uppercase; letter-spacing: .15em; color: #fbbf24; }
.mono-xs { font: 400 .75rem var(--mono); }
.live { display: flex; align-items: center; gap: .5rem; color: #fbbf24; font: 400 .78rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; animation: ping 1.4s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: .2; } }

/* ---------- Hero ---------- */
.hero { padding: 9.5rem 0 4rem; position: relative; }
.badge-pill { display: inline-flex; align-items: center; gap: .5rem; background: #ffedd5; color: var(--orange); padding: .4rem 1rem; border-radius: 9999px; font: 700 .78rem var(--mono); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.9rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: 1.4rem; }
.grad { background: linear-gradient(90deg, var(--orange), var(--mustard), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 48rem; margin: 0 auto 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
@media (max-width: 640px) { .cta-row .btn { width: 100%; } .sm-br { display: none; } }

/* ---------- KPI ---------- */
.kpis { position: relative; z-index: 2; max-width: 72rem; margin: 0 1rem; padding: 2.2rem 1rem; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: 1.8rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(226,232,240,.9); }
@media (min-width: 1184px) { .kpis { margin: 0 auto; } }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
@media (max-width: 760px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 1rem; } .kpi + .kpi { border-left: 1px solid #f1f5f9; }
@media (max-width: 760px) { .kpi:nth-child(odd) { border-left: 0; } }
.ico { width: 3rem; height: 3rem; border-radius: 1rem; background: var(--ct); color: var(--cd); display: grid; place-items: center; font-size: 1.4rem; }
.kpi .ico { width: 3.5rem; height: 3.5rem; margin: 0 auto .75rem; font-size: 1.6rem; border-radius: 1.1rem; }
.num { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi p { font-size: .75rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-top: .25rem; }

/* ---------- Résultats ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
.res-card { background: #fff; border-radius: var(--radius); padding: 2rem 2rem 1.8rem; box-shadow: var(--shadow); border: 1px solid #f1f5f9; position: relative; overflow: hidden; }
.res-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c); }
.res-year { font: 700 .8rem var(--mono); letter-spacing: .15em; color: var(--cd); background: var(--ct); display: inline-block; padding: .25rem .8rem; border-radius: 9999px; }
.res-num { font-size: clamp(3.2rem, 9vw, 5rem); font-weight: 900; line-height: 1; margin: .9rem 0 .3rem; color: var(--cd); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.res-label { font-weight: 700; color: var(--ink-2); }
.res-note { font-size: .85rem; color: var(--ink-3); margin-top: .9rem; }
.bar { position: relative; height: 14px; border-radius: 9999px; background: #e9eef5; margin-top: 2.2rem; }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 4px 10px -4px var(--c); }
.js .bar-fill { width: 0; transition: width var(--bar-ms) cubic-bezier(.22,.85,.32,1); }
.js .res-card.active .bar-fill { width: var(--w); }
.bar[style*="--mark"]::before { content: ''; position: absolute; left: var(--mark); top: -6px; bottom: -6px; border-left: 2px dashed #64748b; }
.bar[style*="--mark"]::after { content: '100 %'; position: absolute; left: var(--mark); top: -26px; transform: translateX(-50%); font: 700 .65rem var(--mono); color: #64748b; }

/* ---------- Cartes génériques ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border: 1px solid #f1f5f9; }
.hover-lift { transition: transform .3s, box-shadow .3s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(15,23,42,.35); }
.card .ico-lg { width: 3.5rem; height: 3.5rem; font-size: 1.6rem; border-radius: 1rem; margin-bottom: 1.2rem; }
.card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .55rem; }
.card p { font-size: .92rem; color: var(--ink-2); }
.ico-solid { background: var(--c); color: #fff; width: 3rem; height: 3rem; box-shadow: 0 8px 16px -8px var(--c); flex-shrink: 0; }
.card.tint { background: linear-gradient(135deg, var(--ct), #fff 90%); border-color: color-mix(in srgb, var(--c) 22%, #fff); box-shadow: none; }
.card.tint .ico-solid { margin-bottom: 1rem; }

/* ---------- Formation ---------- */
.plan { display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; position: relative; overflow: hidden; transition: box-shadow .3s; }
.plan:hover { box-shadow: var(--shadow-lg); }
.plan-featured { border: 2px solid color-mix(in srgb, var(--c) 35%, transparent); }
.plan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.plan-ico { font-size: 1.9rem; color: var(--cd); }
.plan h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.plan-text { color: var(--ink-2); line-height: 1.7; margin-bottom: 1.4rem; font-size: 1rem !important; }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; font-size: .9rem; color: #334155; }
.checks li { display: flex; align-items: center; gap: .7rem; }
.checks .icon { color: #10b981; font-size: 1.1rem; }
.plan-featured .checks .icon { color: #1d8fd6; }
.ribbon { position: absolute; top: 0; right: 0; background: #1d8fd6; color: #fff; font-size: .72rem; font-weight: 800; padding: .4rem 1rem; border-bottom-left-radius: .9rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Matières ---------- */
.board { background: var(--slate-900); color: #fff; border-radius: 1.8rem; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-lg); margin-bottom: 3rem; border: 1px solid var(--slate-800); }
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--slate-800); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.board-head h3 { font: 700 clamp(1rem, 2.4vw, 1.4rem) var(--mono); margin-top: .3rem; }
.matiere-card { display: block; background: rgba(30,41,59,.6); border: 1px solid var(--slate-700); border-radius: 1.1rem; padding: 1.2rem; transition: background .25s, transform .25s; text-decoration: none; }
.coef { font: 700 .72rem var(--mono); color: #94a3b8; }
.matiere-card:hover { background: var(--slate-800); transform: translateY(-2px); }
.matiere-card.refresh-pulse { animation: matiereRefresh .45s cubic-bezier(.22,.85,.32,1.1) both; }
@keyframes matiereRefresh { from { opacity: .3; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.matiere-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.code { font: 700 .75rem var(--mono); color: #fbbf24; background: rgba(251,191,36,.1); padding: .25rem .6rem; border-radius: .4rem; }
.tagbadge { display: inline-block; font: 700 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: .25rem .6rem; border-radius: .4rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.article-head .tagbadge, .blog-card .tagbadge { color: var(--cd); background: var(--ct); }
.matiere-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: .7rem; line-height: 1.3; }
.matiere-card .sub { font-size: .78rem; color: #94a3b8; margin-bottom: 1rem; }
.hours { display: flex; align-items: center; gap: .4rem; font: 400 .75rem var(--mono); color: #94a3b8; padding-top: .8rem; border-top: 1px solid rgba(51,65,85,.8); }
.matiere-links { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .7rem; }
.matiere-link { display: flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: #fbbf24; text-decoration: none; padding-top: .8rem; margin-top: .3rem; border-top: 1px solid rgba(51,65,85,.8); }
.matiere-link .icon { width: .7rem; height: .7rem; }
.matiere-link:hover { color: #fde68a; text-decoration: underline; }
.matiere-link.is-plain { color: #94a3b8; font-weight: 600; }
.focus { display: flex; gap: 1.2rem; align-items: flex-start; padding: 2rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--ct), #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); }
.focus .ico-solid { width: 3.5rem; height: 3.5rem; font-size: 1.6rem; border-radius: 1rem; }
.focus h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.focus p { font-size: .9rem; color: var(--ink-2); }

/* ---------- Témoignages ---------- */
.testi { margin: 0; display: flex; flex-direction: column; transition: box-shadow .3s; } .testi:hover { box-shadow: var(--shadow-lg); }
.testi-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, var(--pink))); color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: 0 6px 14px -6px var(--c); flex-shrink: 0; }
.testi figcaption { font-weight: 800; line-height: 1.2; }
.testi blockquote { margin: 0; flex: 1; font-size: .9rem; color: var(--ink-2); }
.testi-job { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; display: flex; gap: .5rem; align-items: center; font-size: .75rem; font-weight: 700; color: var(--cd); }

/* ---------- Témoignages vidéo ---------- */
.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.vids-one { max-width: 52rem; margin: 0 auto; grid-template-columns: 1fr; }
.testi-after { margin-top: 3rem; }
.vid { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #f1f5f9; display: flex; flex-direction: column; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; background: var(--slate-900); overflow: hidden; }
.vid-frame img, .vid-frame iframe, .vid-frame video, .vid-blank { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.vid-frame video { object-fit: contain; background: #000; }
.vid-blank { background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 55%, var(--slate-800)), var(--slate-900)); }
.vid-frame img { z-index: 1; transition: transform .6s var(--ease); }
.vid:hover .vid-frame img { transform: scale(1.04); }
.vid-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.45), transparent 55%); pointer-events: none; }
.vid-frame.is-playing::after { display: none; }
.vid-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; border: 3px solid #fff; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.55); transition: transform .25s var(--ease), background .25s; }
.vid-play svg { width: 1.9rem; height: 1.9rem; margin-left: .2rem; }
.vid-play:hover, .vid-play:focus-visible { transform: scale(1.1); background: var(--cd); }
.vid-link { position: absolute; z-index: 3; inset: auto 1rem 1rem auto; color: #fff; font-weight: 700; }
.vid-cap { padding: 1.3rem 1.5rem 1.5rem; display: grid; gap: .4rem; }
.vid-quote { font-size: .95rem; color: var(--ink-2); }
.vid-who { font-size: .9rem; } .vid-job { font-size: .78rem; font-weight: 700; color: var(--cd); }

/* ---------- Entreprises ---------- */
.banner { margin-top: 2.5rem; background: var(--slate-900); border: 1px solid var(--slate-800); border-radius: 1.8rem; padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg); display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; color: #fff; }
.banner > div:first-child { flex: 1 1 380px; }
.banner h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; margin: .8rem 0; }
.banner p { color: #cbd5e1; font-size: .9rem; max-width: 40rem; }
.banner-cta { display: flex; flex-direction: column; gap: .75rem; min-width: 220px; }
@media (max-width: 640px) { .banner-cta { width: 100%; } }

/* ---------- Blog ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.filter { background: #fff; border: 0; border-radius: 9999px; padding: .55rem 1.2rem; font-size: .78rem; font-weight: 700; color: #334155; box-shadow: 0 1px 3px rgba(0,0,0,.1); transition: all .2s; }
.filter:hover { background: #f1f5f9; } .filter.is-on { background: var(--orange); color: #fff; }
.blog-card { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #f1f5f9; display: flex; flex-direction: column; justify-content: space-between; transition: box-shadow .3s, transform .3s; }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card[hidden] { display: none; }
.blog-img { display: block; position: relative; height: 12rem; overflow: hidden; background: #e2e8f0; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; } .blog-card:hover .blog-img img { transform: scale(1.05); }
.img-badge { position: absolute; top: 1rem; left: 1rem; background: var(--c); color: #fff; font: 700 .62rem var(--font); text-transform: uppercase; padding: .3rem .75rem; border-radius: 9999px; box-shadow: 0 2px 6px rgba(0,0,0,.2); letter-spacing: .04em; }
.blog-body { padding: 1.4rem 1.5rem .5rem; flex: 1; }
.blog-body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .55rem; }
.blog-body h3 a { text-decoration: none; transition: color .2s; }
.blog-body h3 a::after { content: ''; position: absolute; inset: 0; }
.blog-card:hover h3 a { color: var(--cd); }
.blog-body p { font-size: .88rem; color: var(--ink-2); }
.blog-foot { padding: 1rem 1.5rem 1.3rem; margin-top: .8rem; border-top: 1px solid #f8fafc; display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--ink-3); }
.blog-foot .more { color: var(--cd); font-weight: 800; display: flex; align-items: center; gap: .3rem; }

/* ---------- Article ---------- */
.article-wrap { max-width: 820px; }
.article-head { text-align: center; margin-bottom: 2rem; }
.article-meta { color: var(--ink-3); font-size: .85rem; margin-top: 1rem; }
.article-img { margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1200/630; background: #e2e8f0; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 1.08rem; line-height: 1.85; color: #1e293b; }
.prose h2 { font-size: 1.6rem; font-weight: 800; margin: 2.2rem 0 .8rem; } .prose h3 { font-size: 1.25rem; font-weight: 800; margin: 1.8rem 0 .6rem; }
.prose p { margin: 0 0 1.2rem; } .prose ul { padding-left: 1.3rem; margin: 0 0 1.4rem; } .prose li { margin-bottom: .4rem; }
.prose a { color: var(--orange); font-weight: 600; }
.cta-box { margin: 3rem 0 0; background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid #fed7aa; border-radius: var(--radius); padding: 2rem; text-align: center; }
.cta-box h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; } .cta-box p { color: var(--ink-2); margin-bottom: 1.3rem; }
.related { margin-top: 5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); overflow: hidden; }
.faq-item h3 { font-size: 1rem; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.2rem 1.5rem; background: none; border: 0; font-weight: 800; color: var(--ink); transition: color .2s; }
.faq-q:hover { color: var(--orange); } .faq-ico { color: var(--orange); font-size: 1.1rem; transition: transform .3s; }
.faq-item.open .faq-ico { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s ease; background: rgba(248,250,252,.6); border-top: 1px solid #f1f5f9; }
.faq-a > div { overflow: hidden; }
.faq-prose { padding: 1.1rem 1.5rem; font-size: .92rem; line-height: 1.7; color: var(--ink-2); }
.faq-prose p { margin: 0 0 .9rem; } .faq-prose p:last-child { margin-bottom: 0; }
.faq-prose ul { margin: 0 0 .2rem; padding-left: 1.2rem; } .faq-prose li { margin-bottom: .4rem; }
.faq-prose a { color: var(--orange); font-weight: 700; text-decoration-thickness: 1.5px; }
.js .faq-a { grid-template-rows: 0fr; border-top-color: transparent; }
.js .faq-item.open .faq-a { grid-template-rows: 1fr; border-top-color: #f1f5f9; }

/* ---------- Contact / passeport ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem; align-items: stretch; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }
.map-card { background: #fff; padding: .75rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.map-head { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid #f1f5f9; }
.map-head h3 { font-size: 1rem; font-weight: 800; } .map-head p { font-size: .75rem; color: var(--ink-3); }
.map-head .ico { width: 3rem; height: 3rem; }
.map-frame { flex: 1; min-height: 320px; margin-top: .75rem; border-radius: 1.1rem; overflow: hidden; background: #f1f5f9; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-info { list-style: none; margin: .75rem 0 0; padding: 1rem; background: #f8fafc; border-radius: 1.1rem; font-size: .8rem; color: var(--ink-2); display: grid; gap: .6rem; }
.map-info li { display: flex; gap: .55rem; align-items: flex-start; } .map-info .icon { margin-top: .2rem; }
.passport-wrap { background: radial-gradient(circle, #1e3a8a 0%, #0f172a 100%), #1e3a8a; border-radius: 1.5rem; padding: 1.25rem; box-shadow: var(--shadow-lg); }
.passport { display: flex; flex-direction: column; background: #fdfaf6 radial-gradient(#e2e8f0 1.5px, transparent 1.5px) 0 0/18px 18px; border-radius: .8rem; box-shadow: inset 0 0 25px rgba(0,0,0,.08); position: relative; overflow: hidden; }
@media (min-width: 1024px) { .passport { flex-direction: row; } .page-right { border-left: 2px solid rgba(0,0,0,.08); } }

.passport-page { flex: 1; padding: 2rem; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }
.passport-id { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; position: relative; z-index: 2; }
.photo { width: 5rem; height: 7rem; flex-shrink: 0; background: #e5e7eb; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); border-radius: .3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9ca3af; font-size: 1.5rem; gap: .2rem; }
.photo span { font: 400 .55rem var(--mono); text-transform: uppercase; }
.fields { flex: 1; display: grid; gap: .8rem; }
.field { margin-bottom: 1rem; position: relative; z-index: 2; }
.p-label { display: block; font-size: .68rem; text-transform: uppercase; color: #64748b; font-weight: 700; letter-spacing: .05em; }
.p-input { width: 100%; background: transparent; border: 0; border-bottom: 2px dotted #94a3b8; padding: .5rem 0; font: 400 .95rem var(--mono); color: #1e293b; position: relative; z-index: 2; border-radius: 0; transition: border-color .3s; }
.p-input:focus { outline: none; border-bottom: 2px solid var(--orange); }
textarea.p-input { resize: none; }

/* ---------- Nouveau formulaire de contact : champs classiques, pas de thème passeport ---------- */
.contact-form-card { background: #fff; border-radius: 1.4rem; padding: 2rem 1.8rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-form-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.contact-form-card .form-sub { color: var(--ink-2); font-size: .92rem; margin-bottom: 1.6rem; }
.plain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.1rem; }
.plain-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .plain-grid { grid-template-columns: 1fr; } }
.plain-field { display: block; }
.plain-label { display: block; font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.plain-input { width: 100%; background: #f8fafc; border: 1.5px solid var(--line); border-radius: .7rem; padding: .7rem .9rem; font: 500 .95rem var(--font); color: var(--ink); transition: border-color .2s, background .2s; }
.plain-input:focus { outline: none; border-color: var(--orange); background: #fff; }
textarea.plain-input { resize: vertical; min-height: 6rem; }
.plain-consent { display: flex; align-items: flex-start; gap: .55rem; font-size: .85rem; color: var(--ink-2); margin: .3rem 0 1.3rem; cursor: pointer; }
.plain-consent input { margin-top: .2rem; }
.plain-captcha { display: flex; align-items: center; gap: .8rem; background: #f8fafc; border: 1.5px dashed var(--line); border-radius: .7rem; padding: .7rem .9rem; margin-bottom: 1.3rem; }
.plain-captcha .captcha-q { font: 700 1rem var(--mono); color: var(--ink); white-space: nowrap; }
.plain-captcha input { flex: 1; min-width: 60px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .75rem; color: #475569; position: relative; z-index: 2; cursor: pointer; }
.consent input { margin-top: .2rem; accent-color: var(--orange); }
.submit-row { position: relative; z-index: 2; padding-top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mrz { margin-top: 1rem; padding-top: .5rem; border-top: 1px solid #e5e7eb; opacity: .4; font: 400 .56rem var(--mono); letter-spacing: .15em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.stamp { position: absolute; width: 95px; height: 95px; display: flex; align-items: center; justify-content: center; text-align: center; font: 700 .72rem var(--mono); text-transform: uppercase; border-radius: 50%; opacity: .45; pointer-events: none; z-index: 1; }
.stamp-blue { top: 15px; right: 15px; border: 3px dashed #42b0f5; color: #1d4ed8; transform: rotate(22deg); }
.stamp-red { bottom: 70px; left: 20px; border: 3px solid #cc2b2b; color: #b91c1c; transform: rotate(-28deg); }
.js .stamp { animation: stampIn .7s .4s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stampIn { from { opacity: 0; transform: scale(2) rotate(0); } }

/* ---------- Candidature en modale (passeport par étapes) ---------- */
.passport-page[hidden] { display: none; }
.captcha-field .p-label { display: flex; align-items: center; gap: .4rem; }
.captcha-field .ico-xs { width: .8rem; height: .8rem; color: var(--orange); flex-shrink: 0; }
.captcha-row { display: flex; align-items: baseline; gap: .7rem; }
.captcha-q { font: 700 1.1rem var(--mono); color: var(--ink); white-space: nowrap; }
.captcha-input { max-width: 5rem; text-align: center; } /* .passport-page force display:flex plus haut : l'attribut doit regagner la main */
.apply-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(15, 23, 42, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 1.1rem; animation: applyFade .25s var(--ease); }
.apply-overlay[hidden] { display: none; }
@keyframes applyFade { from { opacity: 0; } }
body.apply-lock { overflow: hidden; }
.apply-modal { position: relative; width: 100%; max-width: 580px; max-height: min(100%, 44rem); overflow: auto; border-radius: 1.4rem; box-shadow: var(--shadow-lg); background: #fdfaf6; animation: applyPop .32s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes applyPop { from { opacity: 0; transform: scale(.94) translateY(14px); } }
.apply-close { position: absolute; top: .7rem; right: .7rem; z-index: 5; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); }
.apply-close:hover { color: var(--orange); }
.apply-progress[hidden] { display: none; }
.apply-progress { display: flex; align-items: center; justify-content: center; gap: .9rem; padding: 1.4rem 1.6rem .2rem; }
.apply-dot { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #e2e8f0; color: #64748b; display: grid; place-items: center; font: 800 .78rem var(--mono); flex-shrink: 0; transition: background .3s, color .3s; }
.apply-dot.is-on { background: var(--orange); color: #fff; }
.apply-track { position: relative; width: 4.5rem; height: 2px; background: #e2e8f0; border-radius: 2px; }
.apply-plane { position: absolute; left: 0; top: 50%; width: 1.3rem; height: 1.3rem; margin-top: -.65rem; color: var(--orange); transition: left .5s var(--ease); }
.apply-plane .icon { width: 100%; height: 100%; }
.apply-modal .passport-wrap { background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.apply-modal .passport { flex-direction: column; border-radius: 0 0 1.4rem 1.4rem; box-shadow: none; }
.apply-modal .passport-page { padding: 1.4rem 1.6rem 1.8rem; }
.apply-modal .page-right { border-left: 0; }
.apply-next { margin-top: 1.2rem; }
.apply-prev { flex-shrink: 0; }
.apply-modal .submit-row { display: flex; gap: .8rem; align-items: stretch; }
.apply-modal .submit-row .btn-block { flex: 1; }
.rot180 { display: inline-flex; transform: rotate(180deg); }
.apply-slot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.2rem 1.8rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; height: 100%; }
.apply-slot-stamp { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: linear-gradient(145deg, var(--orange), var(--orange-d, #c2410c)); color: #fff; display: grid; place-items: center; margin-bottom: 1rem; box-shadow: 0 10px 25px -8px rgba(234,88,12,.55); }
.apply-slot-stamp .icon { width: 1.7rem; height: 1.7rem; }
.apply-slot-title { font-size: 1.25rem; font-weight: 900; margin-bottom: 1.1rem; }
.apply-slot-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .7rem; text-align: left; align-self: stretch; }
.apply-slot-list li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--ink-2); font-weight: 600; }
.apply-slot-list .icon { width: 1.1rem; height: 1.1rem; color: #10b981; flex-shrink: 0; }
.apply-slot .apply-open { width: 100%; }
.page-confirm { align-items: center; justify-content: center; text-align: center; }
.passport-success .confirm-stamp { width: 8rem; height: 8rem; margin: .4rem auto 1.3rem; border-radius: 50%; border: 4px solid #0f857a; color: #0f857a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; transform: rotate(-10deg); animation: passportStampSlam .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.confirm-stamp .icon { width: 2.2rem; height: 2.2rem; }
.confirm-stamp span { font: 800 .8rem var(--mono); letter-spacing: .14em; }
@keyframes passportStampSlam { 0% { transform: rotate(-10deg) scale(2.8); opacity: 0; } 55% { transform: rotate(-10deg) scale(.93); opacity: 1; } 100% { transform: rotate(-10deg) scale(1); } }
/* Page Contact : formulaire à champs classiques (.contact-form-card), plus de thème
   passeport sur les champs eux-mêmes — seul l'écran de confirmation garde le tampon. */
.confirm-title { font-size: 1.3rem; font-weight: 900; margin-bottom: .5rem; }
.confirm-text { color: var(--ink-2); margin-bottom: 1.5rem; }

/* ---------- Popup d'accueil ---------- */
.promo-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), visibility 0s .35s; }
.promo-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s var(--ease); }
.promo-popup { position: fixed; z-index: 260; left: 50%; bottom: 1.3rem; transform: translate(-50%, 18px); width: min(420px, calc(100vw - 2rem)); background: #fff; border-radius: 1.3rem; box-shadow: var(--shadow-lg); padding: 1.6rem 1.7rem 1.8rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
.promo-popup.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
.promo-close { position: absolute; top: .7rem; right: .7rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-3); font-size: 1.1rem; line-height: 1; display: grid; place-items: center; }
.promo-close:hover { color: var(--orange); }
.promo-tag { display: inline-flex; align-items: center; gap: .4rem; color: var(--orange); font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.promo-tag .icon { width: .85rem; height: .85rem; }
.promo-title { font-size: 1.15rem; font-weight: 900; margin: 0 0 .5rem; padding-right: 1.5rem; }
.promo-text { font-size: .88rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 1.2rem; }
.promo-actions { display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.promo-skip { background: none; border: 0; color: var(--ink-3); font-size: .8rem; text-decoration: underline; }
.promo-skip:hover { color: var(--ink); }
@media (max-width: 560px) { .promo-popup { bottom: .8rem; } }
.reduce-motion .promo-overlay, .reduce-motion .promo-popup { transition: none !important; }

/* ---------- Pied de page ---------- */
.site-footer { background: #f3f4f6; border-top: 1px solid var(--line); color: var(--ink-2); padding: 3rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 1080px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-map { margin-top: 1rem; border-radius: .8rem; overflow: hidden; border: 1px solid rgba(226,232,240,.25); background: rgba(255,255,255,.06); }
.foot-map iframe { display: block; width: 100%; height: 170px; border: 0; filter: grayscale(.25); }
.foot-brand { font-size: 1.25rem; font-weight: 900; color: var(--ink); margin-bottom: .6rem; }
.foot-text { font-size: .78rem; color: #6b7280; margin-bottom: 1rem; }
.foot-title { font-size: .85rem; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .78rem; }
.foot-list a:hover, .foot-line a:hover { color: var(--orange); }
.foot-line { font-size: .78rem; display: flex; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 2rem; height: 2rem; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.12); color: #6b7280; transition: all .2s; }
.socials a:hover { background: var(--orange); color: #fff; }
.copyright { border-top: 1px solid var(--line); padding-top: 1.4rem; text-align: center; font-size: .75rem; color: var(--ink-3); }

/* ---------- Toast ---------- */
.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300; background: var(--slate-900); color: #fff; padding: 1rem 1.4rem; border-radius: 1.1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--slate-700); display: flex; gap: .8rem; align-items: center; max-width: calc(100vw - 2.5rem); animation: toastIn .35s var(--ease); }
.toast[hidden] { display: none; } .toast.err .toast-ok { background: #ef4444; }
.toast-ok { width: 2rem; height: 2rem; border-radius: 50%; background: #10b981; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.toast strong { font-size: .9rem; } .toast p { font-size: .78rem; color: #cbd5e1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Mouvement réduit ----------
   Les animations sont forcées par défaut (Windows coupe souvent les animations au niveau du système).
   La classe .reduce-motion n'est posée que si l'admin décoche « Forcer les animations ». */
.reduce-motion { scroll-behavior: auto; }
.reduce-motion .flap.flap-tick, .reduce-motion .flap.flap-land, .reduce-motion .logo-shape, .reduce-motion .logo-shape svg, .reduce-motion .matiere-card.refresh-pulse, .reduce-motion .menu-row.menu-row-in, .reduce-motion .dot, .reduce-motion .preloader-text, .reduce-motion .stamp, .reduce-motion .toast, .reduce-motion .apply-overlay, .reduce-motion .apply-modal, .reduce-motion .passport-success .confirm-stamp { animation: none !important; }
.reduce-motion .apply-plane { transition: none !important; }
.reduce-motion .menu-overlay, .reduce-motion .menu-panel { transition: none !important; }
.reduce-motion.js .reveal, .reduce-motion.js .module-list li { opacity: 1 !important; transform: none !important; transition: none !important; }
.reduce-motion.js .bar-fill { transition: none !important; width: var(--w) !important; }
@media print { .header-wrap, .bg-shapes, #preloader, .toast, .map-frame { display: none !important; } .js .reveal { opacity: 1; transform: none; } }

/* Correctif : les enfants de grille ne doivent pas forcer la largeur (carte, iframe, MRZ) */
.contact-grid > *, .grid > *, .vids > *, .foot-grid > * { min-width: 0; }
.map-card, .passport-wrap { max-width: 100%; }
.map-info li { overflow-wrap: anywhere; }

/* En-tête compact sur petit écran */
.brand { min-width: 0; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
    .header-wrap { padding: 0 .6rem; }
    .site-header { padding: .45rem .6rem; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-name { font-size: .92rem; }
    .header-actions { gap: .35rem; }
    .round-btn, .hamburger { width: 36px; height: 36px; }
    .header-actions .btn-sm { padding: .5rem .85rem; font-size: .76rem; }
    .header-actions .btn-sm .icon { display: none; }
}

.foot-logo { width: 64px; height: 64px; border-radius: 14px; margin-bottom: .8rem; object-fit: contain; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; }