/*
 * IFPCE - design "Le parchemin"
 * Nuit indigo, or, papier crème. Titres : Cormorant Garamond. Texte : Manrope. Signature : Pinyon Script.
 * Mobile d'abord pour les contraintes de largeur : rien ne doit dépasser (min-width:0, overflow-wrap).
 */

:root {
    --navy: #070f2e; --navy2: #101c55; --navy3: #0b1440;
    --cream: #f6efdd; --paper: #faf4e4;
    --gold1: #f7dd8e; --gold2: #d39a2a; --gold3: #8a5a0c;
    --ink: #14204f; --line: rgba(246, 239, 221, .16); --muted: rgba(246, 239, 221, .78);
    --f-s: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --f-b: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --f-sc: 'Pinyon Script', 'Brush Script MT', cursive;
    --gold: linear-gradient(120deg, var(--gold1), var(--gold2) 45%, var(--gold1) 70%, var(--gold3));
    --ease: cubic-bezier(.2, .8, .2, 1);
    --gut: clamp(18px, 4vw, 48px);
    --wax: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23f6efdd' stroke-opacity='.07' stroke-width='1.4'%3E%3Cpath d='M36 5 67 36 36 67 5 36Z'/%3E%3Cpath d='M36 19 53 36 36 53 19 36Z'/%3E%3Ccircle cx='0' cy='0' r='10'/%3E%3Ccircle cx='72' cy='0' r='10'/%3E%3Ccircle cx='0' cy='72' r='10'/%3E%3Ccircle cx='72' cy='72' r='10'/%3E%3C/g%3E%3C/svg%3E");
    --gold-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 2 18 10 10 18 2 10Z' fill='%23d39a2a'/%3E%3Cpath d='M10 7 13 10 10 13 7 10Z' fill='%23070f2e'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.menu-open { overflow: hidden; }
body.p {
    margin: 0; color: var(--cream); font-family: var(--f-b); font-size: clamp(16px, 1.05vw + 12px, 18px); line-height: 1.62;
    background: radial-gradient(1200px 700px at 78% 6%, #1a2c86 0, transparent 60%), radial-gradient(900px 600px at 0 100%, #2a1a55 0, transparent 55%), var(--navy);
    background-attachment: fixed; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.p::before { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: var(--wax); pointer-events: none; z-index: 0; }
.p img, .p svg, .p iframe { max-width: 100%; }
.p img { display: block; height: auto; }
.p a { color: inherit; }
.p :focus-visible { outline: 3px solid var(--gold1); outline-offset: 3px; border-radius: 4px; }
.p h1, .p h2, .p h3, .p p, .p li, .p dd { overflow-wrap: break-word; min-width: 0; }
.wrap { position: relative; z-index: 1; width: min(1260px, 100% - 2 * var(--gut)); margin-inline: auto; }
.gold-t { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--gold1); color: #2a1a00; padding: 10px 18px; border-radius: 10px; font-weight: 800; transition: top .2s; }
.skip:focus { top: 10px; } 
.kick { display: inline-flex; gap: 12px; align-items: center; font-size: clamp(12px, .8vw + 8px, 13px); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold1); line-height: 1.4; }
.kick::before { content: ""; flex: none; width: 36px; height: 1.5px; background: currentColor; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 100; padding-top: env(safe-area-inset-top); }
.nav::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: rgba(7, 15, 46, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-s); font-weight: 700; font-size: 28px; letter-spacing: .06em; line-height: 1; }
.logo img { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--gold2); flex: none; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.menu a { position: relative; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .88; white-space: nowrap; padding: 8px 0; }
.menu a:not(.c):not(.e)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu a:hover { opacity: 1; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { opacity: 1; color: var(--gold1); }
.menu a.e { border: 1.5px solid var(--gold2); border-radius: 999px; padding: 9px 18px; color: var(--gold1); opacity: 1; }
.menu a.e:hover { background: rgba(211, 154, 42, .16); }
.menu a.c { background: var(--gold); color: #2a1a00; padding: 11px 22px; border-radius: 999px; font-weight: 800; opacity: 1; }
.burger { display: none; position: relative; z-index: 3; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold2); background: transparent; cursor: pointer; padding: 0; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--cream); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
@media (max-width: 1020px) {
    .burger { display: block; }
    .menu {
        position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
        padding: calc(90px + env(safe-area-inset-top)) var(--gut) calc(32px + env(safe-area-inset-bottom)); overflow-y: auto;
        background: radial-gradient(900px 600px at 80% 0, #1a2c86 0, transparent 60%), var(--navy);
        transform: translateY(-102%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
    }
    .menu.open { transform: none; visibility: visible; transition: transform .5s var(--ease); }
    .menu a { font-family: var(--f-s); font-weight: 600; font-size: clamp(30px, 8vw, 44px); line-height: 1.15; padding: 6px 0; opacity: 1; }
    .menu a::after { display: none; }
    .menu a.e, .menu a.c { font-family: var(--f-b); font-size: 17px; margin-top: 14px; }
    .menu a.e + a.c { margin-top: 10px; }
}
@media (max-width: 380px) { .logo { font-size: 24px; } .logo img { width: 40px; height: 40px; } }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border-radius: 999px; font-family: var(--f-b); font-weight: 800; text-decoration: none; font-size: 15.5px; line-height: 1.2; text-align: center; cursor: pointer; border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn.g { background: var(--gold); color: #2a1a00; box-shadow: 0 12px 40px -10px rgba(211, 154, 42, .7); }
.btn.g:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -8px rgba(211, 154, 42, .85); }
.btn.o { border-color: var(--gold2); color: var(--gold1); background: transparent; }
.btn.o:hover { background: rgba(211, 154, 42, .14); transform: translateY(-2px); }
.btn.k { background: var(--ink); color: var(--cream); }
.btn.k:hover { background: var(--navy2); transform: translateY(-2px); }
.acts { display: flex; gap: 12px 14px; flex-wrap: wrap; }
@media (max-width: 520px) { .acts .btn { width: 100%; } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 76px) 0 clamp(56px, 8vw, 100px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
@media (max-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.p h1 { font-family: var(--f-s); font-weight: 600; font-size: clamp(42px, 6.6vw, 112px); line-height: .94; letter-spacing: -.02em; margin: 20px 0 24px; }
.p h1 em { font-style: italic; font-weight: 500; }
.lead { max-width: 46ch; color: var(--muted); font-size: clamp(16.5px, .5vw + 14px, 20px); margin: 0 0 32px; }
.proof { display: flex; gap: 10px 24px; margin-top: 34px; flex-wrap: wrap; font-size: 14px; color: rgba(246, 239, 221, .72); }
.proof span { display: flex; gap: 9px; align-items: center; }
.proof i { color: var(--gold1); }

/* attestation 3D (tailles en cqw : tout reste proportionnel, rien ne déborde) */
.stage { perspective: 1400px; display: grid; place-items: center; padding: 14px 0; min-width: 0; }
.cert-box { --q: 1cqw; container-type: inline-size; width: min(100%, 640px); }
.cert { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative; width: 100%; aspect-ratio: 1.38; border-radius: 14px; color: var(--ink); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08); background: radial-gradient(circle at 20% 15%, #fffaf0, transparent 55%), linear-gradient(135deg, #f9f3e3, #efe3c6); }
.cert.idle { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotateX(4deg) rotateY(-8deg) translateY(0); } 50% { transform: rotateX(-2deg) rotateY(6deg) translateY(-10px); } }
.cert::before { content: ""; position: absolute; top: calc(1.6 * var(--q)); right: calc(1.6 * var(--q)); bottom: calc(1.6 * var(--q)); left: calc(1.6 * var(--q)); border: 2px solid var(--gold2); border-radius: 8px; pointer-events: none; }
.cert::after { content: ""; position: absolute; top: calc(2.9 * var(--q)); right: calc(2.9 * var(--q)); bottom: calc(2.9 * var(--q)); left: calc(2.9 * var(--q)); border: 1px solid rgba(138, 90, 12, .5); border-radius: 5px; pointer-events: none; }
.foil { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 14px; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .9), transparent 38%), conic-gradient(from 210deg at var(--gx) var(--gy), #ff7ad9, #7affd9, #ffe27a, #7a9bff, #ff7ad9); }
.cin { position: absolute; top: calc(5.2 * var(--q)); right: calc(6.4 * var(--q)); bottom: calc(5.2 * var(--q)); left: calc(6.4 * var(--q)); display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateZ(30px); min-width: 0; }
.cin .band { width: 100%; height: calc(2.4 * var(--q)); background: var(--gold-band) 0 0 / calc(2.4 * var(--q)) calc(2.4 * var(--q)) repeat-x; border-block: 1.5px solid var(--gold2); margin-bottom: calc(1.8 * var(--q)); flex: none; }
.cin .org { font-size: max(7px, calc(1.6 * var(--q))); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold3); line-height: 1.4; }
.cin h3 { font-family: var(--f-s); font-weight: 700; font-size: max(19px, calc(6.1 * var(--q))); letter-spacing: .14em; margin: calc(.8 * var(--q)) 0 0; text-transform: uppercase; line-height: 1.1; }
.cin .sub { font-family: var(--f-s); font-style: italic; font-size: max(12px, calc(2.8 * var(--q))); margin: 0; line-height: 1.2; }
.cin .to { font-size: max(7px, calc(1.6 * var(--q))); letter-spacing: .2em; text-transform: uppercase; margin: calc(1.8 * var(--q)) 0 0; color: var(--gold3); font-weight: 700; }
.cin .name { font-family: var(--f-sc); font-size: max(22px, calc(7 * var(--q))); line-height: 1.1; margin: calc(.2 * var(--q)) 0 calc(.6 * var(--q)); color: #1a2a7a; border-bottom: 1px solid rgba(138, 90, 12, .5); padding: 0 calc(3 * var(--q)); max-width: 100%; }
.cin .what { font-size: max(9.5px, calc(2 * var(--q))); max-width: 38ch; margin: calc(.8 * var(--q)) 0 0; line-height: 1.4; }
.cin .what b { font-family: var(--f-s); font-size: 1.28em; line-height: 1.15; display: inline-block; }
.cf { margin-top: auto; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: calc(2 * var(--q)); }
.qr { width: max(34px, calc(9.6 * var(--q))); height: max(34px, calc(9.6 * var(--q))); background: #fff; padding: 3px; border: 1px solid rgba(138, 90, 12, .5); border-radius: 4px; }
.qr svg { width: 100%; height: 100%; display: block; }
.sig { font-family: var(--f-sc); font-size: max(17px, calc(3.8 * var(--q))); line-height: 1; color: #1a2a7a; min-width: 0; }
.sig small { display: block; font-family: var(--f-b); font-size: max(7px, calc(1.45 * var(--q))); letter-spacing: .16em; text-transform: uppercase; color: var(--gold3); margin-top: calc(.6 * var(--q)); border-top: 1px solid rgba(138, 90, 12, .5); padding-top: calc(.5 * var(--q)); }
.cert-num { font-size: max(6.5px, calc(1.45 * var(--q))); letter-spacing: .1em; text-transform: uppercase; color: var(--gold3); font-weight: 800; text-align: left; line-height: 1.5; }
.seal { position: absolute; right: calc(4.2 * var(--q)); bottom: calc(12.5 * var(--q)); width: max(62px, calc(16 * var(--q))); height: max(62px, calc(16 * var(--q))); transform: translateZ(60px) rotate(-8deg); }
.seal svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.ribbon { position: absolute; left: calc(-1.2 * var(--q)); top: calc(3.6 * var(--q)); background: var(--navy2); color: var(--gold1); font-size: max(8px, calc(1.65 * var(--q))); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: calc(.9 * var(--q)) calc(2.4 * var(--q)) calc(.9 * var(--q)) calc(2 * var(--q)); border-radius: 0 6px 6px 0; transform: translateZ(80px); box-shadow: 0 8px 16px rgba(0, 0, 0, .4); z-index: 2; white-space: nowrap; }
.hint { text-align: center; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .55; margin: 16px 0 0; }
@container (max-width: 440px) { .cin .org, .cin .to, .cert-num span { display: none; } .cin .band { margin-bottom: calc(2.4 * var(--q)); } }
@media (max-width: 560px) { .cert { aspect-ratio: 1.12; } .seal { bottom: calc(17 * var(--q)); } .cin .what { font-size: max(10.5px, calc(2 * var(--q))); } }
@media (hover: none) { .hint { display: none; } }

/* ---------- bandeau défilant ---------- */
.tick { border-block: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, .025); position: relative; z-index: 1; }
.tick-t { display: flex; width: max-content; animation: tk 44s linear infinite; }
.tick:hover .tick-t { animation-play-state: paused; }
.tick-s { display: flex; align-items: center; flex: none; }
.tick span { font-family: var(--f-s); font-size: clamp(26px, 4vw, 52px); font-weight: 600; font-style: italic; padding: 16px 0; white-space: nowrap; color: var(--cream); }
.tick span:nth-child(4n+3) { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(246, 239, 221, .55); }
.tick i { flex: none; width: 11px; height: 11px; margin: 0 clamp(18px, 3vw, 34px); background: var(--gold2); transform: rotate(45deg); }
@keyframes tk { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0 0; position: relative; }
.sec:last-of-type { padding-bottom: clamp(48px, 7vw, 96px); }
.h2 { font-family: var(--f-s); font-weight: 600; font-size: clamp(34px, 5.2vw, 84px); line-height: .98; letter-spacing: -.015em; margin: 14px 0 0; }
.h2 em { font-style: italic; font-weight: 500; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 18px 28px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.head > div { min-width: 0; }
.head p { max-width: 38ch; margin: 0; opacity: .78; }
.center { justify-content: center; text-align: center; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .trio { grid-template-columns: minmax(0, 1fr); } }
.glass { border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 3vw, 34px); background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); transition: transform .4s var(--ease), border-color .3s; }
.glass:hover { transform: translateY(-5px); border-color: var(--gold2); }
.glass i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2a1a00; font-size: 20px; margin-bottom: 18px; }
.glass h3 { font-family: var(--f-s); font-size: clamp(25px, 2.4vw, 31px); margin: 0 0 8px; font-weight: 700; line-height: 1.08; }
.glass p { margin: 0; opacity: .8; font-size: 16.5px; }

/* sélecteur de formations */
.sel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 900px) { .sel { grid-template-columns: minmax(0, 1fr); } }
.tabs { border-top: 1px solid var(--line); }
.tab { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 10px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s var(--ease); }
.tab .n { font-family: var(--f-s); font-style: italic; font-size: 26px; color: var(--gold1); }
.tab .t { font-family: var(--f-s); font-size: clamp(21px, 2.3vw, 30px); font-weight: 600; line-height: 1.12; }
.tab i { opacity: 0; transform: translateX(-8px); transition: all .3s var(--ease); color: var(--gold1); }
.tab:hover, .tab[aria-selected="true"] { background: rgba(246, 239, 221, .06); padding-left: 18px; }
.tab[aria-selected="true"] i, .tab:hover i { opacity: 1; transform: none; }
.tab:focus-visible { outline: 3px solid var(--gold1); outline-offset: -3px; }
.sheet { position: sticky; top: 100px; color: var(--ink); background: linear-gradient(135deg, #faf4e4, #efe3c6); border-radius: 18px; padding: clamp(26px, 3.6vw, 40px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); transform: rotate(1.2deg); border: 1px solid rgba(138, 90, 12, .4); min-height: 340px; }
.sheet::before { content: ""; position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px; border: 1.5px solid var(--gold2); border-radius: 11px; pointer-events: none; }
.sheet[hidden] { display: none; }
.sheet .sk { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--gold3); }
.sheet h3 { font-family: var(--f-s); font-size: clamp(27px, 3vw, 40px); line-height: 1.04; margin: 10px 0 20px; font-weight: 700; }
.sheet dl { margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sheet dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold3); }
.sheet dd { margin: 2px 0 0; font-family: var(--f-s); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.1; }
.sheet .acc { grid-column: 1 / -1; }
.sheet .acc dd { font-family: var(--f-b); font-size: 15.5px; font-weight: 500; line-height: 1.55; }
.fade { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
    .tabs { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; margin-bottom: 8px; }
    .tab { width: 52px; height: 52px; padding: 0; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; grid-template-columns: 1fr; }
    .tab .t, .tab i { display: none; }
    .tab:hover, .tab[aria-selected="true"] { padding: 0; }
    .tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold1); }
    .tab[aria-selected="true"] .n { color: #2a1a00; }
    .sheet { position: relative; top: auto; transform: none; min-height: 0; }
}
@media (max-width: 420px) { .sheet dl { grid-template-columns: minmax(0, 1fr); } }

/* parcours */
.path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 58px; }
.path::before { content: ""; position: absolute; top: 20px; left: 0; right: 0; height: 2px; background: var(--line); }
.path::after { content: ""; position: absolute; top: 20px; left: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--gold); box-shadow: 0 0 14px rgba(247, 221, 142, .7); }
.pt { position: relative; min-width: 0; }
.pt .dot { position: absolute; top: -58px; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--f-s); font-size: 22px; font-weight: 700; transition: all .5s var(--ease); }
.pt.on .dot { background: var(--gold); color: #2a1a00; border-color: var(--gold1); box-shadow: 0 0 24px rgba(247, 221, 142, .6); }
.pt h3 { font-family: var(--f-s); font-size: clamp(25px, 2.4vw, 31px); line-height: 1.06; margin: 0 0 8px; font-weight: 700; }
.pt p { margin: 0; opacity: .8; font-size: 16.5px; }
.pt a { color: var(--gold1); font-weight: 700; }
@media (max-width: 900px) {
    .path { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 58px; gap: 34px; }
    .path::before { top: 0; bottom: 0; left: 20px; right: auto; width: 2px; height: auto; }
    .path::after { top: 0; left: 20px; width: 2px; height: calc(var(--p, 0) * 100%); }
    .pt .dot { top: 0; left: -58px; }
}

/* e-learning */
.learn { position: relative; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #14216b, #0a1030 62%); padding: clamp(26px, 5vw, 72px); }
.learn::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--wax); background-size: 72px 72px; opacity: 1; pointer-events: none; }
.learn-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 60px); align-items: end; }
@media (max-width: 900px) { .learn-in { grid-template-columns: minmax(0, 1fr); } }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.facts i { color: var(--gold1); margin-top: 5px; }
.facts b { display: block; font-size: 18px; line-height: 1.3; }
.facts span { opacity: .75; font-size: 15.5px; }
.note { position: relative; margin: 34px 0 0; font-size: 14px; opacity: .65; }

/* à propos (accueil) */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); } }
.collage { position: relative; padding-bottom: 14%; max-width: 520px; width: 100%; }
.collage .a { width: 80%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 2px solid var(--gold2); border-radius: 999px 999px 14px 14px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); }
.collage .b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--gold2); border-radius: 50%; background: var(--navy); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8); }
.tags { list-style: none; margin: 26px 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags a { display: inline-block; text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: border-color .25s, background .25s; }
.tags a:hover { border-color: var(--gold2); background: rgba(211, 154, 42, .12); }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 16px; color: var(--muted); }
.serif-l { font-family: var(--f-s); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 20px; max-width: 28ch; color: var(--cream); }

/* témoignages */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
.quote { position: relative; margin: 0; padding: 44px clamp(22px, 3vw, 34px) 28px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); display: flex; flex-direction: column; gap: 20px; }
.quote::before { content: "\201C"; position: absolute; top: 2px; left: 24px; font-family: var(--f-s); font-size: 100px; line-height: 1; color: var(--gold2); }
.quote blockquote { margin: 0; font-size: clamp(16px, .4vw + 14.5px, 18px); }
.quote blockquote strong { display: block; font-family: var(--f-s); font-size: 26px; line-height: 1.15; margin-bottom: 8px; color: var(--gold1); }
.who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.who b { display: block; }
.who small { opacity: .7; }
.av { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2a1a00; font-family: var(--f-s); font-weight: 700; font-size: 22px; flex: none; }

/* actualités */
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--gold2); }
.news article { padding: 26px 22px 30px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.news article:last-child { border-right: 0; margin-right: 0; }
.news small { font-family: var(--f-s); font-style: italic; font-size: 22px; color: var(--gold1); }
.news h3 { font-family: var(--f-s); font-size: clamp(23px, 2vw, 28px); line-height: 1.12; margin: 8px 0 8px; font-weight: 700; }
.news p { margin: 0; font-size: 16px; opacity: .78; }
@media (max-width: 1000px) {
    .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news article:nth-child(2) { border-right: 0; margin-right: 0; }
    .news article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
    .news { grid-template-columns: minmax(0, 1fr); }
    .news article { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
    .news article:last-child { border-bottom: 0; }
}

/* partenaires */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-t { display: flex; width: max-content; animation: tk 36s linear infinite; }
.marquee:hover .marquee-t { animation-play-state: paused; }
.marquee-s { display: flex; flex: none; gap: 16px; padding-right: 16px; }
.marquee figure { position: relative; margin: 0; width: clamp(104px, 12vw, 140px); aspect-ratio: 1; flex: none; border-radius: 50%; background: #fff; border: 3px solid var(--gold2); overflow: hidden; }
.marquee img { position: absolute; top: 17%; right: 17%; bottom: 17%; left: 17%; width: 66%; height: 66%; max-width: none; object-fit: contain; }

/* appel final */
.end { text-align: center; padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px); }
.end .h2 { font-size: clamp(40px, 7.4vw, 124px); margin: 0 auto; max-width: 14em; }
.end .acts { justify-content: center; margin-top: 36px; }

/* ---------- pied de page ---------- */
.foot { position: relative; z-index: 1; margin-top: clamp(24px, 4vw, 48px); background: rgba(5, 9, 30, .85); border-top: 1px solid var(--line); overflow: hidden; }
.foot .gband { height: 18px; background: var(--gold-band) 0 0 / 18px 18px repeat-x; border-block: 1px solid var(--gold2); }
.foot-g { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr; gap: 36px; padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 5vw, 52px); }
@media (max-width: 1000px) { .foot-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-g { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
.foot-g > div { min-width: 0; }
.foot h4 { font-family: var(--f-s); font-size: 24px; margin: 0 0 14px; color: var(--gold1); font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot a { text-decoration: none; opacity: .86; display: inline-block; padding: 5px 0; overflow-wrap: anywhere; }
.foot a:hover { opacity: 1; color: var(--gold1); }
.foot p { margin: 0 0 10px; overflow-wrap: anywhere; }
.foot .brand { font-family: var(--f-s); font-size: 24px; line-height: 1.25; max-width: 16em; margin-bottom: 20px; }
.social { display: flex; gap: 10px; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid rgba(246, 239, 221, .4); border-radius: 50%; padding: 0; opacity: 1; }
.social a:hover { background: var(--gold1); border-color: var(--gold1); color: #2a1a00; }
.map { width: 100%; height: 200px; border: 0; border-radius: 14px; filter: grayscale(.4) contrast(1.05); }
.giant { font-family: var(--f-s); font-weight: 700; font-size: clamp(90px, 24vw, 380px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(246, 239, 221, .28); text-align: center; margin: 0; padding-bottom: .06em; user-select: none; white-space: nowrap; overflow: hidden; }
.legal { border-top: 1px solid var(--line); padding: 18px 0 calc(18px + env(safe-area-inset-bottom)); font-size: 14px; color: rgba(246, 239, 221, .66); }
.legal .wrap { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.up { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--gold); color: #2a1a00; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); z-index: 90; }
.up.show { opacity: 1; visibility: visible; transform: none; }

.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ======================================================================
   PAGES INTÉRIEURES
   ====================================================================== */
.ph { padding: clamp(36px, 6vw, 76px) 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; font-weight: 600; margin-bottom: 22px; opacity: .85; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--gold1); border-color: currentColor; }
.crumbs span[aria-hidden] { opacity: .5; }
.ph h1 { font-size: clamp(38px, 6.4vw, 100px); max-width: 15em; margin: 18px 0 0; }
.ph h1.sm { font-size: clamp(34px, 5.2vw, 80px); }
.ph-sub { max-width: 52ch; font-size: clamp(17px, .5vw + 14.5px, 21px); margin: 22px 0 0; color: var(--muted); }
.ph .gband { margin-top: clamp(36px, 5vw, 60px); height: 14px; background: var(--gold-band) 0 0 / 14px 14px repeat-x; border-block: 1px solid var(--gold2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--gold2); border-radius: 999px; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.chip i { color: var(--gold1); }

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
.pcard { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: 26px; text-decoration: none; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); transition: transform .4s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-5px); border-color: var(--gold2); }
.pcard .n { font-family: var(--f-s); font-style: italic; font-size: 24px; color: var(--gold1); }
.pcard h3 { font-family: var(--f-s); font-weight: 700; font-size: clamp(25px, 2.4vw, 33px); line-height: 1.08; margin: 0; }
.pcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; color: var(--muted); }
.pcard li { padding-left: 20px; position: relative; }
.pcard li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--gold2); transform: rotate(45deg); }
.pcard .foot-r { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; }
.pcard small { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; font-weight: 700; }
.pcard .go { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold2); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s, color .3s; }
.pcard:hover .go { transform: rotate(-45deg); background: var(--gold); color: #2a1a00; }

.fiche { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 70px); align-items: start; }
@media (max-width: 1100px) { .fiche { grid-template-columns: minmax(0, 1fr); } .aside { order: -1; position: relative !important; top: auto !important; max-width: 560px; } }
.aside { position: sticky; top: 100px; border-radius: 22px; padding: clamp(24px, 3vw, 30px); color: var(--ink); background: linear-gradient(135deg, #faf4e4, #efe3c6); border: 1px solid rgba(138, 90, 12, .4); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.aside::before { content: ""; position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; border: 1.5px solid var(--gold2); border-radius: 15px; pointer-events: none; }
.aside > * { position: relative; }
.aside h2 { font-family: var(--f-s); font-size: 30px; margin: 0 0 16px; line-height: 1; }
.aside dl { margin: 0 0 20px; display: grid; gap: 14px; }
.aside dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold3); }
.aside dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; }
.aside dd ul { margin: 0; padding-left: 18px; font-weight: 500; font-size: 15px; }
.aside .btn { width: 100%; }
.aside .btn + .btn { margin-top: 10px; }
.aside .btn.o { color: var(--ink); border-color: var(--ink); }
.aside .btn.o:hover { background: rgba(20, 32, 79, .08); }
.blk { padding-top: clamp(44px, 6vw, 68px); }
.blk:first-child { padding-top: 0; }
.blk .h2 { font-size: clamp(32px, 4.2vw, 56px); margin: 10px 0 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: clamp(16.5px, .4vw + 15px, 19px); }
.ticks i { color: var(--gold1); margin-top: 6px; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; counter-reset: m; border-top: 1px solid var(--gold2); }
@media (max-width: 700px) { .mods { grid-template-columns: minmax(0, 1fr); } }
.mods li { counter-increment: m; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mods li::before { content: counter(m, decimal-leading-zero); font-family: var(--f-s); font-style: italic; font-size: 25px; color: var(--gold1); }
.roles { display: grid; gap: 16px; }
.role { border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 28px); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
.role small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold1); margin-bottom: 6px; }
.role h3 { font-family: var(--f-s); font-size: clamp(25px, 2.4vw, 30px); margin: 0 0 10px; line-height: 1.1; }
.role p { margin: 0 0 10px; font-size: 16.5px; color: var(--muted); }
.role p:last-child, .role ul:last-child, .role ol:last-child { margin-bottom: 0; }
.role ul, .role ol { margin: 0 0 10px; padding-left: 22px; color: var(--muted); font-size: 16.5px; }
.pills { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 9px 16px; border: 1px solid var(--gold2); border-radius: 999px; font-weight: 600; font-size: 15.5px; }
.link { color: var(--gold1); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 70px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.vals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; counter-reset: v; border-top: 1px solid var(--gold2); }
@media (max-width: 760px) { .vals { grid-template-columns: minmax(0, 1fr); } }
.vals li { counter-increment: v; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(17px, .5vw + 15px, 19.5px); font-weight: 500; }
.vals li::before { content: counter(v, decimal-leading-zero); font-family: var(--f-s); font-style: italic; font-size: 25px; color: var(--gold1); }
.stamp { margin-top: 36px; display: flex; gap: 18px; align-items: center; padding: 22px 26px; border: 1.5px dashed var(--gold2); border-radius: 22px; }
.stamp i { font-size: 28px; color: var(--gold1); flex: none; }
.stamp p { margin: 0; }
.schools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.schools span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--gold2); }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.steps > li::before { content: counter(s); width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: #2a1a00; display: grid; place-items: center; font-family: var(--f-s); font-weight: 700; font-size: 24px; }
.steps h3 { margin: 0 0 6px; font-family: var(--f-s); font-size: clamp(25px, 2.4vw, 30px); line-height: 1.1; }
.steps p, .steps ul { margin: 0; color: var(--muted); }
.steps ul { padding-left: 20px; }
.steps a { color: var(--gold1); }

.cband { position: relative; overflow: hidden; margin-top: clamp(64px, 9vw, 120px); border-block: 1px solid var(--gold2); background: linear-gradient(135deg, #14216b, #0a1030 62%); }
.cband::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--wax); background-size: 72px 72px; pointer-events: none; }
.cband .wrap { padding: clamp(44px, 7vw, 80px) 0; display: flex; justify-content: space-between; align-items: center; gap: 24px 32px; flex-wrap: wrap; }
.cband h2 { font-family: var(--f-s); font-weight: 600; font-size: clamp(32px, 4.6vw, 62px); line-height: 1; letter-spacing: -.015em; margin: 0; max-width: 14em; }
.cband h2 em { font-weight: 500; }

.gal { column-count: 3; column-gap: 16px; }
@media (max-width: 1000px) { .gal { column-count: 2; } }
@media (max-width: 520px) { .gal { column-count: 1; } }
.gal a { position: relative; display: block; margin: 0 0 16px; break-inside: avoid; border: 1.5px solid var(--gold2); border-radius: 16px; overflow: hidden; background: var(--navy3); cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.gal a:nth-child(7n+2) { border-radius: 160px 160px 16px 16px; }
.gal a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); }
.gal img { width: 100%; height: auto; display: block; }
.gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; font-size: 13.5px; font-weight: 600; background: linear-gradient(to top, rgba(5, 9, 30, .9), transparent); }
.lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 400; display: none; place-items: center; background: rgba(5, 9, 30, .94); padding: 16px; }
.lb.open { display: grid; }
.lb img { max-width: 100%; max-height: 86vh; max-height: 86dvh; width: auto; border: 2px solid var(--gold2); border-radius: 12px; }
.lb button { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--gold2); background: var(--navy); color: var(--cream); font-size: 20px; cursor: pointer; }
.lb button:hover { background: var(--gold); color: #2a1a00; }

.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.infos { display: grid; gap: 14px; }
.info { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); transition: border-color .3s, transform .3s var(--ease); }
.info:hover { border-color: var(--gold2); transform: translateY(-3px); }
.info i { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #2a1a00; display: grid; place-items: center; font-size: 17px; }
.info small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold1); }
.info a { text-decoration: none; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.info a:hover { color: var(--gold1); border-color: currentColor; }
.form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 40px); border-radius: 24px; color: var(--ink); background: linear-gradient(135deg, #faf4e4, #efe3c6); border: 1px solid rgba(138, 90, 12, .4); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.form h2 { font-family: var(--f-s); font-size: clamp(30px, 3.4vw, 42px); margin: 0; line-height: 1; }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: 14.5px; }
.form input, .form textarea { font: inherit; font-size: 16px; font-weight: 500; width: 100%; padding: 13px 16px; border: 1.5px solid rgba(20, 32, 79, .55); border-radius: 12px; background: #fff; color: var(--ink); }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--gold2); outline-offset: 1px; }
.form .btn { justify-self: start; }
.form p { margin: 0; font-size: 14px; opacity: .75; }
@media (max-width: 520px) { .form .btn { justify-self: stretch; } }
.mapbig { width: 100%; height: clamp(260px, 40vw, 400px); border: 1.5px solid var(--gold2); border-radius: 22px; margin-top: clamp(36px, 5vw, 64px); filter: grayscale(.3); }

.legalbody { max-width: 78ch; font-size: 16.5px; color: var(--muted); overflow-wrap: anywhere; }
.legalbody h1, .legalbody h2, .legalbody h3 { font-family: var(--f-s); color: var(--cream); letter-spacing: -.01em; }
.legalbody ol, .legalbody ul { padding-left: 24px; }
.legalbody li { margin: 16px 0 8px; }
.legalbody li p { margin: 8px 0; }
.legalbody b, .legalbody strong { color: var(--cream); }
.legalbody a { color: var(--gold1); }
.legalbody table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.legalbody td, .legalbody th { border: 1px solid var(--line); padding: 8px 12px; }
.legalbody img { max-width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .rv { opacity: 1; transform: none; }
    .tick, .marquee { overflow-x: auto; }
}
@media (max-width: 1000px) { .hint { display: none; } }
@container (max-width: 440px) {
    .cin .sub { font-size: max(13px, calc(3.5 * var(--q))); margin-top: calc(.6 * var(--q)); }
    .cin .name { margin: calc(1.4 * var(--q)) 0 calc(1.4 * var(--q)); }
    .cin .what { margin-top: calc(1.6 * var(--q)); }
}

/* anciens navigateurs : repli sans unités de conteneur ni aspect-ratio */
@supports not (width: 1cqw) {
    .cert-box { --q: min(.88vw, 6.4px); }
}
@supports not (aspect-ratio: 1) {
    .cert { height: 0; padding-bottom: 72.5%; }
    .marquee figure { height: clamp(104px, 12vw, 140px); }
    .collage .a, .collage .b { height: auto; }
}
@media (max-width: 560px) {
    @supports not (aspect-ratio: 1) { .cert { padding-bottom: 89%; } }
}

/* fiches : sommaire cliquable */
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.toc span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--gold1); margin-right: 6px; }
.toc a { text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--cream); transition: border-color .25s, background .25s; }
.toc a:hover, .toc a:focus-visible { border-color: var(--gold1); background: rgba(246, 239, 221, .06); }

/* fiches : barre de candidature fixe (tablette et mobile) */
.stick { display: none; }
@media (max-width: 1100px) {
    .stick { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
        padding: 10px max(var(--gut), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(var(--gut), env(safe-area-inset-left));
        background: rgba(7, 15, 46, .96); border-top: 1px solid var(--gold2); transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
    .stick.show { transform: none; visibility: visible; }
    .stick div { min-width: 0; line-height: 1.25; }
    .stick small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold1); }
    .stick b { font-size: 16px; white-space: nowrap; }
    .stick .btn { flex: none; white-space: nowrap; padding: 12px 22px; }
    body.has-stick .up { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* candidature : une ligne par formation */
.cl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cl a { text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; font-family: var(--f-s); font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; line-height: 1.15; transition: border-color .25s, background .25s; }
.cl a:hover, .cl a:focus-visible { border-color: var(--gold1); background: rgba(246, 239, 221, .05); }
.cl small { display: block; margin-top: 6px; font-family: var(--f-b); font-size: 13px; font-weight: 600; color: var(--muted); }
.cl i { color: var(--gold1); flex: none; }
@media (max-width: 760px) { .cl { grid-template-columns: minmax(0, 1fr); } }

/* politique de confidentialité */
.legalbody h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; margin: 44px 0 12px; }
.legalbody .upd { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--gold1); margin-top: 0; }
.legalbody ul li { margin: 10px 0; }

/* page 404 */
.nf { padding: clamp(72px, 12vw, 150px) 0; text-align: center; }
.nf-n { font-family: var(--f-s); font-weight: 600; font-size: clamp(120px, 26vw, 300px); line-height: .85; margin: 0; letter-spacing: -.03em; }
.nf h1 { font-family: var(--f-s); font-weight: 600; font-size: clamp(38px, 6vw, 72px); line-height: 1; margin: 12px 0 0; }
.nf .ph-sub { margin: 18px auto 32px; max-width: 34em; }
.nf .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* impression : fiches et pages lisibles sur papier */
@page { margin: 16mm; }
@media print {
    html { scroll-padding: 0; }
    body.p, body.p * { background: none !important; color: #111 !important; box-shadow: none !important; text-shadow: none !important; -webkit-text-fill-color: #111 !important; }
    body.p::before, body.p *::before, body.p *::after { background: none !important; box-shadow: none !important; }
    .nav, .progress, .up, .stick, .skip, .cband, .tick, .marquee, .toc, .social, .map, .mapbig, .giant, .gband, .lb, .btn, .hint, .burger { display: none !important; }
    .js .rv { opacity: 1 !important; transform: none !important; }
    .wrap { width: auto !important; max-width: none !important; padding: 0 !important; }
    .sec, .ph { padding: 12px 0 !important; margin: 0 !important; }
    .fiche { display: block !important; }
    .aside { position: static !important; max-width: none !important; border: 1px solid #888 !important; margin: 0 0 18px !important; break-inside: avoid; }
    .aside::before { display: none !important; }
    .blk { padding-top: 18px !important; break-inside: avoid; }
    h1, h2, h3 { break-after: avoid; }
    h1 { font-size: 28pt !important; } .blk .h2, .h2 { font-size: 18pt !important; margin: 4px 0 8px !important; }
    .ph h1 { margin: 6px 0 !important; }
    .foot { border-top: 1px solid #888 !important; margin-top: 20px; }
    .foot-g { display: block !important; }
    .foot-g > div { margin-bottom: 8px; }
    a { text-decoration: none; }
    .legalbody a[href^="mailto"]::after, .foot a[href^="mailto"]::after { content: ""; }
}
