/* ===== SWISS JUNIORS CUP - V5 ===== */

/* Performance: smoother scrolling */
html {
    scroll-behavior: smooth;
}
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Reduce animations during scroll for better performance */
.is-scrolling * {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
}

:root {
    --bg-primary: #faf9f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-muted: #888;
    --border-color: #e8e6e3;
    --accent: #e94560;
    --gold: #ffd700;
    --stat-blue: #3b82f6;
    --stat-green: #10b981;
    --stat-orange: #f59e0b;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.12);
    --container: 1350px;
    --radius: 20px;
    --radius-sm: 12px;
}

[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #252540;
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.5);
    --border-color: rgba(255,255,255,0.1);
    --shadow: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-lg: 0 25px 60px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Smooth scroll fluide et confortable */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background 0.4s, color 0.4s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth scroll pour sections */
section {
    scroll-margin-top: 80px;
}

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1002; padding: 12px 0; background: var(--bg-primary); transition: all 0.4s; }
.header.scrolled { background: var(--bg-secondary); backdrop-filter: blur(20px); box-shadow: var(--shadow); padding: 8px 0; }
.header-container { max-width: var(--container); margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.header-brand { display: flex; align-items: center; gap: 20px; }
.logo { height: 75px; transition: transform 0.3s; }
.logo:hover { transform: scale(1.05); }
.header-edition { display: flex; flex-direction: column; border-left: 2px solid var(--accent); padding-left: 15px; }
.edition-title { font-family: 'Teko', sans-serif; font-size: 1.3rem; color: var(--accent); letter-spacing: 2px; line-height: 1.1; }
.edition-subtitle { font-size: 0.7rem; color: var(--text-secondary); }
.nav { display: flex; align-items: center; gap: 5px; }
.nav a { color: var(--text-primary); text-decoration: none; font-size: 0.8rem; font-weight: 500; padding: 8px 15px; border-radius: 25px; transition: all 0.3s; }
.nav a:hover { background: var(--border-color); }
.nav a.cta { background: linear-gradient(135deg, var(--accent), #ff6b8a); color: #fff; display: flex; align-items: center; gap: 6px; }
.nav a.cta:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(233,69,96,0.3); }
.theme-toggle { width: 45px; height: 24px; background: var(--bg-card); border-radius: 12px; position: relative; cursor: pointer; border: 2px solid var(--border-color); margin-left: 10px; }
.theme-toggle::before { content: '☀️'; position: absolute; left: 3px; top: 50%; transform: translateY(-50%); font-size: 12px; transition: all 0.3s; }
[data-theme="dark"] .theme-toggle::before { content: '🌙'; left: auto; right: 3px; }

/* ===== HERO ===== */
.hero { min-height: 100vh; background: var(--bg-primary); position: relative; display: flex; align-items: center; padding: 100px 0 60px; }
.hero-container { max-width: var(--container); margin: 0 auto; padding: 0 40px; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

.hero-content { padding-top: 10px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(233,69,96,0.1); border: 1px solid rgba(233,69,96,0.2); padding: 10px 20px; border-radius: 25px; font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 25px; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.hero-title { font-family: 'Teko', sans-serif; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 0.95; margin-bottom: 20px; letter-spacing: 3px; font-weight: 600; text-transform: uppercase; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 6px; }
.hero-tagline { font-size: 0.9rem; color: var(--text-muted); font-style: italic; }
.hero-social { display: flex; gap: 12px; margin-top: 20px; }
.hero-social-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(200, 16, 46, 0.08); color: #C8102E; font-size: 1.1rem; transition: all 0.3s ease; text-decoration: none; }
.hero-social-link:hover { background: #C8102E; color: white; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3); }
[data-theme="dark"] .hero-social-link { background: rgba(200, 16, 46, 0.15); }
[data-theme="dark"] .hero-social-link:hover { background: #C8102E; }
.hero-info { display: flex; gap: 35px; margin: 30px 0; padding: 20px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.hero-info-item h4 { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.hero-info-item p { font-size: 1rem; font-weight: 600; }
.hero-cta { display: flex; gap: 12px; margin-top: 25px; }
.hero-description-box { margin-top: 30px; padding: 20px 25px; background: linear-gradient(135deg, rgba(233,69,96,0.08), rgba(233,69,96,0.03)); border: 1px solid rgba(233,69,96,0.2); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); }
.hero-description-box p { font-size: 0.9rem; color: var(--text-primary); line-height: 1.8; margin-bottom: 12px; }
.hero-description-box p:last-child { margin-bottom: 0; }
.hero-description-box strong { color: var(--accent); font-weight: 600; }
.hero-games-wrapper-left { margin-top: 25px; }
.hero-games-grid-left { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Play & Win Section - Teams Photos Grid */
.hero-games-section { margin-top: 20px; }
.hero-games-title { font-family: 'Teko', sans-serif; font-size: 0.85rem; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
.hero-teams-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.hero-team-photo { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-card); }
.hero-team-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 0.8s ease-in-out, transform 1.2s ease-in-out; }
.hero-team-photo img.active { opacity: 1; transform: scale(1); }

/* Teams Right (under TV) */
/* Play & Win Banner Right (under TV) */
.hero-playwin-right { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.hero-playwin-right:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-playwin-right img { width: 100%; height: auto; display: block; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff6b8a); color: #fff; box-shadow: 0 8px 25px rgba(233,69,96,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(233,69,96,0.35); }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border-color); }
.btn-outline:hover { border-color: var(--accent); background: rgba(233,69,96,0.05); }

.hero-media { display: flex; flex-direction: column; gap: 15px; }
.hero-video-section { }
.hero-video-title { font-family: 'Teko', sans-serif; font-size: 0.85rem; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
.hero-video-container { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 220px; }
/* Music Overlay Button - Centered on video */
.music-overlay-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; background: rgba(233,69,96,0.7); border: none; border-radius: 60px; padding: 15px 25px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.3s; backdrop-filter: blur(8px); animation: pulse-glow 2s infinite; }
.music-overlay-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(233,69,96,0.85); }
.music-overlay-btn svg { stroke: #fff; flex-shrink: 0; }
.music-overlay-btn .music-label { color: #fff; font-size: 0.85rem; font-weight: 600; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.music-overlay-btn.active { background: rgba(16,185,129,0.7); animation: none; }
.music-overlay-btn.active .music-label { display: none; }
.music-overlay-btn.active { padding: 12px; border-radius: 50%; }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(233,69,96,0.4); } 50% { box-shadow: 0 0 30px rgba(233,69,96,0.6), 0 0 15px rgba(233,69,96,0.3); } }
.hero-video-container video { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.8s; }
.hero-video-container video.active { opacity: 1; }
.hero-video-container video.rotate-ccw { transform: rotate(-90deg) scale(1.3); transform-origin: center center; }
.video-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.video-indicator { width: 10px; height: 10px; border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.video-indicator:nth-child(1) { background: rgba(233,69,96,0.3); }
.video-indicator:nth-child(2) { background: rgba(16,185,129,0.3); }
.video-indicator:nth-child(3) { background: rgba(245,158,11,0.3); }
.video-indicator.active:nth-child(1) { background: var(--accent); transform: scale(1.3); }
.video-indicator.active:nth-child(2) { background: #10b981; transform: scale(1.3); }
.video-indicator.active:nth-child(3) { background: #f59e0b; transform: scale(1.3); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { background: var(--bg-card); padding: 18px 12px; border-radius: var(--radius-sm); text-align: center; border: 1px solid var(--border-color); transition: all 0.3s; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.stat-card.blue::before { background: var(--stat-blue); }
.stat-card.green::before { background: var(--stat-green); }
.stat-card.orange::before { background: var(--stat-orange); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card h3 { font-family: 'Teko', sans-serif; font-size: 2.5rem; line-height: 1; margin-bottom: 3px; }
.stat-card.blue h3 { color: var(--stat-blue); }
.stat-card.green h3 { color: var(--stat-green); }
.stat-card.orange h3 { color: var(--stat-orange); }
.stat-card p { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }

.hero-games-title { font-family: 'Teko', sans-serif; font-size: 0.9rem; color: var(--accent); display: flex; align-items: center; gap: 8px; letter-spacing: 1px; margin-top: 8px; margin-bottom: 12px; }
.hero-bottom-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.hero-tv-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 25px 80px rgba(0,0,0,0.35), 0 0 0 6px rgba(255,255,255,0.05); display: block; transition: all 0.4s; background: var(--bg-card); }
.hero-tv-card:hover { transform: scale(1.02) translateY(-8px); box-shadow: 0 35px 100px rgba(0,0,0,0.5), 0 0 0 6px rgba(233,69,96,0.2); }
.hero-tv-card img { width: 100%; height: auto; object-fit: contain; display: block; }
.hero-tv-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 22px; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent 80%); color: #fff; }
.hero-tv-overlay p { font-size: 0.95rem; margin: 0; font-weight: 500; letter-spacing: 0.5px; }
.hero-games-wrapper { background: var(--bg-card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }
.hero-games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-game-card { border-radius: var(--radius-sm); overflow: hidden; transition: all 0.3s; display: block; box-shadow: var(--shadow); border: 1px solid var(--border-color); background: var(--bg-card); }
.hero-game-card:hover { transform: scale(1.05) translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.hero-game-card img { width: 100%; height: auto; object-fit: contain; display: block; }

/* Games + Teams Grid (4 columns) */
.hero-media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 15px; }
.media-grid-item { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-card); display: block; transition: all 0.3s; }
.media-grid-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.media-grid-item > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-grid-item.carousel-column img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 0.8s ease-in-out, transform 1.2s ease-in-out; }
.media-grid-item.carousel-column img.active { opacity: 1; transform: scale(1); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.section-label::before, .section-label::after { content: ''; width: 30px; height: 2px; background: var(--accent); }
.section-title { font-family: 'Teko', sans-serif; font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: 3px; margin-bottom: 12px; font-weight: 600; text-transform: uppercase; }
.section-subtitle { font-size: 0.95rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ===== ORBITAL TOURNOI DESIGN ===== */
.orbital-tournoi {
    position: relative;
    padding: 20px 0;
}

/* Orbital Items (Buttons) */
.orbital-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.orbital-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.orbital-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.orbital-item.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.orbital-item.active .orbital-plus {
    transform: rotate(45deg);
    opacity: 0;
}

.orbital-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface, rgba(0,0,0,0.05));
    transition: all 0.3s ease;
}

.orbital-item.active .orbital-icon {
    background: rgba(255, 255, 255, 0.2);
}

.orbital-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

[data-theme="dark"] .orbital-item:not(.active) .orbital-label {
    color: #fff;
}

[data-theme="dark"] .orbital-item:not(.active) .orbital-plus {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .orbital-item:not(.active):hover .orbital-plus {
    color: var(--accent);
}

.orbital-plus {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.orbital-item:hover .orbital-plus {
    opacity: 1;
    color: var(--accent);
}

.orbital-item.active .orbital-plus {
    color: #fff;
}

/* Panels */
.orbital-panels {
    position: relative;
    min-height: 300px;
}

.orbital-panel {
    display: none;
    animation: panelFadeIn 0.4s ease;
}

.orbital-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Panel Header */
.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.panel-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-icon.red { background: linear-gradient(135deg, #D50000, #ff4444); }
.panel-icon.blue { background: linear-gradient(135deg, #2196F3, #64B5F6); }
.panel-icon.green { background: linear-gradient(135deg, #4CAF50, #81C784); }
.panel-icon.gold { background: linear-gradient(135deg, #FFA000, #FFD54F); }
.panel-icon.purple { background: linear-gradient(135deg, #9C27B0, #BA68C8); }

.panel-header h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

/* Panel Content */
.panel-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: start;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.panel-image {
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.panel-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.panel-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.panel-text p strong {
    color: var(--text-primary);
}

.panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.panel-tags .tag {
    padding: 6px 14px;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Stats for Format panel */
.panel-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 280px;
}

.stat-box {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-box .stat-number {
    display: block;
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Values for Valeurs panel */
.panel-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 280px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
}

.value-icon {
    font-size: 1.4rem;
}

/* Mystery for Parrain panel */
.panel-mystery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 200px;
    padding: 30px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.mystery-avatar {
    opacity: 0.5;
}

.mystery-badge {
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFA000, #FFD54F);
    color: #000;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Organisation items */
.panel-orga {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 280px;
}

.orga-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-primary);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
}

.orga-item svg {
    color: #9C27B0;
}

/* Responsive Orbital */
@media (max-width: 900px) {
    .panel-content {
        grid-template-columns: 1fr;
    }

    .panel-image,
    .panel-stats,
    .panel-values,
    .panel-mystery,
    .panel-orga {
        width: 100%;
    }

    .panel-image img {
        height: 180px;
    }

    .panel-stats,
    .panel-orga {
        grid-template-columns: repeat(4, 1fr);
    }

    .panel-values {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .orbital-items {
        gap: 8px;
    }

    .orbital-item {
        padding: 10px 14px;
    }

    .orbital-label {
        font-size: 0.8rem;
    }

    .orbital-icon {
        width: 28px;
        height: 28px;
    }

    .orbital-icon svg {
        width: 18px;
        height: 18px;
    }

    .orbital-logo {
        width: 80px;
        height: 80px;
    }

    .orbital-pulse {
        width: 100px;
        height: 100px;
    }

    .panel-header h3 {
        font-size: 1.3rem;
    }

    .panel-content {
        padding: 20px;
    }

    .panel-stats,
    .panel-values,
    .panel-orga {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box .stat-number {
        font-size: 2rem;
    }
}

/* ===== TWO BLOCKS ===== */
.two-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 50px; align-items: stretch; }
.block-card { background: var(--bg-card); border-radius: var(--radius); padding: 35px; border: 2px solid var(--border-color); transition: all 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.block-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.block-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.block-card.qualif::before { background: linear-gradient(90deg, var(--accent), #ff6b8a); }
.block-card.final::before { background: linear-gradient(90deg, var(--gold), #ffc107); }
.block-card .block-badge { position: absolute; top: 18px; right: 18px; padding: 5px 12px; border-radius: 15px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
.block-card.qualif .block-badge { background: rgba(233,69,96,0.1); color: var(--accent); }
.block-card.final .block-badge { background: rgba(255,215,0,0.15); color: #d4a500; }
.block-card h3 { font-family: 'Teko', sans-serif; font-size: 1.8rem; margin-bottom: 8px; letter-spacing: 2px; }
.block-card.qualif h3 { color: var(--accent); }
.block-card.final h3 { color: #d4a500; }
.block-card h4 { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 18px; font-weight: 500; }
.block-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 15px; }
.block-card .block-address { background: var(--bg-primary); padding: 18px; border-radius: var(--radius-sm); margin-top: auto; }
.block-card .block-address h5 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.block-card .block-address p { font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* ===== CLUBS ===== */
.clubs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.club-card { background: var(--bg-card); border-radius: var(--radius); padding: 35px 20px 25px; text-align: center; border: 1px solid var(--border-color); transition: all 0.3s; cursor: pointer; position: relative; overflow: hidden; }
.club-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s; }
.club-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.club-card:hover::before { transform: scaleX(1); }
.club-badge { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, var(--gold), #ffc107); color: #1a1a2e; font-size: 0.6rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; text-transform: uppercase; }
.club-logo { width: 90px; height: 90px; object-fit: contain; margin-bottom: 15px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)); transition: transform 0.3s; }
.club-card:hover .club-logo { transform: scale(1.1); }
.club-name { font-family: 'Teko', sans-serif; font-size: 1.3rem; letter-spacing: 1px; margin-bottom: 4px; }
.club-country { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.club-action { display: inline-block; font-size: 0.7rem; color: var(--accent); font-weight: 600; padding: 5px 12px; border: 1px solid var(--accent); border-radius: 15px; margin-top: 8px; transition: all 0.3s; cursor: pointer; }
.club-card:hover .club-action { background: var(--accent); color: #fff; }
.club-compo-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 5px 12px; background: transparent; color: #FF6B00; border: 1px solid #FF6B00; border-radius: 15px; font-size: 0.7rem; font-weight: 600; cursor: pointer; transition: all 0.3s; visibility: visible !important; opacity: 1 !important; }
.club-compo-btn:hover { background: #FF6B00; color: #fff; }
.club-compo-btn svg { flex-shrink: 0; width: 14px; height: 14px; }

.academies-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.academy-card { background: var(--bg-card); border-radius: var(--radius); padding: 30px 15px 20px; text-align: center; border: 1px solid var(--border-color); transition: all 0.3s; cursor: pointer; position: relative; }
.academy-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s; }
.academy-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.academy-card:hover::before { transform: scaleX(1); }
.academy-badge { position: absolute; top: 10px; right: 10px; background: var(--accent); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #fff; font-weight: 700; }
.academy-buttons { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; }
.academy-action { display: inline-block; font-size: 0.65rem; color: var(--accent); font-weight: 600; padding: 4px 10px; border: 1px solid var(--accent); border-radius: 12px; transition: all 0.3s; }
.academy-card:hover .academy-action { background: var(--accent); color: #fff; }
.academy-card .club-compo-btn { margin-top: 0; font-size: 0.65rem; padding: 4px 10px; border-radius: 12px; }
.academy-logo { width: 65px; height: 65px; object-fit: contain; margin-bottom: 12px; transition: transform 0.3s; }
.academy-card:hover .academy-logo { transform: scale(1.1); }
.academy-name { font-family: 'Teko', sans-serif; font-size: 1rem; letter-spacing: 1px; }

/* ===== TEAMS & SPONSORS GRIDS ===== */
.slider-section { padding: 50px 0; background: var(--bg-secondary); }
.slider-title { font-family: 'Teko', sans-serif; font-size: 1.3rem; text-align: center; margin-bottom: 30px; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; gap: 10px; }

/* Teams Grid */
.teams-grid-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.team-card { border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; box-shadow: var(--shadow); height: 180px; }
.team-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.team-card:hover img { transform: scale(1.1); }
.team-card-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; font-size: 0.85rem; font-weight: 600; }

/* Sponsors Grid */
.sponsors-grid-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.sponsor-card { height: 80px; background: var(--bg-card); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; padding: 15px; border: 1px solid var(--border-color); transition: all 0.3s; }
.sponsor-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.sponsor-card img { max-width: 110px; max-height: 50px; object-fit: contain; }

/* ===== PROGRAM ===== */
.program-description { max-width: 900px; margin: 0 auto 10px; font-size: 0.95rem; line-height: 1.8; color: var(--text-secondary); text-align: center; }
.program-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.program-tab { padding: 10px 20px; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 25px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.3s; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.program-tab:hover { border-color: var(--accent); }
.program-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.program-tab .count { background: rgba(255,255,255,0.2); padding: 2px 7px; border-radius: 10px; font-size: 0.7rem; }

/* Team Filter */
.team-filter-wrapper { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 25px; padding: 15px 20px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border-color); max-width: 400px; margin-left: auto; margin-right: auto; }
.team-filter-wrapper label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.team-filter-wrapper select { flex: 1; padding: 10px 15px; border: 2px solid var(--border-color); border-radius: 20px; background: var(--bg-primary); color: var(--text-primary); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.team-filter-wrapper select:hover, .team-filter-wrapper select:focus { border-color: var(--accent); outline: none; }

.matches-grid { display: flex; flex-direction: column; gap: 10px; max-height: 600px; overflow-y: auto; padding-right: 12px; }
.matches-grid::-webkit-scrollbar { width: 12px; }
.matches-grid::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 6px; border: 1px solid var(--border-color); }
.matches-grid::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), #ff6b8a); border-radius: 6px; border: 2px solid var(--bg-secondary); }
.matches-grid::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff6b8a, var(--accent)); }
.match-row { display: grid; grid-template-columns: 80px 1fr 60px 1fr 80px; grid-template-rows: auto auto; align-items: center; gap: 12px; padding: 15px 18px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border-color); border-left: 4px solid var(--border-color); transition: all 0.3s; }
.match-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.match-row.groupe-a { border-left-color: var(--accent); }
.match-row.groupe-b { border-left-color: var(--stat-blue); }
.match-row.finale { border-left-color: var(--gold); background: linear-gradient(135deg, rgba(255,215,0,0.08), transparent); }
.match-row.live { border-left-color: var(--accent); animation: livePulse 2s ease-in-out infinite; position: relative; }
.match-row.live::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #fff, var(--accent)); background-size: 200% 100%; animation: shimmer 2s linear infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(213, 0, 0, 0); } 50% { box-shadow: 0 0 15px 3px rgba(213, 0, 0, 0.2); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.match-row-content { display: contents; }
.match-arbitres { grid-column: 1 / -1; text-align: center; font-size: 0.7rem; color: var(--text-muted); padding: 10px 15px; margin-top: 8px; background: var(--bg-secondary); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.match-arbitres::before { content: '🎽'; font-size: 0.85rem; }
.match-arbitres span { font-weight: 500; }
.match-time { text-align: center; }
.match-time .time { font-family: 'Teko', sans-serif; font-size: 1.4rem; }
.match-time .phase { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; }
.match-team { display: flex; align-items: center; gap: 10px; }
.match-team.home { justify-content: flex-end; text-align: right; }
.match-team img { width: 35px; height: 35px; object-fit: contain; }
.match-team .name { font-weight: 600; font-size: 0.85rem; }
.match-vs { text-align: center; font-weight: 700; color: var(--text-muted); font-size: 0.8rem; background: var(--bg-primary); padding: 6px 12px; border-radius: 15px; }
.match-badge { text-align: center; }
.match-badge span { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }
.match-badge .groupe-a { background: rgba(233,69,96,0.12); color: var(--accent); }
.match-badge .groupe-b { background: rgba(59,130,246,0.12); color: var(--stat-blue); }
.match-badge .finale { background: linear-gradient(135deg, var(--gold), #ffc107); color: #1a1a2e; }

/* ===== QUALIFICATION ===== */
.quali-intro { font-weight: 600; color: var(--text-primary); }
.quali-description { max-width: 900px; margin: 15px auto 0; font-size: 0.95rem; line-height: 1.8; color: var(--text-secondary); text-align: center; }
/* PODIUM - Style olympique: 2ème à gauche, 1er au milieu (plus haut), 3ème à droite */
.quali-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 40px;
    padding-top: 60px;
}
.podium-item {
    text-align: center;
    padding: 25px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.podium-item:hover { transform: translateY(-8px); }
.podium-item.gold {
    background: linear-gradient(135deg, rgba(255,215,0,0.12), var(--bg-card));
    border-color: var(--gold);
    padding: 35px 25px;
    z-index: 1;
}
.podium-item.silver {
    border-color: #c0c0c0;
    padding: 25px;
}
.podium-item.bronze {
    border-color: #cd7f32;
    padding: 25px;
}
.podium-rank { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Teko', sans-serif; font-size: 1.4rem; margin: 0 auto 12px; }
.podium-item.gold .podium-rank { background: linear-gradient(135deg, var(--gold), #ffc107); color: #1a1a2e; }
.podium-item.silver .podium-rank { background: linear-gradient(135deg, #e8e8e8, #c0c0c0); color: #1a1a2e; }
.podium-item.bronze .podium-rank { background: linear-gradient(135deg, #daa06d, #cd7f32); color: #fff; }
.podium-logo { width: 60px; height: 60px; object-fit: contain; margin-bottom: 12px; }
.podium-name { font-family: 'Teko', sans-serif; font-size: 1rem; margin-bottom: 4px; }
.podium-day { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ===== QUALI CLUBS PARTICIPANTS ===== */
.quali-clubs-section {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.quali-clubs-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-primary);
}

.quali-clubs-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.quali-groups-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.quali-groupe-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quali-groupe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.quali-groupe-header {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-family: 'Teko', sans-serif;
}

.groupe-letter {
    font-size: 1.3rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.groupe-day {
    font-size: 0.85rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.quali-groupe-teams {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quali-team-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.quali-team-item:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
}

.quali-team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

.quali-team-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
    .quali-groups-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .quali-groups-wrapper {
        grid-template-columns: 1fr;
    }

    .quali-groupe-header {
        padding: 12px 14px;
    }

    .groupe-letter {
        font-size: 1.1rem;
    }

    .quali-team-logo {
        width: 30px;
        height: 30px;
    }

    .quali-team-name {
        font-size: 0.85rem;
    }
}

/* ===== QUALI CLASSEMENTS SECTION ===== */
.quali-classements-section {
    margin: 50px 0;
    padding: 40px 0;
}

.quali-classements-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-primary);
}

.quali-classements-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 35px;
    font-size: 0.95rem;
}

.classements-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.classement-groupe-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.classement-groupe-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-family: 'Teko', sans-serif;
}

.classement-groupe-letter {
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.classement-groupe-day {
    font-size: 0.8rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
}

.classement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.classement-table thead {
    background: var(--surface);
}

.classement-table th {
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.classement-table th.col-equipe {
    text-align: left;
    padding-left: 12px;
}

.classement-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.classement-table tbody tr:hover {
    background: var(--hover-bg);
}

.classement-table tbody tr.qualified {
    background: rgba(76, 175, 80, 0.1);
}

.classement-table tbody tr.qualified:hover {
    background: rgba(76, 175, 80, 0.15);
}

.classement-table td {
    padding: 10px 6px;
    text-align: center;
    color: var(--text-primary);
}

.classement-table td.col-pos {
    font-weight: 700;
    color: var(--text-secondary);
}

.classement-table td.col-equipe {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
}

.classement-team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.classement-team-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.classement-table td.col-pts strong {
    color: var(--accent);
}

.classement-table td.col-diff.positive {
    color: #4CAF50;
    font-weight: 600;
}

.classement-table td.col-diff.negative {
    color: #f44336;
    font-weight: 600;
}

/* ===== QUALI PODIUMS SECTION ===== */
.quali-podiums-section {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.quali-podiums-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-primary);
}

.quali-day-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    margin: 30px 0 20px;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* ===== QUALI MATCHES SECTION ===== */
.quali-matches-section {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.quali-matches-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-primary);
}

/* Responsive classements */
@media (max-width: 900px) {
    .classements-wrapper {
        grid-template-columns: 1fr;
    }

    .classement-team-name {
        max-width: 120px;
    }
}

@media (max-width: 600px) {
    .classement-table {
        font-size: 0.75rem;
    }

    .classement-table th,
    .classement-table td {
        padding: 8px 4px;
    }

    .classement-team-logo {
        width: 22px;
        height: 22px;
    }

    .classement-team-name {
        max-width: 80px;
        font-size: 0.7rem;
    }

    .classement-table .col-vnd,
    .classement-table .col-buts {
        display: none;
    }
}

/* ===== QUALI ALL MATCHES SECTION ===== */
.quali-all-matches-section {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.quali-all-matches-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-primary);
}

.quali-all-matches-intro {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 0.95rem;
}

/* Barre de filtres */
.quali-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.quali-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quali-filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quali-filter-select {
    padding: 10px 35px 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quali-filter-select:hover {
    border-color: var(--accent);
}

.quali-filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(213, 0, 0, 0.1);
}

.quali-filter-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quali-filter-reset:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Compteur de matchs */
.quali-matches-counter {
    text-align: center;
    margin-bottom: 20px;
}

.quali-matches-counter span {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Grille des matchs */
.quali-all-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    max-height: 800px;
    overflow-y: auto;
    padding: 5px;
}

/* Style de la scrollbar */
.quali-all-matches-grid::-webkit-scrollbar {
    width: 8px;
}

.quali-all-matches-grid::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 4px;
}

.quali-all-matches-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.quali-all-matches-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Carte de match */
.quali-match-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quali-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quali-match-card.final-match {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 215, 0, 0.05));
}

.quali-match-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.quali-match-time {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.quali-match-day {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--hover-bg);
    padding: 3px 8px;
    border-radius: 4px;
}

.quali-match-groupe {
    font-size: 0.7rem;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.quali-match-phase {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quali-match-phase.phase-groupe {
    background: var(--hover-bg);
    color: var(--text-secondary);
}

.quali-match-phase.phase-finale {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000;
}

.quali-match-phase.phase-demi {
    background: #9c27b0;
    color: #fff;
}

.quali-match-phase.phase-petit {
    background: #cd7f32;
    color: #fff;
}

.quali-match-phase.phase-classement {
    background: var(--border-color);
    color: var(--text-primary);
}

.quali-match-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    gap: 10px;
}

.quali-match-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.quali-match-team.home {
    align-items: flex-start;
    text-align: left;
}

.quali-match-team.away {
    align-items: flex-end;
    text-align: right;
}

.quali-match-team.winner .quali-match-name {
    font-weight: 700;
    color: var(--accent);
}

.quali-match-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
}

.quali-match-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    max-width: 100px;
}

.quali-match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.quali-match-score .score-home,
.quali-match-score .score-away {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Teko', sans-serif;
    color: var(--text-primary);
}

.quali-match-score .score-home.winner,
.quali-match-score .score-away.winner {
    color: var(--accent);
}

.quali-match-score .score-separator {
    font-size: 1rem;
    color: var(--text-muted);
    display: none;
}

.quali-match-score {
    flex-direction: row;
    gap: 8px;
}

.quali-match-score .score-separator {
    display: inline;
}

.quali-match-score.draw .score-home,
.quali-match-score.draw .score-away {
    color: var(--text-secondary);
}

.penalty-score {
    font-size: 0.7rem;
    color: #9c27b0;
    font-weight: 600;
    white-space: nowrap;
}

.quali-match-num {
    text-align: center;
    padding: 8px;
    background: var(--surface);
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.no-matches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Responsive filtres */
@media (max-width: 900px) {
    .quali-filters-bar {
        padding: 15px;
    }

    .quali-filter-select {
        min-width: 120px;
    }
}

@media (max-width: 600px) {
    .quali-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .quali-filter-group {
        width: 100%;
    }

    .quali-filter-select {
        width: 100%;
    }

    .quali-filter-reset {
        width: 100%;
        justify-content: center;
    }

    .quali-all-matches-grid {
        grid-template-columns: 1fr;
        max-height: 600px;
    }

    .quali-match-name {
        font-size: 0.75rem;
        max-width: 80px;
    }

    .quali-match-logo {
        width: 32px;
        height: 32px;
    }
}

.quali-gallery { margin: 50px 0; }
.quali-gallery-title { font-family: 'Teko', sans-serif; font-size: 1.3rem; text-align: center; margin-bottom: 25px; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.quali-gallery-title::before, .quali-gallery-title::after { content: ''; width: 40px; height: 2px; background: var(--accent); }

/* ===== MASONRY PHOTO GALLERY ===== */
.quali-gallery-grid.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 10px;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Gallery loader */
.gallery-loader {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gallery items */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item.fading {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease-out;
}

/* Orientation-based sizing - photos keep natural proportions */
.gallery-item.landscape {
    grid-row: span 18; /* ~180px pour paysage */
}

.gallery-item.portrait {
    grid-row: span 28; /* ~280px pour portrait */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Protection des images de la galerie */
.protected-gallery {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ========================================
   PROTECTION RENFORCÉE CONTRE TÉLÉCHARGEMENT ET CAPTURES D'ÉCRAN
   ======================================== */

/* Protection de base des images */
.protected-gallery .gallery-item img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Couche de protection transparente sur les images */
.protected-gallery .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: auto;
}

/* Protection contre les captures d'écran - flou lors de la perte de focus */
.protected-gallery.blur-protection .gallery-item img {
    filter: blur(20px) !important;
    transition: filter 0.3s ease;
}

.protected-gallery:not(.blur-protection) .gallery-item img {
    filter: none;
    transition: filter 0.3s ease;
}

/* Empêcher la sélection sur toute la galerie */
.protected-gallery {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Watermark invisible sur les images (visible uniquement si capturé) */
.protected-gallery .gallery-item::after {
    content: '© Swiss Juniors Cup 2026';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
    z-index: 2;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Protection du modal photo */
#photoModal.protected-modal .modal-image-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#photoModal.protected-modal #photoModalImage {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

#photoModal.protected-modal .modal-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 10;
    pointer-events: auto;
}

/* Protection flou sur le modal aussi */
#photoModal.blur-protection #photoModalImage {
    filter: blur(30px) !important;
    transition: filter 0.3s ease;
}

#photoModal:not(.blur-protection) #photoModalImage {
    filter: none;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Overlay au survol */
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(213,0,0,0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay svg {
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.gallery-item:hover .gallery-item-overlay svg {
    transform: scale(1);
}

/* Hover effects */
.gallery-item:hover {
    box-shadow: 0 12px 35px rgba(213,0,0,0.25);
    z-index: 2;
}

/* Bordure animée */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: border-color 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .quali-gallery-grid.masonry-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .gallery-item.landscape { grid-row: span 15; }
    .gallery-item.portrait { grid-row: span 24; }
}

@media (max-width: 600px) {
    .quali-gallery-grid.masonry-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-item { border-radius: 8px; }
    .gallery-item.landscape { grid-row: span 14; }
    .gallery-item.portrait { grid-row: span 22; }
}

@media (max-width: 400px) {
    .quali-gallery-grid.masonry-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .gallery-item.landscape,
    .gallery-item.portrait {
        grid-row: span 1;
        aspect-ratio: auto;
    }
    .gallery-item.landscape img { aspect-ratio: 16/10; }
    .gallery-item.portrait img { aspect-ratio: 3/4; }
}

/* ===== VENUE SECTION - INFOS PRATIQUES ===== */
.venue-section {
    position: relative;
    background-image: url('https://static.wixstatic.com/media/2a33e5_7ef90f8bc5414041b55318aa529bf11c~mv2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 5%;
    color: #fff;
}

.venue-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(30,0,0,0.85) 100%);
}

.venue-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.venue-title {
    text-align: center;
    font-family: 'Teko', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: 4px;
    margin-bottom: 60px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.venue-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D50000, #ff4444);
    margin: 20px auto 0;
    border-radius: 2px;
}

.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.venue-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.venue-card {
    background: rgba(255,255,255,0.95);
    color: #111;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.venue-card-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, #D50000, #B71C1C);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(213,0,0,0.3);
}

.venue-card-content h4 {
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #111;
}

.venue-card-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* Access Grid */
.access-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.access-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #333;
}

.access-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.access-icon.tram { background: #0066cc; }
.access-icon.bus { background: #ff9800; }
.access-icon.parking { background: #2e7d32; }

/* Map Container */
.venue-map-container {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.venue-map {
    flex: 1;
    min-height: 380px;
    background: #eee;
}

.venue-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-buttons {
    display: flex;
}

.map-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.map-btn.google {
    background: #1a1a1a;
    color: #fff;
}

.map-btn.google:hover {
    background: #333;
}

.map-btn.waze {
    background: #D50000;
    color: #fff;
}

.map-btn.waze:hover {
    background: #b71c1c;
}

/* Responsive Venue */
@media (max-width: 900px) {
    .venue-section {
        padding: 70px 4%;
        background-attachment: scroll;
    }
    .venue-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .venue-map {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .venue-title {
        margin-bottom: 40px;
    }
    .venue-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px;
    }
    .access-grid {
        justify-content: center;
    }
    .map-btn {
        padding: 14px 12px;
        font-size: 13px;
    }
}

.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    transition: background 0.4s;
}
.photo-modal.active {
    background: rgba(0,0,0,0.95);
    pointer-events: auto;
}
.photo-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.photo-modal.active img {
    opacity: 1;
    transform: scale(1);
}
.photo-modal-close { position: absolute; top: 25px; right: 25px; width: 45px; height: 45px; background: var(--accent); border: none; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.photo-modal-close:hover { transform: rotate(90deg) scale(1.1); }
.photo-modal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: #fff; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.photo-modal-nav:hover { background: var(--accent); }
.photo-modal-nav.prev { left: 25px; }
.photo-modal-nav.next { right: 25px; }

/* ===== SPONSORING & PARTENARIATS SECTION ===== */
.sponsors-partners-section {
    margin: 70px 0 40px;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, transparent, rgba(233,69,96,0.02), transparent);
}
.sponsors-section-title {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--accent);
    position: relative;
}
.sponsors-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 2px;
}
.sponsors-section-title svg { fill: var(--accent); }
.sponsors-intro {
    max-width: 950px;
    margin: 30px auto 15px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-secondary);
    padding: 0 20px;
}
.sponsors-intro-small { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 50px; font-style: italic; }

.sponsor-category {
    margin-bottom: 35px;
    padding: 30px 25px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}
.sponsor-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #ff6b8a, var(--gold));
}
.sponsor-category:first-of-type::before {
    background: linear-gradient(90deg, #ffd700, #ffeb3b, #ffc107);
}
.sponsor-category:last-of-type::before {
    background: linear-gradient(90deg, var(--stat-green), #34d399, #10b981);
}

.sponsor-category-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.sponsor-category-title.partenaires-majeurs { color: #ffd700; text-shadow: 0 0 20px rgba(255,215,0,0.3); }
.sponsor-category-title.partenaires-majeurs svg { fill: #ffd700; filter: drop-shadow(0 0 8px rgba(255,215,0,0.5)); }
.sponsor-category-title.sponsors-title { color: var(--accent); }
.sponsor-category-title.sponsors-title svg { fill: var(--accent); }
.sponsor-category-title.soutiens-title { color: var(--stat-green); }
.sponsor-category-title.soutiens-title svg { fill: var(--stat-green); }
.sponsor-category-desc {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.sponsor-logos-grid { display: grid; gap: 18px; justify-content: center; }
.sponsor-logos-grid.partenaires-grid { grid-template-columns: repeat(4, 1fr); max-width: 850px; margin: 0 auto; }
.sponsor-logos-grid.sponsors-grid { grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto; }
.sponsor-logos-grid.soutiens-grid { grid-template-columns: repeat(3, 1fr); max-width: 550px; margin: 0 auto; }

.sponsor-logo-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 18px 15px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 120px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    will-change: transform;
    contain: layout style paint;
}
.sponsor-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.sponsor-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}
.sponsor-logo-card img {
    max-width: 100%;
    max-height: 55px;
    object-fit: contain;
}
.sponsor-logo-card.partenaire-majeur {
    padding: 22px 18px 15px;
    min-height: 140px;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255,215,0,0.03));
}
.sponsor-logo-card.partenaire-majeur:hover {
    border-color: #ffd700;
    box-shadow: 0 8px 20px rgba(255,215,0,0.12);
}
.sponsor-logo-card.partenaire-majeur img { max-height: 70px; }
.sponsor-logo-card.soutien-item { padding: 15px 12px 10px; min-height: 110px; }
.sponsor-logo-card.soutien-item:hover { border-color: var(--stat-green); }
.sponsor-logo-card.soutien-item img { max-height: 55px; }

.sponsor-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}
.sponsor-logo-card:hover .sponsor-name { color: var(--text-primary); }

.sponsor-link-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    color: var(--accent);
    border: 1px solid var(--border-color);
}
.sponsor-logo-card:hover .sponsor-link-icon { opacity: 1; transform: scale(1); }

.sponsor-fallback {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 55px;
}

/* Sponsor sans logo - affichage texte élégant */
.sponsor-text-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 55px;
    padding: 10px;
    background: linear-gradient(135deg, var(--bg-primary), rgba(var(--accent-rgb), 0.05));
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}
.sponsor-text-logo span {
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.sponsor-logo-card.no-logo:hover .sponsor-text-logo {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
    border-color: var(--accent);
}
.sponsor-logo-card.no-logo:hover .sponsor-text-logo span {
    color: var(--accent);
}
.sponsor-logo-card.no-logo .sponsor-name {
    display: none;
}

/* Styles spécifiques par catégorie pour les sponsors sans logo */
.sponsor-logo-card.partenaire-majeur .sponsor-text-logo {
    min-height: 70px;
    background: linear-gradient(135deg, var(--bg-primary), rgba(255, 215, 0, 0.08));
}
.sponsor-logo-card.partenaire-majeur .sponsor-text-logo span {
    font-size: 1.25rem;
    color: #b8860b;
}
.sponsor-logo-card.partenaire-majeur.no-logo:hover .sponsor-text-logo {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
}
.sponsor-logo-card.partenaire-majeur.no-logo:hover .sponsor-text-logo span {
    color: #ffd700;
}

.sponsor-logo-card.soutien-item .sponsor-text-logo {
    min-height: 50px;
    background: linear-gradient(135deg, var(--bg-primary), rgba(76, 175, 80, 0.05));
}
.sponsor-logo-card.soutien-item .sponsor-text-logo span {
    font-size: 1rem;
}
.sponsor-logo-card.soutien-item.no-logo:hover .sponsor-text-logo {
    border-color: var(--stat-green);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.03));
}
.sponsor-logo-card.soutien-item.no-logo:hover .sponsor-text-logo span {
    color: var(--stat-green);
}

/* ===== CONTACT ===== */
.contact-section {
    position: relative;
    background-image: url('https://static.wixstatic.com/media/2a33e5_f05fd51c0bd8466796e7ba1015e94d88~mv2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(30,0,0,0.85) 100%);
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section .section-header {
    color: #fff;
}

.contact-section .section-title {
    color: #fff;
}

.contact-section .section-label {
    color: var(--accent);
}

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.contact-card { background: rgba(255,255,255,0.95); border-radius: var(--radius); padding: 30px; border: 1px solid var(--border-color); transition: all 0.3s; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); border-color: var(--accent); }
.contact-icon { width: 55px; height: 55px; background: linear-gradient(135deg, var(--accent), #ff6b8a); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.contact-icon svg { fill: #fff; }
.contact-card h4 { font-family: 'Teko', sans-serif; font-size: 1.2rem; letter-spacing: 1px; margin-bottom: 12px; color: #111; }
.contact-card p { font-size: 0.85rem; color: #444; line-height: 1.7; }
.contact-card a { color: var(--accent); text-decoration: none; }

/* ===== GALERIE SECTION ===== */
.galerie-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.galerie-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.galerie-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.galerie-item:hover img {
    transform: scale(1.05);
}

/* Protection des images */
.protected-gallery {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.protected-gallery img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.protected-gallery .galerie-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: auto;
}

/* Lightbox pour agrandir les photos */
.galerie-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.galerie-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.galerie-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.galerie-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.galerie-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.galerie-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.galerie-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.galerie-lightbox-nav.prev {
    left: 30px;
}

.galerie-lightbox-nav.next {
    right: 30px;
}

@media (max-width: 1024px) {
    .galerie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .galerie-section {
        padding: 50px 0;
    }
}

/* ===== FOOTER ===== */
.footer { background: var(--bg-secondary); padding: 50px 0 25px; border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 35px; }
.footer-logo { height: 45px; margin-bottom: 15px; }
.footer-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.footer-links h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; color: var(--text-muted); }
.footer-links a { display: block; color: var(--text-primary); text-decoration: none; padding: 6px 0; font-size: 0.85rem; transition: all 0.3s; }
.footer-links a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 25px; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

/* ===== TEAM PHOTO MODAL - Style cup.html ===== */
.team-photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(10px);
}
.team-photo-modal.active {
    display: flex;
}
.team-photo-content {
    background: var(--bg-primary);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}
@keyframes modalIn { from { transform: scale(0.95) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.team-photo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-photo-close:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* Header rouge avec logo + nom + badge */
.team-photo-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--accent), #B71C1C);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 24px 24px 0 0;
}
.team-modal-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.team-modal-info {
    flex: 1;
}
.team-modal-info h2 {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
}
.team-modal-groupe {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
}
.team-modal-groupe.a { background: rgba(37, 99, 235, 0.4); }
.team-modal-groupe.b { background: rgba(220, 38, 38, 0.4); }

.team-modal-tournament-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Photo équipe */
.team-photo-body {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}
.team-photo-body img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}
.team-photo-body:hover img {
    transform: scale(1.02);
}

/* Description avec filigrane */
.team-photo-desc {
    padding: 20px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}
.team-photo-desc::before {
    content: '';
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 120px;
    height: 120px;
    background-image: url('https://static.wixstatic.com/media/38d0cb_9133edaeae6748c7a416fdf8ff2166c9~mv2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
}
.team-photo-desc p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}

/* Boutons FR/EN */
.team-lang-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.team-lang-btn {
    padding: 6px 16px;
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}
.team-lang-btn:not(.active) {
    background: var(--bg-card);
    color: var(--text-secondary);
}
.team-lang-btn:hover:not(.active) {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Mobile */
@media (max-width: 600px) {
    .team-photo-content {
        max-height: 85vh;
        border-radius: 16px;
    }
    .team-photo-header {
        padding: 15px;
        border-radius: 16px 16px 0 0;
    }
    .team-photo-header h2 {
        font-size: 18px;
    }
    .team-modal-logo {
        width: 55px;
        height: 55px;
    }
    .team-modal-tournament-logo {
        width: 55px;
        height: 55px;
        padding: 8px;
    }
    .team-photo-desc {
        padding: 15px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .header-edition { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { text-align: center; }
    .hero-info { justify-content: center; }
    .hero-cta { justify-content: center; }
    .two-blocks { grid-template-columns: 1fr; }
    .clubs-grid { grid-template-columns: repeat(2, 1fr); }
    .academies-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .quali-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .header-container { padding: 0 15px; }
    .nav a:not(.cta) { display: none; }
    .nav .cta { padding: 8px 12px; font-size: 0.75rem; }
    .hero { padding: 100px 0 40px; }
    .hero-container { padding: 0 15px; }
    .hero-title { font-size: 2.8rem; }
    .hero-info { flex-direction: column; gap: 15px; }
    .hero-video-container { height: 200px; }
    .hero-grid { display: flex; flex-direction: column; }
    .hero-media { display: flex; flex-direction: column; gap: 15px; order: 1; }
    .hero-content { order: 2; }
    .mobile-order-1 { order: 1; }
    .mobile-order-2 { order: 2; }
    .mobile-order-3 { order: 3; }
    .mobile-order-4 { order: 4; }
    .hero-tv-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
    .hero-tv-card img { height: 200px; width: 100%; object-fit: cover; }
    .hero-games-wrapper { margin-top: 0; }
    .hero-games-grid { grid-template-columns: 1fr 1fr; }
    .hero-game-card img { height: 100px; }
    .clubs-grid { grid-template-columns: 1fr; }
    .academies-grid { grid-template-columns: repeat(2, 1fr); }
    .match-row { grid-template-columns: 1fr; text-align: center; gap: 8px; }
    .match-team { justify-content: center !important; }
    .quali-podium { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 10px; }
    .podium-item { width: 110px; padding: 15px 10px; }
    .podium-item.silver, .podium-item.bronze { margin-top: 30px; }
    .podium-item.gold { margin-top: 0; }
    .podium-logo { width: 50px; height: 50px; }
    .podium-name { font-size: 0.85rem; }
    .quali-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 50px 0; }
    .container { padding: 0 15px; }
    
    /* Teams & Sponsors Grids on Mobile */
    .teams-grid-container { padding: 0 15px; }
    .teams-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .team-card { height: 130px !important; display: block !important; }
    .team-card img { width: 100%; height: 100%; object-fit: cover; }
    .team-card-caption { font-size: 0.75rem; padding: 8px; }
    
    .sponsors-grid-container { padding: 0 15px; }
    .sponsors-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 10px !important; }
    .sponsor-card { height: 55px !important; display: flex !important; padding: 6px !important; }
    .sponsor-card img { max-width: 60px; max-height: 35px; }

    /* Sponsors Partners Section Mobile */
    .sponsors-partners-section { margin: 40px 0 30px; padding: 30px 0; }
    .sponsors-section-title { font-size: 1.6rem; letter-spacing: 2px; }
    .sponsors-section-title::after { width: 60px; }
    .sponsors-intro { font-size: 0.85rem; padding: 0 15px; line-height: 1.7; }
    .sponsor-category { padding: 20px 15px; margin-bottom: 25px; }
    .sponsor-category-title { font-size: 1.2rem; }
    .sponsor-category-desc { font-size: 0.8rem; margin-bottom: 20px; }
    .sponsor-logos-grid.partenaires-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sponsor-logos-grid.sponsors-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sponsor-logos-grid.soutiens-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 100%; }
    .sponsor-logo-card { padding: 12px 10px; min-height: 95px; }
    .sponsor-logo-card img { max-height: 42px; }
    .sponsor-logo-card.partenaire-majeur { min-height: 110px; }
    .sponsor-logo-card.partenaire-majeur img { max-height: 55px; }
    .sponsor-logo-card.soutien-item { min-height: 85px; }
    .sponsor-logo-card.soutien-item img { max-height: 38px; }
    .sponsor-name { font-size: 0.62rem; }
    .sponsor-link-icon { width: 18px; height: 18px; top: 5px; right: 5px; }
}


/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

/* Hamburger animation to X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 30px;
        gap: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease;
        z-index: 1005;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 12px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav a:last-of-type {
        border-bottom: none;
    }
    
    .nav a:hover {
        background: rgba(233, 69, 96, 0.1);
    }
    
    .nav a.cta {
        margin-top: 20px;
        justify-content: center;
        padding: 16px 24px;
    }
    
    .theme-toggle {
        margin: 20px auto 0;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .header-brand {
        gap: 12px;
    }
    
    .logo {
        height: 50px;
    }
    
    .header-edition {
        display: none;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 45px;
    }
    
    .nav {
        width: 100%;
        max-width: 100%;
        padding: 70px 16px 30px;
    }
    
    .nav a {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }
    
    .logo {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hamburger-line {
        width: 22px;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}


/* ================================================
   COMPREHENSIVE MOBILE RESPONSIVE IMPROVEMENTS
   ================================================ */

/* === GLOBAL MOBILE FIXES === */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .header-container,
    .hero-container,
    .container,
    .hero-grid,
    .hero-content,
    .hero-media {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* === HERO SECTION MOBILE === */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero-badge {
        padding: 8px 14px;
        font-size: 0.75rem;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
    }

    .hero-info {
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px 0;
        margin: 20px 0;
    }

    .hero-info-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
    }

    .hero-info-item h4 {
        font-size: 0.6rem;
    }

    .hero-info-item p {
        font-size: 0.9rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .hero-description-box {
        padding: 15px 18px;
        margin-top: 20px;
    }

    .hero-description-box p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .hero-games-section {
        margin-top: 15px;
        order: 10;
    }

    /* Mobile: Single carousel photo instead of 4 grid */
    .hero-teams-grid {
        display: block;
        position: relative;
        aspect-ratio: 16/10;
        border-radius: var(--radius-sm);
        overflow: hidden;
    }

    .hero-teams-grid .hero-team-photo {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
    }

    .hero-teams-grid .hero-team-photo:first-child {
        opacity: 1;
    }

    .hero-teams-grid .hero-team-photo.mobile-active {
        opacity: 1;
    }

    .hero-playwin-right {
        order: 11;
        margin-top: 15px;
    }

    .hero-games-left {
        gap: 10px;
    }

    .hero-video-section {
        order: 1 !important;
    }

    .hero-video-container {
        height: 180px;
    }

    .music-overlay-btn {
        padding: 10px 18px;
        gap: 8px;
    }

    .music-overlay-btn svg {
        width: 24px;
        height: 24px;
    }

    .music-overlay-btn .music-label {
        font-size: 0.75rem;
    }

    .hero-stats {
        gap: 8px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-card h3 {
        font-size: 1.8rem;
    }

    .stat-card p {
        font-size: 0.55rem;
    }

    .hero-teams-right {
        gap: 8px;
    }
}

/* === EXTRA SMALL SCREENS === */
@media (max-width: 480px) {
    .hero {
        padding: 80px 0 30px;
        min-height: auto;
    }

    .hero-container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-info {
        gap: 10px;
    }

    .hero-info-item {
        flex: 1 1 100%;
    }

    .hero-video-container {
        height: 160px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .stat-card p {
        font-size: 0.5rem;
        letter-spacing: 0.5px;
    }

    .hero-games-left,
    .hero-teams-right {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}

/* === SECTIONS MOBILE === */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-label {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    .section-label::before,
    .section-label::after {
        width: 20px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        letter-spacing: 1px;
    }

    .section-subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

/* === TWO BLOCKS MOBILE === */
@media (max-width: 768px) {
    .two-blocks {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .block-card {
        padding: 25px 20px;
    }

    .block-card h3 {
        font-size: 1.5rem;
        padding-right: 80px;
    }

    .block-card h4 {
        font-size: 0.8rem;
    }

    .block-card p {
        font-size: 0.85rem;
    }

    .block-card .block-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .block-card .block-address {
        padding: 14px;
    }

    .block-card .block-address p {
        font-size: 0.8rem;
    }
}

/* === CLUBS GRID MOBILE === */
@media (max-width: 768px) {
    .clubs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .club-card {
        padding: 20px 12px 18px;
        overflow: visible;
    }

    .club-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .club-name {
        font-size: 1rem;
    }

    .club-country {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .club-action {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .club-compo-btn {
        font-size: 0.55rem;
        padding: 4px 8px;
        margin-top: 6px;
        gap: 4px;
    }

    .club-compo-btn svg {
        width: 10px;
        height: 10px;
    }

    .academies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .academy-card {
        padding: 18px 10px 15px;
    }

    .academy-logo {
        width: 50px;
        height: 50px;
    }

    .academy-name {
        font-size: 0.85rem;
    }

    .academy-buttons {
        gap: 5px;
        margin-top: 8px;
    }

    .academy-card .club-compo-btn {
        font-size: 0.55rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .clubs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .club-card {
        padding: 15px 8px 12px;
        overflow: visible;
    }

    .club-logo {
        width: 50px;
        height: 50px;
    }

    .club-name {
        font-size: 0.9rem;
    }

    .club-badge {
        font-size: 0.5rem;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }

    .club-compo-btn {
        font-size: 0.5rem;
        padding: 3px 6px;
        margin-top: 5px;
        gap: 3px;
    }

    .club-compo-btn svg {
        width: 9px;
        height: 9px;
    }

    .academy-card .club-compo-btn {
        font-size: 0.5rem;
        padding: 3px 6px;
    }
}

/* === PROGRAM / MATCHES MOBILE === */
@media (max-width: 768px) {
    .program-tabs {
        gap: 6px;
        padding: 0 5px;
    }

    .program-tab {
        padding: 8px 12px;
        font-size: 0.7rem;
        border-radius: 20px;
    }

    .program-tab svg {
        width: 12px;
        height: 12px;
    }

    .program-tab .count {
        padding: 2px 5px;
        font-size: 0.6rem;
    }

    .team-filter-wrapper {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .team-filter-wrapper select {
        width: 100%;
    }

    .matches-grid {
        max-height: 500px;
        padding-right: 5px;
    }

    .match-row {
        padding: 12px;
        gap: 6px;
    }

    .match-time .time {
        font-size: 1.2rem;
    }

    .match-time .phase {
        font-size: 0.55rem;
    }

    .match-team img {
        width: 28px;
        height: 28px;
    }

    .match-team .name {
        font-size: 0.75rem;
    }

    .match-vs {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .match-badge span {
        font-size: 0.55rem;
        padding: 3px 8px;
    }
}

/* === SPONSORS SECTION MOBILE === */
@media (max-width: 768px) {
    .sponsors-partners-section {
        margin: 40px 0 30px;
        padding: 30px 0;
    }

    .sponsors-section-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
        flex-wrap: wrap;
    }

    .sponsors-intro {
        font-size: 0.85rem;
        padding: 0 15px;
    }

    .sponsor-category {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .sponsor-category-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .sponsor-category-desc {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .sponsor-logos-grid.partenaires-grid,
    .sponsor-logos-grid.sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sponsor-logos-grid.soutiens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sponsor-logo-card {
        padding: 14px 10px 10px;
        min-height: 100px;
    }

    .sponsor-logo-card img {
        max-height: 45px;
    }

    .sponsor-logo-card.partenaire-majeur img {
        max-height: 55px;
    }

    .sponsor-name {
        font-size: 0.65rem;
    }
}

/* === CONTACT SECTION MOBILE === */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-card h4 {
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.85rem;
    }
}

/* === FOOTER MOBILE === */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        height: 50px;
        margin: 0 auto 15px;
    }

    .footer-text {
        font-size: 0.85rem;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        margin-top: 25px;
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* === LEGAL SECTION MOBILE === */
@media (max-width: 768px) {
    .legal-docs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .legal-doc-card {
        border-radius: 12px;
    }

    .legal-doc-header {
        padding: 15px;
    }

    .legal-doc-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .legal-doc-title {
        font-size: 14px;
    }

    .legal-doc-subtitle {
        font-size: 11px;
    }

    .legal-doc-viewer {
        height: 300px;
    }

    .legal-doc-footer {
        padding: 12px 15px;
    }
}

/* === TOUCH FRIENDLY === */
@media (max-width: 768px) {
    button,
    .btn,
    .nav a,
    .program-tab {
        min-height: 44px;
    }

    .video-indicator {
        min-width: 12px;
        min-height: 12px;
    }

    a, button {
        -webkit-tap-highlight-color: rgba(233, 69, 96, 0.2);
    }
}

/* === PREVENT HORIZONTAL OVERFLOW === */
@media (max-width: 768px) {
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }

    pre, code {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}


