/* =========================================
   1. VARIABLES & RESET (Base du style)
========================================= */
:root {
    --primary-color: #ff1a1a;
    --bg-color: #000;
    --text-color: #fff;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Réinitialisation des marges par défaut des navigateurs */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body { 
    height: 100dvh; /* dvh s'adapte mieux sur mobile avec la barre d'adresse dynamique */
    width: 100%;
    font-family: var(--font-main); 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    overflow-x: hidden;
    overflow-y: auto; 
    overscroll-behavior-y: contain; /* Empêche le "pull-to-refresh" indésirable sur mobile */
}

/* =========================================
   2. ARRIÈRE-PLAN ANIMÉ
========================================= */
.background-image {
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    /* Filtre assombrissant + image de fond centrée */
    background: linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12)), url('background.png') no-repeat center 15%;
    background-size: cover; 
    z-index: 1; 
    animation: deepZoom 60s infinite alternate ease-in-out; 
    pointer-events: none; /* L'image ne bloque pas les clics sur les éléments en dessous */
}

/* Effet de zoom lent sur le fond */
@keyframes deepZoom { 
    0% { transform: scale(1); } 
    100% { transform: scale(1.3); } 
}

/* =========================================
   3. BOUTON DE CHANGEMENT DE LANGUE
========================================= */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 9999; /* Toujours au-dessus du reste */
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* =========================================
   4. CONTENEUR PRINCIPAL & TEXTES
========================================= */
.main-container {
    position: fixed; 
    top: 0; left: 0;
    z-index: 2; 
    width: 100%;
    height: 100dvh;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
    padding: 20px; 
    overflow: hidden;
}

.glitch-title {
    font-size: clamp(3rem, 12vw, 7rem); /* S'adapte dynamiquement à la taille de l'écran */
    font-weight: 900; 
    text-transform: uppercase;
    color: var(--text-color); 
}

.legend { 
    font-size: clamp(0.7rem, 3vw, 1rem); 
    text-transform: uppercase; 
    letter-spacing: 8px; 
    color: var(--primary-color); 
    margin-bottom: 60px; 
    font-weight: bold; 
}

/* =========================================
   5. RÉSEAUX SOCIAUX
========================================= */
.social-container { 
    display: flex; 
    gap: 30px; 
    margin-bottom: 80px; 
}

.social-card {
    width: 80px; height: 80px; 
    display: flex; justify-content: center; align-items: center;
    color: var(--text-color); 
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.9); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.4);
}

.social-card svg { 
    width: 30px; height: 30px; stroke: currentColor; fill: none; 
}

/* =========================================
   6. MENU NAVIGATION (GÉLULE)
========================================= */
.pro-menu {     
    display: flex;
    gap: 25px;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Pour la compatibilité Safari */
}

.pro-link {
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6); 
    text-decoration: none; 
    cursor: pointer;
    transition: 0.3s;
}

.pro-link:hover { color: #fff; }

/* Gestion des deux boutons de partage (PC vs Mobile) */
.pro-menu .share-trigger {
    display: inline-block; /* Bouton texte visible sur PC */
}

body > .main-container > .share-trigger {
    display: none; /* Bouton flottant caché sur PC */
}

/* =========================================
   7. MODALES (Fenêtres pop-up Bio, Tech, Partage)
========================================= */
.modal-overlay {
    display: none; /* Caché par défaut via JS */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); 
    backdrop-filter: blur(15px);
    z-index: 10000; 
    justify-content: center; align-items: center; 
}

.modal-content {
    background: #050505; padding: 40px; border-radius: 4px; 
    max-width: 500px; width: 90%; 
    border-left: 3px solid var(--primary-color); /* Barre rouge sur le côté */
    position: relative; text-align: left;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content p, .modal-content ul {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #ddd;
}

.modal-content ul {
    padding-left: 20px;
}

/* Grille pour les options de partage */
.share-grid { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; 
}
.share-item { 
    background: #111; padding: 15px; text-align: center; color: #fff; 
    text-decoration: none; font-size: 0.8rem; border: 1px solid #333; 
    cursor: pointer; transition: 0.3s;
}
.share-item:hover {
    background: #222; border-color: var(--primary-color);
}
.qr-trigger { 
    grid-column: span 2; background: #fff; color: #000; font-weight: bold;
}

/* Bouton Fermer (Croix) */
.close-btn { 
    position: absolute; top: 15px; right: 20px; color: #555; 
    font-size: 2rem; cursor: pointer; background: none; border: none; 
    transition: color 0.3s;
}
.close-btn:hover { color: var(--primary-color); }

/* =========================================
   8. RESPONSIVE MOBILE (Écrans < 768px)
========================================= */
@media screen and (max-width: 768px) {
    
    /* On cache le bouton "Partager" à l'intérieur du menu gélule */
    .pro-menu .share-trigger {
        display: none !important;
    }

    /* On affiche le bouton volant de partage en bas à droite */
    body > .main-container > .share-trigger {
        display: flex !important;
        position: fixed !important;
        bottom: 30px !important; 
        right: 25px !important;
        width: 60px !important;
        height: 60px !important;
        background: var(--primary-color) !important;
        border-radius: 50% !important;
        justify-content: center;
        align-items: center;
        z-index: 9999 !important;
        border: 2px solid white !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    }

    .share-icon-mobile {
        display: block !important;
        width: 28px;
        height: 28px;
        color: white;
    }

    .social-card { width: 65px; height: 65px; }
    .pro-menu { gap: 15px; padding: 10px 20px; }
    .lang-switch { top: 15px; right: 15px; }
}

/* Container de la vidéo (Responsive) */
.featured-section {
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
    border: 1px solid var(--primary-color); /* Rappel de ton rouge #ff1a1a */
    padding: 10px;
    background: rgba(0,0,0,0.8);
}

.video-container {
    position: relative;
    padding-bottom: 177.77%; /* Ratio 9:16 pour les Shorts */
    height: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Si tu mets une vidéo classique un jour, tu pourras changer le ratio via une classe */
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.next-date {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.next-date span {
    color: var(--primary-color);
    font-weight: bold;
}

/* =========================================
   9. BOUTON PLAY & MODALE VIDÉO
========================================= */

/* Bouton Central */
.play-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 26, 26, 0.15);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 40px; /* Espace avant les réseaux sociaux */
    transition: all 0.3s ease;
    /* Effet de pulsation lumineuse */
    animation: pulse-glow 2s infinite;
}

.play-trigger:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    color: #000;
}

.play-trigger svg {
    width: 24px; 
    height: 24px;
}

.play-trigger span {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 26, 26, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 26, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 26, 26, 0); }
}

/* Modale Spécifique pour la Vidéo */
.video-modal-content {
    padding: 30px 15px 15px 15px; /* Un peu d'espace en haut pour la croix */
    max-width: 400px; /* Largeur idéale pour un Short vertical */
    width: 90%;
    background: #000;
    border: 1px solid #333;
    border-left: none; /* Annule la barre rouge des autres modales */
}

.video-modal-content .close-btn {
    top: -5px; right: 5px; /* Replace la croix au bon endroit */
}

/* Conteneur fluide 9:16 (format Short/Téléphone) */
.video-container {
    position: relative;
    padding-bottom: 177.77%; /* Ratio 9:16 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #111; /* Fond sombre en attendant le chargement */
}

.video-container iframe {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
}


/* Nettoyage des liens d'événements */
.event-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.booking-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff; /* Fini le bleu ! */
    text-decoration: none; /* Fini le souligné ! */
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.link-icon {
    width: 18px;
    height: 18px;
}

/* Effet au survol (Info) */
.booking-link:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Style spécial pour le bouton BILLETS */
.booking-link.highlight {
    color: var(--primary-color);
    border: 1px solid rgba(255, 26, 26, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    background: rgba(255, 26, 26, 0.05);
}

.booking-link.highlight:hover {
    background: var(--primary-color);
    color: #000; /* Le texte devient noir sur fond rouge */
    border-color: var(--primary-color);
}