/* ==========================================================================
   OKM Football Académie — feuille de style principale (maquette « Familles »)
   Mobile d'abord. Aucun style en ligne dans les pages (compatible CSP).
   ========================================================================== */

:root {
  --ink: #0a1f16;
  --pitch: #0f5a3b;
  --deep: #08301f;
  --gold: #f2be1a;
  --gold-hi: #ffd24a;
  --chalk: #fffaf0; /* fond des pages */
  --paper: #ffffff;
  --sand: #efe5c8;
  --line: #ecdfc0;
  --muted: #46594e;
  --red: #b8312a;
  --amber: #7a5a00;
  --mint: #e3efe6;
  --f-disp: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
}
@media (min-width: 700px) {
  :root { --gutter: 32px; --r-lg: 36px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
[hidden] { display: none !important; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pitch); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .mbar :focus-visible { outline-color: var(--gold); }
.on-gold :focus-visible { outline-color: var(--deep); }

.skip-link { position: absolute; left: 8px; top: -80px; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700; z-index: 100; border-radius: 99px; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Typographie ---------- */
.disp { font-family: var(--f-disp); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.on-dark .eyebrow, .eyebrow--gold { color: var(--gold); }
.on-gold .eyebrow { color: var(--deep); }
.h1 { font-size: clamp(40px, 9vw, 76px); line-height: 0.98; }
.h2 { font-size: clamp(32px, 5.2vw, 52px); }
.h3 { font-size: 26px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.xsmall { font-size: 14px; }
.lead { font-size: 20px; max-width: 56ch; line-height: 1.5; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--f-disp); font-weight: 800; font-size: 30px; line-height: 1.1; margin-top: 1.6em; letter-spacing: -0.02em; }
.prose ul { list-style: disc; padding-left: 1.4em; display: grid; gap: 6px; }

/* ---------- Mise en page ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: 56px; }
.sec--alt { background: var(--paper); border-block: 1px solid var(--line); }
.sec--dark { background: var(--deep); color: #fff; }
.sec--gold { background: var(--gold); color: var(--deep); }
@media (min-width: 900px) { .sec { padding-block: 88px; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.sec-head > div { display: flex; flex-direction: column; gap: 10px; }
.more { font-weight: 700; color: var(--pitch); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.sec--dark .more, .on-dark .more { color: var(--gold); }
.on-gold .more { color: var(--deep); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--sm { gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

/* ---------- Boutons, puces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; font-weight: 700; font-size: 16px; border-radius: 99px; border: 2px solid transparent; text-align: center; cursor: pointer; background: none; transition: background 0.15s, color 0.15s; }
.btn--gold { background: var(--gold); color: var(--deep); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--dark { background: var(--deep); color: #fff; }
.btn--dark:hover { background: var(--pitch); }
.btn--line { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, 0.14); }
.btn--outline { border-color: var(--deep); color: var(--deep); }
.btn--outline:hover { background: var(--deep); color: #fff; }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 18px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.chip { display: inline-block; padding: 2px 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; border-radius: 99px; background: var(--mint); color: var(--pitch); line-height: 1.6; white-space: nowrap; border: 0; }
.chip--green { background: var(--mint); color: var(--pitch); }
.chip--red { background: #f7dedb; color: var(--red); }
.chip--amber { background: #f6e9bd; color: var(--amber); }
.chip--muted { background: #eee8d6; color: var(--muted); }
.chip--ink { background: var(--deep); color: #fff; }
.chip--gold { background: var(--gold); color: var(--deep); }
.chip--white { background: rgba(255, 255, 255, 0.16); color: #fff; }

.ph { background: repeating-linear-gradient(135deg, #f1e8cd 0 14px, #ebe0c0 14px 28px); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.ratio-43, .ratio-1610, .ratio-32, .ratio-sq, .ratio-169 { width: 100%; object-fit: cover; border-radius: var(--r-md); }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-1610 { aspect-ratio: 16 / 10; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-32 { aspect-ratio: 3 / 2; object-fit: contain; }
.ratio-sq { aspect-ratio: 1 / 1; }

.state { grid-column: 1 / -1; color: var(--muted); padding: 16px 0; }
.state--err { color: var(--red); }
.notice-example { font-size: 14px; color: var(--muted); border: 1px dashed #cdbb88; border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 16px; background: var(--paper); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--chalk); }
.head-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
@media (min-width: 1024px) { .head-main { min-height: 84px; } }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--deep); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--f-disp); font-weight: 800; font-size: 16px; }
@media (min-width: 1024px) { .brand-mark { width: 48px; height: 48px; font-size: 18px; } }
.brand-name { font-family: var(--f-disp); font-weight: 700; font-size: 17px; line-height: 1.1; }
@media (min-width: 1024px) { .brand-name { font-size: 19px; } }
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-cta { display: none; min-height: 46px; }
@media (min-width: 700px) { .head-cta { display: inline-flex; } }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--sand); color: var(--deep); cursor: pointer; }
.burger svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .burger { display: none; } }

.nav-bar { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: 0 16px 30px rgba(8, 48, 31, 0.12); }
.nav-bar.is-open { display: block; }
.nav-bar ul { display: flex; flex-direction: column; padding: 4px var(--gutter) 12px; }
.nav-bar a { display: block; padding: 15px 0; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.nav-bar li:last-child a { border-bottom: 0; }
.nav-bar a[aria-current="page"] { color: var(--pitch); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--gold); text-underline-offset: 6px; }
@media (min-width: 1024px) {
  .nav-bar { display: block; position: static; flex: 1; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .nav-bar ul { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 4px 24px; padding: 0; }
  .nav-bar a { padding: 8px 0; font-size: 16px; font-weight: 500; border: 0; }
  .nav-bar a:hover { color: var(--pitch); }
  .nav-bar a[aria-current="page"] { font-weight: 700; }
  .nav-more { display: none; }
}

/* ---------- Barre mobile fixe ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--chalk); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(8, 48, 31, 0.1); }
.mbar .btn { flex: 1; min-height: 50px; padding: 0 12px; }
@media (min-width: 1024px) { .mbar { display: none; } }

/* ---------- Héros de l'accueil ---------- */
.hero-wrap { padding: 8px var(--gutter) 56px; }
@media (min-width: 900px) { .hero-wrap { padding-bottom: 80px; } }
.hero { max-width: var(--max); margin-inline: auto; position: relative; overflow: hidden; background: var(--gold); color: var(--deep); border-radius: var(--r-lg); padding: 32px 22px 28px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero::before { content: ""; position: absolute; left: -110px; bottom: -150px; width: 440px; height: 440px; border-radius: 50%; border: 3px solid rgba(8, 48, 31, 0.12); pointer-events: none; }
@media (min-width: 700px) { .hero { padding: 56px 48px; } }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding: 72px 64px; } }
.hero-copy { position: relative; display: flex; flex-direction: column; gap: 22px; }
.hero-copy .accent { color: var(--paper); text-shadow: 0 2px 0 rgba(8, 48, 31, 0.18); }
.hero-copy .lead { color: #1f3a2a; }
.motto { align-self: flex-start; background: var(--deep); color: var(--gold); font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 99px; letter-spacing: 0.02em; }
.hero-visual { position: relative; display: flex; flex-direction: column; gap: 14px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); box-shadow: 0 20px 50px rgba(8, 48, 31, 0.22); }
.hero-steps { background: var(--chalk); color: var(--ink); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(8, 48, 31, 0.18); }
@media (min-width: 960px) { .hero-steps { margin: -72px 0 0 -56px; position: relative; } }
.hero-steps .title { font-family: var(--f-disp); font-weight: 800; font-size: 22px; line-height: 1.1; }
.mini-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; font-weight: 700; }
.mini-step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--deep); color: var(--gold); font-family: var(--f-disp); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hero-steps .note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

.page-hero { padding: 8px var(--gutter) 0; }
.page-hero .wrap { max-width: var(--max); background: var(--gold); color: var(--deep); border-radius: var(--r-lg); padding: 30px 22px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.page-hero .wrap::after { content: ""; position: absolute; right: -80px; top: -110px; width: 300px; height: 300px; border-radius: 50%; border: 3px solid rgba(8, 48, 31, 0.12); pointer-events: none; }
.page-hero p { max-width: 62ch; color: #1f3a2a; }
.crumbs { font-size: 14px; color: #3a4f33; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .page-hero .wrap { padding: 52px 56px; } }

/* ---------- Piliers ---------- */
.pillars { display: grid; gap: 14px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; display: grid; gap: 4px 20px; align-items: start; }
.pillar .disp { font-size: 30px; color: var(--ink); }
.pillar p { color: var(--muted); }
@media (min-width: 700px) { .pillar { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); align-items: baseline; } }
.pillars--row { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pillars--row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pillars--row .pillar { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 30px; } }
.pillar-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--pitch); display: flex; align-items: center; justify-content: center; }
.pillar-ico svg { width: 28px; height: 28px; }

/* ---------- Catégories (accueil et équipes) ---------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 6px; transition: background 0.15s; }
.cat-card:hover { background: rgba(255, 255, 255, 0.16); }
.cat-card .cat { font-family: var(--f-disp); font-weight: 800; font-size: 40px; line-height: 1; color: var(--gold); }
.cat-card p { color: rgba(255, 255, 255, 0.8); font-size: 15px; }
@media (min-width: 700px) { .cat-card { padding: 26px; } .cat-card .cat { font-size: 46px; } }

.team-card { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 12px 22px; }
.team-card > :not(img):not(.ph) { padding-inline: 8px; }
.team-card .name-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.team-card .cat { font-size: 40px; }
.team-card:hover { border-color: var(--pitch); }

.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; overflow: hidden; }
.news-card:hover { border-color: var(--pitch); }
.news-card > img, .news-card > .ph { border-radius: 0; }
.news-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.news-card h3 { font-family: var(--f-disp); font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); align-items: center; flex-wrap: wrap; }

.cup { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.cup .cup-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.cup svg { width: 40px; height: 40px; color: var(--pitch); }
.cup .name { font-size: 24px; line-height: 1.1; }
.cup p { color: var(--muted); font-size: 15px; }
.cup img { border-radius: 0; }
.sec--dark .cup { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); }
.sec--dark .cup p { color: rgba(255, 255, 255, 0.78); }
.sec--dark .cup svg { color: var(--gold); }

.player-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; overflow: hidden; }
.player-card > img, .player-card > .ph { border-radius: 0; }
.player-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.player-card .initials { font-family: var(--f-disp); font-weight: 800; font-size: 60px; background: var(--mint); color: var(--pitch); }
.player-card h3 { font-family: var(--f-disp); font-size: 20px; font-weight: 700; }
.stats { display: flex; gap: 20px; padding-top: 8px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stats dd { font-family: var(--f-disp); font-weight: 800; font-size: 28px; line-height: 1.1; }

.logos { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.logo-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 3; padding: 14px; text-align: center; font-weight: 700; color: var(--muted); }
.logo-tile img { max-height: 100%; width: auto; object-fit: contain; }
a.logo-tile:hover { border-color: var(--pitch); }

.partner-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.partner-card .logo-tile { border: 0; background: var(--chalk); }

/* ---------- Bandeau match + résultat (accueil) ---------- */
.match-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.match-card .opp { font-size: 30px; line-height: 1.05; }
.match-card .opp-sub { color: var(--muted); }
.match-card hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 4px 0; }
.match-card .result { font-weight: 700; font-size: 19px; }
.home-news { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .home-news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split-home { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split-home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 40px; } }

/* ---------- Matchs ---------- */
.mrow { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; align-items: center; padding: 16px; margin-bottom: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.mrow-tail { grid-column: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (min-width: 520px) {
  .mrow { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 20px; }
  .mrow-tail { grid-column: auto; justify-content: flex-end; }
}
.date { background: var(--deep); color: #fff; text-align: center; padding: 8px 0; line-height: 1; border-radius: 14px; }
.date-d { display: block; font-size: 28px; }
.date-m { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.mrow-title { font-weight: 700; }
.score { font-family: var(--f-disp); font-weight: 800; font-size: 36px; line-height: 1; white-space: nowrap; }
.scorers { font-size: 14px; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { padding: 10px 22px; min-height: 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.tab:hover { border-color: var(--pitch); }

.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; margin-bottom: 28px; }
.pillbar { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); font-weight: 700; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.pill:hover { border-color: var(--pitch); }

/* position: relative contient le texte masqué (position absolue) du tableau, sinon il élargit toute la page sur mobile. */
.table-wrap { position: relative; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th { text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px; border-bottom: 2px solid var(--deep); }
td { padding: 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td.num, th.num { text-align: right; }
td.strong { font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* ---------- Galerie et vidéos ---------- */
.album-card { display: flex; flex-direction: column; gap: 12px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.album-card:hover h3 { color: var(--pitch); }
.album-card h3 { font-family: var(--f-disp); font-size: 22px; font-weight: 700; }
.media-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.media-grid a { display: block; }
.media-grid img { transition: opacity 0.15s; }
.media-grid a:hover img { opacity: 0.85; }
.video-card { display: flex; flex-direction: column; gap: 12px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--deep); }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; border-radius: 0; }
.video-card h3 { font-family: var(--f-disp); font-size: 22px; font-weight: 700; line-height: 1.15; }
.video-feature { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 960px) { .video-feature { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; } }
.strip { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.strip a { display: block; position: relative; border-radius: var(--r-md); overflow: hidden; }
.strip img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; transition: transform 0.25s; }
.strip a:hover img { transform: scale(1.04); }

/* ---------- Étapes (inscription) ---------- */
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 20px; background: rgba(255, 255, 255, 0.5); border-radius: var(--r-md); }
.step .disp { font-size: 40px; line-height: 1; }

/* ---------- Questions de parents ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; }
.faq-item h3 { font-family: var(--f-disp); font-weight: 700; font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.faq-item p { color: var(--muted); }

/* ---------- Appel final ---------- */
.cta-final { max-width: var(--max); margin-inline: auto; background: var(--deep); color: #fff; border-radius: var(--r-lg); padding: 36px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-final p { color: rgba(255, 255, 255, 0.82); max-width: 52ch; }
.cta-final .stack { gap: 10px; }
@media (min-width: 700px) { .cta-final { padding: 56px 56px; } }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.form legend { font-family: var(--f-disp); font-weight: 800; font-size: 26px; padding: 0; margin-bottom: 12px; letter-spacing: -0.02em; }
.form-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 700; }
.req { color: var(--red); }
.hint { font-size: 14px; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 10px 16px; border: 2px solid #b9ad88; border-radius: 14px; background: var(--paper); }
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--pitch); outline: 3px solid var(--gold); outline-offset: 0; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 14px; font-weight: 700; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--pitch); }
.alert { padding: 16px 18px; border-left: 6px solid var(--pitch); background: var(--paper); border-radius: 14px; border: 1px solid var(--line); border-left-width: 6px; }
.alert--ok { border-left-color: var(--pitch); }
.alert--err { border-left-color: var(--red); }
.alert--info { border-left-color: var(--gold); }
.alert[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0a1f16; color: rgba(255, 255, 255, 0.82); padding-block: 56px 32px; margin-top: 0; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer .eyebrow { margin-bottom: 14px; display: block; }
.foot-brand { font-size: 26px; color: #fff; }
.foot-legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 14px; color: rgba(255, 255, 255, 0.65); }

/* ---------- Divers ---------- */
.contact-list { display: grid; gap: 16px; }
.contact-list dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-list dd { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.article-body { max-width: 68ch; display: flex; flex-direction: column; gap: 1.1em; font-size: 18px; }
.article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.timeline-year { font-family: var(--f-disp); font-weight: 800; font-size: 48px; line-height: 1; color: var(--pitch); margin-bottom: 16px; }
.err404 { font-size: clamp(96px, 28vw, 220px); color: var(--deep); }
.card-next { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
