:root {
  --emeraude: #1ed760;
  --encre-sombre: #051f0e;
  --toile-fond: #0b0f13;
  --colonne-fond: #11171d;
  --bloc-surface: #161d25;
  --trait-bord: #29323b;
  --blanc-doux: #e9efeb;
  --gris-legende: #92a098;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 88px; }
body {
  margin: 0;
  background: var(--toile-fond);
  color: var(--blanc-doux);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }

.comptoir-haut {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  margin-left: 250px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: rgba(11, 15, 19, .94);
  border-bottom: 1px solid var(--trait-bord);
  backdrop-filter: blur(8px);
}
.interrupteur-carte {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.interrupteur-carte svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.embleme-marque { display: flex; align-items: center; margin-right: auto; }
.embleme-marque img { height: 29px; width: auto; display: block; }
.commandes-droite { display: flex; align-items: center; gap: 8px; }
.loupe-jeu, .bouton-entree, .bouton-rejoindre {
  border: 0;
  cursor: pointer;
  background: transparent;
}
.loupe-jeu {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.loupe-jeu svg { width: 20px; height: 20px; stroke: #d7e0da; fill: none; stroke-width: 2; }
.bouton-entree {
  color: #fff;
  padding: 8px 11px;
  font-weight: 650;
}
.bouton-rejoindre, .cta-emeraude {
  background: var(--emeraude);
  color: var(--encre-sombre);
  font-weight: 750;
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-block;
}
.cta-emeraude:hover, .bouton-rejoindre:hover { filter: brightness(1.07); }

.tiroir-filtre {
  position: absolute;
  left: 250px;
  right: 18px;
  top: 70px;
  z-index: 45;
}
.tiroir-filtre input {
  width: min(420px, 100%);
  margin-left: auto;
  display: block;
  background: #1b242d;
  border: 1px solid var(--trait-bord);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.tiroir-filtre input:focus { border-color: var(--emeraude); }

.colonne-comptoir {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  overflow: auto;
  background: var(--colonne-fond);
  border-right: 1px solid var(--trait-bord);
  z-index: 50;
  padding: 12px 12px 96px;
}
.trio-avantages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.tuile-avantage {
  min-height: 72px;
  border-radius: 12px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 1.15;
}
.tuile-avantage span { font-size: 12px; opacity: .86; }
.tuile-avantage strong { font-size: 15px; }
.tuile-avantage.accueil-pack { background: #1ed760; color: var(--encre-sombre); }
.tuile-avantage.hebdo-retour { background: #123c27; color: #d8ffe8; }
.tuile-avantage.club-rangs { grid-column: 1 / -1; background: linear-gradient(90deg, #10261c, #1a3d2c); color: #fff; min-height: 58px; border: 1px solid #1f5a38; }

.rubrique-colonne {
  margin: 16px 8px 6px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7d8982;
  font-weight: 700;
}
.colonne-comptoir a.entree-colonne {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #d5ddd8;
  font-size: 13.5px;
}
.colonne-comptoir a.entree-colonne:hover,
.colonne-comptoir a.entree-colonne.courant { background: #1c2630; color: #fff; }
.bille-verte {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emeraude);
  flex: 0 0 auto;
}
.voile-mobile { display: none; }

.salle-principale { margin-left: 250px; padding: 22px 24px 120px; }
.salle-principale h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.02em; }
.chapeau-portail { margin: 0 0 6px; color: var(--gris-legende); max-width: 880px; }

.quatuor-rayons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.rayon-tuile {
  position: relative;
  height: 114px;
  border-radius: 12px;
  padding: 13px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: #171717;
}
.rayon-tuile strong { position: relative; z-index: 1; font-size: 20px; font-weight: 700; line-height: 1.1; }
.rayon-tuile img {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 126px;
  height: 126px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}
.rayon-tuile.cotes { background-image: linear-gradient(252deg, #1ed760, rgba(23,23,23,0) 85%); }
.rayon-tuile.crash { background-image: linear-gradient(252deg, #2e7bd7, rgba(23,23,23,0) 89%); }
.rayon-tuile.tables { background-image: linear-gradient(252deg, #df1818, rgba(23,23,23,0) 93%); }
.rayon-tuile.vedettes { background-image: linear-gradient(252deg, #e82375, rgba(23,23,23,0) 93%); }

.duo-offres { display: grid; grid-template-columns: 1.45fr .9fr; gap: 12px; margin-bottom: 22px; }
.panneau-offre {
  background: var(--bloc-surface);
  border: 1px solid var(--trait-bord);
  border-radius: 16px;
  padding: 22px;
}
.panneau-offre h2 { margin: 0 0 8px; font-size: 22px; }
.panneau-offre p { margin: 0 0 16px; color: #c5d0c9; }

.entete-grille {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 12px;
}
.entete-grille h2 { margin: 0; font-size: 20px; }
.entete-grille .total-affiche { color: var(--gris-legende); font-size: 13px; }
.entete-grille a { margin-left: auto; color: var(--emeraude); font-weight: 700; font-size: 14px; }

.grille-bobines {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 150px;
  gap: 16px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 6px;
}
.grille-bobines::-webkit-scrollbar { height: 8px; }
.grille-bobines::-webkit-scrollbar-thumb { background: #2c3842; border-radius: 8px; }
.grille-bobines.filtre-actif {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
}
.carte-bobine { position: relative; width: 150px; margin: 0; }
.carte-bobine img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #1a222a;
}
.carte-bobine figcaption {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.3;
  min-height: 32px;
}
.masque-bobine {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 200px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(6, 16, 12, .48);
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
.carte-bobine:hover .masque-bobine, .carte-bobine:focus-within .masque-bobine { opacity: 1; pointer-events: auto; }

.dossier-betify { max-width: 880px; margin-top: 30px; }
.dossier-betify h2 { font-size: 22.5px; margin: 30px 0 10px; line-height: 1.3; }
.dossier-betify h3 { font-size: 18px; margin: 20px 0 8px; color: var(--emeraude); }
.dossier-betify p { line-height: 1.66; margin: 14px 0; color: #d5ddd8; }
.dossier-betify ul, .dossier-betify ol { padding-left: 0; margin: 12px 0 18px; list-style: none; }
.dossier-betify ul li, .dossier-betify ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #d5ddd8;
}
.dossier-betify ul li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: -2px;
  color: var(--emeraude);
  font-size: 22px;
  line-height: 1;
}
.dossier-betify ol { counter-reset: etape; }
.dossier-betify ol li { counter-increment: etape; }
.dossier-betify ol li::before {
  content: counter(etape) ".";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--emeraude);
  font-weight: 800;
}
.dossier-betify a.cta-emeraude {
  color: var(--encre-sombre) !important;
  background: var(--emeraude);
  font-weight: 750;
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  margin: 8px 0 6px;
}

.cadre-capture {
  margin: 26px 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #11171d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.cadre-capture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.cadre-capture figcaption {
  padding: 11px 18px;
  font-size: 13.5px;
  color: #a4b8ad;
  background: #141c23;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.45;
}

.table-flottante {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0 28px;
  -webkit-overflow-scrolling: touch;
}
.table-flottante table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 7px;
  font-size: 14px;
  min-width: 530px;
}
.table-flottante thead th {
  background: #143521;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
}
.table-flottante thead th:first-child { border-radius: 8px 0 0 8px; }
.table-flottante thead th:last-child { border-radius: 0 8px 8px 0; }
.table-flottante tbody tr { background: #141b22; }
.table-flottante tbody tr:nth-child(even) { background: #18222b; }
.table-flottante tbody tr:hover { background: #1d2b36; }
.table-flottante tbody td {
  padding: 12px 14px;
  color: #d1ded6;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  vertical-align: middle;
}
.table-flottante tbody td:first-child {
  border-radius: 8px 0 0 8px;
  font-weight: 650;
  color: #ffffff;
}
.table-flottante tbody td:last-child { border-radius: 0 8px 8px 0; }
.table-flottante td strong { color: var(--emeraude); }

.question-btn {
  width: 100%;
  text-align: left;
  background: #161d25;
  border: 1px solid var(--trait-bord);
  border-radius: 10px;
  padding: 13px 15px;
  margin-top: 9px;
  cursor: pointer;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.question-btn::after { content: "+"; color: var(--emeraude); font-size: 19px; font-weight: 800; }
.question-btn[aria-expanded="true"]::after { content: "−"; }
.reponse-bloc { padding: 10px 8px 6px; color: #d5ddd8; line-height: 1.62; }

.pied-odwich {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--trait-bord);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: start;
  max-width: 880px;
}
.pied-odwich h2 { margin: 0 0 6px; font-size: 18px; }
.pied-odwich p { margin: 0 0 5px; color: #c9d3cd; font-size: 14px; }
.carte-perpignan { border: 0; width: 100%; height: 215px; border-radius: 12px; background: #1a222a; }
.liens-pied { grid-column: 1 / -1; color: var(--gris-legende); font-size: 13px; padding-top: 6px; }
.liens-pied a { color: var(--emeraude); margin-right: 12px; }

.ruban-bas-fixe {
  position: fixed;
  left: 250px;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(11, 15, 19, .96);
  border-top: 1px solid var(--trait-bord);
  transform: translateY(120%);
  transition: transform .25s ease;
  pointer-events: none;
}
.ruban-bas-fixe.actif {
  transform: translateY(0);
  pointer-events: auto;
}
.ruban-bas-fixe a { min-width: min(280px, 100%); text-align: center; }

@media (max-width: 980px) {
  .interrupteur-carte { display: grid; }
  .bouton-entree { display: none; }
  .comptoir-haut, .salle-principale, .ruban-bas-fixe { margin-left: 0; left: 0; }
  .tiroir-filtre { left: 12px; }
  .colonne-comptoir { transform: translateX(-105%); transition: transform .2s ease; }
  body.tiroir-ouvert .colonne-comptoir { transform: none; }
  body.tiroir-ouvert .voile-mobile { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 45; }
  .quatuor-rayons { grid-template-columns: 1fr 1fr; }
  .rayon-tuile { height: 96px; }
  .rayon-tuile strong { font-size: 16px; }
  .rayon-tuile img { width: 96px; height: 96px; top: 0; right: -4px; }
  .duo-offres, .pied-odwich { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .salle-principale { padding: 16px 14px 120px; }
  .salle-principale h1 { font-size: 26px; }
}
