/* Conteneur pour empiler les notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
    pointer-events: none; /* Pour ne pas bloquer les clics en dessous si vide */
}

/* Style de base des bandeaux */
.toast-live {
    pointer-events: auto; /* Réactive le clic pour pouvoir fermer la notif */
    background: rgba(15, 15, 15, 0.95);
    color: #ffffff;
    padding: 16px;
    border-radius: 6px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    cursor: pointer;
    border-left: 6px solid #ffd700;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.4s, transform 0.4s;
}

/* Couleurs par type d'événement */
.toast-goal { border-left-color: #2ecc71; } /* Vert pour les buts */
.toast-var { border-left-color: #f1c40f; }  /* Jaune/Orange pour la VAR */
.toast-red { border-left-color: #e74c3c; }  /* Rouge pour les cartons */

/* Animation d'entrée */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Style des noms d'équipes et scores à l'intérieur */
.toast-live strong {
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
    opacity: 0.8;
}

/* Petit carré rouge à côté du score */
.red-card-indicator {
    display: inline-block;
    width: 8px;
    height: 11px;
    background-color: #e74c3c; /* Même rouge que tes toasts */
    border-radius: 1px;
    margin: 0 4px;
    vertical-align: middle;
    box-shadow: 0 0 4px rgba(231, 76, 60, 0.5);
}

/* Optionnel : alignement pour les colonnes de score */
.team-row td {
    vertical-align: middle;
}

.score-badge-live {
    vertical-align: middle;
}
/* Animation de pulsation pour le badge de score */
.score-badge-live.is-live-anim {
    animation: pulse-live-score 2s infinite;
    font-weight: bold;
}

@keyframes pulse-live-score {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 48, 37, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(217, 48, 37, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 48, 37, 0);
    }
}

/* Couleurs des badges de score (Google Style) */
.score-win { background-color: #34a853; color: white; padding: 2px 6px; border-radius: 4px; }

/* 1. L'animation elle-même */
@keyframes flash-goal-row {
    0%   { background-color: transparent; }
    20%  { background-color: #2ecc71 !important; } /* Vert Flash */
    50%  { background-color: rgba(46, 204, 113, 0.3); }
    80%  { background-color: #2ecc71 !important; }
    100% { background-color: transparent; }
}

/* 2. La classe appliquée par le JS */
.score-flashi {
    animation: flash-goal-row 3s ease-in-out !important;
}

/* 3. LE PLUS IMPORTANT : Rendre les cellules transparentes PENDANT le flash */
.score-flashi td {
    background-color: transparent !important;
}: white; padding: 2px 6px; border-radius: 4px; }