/* ==========================================================================
   www.ciqbonneveine.fr : feuille de style
   Direction visuelle : comparateur sur fond charbon, accent ambre, podium des
   trois premiers, fiches alternées. Aucun JavaScript.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("https://www.ciqbonneveine.fr/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 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 {
  --bg:      #0f1115;
  --bg-2:    #161a20;
  --bg-3:    #1e242c;
  --line:    #2a323c;
  --line-2:  #3a4552;
  --txt:     #e8ecf1;
  --txt-2:   #a3aeba;
  --txt-3:   #74808d;
  --amber:   #e0a44a;
  --amber-d: #b97f2a;
  --amber-l: #2a2117;
  --jade:    #3fbf87;
  --jade-l:  #14261f;
  --rose:    #e0685c;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --col: 76rem;
  --read: 45rem;
  --r: 12px;
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: var(--font); font-size: 1.03rem; line-height: 1.74; overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-weight: 800; line-height: 1.16; letter-spacing: -.025em; margin: 0 0 .55em; text-wrap: balance; color: #fff; }
h1 { font-size: clamp(2rem, 1.4rem + 2.9vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .55vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1.15em; }
strong, b { font-weight: 700; color: #fff; }

.wrap { width: min(100% - 2.5rem, var(--col)); margin-inline: auto; }

.kicker { font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin: 0 0 .8rem; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--amber); color: #1a1204; padding: .7rem 1.2rem; border-radius: 8px; font-weight: 700; }
.skip:focus { left: .75rem; top: .75rem; }
.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; }

/* --------------------------------------------------------------- En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,17,21,.93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-weight: 800; letter-spacing: -.02em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--txt-2); text-decoration: none; font-size: .9rem; font-weight: 600; padding: .3rem 0; border-bottom: 2px solid transparent; display: block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }
.age { font-size: .72rem; font-weight: 800; color: var(--rose); border: 1px solid var(--rose); border-radius: 999px; padding: .1rem .5rem; }
@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .age { margin-left: auto; }
}

/* ------------------------------------------------------ Ancres de section */
.anchors { position: sticky; top: 4rem; z-index: 40; background: rgba(22,26,32,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.anchors ul { display: flex; gap: .5rem; list-style: none; margin: 0; padding: .55rem 0; overflow-x: auto; scrollbar-width: none; }
.anchors ul::-webkit-scrollbar { display: none; }
.anchors a { white-space: nowrap; text-decoration: none; font-size: .84rem; font-weight: 600; color: var(--txt-2); background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; }
.anchors a:hover { color: #fff; border-color: var(--line-2); }

/* ----------------------------------------------------------- Fil d'Ariane */
.crumbs { font-size: .8rem; color: var(--txt-3); padding: 1rem 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(--txt-3); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

/* ------------------------------------------------------------- Ouverture */
.hero { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--line); background: radial-gradient(120% 80% at 15% 0%, #1b2029 0, var(--bg) 60%); }
.hero h1 { max-width: 20ch; }
.lede { font-size: 1.1rem; color: var(--txt-2); max-width: 46rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 1.5rem; font-size: .88rem; color: var(--txt-2); }
.hero-meta img { width: 42px; height: 42px; border-radius: 50%; }
.hero-meta a { font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.facts li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem; font-size: .84rem; color: var(--txt-2); }
.facts b { color: var(--amber); }

/* -------------------------------------------------------------- Boutons */
.btn {
  --bg-btn: var(--amber); --fg: #1a1204;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-weight: 800; font-size: .94rem; line-height: 1.3;
  text-decoration: none; cursor: pointer; text-align: center;
  padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: 999px;
  color: var(--fg); background: var(--bg-btn); transition: background .12s linear, transform .1s ease;
}
.btn:hover { background: #f0bd72; color: #1a1204; transform: translateY(-1px); }
.btn-ghost { --bg-btn: transparent; --fg: var(--txt); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-3); color: #fff; }
.btn-sm { padding: .45rem .95rem; font-size: .82rem; }
.btn-wide { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* ------------------------------------------------- Podium des 3 premiers */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: end; margin: 2rem 0 0; }
@media (max-width: 820px) { .podium { grid-template-columns: 1fr; align-items: stretch; } }
.pod { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); padding: 1.25rem; text-align: center; }
.pod.first { border-color: var(--amber-d); background: linear-gradient(180deg, var(--amber-l), var(--bg-2)); padding-top: 1.9rem; }
.pod .medal { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--bg-3); color: var(--txt-2); font-weight: 800; margin-bottom: .6rem; }
.pod.first .medal { background: var(--amber); color: #1a1204; }
.pod h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.pod .note { font-size: 2rem; font-weight: 800; color: var(--amber); line-height: 1; margin: .3rem 0 .1rem; }
.pod .note span { font-size: .9rem; color: var(--txt-3); font-weight: 600; }
.pod p { font-size: .9rem; color: var(--txt-2); margin: .5rem 0 1rem; }

/* -------------------------------------------------- Tableau comparatif */
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 2rem 0; background: var(--bg-2); }
.compare table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 44rem; }
.compare th, .compare td { padding: .75rem .9rem; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.compare thead th { background: var(--bg-3); color: var(--txt-2); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border-top: 0; }
.compare .rk { font-weight: 800; color: var(--amber); width: 2.2rem; }
.compare .nm { font-weight: 700; white-space: nowrap; }
.compare .nm a { color: #fff; text-decoration: none; }
.compare .nm a:hover { color: var(--amber); }
.compare .sc { font-weight: 800; color: var(--jade); }

/* ------------------------------------------------------- Fiches casino */
.list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.item { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.item > .top { display: grid; grid-template-columns: 3rem 1fr auto auto; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .item > .top { grid-template-columns: 3rem 1fr; row-gap: .8rem; } .item > .top .btn { grid-column: 1 / -1; } }
.item .rank { width: 3rem; height: 3rem; border-radius: 12px; background: var(--bg-3); color: var(--amber); font-weight: 800; font-size: 1.15rem; display: grid; place-items: center; }
.item h3 { margin: 0; font-size: 1.3rem; }
.item .sub { margin: 0; font-size: .82rem; color: var(--txt-3); }
.item .score { text-align: right; }
.item .score b { display: block; font-size: 1.6rem; color: var(--jade); line-height: 1; }
.item .score span { font-size: .72rem; color: var(--txt-3); letter-spacing: .08em; text-transform: uppercase; }
.item .cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; padding: 1.3rem; }
@media (max-width: 860px) { .item .cols { grid-template-columns: 1fr; } }
.item .cols p:last-child { margin-bottom: 0; }
.item figure { margin: 0; }
.item figure img { width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.item figcaption { font-size: .8rem; color: var(--txt-3); padding-top: .45rem; }
.tags { list-style: none; padding: 0; margin: 0 0 1.1em; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { background: var(--jade-l); color: #7ad9ac; border-radius: 999px; padding: .22rem .7rem; font-size: .8rem; font-weight: 600; }
.specs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .specs { grid-template-columns: repeat(2, 1fr); } }
.specs div { padding: .75rem .9rem; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; }
.specs dt { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--txt-3); margin: 0 0 .15rem; }
.specs dd { margin: 0; font-size: .9rem; font-weight: 600; }
.item .bottom { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); background: var(--bg-3); }
.item .bottom p { margin: 0; font-size: .84rem; color: var(--txt-3); }
.item .bottom .btn { margin-left: auto; }
@media (max-width: 640px) { .item .bottom .btn { margin-left: 0; width: 100%; } }

/* ------------------------------------------------------------- Article */
.prose { max-width: var(--read); margin: 0 auto; padding: 3rem 0 4rem; }
.prose.wide { max-width: none; }
.prose section { scroll-margin-top: 8rem; }
.prose section + section { margin-top: 3rem; }
.prose h2 { padding-left: 1rem; border-left: 4px solid var(--amber); }
.prose h3 { margin-top: 2rem; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.3em; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: .5em; color: var(--txt-2); }
.prose ul li::before { content: "▸"; position: absolute; left: 0; color: var(--amber); }
.prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose ol li { margin-bottom: .5em; color: var(--txt-2); }
.prose p { color: var(--txt-2); }
.prose strong { color: #fff; }

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

/* ------------------------------------------------------------- Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 1.7rem; background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
caption { text-align: left; font-weight: 800; color: #fff; padding: .85rem 1rem .3rem; }
th, td { padding: .7rem 1rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; color: var(--txt-2); }
thead th { background: var(--bg-3); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--txt-2); border-top: 0; }
tbody th { font-weight: 700; color: #fff; }

/* ------------------------------------------------------------- Encadrés */
.box { border: 1px solid var(--line); border-left: 4px solid var(--amber); background: var(--bg-2); border-radius: 8px; padding: 1.05rem 1.25rem; margin: 0 0 1.6rem; }
.box p:last-child { margin-bottom: 0; }
.box-jade { border-left-color: var(--jade); }
.box-jade .kicker { color: var(--jade); }

/* ------------------------------------------------------------------ FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; background: var(--bg-2); }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; color: #fff; 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(--amber); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.1rem 1rem; color: var(--txt-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Équipe */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 1.5rem 0; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }
.member { border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; background: var(--bg-2); text-align: center; }
.member img { width: 5.2rem; height: 5.2rem; border-radius: 50%; margin: 0 auto .8rem; }
.member h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.member .role { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: .55rem; }
.member p { font-size: .88rem; color: var(--txt-2); margin: 0; }

/* ----------------------------------------------------- Barre CTA mobile */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: .5rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(15,17,21,.97); border-top: 1px solid var(--line); }
.sticky-cta .btn { flex: 1 1 0; min-width: 0; font-size: .85rem; padding: .75rem .5rem; }
@media (max-width: 780px) { .sticky-cta { display: flex; } body { padding-bottom: 4.4rem; } .anchors { top: 4rem; } }

/* ---------------------------------------------------------- Pied de page */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 3rem 0; font-size: .92rem; color: var(--txt-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--txt-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--txt-3); }
.legal strong { color: var(--rose); }

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