/* ==============================================
   COUPE VIP - Styles communs
   ============================================== */

:root {
    --gold: #FFD700;
    --gold-light: #FFE55C;
    --gold-dark: #E6C200;
    --navy: #1B3A5F;
    --navy-light: #2A4A6F;
    --light-blue: #4A6FA5;
    --white: #FFFFFF;
}

/* ANTI-ZOOM SAFARI - Empêcher tout débordement horizontal */
html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

/* Base */
body {
    background: #0A0F18;
    background-image: radial-gradient(ellipse at 50% 0%, rgba(27, 58, 95, 0.25) 0%, #0A0F18 60%);
    min-height: 100vh;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(255, 215, 0, 0.06);
}

/* Stat Card */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(27, 58, 95, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all .3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
}

/* Navigation */
.nav-link {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all .2s;
}

.nav-link:hover {
    color: white;
    background: rgba(212, 175, 55, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
}

/* ==========================================
   LOGO - SANS FOND
   ========================================== */

.logo-container {
    display: inline-block;
    position: relative;
    top: -35px;
}

.logo-img {
    height: 200px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 4px 16px rgba(255, 215, 0, 0.5));
}

.logo-container:hover .logo-img {
    transform: scale(1.12);
    filter: drop-shadow(0 16px 50px rgba(0, 0, 0, 0.8)) drop-shadow(0 6px 24px rgba(255, 215, 0, 0.7));
}

/* On cache l'élément shine qui n'est plus nécessaire */
.logo-shine {
    display: none;
}

/* ==========================================
   CADRE PHOTO HERO
   ========================================== */

.photo-frame-container {
    animation: float 4s ease-in-out infinite;
}

.photo-frame {
    position: relative;
    width: 320px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 6px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-frame:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.photo-frame-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 2;
}

.photo-frame-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.photo-frame:hover .photo-frame-img {
    transform: scale(1.05);
}

.photo-frame-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%,
        transparent 100%
    );
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 3;
    border-radius: 24px;
}

.photo-frame:hover .photo-frame-shine {
    left: 100%;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* Responsive photo frame */
@media (max-width: 768px) {
    .photo-frame {
        width: 260px;
        height: 320px;
    }
}

/* ==========================================
   CHAMPION BADGE - Header compact
   ========================================== */

.champion-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 15, 24, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    padding: 8px 16px 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    top: -25px;
}

.champion-badge:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.champion-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.champion-badge-icon i {
    font-size: 1rem;
    color: var(--navy);
}

.champion-badge-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.champion-badge-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.champion-badge-team {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Space Grotesk', sans-serif;
}

.champion-badge-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.champion-badge-result {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.champion-badge-tab {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 600;
}

/* Hide on mobile */
@media (max-width: 1024px) {
    .champion-badge {
        display: none;
    }
}

/* ==========================================
   NAVBAR STYLE ICÔNES - VERSION DARK
   ========================================== */

/* Card de la navbar - style glass dark avec pill shape */
.navbar-card {
    background: rgba(10, 15, 24, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50px;
    padding: 14px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    /* Centrage absolu de la navbar */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 28px;
}

/* Icônes de navigation */
.navbar-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.6rem;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
}

.navbar-icon:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.15);
}

.navbar-icon.active {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.2);
}

/* Tooltip au survol */
.navbar-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(10, 15, 24, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.navbar-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(255, 215, 0, 0.3);
}

.navbar-icon:hover .navbar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

/* Dropdown menu style dark */
.dropdown-menu-light {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: rgba(10, 15, 24, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    margin-top: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu-light {
    opacity: 1;
    visibility: visible;
}

.dropdown-item-light {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.dropdown-item-light:hover {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

.dropdown-item-light.active {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
}

.dropdown-divider-light {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Ancien style nav-icon pour compatibilité */
.nav-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    transition: all .2s;
}

.nav-icon-link:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.nav-icon-link.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
}

.nav-icon-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.nav-icon-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(212, 175, 55, 0.3);
}

.nav-icon-link:hover .nav-icon-tooltip,
.group:hover .nav-icon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.dropdown-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Gold Gradient Text */
.gold-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 14px;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Bouton CTA accrocheur */
.btn-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow:
        0 8px 30px rgba(255, 215, 0, 0.5),
        0 0 25px rgba(255, 215, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(255, 215, 0, 0.6),
        0 0 35px rgba(255, 215, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.btn-cta:active {
    transform: scale(0.98);
    box-shadow:
        0 4px 20px rgba(255, 80, 80, 0.6),
        0 0 30px rgba(255, 80, 80, 0.4);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

.btn-cta-message {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    background: rgba(10, 15, 24, 0.95);
    border: 1px solid rgba(255, 80, 80, 0.5);
    color: #ff8e8e;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 80, 80, 0.3);
}

.btn-cta-message.show {
    opacity: 1;
    visibility: visible;
}

.btn-secondary {
    background: rgba(27, 54, 93, 0.3);
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid rgba(27, 54, 93, 0.5);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(27, 54, 93, 0.5);
}

/* Edition Card */
.edition-card {
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.2) 0%, rgba(27, 54, 93, 0.05) 100%);
    border: 1px solid rgba(27, 54, 93, 0.3);
    border-radius: 24px;
    padding: 32px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}

.edition-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.edition-card.champion {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(27, 54, 93, 0.1) 100%);
}

.edition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--light-blue));
    opacity: 0;
    transition: opacity .3s;
}

.edition-card:hover::before {
    opacity: 1;
}

/* Trophy Float Animation */
.trophy-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-navy {
    background: rgba(27, 54, 93, 0.3);
    color: var(--light-blue);
    border: 1px solid rgba(27, 54, 93, 0.5);
}

.badge-coming {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Podium */
.podium-1 {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid var(--gold);
}

.podium-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
    border: 2px solid #A0A0A0;
}

.podium-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
    border: 2px solid #CD7F32;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--light-blue));
    z-index: 1000;
    transition: width .1s;
}

/* Hero Glow */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Tables */
.table-header {
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.4) 0%, rgba(27, 54, 93, 0.2) 100%);
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all .2s;
}

.table-row:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* Groups */
.group-a {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.group-b {
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.15) 0%, rgba(74, 111, 165, 0.05) 100%);
    color: var(--light-blue);
    border: 1px solid rgba(74, 111, 165, 0.3);
}

/* Tabs */
.tab-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .875rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all .2s;
    cursor: pointer;
}

.tab-btn:hover {
    color: white;
    border-color: rgba(212, 175, 55, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    border-color: transparent;
}

/* Match Card */
.match-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    transition: all .3s;
}

.match-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* Team Card */
.team-card {
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.15) 0%, rgba(27, 54, 93, 0.05) 100%);
    border: 1px solid rgba(27, 54, 93, 0.3);
    transition: all .3s;
    border-radius: 20px;
    padding: 24px;
}

.team-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Bracket */
.bracket-match {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
}

.bracket-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px 0;
}

.bracket-team.winner {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.bracket-team.loser {
    opacity: 0.5;
}

/* Section Hidden */
.section-hidden {
    display: none;
}

/* Content Card */
.content-card {
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.15) 0%, rgba(27, 54, 93, 0.05) 100%);
    border: 1px solid rgba(27, 54, 93, 0.3);
    border-radius: 20px;
    padding: 32px;
    transition: all .3s;
}

.content-card:hover {
    border-color: rgba(255, 215, 0, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 215, 0, 0.08);
}

/* Feature Card */
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    transition: all .3s;
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}

/* Countdown Item */
.countdown-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(27, 54, 93, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    min-width: 100px;
}

/* Pulse Animation */
.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Footer */
footer {
    margin-top: 4rem;
}

/* ===========================================
   RESPONSIVE - MOBILE OPTIMIZATION
   =========================================== */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .logo-container {
        top: -20px;
    }

    .logo-img {
        height: 120px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Cacher le logo du header sur mobile (il est dans la barre du bas) */
    header .logo-container {
        display: none;
    }

    /* Header mobile simplifié */
    header {
        display: none;
    }

    /* Contenu avec padding pour la barre du bas */
    main {
        padding-top: 20px !important;
        padding-bottom: 100px !important;
    }

    /* Footer avec marge pour la barre du bas */
    footer {
        margin-bottom: 80px;
    }

    /* Dropdown menu mobile */
    .dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 16px;
    }

    /* Footer mobile */
    footer .glass-card {
        padding: 16px !important;
    }

    footer .flex-col {
        gap: 12px !important;
    }

    /* Boutons plus petits et full width sur mobile */
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.875rem;
    }

    .btn-cta {
        padding: 14px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    /* Boutons CTA message */
    .btn-cta-message {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 8px;
        text-align: center;
    }

    /* Cards avec moins de padding */
    .glass-card, .content-card, .tactic-info, .edition-card {
        padding: 16px;
        border-radius: 16px;
    }

    /* Hero section mobile */
    .glass-card.rounded-3xl {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    /* Photo frame hero */
    .photo-frame {
        width: 200px;
        height: 250px;
    }

    .photo-frame-container {
        margin-top: 24px;
    }

    /* Animation float plus subtile sur mobile */
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }

    /* Textes hero - plus gros sur mobile */
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    /* Titre hero sur une ligne - plus grand */
    h1 .text-4xl {
        font-size: 2.75rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    /* Description hero plus grande */
    .glass-card p.text-white\/60 {
        font-size: 1.05rem !important;
        line-height: 1.5 !important;
    }

    /* Badge plus visible */
    .badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* Boutons hero plus gros */
    .btn-cta {
        padding: 16px 24px !important;
        font-size: 1rem !important;
    }

    .btn-secondary {
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
    }

    /* Stat cards */
    .stat-card {
        padding: 16px;
    }

    /* Countdown */
    .countdown-item {
        padding: 12px 8px;
        min-width: 60px;
    }

    .countdown-item .text-4xl {
        font-size: 1.5rem !important;
    }

    /* Edition cards */
    .edition-card {
        padding: 16px;
    }

    .edition-card h3 {
        font-size: 1.25rem !important;
    }

    .edition-card .text-5xl {
        font-size: 2.5rem !important;
    }

    /* Section margins */
    section {
        margin-bottom: 40px !important;
    }

    /* Flex wrap pour les boutons - très rapprochés */
    .flex-wrap {
        flex-direction: column;
        width: 100%;
        gap: 8px !important;
    }

    .flex-wrap > * {
        width: 100%;
    }

    .flex-wrap .relative {
        width: 100%;
    }

    .flex-wrap a.btn-secondary {
        width: 100%;
        justify-content: center;
        margin-top: 0 !important;
    }

    /* Message inscription plus compact */
    .btn-cta-message {
        margin-top: 4px !important;
        margin-bottom: 0 !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }

    /* Photo frame sur mobile */
    .photo-frame {
        width: 200px !important;
        height: 250px !important;
    }

    .photo-frame-container {
        margin-top: 8px !important;
    }

    /* Réduire les espacements hero sur mobile */
    .flex.flex-col.lg\:flex-row.items-center.gap-12 {
        gap: 16px !important;
    }

    .flex.flex-wrap.gap-4 {
        gap: 8px !important;
    }

    /* Espace entre texte et bouton inscription */
    .mb-8 {
        margin-bottom: 20px !important;
    }

    /* Espace entre titre et badge Tournoi Inter-Paroissiens */
    .mb-6 {
        margin-bottom: 16px !important;
    }
}

/* ===========================================
   BARRE NAVIGATION MOBILE - TAILLES FIXES EN PIXELS
   Toutes les tailles en px pour éviter le zoom Safari
   =========================================== */

#mobileNavBar {
    position: fixed !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 10px !important;
    background: linear-gradient(135deg, rgba(20, 28, 40, 0.95) 0%, rgba(15, 22, 35, 0.98) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    border-radius: 18px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.08) !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    box-sizing: border-box !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    touch-action: manipulation !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

/* Safe area iPhone */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #mobileNavBar {
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }
}

/* Tous les éléments dans la barre - PIXELS FIXES */
#mobileNavBar * {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    box-sizing: border-box !important;
}

/* Chaque lien de navigation - TAILLES EN PIXELS */
#mobileNavBar a,
#mobileNavBar button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    min-width: 42px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

/* Icônes - TAILLE FIXE 20px */
#mobileNavBar i {
    font-size: 20px !important;
    line-height: 1 !important;
    -webkit-text-size-adjust: 100% !important;
}

/* Texte sous les icônes - TAILLE FIXE 9px */
#mobileNavBar span {
    font-size: 9px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    -webkit-text-size-adjust: 100% !important;
}

/* État actif */
#mobileNavBar a[style*="color:#FFD700"],
#mobileNavBar a[style*="color: #FFD700"] {
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.15) !important;
}

/* Dropdown container */
#mobileNavBar .nav-dropdown {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: 46px !important;
}

/* Menu dropdown */
#mobileNavBar .nav-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(20, 28, 40, 0.98) 0%, rgba(15, 22, 35, 0.99) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 16px;
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow:
        0 -8px 32px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.06);
}

#mobileNavBar .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#mobileNavBar .nav-dropdown-menu a {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

#mobileNavBar .nav-dropdown-menu a:hover,
#mobileNavBar .nav-dropdown-menu a:active {
    background: rgba(255, 215, 0, 0.12) !important;
    color: #FFD700 !important;
}

#mobileNavBar .nav-dropdown-menu a i {
    font-size: 18px !important;
}

#mobileNavBar .nav-dropdown-menu span {
    font-size: 14px !important;
}

/* Cacher sur desktop */
@media (min-width: 769px) {
    #mobileNavBar {
        display: none !important;
    }
}

/* Ancien style pour compatibilité - FORCER MEME TAILLE */
.mobile-bottom-bar {
    display: none !important;
}

/* Menu mobile items */
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
}

.mobile-nav-item.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

.mobile-nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Footer mobile spécifique */
@media (max-width: 768px) {
    footer .rounded-2xl {
        border-radius: 16px !important;
    }

    /* Footer logo plus petit */
    footer img.h-12 {
        height: 2.5rem !important;
    }

    /* Footer texte */
    footer .font-bold.text-sm {
        font-size: 0.8rem !important;
    }

    /* Footer liens plus compacts */
    footer .gap-4 {
        gap: 8px !important;
    }

    /* Instagram button plus petit */
    footer .rounded-full {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
    }

    /* Contact link */
    footer a[href^="mailto"] {
        font-size: 0.7rem !important;
    }

    /* Copyright */
    footer .text-white\/30 {
        font-size: 0.65rem !important;
    }

    footer .text-white\/20 {
        font-size: 0.6rem !important;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .logo-img {
        height: 50px;
    }

    .logo-container {
        top: 0;
    }

    main {
        padding-top: 12px !important;
    }

    /* Photo frame sur petit mobile - réduit */
    .photo-frame {
        width: 140px !important;
        height: 175px !important;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    .btn-cta {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    /* Footer ultra compact */
    footer img.h-12 {
        height: 2rem !important;
    }

    /* Cards encore plus compacts */
    .glass-card, .content-card, .tactic-info, .edition-card {
        padding: 12px;
    }

    /* Texte description */
    p.text-white\/60 {
        font-size: 0.9rem !important;
    }

    /* Menu mobile */
    .mobile-nav-item {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}
