/* ============================================
   HABILLAGE ARCADE — jetons, panneau de contrôle, stats et cross-selling
   de Liste_defis.php. La vitrine des bornes elle-même vit dans
   Style_boutique_bornes.css (composant bcab, partagé avec boutique.php) :
   chaque escape game complet est sa propre borne, voir .bcab-showroom.
   Le bouton .btn-arcade / .btn-arcade-sm vit dans Style_global.css.

   - Hall of Fame autonome façon tableau de scores d'arcade
   - écran "Continuer la partie ?" (cross-selling)

   NOTE cascade : ce fichier doit être chargé APRÈS
   Exemple_styles_Liste_defis.css et Defis_Stats.css pour que
   l'habillage arcade l'emporte (voir l'ordre des <link> dans Liste_defis.php).
   ============================================ */

/* --------------------------------------------
   Palette locale de l'habillage arcade
   (fallbacks si les variables globales ne les définissent pas)
   -------------------------------------------- */
:root {
    --cabinet-purple: #7c5cff;
    --cabinet-purple-glow: rgba(124, 92, 255, 0.45);
}

/* ============================================
   3. STATS PERSO / HALL OF FAME / STATS GLOBALES
   Trois colonnes autonomes façon écran d'arcade.
   #hallOfFame, .Stat_joueur (#statJoueur) et .defis_stats
   (#defisStatsGlobal) sont conservés : Defis_Stats.js les remplit.
   ============================================ */
.stats-board {
    max-width: 1120px;
    margin: 50px auto 0;
    padding: 22px 26px;
    background: var(--color-bg-dark);
    border: 3px solid var(--color-yellow-vif);
    border-radius: 20px;
    box-shadow: 0 0 22px rgba(255, 201, 71, 0.18);
}
.stats-board h3 {
    font-family: 'PoliceEcriture', Arial, sans-serif;
    color: var(--color-yellow-vif);
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin: 0 0 18px;
}

.stats-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.stats-panel {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 201, 71, 0.2);
    border-radius: 14px;
    padding: 16px 18px;
    min-width: 0;
}
.stats-panel h4 {
    font-family: 'PoliceEcriture', Arial, sans-serif;
    color: var(--color-yellow-vif);
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}
.stats-panel .no-stats-placeholder p {
    text-align: center;
    color: #94a0b8;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

/* Liste des scores (Hall of Fame) : robuste, que le JS injecte des <li>
   simples ("🥇 Nom … 980 pts") ou une structure .hof-rank/.hof-name/.hof-score */
.stats-panel .hof-content {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.stats-panel .hof-content li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 201, 71, 0.15);
    border-radius: 12px;
    color: #e7ebf3;
}
.stats-panel .hof-rank {
    font-size: 1.2rem;
    width: 26px;
    text-align: center;
    flex: 0 0 auto;
}
.stats-panel .hof-name {
    flex: 1 1 auto;
    font-weight: 600;
}
.stats-panel .hof-score {
    font-variant-numeric: tabular-nums; /* chiffres alignés façon scoreboard */
    letter-spacing: 0.5px;
    color: #cbd5e1;
    white-space: nowrap;
}
.stats-panel .hof-content .no-scores {
    justify-content: center;
    color: #94a0b8;
    font-style: italic;
}

/* Stats perso / stats globales injectées par Defis_Stats.js (via
   Defis_Stats.css) : on adapte juste les couleurs au fond sombre du panneau */
.stats-panel .Stat_joueur h4,
.stats-panel .global-stats h4 {
    color: var(--color-yellow-vif);
    text-align: center;
}
.stats-panel .no-stats {
    text-align: center;
    color: #cbd5e1;
}
.stats-panel .no-stats p {
    color: #cbd5e1;
}
.stats-panel .global-stats-content p {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
    .stats-board-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   4. ÉCRAN "CONTINUER LA PARTIE ?" (cross-selling)
   ============================================ */
.continue-screen {
    max-width: 1120px;
    margin: 40px auto 0;
    padding: 40px 20px;
    background: linear-gradient(145deg, var(--color-bg-dark), #1a1f2e);
    border-radius: 20px;
    border: 3px solid var(--cabinet-purple);
    box-shadow: 0 0 22px var(--cabinet-purple-glow);
}
.continue-screen h2 {
    font-family: 'PoliceEcriture', Arial, sans-serif;
    color: var(--cabinet-purple);
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 0 0 12px;
}
.continue-screen .continue-intro {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.05rem;
    margin: 0 0 34px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.suggestion-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(255, 201, 71, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.suggestion-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-yellow-vif);
    box-shadow: 0 8px 20px rgba(255, 201, 71, 0.15);
}
.suggestion-card .suggestion-icon {
    text-align: center;
    margin-bottom: 15px;
}
.suggestion-card .suggestion-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.suggestion-card h3 {
    color: var(--color-yellow-vif);
    text-align: center;
    margin: 0 0 10px;
    font-size: 1.1rem;
}
.suggestion-card .suggestion-desc {
    color: #cbd5e1;
    text-align: center;
    font-size: 0.95rem;
    margin: 0 0 15px;
    flex: 1 1 auto;
}
.suggestion-card .suggestion-price {
    text-align: center;
    margin: 0 0 18px;
}
.suggestion-card .suggestion-price .price-strike {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 8px;
}
.suggestion-card .suggestion-price .price-value {
    color: var(--color-yellow-vif);
    font-size: 1.5rem;
    font-weight: bold;
}
.suggestion-card .suggestion-price .price-note {
    color: #999;
    font-size: 0.85rem;
    margin-top: 4px;
}
.suggestion-card .btn-arcade-sm,
.suggestion-card .btn-ghost {
    width: 100%;
    justify-content: center;
}

/* Pastille de réduction sur une carte de suggestion */
.suggestion-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

/* ============================================
   5. RÈGLES HÉRITÉES CONSERVÉES
   ============================================ */

/* Avis sous la carte (hors carte-borne) */
.defis_avis {
    max-width: 620px;
    margin: 24px auto 0;
    padding: 20px;
    background: var(--color-bg-dark);
    border: 3px solid var(--color-yellow-vif);
    border-radius: 20px;
}
.defis_avis h4 {
    font-family: 'PoliceEcriture', Arial, sans-serif;
    color: var(--color-yellow-vif);
    text-align: center;
    margin-bottom: 15px;
}

/* Bouton secondaire discret (en savoir plus...) */
.btn-ghost {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.95em;
    letter-spacing: 0.3px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-ghost:hover {
    border-color: var(--color-yellow-vif);
    color: var(--color-yellow-vif);
    background: rgba(255, 201, 71, 0.08);
}
.btn-ghost:disabled,
.btn-ghost[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   6. RESPONSIVE
   ============================================ */
@media (max-width: 700px) {
    .bcab-showroom {
        gap: 28px;
    }
}
