:root {
  --navy: #1F2A44;
  --navy-2: #2B3858;
  --orange: #F28C28;
  --orange-ink: #B4580A;
  --sand: #FBE3B8;
  --cream: #FFFAF1;
  --paper: #FFFFFF;
  --ink: #1F2A44;
  --muted: #5B6478;
  --line: #EADFC9;
  --board: #23382E;
  --board-2: #2E4A3C;
  --chalk: #F4F1E8;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #fff; }
.kicker {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 12px;
}
.section--navy .kicker { color: var(--orange); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.section--navy .lead { color: #C9D0E0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 250, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .18em; color: var(--orange-ink); margin-top: -2px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); }
.nav a:hover { color: var(--orange-ink); }
.nav .nav-link { display: none; }
@media (min-width: 760px) { .nav .nav-link { display: inline; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover { background: #F59A3D; }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--small { padding: 8px 14px; font-size: .88rem; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.hero h1 em { font-style: normal; color: var(--orange-ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.board {
  background: radial-gradient(120% 90% at 30% 20%, var(--board-2), var(--board));
  border: 12px solid #7A5634;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(31, 42, 68, .25), inset 0 0 40px rgba(0,0,0,.35);
  color: var(--chalk);
  padding: 28px 30px;
  font-family: "Segoe Print", "Comic Sans MS", "Bradley Hand", cursive;
}
.board p { margin: 0 0 10px; font-size: 1.25rem; }
.board .q { font-size: .95rem; opacity: .8; font-family: inherit; }
.board .hl { color: #FFD48A; }
.board .ok { color: #9BE59B; }
.board-tag { margin-top: 18px; font-family: "Segoe UI", system-ui, sans-serif; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 8px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-size: 1.9rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Videos */
.videos { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 32px; }
.video {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
a.video:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31, 42, 68, .12); }
.video .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--board); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: .78rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.video .body { padding: 16px 18px 18px; }
.video .num { font-size: .78rem; font-weight: 700; color: var(--orange-ink); letter-spacing: .08em; text-transform: uppercase; }
.video h3 { margin: 4px 0 8px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--sand); color: var(--navy); }
.video--soon { opacity: .85; }
.video--soon .thumb::after { content: "Bientôt"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(31, 42, 68, .82); color: #fff; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.more { margin-top: 28px; }

/* Method */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 32px; counter-reset: s; }
.step { background: var(--paper); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }

/* Programme */
.modules { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.module { display: flex; align-items: center; gap: 14px; background: var(--navy-2); border-radius: 12px; padding: 14px 16px; }
.module .n { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 800; }
.module--live .n { background: var(--orange); color: var(--navy); }
.module b { display: block; }
.module span { font-size: .88rem; color: #C9D0E0; }
.module .state { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.1); white-space: nowrap; }
.module--live .state { background: var(--orange); color: var(--navy); }

/* Fiches */
.fiches { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .fiches { grid-template-columns: 1fr 1fr; } }
.fiche-mock {
  background: var(--paper); border-radius: 10px; padding: 26px 28px;
  box-shadow: 0 18px 40px rgba(31, 42, 68, .18); border-top: 8px solid var(--orange);
  transform: rotate(-1.5deg);
}
.fiche-mock .ft { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--orange-ink); text-transform: uppercase; }
.fiche-mock h3 { font-size: 1.35rem; margin: 6px 0 14px; }
.fiche-mock .rule { background: var(--sand); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; font-size: .95rem; }
.fiche-mock .line { height: 9px; border-radius: 5px; background: #ECE6DA; margin: 9px 0; }
.fiche-mock .line.s { width: 70%; }
.checks { list-style: none; padding: 0; margin: 18px 0 26px; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231F2A44' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.soon-pill { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D0E0; padding: 48px 0 32px; font-size: .92rem; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #E6EAF2; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .82rem; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 10px; }
.foot-brand img { width: 36px; height: 36px; border-radius: 50%; }

/* Legal pages */
.doc { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc p, .doc li { color: #2E3850; }
.doc .meta { color: var(--muted); font-size: .92rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
