/* ============================================
   REALMGUESSR — styles.css
   ============================================ */

:root {
  --bg-deep:      #16263a;  /* fond profond (bas du dégradé) */
  --bg-card:      #101e30;  /* surfaces / cases */
  --bg-panel:     #142536;  /* surfaces légèrement plus claires */
  --bg-input:     #1a2b3e;  /* champs de saisie */
  --gold:         #c9a84c;
  --gold-light:   #e2c47a;
  --gold-dim:     #7a6030;
  --text-primary: #f0ead8;
  --text-secondary:#aabbcc;
  --text-muted:   #667788;
  --green:        #4caf82;
  --red:          #e05c5c;
  --border:       rgba(201,168,76,0.18);
  --border-strong: rgba(201,168,76,0.3);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
  background: #16263a;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.25) transparent;
}
body {
  overflow-x: hidden;
}
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.22);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.55);
  background-clip: padding-box;
}

body {
  font-family: 'Georgia', serif;
  background:
    radial-gradient(1000px 600px at 50% 0%, rgba(201,168,76,0.05), transparent 50%),
    radial-gradient(900px 550px at 50% 108%, rgba(56,98,146,0.26), transparent 62%),
    linear-gradient(180deg, #213750 0%, #1b2e47 48%, #16263a 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-size: 15px;
}

button, input, select { font-family: 'Trebuchet MS', Arial, sans-serif; }

/* ---- TOPBAR ---- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 1000;
}
.topbar-logo,
.topbar-logo:link,
.topbar-logo:visited,
.topbar-logo:hover,
.topbar-logo:active {
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 0.3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--gold);
  -webkit-tap-highlight-color: transparent;
}
.topbar-logo { transition: filter 0.15s; }
.topbar-logo:hover { filter: brightness(1.12); }
.topbar-logo-icon {
  filter: drop-shadow(0 1px 4px rgba(201,168,76,0.4));
}
.topbar-logo-text {
  background: linear-gradient(180deg, #f0dca8 0%, #e2c47a 45%, #c9a84c 75%, #a8842f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topbar-right {
  font-size: 15px;
  color: var(--text-secondary);
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

/* ---- LAYOUT GLOBAL ---- */
.game-wrapper {
  position: fixed;
  top: 50px;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 200px 1fr 290px;
}

/* ---- COLONNE GAUCHE ---- */
.col-left {
  background: linear-gradient(160deg, #101e30, #0c1826);
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.side-title {
  font-size: 13px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.session-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.session-row:last-child { border-bottom: none; }
.session-row .lbl { color: var(--text-secondary); }
.session-row .val { font-weight: bold; color: var(--gold); }
.session-row .val.bad { color: var(--red); }

.diff-dots { display: flex; gap: 4px; margin-top: 4px; }
.diff-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
}
.diff-dot.on { background: var(--gold); }
.diff-label {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  margin-top: 5px;
}



/* ---- COLONNE CENTRE ---- */
.col-center {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Barre question en haut */
.question-bar {
  flex-shrink: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.q-city {
  font-size: 34px;
  font-weight: bold;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-year {
  font-size: 24px;
  font-weight: bold;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Carte — prend tout l'espace restant */
#map {
  flex: 1;
  min-height: 0;
}

/* Barre feedback en bas — invisible par défaut */
.feedback-bar {
  flex-shrink: 0;
  background: var(--bg-card);
  border-top: 2px solid transparent;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease, padding 0.2s ease;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 14px;
}
.feedback-bar.open {
  max-height: 260px;
  padding: 14px 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.feedback-bar.ok  { border-top-color: var(--green); }
.feedback-bar.ko  { border-top-color: var(--red); }
.fb-title { font-size: 18px; font-weight: bold; margin-bottom: 5px; }
.fb-ctx   { color: var(--text-secondary); font-size: 15px; margin-bottom: 6px; line-height: 1.5; }
.fb-link  { color: var(--gold); font-size: 14px; text-decoration: none; }
.fb-link:hover { text-decoration: underline; }

/* ---- COLONNE DROITE ---- */
.col-right {
  background: linear-gradient(160deg, #101e30, #0c1826);
  border-left: 1px solid var(--border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.player-line {
  text-align: center;
  font-size: 15px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--text-secondary);
}
.player-line strong { color: var(--text-primary); font-size: 18px; }

.lives-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}
.lives-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  margin-bottom: 8px;
}
.lives-hearts { font-size: 26px; letter-spacing: 4px; }

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}
.stat-box .s-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  margin-bottom: 4px;
}
.stat-box .s-val {
  font-size: 28px;
  font-weight: bold;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--gold);
}

.rank-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}
.rank-label-txt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  margin-bottom: 3px;
}
.rank-val {
  font-size: 17px;
  font-weight: bold;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--gold);
}

/* Spacer flexible */
.spacer { flex: 1; }

.hint-text {
  font-size: 14px;
  color: var(--text-muted);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  text-align: center;
}

/* Input réponse */
.answer-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 17px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  outline: none;
}
.answer-input:focus { border-color: var(--gold-dim); }
.answer-input::placeholder { color: var(--text-muted); }
.answer-input:disabled { opacity: 0.5; }

/* Boutons */
.btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: rgba(255,255,255,0.05); }
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b1520;
  font-weight: bold;
  font-size: 17px;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  width: auto;
}

/* Topbar accueil bouton */
.btn-topbar {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  cursor: pointer;
}
.btn-topbar:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

/* ---- ANIMATIONS ---- */
@keyframes flashG {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,130,0.5); }
  100% { box-shadow: 0 0 0 8px rgba(76,175,130,0); }
}
@keyframes flashR {
  0%   { box-shadow: 0 0 0 0 rgba(224,92,92,0.5); }
  100% { box-shadow: 0 0 0 8px rgba(224,92,92,0); }
}
.flash-g { animation: flashG 0.4s ease; }
.flash-r { animation: flashR 0.4s ease; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  html, body { overflow: auto; height: auto; }

  .btn-home-desktop { display: none; }
  .game-wrapper {
    position: static;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
  }
  .col-left { display: none; }
  #map { height: 260px; flex: none; }
  .col-center { overflow: visible; }
  .feedback-bar.open { max-height: 260px; }
  .col-right { border-left: none; border-top: 1px solid var(--border); }
}

/* ============================================
   PAGE D'ACCUEIL
   ============================================ */
.home-body {
  overflow-x: hidden;
}

.home-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px 28px;
}

/* Titre centré */
.home-hero { text-align: center; margin-bottom: 12px; }
.home-title {
  font-size: 52px;
  font-weight: bold;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.home-title-icon {
  filter: drop-shadow(0 2px 8px rgba(201,168,76,0.4));
}
.home-title-text {
  background: linear-gradient(180deg, #f0dca8 0%, #e2c47a 45%, #c9a84c 75%, #a8842f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,0.22));
}
.home-subtitle { font-size: 14px; color: var(--text-secondary); letter-spacing: 0.3px; }

/* HERO ROW : gauche/droite */
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  align-items: stretch;
}

/* Gauche */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ====== FICHE JOUEUR UNIFIÉE ====== */
.player-fiche {
  background: linear-gradient(160deg, #101e30, #0c1826);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
/* En-tête */
.pf-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pf-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-muted);
  flex-shrink: 0;
  cursor: pointer;
  transition: filter 0.15s;
}
.pf-avatar:hover { filter: brightness(1.12); }
.pf-avatar-connected {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dim));
  color: var(--bg-deep);
  font-weight: bold;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}
.pf-identity { flex: 1; min-width: 0; cursor: pointer; }
.pf-identity:hover .pf-name { color: var(--gold-light); }
.pf-name {
  font-size: 17px; font-weight: bold; color: var(--text-primary);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-sub { font-size: 12px; color: var(--text-muted); font-family: 'Trebuchet MS', Arial, sans-serif; }
.pf-gear {
  width: 34px; height: 34px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border);
  border-radius: 50%; color: var(--gold);
  font-size: 16px; cursor: pointer;
  align-items: center; justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.pf-gear:hover { border-color: var(--gold); background: var(--bg-panel); }
/* Scores en 4 cases (2×2) */
.pf-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.pf-score {
  display: flex; align-items: center; gap: 8px;
  background: #0c1826;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}
.pf-score-icon { font-size: 17px; flex-shrink: 0; }
.pf-score-val { color: var(--gold-light); font-size: 20px; font-weight: bold; font-family: 'Trebuchet MS', Arial, sans-serif; line-height: 1; min-width: 22px; }
.pf-score-label { color: var(--text-secondary); font-size: 12px; font-family: 'Trebuchet MS', Arial, sans-serif; }
/* Stats perso */
.pf-stats {
  display: flex; justify-content: space-around;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pf-stat { text-align: center; }
.pf-stat-val { color: var(--text-primary); font-size: 16px; font-weight: bold; font-family: 'Trebuchet MS', Arial, sans-serif; }
.pf-stat-label { color: var(--text-muted); font-size: 10px; font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 2px; }
/* Bouton connexion (invité) */
.pf-login-btn {
  grid-column: 1 / -1;
  width: 100%; padding: 11px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-deep); border: none;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: bold; cursor: pointer;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  transition: filter 0.15s;
}
.pf-login-btn:hover { filter: brightness(1.1); }

.auth-logout-btn {
  margin-top: 6px; padding: 5px 10px; width: 100%;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted);
  font-size: 12px; font-family: 'Trebuchet MS', Arial, sans-serif; cursor: pointer; display: block;
}
.auth-logout-btn:hover { color: var(--red); border-color: var(--red); }

/* Auth panel */
.auth-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
}
.auth-tabs { display: flex; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.auth-tab {
  flex: 1; padding: 6px; background: transparent; border: none;
  color: var(--text-muted); font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.auth-input {
  width: 100%; padding: 9px 12px; box-sizing: border-box;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 13px; font-family: 'Trebuchet MS', Arial, sans-serif; outline: none; margin-bottom: 7px;
}
.auth-input:focus { border-color: var(--gold-dim); }
.auth-btn {
  width: 100%; padding: 10px; background: var(--gold); border: none;
  border-radius: var(--radius-md); color: #0b1520;
  font-size: 14px; font-weight: bold; font-family: 'Trebuchet MS', Arial, sans-serif; cursor: pointer;
}
.auth-btn:hover { background: var(--gold-light); }
.auth-msg { font-size: 12px; font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 8px; text-align: center; min-height: 16px; }

/* LEADERBOARD droite */
.lb-panel {
  background: linear-gradient(160deg, #101e30, #0c1826);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.lb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border-card);
  font-size: 13px; font-weight: bold; font-family: 'Trebuchet MS', Arial, sans-serif; color: var(--text-primary);
  flex-shrink: 0;
}
.lb-tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.lb-tab {
  padding: 3px 8px; background: transparent; border: 1px solid var(--border);
  border-radius: 99px; color: var(--text-muted); font-size: 10.5px;
  font-family: 'Trebuchet MS', Arial, sans-serif; cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.lb-tab.active { background: rgba(201,168,76,0.12); border-color: var(--gold-dim); color: var(--gold); }
.lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-card);
  font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 14px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row.lb-me { background: rgba(201,168,76,0.07); }
.lb-rank  { width: 24px; font-size: 14px; flex-shrink: 0; }
.lb-name  { flex: 1; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-weight: bold; color: var(--gold); font-size: 15px; flex-shrink: 0; }
.lb-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; font-family: 'Trebuchet MS', Arial, sans-serif; }

/* Sections modes */
.home-section { margin-bottom: 12px; }
.home-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-family: 'Trebuchet MS', Arial, sans-serif; margin-bottom: 8px;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
/* Séparateur avec titre centré (— JOUER —) */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 16px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.section-divider .home-section-title {
  margin-bottom: 0;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* Modes principaux */
.main-modes-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.main-mode-card {
  background: linear-gradient(160deg, #101e30, #0c1826);
  border: 1px solid rgba(201,168,76,0.32);
  border-radius: var(--radius-lg); padding: 16px; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.main-mode-card:hover {
  border-color: var(--gold);
  background: linear-gradient(160deg, #16273a, #112032);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 18px rgba(201,168,76,0.2);
}
.classic-card { border-color: rgba(201,168,76,0.3); }
.classic-card:hover { border-color: var(--gold); }
.daily-card { cursor: pointer; }
.daily-card:hover { border-color: var(--gold); }
.main-mode-icon { font-size: 22px; margin-bottom: 7px; }
.main-mode-name { font-size: 16px; font-weight: bold; font-family: 'Trebuchet MS', Arial, sans-serif; color: var(--text-primary); margin-bottom: 2px; }
.main-mode-desc { font-size: 13px; color: var(--text-secondary); font-family: 'Trebuchet MS', Arial, sans-serif; }
.mode-filter-summary { font-size: 12px; color: var(--gold-dim); font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 4px; }
.daily-top { display: flex; justify-content: space-between; align-items: flex-start; }
.daily-score-label { font-size: 10px; color: var(--text-muted); font-family: 'Trebuchet MS', Arial, sans-serif; }
.daily-score-val { font-size: 18px; font-weight: bold; color: var(--gold); font-family: 'Trebuchet MS', Arial, sans-serif; }
.daily-date { font-size: 12px; color: var(--text-muted); font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 8px; }
.daily-status { font-size: 13px; font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 2px; font-weight: bold; }

/* Modes secondaires */
.secondary-modes-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.secondary-mode-card {
  background: linear-gradient(160deg, #101e30, #0c1826); border: 1px solid rgba(201,168,76,0.32);
  border-radius: var(--radius-md); padding: 16px 12px; text-align: center;
  text-decoration: none; color: inherit; display: block;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.secondary-mode-card:not(.disabled):hover {
  border-color: var(--gold);
  background: linear-gradient(160deg, #16273a, #112032);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 18px rgba(201,168,76,0.2);
}
.secondary-mode-card.disabled { opacity: 0.4; pointer-events: none; }
.sec-icon { font-size: 22px; margin-bottom: 4px; }
.sec-name { font-size: 15px; font-weight: bold; font-family: 'Trebuchet MS', Arial, sans-serif; color: var(--text-primary); margin-bottom: 2px; }
.sec-desc { font-size: 13px; color: var(--text-secondary); font-family: 'Trebuchet MS', Arial, sans-serif; }
.soon-badge {
  display: inline-block; margin-top: 4px; font-size: 12px;
  font-family: 'Trebuchet MS', Arial, sans-serif; padding: 2px 7px; border-radius: 99px;
  background: rgba(201,168,76,0.1); color: var(--gold); border: 1px solid rgba(201,168,76,0.2);
}
.ranked-card { cursor: pointer; }
.ranked-auth-hint { font-size: 12px; color: var(--text-muted); font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 3px; }

/* Défi */
.defi-card { cursor: default; }
.defi-join-row { display: flex; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-card); }
.defi-code-input {
  flex: 1; padding: 5px 8px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 12px;
  font-family: 'Trebuchet MS', Arial, sans-serif; outline: none; letter-spacing: 2px; text-align: center; min-width: 0;
}
.defi-code-input:focus { border-color: var(--gold-dim); }
.defi-code-input::placeholder { letter-spacing: 0; color: var(--text-muted); font-size: 11px; }
.defi-join-btn {
  padding: 5px 10px; background: var(--gold); border: none;
  border-radius: var(--radius-sm); color: #0b1520; font-size: 13px; font-weight: bold; cursor: pointer;
}
.defi-join-btn:hover { background: var(--gold-light); }

/* Toggle hardcore */
.hardcore-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-card);
  cursor: pointer; user-select: none;
}
.hardcore-toggle-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-family: 'Trebuchet MS', Arial, sans-serif; color: var(--text-secondary); }
.hardcore-toggle-hint { font-size: 10px; color: var(--text-muted); }
.toggle-switch { width: 32px; height: 18px; border-radius: 9px; background: var(--bg-input); border: 1px solid var(--border); position: relative; transition: background 0.2s; flex-shrink: 0; }
.toggle-switch.active { background: var(--red); border-color: var(--red); }
.toggle-knob { width: 12px; height: 12px; border-radius: 50%; background: var(--text-muted); position: absolute; top: 2px; left: 2px; transition: left 0.2s, background 0.2s; }
.toggle-switch.active .toggle-knob { left: 16px; background: white; }

/* Engrenage */
.filter-gear-btn {
  position: absolute; top: 10px; right: 10px;
  background: transparent; border: none; font-size: 15px; cursor: pointer;
  opacity: 0.4; transition: opacity 0.15s, transform 0.2s; padding: 4px; z-index: 10;
}
.filter-gear-btn:hover { opacity: 1; transform: rotate(60deg); }

/* Filtres popup */
.filters-popup {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; z-index: 3000;
}
.filters-popup-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; width: 310px; max-width: 90vw;
}
.filters-popup-title { font-size: 15px; font-weight: bold; font-family: 'Trebuchet MS', Arial, sans-serif; color: var(--text-primary); margin-bottom: 16px; text-align: center; }
.filter-popup-section { margin-bottom: 14px; }
.filter-popup-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; font-family: 'Trebuchet MS', Arial, sans-serif; }
.filter-checks { display: flex; flex-direction: column; gap: 7px; margin-bottom: 7px; }
.filter-check { display: flex; align-items: center; gap: 9px; font-size: 13px; font-family: 'Trebuchet MS', Arial, sans-serif; color: var(--text-primary); cursor: pointer; }
.filter-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.ck-hint { font-size: 11px; color: var(--text-muted); }
.filter-all-row { border-top: 1px solid var(--border-card); padding-top: 7px; }
.home-btn {
  padding: 9px 18px; background: var(--gold); border: none;
  border-radius: var(--radius-md); color: #0b1520; font-size: 13px; font-weight: bold;
  font-family: 'Trebuchet MS', Arial, sans-serif; cursor: pointer;
}
.home-btn:hover { background: var(--gold-light); }

@media (max-width: 680px) {
  .hero-row { grid-template-columns: 1fr; }
  .home-title { font-size: 32px; }
  .main-modes-row { grid-template-columns: 1fr; }
  .secondary-modes-row { grid-template-columns: 1fr; }
  .home-layout { padding: 14px; }
}

/* ---- BOUTON GOOGLE ---- */
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  margin-top: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  color: #333;
  font-size: 14px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.auth-google-btn:hover {
  background: #f5f5f5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Séparateur ou */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

/* ---- MODALE AUTH ---- */
.auth-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 4000;
}
.auth-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 340px; max-width: 92vw;
  position: relative;
}
.auth-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 18px; cursor: pointer; line-height: 1;
}
.auth-modal-close:hover { color: var(--text-primary); }
.auth-modal-title {
  font-size: 18px; font-weight: bold; color: var(--gold);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  text-align: center; margin-bottom: 18px;
}

/* ---- PANNEAU DAILY/DÉFI DROITE ---- */
.daily-progress-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  margin-bottom: 10px;
}
.daily-q-counter {
  font-size: 48px;
  font-weight: bold;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--gold);
  line-height: 1;
}
.daily-q-counter span:last-child {
  font-size: 22px;
  color: var(--text-muted);
}

/* ---- AUTOCOMPLETE ---- */
.autocomplete-box {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.25) transparent;
}
.autocomplete-box::-webkit-scrollbar { width: 10px; }
.autocomplete-box::-webkit-scrollbar-track { background: transparent; }
.autocomplete-box::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.22);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.autocomplete-box::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.55);
  background-clip: padding-box;
}
.autocomplete-item {
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--text-secondary);
  cursor: pointer !important;
  user-select: none;
  border-bottom: 1px solid var(--border-card);
  transition: background 0.1s, color 0.1s;
  pointer-events: all;
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  cursor: pointer !important;
}
.autocomplete-item.active {
  background: rgba(201,168,76,0.22);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 11px;
}

/* ---- PANNEAU LB DAILY/DÉFI ---- */
.daily-lb-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

/* ---- LEADERBOARD IN-GAME RANKED ---- */
.ranked-lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  font-size: 13px;
  font-weight: bold;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-card);
}
.ranked-lb-tabs { display: flex; gap: 4px; }
.ranked-lb-tab {
  padding: 3px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-size: 11px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.ranked-lb-tab.active {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold-dim);
  color: var(--gold);
}
.ranked-lb-content {
  padding: 4px 0;
}
.rlb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-card);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 13px;
}
.rlb-row:last-child { border-bottom: none; }
.rlb-row.rlb-me { background: rgba(201,168,76,0.07); }
.rlb-rank  { width: 22px; font-size: 14px; flex-shrink: 0; }
.rlb-name  { flex: 1; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rlb-score { font-weight: bold; color: var(--gold); font-size: 14px; flex-shrink: 0; }

#rankedLbPanel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---- TOOLTIPS ---- */
.tooltip-box {
  position: relative;
  cursor: default;
}
.tooltip-box::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a2b3e;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.tooltip-box::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}
.tooltip-box:hover::after,
.tooltip-box:hover::before {
  opacity: 1;
}
/* Variante : tooltip vers le BAS (pour les onglets en haut d'un panneau) */
.tooltip-down::after {
  bottom: auto;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  transform: none;
  white-space: normal;
  width: max-content;
  max-width: 220px;
}
.tooltip-down::before {
  bottom: auto;
  top: calc(100% + 2px);
  border-top-color: transparent;
  border-bottom-color: var(--border);
}

/* ============================================
   MODALE PROFIL
   ============================================ */
.profile-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  width: 540px;
  max-width: 94vw;
  max-height: 88vh;
  overflow: visible;
  position: relative;
}
.profile-close {
  position: absolute; top: 14px; right: 16px;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 20px; cursor: pointer;
}
.profile-close:hover { color: var(--text-primary); }

.profile-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: bold; color: #0b1520; flex-shrink: 0;
}
.profile-pseudo { font-size: 20px; font-weight: bold; color: var(--text-primary); font-family: 'Trebuchet MS', Arial, sans-serif; }
.profile-email  { font-size: 13px; color: var(--text-secondary); font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 2px; }
.profile-since  { font-size: 11px; color: var(--text-muted); font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 2px; }

.profile-section { margin-bottom: 18px; }
.profile-section-title {
  font-size: 12px; font-weight: bold; font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px;
}
.profile-pseudo-edit { display: flex; gap: 8px; }
.profile-input {
  flex: 1; padding: 9px 12px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 14px; font-family: 'Trebuchet MS', Arial, sans-serif; outline: none;
}
.profile-input:focus { border-color: var(--gold-dim); }
.profile-btn-gold {
  padding: 9px 16px; background: var(--gold); border: none;
  border-radius: var(--radius-md); color: #0b1520;
  font-size: 13px; font-weight: bold; font-family: 'Trebuchet MS', Arial, sans-serif; cursor: pointer; white-space: nowrap;
}
.profile-btn-gold:hover { background: var(--gold-light); }
.profile-msg { font-size: 12px; font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 6px; min-height: 16px; }

.profile-scores-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; overflow: visible; }
.profile-score-box {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 6px; text-align: center;
}
.psb-label { font-size: 10px; color: var(--text-muted); font-family: 'Trebuchet MS', Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.psb-val   { font-size: 22px; font-weight: bold; color: var(--gold); font-family: 'Trebuchet MS', Arial, sans-serif; }

.profile-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; overflow: visible; }
.profile-stat-item {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 6px; text-align: center;
}
.psi-val   { font-size: 20px; font-weight: bold; color: var(--text-primary); font-family: 'Trebuchet MS', Arial, sans-serif; }
.psi-label { font-size: 11px; color: var(--text-muted); font-family: 'Trebuchet MS', Arial, sans-serif; margin-top: 4px; }

.profile-setting-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.profile-setting-label { font-size: 14px; color: var(--text-primary); font-family: 'Trebuchet MS', Arial, sans-serif; }
.profile-setting-value { display: flex; gap: 6px; }
.profile-lang-btn {
  padding: 4px 12px; background: transparent; border: 1px solid var(--border);
  border-radius: 99px; color: var(--text-muted); font-size: 12px;
  font-family: 'Trebuchet MS', Arial, sans-serif; cursor: pointer; transition: all 0.15s;
}
.profile-lang-btn.active { background: rgba(201,168,76,0.12); border-color: var(--gold-dim); color: var(--gold); }
.profile-lang-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.profile-btn-logout {
  width: 100%; padding: 10px; background: transparent;
  border: 1px solid var(--red); border-radius: var(--radius-md); color: var(--red);
  font-size: 13px; font-family: 'Trebuchet MS', Arial, sans-serif; cursor: pointer; transition: all 0.15s;
}
.profile-btn-logout:hover { background: var(--red); color: white; }

@media (max-width: 500px) {
  .profile-scores-grid, .profile-stats-row { grid-template-columns: repeat(2,1fr); }
}

/* ---- LEADERBOARD 2 COLONNES ---- */
.lb-columns {
  display: flex;
  gap: 0;
}
.lb-col {
  flex: 1;
  min-width: 0;
}
.lb-col:first-child {
  border-right: 1px solid var(--border-card);
}
.lb-row.lb-top3 .lb-name {
  color: var(--gold-light);
  font-weight: bold;
}
.lb-row.lb-top3 .lb-score {
  color: var(--gold);
  font-size: 16px;
}

/* ---- FIX COEURS MOBILE ---- */
.lives-hearts {
  font-size: 24px;
  line-height: 1.4;
  -webkit-text-stroke: 0px;
  color: inherit;
}
.lives-hearts span {
  display: inline-block;
  font-style: normal;
}

/* ---- ESPACEMENT PANNEAUX COLONNE DROITE ---- */
#rightClassic, #rightDaily, #rightDefi {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================
   BANNIÈRES LATÉRALES (blog gauche + pub droite)
   N'affectent JAMAIS le centre : position fixed,
   posées dans l'espace vide des grands écrans.
   ============================================ */
.side-rail {
  position: fixed;
  top: 0;
  height: 100vh;
  display: none;                 /* cachées par défaut, activées ≥1400px */
  align-items: center;
  z-index: 30;
  pointer-events: none;          /* le conteneur ne capte pas les clics... */
}
.side-rail > * { pointer-events: auto; flex-shrink: 0; }  /* ...mais son contenu oui */

.side-rail-left  { left: 0;  width: 290px; justify-content: flex-start; padding-left: 20px; }
.side-rail-right { right: 0; width: 290px; justify-content: flex-end;   padding-right: 20px; }

/* Panneau blog/patchs */
.side-panel {
  width: 250px;
  background: linear-gradient(160deg, #101e30, #0c1826);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.side-panel-title {
  color: var(--gold);
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.news-item {
  display: block;
  text-decoration: none;
  margin-bottom: 12px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.news-item:last-child { margin-bottom: 0; }
.news-item:hover { background: var(--bg-panel); }
.news-tag {
  display: block;
  color: var(--gold-light);
  font-size: 11px;
  margin-bottom: 2px;
}
.news-text {
  display: block;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.4;
}
.news-item:hover .news-text { color: var(--text-primary); }

/* Encart partenaire : bannière verticale haute */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 250px;
  height: 560px;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  padding: 30px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  transition: transform 0.15s, border-color 0.15s;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--gold-light); }
.feature-card-title {
  color: var(--text-secondary);
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: bold;
}
.feature-card-title-big { color: var(--gold-light); font-size: 32px; margin-top: -6px; }
.feature-card-divider { width: 80px; height: 1px; background: var(--gold); margin: 10px auto; }
.feature-card-text { color: var(--text-primary); font-size: 15px; }
.feature-card-cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: bold;
  font-size: 15px;
  padding: 10px 26px;
  border-radius: var(--radius-sm);
}

/* Affichage uniquement sur grands écrans (≥1300px),
   là où il y a la place SANS toucher au centre de 900px. */
@media (min-width: 1300px) {
  .side-rail { display: flex; }
}

/* Deux encarts empilés à gauche */
.side-stack { display: flex; flex-direction: column; gap: 18px; }

/* Titre cliquable (déplier articles) */
.side-panel-title-link {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.side-panel-chevron { font-size: 11px; transition: transform 0.2s; }
.side-panel-chevron.open { transform: rotate(90deg); }

/* ============================================
   POPUP LECTURE ARTICLE / ARCHIVE
   ============================================ */
.article-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 600px;
  width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.article-date {
  color: var(--gold-light);
  font-size: 13px;
  margin-bottom: 6px;
}
.article-title {
  color: var(--gold);
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 18px;
  line-height: 1.3;
}
.article-body p {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.archive-list { display: flex; flex-direction: column; gap: 4px; }
.archive-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.archive-item:hover { background: var(--bg-panel); }
.archive-date { color: var(--gold-light); font-size: 12px; }
.archive-title { color: var(--text-primary); font-size: 15px; }
.archive-item:hover .archive-title { color: var(--gold-light); }

/* Image dans un article / patch */
.article-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

/* ============================================
   CARROUSEL PARTENAIRE (bannière droite)
   ============================================ */
.promo-carousel {
  position: relative;
  width: 250px;
  height: 560px;
}
.promo-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.promo-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.promo-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gold);
  display: block;
}
/* Flèches (visibles seulement au survol du carrousel) */
.promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(11,21,32,0.7);
  color: var(--gold-light);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s, background 0.15s;
}
.promo-carousel:hover .promo-arrow { opacity: 1; }
.promo-arrow:hover { background: rgba(11,21,32,0.95); }
.promo-arrow-prev { left: 8px; }
.promo-arrow-next { right: 8px; }
/* Points */
.promo-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.promo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(240,234,216,0.4);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.promo-dot.active { background: var(--gold); transform: scale(1.2); }

/* ============================================
   LIENS LÉGAUX (position fixe bas-gauche)
   ============================================ */
#legalLinks a:hover { color: var(--gold-light) !important; }

/* Bouton supprimer le compte (discret, rouge) */
.profile-btn-delete {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(224,92,92,0.4);
  border-radius: var(--radius-sm);
  color: rgba(224,92,92,0.8);
  font-size: 12px;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.profile-btn-delete:hover {
  background: rgba(224,92,92,0.12);
  border-color: var(--red);
  color: var(--red);
}
