/* ============================================================
   INTUITION — Feuille de styles principale
   ============================================================ */

/* -------------------------------------------------------
   Variables CSS & Reset
   ------------------------------------------------------- */
:root {
    --color-primary:    #6C63FF;
    --color-primary-d:  #574fd6;
    --color-secondary:  #FF6584;
    --color-bg:         #F7F7FB;
    --color-surface:    #FFFFFF;
    --color-text:       #1A1A2E;
    --color-text-light: #6B7280;
    --color-border:     #E5E7EB;

    --color-easy:       #10B981;
    --color-medium:     #F59E0B;
    --color-hard:       #EF4444;

    --color-success:    #10B981;
    --color-error:      #EF4444;
    --color-info:       #3B82F6;
    --color-warning:    #F59E0B;

    --radius:    8px;
    --radius-lg: 16px;
    --shadow:    0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);

    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    /* Sticky footer */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -------------------------------------------------------
   Layout
   ------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* -------------------------------------------------------
   Header
   ------------------------------------------------------- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo__img  { width: 32px; height: 32px; display: block; }
.site-logo__text { line-height: 1; }
.nav-icon { font-size: 0.9rem; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    text-decoration: none;
}

.site-nav a:hover { color: var(--color-primary); }

/* Lien Premium dans la nav */
.nav-premium-link {
    background: var(--color-premium-grd, linear-gradient(135deg, #92400E, #F59E0B));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.nav-premium-link:hover { opacity: 0.8; text-decoration: none; }

/* -------------------------------------------------------
   Buttons
   ------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    line-height: 1.4;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-primary-d);
    text-decoration: none;
    color: #fff;
}

.btn--secondary {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn--secondary:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

.btn--danger {
    background: var(--color-error);
    color: #fff;
}

.btn--large { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn--full  { width: 100%; text-align: center; }

/* -------------------------------------------------------
   Flash messages
   ------------------------------------------------------- */
.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-weight: 500;
}
.flash--success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--color-success); }
.flash--error   { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--color-error); }
.flash--info    { background: #DBEAFE; color: #1E40AF; border-left: 4px solid var(--color-info); }
.flash--warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--color-warning); }

/* -------------------------------------------------------
   Hero
   ------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B85FF 100%);
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
    /* Déborde du container du header pour pleine largeur */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Hero logo */
.hero__logo-wrap {
    margin-bottom: 1.5rem;
}
.hero__logo {
    width: 80px; height: 80px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
}
.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero .btn--primary {
    background: #fff;
    color: var(--color-primary);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: var(--shadow-lg);
}
.hero .btn--primary:hover  { background: var(--color-bg); }
.hero .btn--secondary {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.5);
    backdrop-filter: blur(4px);
}
.hero .btn--secondary:hover { background: rgba(255,255,255,.25); }

/* Step icons (remplace les numéros) */
.step__icon {
    display: block;
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.how-it-works {
    padding: 4rem 0;
    background: var(--color-surface);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.how-it-works h2,
.games-preview h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.how-it-works .steps {
    max-width: var(--max-width);
    margin: 0 auto;
}

.games-preview { padding: 4rem 0; }

.games-preview .game-grid {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* -------------------------------------------------------
   How it works
   ------------------------------------------------------- */
.how-it-works {
    padding: 4rem 0;
    background: var(--color-surface);
}

.how-it-works h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.step p   { color: var(--color-text-light); font-size: 0.9rem; }

/* -------------------------------------------------------
   Game grid
   ------------------------------------------------------- */
.games-preview {
    padding: 4rem 0;
}

.games-preview h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--shadow);
}

.game-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    text-decoration: none;
}

.game-card__difficulty {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    width: fit-content;
}
.game-card__difficulty--easy   { background: var(--color-easy); }
.game-card__difficulty--medium { background: var(--color-medium); }
.game-card__difficulty--hard   { background: var(--color-hard); }

.game-card h3 { font-size: 1.1rem; }
.game-card p  { color: var(--color-text-light); font-size: 0.9rem; flex: 1; }

.game-card__points {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
}

/* -------------------------------------------------------
   Forms
   ------------------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-main);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}

.form-error { color: var(--color-error); font-size: 0.85rem; margin-top: 0.3rem; }

/* -------------------------------------------------------
   Cards génériques
   ------------------------------------------------------- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* -------------------------------------------------------
   Footer
   ------------------------------------------------------- */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* -------------------------------------------------------
   Utilitaires
   ------------------------------------------------------- */
.empty   { color: var(--color-text-light); font-style: italic; }
.text-center { text-align: center; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-2  { margin-bottom: 1rem; }

/* -------------------------------------------------------
   Navigation — score affiché dans le menu
   ------------------------------------------------------- */
.nav-score {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-left: 0.3rem;
    vertical-align: middle;
}

/* -------------------------------------------------------
   Pages Auth (login / register)
   ------------------------------------------------------- */
.site-main { padding: 2.5rem 0; flex: 1; }

.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-title {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.auth-sub {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.required { color: var(--color-error); }

/* -------------------------------------------------------
   Profil utilisateur
   ------------------------------------------------------- */
.profile-wrap { max-width: 860px; margin: 0 auto; }

.profile-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.profile-hero__info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-pseudo { font-size: 1.4rem; margin-bottom: 0.1rem; }
.profile-since  { color: var(--color-text-light); font-size: 0.85rem; }

.profile-hero__stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    min-width: 70px;
}

.stat-box__value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-box__label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Grade dans le profil */
.profile-grade {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    margin-top: 0.25rem;
}

.profile-grade__name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.profile-grade__rate {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.profile-grade__desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
    flex-basis: 100%;
}

.grade--maestro  .profile-grade__name { color: #F59E0B; }
.grade--expert   .profile-grade__name { color: #8B5CF6; }
.grade--initie   .profile-grade__name { color: #3B82F6; }
.grade--apprenti .profile-grade__name { color: #10B981; }
.grade--novice   .profile-grade__name { color: #6B7280; }

/* Badge grade dans le classement */
.grade-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15em 0.55em;
    border-radius: 20px;
    background: rgba(0,0,0,0.06);
    white-space: nowrap;
}
.grade-badge--maestro  { color: #F59E0B; background: rgba(245,158,11,0.1); }
.grade-badge--expert   { color: #8B5CF6; background: rgba(139,92,246,0.1); }
.grade-badge--initie   { color: #3B82F6; background: rgba(59,130,246,0.1); }
.grade-badge--apprenti { color: #10B981; background: rgba(16,185,129,0.1); }
.grade-badge--novice   { color: #6B7280; background: rgba(107,114,128,0.1); }

/* Tableau historique */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.history-table th,
.history-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.history-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}

.history-table tr:last-child td { border-bottom: none; }

.points-cell { font-weight: 700; color: var(--color-primary); }
.date-cell   { white-space: nowrap; font-size: 0.82rem; color: var(--color-text-light); }

/* Formulaire changement de mot de passe */
.password-form { max-width: 480px; }

/* En-tête historique : titre + filtres sur la même ligne */
.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.history-header h2 { margin: 0; }
.history-header .filter-bar { margin-bottom: 0; }

/* Barre de statistiques filtrées */
.history-stats {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}
.hstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    flex: 1;
}
.hstat__value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
}
.hstat__label {
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.1rem;
    white-space: nowrap;
}
.hstat--win    .hstat__value { color: var(--color-easy); }
.hstat--partial .hstat__value { color: var(--color-medium); }
.hstat--fail   .hstat__value { color: var(--color-hard); }
.hstat--rate   .hstat__value { color: var(--color-primary); }
.hstat-sep {
    width: 1px;
    height: 2rem;
    background: var(--color-border);
    flex-shrink: 0;
}

/* Badges difficulté (réutilisés dans le tableau) */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    color: #fff;
}
.badge--easy   { background: var(--color-easy); }
.badge--medium { background: var(--color-medium); }
.badge--hard   { background: var(--color-hard); }

/* Résultats */
.result { font-weight: 600; }
.result--success { color: var(--color-success); }
.result--partial { color: var(--color-warning); }
.result--fail    { color: var(--color-error); }

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
/* -------------------------------------------------------
   Sélecteur de langue
   ------------------------------------------------------- */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    border-left: 1px solid var(--color-border);
    padding-left: 0.75rem;
}
.lang-btn {
    font-size: 1.15rem;
    text-decoration: none;
    opacity: 0.45;
    transition: opacity 0.15s, transform 0.15s;
    line-height: 1;
}
.lang-btn:hover   { opacity: 0.8; transform: scale(1.1); }
.lang-btn--active { opacity: 1; transform: scale(1.15); }

/* -------------------------------------------------------
   Menu hamburger (mobile)
   ------------------------------------------------------- */
.nav-toggle  { display: none; }  /* checkbox cachée */
.nav-burger  { display: none; cursor: pointer; background: none; border: none; padding: 0.25rem; }
.nav-burger__bar {
    display: block;
    width: 22px; height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    margin: 5px 0;
}

/* Tableaux responsives — conteneur scrollable horizontalement */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
}
.table-wrap table { min-width: 480px; }

@media (max-width: 640px) {
    /* Nav hamburger */
    .nav-burger { display: flex; flex-direction: column; justify-content: center; z-index: 110; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 0;
        z-index: 100;
    }
    .site-nav a,
    .site-nav .btn {
        display: block;
        width: 100%;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        font-size: 1rem;
        border: none;
        background: none;
        text-align: left;
    }
    .site-nav .btn--primary  { background: var(--color-primary); color: #fff; }
    .site-nav .btn--secondary { background: var(--color-border); color: var(--color-text); }

    /* Ouverture du menu via checkbox */
    .nav-toggle:checked ~ * .site-nav,
    .site-header:has(.nav-toggle:checked) .site-nav { display: flex; }

    /* Croix quand ouvert */
    .nav-toggle:checked + .nav-burger .nav-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-burger .nav-burger__bar:nth-child(2) { opacity: 0; }
    .nav-toggle:checked + .nav-burger .nav-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .site-header .container { position: relative; }
    .hero { padding: 3rem 0; }
    .steps { grid-template-columns: 1fr 1fr; }
    .profile-hero__stats { gap: 0.75rem; }
    .history-header { flex-direction: column; align-items: flex-start; }
    .history-stats { gap: 0.4rem; }
    .hstat { min-width: 55px; }
    .hstat__value { font-size: 1rem; }
    .result-actions { flex-direction: column; align-items: stretch; }
    .result-actions .btn { text-align: center; }
}

@media (max-width: 400px) {
    .steps { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------
   Pages générales (header de page)
   ------------------------------------------------------- */
.page-header {
    margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.page-header p   { color: var(--color-text-light); }

/* -------------------------------------------------------
   Graphique d'évolution (profil)
   ------------------------------------------------------- */
.chart-header { margin-bottom: 0.25rem; }
.chart-header h2 { margin-bottom: 0.15rem; }
.chart-subtitle { color: var(--color-text-light); font-size: 0.85rem; }

.chart-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}
.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.chart-legend-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.chart-note {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
    font-style: italic;
}

.chart-wrap {
    position: relative;
    margin-top: 0.5rem;
    height: 260px;
}
.chart-wrap canvas { max-height: 260px; }

/* -------------------------------------------------------
   Onglets de difficulté (classement)
   ------------------------------------------------------- */
.diff-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0;
}
.diff-tab {
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius) var(--radius) 0 0;
    color: var(--color-text-light);
    text-decoration: none;
    border: 2px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.diff-tab:hover { color: var(--color-primary); text-decoration: none; }
.diff-tab--active {
    background: var(--color-surface);
    border-color: var(--color-border);
    border-bottom-color: var(--color-surface);
    color: var(--color-text);
}
.diff-tab--easy.diff-tab--active   { color: var(--color-easy); border-top-color: var(--color-easy); }
.diff-tab--medium.diff-tab--active { color: var(--color-medium); border-top-color: var(--color-medium); }
.diff-tab--hard.diff-tab--active   { color: var(--color-hard); border-top-color: var(--color-hard); }

/* -------------------------------------------------------
   Jeu : boutons nombre (prediction-nombre)
   ------------------------------------------------------- */
.number-choices {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.number-btn {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.number-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1);
}
.number-btn--selected {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.12);
}
.number-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.number-result { text-align: center; margin: 1rem 0; }
.number-reveal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 auto 0.5rem;
}
.number-reveal-label  { color: var(--color-text-light); font-size: 0.85rem; }
.number-choice-label  { margin-top: 0.3rem; font-size: 0.9rem; }

/* -------------------------------------------------------
   Jeu : pile ou face
   ------------------------------------------------------- */
.coin-choices {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.coin-btn {
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 3px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.coin-btn:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.coin-btn--selected  { border-color: var(--color-primary); transform: scale(1.1); }
.coin-btn:disabled   { opacity: 0.5; cursor: not-allowed; }
.coin-face           { font-size: 1rem; font-weight: 800; letter-spacing: 0.05em; color: var(--color-text); }

.coin-flip-anim {
    font-size: 3.5rem;
    display: block;
    margin: 0 auto 1rem;
    animation: coinSpin 0.6s linear infinite;
    width: fit-content;
}
@keyframes coinSpin {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.coin-result { text-align: center; margin: 1rem 0; }
.coin-reveal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px; height: 100px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 auto 0.5rem;
    box-shadow: var(--shadow-lg);
}
.coin-reveal--pile { background: #F59E0B; color: #fff; }
.coin-reveal--face { background: #6C63FF; color: #fff; }

/* Colonne ratio classement */
.games-ratio {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ratio-success { font-weight: 700; color: var(--color-success); }
.ratio-sep     { color: var(--color-text-light); margin: 0 0.2rem; }
.ratio-total   { color: var(--color-text-light); }

/* -------------------------------------------------------
   Catalogue des jeux — filtres
   ------------------------------------------------------- */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.15s;
}
.filter-btn:hover, .filter-btn--active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}
.filter-btn--easy.filter-btn--active   { border-color: var(--color-easy);   color: var(--color-easy); }
.filter-btn--medium.filter-btn--active { border-color: var(--color-medium); color: var(--color-medium); }
.filter-btn--hard.filter-btn--active   { border-color: var(--color-hard);   color: var(--color-hard); }

.game-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}
.game-card__plays { font-size: 0.8rem; color: var(--color-text-light); }

/* -------------------------------------------------------
   Interface de jeu
   ------------------------------------------------------- */
.game-wrap      { max-width: 680px; margin: 0 auto; }

.game-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.game-header__points { margin-left: auto; color: var(--color-primary); font-weight: 700; }

.back-link { color: var(--color-text-light); font-size: 0.9rem; text-decoration: none; }
.back-link:hover { color: var(--color-primary); }

.game-title        { font-size: 1.8rem; margin-bottom: 0.5rem; }
.game-instructions { color: var(--color-text-light); margin-bottom: 2rem; line-height: 1.7; }

.game-arena--tall { min-height: 420px; }

.countdown-ring--sm {
    width: 72px;
    height: 72px;
    margin: 0.75rem auto 1rem;
}
.countdown-ring--sm .countdown-ring__text { font-size: 1.4rem; }

.game-arena {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-state { width: 100%; }
.game-state--hidden { display: none; }
.game-prompt { font-size: 1.1rem; margin-bottom: 1.5rem; line-height: 1.6; }

/* Anneau de compte à rebours SVG */
.countdown-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}
.countdown-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }

.countdown-ring__bg  { fill: none; stroke: var(--color-border); stroke-width: 8; }
.countdown-ring__bar {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}
.countdown-ring__text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

/* Boutons couleur */
.color-choices {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.color-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid transparent;
    background: var(--c);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.color-btn:hover:not(:disabled) {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.color-btn--selected {
    border-color: #fff;
    outline: 3px solid var(--c);
    transform: scale(1.15);
}
.color-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.color-labels {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.color-labels span { width: 72px; text-align: center; }

/* Spinner */
.spinner {
    width: 48px; height: 48px;
    border: 5px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------
   Page résultat
   ------------------------------------------------------- */
.result-card {
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid;
    margin-bottom: 1.5rem;
}
.result-card--success { background: #F0FDF4; border-color: var(--color-success); }
.result-card--fail    { background: #FFF5F5; border-color: var(--color-error); }

.result-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.result-card--success .result-icon { color: var(--color-success); }
.result-card--fail    .result-icon { color: var(--color-error); }

.result-title { font-size: 1.8rem; margin-bottom: 1.5rem; }

.result-colors {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.result-color-block { text-align: center; }
.result-color-block span  { display: block; font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 0.3rem; }
.result-color-block strong { display: block; font-size: 1rem; }

.color-swatch {
    width: 64px; height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.color-swatch--choice { opacity: 0.5; }

.result-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}
.points-gained { font-size: 2rem; font-weight: 800; color: var(--color-success); }
.points-zero   { font-size: 2rem; font-weight: 800; color: var(--color-text-light); }
.score-total   { font-size: 0.9rem; color: var(--color-text-light); }

.result-scoring-info {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.result-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* -------------------------------------------------------
   Commentaires
   ------------------------------------------------------- */
.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.comments-header h2 { margin: 0; font-size: 1.3rem; }
.comments-section h3 { font-size: 1.05rem; }
.comment-type-filters { margin-bottom: 0; }

.player-avatar--sm {
    width: 26px; height: 26px;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-group--inline { flex: 0 0 auto; }

.comment-list { display: flex; flex-direction: column; gap: 1rem; }

.comment {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
}
.comment__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.comment__type {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    color: #fff;
}
.comment__type--review { background: var(--color-primary); }
.comment__type--advice { background: var(--color-secondary); }
.comment__date  { color: var(--color-text-light); font-size: 0.8rem; margin-left: auto; }
.comment__content { font-size: 0.92rem; line-height: 1.6; }

/* -------------------------------------------------------
   Classement
   ------------------------------------------------------- */
.my-rank-banner {
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: var(--radius);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}
.my-rank-banner a { margin-left: auto; font-size: 0.85rem; }

.leaderboard-wrap { overflow-x: auto; }

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.leaderboard-table th,
.leaderboard-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.leaderboard-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}
.leaderboard-table tr:last-child td { border-bottom: none; }
.leaderboard-row--me { background: #EEF2FF; font-weight: 600; }

.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8rem;
    color: #fff;
}
.medal--gold   { background: #F59E0B; }
.medal--silver { background: #9CA3AF; }
.medal--bronze { background: #B45309; }

.player-cell { display: flex; align-items: center; gap: 0.6rem; }

.player-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.you-badge {
    font-size: 0.7rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.score-cell { font-weight: 700; color: var(--color-primary); }

.rate-bar {
    display: inline-block;
    width: 60px;
    height: 6px;
    background: var(--color-border);
    border-radius: 999px;
    vertical-align: middle;
    margin-right: 0.4rem;
    overflow: hidden;
}
.rate-bar__fill {
    display: block;
    height: 100%;
    background: var(--color-success);
    border-radius: 999px;
}

/* Légende et Score d'intuition dans le classement */
.lb-legend {
    margin: 0.75rem 0 1rem;
    padding: 0.6rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    color: var(--color-text-light);
}

.lb-col-intuition {
    white-space: nowrap;
}

.intuition-score {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-primary);
}

.intuition-partial {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-left: 0.25rem;
}

/* -------------------------------------------------------
   Jeu : prédiction de carte
   ------------------------------------------------------- */
.suit-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 340px;
    margin: 0.5rem auto 0;
}
.suit-btn {
    padding: 1rem 0.75rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow);
}
.suit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.suit-btn--selected  { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.suit-btn:disabled   { opacity: 0.5; cursor: not-allowed; }

.suit-btn--coeur   { border-top: 4px solid #EF4444; }
.suit-btn--carreau { border-top: 4px solid #F59E0B; }
.suit-btn--trefle  { border-top: 4px solid #1F2937; }
.suit-btn--pique   { border-top: 4px solid #6C63FF; }
.suit-btn--coeur.suit-btn--selected   { border-color: #EF4444; }
.suit-btn--carreau.suit-btn--selected { border-color: #F59E0B; }
.suit-btn--trefle.suit-btn--selected  { border-color: #1F2937; }
.suit-btn--pique.suit-btn--selected   { border-color: #6C63FF; }

.suit-symbol { font-size: 2rem; line-height: 1; }
.suit-name   { font-size: 0.85rem; font-weight: 600; color: var(--color-text-light); }
.suit-btn--coeur   .suit-symbol, .suit-btn--carreau .suit-symbol { color: #EF4444; }
.suit-btn--trefle  .suit-symbol, .suit-btn--pique   .suit-symbol { color: #1F2937; }

.card-flip-anim {
    font-size: 3.5rem;
    display: block;
    margin: 0 auto 1rem;
    animation: cardFlip 0.6s linear infinite;
    width: fit-content;
}
@keyframes cardFlip {
    0%   { transform: rotateY(0deg) scale(1); }
    50%  { transform: rotateY(90deg) scale(0.8); }
    100% { transform: rotateY(180deg) scale(1); }
}

.suit-result { text-align: center; margin: 1rem 0; }
.suit-reveal {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px; height: 110px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    margin: 0 auto 0.5rem;
    gap: 0.25rem;
}
.suit-reveal--coeur, .suit-reveal--carreau { border-color: #EF4444; }
.suit-reveal--trefle  { border-color: #1F2937; }
.suit-reveal--pique   { border-color: #6C63FF; }
.suit-reveal__symbol { font-size: 2.2rem; }
.suit-reveal__label  { font-size: 0.75rem; font-weight: 700; color: var(--color-text-light); }

/* -------------------------------------------------------
   Jeu : lecture d'émotion
   ------------------------------------------------------- */
/* Jeu lecture-émotion — mode intuitif pur (sans texte indice) */
.intuition-focus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.intuition-aura {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,.35) 0%, rgba(124,58,237,.08) 60%, transparent 80%);
    animation: aura-pulse 2.8s ease-in-out infinite;
    position: relative;
}
.intuition-aura::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.22;
    animation: aura-pulse 2.8s ease-in-out infinite reverse;
}
@keyframes aura-pulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.18); opacity: 0.7; }
}
.intuition-hint {
    font-size: 1rem;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.5;
}
.emotion-prompt { font-size: 0.95rem; color: var(--color-text-light); margin-bottom: 0.25rem; }

.emotion-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 360px;
    margin: 0 auto;
}
.emotion-btn {
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow);
}
.emotion-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.emotion-btn--selected { border-color: var(--color-primary); transform: translateY(-2px); }
.emotion-btn:disabled  { opacity: 0.5; cursor: not-allowed; }
.emotion-emoji { font-size: 1.75rem; line-height: 1; }
.emotion-label { font-size: 0.85rem; font-weight: 700; }

.emotion-result { text-align: center; margin: 1rem 0; }
.emotion-reveal {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 3px solid;
    background: var(--color-surface);
    justify-content: center;
    gap: 0.2rem;
    margin: 0 auto 0.5rem;
    box-shadow: var(--shadow-lg);
}
.emotion-reveal__emoji { font-size: 2rem; line-height: 1; }
.emotion-reveal__label { font-size: 0.7rem; font-weight: 700; color: var(--color-text-light); }

/* -------------------------------------------------------
   Jeu : séquence cachée
   ------------------------------------------------------- */
.sequence-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.sequence-orb {
    width: 52px; height: 52px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    flex-shrink: 0;
}
.sequence-orb--hidden {
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-light);
    border: 2px dashed var(--color-text-light);
    box-shadow: none;
}
.sequence-hint {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.sequence-choices {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.seq-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: var(--c);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.seq-btn:hover:not(:disabled) { transform: scale(1.12); box-shadow: 0 5px 16px rgba(0,0,0,.25); }
.seq-btn--selected { border-color: #fff; outline: 3px solid var(--c); transform: scale(1.14); }
.seq-btn:disabled  { opacity: 0.5; cursor: not-allowed; }

.seq-labels {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    color: var(--color-text-light);
    flex-wrap: wrap;
}
.seq-labels span { width: 52px; text-align: center; }

/* -------------------------------------------------------
   Jeu : prédiction de dé
   ------------------------------------------------------- */
.dice-choices {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.dice-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s;
}
.dice-btn:hover:not(:disabled) .dice-face { transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.dice-btn--selected .dice-face { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary); }
.dice-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Face de dé */
.dice-face {
    width: 62px; height: 62px;
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 8px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transition: transform 0.15s, box-shadow 0.15s;
}
.dice-face--lg {
    width: 80px; height: 80px;
    border-radius: 16px;
    padding: 10px;
    gap: 5px;
}
.dice-face--wrong { border-color: var(--color-error); opacity: 0.7; }

/* Points du dé */
.dot {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: transparent;
}
.dot--on { background: var(--color-text); }

/* Résultat dé */
.result-dice-wrap {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.result-dice-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.result-dice-block strong { font-size: 1.1rem; color: var(--color-text); }

/* -------------------------------------------------------
   Jeu : chiffre caché — hot/cold
   ------------------------------------------------------- */
.number-grid {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    max-width: 400px;
    margin: 0.75rem auto 0;
}
/* Scope : .number-grid .number-btn pour ne pas écraser le jeu prediction-nombre */
.number-grid .number-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-bg);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.number-grid .number-btn:hover:not(:disabled) {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: scale(1.1);
}
.number-grid .number-btn--used    { background: var(--color-border); color: var(--color-text-light); }
.number-grid .number-btn--correct { background: #10B981; border-color: #10B981; color: #fff; transform: scale(1.15); }
.number-grid .number-btn--reveal  { background: #F59E0B; border-color: #F59E0B; color: #fff; }
.number-grid .number-btn:disabled { cursor: not-allowed; }

/* Indicateur tentatives */
.attempts-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.attempts-label { font-size: 0.8rem; color: var(--color-text-light); }
.attempts-dots  { display: flex; gap: 0.4rem; }
.attempt-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background 0.3s;
}
.attempt-dot--success { background: #10B981; }
.attempt-dot--fail    { background: var(--color-error); }

/* Feedback température */
.temperature-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-height: 80px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}
.temp-icon {
    font-size: 2.5rem;
    line-height: 1;
    transition: transform 0.3s;
}
.temp-icon--brulant { animation: pulse-hot 0.6s ease; }
.temp-icon--chaud   { animation: pulse-warm 0.5s ease; }
.temp-icon--glace   { animation: pulse-cold 0.5s ease; }
.temp-icon--success { color: #10B981; }

@keyframes pulse-hot  { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.4); } }
@keyframes pulse-warm { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.25); } }
@keyframes pulse-cold { 0%,100%{ transform:scale(1); } 50%{ transform:scale(0.85); } }

.temp-text {
    font-size: 0.92rem;
    color: var(--color-text-light);
    text-align: center;
    max-width: 260px;
}

/* Scoring badges */
.hc-scoring {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.hc-score-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-light);
    white-space: nowrap;
}
.hc-score-badge--active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
}
.hc-score-badge--1 { border-color: #10B981; color: #10B981; }
.hc-score-badge--2 { border-color: #F59E0B; color: #F59E0B; }
.hc-score-badge--3 { border-color: #EF4444; color: #EF4444; }

/* Résultat chiffre-caché */
.hc-result-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.hc-secret-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.hc-secret-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}
.hc-secret-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
}
.hc-attempt-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 2px solid var(--color-border);
    color: var(--color-text-light);
}
.hc-attempt-badge--1 { border-color: #10B981; color: #10B981; }
.hc-attempt-badge--2 { border-color: #F59E0B; color: #F59E0B; }
.hc-attempt-badge--3 { border-color: #EF4444; color: #EF4444; }
.hc-attempt-badge--fail { border-color: var(--color-error); color: var(--color-error); }
.hc-scoring-recap {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

/* =======================================================
   SYSTÈME PREMIUM
   ======================================================= */

/* Variables couleurs premium */
:root {
    --color-premium:    #B45309;   /* ambre doré */
    --color-premium-bg: #FEF3C7;
    --color-premium-grd: linear-gradient(135deg, #92400E 0%, #B45309 40%, #D97706 80%, #F59E0B 100%);
}

/* Bouton premium */
.btn--premium {
    background: var(--color-premium-grd);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.btn--premium:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(180,83,9,.35);
    text-decoration: none;
    color: #fff;
}

/* Badge premium (petit, dans les cartes) */
.premium-badge-sm {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--color-premium-grd);
    color: #fff;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Badge "déjà débloqué" */
.owned-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #D1FAE5;
    color: #065F46;
    white-space: nowrap;
}

/* -------------------------------------------------------
   Cartes de jeux premium dans games.php
   ------------------------------------------------------- */
.game-card__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.game-card--premium {
    border: 1.5px solid #D97706;
    position: relative;
    overflow: hidden;
}
.game-card--premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251,191,36,.06) 0%, transparent 60%);
    pointer-events: none;
}
.game-card--locked {
    opacity: 0.88;
    cursor: pointer;
}
.game-card--locked:hover { opacity: 1; }
.game-card__lock {
    font-size: 1.8rem;
    text-align: center;
    margin: 0.25rem 0 0.5rem;
}
.game-card__unlock-cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-premium);
    background: var(--color-premium-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

/* Bandeau CTA premium dans le catalogue */
.premium-cta-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-premium-bg);
    border: 1.5px solid #D97706;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}
.premium-cta-banner__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    color: var(--color-premium);
}
.premium-cta-banner > div {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.premium-cta-banner strong { font-size: 1rem; color: var(--color-text); }
.premium-cta-banner span   { font-size: 0.85rem; color: var(--color-text-light); }

/* -------------------------------------------------------
   Page premium.php — Hero
   ------------------------------------------------------- */
.premium-hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
    background: var(--color-premium-grd);
    color: #fff;
    margin: -2.5rem calc(-50vw + 50%) 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.premium-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;
    padding: 0.25rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.premium-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.premium-hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.premium-hero .btn--premium {
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.6);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
}
.premium-hero .btn--premium:hover {
    background: rgba(255,255,255,.25);
    box-shadow: none;
}

/* Bandeau de réassurance */
.premium-reassurance {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: #92400E;
    margin: 0 calc(-50vw + 50%);
    padding: 0.75rem 1.5rem;
}
.reassurance-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,.9);
    font-size: 0.85rem;
    padding: 0.4rem 1.25rem;
    border-right: 1px solid rgba(255,255,255,.2);
}
.reassurance-item:last-child { border-right: none; }
.reassurance-icon { font-size: 1rem; }

/* -------------------------------------------------------
   Sections de contenu premium
   ------------------------------------------------------- */
.premium-section {
    padding: 4rem 0;
}
.premium-section--light {
    background: var(--color-surface);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.premium-section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.premium-section--light .premium-section__header { max-width: 800px; }
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-premium);
    background: var(--color-premium-bg);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.premium-section__header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.premium-section__header p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* -------------------------------------------------------
   Features premium
   ------------------------------------------------------- */
.premium-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 860px;
    margin: 0 auto;
}
.premium-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.premium-feature__icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    line-height: 1;
    margin-top: 0.2rem;
}
.premium-feature__body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}
.premium-feature__body p {
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}
.premium-feature__body p:last-child { margin-bottom: 0; }

/* Liste avec coches */
.premium-feature__list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.premium-feature__list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.list-check {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: #10B981;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}
.premium-feature__list span:last-child {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}
.premium-feature__list strong { color: var(--color-text); }

/* Grille statistiques premium */
.premium-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}
.pstat-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.pstat-card__icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.pstat-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}
.pstat-card p { font-size: 0.85rem; color: var(--color-text-light); line-height: 1.6; }

/* -------------------------------------------------------
   Grille jeux premium
   ------------------------------------------------------- */
.premium-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.premium-game-card {
    background: var(--color-surface);
    border: 1.5px solid #D97706;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}
.premium-game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251,191,36,.07) 0%, transparent 55%);
    pointer-events: none;
}
.premium-game-card--owned { border-color: #10B981; }
.premium-game-card--owned::before {
    background: linear-gradient(135deg, rgba(16,185,129,.06) 0%, transparent 55%);
}
.premium-game-card__top { display: flex; align-items: center; justify-content: space-between; }
.premium-game-card__title { font-size: 1.1rem; font-weight: 700; }
.premium-game-card__desc { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.65; flex: 1; }
.premium-game-card__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.game-price {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
}
.game-price--free { color: #065F46; font-style: normal; font-weight: 600; }

/* Bientôt disponible */
.premium-coming-soon {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 520px;
    margin: 0 auto;
}
.premium-coming-soon__icon { font-size: 3rem; margin-bottom: 1rem; }
.premium-coming-soon h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.premium-coming-soon p { color: var(--color-text-light); }

/* -------------------------------------------------------
   FAQ accordéon
   ------------------------------------------------------- */
.premium-faq {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.15s;
}
.faq-question:hover { background: var(--color-bg); }
.faq-question[aria-expanded="true"] { color: var(--color-primary); }
.faq-chevron {
    font-size: 1.1rem;
    transition: transform 0.25s;
    flex-shrink: 0;
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p {
    padding: 0 1.25rem 1rem;
    color: var(--color-text-light);
    line-height: 1.75;
    font-size: 0.95rem;
}

/* -------------------------------------------------------
   CTA final
   ------------------------------------------------------- */
.premium-cta-final {
    text-align: center;
    padding: 3.5rem 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}
.premium-cta-final h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.premium-cta-final p  { color: var(--color-text-light); margin-bottom: 1.5rem; }

/* -------------------------------------------------------
   Page unlock.php
   ------------------------------------------------------- */
.unlock-wrap {
    max-width: 600px;
    margin: 0 auto;
}
.unlock-card {
    padding: 2rem;
}
.unlock-game-info {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.unlock-game-icon {
    font-size: 2.5rem;
    color: var(--color-premium);
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.2rem;
}
.unlock-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.35rem 0 0.5rem;
}
.unlock-desc { color: var(--color-text-light); font-size: 0.95rem; }
.unlock-divider { border: none; border-top: 1px solid var(--color-border); margin: 1.5rem 0; }
.unlock-what-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }

.unlock-benefits {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.unlock-benefits li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--color-text-light);
}
.unlock-benefits strong { color: var(--color-text); }

.unlock-payment { margin-top: 0.5rem; }
.unlock-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.unlock-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-premium);
}
.unlock-price-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
}
#paypal-button-container {
    max-width: 400px;
    margin: 0 auto 1rem;
}
.unlock-secure-note {
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-align: center;
}
.test-mode-banner {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.4);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    color: var(--color-premium);
    margin-bottom: 1rem;
    text-align: center;
}
.btn--full { width: 100%; }

/* Responsive premium */
@media (max-width: 640px) {
    .premium-hero { padding: 3rem 1rem 2rem; }
    .premium-feature { flex-direction: column; gap: 1rem; }
    .premium-feature__icon { width: auto; }
    .reassurance-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); width: 100%; }
    .reassurance-item:last-child { border-bottom: none; }
    .premium-games-grid { grid-template-columns: 1fr; }
    .unlock-game-info { flex-direction: column; }
}

/* ============================================================
   TÉLÉPATHIE — jeu premium
   ============================================================ */
.tele-form { margin-top: 1.5rem; }

.tele-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tele-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    transition: border-color 0.2s, background 0.2s;
}
.tele-row--chosen {
    border-color: var(--color-primary);
    background: rgba(99,102,241,0.06);
}

.tele-row__num {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-light);
    width: 1.4rem;
    flex-shrink: 0;
    text-align: center;
}

.tele-row__choices {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.tele-color-label { cursor: pointer; }
.tele-color-label input[type="radio"] { display: none; }

.tele-color-btn {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--c, #ccc);
    border: 3px solid transparent;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.tele-color-label input[type="radio"]:checked + .tele-color-btn {
    border-color: #fff;
    transform: scale(1.18);
    box-shadow: 0 0 0 3px var(--c, #ccc), 0 2px 8px rgba(0,0,0,0.25);
}

.tele-row__state {
    margin-left: auto;
    font-size: 1.1rem;
    color: var(--color-success);
    font-weight: 700;
    width: 1.4rem;
    text-align: center;
}

.tele-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.tele-progress {
    font-size: 0.92rem;
    color: var(--color-text-light);
}

.tele-submit { min-width: 220px; }

/* Télépathie résultat */
.tele-result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0 1.5rem;
}
.tele-hits {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: inherit;
}
.tele-hits-label {
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.75;
    margin-top: 0.2rem;
}

.tele-result-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 1rem 0 1.5rem;
    text-align: left;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
.tele-result-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
}
.tele-result-row--hit { background: rgba(16,185,129,0.12); }
.tele-result-row--miss { background: rgba(239,68,68,0.08); }

.tele-result-row__num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
    width: 1.2rem;
    flex-shrink: 0;
}
.tele-result-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}
.tele-result-icon {
    font-size: 0.9rem;
    font-weight: 700;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}
.tele-result-row--hit .tele-result-icon { color: var(--color-success); }
.tele-result-row--miss .tele-result-icon { color: var(--color-danger); }

/* Scoring info card */
.tele-scoring-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
}
.tele-score-item {
    padding: 0.45rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.tele-score-item span { font-weight: 400; }
.tele-score-item--a { background: rgba(245,158,11,0.15); color: var(--color-premium); }
.tele-score-item--b { background: rgba(99,102,241,0.12); color: var(--color-primary); }
.tele-score-item--c { background: rgba(16,185,129,0.12); color: var(--color-success); }
.tele-score-item--d { background: rgba(239,68,68,0.08); color: var(--color-danger); }

/* ============================================================
   ORACLE — jeu premium
   ============================================================ */
.game-arena--tall { min-height: 420px; }

.oracle-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 1.5rem 0 0.5rem;
}

/* Cible mystérieuse */
.oracle-target {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.oracle-target__aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
    animation: oraclePulse 2.5s ease-in-out infinite;
}
@keyframes oraclePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.35); opacity: 1; }
}
.oracle-target__core {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-surface-alt, #1e1b4b);
    border: 3px solid rgba(139,92,246,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(139,92,246,0.7);
    box-shadow: 0 0 24px rgba(139,92,246,0.25);
}
.oracle-target__label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Sections choix */
.oracle-section { width: 100%; max-width: 480px; }
.oracle-section__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
    text-align: center;
}

.oracle-choices {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons forme */
.oracle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
    font-size: 0.75rem;
    color: var(--color-text);
    min-width: 70px;
}
.oracle-btn:hover {
    border-color: var(--color-primary);
    background: rgba(99,102,241,0.06);
    transform: translateY(-2px);
}
.oracle-btn--selected {
    border-color: var(--color-primary);
    background: rgba(99,102,241,0.12);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    transform: translateY(-2px);
}

.oracle-svg {
    width: 40px;
    height: 40px;
    color: var(--color-text);
    transition: color 0.15s;
}
.oracle-btn--selected .oracle-svg { color: var(--color-primary); }

/* Boutons couleur */
.oracle-color-btn {
    --c: #ccc;
    min-width: 64px;
}
.oracle-color-swatch {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c);
    border: 3px solid rgba(255,255,255,0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}
.oracle-btn--selected .oracle-color-swatch {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px var(--c), 0 0 0 6px rgba(255,255,255,0.15);
}

/* Scoring chips oracle */
.oracle-scoring {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.oracle-score-chip {
    padding: 0.3rem 0.7rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.oracle-score-chip--full { background: rgba(245,158,11,0.15); color: var(--color-premium); }
.oracle-score-chip--partial { background: rgba(99,102,241,0.12); color: var(--color-primary); }
.oracle-score-chip--miss { background: rgba(239,68,68,0.08); color: var(--color-danger); }

/* Submit wrap oracle */
.oracle-submit-wrap {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.oracle-confirm-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

/* Oracle révélation résultat */
.oracle-reveal {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.25rem 0 1.5rem;
}
.oracle-reveal-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.oracle-reveal-col h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: inherit;
    opacity: 0.7;
    margin: 0;
}
.oracle-reveal-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.oracle-reveal-shape {
    width: 64px;
    height: 64px;
}
.oracle-reveal-shape svg { width: 100%; height: 100%; }
.oracle-reveal-labels {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}
.oracle-reveal-label {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 2rem;
}
.oracle-reveal-label--hit { background: rgba(16,185,129,0.2); color: #10b981; }
.oracle-reveal-label--miss { background: rgba(239,68,68,0.15); color: #ef4444; }

/* ============================================================
   SÉRIE NOIRE — jeu premium (dés)
   ============================================================ */
.sn-form { margin-top: 1.5rem; }

.sn-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sn-row {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, background 0.2s;
}
.sn-row--chosen {
    border-color: var(--color-primary);
    background: rgba(99,102,241,0.05);
}

.sn-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}
.sn-row__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sn-row__state {
    font-size: 1rem;
    color: var(--color-success);
    font-weight: 700;
}

.sn-dice-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sn-die-label {
    cursor: pointer;
}
.sn-die-label input[type="radio"] { display: none; }

.sn-die {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    padding: 6px;
    /* Pas de background ici : on hérite du fond blanc de .dice-face */
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
    box-sizing: border-box;
}
.sn-die-label input[type="radio"]:checked + .sn-die {
    border-color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}
.sn-die:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* Petite taille pour le résultat */
.sn-die--sm {
    width: 44px;
    height: 44px;
    padding: 5px;
    gap: 2px;
}
.sn-die--hit { border-color: var(--color-success) !important; box-shadow: 0 0 0 3px rgba(16,185,129,0.2) !important; }
.sn-die--miss { border-color: var(--color-danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important; }

/* Footer soumission */
.sn-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.sn-progress {
    font-size: 0.92rem;
    color: var(--color-text-light);
}
.sn-submit { min-width: 200px; }

/* Résultat série noire */
.sn-result-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 1rem 0 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.sn-result-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
}
.sn-result-row--hit { background: rgba(16,185,129,0.1); }
.sn-result-row--miss { background: rgba(239,68,68,0.07); }

.sn-result-row__num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-light);
    min-width: 3.5rem;
    flex-shrink: 0;
}
.sn-result-die-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.sn-result-die-label {
    font-size: 0.68rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sn-result-icon {
    font-size: 1rem;
    font-weight: 700;
    width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
}
.sn-result-row--hit .sn-result-icon { color: var(--color-success); }
.sn-result-row--miss .sn-result-icon { color: var(--color-danger); }

/* ============================================================
   ANALYSE PREMIUM — includes/premium_analysis.php
   ============================================================ */
.premium-analysis {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, rgba(245,158,11,0.05) 100%);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: var(--radius-lg, 1rem);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.analysis-header__icon {
    font-size: 1.4rem;
}
.analysis-header__title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Message personnalisé */
.analysis-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 4px solid;
}
.analysis-message--success {
    background: rgba(16,185,129,0.1);
    border-color: var(--color-success);
    color: var(--color-text);
}
.analysis-message--partial {
    background: rgba(245,158,11,0.1);
    border-color: var(--color-premium);
    color: var(--color-text);
}
.analysis-message--fail {
    background: rgba(239,68,68,0.08);
    border-color: var(--color-danger);
    color: var(--color-text);
}

/* Système de grade */
.analysis-grade {
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.analysis-grade__inner {
    padding: 0.75rem 1rem;
    background: var(--color-surface);
}
.analysis-grade__name {
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}
.analysis-grade__meta {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}
.analysis-grade__bar-wrap {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}
.analysis-grade__bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}
.analysis-grade--maestro .analysis-grade__name { color: #F59E0B; }
.analysis-grade--expert  .analysis-grade__name { color: #8B5CF6; }
.analysis-grade--initie  .analysis-grade__name { color: #3B82F6; }
.analysis-grade--apprenti .analysis-grade__name { color: #10B981; }
.analysis-grade--novice  .analysis-grade__name { color: #6B7280; }

/* Grille KPI */
.analysis-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.analysis-kpi {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
}
.analysis-kpi__value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    display: block;
}
.analysis-kpi__label {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Barre de score avec marqueur groupe */
.analysis-score-bar-wrap {
    margin-bottom: 1.25rem;
}
.analysis-score-bar-wrap h4 {
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.5rem;
    font-weight: 700;
}
.analysis-score-bar {
    position: relative;
    height: 14px;
    background: var(--color-border);
    border-radius: 7px;
    overflow: visible;
}
.analysis-score-bar__fill {
    height: 100%;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-premium));
    transition: width 0.6s ease;
}
.analysis-score-bar__avg-marker {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 22px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    transform: translateX(-50%);
}
.analysis-score-bar__avg-label {
    position: absolute;
    top: 22px;
    transform: translateX(-50%);
    font-size: 0.68rem;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* Historique tendance */
.analysis-history {
    margin-bottom: 1.25rem;
}
.analysis-history h4 {
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.6rem;
    font-weight: 700;
}
.analysis-history-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.analysis-hist-chip {
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
}
.analysis-hist-chip--success { border-color: var(--color-success); color: var(--color-success); background: rgba(16,185,129,0.08); }
.analysis-hist-chip--partial { border-color: var(--color-premium); color: var(--color-premium); background: rgba(245,158,11,0.08); }
.analysis-hist-chip--fail { border-color: var(--color-danger); color: var(--color-danger); background: rgba(239,68,68,0.06); }

/* Replay table (rounds details) */
.analysis-replay {
    margin-bottom: 1.25rem;
}
.analysis-replay h4 {
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.6rem;
    font-weight: 700;
}
.replay-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.replay-table th {
    text-align: left;
    font-size: 0.72rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
}
.replay-table td {
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.replay-table tr:last-child td { border-bottom: none; }
.replay-hit { color: var(--color-success); font-weight: 700; }
.replay-miss { color: var(--color-danger); font-weight: 700; }

/* Indice de confiance */
.analysis-confidence {
    margin-bottom: 1.25rem;
}
.analysis-confidence h4 {
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.5rem;
    font-weight: 700;
}
.confidence-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.confidence-bar {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}
.confidence-bar__fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    transition: width 0.6s ease;
}
.confidence-label {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--color-text);
}

/* Mini bar chart dernières sessions */
.analysis-minichart {
    margin-bottom: 0.5rem;
}
.analysis-minichart h4 {
    font-size: 0.82rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 0.6rem;
    font-weight: 700;
}
.mini-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 60px;
}
.mini-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
}
.mini-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    background: var(--color-primary);
    min-height: 3px;
    transition: height 0.4s ease;
}
.mini-bar--current { background: var(--color-premium); }
.mini-bar-val {
    font-size: 0.65rem;
    color: var(--color-text-light);
    font-weight: 600;
}

/* ============================================================
   Responsive jeux premium
   ============================================================ */
@media (max-width: 640px) {
    .analysis-kpis { grid-template-columns: repeat(2, 1fr); }

    .tele-color-btn { width: 2rem; height: 2rem; }
    .tele-footer { flex-direction: column; align-items: stretch; }
    .tele-submit { min-width: 0; }

    .oracle-btn { min-width: 56px; padding: 0.5rem; }
    .oracle-svg { width: 32px; height: 32px; }
    .oracle-color-swatch { width: 28px; height: 28px; }

    .sn-die { width: 44px; height: 44px; padding: 5px; }
    .sn-footer { flex-direction: column; align-items: stretch; }
    .sn-submit { min-width: 0; }

    .oracle-reveal { gap: 1.25rem; }
    .sn-result-row { flex-wrap: wrap; gap: 0.5rem; }
}

/* -------------------------------------------------------
   Footer — liens supplémentaires
   ------------------------------------------------------- */
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__copy {
    color: inherit;
}

.site-footer__links {
    display: flex;
    gap: 1.25rem;
}

.site-footer__links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .875rem;
    transition: color .2s;
}

.site-footer__links a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .site-footer__inner { flex-direction: column; text-align: center; }
}

/* -------------------------------------------------------
   Page Contact
   ------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
}

.contact-form-wrap {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form .form-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 560px) {
    .contact-form .form-row--2col { grid-template-columns: 1fr; }
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1.25rem;
}

.contact-form label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
    padding: .65rem .9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: .95rem;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}

.contact-form .form-group--error input,
.contact-form .form-group--error textarea {
    border-color: var(--color-error);
}

.form-error {
    color: var(--color-error);
    font-size: .82rem;
    font-weight: 500;
}

.form-hint {
    color: var(--color-text-light);
    font-size: .8rem;
}

.form-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: var(--radius);
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

/* Honeypot */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Succès */
.contact-success {
    text-align: center;
    padding: 3rem 1rem;
}

.contact-success__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-success h2 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    color: var(--color-success);
}

.contact-success p {
    color: var(--color-text-light);
}

/* Infos latérales */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info__card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}

.contact-info__icon {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.contact-info__card h3 {
    font-size: 1rem;
    margin-bottom: .4rem;
    color: var(--color-text);
}

.contact-info__card p {
    font-size: .875rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* -------------------------------------------------------
   Page Mentions légales
   ------------------------------------------------------- */
.legal-updated {
    color: var(--color-text-light);
    font-size: .875rem;
    margin-top: .25rem;
}

.legal-content {
    max-width: 780px;
    margin: 2rem auto;
}

.legal-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.legal-section h2 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-section p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: .75rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: .75rem 0;
}

.legal-section ul li {
    padding: .4rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: .925rem;
    line-height: 1.5;
}

.legal-section ul li:last-child {
    border-bottom: none;
}

.legal-section ul li strong {
    color: var(--color-text);
    margin-right: .4rem;
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------
   CGV — styles spécifiques
   ------------------------------------------------------- */
.cgv-preamble {
    background: linear-gradient(135deg, rgba(108,99,255,.07), rgba(108,99,255,.03));
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
    font-size: .925rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.cgv-section--highlight {
    border-left: 3px solid var(--color-warning);
}

.cgv-section--highlight h2 {
    color: var(--color-warning);
}

.cgv-note {
    background: #fef9ec;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: .65rem 1rem;
    font-size: .875rem;
    color: #92400e;
    line-height: 1.5;
    margin-top: .5rem !important;
}

.cgv-paypal-badge {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: .65rem 1rem;
    font-size: .875rem;
    color: #166534;
    margin-top: .75rem;
}

.cgv-paypal-badge__icon { font-size: 1.1rem; }

.cgv-back {
    text-align: center;
    margin-top: 1rem;
    font-size: .9rem;
}

.cgv-back a {
    color: var(--color-primary);
    text-decoration: none;
}

.cgv-back a:hover { text-decoration: underline; }

/* -------------------------------------------------------
   Bandeau de consentement aux cookies
   ------------------------------------------------------- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0,0,0,.25);
    font-size: .9rem;
    line-height: 1.5;
    transform: translateY(100%);
    transition: transform .35s ease;
}

#cookie-banner.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__text a {
    color: #a5b4fc;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: .65rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: .5rem 1.1rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}

.cookie-btn:hover { opacity: .85; }

.cookie-btn--accept {
    background: var(--color-primary);
    color: #fff;
}

.cookie-btn--decline {
    background: #334155;
    color: #cbd5e1;
}

.cookie-btn--essential {
    background: transparent;
    color: #94a3b8;
    text-decoration: underline;
    font-weight: 400;
    font-size: .8rem;
    padding: .5rem .5rem;
}

@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-banner__actions { width: 100%; }
    .cookie-btn--accept, .cookie-btn--decline { flex: 1; text-align: center; }
}
