/* Jeux Encadrés — cobalt sur sable */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/newsreader-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --bg: #ffffff;
  --ink: #1b1b1f;
  --muted: #5c5c66;
  --accent: #1f3fbf;
  --accent-deep: #172f94;
  --rule: #e6e6ea;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sec: 120px;
  --gut: 20px;
}
@media (max-width: 640px) { :root { --sec: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; line-height: 1.5; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--bg); color: var(--accent); padding: 10px 16px; outline: 2px solid var(--accent); }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(960px + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.col { width: 100%; max-width: calc(760px + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }

h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: 2.5rem; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font: 600 1.125rem/1.4 var(--sans); margin-top: 32px; }
@media (min-width: 700px) { h1 { font-size: 4rem; } h2 { font-size: 2rem; } }
h2 + p, h2 + ul { margin-top: 20px; }
h3 + p { margin-top: 4px; }
.col p + p { margin-top: 16px; }
.lead { font-size: 1.25rem; line-height: 1.55; margin-top: 28px; }
.intro { max-width: 40rem; }

.btn { display: inline-block; padding: 12px 24px; min-height: 48px; background: var(--accent); color: var(--bg); font: 600 1rem/1.4 var(--sans); text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--accent-deep); color: var(--bg); }

/* Bande du haut */
.topstrip { border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.topstrip-in { padding-block: 10px; display: flex; gap: 12px; align-items: baseline; }
.topstrip .age { color: var(--ink); flex: none; }
.topstrip strong { color: var(--ink); }

/* En-tête */
.site-header { position: relative; padding-block: 18px; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 32px; height: 32px; }
.brand-name { font: 400 1.375rem/1 var(--serif); }
.nav ul { display: flex; gap: 4px 24px; flex-wrap: wrap; }
.nav a { display: inline-block; padding: 8px 0; color: var(--ink); font-size: 0.9375rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.nav-extra { display: none; }
.burger { display: none; min-height: 44px; padding: 6px 0; background: none; border: 0; cursor: pointer; color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.burger-lines { display: none; }
@media (max-width: 899px) {
  .js .burger { display: inline-block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--bg); border-block: 1px solid var(--rule); padding: 8px var(--gut) 16px; }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .nav-extra { display: block; }
  .nav a { display: block; padding: 12px 0; font-size: 1.0625rem; }
  .header-in { flex-wrap: wrap; }
  html:not(.js) .nav { flex-basis: 100%; }
}

/* Accueil */
.hero { padding-top: 72px; }
.hero > p:not(.lead) { margin-top: 28px; }
.hero .small { margin-top: 16px; }
.allowed { margin-top: 56px; border-top: 1px solid var(--rule); font-size: 1.125rem; }
.allowed li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.allowed .no span { color: var(--accent); font-weight: 600; }
.allowed .no s { text-decoration-thickness: 1px; }
.hero > p.small:last-child { margin-top: 20px; }
.section { padding-top: var(--sec); }
.section-last { padding-bottom: var(--sec); }

.op-rows { margin-top: 24px; }
.op { display: flex; gap: 16px; padding: 28px 0; border-top: 1px solid var(--rule); }
.op:last-child { border-bottom: 1px solid var(--rule); }
.op-logo { flex: none; width: 40px; height: 40px; border-radius: 4px; margin-top: 2px; }
.op-body h3 { margin-top: 0; }
.op-body p + p { margin-top: 6px; }
.op-cta { margin-top: 12px; }
.op-cta a { font-weight: 600; }
.op-cta .small { margin-left: 8px; }
.nw { white-space: nowrap; }

.plain { list-style: disc; padding-left: 1.25rem; display: grid; gap: 10px; }
.plain + p { margin-top: 20px; }
.articles li { padding: 18px 0; border-top: 1px solid var(--rule); }
.articles li:last-child { border-bottom: 1px solid var(--rule); }
.articles h3 { margin-top: 0; }
.articles { margin-top: 20px; }
.warning { font-size: 1.0625rem; }

/* Pied de page */
.site-footer { margin-top: 0; padding-block: 56px 40px; border-top: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.55; color: var(--ink); }
.foot-top, .foot-cols { display: grid; gap: 28px; }
@media (min-width: 800px) { .foot-top, .foot-cols { grid-template-columns: 1fr 1fr; gap: 48px; } }
.foot-cols { margin-top: 40px; }
.foot-brand { font: 400 1.375rem/1.2 var(--serif); margin-bottom: 8px; }
.foot-links-note { font-weight: 600; font-size: 1rem; line-height: 1.5; }
.foot-h { font: 600 0.9375rem/1.3 var(--sans); margin-bottom: 8px; }
.foot-list { display: grid; gap: 4px; }
.foot-cols p { margin-top: 10px; }
.foot-disclosure, .foot-controller, .foot-warning, .foot-copy { margin-top: 28px; max-width: 46rem; }
.foot-controller { margin-top: 10px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 28px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.foot-copy { color: var(--muted); }

/* Contrôle d’âge */
.agegate { width: min(480px, calc(100% - 32px)); margin: auto; padding: 32px 28px; background: var(--bg); color: var(--ink); border: 0; border-radius: 4px; }
.agegate::backdrop { background: rgba(27, 27, 31, 0.6); }
.agegate h2 { font-size: 1.75rem; }
.agegate p { margin-top: 14px; }
.agegate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.agegate .small { margin-top: 20px; color: var(--muted); }

/* Cookies */
.cookie { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-inline: auto; padding: 12px 14px; background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 0 0 1px var(--rule); font-size: 0.8125rem; line-height: 1.4; }
.cookie[hidden] { display: none; }
.cookie .btn { min-height: 44px; padding-block: 6px; }
@media (min-width: 700px) { .cookie { flex-direction: row; align-items: center; gap: 24px; padding: 16px 20px; font-size: 0.875rem; } .cookie .btn { flex: none; } }


/* Pages internes : composants communs */
.page-head { padding-top: 56px; }
.page-head h1 { margin-top: 28px; }
.page-head .small { margin-top: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.prose { padding-top: 72px; padding-bottom: var(--sec); }
.prose h2 { margin-top: 72px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose p + p { margin-top: 16px; }
.prose ul:not(.op-rows):not(.plain) { list-style: disc; padding-left: 1.25rem; display: grid; gap: 8px; margin-top: 16px; }
.prose p + ul, .prose ul + p { margin-top: 16px; }
.prose .op-rows { margin-top: 24px; }
.note { margin-top: 24px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.next { margin-top: 72px; }
.prose > section:first-child > h2:first-child { margin-top: 0; }

/* Pages vos-droits et reperer-un-site-illegal : listes numérotées (vraies séquences). */
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 2.25rem; }
.steps li::before { content: counter(step) "."; position: absolute; left: 0; top: 0; width: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }
.prose p + .steps, .prose .steps + p { margin-top: 16px; }

/* Pages À propos, Jeu responsable, Contact, légales */
.prose .warning-lead { margin-top: 0; font-size: 1.25rem; line-height: 1.55; }
.prose .act { margin-top: 28px; }

.form-status { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--accent); }
.form-status.ok { border-left-color: var(--ink); font-weight: 600; }
.form-status p + p { margin-top: 8px; }

.cform { margin-top: 32px; display: grid; gap: 28px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 0; border-bottom: 1px solid var(--muted); border-radius: 0; padding: 10px 0; min-height: 48px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.field input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field [aria-invalid="true"] { border-bottom-color: var(--accent); border-bottom-width: 2px; }
.field .small { margin-top: 6px; }
.ferr { margin-top: 6px; color: var(--accent); font-size: 0.9375rem; font-weight: 600; }
.field.check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; }
.field.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); }
.field.check label { font-weight: 400; margin: 0; }
.field.check .ferr { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ctable { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; text-align: left; }
.ctable th, .ctable td { padding: 14px 16px 14px 0; border-top: 1px solid var(--rule); vertical-align: top; text-align: left; }
.ctable thead th { font-weight: 600; border-top: 0; padding-top: 0; }
.ctable tbody th { font-weight: 400; }
.ctable tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.ctable code { font-size: 0.9em; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; }
  .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ctable tr { padding: 14px 0; border-top: 1px solid var(--rule); }
  .ctable tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .ctable th, .ctable td { border: 0 !important; padding: 2px 0; }
  .ctable td[data-l]::before { content: attr(data-l) " : "; color: var(--muted); }
}
