/* ============================================================
   RÉINITIALISATION (reset de base)
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #222222;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ============================================================
   HEADER (MENU DE NAVIGATION)
   ============================================================ */
.site-header {
    background-color: #0b1d3a;
    color: #ffffff;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    height: 45px;
    width: auto;
}

.site-title {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #00d26a;
}

.cart-badge {
    background-color: #00d26a;
    color: #0b1d3a;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 4px;
}


/* ============================================================
   BANNIÈRE DE TITRE
   ============================================================ */
.page-banner {
    background: linear-gradient(135deg, #0b1d3a, #1a3a68);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.banner-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-content p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================================
   CONTENEUR PRINCIPAL
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}


/* ============================================================
   STATISTIQUES CLÉS
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, #0b1d3a, #1e3a8a);
    padding: 40px 20px;
    margin: 0 20px 40px;
    border-radius: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    color: #ffffff;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    display: block;
    color: #00d26a;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================================
   TITRES DE SECTION
   ============================================================ */
.section-title-wrap {
    margin-bottom: 28px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0b1d3a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-dot {
    width: 12px;
    height: 12px;
    background-color: #00d26a;
    border-radius: 50%;
    display: inline-block;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #64748b;
}


/* ============================================================
   PREDICTOR - FORMULAIRE DE PRONOSTICS
   ============================================================ */
.predictor-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
}

.predictor-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1d3a;
    margin-top: 20px;
    margin-bottom: 8px;
}

.predictor-hint {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 16px;
}


/* ============================================================
   SÉLECTION DES ÉQUIPES (Vainqueur)
   ============================================================ */
.teams-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.team-choice-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.team-choice-card:hover {
    border-color: #1e3a8a;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.team-choice-card.selected {
    border-color: #00d26a;
    background: rgba(0, 210, 106, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.2);
}

.team-choice-flag {
    font-size: 2.2rem;
}

.team-choice-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0b1d3a;
}

.team-choice-odds {
    font-size: 0.75rem;
    color: #64748b;
    background: #ffffff;
    padding: 2px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}


/* ============================================================
   PRONOSTICS DES MATCHS
   ============================================================ */
.match-prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.match-predict-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-predict-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.match-predict-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.team-versus {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0b1d3a;
}

.score-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0b1d3a;
    transition: all 0.3s ease;
}

.score-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.score-input::-webkit-inner-spin-button {
    opacity: 1;
}

.score-dash {
    font-weight: 800;
    color: #64748b;
}

.match-predict-footer {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.match-phase {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ============================================================
   BOUTON DE VALIDATION DES PRONOSTICS
   ============================================================ */
.btn-submit-prediction {
    background: linear-gradient(135deg, #0b1d3a, #1e3a8a);
    color: #ffffff;
    font-weight: 700;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-submit-prediction:hover {
    box-shadow: 0 4px 20px rgba(11, 29, 58, 0.3);
    transform: translateY(-2px);
}


/* ============================================================
   MESSAGE DE CONFIRMATION
   ============================================================ */
.prediction-alert {
    display: none;
    background: #dcfce7;
    border: 2px solid #86efac;
    color: #166534;
    padding: 14px 20px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   LEADERBOARD - CLASSEMENT
   ============================================================ */
.leaderboard-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
}

.leaderboard-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.leaderboard-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.leaderboard-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.leaderboard-table tr:hover {
    background-color: #f8fafc;
}


/* ============================================================
   BADGES DE RANG
   ============================================================ */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8rem;
}

.rank-1 {
    background: linear-gradient(135deg, #fef08a, #fbbf24);
    color: #854d0e;
}

.rank-2 {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
}

.rank-3 {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #9a3412;
}

.rank-other {
    background: #f1f5f9;
    color: #64748b;
}

.points-high {
    color: #0b1d3a;
    font-weight: 800;
}

.points-user {
    color: #00d26a;
    font-weight: 800;
}


/* ============================================================
   LIGNE DE L'UTILISATEUR (surbrillance)
   ============================================================ */
.user-row-highlight {
    background-color: rgba(0, 210, 106, 0.08) !important;
    font-weight: 700;
}

.user-row-highlight:hover {
    background-color: rgba(0, 210, 106, 0.15) !important;
}

.user-row-badge {
    background: #00d26a;
    color: #0b1d3a;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 800;
}

.leaderboard-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.legend-item {
    font-size: 0.85rem;
    color: #64748b;
}


/* ============================================================
   FAN ZONES - LOCALISATIONS
   ============================================================ */
.fanzone-locations {
    margin-bottom: 50px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}

.location-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.location-hero {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.location-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 10;
}

.pill-usa {
    background: linear-gradient(135deg, #d90429, #b71c1c);
}

.pill-mex {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.pill-can {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.location-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.location-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.location-city {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b1d3a;
    margin-bottom: 4px;
}

.location-venue {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.location-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 16px;
    flex-grow: 1;
}

.location-details {
    list-style: none;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    margin-bottom: 16px;
}

.location-details li {
    font-size: 0.85rem;
    color: #1e293b;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
}

.location-details li strong {
    color: #64748b;
}

.btn-location {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #0b1d3a;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-location:hover {
    background: #0b1d3a;
    color: #ffffff;
    border-color: #0b1d3a;
}


/* ============================================================
   ACTIVITÉS
   ============================================================ */
.activities-section {
    margin-bottom: 50px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.activity-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.activity-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.activity-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1d3a;
    margin-bottom: 8px;
}

.activity-desc {
    font-size: 0.88rem;
    color: #64748b;
}


/* ============================================================
   CALENDRIER / TIMELINE
   ============================================================ */
.schedule-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.timeline-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #00d26a;
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    background: #0b1d3a;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0b1d3a;
    margin-bottom: 6px;
}

.timeline-text {
    font-size: 0.85rem;
    color: #64748b;
}


/* ============================================================
   CALL TO ACTION - FAN PASS
   ============================================================ */
.vip-cta {
    background: linear-gradient(135deg, #0b1d3a, #1e3a8a);
    border-radius: 16px;
    color: #ffffff;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 50px;
}

.vip-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.vip-content p {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 600px;
}

.btn-vip {
    background: #00d26a;
    color: #0b1d3a;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-vip:hover {
    transform: translateY(-2px);
    background: #00ea77;
    box-shadow: 0 4px 20px rgba(0, 210, 106, 0.3);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: #0b1d3a;
    color: #d1d5db;
    padding: 60px 5% 20px 5%;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #00d26a;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: #00d26a;
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-name {
    background: #1a3a68;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1a3a68;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #9ca3af;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .page-banner p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }

    .teams-selector-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .match-prediction-grid {
        grid-template-columns: 1fr;
    }

    .match-predict-teams {
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-versus {
        width: 100%;
        justify-content: center;
    }

    .score-input-group {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .vip-cta {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .btn-vip {
        width: 100%;
        max-width: 300px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .rank-badge {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .page-banner h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .predictor-card,
    .leaderboard-card,
    .schedule-card {
        padding: 20px 15px;
    }

    .team-choice-card {
        padding: 12px;
    }

    .team-choice-flag {
        font-size: 1.8rem;
    }

    .score-input {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .leaderboard-table-wrap {
        font-size: 0.75rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 10px;
    }

    .user-row-badge {
        font-size: 0.6rem;
    }
}