/* ==========================================================================
   www.hebert-couverture-10.fr : feuille de style
   Hero image en tête, fond clair, accent turquoise sur marine.
   Aucun JavaScript.
   ========================================================================== */

@font-face {
  font-family: "Madefor Display";
  src: url("../fonts/madefor-display.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Madefor Text";
  src: url("../fonts/madefor-text.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------- Variables */
:root {
  --navy:    #0e2a4a;
  --navy-2:  #163a60;
  --turq:    #f28c28;
  --turq-d:  #c46a12;
  --turq-l:  #fdf1e3;
  --paper:   #f4f7f9;
  --card:    #ffffff;
  --shell:   #eaeff3;
  --ink:     #31404f;
  --ink-2:   #556575;
  --ink-3:   #7b8b99;
  --line:    #dde5ea;
  --line-2:  #c3ced6;

  --vert:    #1f7a4d;
  --vert-l:  #e8f4ee;
  --rouge:   #b23a3a;
  --rouge-l: #fbeced;
  --ambre:   #a4741a;
  --ambre-l: #fbf3e2;

  --titre: "Madefor Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Madefor Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --col: 74rem;
  --read: 44rem;
  --r: 12px;
  --shadow: 0 1px 2px rgba(15,37,64,.05), 0 18px 40px -30px rgba(15,37,64,.5);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 1.03rem; line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--turq-d); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--titre); color: var(--navy); margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.42rem, 1.2rem + 1.2vw, 1.95rem); }
h3 { font-size: clamp(1.14rem, 1.04rem + .5vw, 1.35rem); color: var(--navy-2); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
strong, b { font-weight: 700; color: var(--navy); }

.wrap { width: min(100% - 2.4rem, var(--col)); margin-inline: auto; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--turq-d); margin: 0 0 .8rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: .7rem 1.2rem; border-radius: var(--r); font-weight: 600; }
.skip:focus { left: .75rem; top: .75rem; }

/* --------------------------------------------------------------- En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,247,249,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.4rem; min-height: 3.8rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--navy); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--titre); font-weight: 700; font-size: 1.02rem; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .87rem; font-weight: 600; padding: .25rem 0; border-bottom: 2px solid transparent; display: block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--turq-d); border-bottom-color: var(--turq); }
.age { font-size: .72rem; font-weight: 700; color: #fff; background: var(--rouge); border-radius: 999px; padding: .18rem .55rem; }
@media (max-width: 1000px) { .site-nav { display: none; } .site-header .wrap { justify-content: space-between; } .age { margin-left: auto; } }

/* ----------------------------------------------------------- Fil d'Ariane */
.crumbs { font-size: .8rem; color: var(--ink-3); padding: .8rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--turq-d); text-decoration: underline; }

/* -------------------------------------------------------------- Le hero */
.hero { background: var(--navy); color: #fff; }
.hero-txt { padding: 2.6rem 0 2.4rem; }
.hero-txt h1 { color: #fff; max-width: 22ch; }
.hero-txt .chapo { color: #c7d5e2; font-size: 1.1rem; max-width: 44rem; line-height: 1.6; }
.hero-txt .chapo strong { color: #fff; }
.hero-meta { color: #8fa6bb; font-size: .84rem; margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid #23456b; }
.hero-meta strong { color: #c7d5e2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.hero-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #23456b;
  border-top: 1px solid #23456b; }
@media (max-width: 780px) { .hero-chiffres { grid-template-columns: repeat(2, 1fr); } }
.hero-chiffres div { background: var(--navy); padding: 1.1rem .9rem; text-align: center; }
.hero-chiffres b { display: block; font-family: var(--titre); font-size: 1.35rem; color: var(--turq); line-height: 1.1; }
.hero-chiffres span { font-size: .78rem; color: #8fa6bb; }

/* -------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--turq); color: #ffffff; padding: .8rem 1.5rem; text-decoration: none;
  font-weight: 700; font-size: .93rem; border-radius: 9px; border: 0; cursor: pointer;
  transition: background .12s, transform .1s; font-family: var(--sans); text-align: center; }
.btn:hover { background: #ffa040; color: #fff; transform: translateY(-1px); }
.btn-line { background: transparent; color: #fff; border: 1px solid #3a628c; }
.btn-line:hover { background: #17395f; color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .83rem; }
.btn-wide { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

/* -------------------------------------------------------- Corps de page */
.layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2.8rem; padding: 2.6rem 0 3.6rem; align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; gap: 1.4rem; } }

.toc { position: sticky; top: 4.6rem; border: 1px solid var(--line); border-radius: var(--r); padding: 1.05rem 1.15rem; background: var(--card); }
@media (max-width: 1000px) { .toc { position: static; } }
.toc h2 { font-family: var(--sans); font-size: .71rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .75rem; border: 0; padding: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: .88rem; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .4rem; }
.toc a { color: var(--ink-2); text-decoration: none; display: flex; gap: .5rem; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--turq-d); font-weight: 700; font-size: .76rem; }
.toc a:hover { color: var(--turq-d); }
.toc .cta { margin-top: .9rem; }

.prose section { scroll-margin-top: 4.6rem; }
.prose section + section { margin-top: 2.8rem; }
.prose > section > h2 { padding-bottom: .4rem; border-bottom: 3px solid var(--turq); }
.prose h3 { margin-top: 1.9rem; }
.prose h4 { margin-top: 1.4rem; margin-bottom: .35rem; }
.prose p { max-width: var(--read); }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.25em; max-width: var(--read); }
.prose ul li { position: relative; padding-left: 1.45rem; margin-bottom: .48em; }
.prose ul li::before { content: ""; position: absolute; left: .12rem; top: .68em; width: .45rem; height: .45rem; background: var(--turq); border-radius: 2px; }
.prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; max-width: var(--read); }
.prose ol li { margin-bottom: .48em; }
.prose ol li::marker { font-family: var(--titre); font-weight: 700; color: var(--turq-d); }

figure { margin: 1.6rem 0; }
figure img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
figcaption { font-size: .82rem; color: var(--ink-3); padding-top: .45rem; }

/* ------------------------------------------------------------- Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 1.6rem; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
caption { text-align: left; font-family: var(--titre); font-weight: 700; font-size: 1rem; color: var(--navy); padding: .8rem 1rem .3rem; }
th, td { padding: .65rem .95rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; border-top: 0; }
tbody th { font-weight: 700; color: var(--navy); }
tbody tr:nth-child(even) td { background: #fafcfd; }
.table-key tbody th { width: 40%; background: var(--shell); }
td.oui { color: var(--vert); font-weight: 700; }
td.non { color: var(--rouge); font-weight: 700; }
td.aconfirmer { color: var(--ambre); font-weight: 700; }
td.cta { text-align: right; white-space: nowrap; }

/* --------------------------------------------------------- Comparatif */
.bloc-comparatif { margin: 2rem 0 0; }
.bloc-comparatif h2 { font-size: clamp(1.3rem, 1.14rem + .9vw, 1.7rem); }
.intro-comparatif { max-width: 46rem; margin-bottom: 1.1rem; }
.note-comparatif { font-size: .84rem; color: var(--ink-3); max-width: 46rem; margin: 0; }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
  .compare tbody tr:nth-child(even) td { background: transparent; }
  .compare th, .compare td { border: 0; padding: 0; }
  .compare tbody th { grid-column: 1 / -1; }
  .compare td.cta { grid-column: 1 / -1; text-align: left; margin-top: .5rem; }
}

/* ------------------------------------------------------------ Fiche casino */
.casino { border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin: 0 0 1.6rem; }
.casino .rang { display: flex; align-items: center; gap: .75rem; margin-bottom: .45rem; }
.casino .rang span { flex-shrink: 0; width: 1.9rem; height: 1.9rem; border-radius: 7px; background: var(--navy);
  color: #fff; font-family: var(--titre); font-weight: 700; font-size: .82rem; display: grid; place-items: center; }
.casino .rang h3 { margin: 0; }
.casino .tag { display: inline-block; font-size: .73rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: .18rem .6rem; border-radius: 999px; background: var(--turq-l);
  color: var(--turq-d); margin: 0 0 .9rem; }
.casino p { max-width: none; }
.casino h4 { color: var(--turq-d); }

/* --------------------------------------------------------------- Étapes */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .75rem; max-width: none; }
.steps li { counter-increment: step; position: relative; padding: .95rem 1.15rem .95rem 3.2rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: .95rem;
  width: 1.55rem; height: 1.55rem; border-radius: 6px; background: var(--turq-l); color: var(--turq-d);
  font-family: var(--titre); font-weight: 700; font-size: .82rem; display: grid; place-items: center; }

/* ------------------------------------------------------------- Encadrés */
.box { border: 1px solid var(--line); border-left: 4px solid var(--turq); background: var(--card);
  border-radius: 9px; padding: .95rem 1.2rem; margin: 0 0 1.5rem; max-width: none; }
.box p { max-width: none; }
.box p:last-child { margin-bottom: 0; }
.box .kicker { margin-bottom: .3rem; }
.box-vert { border-left-color: var(--vert); background: var(--vert-l); }
.box-vert .kicker { color: var(--vert); }
.box-rouge { border-left-color: var(--rouge); background: var(--rouge-l); }
.box-rouge .kicker { color: var(--rouge); }
.box-ambre { border-left-color: var(--ambre); background: var(--ambre-l); }
.box-ambre .kicker { color: var(--ambre); }

/* ------------------------------------------------------- Deux colonnes */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.6rem; max-width: none; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }
.duo > div { border: 1px solid var(--line); border-radius: var(--r); padding: 1.05rem 1.2rem; background: var(--card); }
.duo h3 { font-family: var(--sans); font-size: .93rem; font-weight: 700; margin: 0 0 .65rem; text-transform: uppercase; letter-spacing: .04em; }
.duo .pro { color: var(--vert); }
.duo .con { color: var(--rouge); }
.duo ul { margin: 0; }

/* ------------------------------------------------------------------ FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .55rem; background: var(--card); }
.faq summary { cursor: pointer; padding: .85rem 1.05rem; font-family: var(--titre); font-weight: 700; color: var(--navy); list-style: none; display: flex; gap: .7rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--turq-d); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.05rem .95rem; }
.faq details > div p { max-width: none; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- Appel final */
.final { border: 2px solid var(--turq); border-radius: var(--r); background: var(--turq-l); padding: 1.8rem 1.6rem; margin-top: 2.2rem; }
.final h2 { margin-bottom: .45rem; border: 0; padding: 0; }
.final p { max-width: 44rem; }

/* --------------------------------------------------------------- Équipe */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0; max-width: none; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }
.member { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; background: var(--card); text-align: center; }
.member img { width: 5rem; height: 5rem; border-radius: 50%; margin: 0 auto .65rem; }
.member h3 { font-size: 1rem; margin-bottom: .1rem; }
.member .role { font-size: .71rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--turq-d); margin-bottom: .45rem; }
.member p { font-size: .86rem; margin: 0; }

/* ----------------------------------------------------- Barre CTA mobile */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: .5rem;
  padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom)); background: rgba(244,247,249,.97); border-top: 1px solid var(--line-2); }
.sticky-cta .btn { flex: 1 1 0; min-width: 0; font-size: .82rem; padding: .7rem .5rem; }
.sticky-cta .btn-line { color: var(--navy); border-color: var(--line-2); }
@media (max-width: 780px) { .sticky-cta { display: flex; } body { padding-bottom: 4.2rem; } }

/* ---------------------------------------------------------- Pied de page */
.site-footer { background: var(--navy); color: #9fb3c6; padding: 2.6rem 0; font-size: .89rem; }
.site-footer img { margin-bottom: .9rem; border-radius: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1.8rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: .7rem; border: 0; padding: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: #c3d2df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: #9fb3c6; }
.site-footer strong { color: #fff; }
.legal { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid #23456b; font-size: .8rem; }
.legal p { color: #8299ad; }
.legal strong { color: #e8a5a5; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------ Note d'ensemble */
.note-globale { display: flex; align-items: center; gap: 1.2rem; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); padding: 1.2rem 1.4rem; margin: 0 0 1.6rem; }
.note-globale .score { flex-shrink: 0; width: 5rem; height: 5rem; border-radius: 14px; background: var(--navy);
  color: #fff; display: grid; place-items: center; font-family: var(--titre); font-weight: 700; line-height: 1; }
.note-globale .score b { font-size: 1.7rem; display: block; }
.note-globale .score span { font-size: .72rem; opacity: .85; }
.note-globale p { margin: 0; max-width: none; }
.note-globale .titre { display: block; font-family: var(--titre); font-weight: 700; color: var(--navy);
  font-size: 1.05rem; margin-bottom: .2rem; }

/* ------------------------------------------------ Bloc de methodologie */
.methode { border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  padding: 1.3rem 1.5rem; margin: 0 0 1.6rem; }
.methode h3 { margin-top: 0; }
.methode ol { margin-bottom: 0; }

/* ------------------------------------------------------------ Auteur */
.auteur { display: flex; gap: 1.2rem; align-items: flex-start; border: 1px solid var(--line);
  border-left: 4px solid var(--turq); border-radius: var(--r); background: var(--card);
  padding: 1.3rem 1.5rem; margin: 2rem 0 0; }
.auteur img { width: 5rem; height: 5rem; border-radius: 50%; flex-shrink: 0; }
.auteur .nom { font-family: var(--titre); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 0 0 .1rem; }
.auteur .role { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--turq-d); margin: 0 0 .5rem; }
.auteur p { max-width: none; margin: 0 0 .6rem; font-size: .93rem; }
.auteur p:last-child { margin-bottom: 0; }
@media (max-width: 620px) { .auteur { flex-direction: column; } }

/* --------------------------------------------------------- Fiche casino */
.casino { border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  box-shadow: var(--shadow); padding: 1.4rem 1.5rem; margin: 0 0 1.6rem; }
.casino .rang { display: flex; align-items: center; gap: .75rem; margin-bottom: .45rem; }
.casino .rang span { flex-shrink: 0; width: 1.9rem; height: 1.9rem; border-radius: 7px; background: var(--navy);
  color: #fff; font-family: var(--titre); font-weight: 700; font-size: .82rem; display: grid; place-items: center; }
.casino .rang h3 { margin: 0; }
.casino .tag { display: inline-block; font-size: .73rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: .18rem .6rem; border-radius: 999px; background: var(--turq-l);
  color: var(--turq-d); margin: 0 0 .9rem; }
.casino p { max-width: none; }
.casino h4 { color: var(--turq-d); }

/* ------------------------------------------------------ Classement chiffre */
.rang-badge { display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 8px; background: var(--navy); color: #fff;
  font-family: var(--titre); font-weight: 700; font-size: .88rem; flex-shrink: 0; }
.casino:nth-of-type(1) .rang-badge { background: linear-gradient(135deg, #c6963a, #96702a); }
.casino:nth-of-type(2) .rang-badge { background: linear-gradient(135deg, #9aa2b1, #6f7686); }
.casino:nth-of-type(3) .rang-badge { background: linear-gradient(135deg, #b07a4a, #8558310); }
.casino:nth-of-type(3) .rang-badge { background: linear-gradient(135deg, #b07a4a, #855831); }

/* ------------------------------------------------------------ Liste en colonnes */
.prose ul.cols { columns: 2; column-gap: 1.8rem; max-width: none; }
@media (max-width: 620px) { .prose ul.cols { columns: 1; } }
.prose ul.cols li { break-inside: avoid; }
