/* ═══════════════════════════════════════════════════════════════
   ROUTE 24 — styles du jeu (en plus de boutique.css, sur .bq.bq-r24)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Navigation du jeu ─── */
.r24-nav {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  padding: 0 0 14px; margin-bottom: 22px; border-bottom: 1px solid var(--bq-ligne);
  font-size: 14px;
}
.r24-nav a { color: var(--bq-doux); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.r24-nav a:hover { color: var(--bq-accent-texte); }
.r24-nav a[aria-current="page"] { color: var(--bq-titre); font-weight: 700; }
.r24-nav-compte { margin-left: auto; }

.r24-page { display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.r24-large { max-width: none; }

/* ─── Carte : numéro et famille ─── */
.r24-entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.r24-numero {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(96px, 26vw, 140px); line-height: .8; color: var(--bq-titre);
}
.r24-numero small { font-size: .26em; color: var(--bq-inactif); font-weight: 700; margin-left: 4px; }
.r24-famille {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--bq-accent-texte);
  color: var(--bq-accent-texte); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
.r24-titre-defi {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 8vw, 48px); line-height: .98; color: var(--bq-titre); margin: 0;
}
.r24-texte { font-size: 17px; line-height: 1.55; margin: 0; white-space: pre-line; }
.r24-masque {
  border: 1px dashed var(--bq-ligne-forte); border-radius: 14px; padding: 28px 20px;
  text-align: center; color: var(--bq-doux); display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.r24-masque svg { color: var(--bq-deco); }

/* ─── Échéance ─── */
.r24-echeance {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px;
  background: var(--bq-surface); border: 1px solid var(--bq-ligne);
}
.r24-echeance-ligne { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--bq-doux); flex-wrap: wrap; }
.r24-echeance-ligne strong { color: var(--bq-accent-texte); }
.r24-barre { height: 8px; border-radius: 4px; background: var(--bq-surface-2); overflow: hidden; }
.r24-barre span { display: block; height: 100%; background: var(--bq-accent); }
.r24-barre.urgent span { background: var(--bq-alerte); }
.r24-barre.or span { background: var(--bq-deco); }

/* ─── Barème ─── */
.r24-bareme { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.r24-bareme div { padding: 12px 10px; border-radius: 12px; border: 1px solid var(--bq-ligne-forte); display: flex; flex-direction: column; gap: 4px; }
.r24-bareme strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 30px; line-height: 1; color: var(--bq-titre); }
.r24-bareme span { font-size: 12px; line-height: 1.3; color: var(--bq-doux); }

/* ─── Choix (rappel, public/privé) ─── */
.r24-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.r24-choix-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.r24-choix label { position: relative; cursor: pointer; }
.r24-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.r24-choix span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px;
  border-radius: 10px; border: 1px solid var(--bq-deco); color: var(--bq-titre); font-weight: 600; font-size: 14px; line-height: 1.25;
}
.r24-choix input:checked + span { background: var(--bq-deco); color: #0b0b0b; }
.r24-choix input:focus-visible + span { outline: 2px solid var(--bq-accent); outline-offset: 2px; }

.r24-fichier input[type="file"] {
  width: 100%; padding: 14px; border: 1px dashed var(--bq-ligne-forte); border-radius: 12px;
  background: var(--bq-surface); color: var(--bq-texte); font-family: 'Barlow', sans-serif; font-size: 15px;
}
.r24-champ-texte textarea {
  width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid var(--bq-ligne-forte); border-radius: 10px;
  background: var(--bq-surface); color: var(--bq-texte); font-family: 'Barlow', sans-serif; font-size: 16px; resize: vertical;
}
.r24-champ-texte textarea:focus { outline: none; border: 2px solid var(--bq-accent); padding: 11px 13px; }

/* ─── Photo réalisée ─── */
.r24-photo { border-radius: 14px; overflow: hidden; background: var(--bq-surface-2); }
.r24-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }

/* ─── Ma saison : statistiques et cartes ─── */
.r24-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.r24-stats div { padding: 14px 12px; border-radius: 14px; background: var(--bq-surface); border: 1px solid var(--bq-ligne); }
.r24-stats strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 40px; line-height: 1; color: var(--bq-titre); }
.r24-stats strong.accent { color: var(--bq-accent-texte); }
.r24-stats span { font-size: 12px; color: var(--bq-doux); }

.r24-badge-carte { padding: 16px; border-radius: 14px; border: 1px solid var(--bq-deco); background: var(--bq-info-fond); display: flex; flex-direction: column; gap: 10px; }
.r24-badge-nom { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; text-transform: uppercase; color: var(--bq-titre); }
.r24-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.r24-badges span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--bq-ligne-forte); color: var(--bq-inactif); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.r24-badges span.acquis { background: var(--bq-deco); border-color: var(--bq-deco); color: #0b0b0b; }

.r24-cartes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.r24-carte {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 14px; border-radius: 14px; background: var(--bq-surface); border: 1px solid var(--bq-ligne);
  color: var(--bq-texte); text-decoration: none;
}
.bq .r24-carte { color: var(--bq-texte); }
a.r24-carte:hover { border-color: var(--bq-accent); }
.r24-carte-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 30px; color: var(--bq-titre); }
.r24-carte-titre { font-weight: 600; font-size: 15px; line-height: 1.3; }
.r24-carte-info { grid-column: 2 / -1; font-size: 13px; color: var(--bq-doux); }
.r24-carte.fermee { opacity: .55; }

.r24-statut { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.r24-statut.fait { background: var(--bq-succes); color: #0b0b0b; }
.r24-statut.en-cours { border: 1px solid var(--bq-accent-texte); color: var(--bq-accent-texte); }
.r24-statut.attention { background: var(--bq-alerte); color: #0b0b0b; }
.r24-statut.termine, .r24-statut.ouverte { background: var(--bq-surface-2); color: var(--bq-doux); }

/* ─── Galerie ─── */
.r24-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.r24-vignette { border-radius: 14px; overflow: hidden; background: var(--bq-surface); border: 1px solid var(--bq-ligne); display: flex; flex-direction: column; }
.r24-vignette img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.r24-vignette-corps { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.r24-vignette-pseudo { font-weight: 700; }
.r24-vignette-defi { font-size: 13px; color: var(--bq-doux); }
.r24-vote { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.r24-vote button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bq-deco); background: transparent;
  color: var(--bq-titre); font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.r24-vote button[aria-pressed="true"] { background: var(--bq-deco); color: #0b0b0b; }
.r24-vote span { font-size: 13px; color: var(--bq-doux); }

/* ─── Réactions ─── */
.r24-reactions { display: flex; flex-wrap: wrap; gap: 6px; }
.r24-reactions form { margin: 0; }
.r24-reactions button {
  min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--bq-ligne-forte); background: var(--bq-surface-2); color: var(--bq-texte);
  font-family: 'Barlow', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
}
.r24-reactions button span { font-size: 17px; line-height: 1; }
.r24-reactions button[aria-pressed="true"] { border-color: var(--bq-accent); background: var(--bq-selection); }
.r24-reactions button:hover { border-color: var(--bq-accent); }
.r24-reactions-texte { font-size: 15px; letter-spacing: .02em; }
.r24-reactions-recues {
  margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bq-ligne); background: var(--bq-surface);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px;
}
.r24-reactions-recues span { color: var(--bq-doux); }
.r24-reactions-recues strong { font-size: 17px; }

/* ─── Classement ─── */
.r24-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.r24-table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bq-doux); padding: 8px 6px; border-bottom: 1px solid var(--bq-ligne-forte); }
.r24-table td { padding: 12px 6px; border-bottom: 1px solid var(--bq-ligne); }
.r24-table td.num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 22px; color: var(--bq-titre); width: 44px; }
.r24-table td.pts { font-weight: 700; text-align: right; }
.r24-table tr.moi td { background: var(--bq-selection); }
.r24-table-boite { overflow-x: auto; }

.r24-recompenses { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.r24-recompense { padding: 16px; border-radius: 14px; border: 1px solid var(--bq-deco); background: var(--bq-info-fond); }
.r24-recompense span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bq-doux); margin-bottom: 6px; }
.r24-recompense strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; color: var(--bq-titre); }

@media (max-width: 420px) {
  .r24-choix { grid-template-columns: minmax(0, 1fr); }
}
