:root {
  color-scheme: dark;
  --bg: #0d0f1a;
  --surface: #161a2b;
  --surface-2: #1e2338;
  --border: #2a3050;
  --text: #e8eaf6;
  --soft: #9aa1c7;
  --primary: #7c5cff;
  --primary-hover: #6a49f0;
  --ok: #2fd1a6;
  --danger: #ff5d6c;
  --warn: #ffc233;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, .logo { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.container { width: min(1100px, 92%); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--primary); color: #fff; border: 1px solid transparent;
  padding: .65rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 700;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Ajoute du relief */
}
.btn:hover { 
  background: var(--primary-hover); 
  transform: translateY(-1px); /* Petit soulèvement au survol */
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}
.btn:active { transform: translateY(1px); } /* Effet d'enfoncement au clic */
.btn-sm { padding: .35rem .95rem; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--soft); }
.btn-google { background: #fff; color: #1f1f1f; }
.btn-google:hover { background: #ececf4; }
.lien-bouton { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
.lien-bouton:hover { text-decoration: underline; }

/* ---------- Navbar ---------- */
/* ---------- Navbar ---------- */
.navbar { 
  background: var(--surface); 
  border-bottom: 1px solid var(--border); 
  position: relative; 
  z-index: 100; /* La navbar passe devant le reste de la page */
}
.navbar-inner { 
  display: flex; 
  align-items: center; 
  gap: 1.5rem; 
  padding-block: .4rem; /* Réduit pour compenser la hauteur du logo */
  flex-wrap: wrap; 
}
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.nav-links { display: flex; gap: .3rem; flex: 1; }
.nav-links a { padding: .35rem .9rem; border-radius: 999px; font-weight: 500; color: var(--soft); }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-account { 
  display: flex; 
  align-items: center; 
  gap: .6rem; 
  flex-wrap: wrap; 
  position: relative;
  z-index: 20; /* Force les boutons et soldes à passer AU-DESSUS du logo */
}
.nav-account form { display: inline; }
.solde {
  background: rgba(47, 209, 166, .12); color: var(--ok); border: 1px solid rgba(47, 209, 166, .35);
  padding: .25rem .8rem; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.user-name { color: var(--soft); max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Messages flash ---------- */
.flashes { display: grid; gap: .6rem; padding-top: 1.2rem; }
.flash { padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.flash-error { border-color: rgba(255, 93, 108, .5); background: rgba(255, 93, 108, .1); color: #ffb3ba; }
.flash-success { border-color: rgba(47, 209, 166, .5); background: rgba(47, 209, 166, .1); color: #9cf0d8; }
.flash-info { border-color: rgba(124, 92, 255, .5); background: rgba(124, 92, 255, .1); color: #cfc4ff; }

/* ---------- Accueil / en-têtes ---------- */
.hero { padding: 4rem 0 2rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.hero p { margin-top: 1rem; max-width: 48ch; color: var(--soft); font-size: 1.1rem; }
.hero-actions { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.page-tete { padding: 3rem 0 .5rem; }
.page-tete h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.page-tete p { color: var(--soft); }
.section-titre { display: flex; align-items: center; gap: .6rem; font-size: 1.4rem; margin: 2.2rem 0 1rem; }
.compteur { font-family: "DM Sans", sans-serif; font-size: .85rem; background: var(--surface-2); color: var(--soft); padding: .1rem .6rem; border-radius: 999px; }

/* ---------- Cartes de jeux ---------- */
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; padding-bottom: 1rem; }
.carte { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.carte-img { position: relative; aspect-ratio: 5 / 3; background: var(--surface-2); }
.carte-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carte-corps { padding: 1rem 1.1rem 1.2rem; }
.carte-corps h3 { font-size: 1.2rem; font-weight: 700; }
.carte-corps p { color: var(--soft); font-size: .92rem; margin-top: .2rem; }
.carte-dispo:hover { transform: translateY(-4px); border-color: var(--accent); }
.carte-soon { cursor: default; }
.carte-soon .carte-img img { filter: grayscale(.85) brightness(.55); }
.carte-soon .carte-corps h3 { color: var(--soft); }
.badge { position: absolute; top: .7rem; left: .7rem; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.badge-ok { background: var(--ok); color: #04261d; }
.badge-soon { background: rgba(13, 15, 26, .85); color: var(--soft); border: 1px solid var(--border); }

/* ---------- Page de jeu ---------- */
.jeu-page { padding: 2.5rem 0 4rem; }
.retour { color: var(--soft); font-size: .92rem; }
.retour:hover { color: var(--text); }
.jeu-entete h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin-top: .4rem; }
.jeu-entete p { color: var(--soft); }
.jeu-zone { margin-top: 1.6rem; background: var(--surface); border: 1px solid var(--border); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 2rem; min-height: 360px; }
.jeu-placeholder { display: grid; place-items: center; min-height: 280px; color: var(--soft); }

/* ---------- Auth ---------- */
.auth-card { max-width: 440px; margin: 3rem auto 4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.auth-card h1 { font-size: 1.9rem; font-weight: 800; }
.auth-sous { color: var(--soft); margin: .2rem 0 1.4rem; }
.auth-card form { display: grid; gap: .5rem; }
.auth-card label { font-weight: 500; margin-top: .5rem; }
.auth-card label small { color: var(--soft); font-weight: 400; }
.auth-card input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem; font: inherit; }
.auth-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
.auth-card .btn-block { margin-top: 1rem; }
.auth-pied { text-align: center; color: var(--soft); margin-top: 1.4rem; font-size: .95rem; }
.auth-pied a, .auth-card p a { color: var(--primary); font-weight: 700; }
.ou { display: flex; align-items: center; gap: .8rem; color: var(--soft); margin: 1.1rem 0; font-size: .9rem; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.input-otp { text-align: center; font-size: 1.8rem; letter-spacing: .6rem; font-variant-numeric: tabular-nums; }
.form-renvoi { display: flex !important; justify-content: center; align-items: center; gap: .4rem; margin-top: 1.2rem; color: var(--soft); font-size: .95rem; }

/* ---------- Pages simples ---------- */
.page-simple { padding: 4rem 0; max-width: 60ch; }
.page-simple h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 1rem; }
.page-simple p { color: var(--soft); }
.page-simple .btn { margin-top: 1.4rem; }

.footer { padding: 1.5rem 0; color: var(--soft); font-size: .9rem; border-top: 1px solid var(--border); margin-top: 2rem; }

@media (max-width: 640px) {
  .nav-links { order: 3; flex-basis: 100%; }
  .user-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Navbar : dépôt / retrait / profil ---------- */
.btn-disabled, .btn-disabled:hover { background: var(--surface-2); color: var(--soft); opacity: .6; cursor: not-allowed; border-color: var(--border); }
.icone-profil { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.icone-profil:hover { border-color: var(--soft); }
.pastille { position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); border: 2px solid var(--surface); }

/* ---------- Formulaires élargis ---------- */
.auth-card-large { max-width: 720px; }
.auth-card select, .auth-card input[type="file"] { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem; font: inherit; }
.auth-card select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
.auth-card input:disabled { opacity: .55; cursor: not-allowed; }
.auth-card input[type="file"] { padding: .55rem .7rem; }
.form-titre { font-size: 1.1rem; margin: 1.6rem 0 .2rem; color: var(--soft); font-weight: 700; }
.form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; }
.champ { display: flex; flex-direction: column; gap: .35rem; margin-top: .4rem; }
.champ label { margin-top: 0; }
.champ-large { grid-column: 1 / -1; }
.aide-champ { color: var(--soft); font-size: .85rem; margin-top: .2rem; }
.aide-champ.ok { color: var(--ok); }
.mono { font-family: ui-monospace, Consolas, "Courier New", monospace; }
.auth-card .retour { display: inline-block; margin-bottom: .8rem; }

/* ---------- Progression du profil ---------- */
.progression-bloc { margin-bottom: .6rem; }
.statut-profil { display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 700; background: rgba(255, 194, 51, .12); color: var(--warn); border: 1px solid rgba(255, 194, 51, .4); }
.statut-profil.complet { background: rgba(47, 209, 166, .12); color: var(--ok); border-color: rgba(47, 209, 166, .4); }
.progression { height: 6px; background: var(--surface-2); border-radius: 999px; margin-top: .7rem; overflow: hidden; }
.progression-barre { height: 100%; background: var(--primary); border-radius: 999px; }

/* ---------- Choix de dépôt ---------- */
.choix-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin: 1.5rem 0 3rem; }
.choix { display: flex; flex-direction: column; gap: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: transform .15s ease, border-color .15s ease; }
.choix:hover { transform: translateY(-4px); border-color: var(--primary); }
.choix-icone { width: 38px; height: 38px; color: var(--primary); margin-bottom: .4rem; }
.choix h2 { font-size: 1.35rem; }
.choix p { color: var(--soft); }

/* ---------- Récapitulatif virement ---------- */
.recap { display: grid; grid-template-columns: auto 1fr; gap: .8rem 1.4rem; margin: 1.2rem 0 1.6rem; }
.recap dt { color: var(--soft); }
.recap dd { font-weight: 700; word-break: break-all; }
.badge-statut { display: inline-block; padding: .15rem .7rem; border-radius: 999px; font-size: .85rem; background: rgba(255, 194, 51, .12); color: var(--warn); border: 1px solid rgba(255, 194, 51, .4); }

@media (max-width: 640px) {
  .form-grille { grid-template-columns: 1fr; }
  .recap { grid-template-columns: 1fr; gap: .1rem; }
  .recap dd { margin-bottom: .7rem; }
}

/* ---------- Deux soldes (menu) ---------- */
.solde { 
  display: inline-flex; 
  align-items: center; 
  gap: .45rem; 
  background: rgba(47, 209, 166, .15); /* Fond plus opaque */
  border: 1px solid rgba(47, 209, 166, .4);
  padding: .25rem .8rem;
  border-radius: 999px;
}
.solde-etiquette { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.solde-bonus { background: rgba(124, 92, 255, .14); color: #cfc4ff; border-color: rgba(124, 92, 255, .45); }

/* ---------- Historique ---------- */
.soldes-resume { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.2rem 0 1.6rem; }
.solde-carte { display: flex; flex-direction: column; gap: .1rem; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.solde-carte-titre { color: var(--soft); font-size: .9rem; }
.solde-carte strong { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; font-size: 1.8rem; color: var(--ok); }
.solde-carte small { color: var(--soft); }
.solde-carte-bonus strong { color: #cfc4ff; }

.onglets { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.onglet { padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--border); color: var(--soft); font-weight: 500; }
.onglet:hover { color: var(--text); background: var(--surface-2); }
.onglet.actif { color: var(--text); background: var(--surface-2); border-color: var(--primary); }

.hist-liste { list-style: none; display: grid; gap: .6rem; }
.hist-ligne { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.hist-gauche { display: flex; flex-direction: column; min-width: 0; }
.hist-detail { color: var(--soft); font-size: .92rem; }
.hist-meta { color: var(--soft); font-size: .82rem; margin-top: .15rem; }
.hist-montant { font-weight: 700; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hist-montant.pos { color: var(--ok); }
.hist-montant.neg { color: var(--danger); }
.hist-montant.attente { color: var(--warn); }
.hist-montant.refuse { color: var(--soft); text-decoration: line-through; }
.tag { padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; border: 1px solid var(--border); }
.tag-reel { color: var(--ok); border-color: rgba(47, 209, 166, .45); }
.tag-bonus { color: #cfc4ff; border-color: rgba(124, 92, 255, .5); }
.tag-mixte { color: var(--warn); border-color: rgba(255, 194, 51, .45); }
.statut-en_attente { color: var(--warn); }
.statut-valide { color: var(--ok); }
.statut-refuse { color: var(--danger); }
.pagination { display: flex; justify-content: center; gap: .6rem; margin: 1.5rem 0 3rem; }
.hist-vide { color: var(--soft); padding: 2rem 0; text-align: center; }

.recap-soldes { margin: .6rem 0 1.2rem; }
.recap-soldes dd.ok { color: var(--ok); }
.recap-soldes dt small { color: var(--soft); font-weight: 400; }

.carte-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: middle;
}

/* ---------- Suivi de dépôt carte ---------- */
.suivi-bloc { margin-top: 1rem; }
.suivi-etat h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.suivi-etat p { color: var(--soft); }
.decompte-bloc {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  margin: 1.4rem 0; padding: 1rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
}
.decompte-label { font-size: .85rem; color: var(--soft); text-transform: uppercase; letter-spacing: .05em; }
.decompte {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-size: 3rem; font-weight: 800; color: var(--warn);
  font-variant-numeric: tabular-nums; letter-spacing: .05em;
}
.suivi-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.suivi-actions form { display: inline; }
.suivi-actions .btn { flex: 1; min-width: 180px; }
.suivi-etat-succes .recap { margin-top: 1rem; }
.suivi-etat-succes .btn-block { margin-top: 1rem; }
.decompte-admin { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--warn); }
.decompte-admin.urgent { color: var(--danger); }

/* ---------- Suivi de dépôt carte ---------- */
.suivi-bloc { margin-top: 1rem; }

/* La zone de messages + décompte est sur fond blanc */
.suivi-blanc {
  background: #ffffff;
  color: #1a1d2b;
  border: 1px solid #d9dce8;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.suivi-blanc h2,
.suivi-blanc p,
.suivi-blanc .recap dt,
.suivi-blanc .recap dd { color: #1a1d2b; }
.suivi-blanc .recap dt { color: #5a607a; }
.suivi-blanc .aide-champ { color: #5a607a; }

.suivi-avertissement {
  font-size: .88rem;
  color: #5a607a;
  line-height: 1.45;
  margin: 0 0 1rem;
  padding: .7rem .9rem;
  background: #f4f5fa;
  border-left: 3px solid var(--primary);
  border-radius: 8px;
}
.suivi-avertissement strong { color: #1a1d2b; }

.suivi-titre {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #1a1d2b;
  margin: 0 0 1rem;
}

.suivi-blanc .decompte-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #f4f5fa;
  border: 1px solid #d9dce8;
  border-radius: 14px;
}
.suivi-blanc .decompte-label {
  font-size: .85rem;
  color: #5a607a;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.suivi-blanc .decompte {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #b8860b; /* ambre lisible sur blanc */
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}

.suivi-blanc .suivi-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.suivi-blanc .suivi-actions form { display: inline; }
.suivi-blanc .suivi-actions .btn { flex: 1; min-width: 180px; }
.suivi-blanc .btn-ghost {
  background: transparent;
  border-color: #c3c8db;
  color: #1a1d2b;
}
.suivi-blanc .btn-ghost:hover {
  background: #eef0f7;
  border-color: #9aa1c7;
}

.suivi-blanc .flash-success {
  background: rgba(47, 209, 166, .12);
  border-color: rgba(47, 209, 166, .55);
  color: #0d6b55;
}
.suivi-blanc .flash-error {
  background: rgba(255, 93, 108, .1);
  border-color: rgba(255, 93, 108, .5);
  color: #a3182a;
}

.suivi-blanc .recap { margin-top: 1rem; }
.suivi-blanc .btn-block { margin-top: 1rem; }

/* ============================================================
   Page d'accueil — sections enrichies
   ============================================================ */

/* Badges de réassurance sous le hero */
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: #9aa1c7;
}
.hero-badges li { white-space: nowrap; }

/* Sections génériques */
.section {
  margin: 3rem 0;
}
.section-tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.lien-discret {
  font-size: 0.9rem;
  color: #9aa1c7;
  text-decoration: none;
}
.lien-discret:hover { color: #fff; text-decoration: underline; }

/* Bloc « Comment ça marche » */
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.etapes li {
  position: relative;
  background: #1e2338;
  border: 1px solid #2a3050;
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1.25rem;
}
.etape-num {
  position: absolute;
  top: -14px;
  left: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #6c7cff;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.etapes h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.05rem;
}
.etapes p {
  margin: 0;
  color: #9aa1c7;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Bloc « Pourquoi nous » */
.grille-atouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.atout {
  background: #1e2338;
  border: 1px solid #2a3050;
  border-radius: 12px;
  padding: 1.25rem;
}
.atout h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.atout p {
  margin: 0;
  color: #9aa1c7;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Grille « Bientôt disponible » (cartes grisées) */
.grille-cartes-floues { opacity: 0.6; }
.tag-bientot {
  background: #2a3050;
  color: #9aa1c7;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* CTA final */
.cta-final {
  text-align: center;
  background: linear-gradient(135deg, #1e2338, #252b45);
  border: 1px solid #2a3050;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
}
.cta-final h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}
.cta-final p {
  margin: 0 auto 1.25rem;
  max-width: 520px;
  color: #9aa1c7;
}
.cta-final .hero-actions {
  justify-content: center;
}

/* ============================================================
   Navbar responsive — menu hamburger mobile
   ============================================================ */

/* Bouton hamburger : caché en desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--soft); }
.nav-toggle-barre {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-barre:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-barre:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-barre:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Barre compacte mobile : cachée en desktop */
.nav-mobile-essentiel {
  display: none;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.nav-mobile-deconnexion { display: inline; }
.icone-deconnexion {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.icone-deconnexion:hover {
  background: var(--surface-2);
  border-color: var(--danger);
  color: var(--danger);
}

/* Conteneur du menu repliable */
.nav-menu {
  display: contents; /* en desktop, ses enfants se comportent comme avant */
}

/* ============================================================
   Mobile : < 768 px
   ============================================================ */
@media (max-width: 768px) {

  /* Le header devient une colonne : logo + barre compacte, puis menu */
  .navbar-inner {
    flex-wrap: wrap;
    gap: .6rem;
    padding-block: .6rem;
  }

  /* On affiche la barre compacte et le hamburger */
  .nav-mobile-essentiel { display: flex; }
  .nav-toggle { display: flex; }
  .nav-toggle-visiteur { margin-left: auto; }

  /* Le menu principal se déplie en pleine largeur sous le header */
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: .8rem;
    width: 100%;
    flex-basis: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: .8rem 0 .4rem;
    margin-top: .2rem;
  }
  .nav-menu.ouvert { display: flex; }

  /* Liens de navigation en colonne */
  .nav-links {
    flex-direction: column;
    gap: .15rem;
    flex: 0 0 auto;
  }
  .nav-links a {
    padding: .6rem .8rem;
    border-radius: 10px;
    color: var(--text);
  }

  /* Compte en colonne sous les liens */
  .nav-account {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    border-top: 1px solid var(--border);
    padding-top: .8rem;
  }
  .nav-account form { display: block; }
  .nav-account .btn { width: 100%; }
  .nav-account .icone-profil {
    width: 100%;
    height: auto;
    padding: .55rem .8rem;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    gap: .5rem;
    background: var(--surface-2);
  }
  .nav-account .icone-profil::after {
    content: "Mon profil";
    font-weight: 500;
    font-size: .92rem;
  }

  /* On cache les soldes/boutons desktop (ils sont dans la barre compacte) */
  .solde-desktop { display: none; }
  .btn-desktop { display: none; }

  /* La déconnexion texte est dans le menu, mais on la garde visible
     si l'utilisateur préfère le menu (l'icône est déjà en haut). */
  .nav-deconnexion-desktop { display: none; }

  /* ← AJOUT : la cloche du menu desktop est déjà dans la barre mobile,
     on la masque pour éviter le doublon visuel. */
  .cloche-desktop { display: none; }
}
/* ============================================================
   Bandeau « gains récents » — défilement continu
   ============================================================ */

.bandeau-gains {
  background: linear-gradient(90deg, #1e2338, #252b45);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  font-size: .88rem;
  color: var(--soft);
}
.bandeau-gains-piste {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: .5rem 0;
  animation: defile-gains 60s linear infinite;
  will-change: transform;
}
.bandeau-gains:hover .bandeau-gains-piste {
  animation-play-state: paused;
}
.bandeau-gain {
  padding: 0 1rem;
}
.bandeau-gain strong {
  color: var(--text);
}
.bandeau-montant {
  color: var(--ok);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bandeau-sep {
  opacity: .4;
}

@keyframes defile-gains {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Réduction du mouvement : pas d'animation, on laisse la première copie
   défiler manuellement si besoin (overflow-x: auto). */
@media (prefers-reduced-motion: reduce) {
  .bandeau-gains { overflow-x: auto; }
  .bandeau-gains-piste { animation: none; }
}

/* ============================================================
   Logo & Bannière (Page d'accueil) — VERSION CORRIGÉE
   ============================================================ */

/* --- Logo dans la Navbar --- */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 10; /* Passe au-dessus des autres éléments de la navbar */
}

.logo-img {
  height: 80px; /* Taille importante, mais sans débordement exagéré */
  width: auto;
  object-fit: contain;
  display: block; /* Évite un espace fantôme sous l'image */
  /* On supprime le margin négatif qui faisait déborder le logo */
}

/* --- Logo dans le pied de page (Footer) --- */
.logo-img-footer {
  height: 35px; /* Taille réduite spécifiquement pour le footer */
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.footer-logo:hover .logo-img-footer {
  opacity: 1;
}

/* ============================================================
   Bannière pleine largeur (Page d'accueil uniquement)
   ============================================================ */

/* 1. On applique l'image sur le BODY quand on est sur l'accueil */
body.page-accueil {
  background-color: var(--bg); /* Couleur de fond de secours */
  background-image: url('../banniere.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 2. Dégradé qui fond l'image dans le noir du site vers le bas */
body.page-accueil::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(13, 15, 26, 0.3) 0%, rgba(13, 15, 26, 0.8) 60%, rgba(13, 15, 26, 1) 100%);
  z-index: 0; /* Z-index corrigé pour ne pas passer sous le body */
  pointer-events: none;
}

/* 3. Le contenu passe au-dessus du dégradé */
body.page-accueil main {
  position: relative;
  z-index: 1;
}

/* 4. La zone hero prend l'espace nécessaire */
.hero-banniere-full {
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
}

/* 5. Texte lisible */
.hero-banniere-full .hero-content {
  max-width: 650px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* ============================================================
   Ajustements Mobile
   ============================================================ */
@media (max-width: 768px) {
  .logo-img {
    height: 60px;
    margin: -10px 0;
  }
  
  /* On désactive le fixed sur mobile (bug iOS) */
  body.page-accueil {
    background-attachment: scroll;
    background-position: center top;
  }
  
  /* Le dégradé s'adapte à la hauteur du mobile */
  body.page-accueil::before {
    height: 100vh;
    background: linear-gradient(to bottom, rgba(13, 15, 26, 0.5) 0%, rgba(13, 15, 26, 0.9) 50%, rgba(13, 15, 26, 1) 100%);
  }

  .hero-banniere-full {
    padding: 4rem 1.5rem;
    min-height: 60vh;
  }
  
  .hero-banniere-full h1 {
    font-size: 2.5rem; /* Réduit la taille du titre sur mobile */
  }
}