/* --- style.css --- */
/* 1. IMPORTS & VARIABLES (Indispensable partout) */

/* Orbitron - Self-hosted (RGPD compliant, aucun appel vers Google) */
/* Les fichiers woff2 doivent être placés dans le dossier fonts/ */
/* orbitron-500 - latin */
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin-500.woff2') format('woff2');
}

/* orbitron-900 - latin */
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/orbitron-v35-latin-900.woff2') format('woff2');
}

:root {
    --primary: #ff007f;
    --secondary: #00d4ff;
    --accent: #ccff00;
    --dark: #1a1a1a;
    --light: #ffffff;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

/* 2. NAVIGATION (Desktop & Mobile Burger) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0,0,0,0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

nav .logo { 
    font-weight: bold; 
    font-size: 1.5rem; 
    z-index: 1002;
}

nav span {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    align-items: center;
}

.nav-links li { margin-left: 30px; }

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    font-size: 1.1rem;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after { width: 100%; }
.nav-links li a.active { color: var(--secondary); }

/* BURGER MENU STYLES */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.bar {
    display: block;
    width: 30px;
    height: 4px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 4px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5); 
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        transition: 0.4s ease-in-out;
        z-index: 1001;
        padding: 0;
        margin: 0;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 25px 0; }
    .nav-links li a { font-size: 1.5rem; }
}

/* --- FOOTER --- */
footer {
    background-color: #111;
    color: #777;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Espace entre le copyright et le lien */
    flex-wrap: wrap; /* Pour que ça passe à la ligne sur mobile */
}

.footer-link {
    color: var(--secondary); /* Bleu clair (ou ta couleur secondaire) */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-link strong {
    font-weight: bold;
    text-transform: uppercase;
}

.separator {
    color: #444;
}

/* Responsive Mobile : On enlève le séparateur et on empile */
@media (max-width: 600px) {
    .separator { display: none; }
    .footer-content { flex-direction: column; gap: 5px; }
}

/* 4. BOUTONS GLOBAUX (Utilisable sur inscription aussi) */
.btn-main {
    padding: 15px 50px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    display: inline-block; /* Sécurité */
}

.btn-main:hover { 
    transform: scale(1.05);
    background: transparent;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

/* ===== MINI COUNTDOWN (pages secondaires) ===== */
.mini-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-family: 'Orbitron', sans-serif;
}

.mc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 48px;
}

.mc-val {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.1;
}

.mc-lbl {
    font-size: 0.6rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.mc-sep {
    color: #444;
    font-size: 1.2rem;
    font-weight: bold;
    align-self: center;
    margin-bottom: 8px;
}

.mini-countdown-date {
    font-size: 0.8rem;
    color: #555;
    margin: 8px 0 0 0;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .mc-val { font-size: 1.1rem; }
    .mc-item { min-width: 38px; padding: 5px 8px; }
}

/* Effet spécial pour le lien Inscription dans le menu */
.nav-links li a.nav-special {
    color: var(--primary); /* Rose par défaut */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
    animation: pulseInscription 2s infinite;
    position: relative;
}

/* On change le dégradé du soulignement pour celui-ci */
.nav-links li a.nav-special::after {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    height: 4px;
}

/* Animation de pulsation douce */
@keyframes pulseInscription {
    0% {
        text-shadow: 0 0 5px rgba(255, 0, 127, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px var(--primary), 0 0 25px var(--primary);
        color: var(--light); /* Devient blanc brillant au milieu du cycle */
        transform: scale(1.05);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 0, 127, 0.5);
        transform: scale(1);
    }
}

/* Mobile : On s'assure que ça reste lisible */
@media (max-width: 768px) {
    .nav-links li a.nav-special {
        font-size: 1.8rem; /* Plus gros dans le menu burger */
        animation: none; /* On stoppe l'animation sur mobile pour éviter la distraction */
        color: var(--primary);
        text-shadow: 0 0 10px var(--primary);
    }
}