/* ==========================================================================
   TABLE DES MATIÈRES
   1. Variables & Reset
   2. Layout Global (#global, .container, grilles)
   3. Header & Navigation
   4. Cartes génériques (.card, .sm-card)
   5. Matchs & Scores
   6. Page Stats Match (sm-layout, match-hero, analyse, pronostic, tendances, impact)
   7. Classements & Groupes
   8. Formulaires & Inputs
   9. Forum & Messages
   10. Pronostics (page saisie)
   11. Simulation & Alertes
   12. Animations
   13. Responsive (max-width: 768px)
   14. Administration (.admin-grille, .admin-card, .toggle-switch, etc.)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    /* Couleurs principales */
    --primary-color:   #00336C;
    --secondary-color: #0055a5;
    --accent-color:    #ffcc00;
    --danger-color:    #ff3333;
    --danger-hover:    #cc0000;
    --warning-color:   #f39c12;

    /* Texte */
    --text-dark:       #333;
    --text-light:      #f5f5f5;
    --text-secondary:  #6b7280;
    --text-muted:      #9ca3af;
    --white:           #ffffff;

    /* Surfaces & bordures */
    --surface-1:       #ffffff;
    --surface-2:       #f7f8fc;
    --surface-3:       #eef0f7;
    --border:          #e4e7f0;

    /* Sémantiques */
    --green:           #16a34a;
    --green-light:     #dcfce7;
    --red:             #dc2626;
    --red-light:       #fee2e2;
    --yellow:          #d97706;
    --yellow-light:    #fef3c7;
    --blue:            #2563eb;
    --blue-light:      #dbeafe;

    /* Ombres */
    --shadow:          0 2px 8px rgba(0,0,0,0.1);
    --shadow-sm:       0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:       0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg:       0 10px 30px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);

    /* Rayons */
    --radius-sm:       6px;
    --radius-md:       12px;
    --radius-lg:       18px;

    /* Typographie */
    --font-display:    'Barlow Condensed', sans-serif;
    --font-body:       'DM Sans', sans-serif;
}

body {
    margin: 0;
    padding: 0;
font-family: Arial, 'Noto Color Emoji', sans-serif;    background-color: var(--text-light);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s;
}

a:hover { text-decoration: underline; }

img:not([src]),
img[src=""] { visibility: hidden; }


/* ==========================================================================
   2. LAYOUT GLOBAL
   ========================================================================== */
#global {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Conteneur flex générique (gauche / droite) */
.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.gauche { flex: 1 1 300px; min-width: 0; }
.droite { flex: 2 1 600px; min-width: 0; }

/* Page standard (classement, stats…) */
.principale {
    padding: 10px;
    padding-top: 24px;
    max-width: 1100px;
    margin: auto;
    box-sizing: border-box;
}

.titre-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary-color);
}

.titre-page h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mise-en-forme-titre {
    font-family: var(--font-display);
    font-size: 1.8em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mise-en-forme-titre small {
    font-size: .55em;
    color: var(--accent-color);
    background: var(--primary-color);
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: .04em;
}

/* Deux colonnes de cards côte à côte */
.card-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card-row .card {
    flex: 1;
    min-width: 300px;
}

/* Description avec image + texte */
.description-body {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.description-body > div { flex: 1 1 auto; }


/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

/* --- Wrapper header + navbar (pleine largeur, zéro gap entre les deux) --- */
.header-navbar-wrap {
    max-width: 1200px;
    margin: 0px auto;
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
    border-radius: 0 0 14px 14px;
    /* Pas de overflow:hidden ici : les dropdowns doivent déborder */
}

/* Centrage du contenu intérieur comme #global */

/* ═══ COLLAGE HEADER / NAVBAR ═══ */
.header-navbar-wrap { display: block; line-height: 0; }
.header-navbar-wrap > * { line-height: normal; }

/* --- Header --- */
.header {
    background: linear-gradient(135deg, #00336C 0%, #0055a5 100%);
    border-radius: 0;
    padding: 26px max(24px, calc(50% - 585px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    box-shadow: none;
    color: var(--white);
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.header-logo-link:hover { text-decoration: none; }

.cdm-logo {
    height: 70px;
    width: auto;
    border-radius: 5px;
}

.header-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.header-title .annee { color: var(--accent-color); }

/* --- Infos utilisateur (droite) --- */
.user-panel {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.user-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    font-size: .95em;
    text-decoration: none;
    transition: color .15s;
}

.user-name:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.user-meta {
    display: flex;
    gap: 10px;
    font-size: .85em;
    color: rgba(255,255,255,.6);
}

.user-meta a              { color: rgba(255,255,255,.75); text-decoration: none; }
.user-meta a:hover        { color: var(--accent-color); text-decoration: none; }

.btn-deconnexion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: 8px;
    font-size: .82em;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.22);
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}

.btn-deconnexion:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    text-decoration: none;
}

.btn-valider-compte {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--danger-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .75em;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
    animation: pulse-red 2.5s infinite;
}

.sim-tag {
    font-size: .7em;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-reset-sim {
    background: rgba(255,204,0,.18);
    color: var(--accent-color);
    border: 1px solid rgba(255,204,0,.3);
    padding: 1px 7px;
    border-radius: 4px;
    font-size: .9em;
    text-decoration: none;
}

.btn-reset-sim:hover { background: rgba(255,204,0,.3); text-decoration: none; }

.update-tag {
    font-size: 1em;
    color: rgba(255,255,255,.65);
}

/* --- Navbar --- */
.navbar {
    background: linear-gradient(135deg, #00336C 0%, #002655 100%);
    border-radius: 0 0 14px 14px;
    box-shadow: none;
    position: relative;
    z-index: 9000;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 4px;
    list-style: none;
}

/* --- Items niveau 1 --- */
.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    color: rgba(255,255,255,0.88);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.0em;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: background .18s, color .18s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: transparent;
}

.nav-link .nav-icon {
    font-size: .9em;
    opacity: .75;
    transition: opacity .18s;
    width: 16px;
    text-align: center;
}

.nav-link .nav-chevron {
    font-size: .65em;
    margin-left: 2px;
    opacity: .6;
    transition: transform .22s ease;
}

.nav-item:hover > .nav-link,
.nav-item.open  > .nav-link {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-item:hover > .nav-link .nav-icon,
.nav-item.open  > .nav-link .nav-icon { opacity: 1; }

.nav-item.open > .nav-link .nav-chevron { transform: rotate(180deg); }

/* Item actif */
.nav-item.current > .nav-link            { color: var(--accent-color); }
.nav-item.current > .nav-link .nav-icon  { opacity: 1; color: var(--accent-color); }

/* Supprime le soulignement sur tous les liens de la navbar */
.navbar a:hover,
.nav-link:hover,
.nav-dropdown a:hover { text-decoration: none !important; }

/* --- Sous-menus --- */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    z-index: 9999;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    border-top: 3px solid var(--accent-color);
}

/* Dernier(s) item(s) : dropdown aligné à droite pour ne pas sortir de la page */
.nav-item:last-child .nav-dropdown,
.nav-item:nth-last-child(2) .nav-dropdown { left: auto; right: 0; }

.nav-item:hover > .nav-dropdown,
.nav-item.open  > .nav-dropdown { display: block; }

.nav-dropdown li { list-style: none; }

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88em;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
    border-radius: 0;
}

.nav-dropdown a .dd-icon {
    width: 18px;
    text-align: center;
    color: var(--secondary-color);
    font-size: .85em;
    flex-shrink: 0;
}

.nav-dropdown a:hover {
    background: var(--surface-2);
    color: var(--primary-color);
    padding-left: 24px;
    text-decoration: none;
}

.nav-dropdown a:hover .dd-icon { color: var(--accent-color); }

.nav-dropdown .dd-sep {
    height: 1px;
    background: var(--border);
    margin: 5px 14px;
}

/* --- Badge notification --- */
.badge-notif {
    background: var(--danger-color);
    color: #fff;
    font-size: 0.62em;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 2px;
    border: 1.5px solid rgba(255,255,255,0.4);
    animation: pulse-red 2s infinite;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0;
}

/* --- Burger mobile --- */
.nav-burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px 8px;
    gap: 5px;
    background: transparent;
    border: none;
    border-radius: 6px;
    transition: background .15s;
}

.nav-burger:hover { background: rgba(255,255,255,0.1); }

.nav-burger span {
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 3px;
    display: block;
    transition: transform .26s ease, opacity .2s ease;
}

.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5.5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5.5px); }

/* --- Alerte paiement sticky --- */
.alert-paiement {
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.alert-paiement:hover { background: #c0392b; }


/* ==========================================================================
   4. CARTES GÉNÉRIQUES
   ========================================================================== */
.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: var(--shadow);
}

.liste-matchs-OLD {
    display: flex;
    flex-direction: column; /* Aligne les matchs verticalement */
    gap: 15px;              /* Crée l'espace entre chaque carte */
    margin-bottom: 20px;
}

.liste-matchs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    align-items: start;
}

/* Carte liste de matchs (page saisie / pronostics) */
.carte-match {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 6px solid var(--primary-color);
    overflow: hidden;
    padding: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
}

.carte-match:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Supprime le soulignement sur les liens dans une carte match */
.carte-match a,
.carte-match a:hover,
.carte-match a:focus {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
    box-shadow: none !important;
}

.match-card {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 4px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    background: var(--white);
}

.live-border {
    border-left-color: #e74c3c !important;
    background-color: #fffafa;
}

/* Carte verrouillée */
.match-card-saisie {
    padding: 15px;
    margin: 0 !important;
    transition: transform 0.2s;
}

.match-card-saisie:hover { transform: translateY(-3px); }

.match-card-saisie.locked {
    background-color: #f8f9fa;
    opacity: 0.8;
    border-left: 5px solid #ccc;
}


/* ==========================================================================
   5. MATCHS & SCORES  ·  Composant unifié (saisie / match / resultats)
   ========================================================================== */

/* ── En-tête de carte ── */
.match-info-haut,
.match-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78em;
    color: var(--text-muted);
    margin-bottom: 8px;
    gap: 6px;
    flex-wrap: wrap;
}

.match-info-haut {
    border-bottom: 1px solid var(--border);
    padding: 6px 14px 7px;
    margin-bottom: 0;
}

/* ── Badges état ── */
.live {
    color: var(--red);
    font-weight: bold;
    animation: blink 1.5s infinite;
}
.finished-badge {
    background: var(--surface-3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ══════════════════════════════════════════════
   CORPS PRINCIPAL  :  Équipe — Score — Équipe
   Desktop : logo | nom   [score]   nom | logo
   Mobile  : logo          score         logo
             nom                          nom
   ══════════════════════════════════════════════ */
.match-corps,
.match-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    gap: 6px !important;
}

/* Blocs équipes */
.equipe,
.team-block {
    flex: 1 1 0% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.domicile,
.team-block.home { justify-content: flex-start !important; }

.exterieur,
.team-block.away { justify-content: flex-end !important; }

/* Extérieur — desktop : nom à gauche, logo à droite */
.exterieur               { flex-direction: row !important; }
.exterieur .nom-equipe   { text-align: right !important; order: 1 !important; }
.exterieur .logo-equipe  { order: 2 !important; flex-shrink: 0 !important; }

/* ── Logos / drapeaux ── */
.flag, .flag2, .flag-logo, .logo-equipe {
    object-fit: contain;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
    flex-shrink: 0;
}

.flag,
.logo-equipe { width: 32px; height: 22px; }
.flag-logo   { width: 32px; height: 20px; margin-right: 8px; }
.logo-mini   { width: 25px; height: 18px; }

.kit-img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.2));
}
.team-link:hover {
    color: var(--primary-color);
    text-decoration: none;  /* ← était underline */
}
/* ── Noms d'équipes ── */
.nom-equipe,
.team-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92em;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nom court visible sur mobile uniquement */
.nom-equipe-short { display: none; }
.nom-equipe-full  { display: inline; }

.nom-equipe-mini {
    font-weight: 600;
    color: #333;
}

/* ── Score central ── */
.score-bloc,
.score-block {
    flex: 0 0 110px !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.score-cell,
.score { font-weight: bold; text-align: center; min-width: 60px; }

.main-score,
.score-chiffres {
    font-family: var(--font-display);
    font-size: 1.4em;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 3px;
}

.score-chiffres-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.penos-score,
.penos {
    font-size: 0.75em;
    color: var(--red);
    font-weight: 600;
    margin-top: 2px;
}

/* ── Score réel (sous les inputs) ── */
.match-result-info {
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}
.match-result-label {
    font-size: .65em;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.match-result-score {
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* ── Mobile ≤ 520px : logo au-dessus, nom dessous ── */
@media (max-width: 520px) {

    .match-corps,
    .match-main {
        padding: 8px 8px !important;
        gap: 4px !important;
    }

    /* Chaque équipe passe en colonne */
    .equipe,
    .team-block {
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        max-width: 80px !important;
    }

    /* Extérieur : même ordre que domicile en colonne */
    .exterieur               { flex-direction: column !important; }
    .exterieur .nom-equipe   { order: 2 !important; text-align: center !important; }
    .exterieur .logo-equipe  { order: 1 !important; }

    .logo-equipe { width: 36px !important; height: 26px !important; }

    /* Nom : on cache le nom long, on montre le court */
    .nom-equipe-full  { display: none !important; }
    .nom-equipe-short { display: inline !important; }

    .nom-equipe,
    .team-name {
        font-size: 0.72em !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        max-width: 78px;
    }

    .score-bloc,
    .score-block { flex: 0 0 80px !important; }

    .main-score,
    .score-chiffres { font-size: 1.2em; letter-spacing: 2px; }
}

/* Footer de carte match */
.match-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-top: 0;
    padding: 6px 0;
    gap: 4px;
    font-size: 0.75em;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-date { display: block; width: 100%; }

/* Footer de carte match */
.match-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-top: 0;
    padding: 6px 0;
    gap: 4px;
    font-size: 0.75em;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-date { display: block; width: 100%; }

/* Stats bar (tendances 1N2) */
.stats-bar {
    display: flex;
    height: 20px;
    margin: 5px 0;
    border-radius: 5px;
    overflow: hidden;
    background: #f0f0f0;
}

.stats-bar .bar {
    height: 100%;
    color: var(--white);
    text-align: center;
    font-size: 0.8em;
    line-height: 20px;
}

.stats-bar .home { background: #007bff; }
.stats-bar .draw { background: #6c757d; }
.stats-bar .away { background: #dc3545; }

/* Grille de matchs */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 80px;
    padding-bottom: 50px;
}

/* Bouton flottant "Enregistrer" */
.sticky-footer {
    position: sticky;
    bottom: 20px;
    z-index: 1000;
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    background: rgba(245, 245, 245, 0.8);
    border-radius: 50px;
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
}

/* Kits en bas de carte */
.kits-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 0 20px;
}

/* Badge LIVE clignotant */
.live-badge,
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dc2626;
    color: #fff;
    font-size: .72em;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 9px;
    border-radius: 99px;
    text-transform: uppercase;
    vertical-align: middle;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: livePulse 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .3; transform: scale(.7); }
}

.finished-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #888;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    vertical-align: middle;
}

/* Carte sans prono — légère teinte rosée */
.carte-match--no-prono {
    background: #fffafa;
}

/* Footer sans prono — fond rouge pâle */
.match-footer--no-prono {
    background: #fef2f2 !important;
    border-top: 1px solid #fecaca !important;
}

.no-prono-cta {
    color: #e74c3c;
    font-size: 0.9em;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .03em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: noPronoPulse 2s ease-in-out infinite;
}

@keyframes noPronoPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .6; }
}

.no-prono-cta:hover { text-decoration: underline; }

/* Footer avec prono — styles propres */
.prono-label {
    font-size: 0.8em;
    color: #888;
    margin-right: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.prono-score {
    font-size: 1em;
    color: var(--primary-color);
    font-weight: 900;
}

/* Lien "Impact" cliquable */
.impact-count {
    cursor: pointer;
    color: #3498db;
    font-weight: bold;
}

.impact-count:hover { text-decoration: underline; }


/* ==========================================================================
   6. PAGE STATS MATCH
   ========================================================================== */

/* --- Layout principal (sidebar + contenu) --- */
.sm-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    font-family: var(--font-body);
    box-sizing: border-box;
    width: 100%;
}

.sm-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* --- Cartes SM génériques --- */
.sm-card {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sm-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sm-card-title {
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sm-card-title i { color: var(--secondary-color); }
.sm-card-body    { padding: 20px; }

/* --- Sélecteur de match --- */
.sm-match-select select {
    width: 100%;
    padding: 11px 32px 11px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    font-family: var(--font-body);
    font-size: 0.9em;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sm-match-select select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* --- Carte Pronostic (sidebar) --- */
.prono-card { border-left: 5px solid var(--prono-color, #bdc3c7); }

.prono-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prono-badge.locked   { background: #f1f3f5; color: var(--text-muted); }
.prono-badge.editable { background: var(--blue-light); color: var(--blue); }

.prono-score-display {
    font-family: var(--font-display);
    font-size: 3em;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    line-height: 1;
    padding: 10px 0;
    letter-spacing: -1px;
}

.prono-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.prono-inputs input[type=number] {
    width: 64px;
    text-align: center;
    padding: 10px 6px;
    font-size: 1.4em;
    font-weight: 700;
    font-family: var(--font-display);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    transition: border-color 0.2s;
    appearance: textfield;
    -moz-appearance: textfield;
}

.prono-inputs input[type=number]::-webkit-outer-spin-button,
.prono-inputs input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

.prono-inputs input[type=number]:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.prono-sep { font-size: 1.4em; font-weight: 700; color: var(--text-muted); }

.btn-save-prono {
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--secondary-color);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-save-prono:hover  { opacity: 0.9; transform: translateY(-1px); }
.btn-save-prono:active { transform: translateY(0); }

.alert-prono {
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.alert-prono.success { background: var(--green-light); color: var(--green); }
.alert-prono.error   { background: var(--red-light);   color: var(--red); }

/* --- Hero du match --- */
.match-hero {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
    border-top: 5px solid var(--home-color, var(--secondary-color));
}

.match-hero-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 24px 20px;
}

.team-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.team-logo { width: 72px; height: 72px; object-fit: contain; }

.team-name-hero {
    font-family: var(--font-display);
    font-size: 1.15em;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.team-kit      { width: 52px; height: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15)); }
.kit-placeholder { height: 52px; }

.score-col {
    text-align: center;
    padding: 0 20px;
    min-width: 160px;
}

.score-context {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.score-main {
    font-family: var(--font-display);
    font-size: 3.2em;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -3px;
    line-height: 1;
}

.score-vs {
    font-family: var(--font-display);
    font-size: 2em;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.score-tab {
    font-size: 1em;
    font-weight: 700;
    color: var(--red);
    margin-top: 4px;
}

.match-date-badge {
    display: inline-block;
    margin-top: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Section Analyse IA --- */
.analyse-card { margin-bottom: 20px; position: relative; }

.analyse-banner         { width: 100%; height: 130px; object-fit: cover; display: block; }
.analyse-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.analyse-inner { padding: 22px; }

.analyse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.analyse-title {
    font-family: var(--font-display);
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.analyse-title i { color: var(--secondary-color); }

.analyse-meta {
    font-size: 0.75em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.analyse-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

.analyse-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
}

/* Empêche l'image de déborder et gère le responsive */
.analyse-image-float {
    float: left;            /* Ou right selon ta préférence */
    max-width: 350px;      /* Largeur max pour ne pas étouffer le texte */
    width: 30%;            /* Prend 30% de la largeur sur desktop */
    height: auto;
    margin: 0 20px 15px 0; /* Espacement autour de l'image */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Sur mobile, on annule le flottement pour que l'image soit centrée au-dessus du texte */
@media (max-width: 768px) {
    .analyse-image-float {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px 0;
    }

    /* Bloc gauche : compact sur mobile */
    .gauche .ps-quickstats-card {
        padding: 6px 10px;
    }
    .gauche .ps-qs-value  { font-size: 1.2rem; }
    .gauche .ps-qs-label  { font-size: 0.58rem; }
    .gauche .ps-qs-sep    { height: 24px; }

.gauche .ps-style-card {
    border-top: 1px solid var(--border);
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    padding: 0;          /* ← retirer le padding de .card */
}
.gauche .ps-style-card h3 {
    padding: 8px 12px 0;
    margin-bottom: 0;
    font-size: 0.85em;
}
.gauche .ps-profil-body {
    padding: 8px 12px;   /* ← serré */
    gap: 10px;
}

.gauche .ps-profil-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1em;
    border-radius: 8px;
}

.gauche .ps-profil-titre {
    font-size: 1em;
}

    .gauche .ps-voir-stats-btn {
        padding: 7px 12px;
        margin-bottom: 12px;
    }

    /* Masquer les compteurs dans les filtres */
    .hide-mobile-inline { display: none; }
}

/* Sécurité pour le conteneur */
.analyse-content-flow {
    overflow: hidden; /* Force le conteneur à englober l'élément flottant */
    line-height: 1.6;
}

.analyse-text { font-size: 0.93em; line-height: 1.75; color: var(--text-secondary); }
.analyse-text p { margin: 0 0 12px 0; }
.analyse-text p:last-child { margin-bottom: 0; }

.btn-regenerate {
    margin-top: 16px;
    padding: 9px 18px;
    border: 1.5px solid var(--secondary-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--secondary-color);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s, color 0.2s;
}

.btn-regenerate:hover { background: var(--secondary-color); color: white; }

/* --- Tendances --- */
.tendances-card { margin-bottom: 20px; }

.tendance-bar-wrap {
    margin: 14px 0 6px;
    border-radius: 8px;
    overflow: hidden;
    height: 38px;
    display: flex;
}

.tendance-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.95em;
    font-weight: 700;
    transition: width 0.6s ease;
    min-width: 28px;

    /* Texte adaptatif : blanc sur fond sombre, noir sur fond clair */
    color: white;
    text-shadow:
        0 0 3px rgba(0,0,0,0.5),
        0 1px 2px rgba(0,0,0,0.6);

    /* Liseré discret systématique : permet de distinguer le segment du fond
       de la carte même quand la couleur d'équipe est blanche/très claire.
       Quasi invisible sur les couleurs saturées/foncées. */
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

.tendance-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
}

.topscore-grid { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

.topscore-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-size: 0.88em;
    border: 1px solid transparent;
    transition: border-color 0.15s;
}

.topscore-row:hover { border-color: var(--border); }
.topscore-row strong { font-family: var(--font-display); font-size: 1.1em; letter-spacing: -0.5px; }
.topscore-row span   { color: var(--text-muted); font-size: 0.85em; }

.topscore-row--mine {
    background: color-mix(in srgb, var(--primary-color, #2563eb) 10%, transparent);
    border-left: 3px solid var(--primary-color, #2563eb);
    padding-left: 11px;
}

.topscore-badge-mine {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    background: var(--primary-color, #2563eb);
    color: #fff;
    vertical-align: middle;
    white-space: nowrap;
}

.topscore-separator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: var(--text-muted, #6b7280);
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.topscore-separator::before,
.topscore-separator::after {
    content: '';
    flex: 1;
    border-top: 1px dashed var(--border, #e5e7eb);
}

.topscore-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Impact des changements --- */
.impact-card { margin-bottom: 20px; }

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

.impact-col-title {
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.impact-col-title.green { color: var(--green); border-bottom: 2px solid var(--green); }
.impact-col-title.red   { color: var(--red);   border-bottom: 2px solid var(--red); }
.impact-col-title.orange { color: #d97706; border-bottom: 2px solid #d97706; }

.impact-item {
    padding: 11px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.impact-item.gain { background: var(--green-light); border: 1px solid #bbf7d0; }
.impact-item.loss { background: var(--red-light);   border: 1px solid #fecaca; }

.impact-item-label        { font-size: 0.82em; font-weight: 600; }
.impact-item-label.gain   { color: #166534; }
.impact-item-label.loss   { color: #991b1b; }

.impact-toggle-btn {
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.73em;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.impact-toggle-btn:hover { opacity: 0.85; }
.impact-toggle-btn.gain  { background: var(--green); color: white; }
.impact-toggle-btn.loss  { background: var(--red);   color: white; }

.impact-names {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 0.82em;
    line-height: 1.6;
}

.impact-names.gain { color: #166534; }
.impact-names.loss { color: #991b1b; }

.impact-empty { color: var(--text-muted); font-size: 0.85em; font-style: italic; padding-top: 6px; }


/* ==========================================================================
   7. CLASSEMENTS & GROUPES
   ========================================================================== */
.groups-container,
.grille-groupes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.group-box {
    flex: 1 1 300px;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.group-title {
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
}

/* Tableau classement */
.table-classement {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.table-classement th {
    padding: 10px 5px;
    color: #666;
    font-size: 0.8em;
    text-transform: uppercase;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.table-classement td {
    padding: 12px 5px;
    text-align: center;
    border-bottom: 1px solid #f2f2f2;
}

.table-classement tr:hover { background-color: #fcfcfc; }

/* Cellule équipe (logo + nom) */
.equipe-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left !important;
    min-width: 140px;
}

.rang { width: 50px; font-weight: bold; color: #bdc3c7; }

/* Lignes qualifiés / favoris / recherche */
.qualifie        { background-color: #f0f7ff; }
.highlight-search { background-color: #ffffcc !important; }
.highlight-me    { background-color: #fff3e0 !important; border-left: 4px solid var(--warning-color); }
.row-favori,
tr.is-favorite   { background-color: #fff9c4 !important; transition: background-color 0.3s ease; }

tr.is-favorite td { border-bottom: 1px solid var(--secondary-color); }

.badge-pts {
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Étoile favori */
.star-fav {
    width: 16px;
    cursor: pointer;
    vertical-align: middle;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
    transition: transform 0.2s;
}

.star-fav:hover { transform: scale(1.3) rotate(15deg); }

/* Boutons filtres */
.btn-filter {
    text-decoration: none;
    font-size: 0.8em;
    padding: 5px 12px;
    border-radius: 15px;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-left: 5px;
    transition: all 0.2s;
}

.btn-filter:hover  { background: #eef; }
.btn-filter.active { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; font-weight: bold; }

/* Couleur de recherche : Rouge vif pour être immanquable */
.search-match {
    background-color: var(--primary-color)!important; 
    color: white !important;
}

/* On force le texte et les liens en blanc dans la ligne rouge */
.search-match td, 
.search-match a, 
.search-match b {
    color: white !important;
}

/* Style pour le lieu à côté du nom */
.lieu-tag {
    font-size: 0.7em;
    color: #858585;
    font-weight: normal;
    margin-left: 10px;
    opacity: 0.6;
}

/* On masque le lieu sur les écrans de moins de 600px (mobiles) */
@media (max-width: 600px) {
    .lieu-tag {
        display: none;
    }
}

/* Quand la ligne est en rouge (recherche), on force le lieu en blanc */
.search-match .lieu-tag {
    color: white !important;
    opacity: 0.9;
}
/* ==========================================================================
   8. FORMULAIRES & INPUTS
   ========================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
}

tr:nth-child(even) { background-color: #f2f2f2; }

.table-login td {
    padding-bottom: 12px;
    vertical-align: middle;
}

input[type=text],
input[type=number],
select {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input.prono {
    width: 40px;
    text-align: center;
    display: inline-block;
}

input[type=submit],
button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Inputs de score dans les cartes de saisie */
.score-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.score-inputs input {
    width: 45px;
    height: 40px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 5px;
}

/* Bloc équipe (saisie) */
.team-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.team-input.home { justify-content: flex-start; }
.team-input.away { flex-direction: row-reverse; justify-content: flex-end; text-align: right; }


/* ==========================================================================
   9. FORUM & MESSAGES
   ========================================================================== */
.forum-container {
    max-width: 850px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
    border-radius: 20px;
}

/* Carte message */
.msg-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease;
}

.msg-card:hover { transform: translateY(-2px); }

/* En-tête */
.msg-header,
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.author-info strong,
.author strong { color: var(--primary-color); font-size: 1.1em; }
.author small   { color: #888; margin-left: 10px; }
.date-info      { color: #999; font-size: 0.85em; margin-left: 10px; }

/* Corps */
.msg-body,
.message-body {
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 1.05em;
    word-wrap: break-word;
}

/* Citations */
.msg-body blockquote,
.citation {
    background: #fdfdfd;
    border-left: 4px solid var(--secondary-color);
    margin: 15px 0;
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 0.95em;
    color: #555;
}

.msg-body q {
    display: block;
    margin-bottom: 8px;
    color: #777;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 5px;
}

/* Footer & likes */
.msg-footer,
.message-footer {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.message-footer { justify-content: flex-end; }

.like-section,
.like-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    padding: 5px 10px;
    border-radius: 20px;
    background: #fff9f0;
    transition: background 0.3s;
    font-weight: bold;
    color: var(--warning-color);
}

.like-section:hover,
.like-link:hover { background: #ffe0b2; }

.like-count { color: var(--secondary-color); font-weight: bold; font-size: 0.9em; }

/* Boutons d'action (Modifier / Répondre) */
.btn-action {
    opacity: 0.6;
    display: inline-block;
    transition: all 0.3s;
}

.btn-action:hover { opacity: 1; transform: scale(1.2); }

/* Header action (titre + bouton) */
.header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Carte message avec liseré */
.message-item { border-left: 5px solid var(--primary-color); margin-bottom: 15px !important; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.page-link {
    padding: 8px 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: bold;
    transition: 0.3s;
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
}

.page-link:hover:not(.active) {
    background: var(--secondary-color);
    color: white;
}


/* ==========================================================================
   10. PRONOSTICS (page saisie)
   ========================================================================== */
.prono-link {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 6px 8px;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.prono-link:hover                { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white !important; }
.prono-link:hover span           { color: white !important; }

.final-pred {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.sim-tag { color: var(--warning-color); font-weight: bold; }


/* ==========================================================================
   11. SIMULATION & ALERTES
   ========================================================================== */
.simulation-banner {
    background: var(--warning-color);
    color: #000;
    text-align: center;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-bottom: 2px solid #e67e22;
}

.btn-reset-sim {
    background: #000;
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8em;
    margin-left: 10px;
}

.simulation-banner .icon { animation: blink-warning 1s infinite; }

/* Fade-in générique */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}


/* ==========================================================================
   12. ANIMATIONS
   ========================================================================== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

@keyframes blinker {
    50% { opacity: 0; }
}

@keyframes blink-warning {
    50% { opacity: 0; }
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); box-shadow: 0 0 8px var(--danger-color); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}


/* ==========================================================================
   13. RESPONSIVE (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* Header */
    .header {
        border-radius: 8px 8px 0 0;
        padding: 10px 14px;
    }

    .header-title { font-size: 1.7rem; }

    .cdm-logo { height: 40px !important; width: auto !important; }

    /* Wrapper menu : annule la compensation de padding sur mobile */
    .header-navbar-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    /* Burger */
    .nav-burger { display: flex; }

    /* Nav items cachés par défaut, affichés en colonne au clic */
    .nav-inner {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 6px 0 10px;
    }

    .nav-inner.open { display: flex; }

    .nav-item { width: 100%; }

    .nav-link {
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        font-size: 1.05em;
        justify-content: space-between;
    }

    .nav-link-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        border-left: 3px solid var(--accent-color);
        background: rgba(0,0,0,.18);
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    /* Sur mobile, hover désactivé → uniquement le clic (classe .open) */
    .nav-item:hover > .nav-dropdown { display: none; }
    .nav-item.open  > .nav-dropdown { display: block; }

    .nav-dropdown a {
        color: rgba(255,255,255,.82);
        padding: 10px 20px 10px 30px;
    }

    .nav-dropdown a:hover {
        color: #fff;
        background: rgba(255,255,255,.08);
        padding-left: 36px;
    }

    .nav-dropdown a .dd-icon { color: var(--accent-color); }
    .nav-dropdown .dd-sep    { background: rgba(255,255,255,.12); }

    .user-panel {
        flex-wrap: wrap;
        justify-content: center;
    }

    .user-info { align-items: center; }

    /* Layout */
    .description-body { flex-direction: column; }
    .description-body > div { flex: none; width: 100%; }
    .grille-groupes,
    .groups-container { grid-template-columns: 1fr; }
    .match-grid { display: flex; flex-direction: column; gap: 15px; padding: 5px; }

    /* Cartes */
    .card {
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px !important;
    }

    /* Équipes & scores */
    .match-main { gap: 5px; }

    .score-inputs input { width: 35px !important; padding: 5px 2px !important; font-size: 1em !important; }

    /* Stats match — layout */
.sm-layout { grid-template-columns: 1fr; padding: 0; gap: 16px; }
.sm-sidebar, .sm-card { width: 100%; box-sizing: border-box; }
    /* Stats match — hero */
    .match-hero-body { padding: 16px 10px; }
    .team-logo       { width: 50px; height: 50px; }
    .score-main      { font-size: 2.2em; }
    .score-col       { padding: 0 10px; min-width: 110px; }

    /* Stats match — analyse */
    .analyse-grid { grid-template-columns: 1fr; }

    /* Stats match — impact */
    .impact-grid { grid-template-columns: 1fr; padding: 14px; }
}

@media (max-width: 500px) {
    .match-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14. ADMINISTRATION
   Pages d'admin : profils, badges, paramètres
   ========================================================================== */

/* Grille de cartes admin */
.admin-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* Carte admin (étend .card) */
.admin-card.inactif { opacity: 0.5; }

/* En-tête de carte avec toggle */
.admin-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.admin-card-header .card-nom {
    flex: 1;
    font-weight: 700;
    font-size: 1em;
    color: var(--text-dark);
}

/* Aperçu icône coloré (profils & badges) */
.icone-preview {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

/* Pill type profil / badge */
.pill-type {
    font-size: 0.65em;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pill-type.profil { background: var(--blue-light);   color: var(--blue); }
.pill-type.badge  { background: var(--yellow-light); color: var(--yellow); }

/* Toggle switch on/off */
.toggle-switch {
    position: relative;
    width: 42px; height: 22px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-switch .slider {
    position: absolute; inset: 0;
    background: #ccc; border-radius: 22px;
    cursor: pointer; transition: .3s;
}
.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 3px; bottom: 3px;
    background: white; border-radius: 50%;
    transition: .3s;

}
.toggle-switch input:checked + .slider { background: var(--green); }
.toggle-switch input:checked + .slider::before { transform: translateX(20px); }

/* Grilles de champs dans les formulaires admin */
.champs-2 { display: grid; grid-template-columns: 1fr 1fr;         gap: 8px; margin-bottom: 10px; }
.champs-3 { display: grid; grid-template-columns: 1fr 1fr 1fr;     gap: 6px; }
.champs-c { display: grid; grid-template-columns: auto auto 1fr;   gap: 8px; align-items: end; margin-bottom: 10px; }

/* Champ label + input générique admin */
.champ { display: flex; flex-direction: column; gap: 3px; }
.champ label {
    font-size: 0.68em;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.champ input[type=number],
.champ input[type=text],
.champ textarea {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    font-size: 0.85em;
    color: var(--text-dark);
    width: 100%;
    font-family: inherit;
    transition: border-color 0.2s;
}
.champ input:focus,
.champ textarea:focus { outline: none; border-color: var(--secondary-color); }
.champ textarea { resize: vertical; min-height: 46px; }
.champ input[type=color] {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 4px; height: 34px; width: 52px;
    cursor: pointer;
}
.champ .aide {
    font-size: 0.65em;
    color: var(--text-muted);
    line-height: 1.3;
    font-style: italic;
}
.champ-desc { margin-bottom: 10px; }

/* Bloc seuils Bronze / Argent / Or */
.seuils-bloc {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 10px 0;
}
.seuils-titre {
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.niveau-bronze label { color: #cd7f32             !important; }
.niveau-silver label { color: var(--text-secondary) !important; }
.niveau-gold   label { color: var(--yellow)         !important; }

/* Onglets admin */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 0; }
.admin-tab-btn {
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    background: var(--surface-3);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.admin-tab-btn.active {
    background: var(--surface-1);
    color: var(--primary-color);
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* Boutons admin */
.btn-admin-save {
    width: 100%;
    padding: 9px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-admin-save:hover { background: var(--secondary-color); }

.btn-admin-danger {
    padding: 10px 20px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
}
.btn-admin-danger:hover { background: var(--danger-hover); }

/* Message flash admin */
.flash-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9em;
    font-weight: 600;
}
.flash-msg.success { background: var(--green-light); color: var(--green); border: 1px solid #a9dfbf; }
.flash-msg.error   { background: var(--red-light);   color: var(--red);   border: 1px solid #f1948a; }

/* Responsive admin */
@media (max-width: 600px) {
    .admin-grille           { grid-template-columns: 1fr; }
    .champs-2, .champs-3   { grid-template-columns: 1fr; }
    .champs-c               { grid-template-columns: auto auto; }
}

/* Explication du calcul (bloc bleu sous chaque profil) */
.explication-calcul {
    background: var(--blue-light);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 8px 12px;
    margin-bottom: 10px;
}
.explication-titre {
    font-size: 0.72em; font-weight: 700;
    color: var(--blue); margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.explication-texte { font-size: 0.78em; color: #1a4a7a; line-height: 1.5; }

/* Simulateur de score en temps réel */
.simulateur {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-top: 8px;
}
.sim-input {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 4px 8px; font-size: 0.82em; width: 80px;
}
.sim-result { display: flex; align-items: baseline; gap: 2px; }
.sim-score  { font-size: 1.4em; font-weight: 900; color: var(--primary-color); }
.sim-label  { font-size: 0.75em; color: var(--text-muted); }

.sim-barre-wrap {
    position: relative;
    height: 8px; background: #e0e0e0;
    border-radius: 4px; margin: 6px 0 4px;
    overflow: visible;
}
.sim-barre {
    height: 100%; border-radius: 4px;
    background: linear-gradient(to right, var(--green), var(--primary-color));
    transition: width 0.2s; width: 0%;
}
.sim-seuil {
    position: absolute; top: -3px;
    width: 2px; height: 14px;
    background: var(--danger-color);
    transform: translateX(-50%);
}

/* Accordéon natif <details> dans les cartes admin */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { color: var(--secondary-color); }

/* STATISTIQUES */

/* ── Variables locales (hérite du style_unifie.css du site) ── */
.stats-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* ── Bandeau intro ───────────────────────────────────────────*/
.stats-bandeau {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.stats-bandeau h2 {
    margin: 0;
    font-size: 1.2em;
    font-family: 'Salsa', cursive;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sb-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.sb-chip {
    background: rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .82em;
    font-weight: bold;
    white-space: nowrap;
}
.sb-update { font-size: .72em; opacity: .75; margin-top: 4px; }

    /* Totaux */
    .total-bar {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--primary-color);
        color: #fff;
        padding: 4px 14px;
        border-radius: 20px;
        font-size: 0.82rem;
        font-weight: 700;
    }
/* ── Titre de section ────────────────────────────────────────*/
.stats-section-titre {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary-color);
}
.stats-section-titre h3 {
    margin: 0;
    font-size: 1.05em;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── CHIFFRES FOUS ───────────────────────────────────────────*/
.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.chiffre-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 18px 16px;
    border-top: 4px solid var(--primary-color);
    transition: box-shadow .2s, transform .15s;
}
.chiffre-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.chiffre-card.c-vert   { border-top-color: #27ae60; }
.chiffre-card.c-rouge  { border-top-color: #e74c3c; }
.chiffre-card.c-orange { border-top-color: #f39c12; }
.chiffre-card.c-violet { border-top-color: #8e44ad; }
.chiffre-card.c-gris   { border-top-color: #7f8c8d; }

.cc-emoji  { font-size: 1.6em; margin-bottom: 8px; display: block; }
.cc-valeur {
    font-size: 2.2em; font-weight: 900; color: var(--primary-color);
    line-height: 1; font-family: 'Salsa', cursive;
}
.cc-valeur.vert   { color: #27ae60; }
.cc-valeur.rouge  { color: #e74c3c; }
.cc-valeur.orange { color: #f39c12; }
.cc-valeur.violet { color: #8e44ad; }
.cc-valeur.gris   { color: #7f8c8d; }

.cc-label  { font-size: .75em; color: #888; margin: 4px 0 10px; line-height: 1.4; }
.cc-joueur {
    display: inline-flex; align-items: center; gap: 5px;
    background: #f4f6f8; border-radius: 20px;
    padding: 3px 10px; font-size: .75em; font-weight: bold; color: #444;
}
.cc-joueur i { color: var(--primary-color); }

.score-pill {
    display: inline-block;
    font-size: 1.6em; font-weight: 900;
    background: #f4f6f8; border-radius: 6px;
    padding: 2px 12px; color: var(--primary-color);
    font-family: 'Salsa', cursive; letter-spacing: .05em;
}
.pct-bar-bg  { height: 6px; background: #eee; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.pct-bar-fill { height: 100%; border-radius: 99px; transition: width 1s ease; }

/* ── GALERIE PROFILS ─────────────────────────────────────────*/
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 12px;
}
.galerie-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 14px 14px;
    transition: box-shadow .2s, transform .15s;
}
.galerie-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); transform: translateY(-2px); }

.gc-header { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.gc-icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .95em; flex-shrink: 0;
}
.gc-titre { font-weight: 900; font-size: .88em; color: #222; line-height: 1.2; }
.gc-desc  { font-size: .70em; color: #888; margin-top: 1px; line-height: 1.3; }

.gc-nb-wrap { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 4px; }
.gc-nb  { font-size: 2em; font-weight: 900; line-height: 1; font-family: 'Salsa', cursive; }
.gc-pct { font-size: .72em; color: #888; }

.gc-bar-bg   { height: 4px; background: #eee; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.gc-bar-fill { height: 100%; border-radius: 99px; }

.gc-joueurs  { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid #f0f0f0; padding-top: 8px; }
.gc-joueur   { font-size: .72em; color: #777; display: flex; justify-content: space-between; }
.gc-joueur strong { color: #333; }
.gc-joueur .pts   { color: var(--primary-color); font-weight: bold; }

/* ── MUR DES BADGES ──────────────────────────────────────────*/
.mur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
}
.mur-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 14px 12px 12px; text-align: center;
    transition: box-shadow .2s, transform .15s; position: relative;
}
.mur-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); transform: translateY(-2px); }

.mc-niveau {
    position: absolute; top: 8px; right: 8px;
    font-size: .65em; font-weight: bold;
    padding: 2px 6px; border-radius: 99px; border: 1px solid;
}
.mc-icone {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1em; margin: 6px auto 8px;
}
.mc-badge-titre { font-size: .70em; color: #666; margin-bottom: 5px; line-height: 1.3; }
.mc-login { font-size: .75em; font-weight: 900; color: #222; margin-bottom: 2px; }
.mc-pts   { font-size: .72em; color: #888; }

/* ── Vide / footer ───────────────────────────────────────────*/
.stats-vide {
    text-align: center; padding: 60px 20px;
    background: #fff; border-radius: 8px; border: 1px solid #e0e0e0;
}
.stats-vide i  { font-size: 2.5em; color: #ccc; display: block; margin-bottom: 12px; }
.stats-vide h3 { color: #555; margin-bottom: 6px; }
.stats-vide p  { font-size: .85em; color: #888; line-height: 1.7; }

.stats-footer {
    text-align: center; margin-top: 36px;
    font-size: .75em; color: #aaa;
    padding-top: 14px; border-top: 1px solid #eee;
}

/* ── Animations légères ──────────────────────────────────────*/
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chiffre-card { animation: fadeUp .3s ease both; }
.chiffre-card:nth-child(1) { animation-delay: .04s; }
.chiffre-card:nth-child(2) { animation-delay: .08s; }
.chiffre-card:nth-child(3) { animation-delay: .12s; }
.chiffre-card:nth-child(4) { animation-delay: .16s; }
.chiffre-card:nth-child(5) { animation-delay: .20s; }
.chiffre-card:nth-child(6) { animation-delay: .24s; }

/* ── Responsive ──────────────────────────────────────────────*/
@media (max-width: 600px) {
    .chiffres-grid { grid-template-columns: 1fr 1fr; }
    .galerie-grid  { grid-template-columns: 1fr 1fr; }
    .mur-grid      { grid-template-columns: 1fr 1fr; }
    .stats-bandeau { flex-direction: column; align-items: flex-start; }
}

.lineups-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.lineup-column {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.formation-badge {
    background: #333;
    color: #fff;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.player-list {
    list-style: none;
    padding: 0;
}

.player-list li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.player-number {
    display: inline-block;
    width: 20px;
    font-weight: bold;
    color: #007bff;
}

.starter {
    font-weight: 500;
}

.sub {
    color: #666;
    font-style: italic;
    background-color: #f1f1f1;
    padding-left: 5px !important;
}

.bench-tag {
    font-size: 0.7em;
    color: #999;
}

/* ==========================================================================
   15. PAGE CONTACT
   ========================================================================== */

.contact-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.contact-intro {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

.contact-intro .contact-intro-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-sender-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00336C 0%, #0055a5 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-bottom: 22px;
    font-size: 0.9em;
    font-weight: 500;
}

.contact-sender-badge i { font-size: 1.3em; opacity: .85; }
.contact-sender-badge strong { font-size: 1em; }

/* Grille champs */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.contact-form-grid.full { grid-template-columns: 1fr; }

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-field label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95em;
    color: var(--text-dark);
    background: var(--surface-1);
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.12);
}

.contact-field textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-contact-send {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,51,108,.25);
    transition: transform .18s, box-shadow .18s, opacity .18s;
}

.btn-contact-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,51,108,.32);
    opacity: .93;
}

.btn-contact-send:active { transform: translateY(0); }

/* Succès */
.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.contact-success-icon {
    font-size: 3.5rem;
    color: var(--green);
    margin-bottom: 16px;
}

.contact-success h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 10px;
    text-transform: uppercase;
}

.contact-success p {
    color: var(--text-secondary);
    font-size: 1em;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-contact-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity .18s, transform .18s;
}

.btn-contact-back:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }

@media (max-width: 600px) {
    .contact-form-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   16. PAGE RÉSULTATS
   ========================================================================== */

/* ── Filtres ── */
.filtres-wrap { margin-bottom: 28px; }

.comp-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.comp-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--surface-1);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.92em;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.comp-tab:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
}

.comp-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 51, 108, .25);
}

.comp-tab .tab-emoji { font-size: 1.1em; line-height: 1; }

.sous-filtres {
    display: none;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    animation: slideDown .2s ease;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sous-filtres.visible { display: flex; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sous-filtres label {
    font-family: var(--font-body);
    font-size: 0.8em;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pills-scroll {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.pill-btn {
    padding: 5px 13px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--surface-1);
    color: var(--text-dark);
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

.pill-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
}

.pill-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
}

.pill-reset {
    color: var(--text-muted);
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 50px;
    border: 1.5px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
}

.pill-reset:hover {
    color: var(--danger-color);
    border-color: var(--danger-color);
    text-decoration: none;
}

/* ── Cartes résultats — héritent du système unifié section 5 ── */
.res-carte {
    border: 1px solid var(--border);
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    background: var(--surface-1);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s, transform .15s;
    overflow: hidden;
}

.res-carte:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.res-lien {
    text-decoration: none;
    color: inherit;
    display: block;
}
.res-lien:hover { text-decoration: none; }

/* En-tête résultats */
.res-match-haut {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78em;
    color: var(--text-muted);
    padding: 6px 14px 7px;
    border-bottom: 1px solid var(--border);
    gap: 6px;
    flex-wrap: wrap;
}

/* Corps résultats — réutilise .match-corps */
.res-match-corps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 6px;
}

/* Équipes résultats — alias vers .equipe */
.res-equipe {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.res-domicile {
    justify-content: flex-start;
    flex-direction: row; /* logo puis nom */
}

.res-exterieur {
    justify-content: flex-end;
    flex-direction: row; /* nom puis logo → logo à droite */
}

.res-nom-equipe {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92em;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.res-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Score résultats */
.res-score-bloc {
    flex: 0 0 110px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3em;
    color: var(--primary-color);
    letter-spacing: .03em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.res-score-chiffres {
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 3px;
}

.res-score-tiret {
    color: var(--text-muted);
    font-size: 1.1em;
}

.res-penos {
    font-size: 0.55em;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 400;
    margin-top: 2px;
}

.res-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fee2e2;
    color: var(--red);
    font-size: 0.75em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    letter-spacing: .02em;
}

.res-badge-stage {
    font-size: 0.75em;
    color: var(--text-muted);
    background: var(--surface-3);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 500;
}

/* ── Responsive résultats ≤ 520px ── */
@media (max-width: 520px) {
    .comp-tab     { padding: 8px 12px; font-size: 0.82em; }
    .sous-filtres { padding: 12px 14px; }
    .pills-scroll { gap: 5px; }

    .liste-matchs { grid-template-columns: 1fr; }

    .res-match-corps { padding: 8px 8px; }

    /* Équipes en colonne : logo en haut, nom en bas */
    .res-equipe {
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        max-width: 80px;
    }
    .res-domicile  { flex-direction: column !important; }
    .res-exterieur { flex-direction: column-reverse !important; }

    .res-nom-equipe {
        font-size: 0.72em;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }
    .res-logo       { width: 28px; height: 28px; }
    .res-score-bloc { flex: 0 0 80px; font-size: 1.1em; }
}

@media (max-width: 600px) {
    .comp-tab     { padding: 8px 12px; font-size: 0.82em; }
    .sous-filtres { padding: 12px 14px; }
    .pills-scroll { gap: 5px; }
}

/* ==========================================================================
   17. PROFIL STATS (include_profil_stats.php)
   Composant réutilisable inclus dans mon_compte.php et statistiques.php
   ========================================================================== */

/* ── Conteneur racine ── */
.profil-stats-wrap {
    /* neutralise le padding du card-body parent sur mon_compte */
    --ps-gap: 16px;
}

/* ── Carte chiffres rapides (rang / points / pronos) ── */
.ps-quickstats-card {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    padding: 14px 18px;
}
/* Dans .gauche : les 3 blocs forment un seul ensemble visuel */
.gauche .ps-quickstats-card {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-top: 4px solid var(--primary-color);
    border-bottom: none;
    box-shadow: var(--shadow-sm);
    margin: 0;
    padding-bottom: 14px;
}

.gauche .ps-style-card {
    border-top: 1px solid var(--border);
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    padding-top: 14px;
}

.gauche .ps-voir-stats-btn {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: 0;
}


/* Dans mon_compte, première carte : coins arrondis en haut */
.compte-card .card-body > .ps-quickstats-card:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.ps-qs-grid {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
}

.ps-qs-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.ps-qs-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: .01em;
}

.ps-qs-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ps-qs-label i {
    font-size: .85em;
    opacity: .7;
}

.ps-qs-sep {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* Coloration spécifique par stat */
.ps-qs-item:nth-child(1) .ps-qs-value { color: var(--warning-color); }
.ps-qs-item:nth-child(3) .ps-qs-value { color: var(--primary-color); }
.ps-qs-item:nth-child(5) .ps-qs-value { color: var(--green); }

/* ── Carte profil principal (style du parieur) ── */
.ps-style-card {
    border-top: 4px solid var(--primary-color);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ps-style-card h3,
.ps-badges-card h3,
.ps-perf-card h3,
.ps-evo-card h3,
.ps-series-card h3 {
    margin-top: 0;
    font-size: 1.05em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icône + titre du profil */
.ps-profil-body {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ps-profil-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7em;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.ps-profil-text {
    flex: 1;
    min-width: 0;
}

.ps-profil-titre {
    font-size: 1.25em;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    font-family: var(--font-display);
    letter-spacing: .02em;
}

.ps-profil-desc {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin: 5px 0 0;
    line-height: 1.3;
    font-style: italic;
}

.ps-profil-meta {
    margin-top: 7px;
    font-size: 0.7em;
    color: var(--text-muted);
}

/* ── Badges ── */
.ps-badges-card {
    border-top: 4px solid var(--warning-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.ps-badges-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ps-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    border-width: 1px;
    border-style: solid;
}

.ps-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15em;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ps-badge-body {
    flex: 1;
    min-width: 0;
}

.ps-badge-titre {
    font-weight: 800;
    font-size: 0.87em;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.ps-badge-desc {
    font-size: 0.72em;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.3;
}

.ps-badge-stars {
    font-size: 0.9em;
    flex-shrink: 0;
    letter-spacing: 1px;
}

/* ── Performance ── */
.ps-perf-card {
    border-top: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

/* Rangée de 4 compteurs Exacts / Bons / Ratés / Précision */
.ps-perf-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ps-perf-cell {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
}

.ps-perf-value {
    font-size: 1.3em;
    font-weight: 800;
    display: block;
    line-height: 1;
    font-family: var(--font-display);
}

.ps-perf-label {
    font-size: 0.6em;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: .04em;
    margin-top: 3px;
    display: block;
}

/* Barre de progression Exacts / Bons / Ratés */
.ps-perf-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--border);
}

.ps-perf-bar-exact  { background: #2e7d32; }
.ps-perf-bar-bon    { background: #f9a825; }
.ps-perf-bar-rate   { background: #d32f2f; }

/* ── Évolution du rang ── */
.ps-evo-card {
    border-top: 4px solid var(--primary-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.ps-chart-wrap {
    position: relative;
    height: 180px;
    width: 100%;
    max-width: 100%;   /* pleine largeur au lieu de 280px fixe */
    margin: 0 auto;
}

/* ── Séries ── */
.ps-series-card {
    border-top: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.ps-series-body {
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    padding: 4px 0 8px;
}

.ps-series-sep {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

.ps-series-label {
    font-size: 0.7em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    letter-spacing: .04em;
}

.ps-series-value {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    font-family: var(--font-display);
}

.ps-series-sub {
    font-size: 0.65em;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ── Intégration dans mon_compte (card-body padding:0) ── */
.compte-card .card-body .card.ps-style-card:first-child,
.compte-card .card-body .card:first-child {
    margin-top: 0;
}

.compte-card .card-body > .card {
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
    padding: 16px 18px;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.compte-card .card-body > .card:last-of-type {
    border-bottom: none;
}

/* ── Intégration dans statistiques.php (colonne latérale) ──
   Sur la page stats, le include est dans un .gauche ou équivalent :
   on peut élargir un peu le chart dans ce contexte */
.stats-profil-col .ps-chart-wrap {
    max-width: 100%;
}

/* ── RESPONSIVE ── */

/* Tablette : légère compression */
@media (max-width: 900px) {
    .ps-perf-grid {
        gap: 6px;
    }
    .ps-perf-value {
        font-size: 1.15em;
    }
}

/* Mobile */
@media (max-width: 640px) {

    /* Chiffres rapides */
    .ps-qs-value  { font-size: 1.6rem; }
    .ps-qs-label  { font-size: 0.62rem; }
    .ps-qs-sep    { height: 28px; }

/* Profil principal */
.ps-profil-body {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

    .ps-profil-icon {
        width: 44px;
        height: 44px;
        font-size: 1.4em;
    }

    .ps-profil-titre {
        font-size: 1.1em;
    }

    /* Compteurs perf : restent sur une ligne mais plus compacts */
    .ps-perf-grid {
        gap: 5px;
    }

    .ps-perf-cell {
        padding: 7px 2px;
    }

    .ps-perf-value {
        font-size: 1.1em;
    }

    .ps-perf-label {
        font-size: 0.55em;
    }

    /* Chart : hauteur réduite */
    .ps-chart-wrap {
        height: 140px;
    }

    /* Badges : icône un peu plus petite */
    .ps-badge-icon {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

    .ps-badge-titre {
        font-size: 0.82em;
    }

    .ps-badge-desc {
        font-size: 0.68em;
    }

    /* Séries */
    .ps-series-value {
        font-size: 1.5em;
    }

    /* Dans mon_compte : supprimer le padding latéral des cards incluses */
    .compte-card .card-body > .card {
        padding: 12px 14px;
    }
}

/* ── match.php / saisie.php : stats complètes sur PC, compact sur mobile ──
   Le masquage de .ps-badges-card / .ps-perf-card / .ps-evo-card / .ps-series-card
   sur mobile (≤ 900px) est géré par le <style> inline de include_profil_stats.php,
   conditionné par $profil_complet (caché sur match.php/saisie.php, affiché sur statistiques.php).
   Ne PAS dupliquer cette règle ici en inconditionnel : ça écraserait l'affichage
   complet voulu sur statistiques.php.
   Sur PC (> 900px) : tout affiché, le bouton "Statistiques complètes" est superflu → masqué. */
@media (min-width: 901px) {
    .ps-voir-stats-btn--mobile-only {
        display: none !important;
    }
}

/* Très petit mobile */
@media (max-width: 380px) {
    .ps-perf-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .ps-perf-cell {
        padding: 8px 6px;
        border-radius: 6px;
    }

    .ps-series-body {
        gap: 8px;
    }
}



/* ── Liens joueurs cliquables (statistiques.php) ── */
.stats-joueur-lien {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-color);
    transition: color .15s, border-color .15s;
}

.stats-joueur-lien:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    text-decoration: none;
}

/* Lien dans .cc-joueur (chiffres fous) */
.cc-joueur .stats-joueur-lien {
    color: inherit;
    font-weight: 700;
    border-bottom-color: rgba(255,255,255,.5);
}

.cc-joueur .stats-joueur-lien:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Lien dans .gc-joueur (galerie profils) et .mc-login (mur badges) */
.gc-joueur .stats-joueur-lien,
.mc-login .stats-joueur-lien {
    color: var(--primary-color);
    border-bottom-color: var(--border);
}

.gc-joueur .stats-joueur-lien:hover,
.mc-login .stats-joueur-lien:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* ── Bouton "Voir mes statistiques complètes" (mon_compte.php) ── */
.ps-voir-stats-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    /* Motif de points subtil */
    background-image:
        radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: 18px 18px, 100% 100%;
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 1px solid rgba(255,255,255,.12);
    transition: background-position .4s ease, box-shadow .2s;
    position: relative;
    overflow: hidden;
}

.ps-voir-stats-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .2s;
}

.ps-voir-stats-btn:hover::before {
    background: rgba(255,255,255,.06);
}

.ps-voir-stats-btn:hover {
    text-decoration: none;
    color: #fff;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
}

/* Icône ronde à gauche */
.ps-vsb-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.2);
    transition: background .2s, transform .2s;
}

.ps-voir-stats-btn:hover .ps-vsb-icon {
    background: rgba(255,255,255,.25);
    transform: scale(1.08);
}

/* Texte central */
.ps-vsb-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ps-vsb-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}

.ps-vsb-sub {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 400;
    opacity: .72;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Flèche à droite */
.ps-vsb-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8em;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.2);
    transition: transform .22s ease, background .2s;
}

.ps-voir-stats-btn:hover .ps-vsb-arrow {
    transform: translateX(4px);
    background: rgba(255,255,255,.25);
}

/* ==========================================================================
   18. PAGE CONNECTÉS — STATS DU JOUR
   ========================================================================== */

/* Titre section stats */
.stats-jour-titre {
    font-family: var(--font-display);
    font-size: 1.4em;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grille KPI */
.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stats-kpi-card {
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.stats-kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.stats-kpi-green  { background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); color:#fff; }
.stats-kpi-blue   { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); color:#fff; }
.stats-kpi-yellow { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); color:#fff; }
.stats-kpi-purple { background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%); color:#fff; }

.stats-kpi-icon  { font-size: 2em; margin-bottom: 6px; }
.stats-kpi-value {
    font-family: var(--font-display);
    font-size: 1.7em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    word-break: break-word;
}
.stats-kpi-label {
    font-size: .78em;
    opacity: .88;
    line-height: 1.3;
}

/* Layout bas (graphe + liste) */
.stats-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 700px) {
    .stats-bottom-grid { grid-template-columns: 1fr; }
}

/* Titre interne de section */
.stats-section-title {
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Graphique barres ─────────────────────────────────── */
.stats-graph-card { padding: 20px; }

.stats-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 120px;
    position: relative;
}

.stats-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    cursor: default;
    gap: 0;
}

/* Zone barres : occupe toute la hauteur sauf le label en bas */
.stats-bar-area {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-height: 0;
}

.stats-bar {
    width: 100%;
    max-width: 22px;
    background: var(--secondary-color);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: background .2s;
}
.stats-bar-peak {
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(255,204,0,.5);
}
.stats-bar-wrap:hover .stats-bar { background: var(--primary-color); }
.stats-bar-wrap:hover .stats-bar-peak { background: #e6b800; }

.stats-bar-val {
    font-size: .6em;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* Label abscisse : HORS du flux des barres, collé en bas */
.stats-bar-label {
    font-size: .6em;
    color: var(--text-muted);
    white-space: nowrap;
    line-height: 1;
    height: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Liste joueurs ───────────────────────────────────── */
.stats-list-card  { padding: 20px; }

.stats-player-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

.stats-player-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: background .15s;
}
.stats-player-row:hover { background: var(--surface-3); }

.stats-player-rank {
    font-family: var(--font-display);
    font-size: .75em;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 18px;
    text-align: right;
}

.stats-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: .85em;
    font-weight: 800;
    flex-shrink: 0;
}

.stats-player-name {
    flex: 1;
    font-size: .88em;
    font-weight: 600;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-player-time {
    font-size: .78em;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 400px) {
    .ps-vsb-sub { display: none; }
    .ps-vsb-icon { width: 34px; height: 34px; font-size: 1em; }
}
/* ==========================================================================
  19. HERO BADGES (utilisés sur connectes.php, statistiques.php, etc.)
   ========================================================================== */
.hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-badge {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   20. Page Stats Match — Hero, chaînes TV, admin, feuille de match
   ========================================================================== */

/* ── Bouton actualiser score (coin haut-droit de la match-hero) ── */
.hero-refresh-score-wrap {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    z-index: 10;
}

.hero-refresh-score-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-1);
    color: var(--primary-color);
    cursor: pointer;
    font-size: .82em;
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: var(--shadow-sm);
}

.hero-refresh-score-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.hero-refresh-score-btn.is-disabled,
.hero-refresh-score-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: .5;
}

.hero-refresh-score-btn:disabled:hover {
    background: var(--surface-1);
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.hero-refresh-score-status {
    font-size: .65em;
    color: var(--text-muted);
    text-align: right;
    max-width: 120px;
    line-height: 1.3;
}

/* ── Chaîne TV dans le hero ── */
.match-tv-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.match-tv {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72em;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 99px;
}

.match-tv img { height: 14px; object-fit: contain; }

/* Bouton crayon modifier chaîne — placé inline dans le wrap TV */
.match-tv-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    border: 1px dashed var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: .68em;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.match-tv-edit-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }
.match-tv-edit-btn--empty { padding: 3px 10px; }

/* Panneau éditeur chaîne TV (admin) */
.admin-tv-editor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.admin-tv-select {
    font-size: .75em;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface-1);
    cursor: pointer;
    width: 100%;
}

.admin-tv-actions {
    display: flex;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.admin-tv-save {
    font-size: .72em;
    padding: 3px 12px;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background .15s;
}

.admin-tv-save:hover { background: var(--secondary-color); }

.admin-tv-cancel {
    font-size: .72em;
    padding: 3px 10px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: pointer;
}

.admin-tv-status { font-size: .7em; color: var(--text-muted); }

/* ── Statuts match dans le hero ── */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #fff;
    font-size: .72em;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 4px 10px;
    border-radius: 99px;
    margin-top: 6px;
    text-transform: uppercase;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: livePulse 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .3; transform: scale(.7); }
}

.match-status-fin {
    display: inline-block;
    margin-top: 6px;
    font-size: .72em;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(100,116,139,.12);
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: .04em;
}

.score-duration {
    font-size: .75em;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: .03em;
}

.match-referee {
    margin-top: 5px;
    font-size: .7em;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .02em;
}

.match-referee i { opacity: .6; margin-right: 3px; }

/* ── Feuille de match — Onglets ── */
.feuille-tabs {
    display: flex;
    gap: 6px;
    padding: 14px 14px 0;
    border-bottom: 2px solid var(--border);
}

.feuille-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 8px 16px;
    font-size: .82em;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .15s, border-color .15s;
    border-radius: 6px 6px 0 0;
}

.feuille-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.feuille-tab:hover:not(.active) { color: var(--text-dark); background: var(--surface-2); }

.feuille-panel { padding: 12px 10px; }
.feuille-panel.hidden { display: none; }

/* ── Événements ── */
.feuille-ev {
    display: flex;
    align-items: center;
    min-height: 34px;
    border-radius: 6px;
    margin-bottom: 3px;
    padding: 4px 6px;
}

.feuille-ev:hover { background: var(--surface-2); }
.ev-spacer { flex: 1; }

.ev-info {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ev-left  { text-align: right; padding-right: 8px; }
.ev-right { text-align: left;  padding-left:  8px; }

.ev-joueur { font-size: .84em; font-weight: 700; color: var(--text-dark); }
.ev-assist { font-size: .74em; color: var(--text-muted); }

.ev-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    background: var(--surface-2);
    border-radius: 99px;
    padding: 3px 8px;
    font-size: .76em;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 64px;
    justify-content: center;
}

.ev-badge.ev-goal    { background: #dcfce7; color: #15803d; }
.ev-badge.ev-own     { background: #fee2e2; color: #b91c1c; }
.ev-badge.ev-penalty { background: #dbeafe; color: #1d4ed8; }
.ev-badge.ev-yellow  { background: #fef9c3; color: #854d0e; }
.ev-badge.ev-red     { background: #fee2e2; color: #b91c1c; }
.ev-badge.ev-subst   { background: #f0fdf4; color: #15803d; }
.ev-ico { font-size: 1em; }
.ev-min { font-variant-numeric: tabular-nums; }

/* Sections collapsibles événements */
.ev-section { margin-bottom: 4px; }

.ev-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 7px 10px;
    background: var(--surface-2);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: .78em;
    font-weight: 700;
    color: var(--text-muted);
    text-align: left;
    margin: 6px 0 2px;
    transition: background .15s;
}

.ev-toggle:hover,
.ev-toggle[aria-expanded="true"] { background: var(--surface-3); color: var(--text-dark); }

.ev-toggle-icons { display: flex; gap: 6px; font-size: 1.1em; }
.ev-toggle-label { flex: 1; text-transform: uppercase; letter-spacing: .06em; }

.ev-toggle-chevron {
    font-size: 1.2em;
    font-weight: 900;
    transition: transform .2s;
    line-height: 1;
}

.ev-toggle[aria-expanded="true"] .ev-toggle-chevron { transform: rotate(90deg); }

.ev-collapsible-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}

.ev-collapsible-body.force-open,
.ev-collapsible-body.open { max-height: 600px; }

/* ── Compositions ── */
.compos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .compos-grid { grid-template-columns: 1fr; }
}

.compos-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.compos-logo     { width: 24px; height: 24px; object-fit: contain; }
.compos-team     { font-size: .85em; font-weight: 800; color: var(--text-dark); flex: 1; }

.compos-formation {
    font-size: .75em;
    font-weight: 700;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 99px;
}

.compos-section-label {
    font-size: .7em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    padding: 6px 6px 3px;
    margin-top: 4px;
}

.rempl-label { opacity: .7; }

.compos-joueur {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: .82em;
}

.compos-joueur:hover { background: var(--surface-2); }
.compos-rempl   { opacity: .75; }
.joueur-sorti   { opacity: .55; }
.joueur-entrant { opacity: 1; font-style: italic; }

.compos-num {
    width: 20px;
    text-align: right;
    font-size: .78em;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.compos-nom    { flex: 1; font-weight: 600; color: var(--text-dark); }
.compos-badges { display: flex; gap: 3px; font-size: .9em; flex-shrink: 0; }

.badge-subst         { display: inline-block; font-weight: 900; color: #15803d; font-size: 1.1em; line-height: 1; }
.badge-subst.entrant { color: #2563eb; }

/* ── Statistiques match (barres) ── */
.mstat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.mstat-team-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82em;
    font-weight: 800;
    color: var(--text-dark);
    flex: 1;
}

.mstat-team-right { justify-content: flex-end; text-align: right; }
.mstat-logo       { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }

.mstat-center-label {
    font-size: .7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    flex-shrink: 0;
    padding: 0 12px;
}

.mstat-rows { display: flex; flex-direction: column; gap: 10px; padding: 0 4px 8px; }

.mstat-row {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
}

.mstat-val              { font-size: .88em; font-weight: 800; color: var(--text-dark); font-variant-numeric: tabular-nums; }
.mstat-val-left         { text-align: right; }
.mstat-val-right        { text-align: left; }
.mstat-bar-wrap         { display: flex; flex-direction: column; gap: 3px; }
.mstat-label            { font-size: .7em; font-weight: 700; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: .05em; }

.mstat-bar {
    display: flex;
    height: 7px;
    border-radius: 99px;
    overflow: hidden;
    background: var(--surface-2);
    gap: 1px;
}

.mstat-bar-h { border-radius: 99px 0 0 99px; height: 100%; transition: width .4s ease; min-width: 3px; }
.mstat-bar-a { border-radius: 0 99px 99px 0; height: 100%; transition: width .4s ease; min-width: 3px; }

/* ── Badges chaîne TV sur accueil.php ── */
.cmv2-tv-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.cmv2-tv-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .68em;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 99px;
    white-space: nowrap;
}
/* ============================================================
   Responsive – Page paiement (tableaux mobile)
   ============================================================ */

/* Formulaire paiement anticipé — grille CSS */
.avance-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px 14px;
    align-items: end;
}
.avance-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.avance-field select {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    width: 100%;
    box-sizing: border-box;
}
.avance-field-wide {
    grid-column: span 2;
}

/* Select du moyen de paiement dans le tableau validation */
.paiement-table-validation select {
    font-size: 0.82em;
    padding: 3px 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    max-width: 130px;
    width: 100%;
}

@media (max-width: 600px) {
    /* Masquer les colonnes secondaires sur mobile */
    .col-hide-mobile {
        display: none !important;
    }
    /* Afficher les éléments réservés au mobile */
    .col-show-mobile {
        display: inline !important;
    }

    /* Formulaire paiement anticipé : 1 colonne */
    .avance-form-grid {
        grid-template-columns: 1fr;
    }
    .avance-field-wide {
        grid-column: span 1;
    }

    /* Barre de recherche + titre bloc validation : passer en colonne */
    .card > div[style*="justify-content:space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
    }
    #searchPlayer {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Tableaux : pas de débordement forcé */
    .classement-table {
        min-width: unset !important;
    }
}

/* ==========================================================================
   15. PAGE ÉQUIPE (equipe.php)
   ========================================================================== */

/* ── Hero équipe ── */
.equipe-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--primary-color);
    box-shadow: var(--shadow-lg);
}
.equipe-hero-banner {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    opacity: 0.45;
}
.equipe-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,20,60,0.82) 100%);
}
.equipe-hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 28px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
.equipe-hero-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    flex-shrink: 0;
}
.equipe-hero-info { flex: 1; }
.equipe-hero-name {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.equipe-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.equipe-rank-badge {
    background: var(--accent-color);
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .85rem;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .5px;
}
.equipe-color-dot {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    vertical-align: middle;
}
.equipe-social-links { display: flex; gap: 10px; }
.equipe-social-links a {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    transition: color .2s;
}
.equipe-social-links a:hover { color: var(--accent-color); text-decoration: none; }

/* ── Description ── */
.equipe-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: .95rem;
}
.equipe-description p { margin: 0 0 12px; }

/* ── Grille 2 colonnes ── */
.equipe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.equipe-grid-wide {
    grid-column: span 2;
}

/* ── Joueurs ── */
.joueurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.joueur-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: box-shadow .2s;
}
.joueur-card:hover { box-shadow: var(--shadow-md); }
.joueur-numero {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 26px;
    text-align: center;
}
.joueur-info { flex: 1; min-width: 0; }
.joueur-nom {
    font-weight: 600;
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dark);
}
.joueur-poste {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.joueur-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.joueur-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.5;
}
.joueur-badge.jaune    { background: #fef3c7; color: #92400e; }
.joueur-badge.rouge    { background: #fee2e2; color: #991b1b; }
.joueur-badge.warning  { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.joueur-badge.but      { background: #dcfce7; color: #166534; }
.joueur-badge.suspend  { background: #f3e8ff; color: #6b21a8; }

/* ── Tabs de filtrage joueurs ── */
.equipe-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.equipe-tab {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--surface-1);
    color: var(--text-secondary);
    transition: all .2s;
}
.equipe-tab:hover, .equipe-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ── Matchs ── */
.equipe-match-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.equipe-match-row:last-child { border-bottom: none; }
.equipe-match-date {
    font-size: .78rem;
    color: var(--text-muted);
    min-width: 70px;
    flex-shrink: 0;
}
.equipe-match-teams {
    flex: 1;
    font-size: .9rem;
    font-weight: 500;
}
.equipe-match-teams .vs { color: var(--text-muted); font-weight: 400; margin: 0 4px; }
.equipe-match-score {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}
.equipe-match-score.win  { color: var(--green); }
.equipe-match-score.loss { color: var(--red); }
.equipe-match-score.draw { color: var(--yellow); }
.equipe-match-score.upcoming { color: var(--text-muted); font-size: .85rem; }
.equipe-match-group {
    font-size: .75rem;
    color: var(--text-muted);
    background: var(--surface-3);
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ── Kit ── */
.equipe-kit-img {
    max-width: 120px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* ── Fanarts ── */
.equipe-fanarts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.equipe-fanart-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ── Stat suspension ── */
.suspension-alert {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.suspension-alert i { color: #f97316; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .equipe-grid { grid-template-columns: 1fr; }
    .equipe-grid-wide { grid-column: span 1; }
    .equipe-hero-name { font-size: 1.7rem; }
    .equipe-hero-logo { width: 60px; height: 60px; }
    .equipe-hero-content { padding: 16px; gap: 14px; }
    .joueurs-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .equipe-fanarts { grid-template-columns: 1fr; }
}