/* ==========================================================================
   Université Polytechnique ISPA — Feuille de style institutionnelle
   Identité : bleu ISPA, or Alpha, ivoire. Typo : Zodiak (titres) + General Sans (texte)
   ========================================================================== */

:root {
  --navy-950: #060f33;
  --navy-900: #0a1a4f;
  --navy-800: #0f2468;
  --blue: #1537a8;
  --blue-600: #1d44c4;
  --blue-50: #eef2fc;
  --gold: #f2aa26;
  --gold-600: #d88f0c;
  --gold-50: #fdf5e4;
  --ivory: #f8f5ee;
  --ivory-2: #f1ece0;
  --white: #ffffff;
  --ink: #0d1533;
  --ink-2: #2b3456;
  --muted: #5b6482;
  --line: #e3ddcf;
  --line-2: #d6cfbd;
  --success: #1f7a4d;
  --success-50: #e8f5ee;
  --danger: #b3261e;
  --danger-50: #fbecea;
  --warning: #9a6200;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --text-hero: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --radius-sm: 4px; --radius: 8px; --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 79, .06), 0 1px 1px rgba(10, 26, 79, .04);
  --shadow: 0 10px 30px -12px rgba(10, 26, 79, .22);
  --shadow-lg: 0 30px 60px -20px rgba(6, 15, 51, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: 1.15; color: var(--navy-900); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
::selection { background: var(--gold); color: var(--navy-950); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -60px; background: var(--gold); color: var(--navy-950); padding: .6rem 1rem; z-index: 999; font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* ---------- Eyebrow, rules, seal ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-4); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold); }
.gold-rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: var(--space-6) 0; }
.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: var(--radius); font: 600 var(--text-sm)/1 var(--font-body); letter-spacing: .01em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: #ffbb3d; color: var(--navy-950); box-shadow: 0 10px 24px -10px rgba(242,170,38,.7); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-900); }
.btn-sm { padding: .6rem 1rem; font-size: var(--text-xs); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: var(--text-sm); text-decoration: none; color: var(--blue); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--gold); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: rgba(255,255,255,.78); font-size: var(--text-xs); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar a { color: rgba(255,255,255,.82); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-motto { letter-spacing: .18em; text-transform: uppercase; font-weight: 500; font-size: 11px; }
.topbar-motto b { color: var(--gold); font-weight: 600; }
.topbar-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.topbar-links .sep { width: 1px; height: 12px; background: rgba(255,255,255,.2); }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(6,15,51,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: .15rem; height: 100%; }
.main-nav > .nav-item { position: static; height: 100%; display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .7rem; font-size: var(--text-sm); font-weight: 500; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); background: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.nav-link .chev { width: 10px; height: 10px; transition: transform .25s var(--ease); opacity: .6; }
.nav-item:hover .nav-link, .nav-item:focus-within .nav-link, .nav-link[aria-current="page"] { color: var(--blue); }
.nav-item.is-open .chev, .nav-item:hover .chev { transform: rotate(180deg); }
.nav-cta { margin-left: .5rem; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
.nav-item:hover > .mega, .nav-item:focus-within > .mega, .nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; padding: 2.25rem 0 2.5rem; }
.mega-intro h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.mega-intro p { font-size: var(--text-sm); color: var(--muted); margin-bottom: 1rem; }
.mega-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem 2rem; align-content: start; }
.mega-links a { display: block; padding: .7rem .8rem; border-radius: var(--radius); text-decoration: none; color: var(--ink); border-left: 2px solid transparent; }
.mega-links a:hover { background: var(--ivory); border-left-color: var(--gold); }
.mega-links a strong { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--navy-900); }
.mega-links a span { display: block; font-size: var(--text-xs); color: var(--muted); line-height: 1.45; margin-top: .15rem; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line-2); border-radius: var(--radius); width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy-900); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .nav-link { padding: .5rem .5rem; font-size: .84rem; }
  .brand img { height: 48px; }
}
@media (max-width: 1060px) {
  :root { --header-h: 72px; }
  .main-nav, .nav-cta-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar-motto { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 640px) {
  .topbar-links .hide-sm { display: none; }
  .brand img { height: 42px; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6,15,51,.55); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 40px; width: auto; }
.drawer-body { overflow-y: auto; padding: .5rem 0 2rem; flex: 1; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-600); font-weight: 400; }
.drawer details[open] summary::after { content: "–"; }
.drawer details a { display: block; padding: .6rem 1.25rem .6rem 2rem; text-decoration: none; color: var(--ink-2); font-size: var(--text-sm); }
.drawer details a:hover { background: var(--ivory); }
.drawer-cta { padding: 1.25rem; display: grid; gap: .6rem; }
.close-btn { background: none; border: 0; cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy-900); }
.close-btn svg { width: 24px; height: 24px; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-950); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,15,51,.92) 0%, rgba(6,15,51,.72) 42%, rgba(6,15,51,.15) 75%), linear-gradient(0deg, rgba(6,15,51,.85) 0%, rgba(6,15,51,0) 45%); }
.hero-content { position: relative; z-index: 2; padding: 7rem 0 4.5rem; width: min(100% - 2.5rem, var(--container)); }
.hero h1 { color: #fff; font-size: var(--text-hero); line-height: 1.02; max-width: 13ch; margin-bottom: 1.5rem; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-badge { display: flex; align-items: center; gap: .8rem; font-size: var(--text-xs); color: rgba(255,255,255,.78); line-height: 1.4; }
.hero-badge strong { display: block; color: #fff; font-size: var(--text-sm); font-weight: 600; }
.hero-badge .ico { width: 40px; height: 40px; border: 1px solid rgba(242,170,38,.6); border-radius: 50%; display: grid; place-items: center; color: var(--gold); flex: none; }
.hero-badge .ico svg { width: 18px; height: 18px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; background: var(--navy-950); color: #fff; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,15,51,.96) 20%, rgba(6,15,51,.55) 100%); }
.page-hero .container { position: relative; z-index: 2; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem); }
.page-hero h1 { color: #fff; font-size: var(--text-2xl); max-width: 22ch; margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,.85); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--text-xs); color: rgba(255,255,255,.65); margin-bottom: 1.5rem; list-style: none; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section.ivory { background: var(--ivory); }
.section.navy { background: var(--navy-900); color: rgba(255,255,255,.85); }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.deep { background: var(--navy-950); color: rgba(255,255,255,.82); }
.section.deep h2, .section.deep h3 { color: #fff; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--text-2xl); margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.navy .section-head p, .deep .section-head p { color: rgba(255,255,255,.72); }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center p { max-width: 60ch; }
.h2 { font-size: var(--text-2xl); }
.h3d { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr 1fr; }
.split.wide-right { grid-template-columns: 1fr 1.2fr; }
.split.top { align-items: start; }
@media (max-width: 1000px) { .g-4 { grid-template-columns: repeat(2, 1fr); } .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.5vw, 2rem); position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-3px); }
.card .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-600); margin-bottom: .8rem; display: block; }
.card h3 { margin-bottom: .6rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.navy { background: var(--navy-900); border-color: var(--navy-800); color: rgba(255,255,255,.82); }
.card.navy h3 { color: #fff; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 1.2rem; }
.card .icon svg { width: 24px; height: 24px; }
.card.navy .icon { background: rgba(242,170,38,.14); color: var(--gold); }
.card-media { padding: 0; overflow: hidden; }
.card-media .media { aspect-ratio: 16/10; overflow: hidden; background: var(--ivory-2); }
.card-media .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card-media:hover .media img { transform: scale(1.04); }
.card-media .body { padding: 1.5rem 1.6rem 1.7rem; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); padding: .3rem .6rem; border-radius: 100px; margin-bottom: .8rem; }
.tag.gold { color: #7a4f00; background: var(--gold-50); }
.meta { font-size: var(--text-xs); color: var(--muted); display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--gold); border-radius: 50%; }
.dash-list { list-style: none; padding: 0; }
.dash-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.navy .dash-list li, .deep .dash-list li { border-color: rgba(255,255,255,.12); }

/* ---------- Media frames ---------- */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ivory-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.tall { aspect-ratio: 4/5; }
.frame.wide { aspect-ratio: 16/10; }
.frame.square { aspect-ratio: 1; }
.frame-deco { position: relative; }
.frame-deco::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.caption { font-size: var(--text-xs); color: var(--muted); margin-top: .7rem; }
.full-bleed { position: relative; height: clamp(320px, 52vw, 620px); overflow: hidden; }
.full-bleed img { width: 100%; height: 100%; object-fit: cover; }
.full-bleed .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,15,51,.88), rgba(6,15,51,.1) 60%); display: flex; align-items: flex-end; }
.full-bleed .overlay .container { padding-bottom: clamp(2rem, 5vw, 4rem); color: #fff; }
.full-bleed blockquote { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.3; margin: 0; max-width: 30ch; color: #fff; }
.full-bleed cite { display: block; margin-top: 1rem; font-style: normal; font-size: var(--text-sm); color: var(--gold); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.stat { padding: 2rem 1.2rem 0 0; }
.stat .v { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; color: #fff; display: block; }
.stat .v small { font-size: .45em; color: var(--gold); margin-left: .1em; }
.stat .l { display: block; font-size: var(--text-xs); color: rgba(255,255,255,.7); margin-top: .6rem; letter-spacing: .04em; }
.stats.light { border-color: var(--line); }
.stats.light .v { color: var(--navy-900); }
.stats.light .l { color: var(--muted); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pathway (home) ---------- */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.path { background: #fff; padding: 2rem 1.6rem 1.8rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background .3s var(--ease); min-height: 320px; }
.path:hover { background: var(--ivory); }
.path .lvl { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.path h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.65rem; margin: .8rem 0 .7rem; }
.path p { font-size: var(--text-sm); color: var(--muted); flex: 1; }
.path .link-arrow { margin-top: 1rem; }
@media (max-width: 1000px) { .paths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } .path { min-height: 0; } }

/* ---------- Press band ---------- */
.press { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.press-quote { font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.18; color: var(--navy-900); margin: 0 0 1.5rem; font-weight: 500; }
.press-quote::before { content: "« "; color: var(--gold-600); }
.press-quote::after { content: " »"; color: var(--gold-600); }
.press-source { display: flex; align-items: center; gap: 1rem; font-size: var(--text-sm); color: var(--muted); }
.press-source .logo-fig { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-900); font-weight: 700; letter-spacing: -.02em; }
.phone-shot { max-width: 320px; margin-inline: auto; border-radius: 28px; overflow: hidden; border: 10px solid var(--navy-950); box-shadow: var(--shadow-lg); aspect-ratio: 9/15; }
.phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Partner ribbon ---------- */
.ribbon { border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.ribbon-track { display: flex; gap: 3.5rem; padding: 1.4rem 0; width: max-content; animation: marquee 50s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track span { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-800); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.ribbon-track span::after { content: "◆"; font-size: .55rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
.ribbon-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

/* ---------- Services portal cards ---------- */
.service { display: flex; flex-direction: column; gap: .5rem; background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.8rem; text-decoration: none; color: inherit; border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease); min-height: 100%; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-900); color: var(--gold); display: grid; place-items: center; margin-bottom: 1rem; }
.service .icon svg { width: 26px; height: 26px; }
.service h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin-bottom: .3rem; }
.service p { font-size: var(--text-sm); color: var(--muted); flex: 1; }

/* ---------- Programme table / accordions ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .prog-grid { grid-template-columns: 1fr; } }
.prog { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; background: #fff; display: flex; flex-direction: column; }
.prog h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-bottom: .2rem; }
.prog .sub { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; margin-bottom: 1rem; }
.prog ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.prog ul li { padding-left: 1.2rem; position: relative; font-size: var(--text-sm); margin-bottom: .35rem; }
.prog ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.prog .foot { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line-2); display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; font-size: var(--text-xs); color: var(--muted); }
.prog .foot b { display: block; color: var(--navy-900); font-size: var(--text-sm); font-weight: 600; }

.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; list-style: none; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 600; color: var(--navy-900); position: relative; font-size: var(--text-base); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--gold-600); }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 75ch; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.data th, table.data td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--ivory); font-weight: 600; color: var(--navy-900); font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--navy-900); }

/* ---------- Timeline / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.step { counter-increment: step; position: relative; padding-top: 3.2rem; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 2rem; color: var(--gold-600); line-height: 1; }
.step::after { content: ""; position: absolute; top: 1rem; left: 3.6rem; right: 0; height: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
.step h3 { font-size: var(--text-base); margin-bottom: .4rem; }
.step p { font-size: var(--text-sm); color: var(--muted); margin: 0; }
.navy .step p, .deep .step p { color: rgba(255,255,255,.7); }
.navy .step::after, .deep .step::after { background: rgba(255,255,255,.18); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.8rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #fff; }
.ivory .timeline li::before { box-shadow: 0 0 0 4px var(--ivory); }
.timeline .y { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-900); display: block; }

/* ---------- Quote / president ---------- */
.pres { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pres .portrait { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--navy-800); }
.pres .portrait img { width: 100%; height: 100%; object-fit: cover; }
.pres blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.32; color: #fff; }
.pres .sig { margin-top: 1.8rem; font-size: var(--text-sm); color: rgba(255,255,255,.75); }
.pres .sig strong { display: block; color: var(--gold); font-size: var(--text-base); }
@media (max-width: 860px) { .pres { grid-template-columns: 1fr; } .pres .portrait { max-width: 320px; } }
.letter { font-size: var(--text-base); color: var(--ink-2); }
.letter p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 4.2rem; line-height: .9; padding: .35rem .6rem 0 0; color: var(--blue); }
.signature { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.signature .name { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-900); }

/* ---------- Seal / motto band ---------- */
.motto-band { background: var(--gold); color: var(--navy-950); text-align: center; padding: 1.1rem 0; font-size: var(--text-xs); letter-spacing: .28em; text-transform: uppercase; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; font-size: var(--text-xl); margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }
.cta-band .actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 1.5px solid rgba(242,170,38,.35); }
.cta-band::after { content: ""; position: absolute; right: -20px; top: -20px; width: 160px; height: 160px; border-radius: 50%; border: 1.5px solid rgba(242,170,38,.2); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); font-size: var(--text-sm); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2.5rem; padding: 4.5rem 0 3rem; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1.4rem; }
.footer-brand p { max-width: 34ch; }
.site-footer h3 { font-family: var(--font-body); color: #fff; font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: .25rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--text-xs); color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-group { font-size: var(--text-xs); color: rgba(255,255,255,.6); margin-top: 1rem; }
.footer-group b { color: var(--gold); font-weight: 600; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Forms & portal ---------- */
.portal-shell { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .portal-shell { grid-template-columns: 1fr; } }
.portal-aside { position: sticky; top: calc(var(--header-h) + 24px); background: var(--ivory); border-radius: var(--radius-lg); padding: 1.6rem; }
@media (max-width: 900px) { .portal-aside { position: static; } }
.stepper { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.stepper li { display: flex; gap: .8rem; align-items: center; padding: .6rem 0; font-size: var(--text-sm); color: var(--muted); margin: 0; }
.stepper li .dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: var(--text-xs); font-weight: 600; flex: none; background: #fff; }
.stepper li.is-active { color: var(--navy-900); font-weight: 600; }
.stepper li.is-active .dot { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.stepper li.is-done .dot { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.6rem); }
.panel + .panel { margin-top: 1.5rem; }
.panel h2 { font-size: var(--text-xl); margin-bottom: .4rem; }
.panel .panel-intro { color: var(--muted); margin-bottom: 1.8rem; font-size: var(--text-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.4rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .field .label { font-size: var(--text-sm); font-weight: 600; color: var(--navy-900); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: var(--text-xs); color: var(--muted); }
.input, select.input, textarea.input { width: 100%; font: 400 var(--text-base)/1.4 var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: .78rem .9rem; transition: border-color .2s, box-shadow .2s; min-height: 48px; }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,55,168,.12); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field .err { font-size: var(--text-xs); color: var(--danger); display: none; }
.field.has-error .err { display: block; }
.field.has-error .input { border-color: var(--danger); }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-2); }
.checkbox input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--navy-900); flex: none; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.radio-card { position: relative; border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; transition: border-color .2s, background .2s; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card strong { display: block; font-size: var(--text-sm); color: var(--navy-900); }
.radio-card span { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: .2rem; }
.radio-card:has(input:checked) { border-color: var(--navy-900); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--navy-900); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.upload-list { display: grid; gap: .8rem; }
.upload-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--ivory); transition: border-color .2s, background .2s; }
.upload-row.is-drag { border-color: var(--blue); background: var(--blue-50); }
.upload-row.is-done { border-style: solid; border-color: #bfe0cd; background: var(--success-50); }
.upload-row.is-error { border-style: solid; border-color: #f0c2bd; background: var(--danger-50); }
.upload-row .u-title { font-weight: 600; font-size: var(--text-sm); color: var(--navy-900); }
.upload-row .u-title .req { color: var(--danger); }
.upload-row .u-sub { font-size: var(--text-xs); color: var(--muted); }
.upload-row .u-files { font-size: var(--text-xs); color: var(--success); margin-top: .35rem; display: grid; gap: .2rem; }
.upload-row .u-files .bad { color: var(--danger); }
.upload-row .progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: .5rem; display: none; }
.upload-row .progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.upload-row.is-uploading .progress { display: block; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.notice { border-radius: var(--radius); padding: 1rem 1.2rem; font-size: var(--text-sm); border: 1px solid; display: flex; gap: .8rem; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: .1rem; }
.notice.info { background: var(--blue-50); border-color: #cfdaf6; color: var(--navy-900); }
.notice.success { background: var(--success-50); border-color: #bfe0cd; color: #124d31; }
.notice.error { background: var(--danger-50); border-color: #f0c2bd; color: #7d1a14; }
.notice.warn { background: var(--gold-50); border-color: #f2d9a6; color: #5c3b00; }
.result-card { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.result-card .rc-head { padding: 1.4rem 1.6rem; display: flex; gap: 1rem; align-items: center; }
.result-card .rc-head.ok { background: var(--success-50); color: #124d31; }
.result-card .rc-head.ko { background: var(--danger-50); color: #7d1a14; }
.result-card .rc-head .badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.result-card .rc-head.ok .badge { background: var(--success); color: #fff; }
.result-card .rc-head.ko .badge { background: var(--danger); color: #fff; }
.result-card .rc-head .badge svg { width: 24px; height: 24px; }
.result-card .rc-head h3 { margin: 0; color: inherit; }
.result-card dl { margin: 0; display: grid; grid-template-columns: 220px 1fr; }
.result-card dt, .result-card dd { margin: 0; padding: .85rem 1.6rem; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.result-card dt { color: var(--muted); background: var(--ivory); }
.result-card dd { font-weight: 600; color: var(--navy-900); }
@media (max-width: 560px) { .result-card dl { grid-template-columns: 1fr; } .result-card dt { padding-bottom: .2rem; border-bottom: 0; } .result-card dd { border-top: 0; padding-top: .2rem; } }
.ref-box { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 1.3rem; letter-spacing: .06em; background: var(--navy-900); color: var(--gold); padding: .9rem 1.2rem; border-radius: var(--radius); display: inline-block; margin: .5rem 0 1rem; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; font-size: var(--text-xs); font-weight: 600; border-radius: 100px; background: var(--ivory-2); color: var(--ink-2); white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.s-brouillon { color: #6b6f80; }
.status-pill.s-soumis, .status-pill.s-recue { background: var(--blue-50); color: var(--blue); }
.status-pill.s-en_cours, .status-pill.s-en_traitement, .status-pill.s-incomplet { background: var(--gold-50); color: var(--warning); }
.status-pill.s-admis, .status-pill.s-delivre, .status-pill.s-valide { background: var(--success-50); color: var(--success); }
.status-pill.s-refuse, .status-pill.s-rejete { background: var(--danger-50); color: var(--danger); }
.status-pill.s-liste_attente { background: #efe9fb; color: #5b3aa8; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); display: grid; grid-template-columns: 150px 1fr; gap: 1rem; }
.history li time { color: var(--muted); font-size: var(--text-xs); }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
.news-grid .card-media:first-child { grid-row: span 2; }
.news-grid .card-media:first-child .media { aspect-ratio: 4/3.4; }
@media (max-width: 1000px) { .news-grid { grid-template-columns: 1fr 1fr; } .news-grid .card-media:first-child { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-list .card-media .media { aspect-ratio: 1; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery .frame { height: 100%; }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
.gallery .g-tall { grid-row: span 2; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }

/* ---------- Domain cards (CADECIA) ---------- */
.domain { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.domain .media { aspect-ratio: 5/3; overflow: hidden; }
.domain .media img { width: 100%; height: 100%; object-fit: cover; }
.domain .body { padding: 1.5rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.domain .n { font-family: var(--font-display); color: var(--gold-600); font-size: 1rem; }
.domain h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin: .4rem 0 .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: 1rem; }
.chip { font-size: 11px; font-weight: 600; padding: .3rem .6rem; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ink-2); }

/* ---------- Tuition ---------- */
.fee { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.fee span { color: var(--ink-2); }
.fee b { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--navy-900); white-space: nowrap; }
.fee b small { font-family: var(--font-body); font-size: var(--text-xs); color: var(--muted); font-weight: 500; }

/* ---------- Admin ---------- */
.admin-body { background: var(--ivory); }
.admin-top { background: var(--navy-950); color: #fff; }
.admin-top .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.admin-top img { height: 38px; width: auto; }
.admin-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: 1.5rem 0; }
.admin-tabs button { background: #fff; border: 1px solid var(--line); padding: .6rem 1rem; border-radius: var(--radius); font: 600 var(--text-sm) var(--font-body); color: var(--ink-2); cursor: pointer; }
.admin-tabs button[aria-selected="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; }
.kpi .v { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy-900); line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: var(--text-xs); color: var(--muted); margin-top: .5rem; }
@media (max-width: 800px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.toolbar { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar .input { width: auto; min-width: 220px; min-height: 42px; padding: .55rem .8rem; }
.admin-table td .btn { padding: .45rem .7rem; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; background: rgba(6,15,51,.6); }
.modal-card { background: #fff; border-radius: var(--radius-lg); width: min(860px, 100%); max-height: 90vh; overflow: auto; padding: 2rem; position: relative; }
.modal-card .close-btn { position: absolute; top: .8rem; right: .8rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.logos-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.logos-wall div { background: #fff; padding: 1.4rem 1.2rem; display: flex; flex-direction: column; justify-content: center; min-height: 110px; }
.logos-wall strong { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--navy-900); line-height: 1.25; }
.logos-wall span { font-size: var(--text-xs); color: var(--muted); margin-top: .3rem; }
.kicker-num { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 1; color: var(--navy-900); }
.kicker-num small { font-size: .35em; color: var(--gold-600); }
.two-col-text { columns: 2 320px; column-gap: 3rem; }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-xl); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.8rem; }
.inline-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.inline-list li { margin: 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.print-only { display: none; }
@media print {
  .topbar, .site-header, .site-footer, .drawer, .no-print, .motto-band { display: none !important; }
  .print-only { display: block; }
  body { font-size: 11pt; }
  .section { padding: 1rem 0; }
}

/* ---------- Compléments portail ---------- */
.link-del { background: none; border: 0; color: var(--danger); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; margin-left: .4rem; padding: 0; }
.upload-row .u-files em { color: var(--muted); font-style: normal; }
@media (max-width: 560px) { .upload-row { grid-template-columns: 1fr; } .history li { grid-template-columns: 1fr; gap: .3rem; } }
.result-card > dl + p { padding: 0 1.6rem; }
.prose ul { padding-left: 1.2em; }
.section.navy .card.navy { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section.navy .card.navy p { color: rgba(255,255,255,.75); }
.card.navy .tag.gold { background: rgba(242,170,38,.16); color: var(--gold); }
.stepper li { cursor: default; }
@media print { .portal-aside, .form-actions, .stepper { display: none !important; } .portal-shell { display: block; } }
main { overflow-x: clip; }
.hero h1 { max-width: 15ch; }
@media (max-width: 860px) { .frame-deco::before { inset: 14px -8px -14px 14px; } }
