/**
 * NEXTWAVE - Site GTA RP
 * Thème: Élégance Premium - Argent & Bleu Marine
 * Version: 2.0 - Refonte complète
 */

/* ═══════════════════════════════════════════
   CONFIGURATION & VARIABLES
   ═══════════════════════════════════════════ */
:root {
    /* Palette Couleurs - Argenté & Marine */
    --color-primary: #d4e4f7;
    --color-primary-dark: #94b4d3;
    --color-accent: #b0c8df;
    --color-highlight: #8ba9c7;
    
    /* Backgrounds - Bleu Marine Profond */
    --bg-deepnavy: #060d16;
    --bg-navy: #0a1525;
    --bg-darkblue: #0e1c2f;
    --bg-card: rgba(16, 30, 48, 0.85);
    
    /* Textes */
    --text-white: #ffffff;
    --text-light: #d4e4f7;
    --text-muted: rgba(212, 228, 247, 0.65);
    
    /* Effets */
    --border-subtle: rgba(180, 200, 223, 0.15);
    --border-visible: rgba(180, 200, 223, 0.35);
    --glow-soft: 0 0 20px rgba(212, 228, 247, 0.2);
    --glow-medium: 0 0 30px rgba(212, 228, 247, 0.35);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.35s;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--bg-deepnavy) 0%, var(--bg-navy) 50%, var(--bg-darkblue) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   EFFETS DE FOND
   ═══════════════════════════════════════════ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 30% 20%, rgba(20, 45, 75, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(15, 35, 60, 0.3) 0%, transparent 50%);
}

.particle {
    position: absolute;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 20s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { 
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% { opacity: 0.4; }
    90% { opacity: 0.3; }
    100% { 
        transform: translateY(-120vh) translateX(80px);
        opacity: 0;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(6, 13, 22, 0.7) 0%,
        rgba(10, 21, 37, 0.85) 50%,
        rgba(14, 28, 47, 0.9) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 21, 37, 0.95), rgba(10, 21, 37, 0.7));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    display: block;
    text-decoration: none;
    opacity: 0;
    animation: fadeSlideIn 0.8s ease-out 0.2s forwards;
}

.logo img {
    height: 55px;
    width: auto;
    filter: drop-shadow(var(--glow-soft));
    transition: all var(--duration-normal) var(--ease-smooth);
}

.logo:hover img {
    filter: drop-shadow(var(--glow-medium));
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Menu Burger */
.burger {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(212, 228, 247, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
    opacity: 0;
    animation: fadeSlideIn 0.8s ease-out 0.4s forwards;
    z-index: 98;
}

/* Overlay du menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-smooth), visibility 0.3s;
    z-index: 105;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.burger:hover {
    background: rgba(212, 228, 247, 0.1);
    border-color: var(--border-visible);
    box-shadow: var(--glow-soft);
    transform: scale(1.05);
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ═══════════════════════════════════════════
   MENU LATÉRAL
   ═══════════════════════════════════════════ */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(16, 30, 48, 1) 0%, rgba(10, 21, 37, 1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    transition: right 0.4s var(--ease-smooth);
    z-index: 110;
    border-left: 1px solid var(--border-visible);
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.menu-close {
    align-self: flex-end;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 100, 100, 0.1);
    border: 1px solid rgba(220, 100, 100, 0.3);
    border-radius: 10px;
    font-size: 24px;
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
    margin-bottom: var(--space-lg);
}

.menu-close:hover {
    background: rgba(220, 100, 100, 0.25);
    border-color: rgba(220, 100, 100, 0.5);
    transform: rotate(90deg);
}

.menu-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-white) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.menu-links a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgba(212, 228, 247, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.menu-links a:hover,
.menu-links a.active {
    background: rgba(212, 228, 247, 0.12);
    border-color: var(--border-visible);
    transform: translateX(8px);
    box-shadow: var(--glow-soft);
}

.menu-icon {
    font-size: 1.3rem;
}

.menu-links a.discord-link {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.05));
    border-color: rgba(88, 101, 242, 0.3);
}

.menu-links a.discord-link:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.25), rgba(88, 101, 242, 0.15));
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}

.menu-footer {
    margin-top: auto;
    padding-top: var(--space-md);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   CONTENU PRINCIPAL
   ═══════════════════════════════════════════ */
.main-content {
    position: relative;
    z-index: 3;
    padding-top: 90px;
}

/* ═══════════════════════════════════════════
   SECTION HERO
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 13, 22, 0.85) 0%,
        rgba(10, 21, 37, 0.75) 50%,
        rgba(14, 28, 47, 0.85) 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(6, 13, 22, 0.6) 70%
    );
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-white) 0%, var(--color-primary) 50%, var(--text-white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(var(--glow-medium));
    animation: heroAppear 1s ease-out, shimmer 4s linear infinite;
}

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

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: heroAppear 1s ease-out 0.3s forwards;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: heroAppear 1s ease-out 0.6s forwards;
}

/* ═══════════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-highlight) 0%, var(--color-primary-dark) 100%);
    color: var(--bg-deepnavy);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card), var(--glow-soft);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card), var(--glow-medium);
}

.btn-secondary {
    background: rgba(212, 228, 247, 0.08);
    color: var(--color-primary);
    border-color: var(--border-visible);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(212, 228, 247, 0.15);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-soft);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: var(--text-white);
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: var(--shadow-card), 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card), 0 8px 30px rgba(88, 101, 242, 0.5);
}

/* Statut Serveur */
.server-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(212, 228, 247, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: heroAppear 1s ease-out 0.9s forwards;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 12px #4ade80;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
    padding: var(--space-xl) var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
    background: linear-gradient(135deg, var(--text-white) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(var(--glow-soft));
}

/* Grid Fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-smooth);
    opacity: 0;
    animation: cardAppear 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-visible);
    box-shadow: var(--shadow-card), var(--glow-soft);
    background: rgba(16, 30, 48, 0.95);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

.feature-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
    letter-spacing: 0.1em;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grid Équipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.team-card {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-smooth);
    opacity: 0;
    animation: cardAppear 0.6s ease-out forwards;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-visible);
    box-shadow: var(--shadow-card), var(--glow-soft);
}

.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    border: 3px solid var(--border-visible);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 228, 247, 0.1), rgba(148, 180, 211, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.team-card:hover .team-photo {
    border-color: var(--color-primary);
    box-shadow: var(--glow-medium);
    transform: scale(1.08);
}

.team-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-white);
    letter-spacing: 0.05em;
}

.team-pseudo {
    color: var(--color-highlight);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.team-rank {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(212, 228, 247, 0.12);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    margin-top: var(--space-xl);
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(to bottom, transparent, rgba(16, 30, 48, 0.5));
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--text-white) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 228, 247, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-light);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.social-link:hover {
    background: var(--color-highlight);
    color: var(--bg-deepnavy);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-soft);
}

.social-link.discord:hover {
    background: #5865F2;
    color: var(--text-white);
    border-color: #5865F2;
}

.footer-bottom {
    max-width: 1400px;
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-disclaimer {
    margin-top: var(--space-xs);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .logo img {
        height: 45px;
    }
    
    .hero {
        padding: var(--space-lg) var(--space-md);
        min-height: 90vh;
    }
    
    .hero-title {
        letter-spacing: 0.2em;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .side-menu {
        width: 100%;
    }
    
    .section {
        padding: var(--space-lg) var(--space-md);
    }
    
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deepnavy);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-highlight), var(--color-primary-dark));
    border-radius: 5px;
    border: 2px solid var(--bg-deepnavy);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--color-primary), var(--color-highlight));
}

/* ═══════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════ */
::selection {
    background: var(--color-highlight);
    color: var(--bg-deepnavy);
}

::-moz-selection {
    background: var(--color-highlight);
    color: var(--bg-deepnavy);
}

/* ═══════════════════════════════════════════
   GALERIE
   ═══════════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--border-visible);
    box-shadow: var(--shadow-card), var(--glow-soft);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 13, 22, 0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-xs);
}

.gallery-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gallery-icon {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-white);
}

/* Modal Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-lg);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-visible);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.lightbox-close:hover {
    background: var(--color-highlight);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-white);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-visible);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.lightbox-nav:hover {
    background: var(--color-highlight);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: -70px;
}

.lightbox-nav.next {
    right: -70px;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    color: var(--text-white);
}

/* OVERRIDE ADMIN GALLERY */
.admin-container .gallery-item {
    aspect-ratio: auto !important;
    height: auto !important;
    overflow: visible !important;
    cursor: default !important;
}

.admin-container .gallery-thumb {
    height: 200px;
    object-fit: cover;
}

/* ═══════════════════════════════════════════
   CALENDRIER D'ÉVÉNEMENTS
   ═══════════════════════════════════════════ */
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-highlight), var(--color-primary));
}

.event-card:hover {
    transform: translateX(8px);
    border-color: var(--border-visible);
    box-shadow: var(--shadow-card), var(--glow-soft);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.event-day {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.event-month {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.event-time {
    font-size: 0.9rem;
    color: var(--color-highlight);
    margin-top: var(--space-xs);
}

.event-content {
    flex: 1;
}

.event-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-xs);
}

.event-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.event-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(212, 228, 247, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-right: var(--space-xs);
}

.event-badge.type-course {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.event-badge.type-rp {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.event-badge.type-event {
    background: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.3);
    color: #9c27b0;
}

/* ═══════════════════════════════════════════
   PATCH STYLE V2 – HEADER + BODY + OVERLAY
   (Ne touche pas aux overlays HERO)
   ═══════════════════════════════════════════ */

/* BODY transition douce */
body {
    transition: background 0.3s ease, color 0.3s ease;
}

/* Overlay global plus léger */
.overlay {
    background: linear-gradient(
        to bottom,
        rgba(6, 13, 22, 0.2) 0%,
        rgba(10, 21, 37, 0.3) 50%,
        rgba(14, 28, 47, 0.25) 100%
    );
}

/* HEADER bannière image */
.header {
    height: 120px;
    justify-content: flex-end;
    padding: 0 var(--space-lg);
    background-image: url('../images/banniere_fivem33x.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Gradient au dessus de la bannière */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 21, 37, 0.3),
        rgba(10, 21, 37, 0.6)
    );
    z-index: -1;
}

/* On masque le logo texte/image */
.logo {
    display: block;
    position: absolute;
    left: var(--space-lg);
    top: 25%;
    transform: translateY(-50%);
    z-index: 2;
}


/* Décalage du contenu principal à cause du header plus grand */
.main-content {
    padding-top: 120px;
}

/* Responsive header */
@media (max-width: 768px) {
    .header {
        height: 80px;
        padding: 0 var(--space-md);
    }

    .main-content {
        padding-top: 80px;
    }
}
