/* Enactus ESTM — feuille de style commune
   Concept : pliage d'origami (formes anguleuses du logo), jaune Enactus en aplats, charbon pour les bandeaux. */

:root {
  --bg: #F5F6F7;
  --surface: #FFFFFF;
  --surface-2: #ECEEF0;
  --ink: #1B2127;
  --muted: #56606A;
  --line: #DCE0E4;
  --yellow: #FFC220;
  --yellow-2: #E3A400;
  --yellow-soft: #FFF2C9;
  --on-yellow: #1E242B;
  --accent-text: #86590A;
  --band: #1E242B;
  --band-2: #29313A;
  --on-band: #F4F5F6;
  --on-band-muted: #AEB7C0;
  --band-line: #3A444E;
  --green: #0E7C5A;
  --slate: #3B4752;
  --focus: #1B2127;
  --c1: #FFC220;
  --c2: #0E7C5A;
  --c3: #7A858F;
  --c4: #1E242B;
  --logo-l: block;
  --logo-d: none;
  --shadow: 0 1px 2px rgba(20, 28, 36, .06), 0 14px 34px -14px rgba(20, 28, 36, .22);
  --font-d: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-b: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1317;
    --surface: #171D23;
    --surface-2: #212932;
    --ink: #F0F2F4;
    --muted: #9AA4AE;
    --line: #2B343D;
    --yellow-soft: #2D2610;
    --accent-text: #FFC220;
    --band: #0A0D10;
    --band-2: #151B21;
    --band-line: #28323B;
    --slate: #46535F;
    --focus: #FFC220;
    --c3: #7A858F;
    --c4: #D3D9DE;
    --logo-l: none;
    --logo-d: block;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1317;
  --surface: #171D23;
  --surface-2: #212932;
  --ink: #F0F2F4;
  --muted: #9AA4AE;
  --line: #2B343D;
  --yellow-soft: #2D2610;
  --accent-text: #FFC220;
  --band: #0A0D10;
  --band-2: #151B21;
  --band-line: #28323B;
  --slate: #46535F;
  --focus: #FFC220;
  --c3: #7A858F;
  --c4: #D3D9DE;
  --logo-l: none;
  --logo-d: block;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--surface); z-index: 60;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
p { margin: 0; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: 12px; top: -80px; background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.logo-l { display: var(--logo-l); }
.logo-d { display: var(--logo-d); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 10px 13px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--yellow-soft); box-shadow: inset 0 -2px 0 var(--yellow); }
.nav-links .nav-cta a { background: var(--yellow); color: var(--on-yellow); margin-left: 8px; font-weight: 700; }
.nav-links .nav-cta a:hover { background: var(--yellow-2); color: var(--on-yellow); }
.nav-links .nav-cta a[aria-current="page"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 35%, transparent); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 1020px) {
  .menu-btn { display: grid; }
  .theme-btn { margin-left: auto; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--gutter-r) 20px var(--gutter-l); margin: 0; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-links .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn .ico { transition: transform .15s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-yellow { background: var(--yellow); color: var(--on-yellow); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--yellow-2) 80%, transparent); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-dark { background: var(--band); color: var(--on-band); }
.btn-dark:hover { background: var(--band-2); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-sm { padding: 11px 20px; font-size: .95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--yellow); border-radius: 2px; }
.band .eyebrow { color: var(--yellow); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head p { color: var(--muted); font-size: 1.1rem; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.band { background: var(--band); color: var(--on-band); }
.band .sec-head p, .band .muted { color: var(--on-band-muted); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card p { color: var(--muted); font-size: .98rem; }
.ico-box { width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; margin-bottom: 6px; }
.ico-box .ico { width: 24px; height: 24px; }
.section.alt .card { background: var(--bg); }
.band .card { background: var(--band-2); border-color: var(--band-line); }
.band .card p { color: var(--on-band-muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; width: fit-content; }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .15s; }

/* ---------- Hero accueil ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding-inline: .04em; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40em; margin-block: 24px 34px; }
.hero-copy { display: grid; justify-items: start; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 0; margin: 40px 0 0; }
.hero-facts li { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: .95rem; }
.hero-facts b { font-family: var(--font-d); font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; }
.hero-art { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 520px; justify-self: center; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.fold-a { animation: drift 9s ease-in-out infinite alternate; transform-origin: 50% 50%; }
.fold-b { animation: drift 11s ease-in-out -3s infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(0, -14px); } }
.tbl-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.tbl-card.t1 { left: -6%; bottom: 3%; width: min(270px, 64%); }
.tbl-card.t2 { right: -2%; top: 38%; width: min(200px, 48%); }
.tbl-card h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-b); font-weight: 700; }
.tb-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.tb-dot { width: 12px; height: 12px; border-radius: 3px; flex: none; transform: rotate(45deg); }
.big-num { font-family: var(--font-d); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.t2 p { font-size: .88rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 380px; order: -1; margin-bottom: 8px; }
  .tbl-card.t2 { display: none; }
  .tbl-card.t1 { position: relative; left: 0; bottom: auto; width: 100%; margin-top: -70px; }
  .hero-art svg { height: auto; aspect-ratio: 520 / 400; }
}

/* ---------- Bandeau chiffres ---------- */
.stats { background: var(--yellow); color: var(--on-yellow); position: relative; }
.stats .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 36px 24px; border-left: 2px solid rgba(30, 36, 43, .14); display: grid; gap: 6px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--font-d); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-weight: 600; font-size: .95rem; max-width: 18ch; }
@media (max-width: 820px) {
  .stats .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; padding: 28px 0; border-top: 2px solid rgba(30, 36, 43, .14); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 2px solid rgba(30, 36, 43, .14); }
}

/* ---------- Parcours étudiant / entreprise ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.path { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; align-content: start; min-height: 340px; isolation: isolate; }
.path h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.path p { max-width: 34em; }
.path ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.path li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.path li .ico { margin-top: 3px; }
.path .btn { margin-top: 10px; width: fit-content; }
.path.student { background: var(--yellow); color: var(--on-yellow); }
.path.company { background: var(--band); color: var(--on-band); }
.path::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -60px; width: 260px; height: 260px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.path.student::after { background: rgba(30, 36, 43, .1); }
.path.company::after { background: rgba(255, 194, 32, .16); }
.path .tag { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
@media (max-width: 820px) { .paths { grid-template-columns: minmax(0, 1fr); } .path { min-height: 0; } }

/* ---------- À propos (extrait) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split .txt { display: grid; gap: 20px; justify-items: start; }
.split .txt p { color: var(--muted); }
.quote { border-left: 4px solid var(--yellow); padding: 4px 0 4px 20px; font-family: var(--font-d); font-size: 1.25rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.quote cite { display: block; margin-top: 10px; font-family: var(--font-b); font-size: .9rem; color: var(--muted); font-style: normal; font-weight: 500; }
.tbl-venn { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
.tbl-venn svg { width: 100%; height: 100%; }
.venn-label { fill: var(--ink); font-family: var(--font-b); font-weight: 700; font-size: 15px; }
.timeline-hist { display: grid; gap: 0; border-left: 3px solid var(--yellow); margin-left: 8px; }
.hist-item { padding: 0 0 28px 26px; position: relative; display: grid; gap: 4px; }
.hist-item::before { content: ""; position: absolute; left: -11px; top: 6px; width: 19px; height: 19px; background: var(--yellow); transform: rotate(45deg); border-radius: 3px; border: 3px solid var(--bg); }
.hist-item b { font-family: var(--font-d); font-size: 1.6rem; letter-spacing: -.02em; }
.hist-item p { color: var(--muted); }

/* ---------- Domaines d'impact ---------- */
.impact { border-radius: 22px; padding: 28px; display: grid; gap: 14px; align-content: start; min-height: 300px; position: relative; overflow: hidden; isolation: isolate; transition: transform .2s; }
.impact:hover { transform: translateY(-5px); }
.impact .odd { display: inline-block; width: fit-content; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; border: 1.5px solid currentColor; }
.impact p { opacity: .92; font-size: .96rem; }
.impact::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; background: rgba(255, 255, 255, .1); clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: -1; }
.impact .ico-big { width: 36px; height: 36px; }
.i-green { background: var(--green); color: #fff; }
.i-yellow { background: var(--yellow); color: var(--on-yellow); }
.i-yellow::after { background: rgba(30, 36, 43, .1); }
.i-slate { background: var(--slate); color: #fff; }
.i-dark { background: #1E242B; color: #fff; border: 1px solid var(--band-line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; font-weight: 600; }
.band .chip { background: var(--band-2); }

/* ---------- Timeline calendrier ---------- */
.cal { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cal.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1020px) { .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cal, .cal.two { grid-template-columns: minmax(0, 1fr); } }
.q { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 14px; align-content: start; position: relative; min-width: 0; }
.q header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q .qn { font-family: var(--font-d); font-weight: 800; font-size: 2.1rem; letter-spacing: -.03em; line-height: 1; }
.q .months { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.q ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .96rem; }
.q li { display: flex; gap: 10px; align-items: flex-start; }
.q li::before { content: ""; width: 7px; height: 7px; margin-top: .6em; background: var(--yellow); transform: rotate(45deg); flex: none; }
.q h4 { font-family: var(--font-b); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.q .partner-box { background: var(--yellow-soft); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
.now { display: none; padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.q.is-now { border-color: var(--yellow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 30%, transparent); }
.q.is-now .now { display: inline-block; }

/* ---------- Hero pages internes ---------- */
.page-hero { background: var(--band); color: var(--on-band); position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(80px, 10vw, 130px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%); isolation: isolate; }
.page-hero .wrap { display: grid; gap: 22px; justify-items: start; position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 16em; }
.page-hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--on-band-muted); max-width: 40em; }
.page-hero .fold { position: absolute; right: 0; top: 0; width: min(46vw, 560px); height: 100%; z-index: -1; }
.page-hero .fold svg { width: 100%; height: 100%; }
.crumb { font-size: .85rem; color: var(--on-band-muted); display: flex; gap: 8px; align-items: center; }
.crumb a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.after-hero { margin-top: -20px; }

/* ---------- Équipe / pôles ---------- */
.pole { display: grid; gap: 10px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--yellow); }
.pole p { color: var(--muted); font-size: .96rem; }
.pole .ico-box { width: 44px; height: 44px; }
.person { display: flex; gap: 18px; align-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 18px; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 1.4rem; flex: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%, 0 82%); }
.person b { display: block; font-family: var(--font-d); font-size: 1.15rem; }
.person span { color: var(--muted); font-size: .92rem; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; padding: 26px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; counter-increment: s; display: grid; gap: 10px; align-content: start; }
.step::before { content: counter(s); position: absolute; top: -18px; left: 20px; width: 38px; height: 38px; background: var(--yellow); color: var(--on-yellow); font-family: var(--font-d); font-weight: 800; display: grid; place-items: center; border-radius: 10px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Partenaires : graphiques ---------- */
.charts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .charts { grid-template-columns: minmax(0, 1fr); } }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.chart h3 { font-size: 1.1rem; margin-bottom: 20px; font-family: var(--font-b); letter-spacing: 0; }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; gap: 6px; }
.bar-row .lab { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; font-weight: 600; }
.bar-row .lab span:last-child { font-variant-numeric: tabular-nums; font-family: var(--font-d); font-weight: 800; font-size: 1.05rem; }
.bar-track { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; min-width: 6px; border-radius: 7px; background: var(--c1); }
.bar-fill.b2 { background: var(--yellow-2); }
.bar-fill.b3 { background: var(--c4); }
.bar-fill.b4 { background: var(--c3); }
.donut-wrap { display: grid; gap: 24px; justify-items: center; }
.donut { width: min(240px, 70%); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--c1) 0 35%, var(--c4) 35% 65%, var(--c3) 65% 85%, var(--c2) 85% 100%); display: grid; place-items: center; }
.donut::before { content: ""; grid-area: 1 / 1; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.donut span { grid-area: 1 / 1; text-align: center; font-family: var(--font-d); font-weight: 800; line-height: 1.1; font-size: 1.15rem; z-index: 1; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; width: 100%; font-size: .92rem; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.chart .note { margin-top: 18px; font-size: .84rem; color: var(--muted); }

/* ---------- Tableau packs ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
table.packs { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.packs th, .packs td { padding: 16px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.packs tbody tr:last-child td, .packs tbody tr:last-child th { border-bottom: 0; }
.packs thead th { vertical-align: bottom; padding-block: 24px 20px; border-bottom: 0; }
.packs tbody th { font-weight: 600; width: 30%; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.packs tbody tr:nth-child(even) td, .packs tbody tr:nth-child(even) th { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.packs td { text-align: center; }
.packs .pk { display: grid; gap: 4px; justify-items: center; font-family: var(--font-d); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; padding: 14px 10px; border-radius: 14px 14px 0 0; }
.packs .pk small { font-family: var(--font-b); font-size: .78rem; font-weight: 600; letter-spacing: 0; opacity: .85; text-align: center; }
.pk.bronze { background: #B5772E; color: #fff; }
.pk.silver { background: #B8C0C8; color: #1B2127; }
.pk.gold { background: var(--yellow); color: var(--on-yellow); }
.pk.platinum { background: #1E242B; color: #fff; border: 1px solid var(--band-line); }
:root[data-theme="dark"] .pk.platinum { background: #2C3640; }
.packs .yes { color: var(--green); font-weight: 700; display: flex; justify-content: center; }
.packs td small { text-align: center; }
:root[data-theme="dark"] .packs .yes { color: #34D399; }
.packs .no { color: var(--muted); opacity: .6; }
.packs td small { display: block; color: var(--muted); font-size: .8rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .packs .yes { color: #34D399; } :root:not([data-theme="light"]) .pk.platinum { background: #2C3640; } }
.scroll-hint { display: none; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 900px) { .scroll-hint { display: block; } }

.custom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--yellow); color: var(--on-yellow); border-radius: 24px; padding: clamp(28px, 4vw, 48px); margin-top: 24px; position: relative; overflow: hidden; isolation: isolate; }
.custom::after { content: ""; position: absolute; right: 0; top: 0; width: 220px; height: 100%; background: rgba(30, 36, 43, .08); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); z-index: -1; }
.custom p { max-width: 46em; margin-top: 10px; }
@media (max-width: 800px) { .custom { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 680px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 35%, transparent); }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { position: relative; font-weight: 600; font-size: .95rem; }
.radios input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.radios span { display: block; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); }
.radios input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.radios input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-status { min-height: 1.4em; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #C2410C; }
:root[data-theme="dark"] .form-status.ok { color: #34D399; }
:root[data-theme="dark"] .form-status.err { color: #FB923C; }
.hp { position: absolute; left: -9999px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--accent-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--band); color: var(--on-band); position: relative; overflow: hidden; isolation: isolate; clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%); padding-block: clamp(88px, 11vw, 140px) clamp(56px, 8vw, 96px); }
.cta-band .wrap { display: grid; gap: 24px; justify-items: center; text-align: center; }
.cta-band p { color: var(--on-band-muted); max-width: 40em; font-size: 1.1rem; }
.cta-band::before { content: ""; position: absolute; z-index: -1; left: -120px; bottom: -160px; width: 440px; height: 440px; background: var(--yellow); opacity: .14; clip-path: polygon(0 100%, 100% 100%, 0 0); }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -100px; top: -60px; width: 360px; height: 360px; background: var(--yellow); opacity: .12; clip-path: polygon(100% 0, 100% 100%, 0 0); }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico-box { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; flex: none; }
.contact-list b { display: block; }
.contact-list a { text-decoration-color: var(--yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.copy-btn { font: inherit; font-size: .8rem; font-weight: 700; margin-left: 10px; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.copy-btn:hover { background: var(--surface-2); }

/* ---------- Téléchargement dossier ---------- */
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; border-radius: 22px; background: var(--surface); border: 2px dashed var(--yellow-2); }
.dl .doc { width: 64px; height: 80px; background: var(--yellow); clip-path: polygon(0 0, 70% 0, 100% 24%, 100% 100%, 0 100%); display: grid; place-items: center; color: var(--on-yellow); font-family: var(--font-d); font-weight: 800; font-size: .95rem; }
.dl p { color: var(--muted); font-size: .95rem; }
.dl .btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .dl { grid-template-columns: minmax(0, 1fr); } .dl .doc { width: 54px; height: 68px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--on-band); padding-block: 64px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--band-line); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand img { height: 64px; }
.site-footer p { color: var(--on-band-muted); font-size: .95rem; margin-top: 16px; max-width: 30em; }
.site-footer h4 { font-family: var(--font-b); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.site-footer ul a { color: var(--on-band-muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--yellow); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; color: var(--on-band-muted); font-size: .86rem; }
.soc { display: flex; gap: 10px; margin-top: 20px; }
.soc a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--band-2); color: var(--on-band); transition: background .15s, color .15s; }
.soc a:hover { background: var(--yellow); color: var(--on-yellow); }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; align-content: center; justify-items: start; gap: 20px; padding-block: 80px; }
.nf .big { font-family: var(--font-d); font-weight: 800; font-size: clamp(6rem, 22vw, 14rem); line-height: .85; letter-spacing: -.05em; color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .site-header, .cta-band, .site-footer { display: none; } }

/* ======================= v2 : portail, TGPI, composants ======================= */
.nav-links .nav-acc a { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); color: var(--ink); margin-left: 4px; }
.nav-links .nav-acc a:hover { border-color: var(--yellow-2); }
.nav-links .nav-acc .ico { width: 1.05em; height: 1.05em; }
.nav-links a { padding-inline: 11px; font-size: .92rem; }
@media (max-width: 1180px) {
  .menu-btn { display: grid; }
  .theme-btn { margin-left: auto; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--gutter-r) 20px var(--gutter-l); margin: 0; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-links .nav-cta a, .nav-links .nav-acc a { margin: 8px 0 0; justify-content: center; text-align: center; }
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .6em; background: var(--yellow); transform: rotate(45deg); }
.ticks.num { counter-reset: t; }
.ticks.num li { counter-increment: t; }
.ticks.num li::before { content: counter(t); width: 26px; height: 26px; margin: 0; transform: none; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--on-yellow); }
.band .ticks li { color: var(--on-band); }
.feature-card { background: var(--band-2); border: 1px solid var(--band-line); border-radius: 22px; padding: 28px; display: grid; gap: 18px; }
.stage-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.stage-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.stage-n { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: var(--on-yellow); font-family: var(--font-d); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%, 0 80%); }
.stage-list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.stage-list p { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.band .stage-list p { color: var(--on-band-muted); }
.event-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--band); color: var(--on-band); border-radius: 26px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.event-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; background: var(--yellow); opacity: .9; clip-path: polygon(100% 0, 100% 100%, 0 0); z-index: -1; }
.event-hero h2 { margin: 12px 0; }
.event-hero p { color: var(--on-band-muted); max-width: 36em; margin-bottom: 16px; }
.event-hero .eyebrow { color: var(--yellow); }
.event-hero .chip { background: var(--band-2); }
.event-hero .cta-row { position: relative; z-index: 1; }
@media (max-width: 800px) { .event-hero { grid-template-columns: minmax(0, 1fr); } .event-hero .cta-row { margin-top: 60px; } }
.pack-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; align-content: start; }
.pack-card .pk { font-family: var(--font-d); font-weight: 800; font-size: 1.4rem; padding: 18px 20px; display: grid; gap: 2px; }
.pack-card .pk small { font-family: var(--font-b); font-weight: 600; font-size: .8rem; opacity: .85; }
.pack-card ul { margin: 0; padding: 20px; list-style: none; display: grid; gap: 10px; font-size: .95rem; }
.pack-card li { display: flex; gap: 10px; }
.pack-card li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; background: var(--yellow); transform: rotate(45deg); }
.pk.bronze { background: #B5772E; color: #fff; } .pk.silver { background: #B8C0C8; color: #1B2127; } .pk.gold { background: var(--yellow); color: var(--on-yellow); } .pk.platinum { background: #1E242B; color: #fff; }
:root[data-theme="dark"] .pk.platinum { background: #2C3640; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pk.platinum { background: #2C3640; } }
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h2 { font-size: 1.5rem; margin-top: 18px; }
.prose p { color: var(--muted); }
.prose a { text-decoration-color: var(--yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.person a { display: block; font-size: .9rem; margin-top: 4px; text-decoration-color: var(--yellow); text-underline-offset: 3px; word-break: break-word; }
.person span:not(.avatar) { display: block; }

/* ----- portail ----- */
.portal { min-height: 70vh; }
.auth-wrap { max-width: 520px; margin-inline: auto; display: grid; gap: 18px; }
.auth-head { display: grid; gap: 8px; margin-bottom: 4px; }
.auth-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.auth-foot { text-align: center; color: var(--muted); font-size: .95rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.linkish.danger { color: #C2410C; }
.field.has-toggle { position: relative; }
.pw-toggle { position: absolute; right: 8px; bottom: 8px; border: 0; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.field.has-toggle input { padding-right: 96px; }
.field .hint { color: var(--muted); font-size: .84rem; }
.field input[readonly] { background: var(--surface-2); color: var(--muted); }
input.otp { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-family: var(--font-d); font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yellow-2); flex: none; }
.check a { color: var(--ink); text-underline-offset: 3px; }
.notice { padding: 14px 18px; border-radius: 14px; font-size: .94rem; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; }
.notice.demo { background: var(--yellow-soft); border-color: var(--yellow); }
.notice.err { background: color-mix(in srgb, #C2410C 12%, var(--surface)); border-color: #C2410C; }
.notice.note { background: var(--yellow-soft); border-color: var(--yellow); margin: 14px 0; }
.demo-code { font-family: var(--font-d); font-size: 1.3rem; letter-spacing: .2em; }
.dash-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 8px; }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.dash-main, .dash-side { display: grid; gap: 24px; min-width: 0; }
.dash h2 { font-size: 1.5rem; }
.dash .card { padding: clamp(20px, 3vw, 32px); }
.card-top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.badge.neutral { background: var(--surface-2); color: var(--ink); }
.badge.info { background: #DBEAFE; color: #1E3A8A; }
.badge.ok { background: #D1FAE5; color: #065F46; }
.badge.warn { background: #FEF3C7; color: #92400E; }
.badge.bad { background: #FEE2E2; color: #991B1B; }
:root[data-theme="dark"] .badge.info { background: #1E3A8A; color: #DBEAFE; } :root[data-theme="dark"] .badge.ok { background: #065F46; color: #D1FAE5; }
:root[data-theme="dark"] .badge.warn { background: #78350F; color: #FEF3C7; } :root[data-theme="dark"] .badge.bad { background: #7F1D1D; color: #FEE2E2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge.info { background: #1E3A8A; color: #DBEAFE; } :root:not([data-theme="light"]) .badge.ok { background: #065F46; color: #D1FAE5; }
  :root:not([data-theme="light"]) .badge.warn { background: #78350F; color: #FEF3C7; } :root:not([data-theme="light"]) .badge.bad { background: #7F1D1D; color: #FEE2E2; }
}
.tracker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 14px 0 6px; }
.trk { position: relative; padding: 34px 10px 0 0; }
.trk::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 3px; background: var(--line); }
.trk.done::before, .trk.cur::before { background: var(--yellow); }
.trk::after { content: ""; position: absolute; top: 3px; left: 2px; width: 16px; height: 16px; background: var(--surface); border: 3px solid var(--line); transform: rotate(45deg); border-radius: 3px; }
.trk.done::after { background: var(--yellow); border-color: var(--yellow); }
.trk.cur::after { background: var(--yellow); border-color: var(--ink); }
.trk b { display: block; font-size: .9rem; line-height: 1.25; }
.trk span { font-size: .78rem; color: var(--muted); }
.tracker.closed .trk::before, .tracker.closed .trk::after { filter: grayscale(1); opacity: .6; }
@media (max-width: 560px) { .tracker { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; } }
.status-text { margin: 12px 0; }
.updates { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; border-left: 3px solid var(--yellow); }
.updates li { padding-left: 16px; display: grid; gap: 2px; }
.updates time { font-size: .78rem; color: var(--muted); }
.updates p { color: var(--muted); font-size: .95rem; }
.summary { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 10px 18px; margin: 16px 0; }
.summary dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .summary { grid-template-columns: minmax(0, 1fr); gap: 2px; } .summary dd { margin-bottom: 10px; } }
.form.flat { border: 0; padding: 0; background: transparent; margin-top: 18px; }
.members-wrap { display: grid; gap: 12px; margin-top: 8px; }
.members { display: grid; gap: 14px; }
.member { border: 1.5px dashed var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.member-head { display: flex; justify-content: space-between; align-items: center; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .row3 { grid-template-columns: minmax(0, 1fr); } }
.req-list { display: grid; gap: 18px; margin-top: 16px; }
.req { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 6px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.tab.on { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.stat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar input, .toolbar select { font: inherit; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); min-width: 0; }
.toolbar input { flex: 1 1 220px; }
.admin-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .93rem; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pad { padding: 24px; }
.dlg { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 22px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.dlg::backdrop { background: rgba(10, 13, 16, .6); }
.dlg-body { padding: clamp(20px, 4vw, 36px); display: grid; gap: 14px; }
.dlg-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg h3 { margin-top: 10px; font-size: 1.1rem; }
.dlg .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .dlg .row { grid-template-columns: minmax(0, 1fr); } }
.dlg-body .btn, .form.flat .btn { justify-self: start; }
.dlg-body .form-status { min-height: 0; }
.contacts-col { grid-template-columns: minmax(0, 1fr); }
.portal { padding-top: clamp(32px, 4vw, 56px); }

/* ---------- Hoodie ---------- */
.hoodie-fig { margin: 0; display: grid; gap: 12px; }
.hoodie-fig img { width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow); background: #0b0b0c; }
.hoodie-fig figcaption { font-size: .85rem; color: var(--muted); }
.notice-cash { background: var(--yellow-soft); border-left: 4px solid var(--yellow); border-radius: 10px; padding: 12px 16px; font-size: .95rem; color: var(--ink) !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--yellow-2); flex: none; }
.form .row { align-items: start; }
.hero-art { max-width: 460px; }

/* ---------- Langue ---------- */
.lang-btn { font-family: var(--font-d); font-weight: 800; font-size: .8rem; letter-spacing: .04em; width: auto; min-width: 42px; padding: 0 12px; }

/* ---------- Phases du portail ---------- */
.phases { list-style: none; padding: 0; margin: 0 0 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.phase { width: 100%; height: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 4px; align-content: start; position: relative; transition: border-color .2s, transform .2s; }
.phase:hover { border-color: var(--yellow); transform: translateY(-2px); }
.phase b { font-size: .98rem; line-height: 1.25; }
.phase-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; background: var(--surface-2); margin-bottom: 6px; }
.phase-s { font-size: .78rem; color: var(--muted); font-weight: 600; }
.phase.cur { border-color: var(--yellow); background: var(--yellow-soft); }
.phase.cur .phase-n { background: var(--yellow); color: var(--on-yellow); }
.phase.done .phase-n { background: #059669; color: #fff; }
.phase.locked { opacity: .78; }
.phase.sel { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.phase-panel { margin-top: 20px; }
.card.big { padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 14px; }
.card.big h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.checklist { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 12px; }
.checklist li { display: grid; gap: 2px; padding: 14px 16px 14px 48px; border-radius: 14px; border: 1px solid var(--line); position: relative; background: var(--surface); }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); }
.checklist li.ok::before { background: #059669; border-color: #059669; }
.checklist li.bad::before { background: #B91C1C; border-color: #B91C1C; }
.checklist li.todo::before { border-color: var(--yellow-2); }
.checklist span { font-size: .9rem; color: var(--muted); }
.result { text-align: center; padding: 24px; border-radius: 18px; background: var(--yellow-soft); border: 1px solid var(--yellow); }
.result h3 { font-size: 1.8rem; }
.convoc { border-left: 4px solid var(--yellow); padding-left: 16px; }
.small { font-size: .88rem; }
.ticks.num { list-style: decimal; padding-left: 22px; }

/* ---------- Billets ---------- */
.tickets { display: grid; gap: 18px; }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 170px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--ink); overflow: hidden; position: relative; }
.ticket::before { content: ""; position: absolute; top: 0; bottom: 0; right: 170px; border-left: 2px dashed var(--line); }
.tk-main { padding: 22px 24px; display: grid; gap: 6px; align-content: start; }
.tk-brand { font-family: var(--font-d); font-weight: 800; font-size: .75rem; letter-spacing: .14em; color: var(--muted); }
.tk-kind { font-weight: 700; }
.tk-name { font-size: 1.5rem; line-height: 1.1; }
.tk-info { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; font-size: .9rem; }
.tk-info dt { color: var(--muted); } .tk-info dd { margin: 0; font-weight: 600; }
.tk-side { background: var(--yellow); color: #1E242B; padding: 16px; display: grid; gap: 8px; justify-items: center; align-content: center; }
.tk-qr { width: 130px; height: 130px; background: #fff; border-radius: 10px; padding: 4px; }
.tk-qr svg { width: 100%; height: 100%; display: block; }
.tk-code { font-family: var(--font-d); letter-spacing: .06em; font-size: .85rem; }
.tk-foot { grid-column: 1 / -1; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
.ticket.void { opacity: .5; }
.tickets.big .ticket { max-width: 760px; margin: 0 auto; }
@media (max-width: 560px) { .ticket { grid-template-columns: minmax(0, 1fr); } .ticket::before { display: none; } .tk-side { grid-auto-flow: row; } }
@media print {
  .site-header, .site-footer, .no-print, .skip, .tk-foot { display: none !important; }
  body { background: #fff !important; } .portal { padding: 0 !important; }
  .ticket { break-inside: avoid; box-shadow: none; border-color: #000; }
}

/* ---------- Console admin ---------- */
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.cols-2 { grid-template-columns: minmax(0, 1fr); } }
.funnel { display: grid; gap: 12px; margin-top: 14px; }
.f-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: .92rem; }
.f-bar { height: 14px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.f-bar i { display: block; height: 100%; background: var(--yellow); border-radius: 99px; min-width: 4px; }
.f-row b { text-align: right; font-family: var(--font-d); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .f-row { grid-template-columns: 110px minmax(0, 1fr) 32px; font-size: .85rem; } }
.todo { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.todo li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.todo li.on { background: var(--yellow-soft); color: var(--ink); }
.todo li b { font-family: var(--font-d); font-size: 1.3rem; min-width: 28px; }
.todo li .linkish { margin-left: auto; }
.sub { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; }
.contact-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.form.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.form.inline .field { flex: 1 1 240px; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .88em; }

.nav-links a { white-space: nowrap; }
@media (min-width: 981px) { .nav-links { gap: 2px; } .nav-links a { padding-left: 10px; padding-right: 10px; } }
