﻿/* ===== COUPE DU MONDE 2026 - PALETTE CONTRASTÉE & DYNAMIQUE ===== */
/* Palette renforcée : Bleu Profond, Cyan Intense, Orange Vif, Couleurs Saturées */

/* Bouton "Voir la grille" dans les pages de détail participant */
.btn-grille {
    background-color: #e0f2fe;
    color: #1E40AF;
    border: 1px solid #7dd3fc;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-grille:hover {
    background-color: #1E40AF;
    color: #ffffff;
    border-color: #1E40AF;
}

:root {
    /* Couleurs principales - Palette contrastée */
    --wc-primary: #2563EB;        /* Bleu royal intense */
    --wc-secondary: #0891B2;      /* Cyan profond */
    --wc-accent: #F97316;         /* Orange vif */
    --wc-success: #059669;        /* Vert émeraude foncé */
    --wc-warning: #F59E0B;        /* Ambre intense */
    --wc-danger: #EC4899;         /* Rose fuchsia vif */
    --wc-purple: #9333EA;         /* Violet profond */
    
    /* Couleurs de fond */
    --wc-dark: #0F172A;           /* Bleu nuit */
    --wc-light: #F8FAFC;          /* Blanc cassé */
    --wc-gray: #E2E8F0;           /* Gris clair */
    
    /* Dégradés contrastés */
    --wc-gradient-primary: linear-gradient(135deg, #1E40AF 0%, #0891B2 100%);
    --wc-gradient-accent: linear-gradient(135deg, #F97316 0%, #FBBF24 100%);
    --wc-gradient-success: linear-gradient(135deg, #059669 0%, #10B981 100%);
    --wc-gradient-purple: linear-gradient(135deg, #9333EA 0%, #A78BFA 100%);
    --wc-gradient-hero: linear-gradient(135deg, #1E40AF 0%, #0891B2 100%);
    --wc-gradient-gold: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    
    /* Couleurs d'état */
    --wc-info: #0891B2;
    --wc-qualified: #059669;
    --wc-eliminated: #EC4899;
}

html, body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 50%, #CBD5E1 100%);
    min-height: 100vh;
    color: var(--wc-dark);
}

/* ===== LIENS ===== */
a, .btn-link {
    color: var(--wc-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--wc-secondary);
}

/* ===== INPUTS ET SELECTS MODERNES ===== */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.12);
}

.form-control:focus, .form-select:focus {
    background: #ffffff;
    border-color: var(--wc-secondary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.25), 0 2px 12px rgba(30, 64, 175, 0.2);
    outline: none;
}

.form-control:hover, .form-select:hover {
    border-color: var(--wc-primary);
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.15);
}

.form-control::placeholder {
    color: #64748B;
    font-style: italic;
}

/* ===== LABELS ===== */
.form-label {
    font-weight: 600;
    color: var(--wc-primary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Labels dans les cards (fond clair) */
.card .form-label,
.card-body .form-label {
    color: var(--wc-primary);
}

/* ===== ESPACEMENT FORMULAIRES ===== */
.mb-3 {
    margin-bottom: 1.5rem !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.card-body .mb-3:not(:last-child) {
    margin-bottom: 1.75rem !important;
}

/* ===== BOUTONS COUPE DU MONDE ===== */
.btn-primary {
    background: var(--wc-gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.4);
    position: relative;
    overflow: hidden;
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
    background: linear-gradient(135deg, #1E3A8A 0%, #0E7490 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--wc-gradient-success);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    transition: all 0.3s ease;
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.btn-outline-secondary {
    border: 2px solid var(--wc-primary);
    color: var(--wc-primary);
    background: transparent;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--wc-gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
}

/* ===== ESPACEMENT BOUTON SOUMISSION ===== */
.d-grid {
    margin-top: 2rem;
}

/* ===== CARDS COUPE DU MONDE ===== */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.card.shadow {
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.15);
}

.card-header {
    border-bottom: none;
    padding: 1.75rem 2rem;
    position: relative;
}

.card-header.bg-primary {
    background: var(--wc-gradient-hero) !important;
    color: white;
}

.card-header.bg-success {
    background: var(--wc-gradient-success) !important;
    color: white;
}

.card-header h3 {
    margin: 0;
    font-weight: 700;
}

.card-body {
    padding: 2rem 2.5rem;
    color: var(--wc-dark);
}

/* ===== HEADER SPÉCIAL AVEC DRAPEAU ===== */
.card-header::after {
    content: '⚽';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.2;
}

/* ===== VALIDATION ===== */
.valid.modified:not([type=checkbox]) {
    border-color: var(--wc-success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310B981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.invalid:not([type=checkbox]) {
    border-color: var(--wc-danger) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23F472B6'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23F472B6' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-check-input.invalid {
    border-color: var(--wc-danger) !important;
    background-image: none;
    padding-right: 0;
}

.validation-message {
    color: var(--wc-danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.validation-message::before {
    content: "⚠";
}

/* ===== ALERTES ===== */
.alert {
    border: none;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
    color: #BE185D;
    border-left: 4px solid var(--wc-danger);
}

.alert-success {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #065F46;
    border-left: 4px solid var(--wc-success);
}

.alert-warning {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    color: #92400E;
    border-left: 4px solid var(--wc-warning);
}

.alert-info {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    color: #0C4A6E;
    border-left: 4px solid var(--wc-secondary);
}

/* ===== SÉPARATEUR ===== */
hr {
    margin: 2rem 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
}

/* ===== FOCUS STATES ===== */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* ===== ERREUR BLAZOR ===== */
.blazor-error-boundary {
    background: linear-gradient(135deg, var(--wc-danger) 0%, #C2185B 100%);
    padding: 1.5rem;
    color: white;
    border-radius: 16px;
    font-weight: 500;
}

.blazor-error-boundary::after {
    content: "Une erreur s'est produite.";
}

/* ===== ANIMATIONS ===== */
.card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== TITRES ===== */
h1, h2, h3, h4, h5 {
    font-weight: 700;
}

/* Titres avec dégradé par défaut (sauf si classe spécifique) */
h1:not(.hero-title):not(.text-white), 
h2:not(.hero-subtitle):not(.text-white), 
h3:not(.text-white), 
h4:not(.text-white), 
h5:not(.text-white) {
    background: var(--wc-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Titres blancs explicites */
h1.text-white, h1.hero-title,
h2.text-white, h2.hero-subtitle,
h3.text-white,
h4.text-white,
h5.text-white,
p.text-white,
.hero-title,
.hero-subtitle,
.hero-text {
    color: white !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: white !important;
    background-clip: initial !important;
}

/* Page Lots : carte héro partagée (utilisée aussi sur Barème) */
.lots-hero {
    background: linear-gradient(135deg, #1E40AF 0%, #0891B2 100%);
    border: none;
    border-radius: 16px;
}

/* Page Lots : titre héro en blanc */
.lots-hero h1 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: initial !important;
}

/* Page Lots : titres des bandeaux de section en blanc */
.lots-section-header h2 {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: initial !important;
}

.text-muted {
    color: #718096 !important;
}

.text-white-50 {
    color: #A0AEC0 !important;
}

/* ===== NAVBAR ===== */
.navbar-brand {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.25rem;
}

/* ===== BADGES ===== */
.badge {
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: var(--wc-gradient-success) !important;
}

.badge.bg-primary {
    background: var(--wc-gradient-primary) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--wc-danger) 0%, #C46482 100%) !important;
}

/* ===== PROGRESS BAR ===== */
.progress {
    border-radius: 50px;
    overflow: hidden;
    background: var(--wc-gray);
    height: 12px;
}

.progress-bar {
    background: var(--wc-gradient-hero);
    background-size: 200% 100%;
    animation: progressGradient 3s ease infinite;
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== SPINNER ===== */
.spinner-border {
    color: var(--wc-primary);
}

/* ========================================== */
/* ===== SAISIE DES MATCHS - STYLE 2026 ===== */
/* ========================================== */

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.5rem;
}

.match-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 4px 15px rgba(44, 95, 127, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.match-row:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(91, 164, 207, 0.15);
    border-left-color: var(--wc-secondary);
}

.match-row.completed {
    border-left: 4px solid var(--wc-success);
    background: linear-gradient(90deg, rgba(76, 175, 128, 0.05) 0%, #ffffff 100%);
}

.match-badge {
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.match-badge span:first-child {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--wc-gradient-primary);
    padding: 4px 10px;
    border-radius: 20px;
}

.match-badge .check {
    color: var(--wc-success);
    font-size: 1.25rem;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.match-teams .home,
.match-teams .away {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wc-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-teams .home {
    width: 150px;
    text-align: right;
}

.match-teams .away {
    width: 150px;
    text-align: left;
}

.match-teams input[type="number"] {
    width: 55px;
    height: 48px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    border: 3px solid #E5E7EB;
    border-radius: 12px;
    background: #ffffff;
    color: var(--wc-dark);
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

.match-teams input[type="number"]::-webkit-outer-spin-button,
.match-teams input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.match-teams input[type="number"]:focus {
    border-color: var(--wc-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 126, 95, 0.2);
    background: #FFF5F0;
}

.match-teams input[type="number"]:hover {
    border-color: var(--wc-secondary);
}

.match-teams .separator {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--wc-primary);
    width: 30px;
    text-align: center;
}

/* ========================================== */
/* ===== PHASE DE GROUPES - DESIGN AMÉLIORÉ ===== */
/* ========================================== */

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.group-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(44, 95, 127, 0.08);
    border: 1px solid rgba(91, 164, 207, 0.08);
}

.group-header {
    background: var(--wc-gradient-primary);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.group-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
}

.group-matches {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.group-match {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.group-match:hover {
    border-color: var(--wc-secondary);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.15);
}

.group-match.completed {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.05) 0%, #F8FAFC 100%);
    border-left: 3px solid var(--wc-success);
}

.match-day {
    display: inline-block;
    background: var(--wc-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

.team-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--wc-dark);
}

.match-teams .team-name:first-of-type {
    text-align: right;
}

.match-teams .team-name:last-of-type {
    text-align: left;
}

.score-input-small {
    width: 50px;
    height: 42px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: #ffffff;
    color: var(--wc-dark);
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

.score-input-small::-webkit-outer-spin-button,
.score-input-small::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.score-input-small:focus {
    border-color: var(--wc-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    background: #FFF5F0;
}

.score-input-small:hover:not(:disabled) {
    border-color: var(--wc-secondary);
}

.score-input-small:disabled {
    background: #F1F5F9;
    cursor: not-allowed;
    opacity: 0.6;
}

.score-separator {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--wc-primary);
    text-align: center;
}

/* Classement du groupe */
.group-standings {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 1rem;
}

.standings-table {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}

.standings-table thead {
    background: var(--wc-gradient-primary);
    color: white;
}

.standings-table th {
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-weight: 600;
    border: none;
    font-size: 0.75rem;
}

.standings-table td {
    padding: 0.5rem 0.25rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    color: var(--wc-dark);
}

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

.standings-table tr.qualified {
    background: rgba(5, 150, 105, 0.08);
    font-weight: 600;
}

.standings-table tr.qualified td:first-child {
    border-left: 3px solid var(--wc-success);
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .groups-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .group-content {
        padding: 0.75rem;
    }

    .group-match {
        padding: 0.5rem;
    }

    .match-teams {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .match-teams .team-name {
        text-align: center !important;
        font-size: 0.95rem;
        font-weight: 700;
    }

    /* Équipes affichées en premier */
    .match-teams .team-name:first-of-type {
        order: 1;
    }

    .match-teams .team-name:last-of-type {
        order: 2;
    }

    /* Conteneur des scores en dernier */
    .match-teams > div {
        order: 3;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .score-input-small {
        width: 60px;
        height: 48px;
        font-size: 1.4rem;
    }

    .score-separator {
        font-size: 1.4rem;
    }

    .standings-table {
        font-size: 0.7rem;
    }

    .standings-table th {
        padding: 0.4rem 0.15rem;
        font-size: 0.7rem;
    }

    .standings-table td {
        padding: 0.4rem 0.15rem;
    }
}

@media (max-width: 480px) {
    .group-header {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .match-day {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .team-name {
        font-size: 0.85rem !important;
    }

    .score-input-small {
        width: 55px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .match-row {
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px;
    }
    
    .match-badge {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .match-teams {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .match-teams .home,
    .match-teams .away {
        width: 100%;
        text-align: center !important;
        font-size: 0.9rem;
    }
    
    .match-teams .home {
        order: 1;
        margin-bottom: 8px;
    }
    
    .match-teams input[type="number"]:first-of-type {
        order: 2;
    }
    
    .match-teams .separator {
        order: 3;
    }
    
    .match-teams input[type="number"]:last-of-type {
        order: 4;
    }
    
    .match-teams .away {
        order: 5;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .match-teams input[type="number"] {
        width: 50px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .match-teams .home,
    .match-teams .away {
        font-size: 0.85rem;
    }
}

/* ===== CARD SPÉCIALE RÉCAPITULATIF ===== */
.card .progress {
    height: 25px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.1);
}

.card .progress-bar {
    font-weight: 700;
    font-size: 0.85rem;
}

/* ===== BTN CLOSE ===== */
.btn-close {
    filter: none;
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* ===== SECTIONS DE PHASE ===== */
.phase-section {
    margin-bottom: 3rem;
}

.phase-title {
    background: var(--wc-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid transparent;
    border-image: var(--wc-gradient-primary) 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.phase-icon {
    font-size: 2rem;
}

.phase-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: #718096;
}

.finale-title {
    background: linear-gradient(90deg, var(--wc-accent), var(--wc-warning), var(--wc-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    text-align: center;
    justify-content: center;
}

/* ===== GROUPES ===== */
.group-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(44, 95, 127, 0.06);
    border: 1px solid rgba(91, 164, 207, 0.08);
}

.group-header {
    margin-bottom: 1rem;
}

.group-header h3 {
    background: var(--wc-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* ===== TABLEAU CLASSEMENT ===== */
.table-standings {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.85rem;
}

.table-standings thead {
    background: var(--wc-gradient-primary);
    color: white;
}

.table-standings th {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    border: none;
}

.table-standings td {
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    color: var(--wc-dark);
}

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

.table-standings tr.qualified {
    background: linear-gradient(90deg, rgba(76, 175, 128, 0.06) 0%, rgba(102, 187, 154, 0.03) 100%);
}

.table-standings tr.eliminated {
    background: linear-gradient(90deg, rgba(217, 112, 145, 0.06) 0%, rgba(245, 228, 235, 0.08) 100%);
}

.table-standings tr.qualified td:first-child {
    border-left: 3px solid var(--wc-success);
}

/* ===== MATCHS KNOCKOUT ===== */
.knockout-section {
    background: linear-gradient(135deg, rgba(44, 95, 127, 0.02) 0%, rgba(139, 126, 200, 0.02) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(91, 164, 207, 0.1);
}

.match-row.knockout {
    background: #ffffff;
}

.match-row.knockout.pending {
    opacity: 0.6;
}

.match-row.final-match {
    background: linear-gradient(135deg, #FFF4E6 0%, #FFEACC 100%);
    border: 2px solid var(--wc-warning);
    box-shadow: 0 4px 16px rgba(245, 169, 98, 0.15);
}

.match-teams .tbd {
    color: #A0AEC0;
    font-style: italic;
    font-weight: 400;
}

.match-teams input:disabled {
    background: #F7FAFC;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===== BARRE STICKY ===== */
.sticky-top .card-body {
    background: var(--wc-gradient-hero);
    backdrop-filter: blur(10px);
    color: white;
}

.sticky-top .card {
    border-radius: 16px;
}

/* ===== EFFET GLASSMORPHISM SUR CARDS LIGHT ===== */
.card.bg-light {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 164, 207, 0.08);
}

/* ========================================== */
/* ===== ADMINISTRATION - STYLES ===== */
/* ========================================== */

.admin-header {
    background: linear-gradient(135deg, #FAE5ED 0%, #F5D4E0 100%) !important;
    border-left: 4px solid var(--wc-danger);
}

.admin-header h1 {
    background: linear-gradient(135deg, var(--wc-danger) 0%, var(--wc-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-sticky .card-body {
    background: linear-gradient(135deg, var(--wc-danger) 0%, #C46482 100%) !important;
}

.admin-title {
    background: linear-gradient(135deg, var(--wc-danger) 0%, var(--wc-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-image: linear-gradient(135deg, var(--wc-danger) 0%, var(--wc-purple) 100%) 1 !important;
}

.admin-knockout {
    background: linear-gradient(135deg, rgba(217, 112, 145, 0.02) 0%, rgba(139, 126, 200, 0.02) 100%) !important;
    border-color: rgba(217, 112, 145, 0.15) !important;
}

.admin-match:hover {
    border-left-color: var(--wc-danger) !important;
}

.admin-match input[type="number"]:focus {
    border-color: var(--wc-danger) !important;
    box-shadow: 0 0 0 3px rgba(217, 112, 145, 0.15) !important;
}

.btn-danger {
    background: linear-gradient(135deg, var(--wc-danger) 0%, #C46482 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 12px rgba(217, 112, 145, 0.25);
    transition: all 0.3s ease;
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 112, 145, 0.35);
}

.btn-outline-danger {
    border: 2px solid var(--wc-danger);
    color: var(--wc-danger);
    background: transparent;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: var(--wc-danger);
    color: white;
    transform: translateY(-1px);
}

.card-header.bg-danger {
    background: linear-gradient(135deg, var(--wc-danger) 0%, #C46482 100%) !important;
}

/* ========================================== */
/* ===== PAGE CLASSEMENT - STYLES ===== */
/* ========================================== */

.rank-gold {
    background: linear-gradient(90deg, #FFF4E6 0%, #FFEACC 100%) !important;
    border-left: 4px solid var(--wc-warning) !important;
}

.rank-silver {
    background: linear-gradient(90deg, #F7FAFC 0%, #EDF2F7 100%) !important;
    border-left: 4px solid #A0AEC0 !important;
}

.rank-bronze {
    background: linear-gradient(90deg, #FFF5E6 0%, #FFEACC 100%) !important;
    border-left: 4px solid #E67E5F !important;
}

.card-header.bg-dark {
    background: linear-gradient(135deg, var(--wc-dark) 0%, #1A202C 100%) !important;
}

@media (max-width: 768px) {
    .card-header h1 {
        font-size: 1.25rem;
    }
    
    .card-header h2, .card-header h3 {
        font-size: 1rem;
    }
    
    .badge.fs-6 {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.75rem;
    }
}

/* ========================================== */
/* ===== ÉVOLUTION CLASSEMENT - STYLES ===== */
/* ========================================== */

.rank-evolution {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 60px;
    justify-content: center;
}

.rank-evolution.up {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #065F46;
    border: 2px solid var(--wc-success);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.rank-evolution.down {
    background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
    color: #BE185D;
    border: 2px solid var(--wc-danger);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.rank-evolution.stable {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    color: #64748B;
    border: 2px solid #CBD5E1;
}

.rank-evolution i {
    font-size: 1rem;
    font-weight: 900;
}

/* Animation pulse pour les grandes évolutions */
.rank-evolution.up.big-change {
    animation: pulseGreen 2s ease-in-out infinite;
}

.rank-evolution.down.big-change {
    animation: pulseRed 2s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    }
}

@keyframes pulseRed {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
    }
}

@media (max-width: 768px) {
    .rank-evolution {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        min-width: 50px;
    }
}

/* ========================================== */
/* ===== RECHERCHE CLASSEMENT - STYLES ===== */
/* ========================================== */

.input-group .form-control {
    border-left: none;
}

.input-group-text {
    border-right: none;
    background: white;
    color: var(--wc-primary);
    font-size: 1.1rem;
}

.input-group .form-control:focus {
    border-color: var(--wc-secondary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.25);
}

.input-group:focus-within .input-group-text {
    border-color: var(--wc-secondary);
}

.input-group .btn-outline-secondary {
    border-left: none;
    padding: 0.5rem 1rem;
}

.input-group .btn-outline-secondary:hover {
    background: var(--wc-danger);
    border-color: var(--wc-danger);
    color: white;
}

/* Animation du compteur de résultats */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group + small {
    animation: fadeIn 0.3s ease;
}
