/* =========================================
   1. BASES & VARIABLES
   ========================================= */
   :root {
    --primary-color: #e63946;    /* Rouge AcidTracks */
    --dark-bg: #1a1a1a;         /* Noir section */
    --darker-bg: #0f0f0f;       /* Noir profond (nav/footer) */
    --light-bg: #f8f9fa;        /* Fond clair sections */
    --text-main: #333;
    --text-light: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Évite que le menu cache le début d'une section */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 80px 0; }

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-dark { background: var(--dark-bg); color: var(--text-light); }
.section-light { background: var(--light-bg); }

/* =========================================
   2. NAVIGATION & LOGO
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container .nav-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}
.nav-icons {
    font-size: 1.4rem;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-links li { margin-left: 25px; }

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-color); }

/* =========================================
   3. HERO SECTION (Image de fond)
   ========================================= */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), 
                url('images/background_header.jpg'); /* À REMPLACER */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.hero h1 { font-size: 4rem; margin-bottom: 10px; }
.btn-main {
    display: inline-block;
    padding: 12px 35px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: var(--transition);
}
.btn-main:hover { background: #b92e3a; transform: translateY(-2px); }

/* Style du logo au centre du Hero */
.hero-logo {
    width: 100%;
    max-width: 600px; /* Taille maximale sur grand écran */
    height: auto;
    margin-bottom: 20px;
    /* Filtre optionnel pour que le logo ressorte si besoin */
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.3)); 
}

/* Adaptation pour les tablettes et mobiles */
@media screen and (max-width: 768px) {
    .hero-logo {
        max-width: 80%; /* Le logo prend 80% de la largeur du téléphone */
    }
}

/* =========================================
   4. POURQUOI CHOISIR (IMAGE UPLOADÉE)
   ========================================= */
.features-grid { display: flex; gap: 30px; margin-top: 30px; }
.feature-box {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.feature-box h3 { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.feature-box h3 i { color: var(--primary-color); }
.feature-box ul { list-style: none; margin-top: 15px; }
.feature-box li { position: relative; padding-left: 25px; margin-bottom: 10px; font-size: 0.95rem; }
.feature-box li::before {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; color: var(--primary-color);
}

/* =========================================
   5. CALENDRIER
   ========================================= */
.calendar-container { display: flex; flex-direction: column; gap: 20px; }
.event-card {
    background: #2a2a2a; border-radius: 8px; overflow: hidden;
    border-left: 5px solid #444; transition: var(--transition);
    position: relative;
    margin-top: 25px !important;    /* Augmenté pour laisser de la place au badge */
    overflow: visible !important; /* Force l'affichage du badge qui dépasse en haut */
    background: #2a2a2a; 
    border-radius: 8px;
}

/* --- ÉVÉNEMENTS ACID SPÉCIAL --- */
.event-card.acid-special { 
    /* Remplace la barre latérale par un encadrement complet */
    border: 2px solid var(--primary-color) !important; 
    
    /* Optionnel : Ajoute une légère lueur rouge pour le faire ressortir sur le fond sombre */
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
    
    /* On s'assure que les coins restent arrondis */
    border-radius: 8px;
}

/* Le Badge 100% AcidTracks */
.acid-badge-top {
    position: absolute;
    top: -30px;          /* Positionné à cheval sur le haut */
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 2px solid #2a2a2a; /* Rappel du fond pour détacher le badge */
    white-space: nowrap;
}

.acid-badge-top img {
    height:  28px;       /* Taille du logo acidtracks.png */
    width: auto;
}

.acid-badge-top span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.event-header {
    background: #333; padding: 15px 25px;
    display: flex; justify-content: space-between; align-items: center;
}
.event-date { color: var(--primary-color); font-weight: bold; }
.event-body { padding: 25px; display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.event-perks { list-style: none; margin-top: 10px; font-size: 0.85rem; color: #aaa; }
.event-price {
    text-align: center; /* Centre le texte (prix et jours) */
    border-left: 1px solid #444;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* INDISPENSABLE pour centrer les éléments flex comme le bouton */
}
.amount { font-size: 1.8rem; font-weight: bold; }
.btn-resa {
    background: var(--primary-color); color: #fff; padding: 8px 20px;
    text-decoration: none; border-radius: 4px; margin-top: 10px; display: inline-block;
}

/* Cache la modal par défaut et la place au-dessus de tout */
.custom-modal {
    display: none;
    position: fixed; /* Fixe par rapport à l'écran, pas à la carte */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* Doit être très élevé */
    background-color: rgba(0, 0, 0, 0.85); /* Fond sombre */
    backdrop-filter: blur(5px);
}

.modal-body {
    color: #eee;
    font-size: 1.05rem;  /* Texte légèrement plus grand */
    text-align: left;    /* Assure que le texte n'est pas centré */
    white-space: pre-line; /* Préserve les sauts de ligne */
    max-height: 75vh;    /* Empêche la modal de dépasser de l'écran */
    overflow-y: auto;    /* Ajoute un scroll interne si le texte est vraiment trop long */
    padding-right: 10px; /* Espace pour la barre de scroll */
}
/* Centre le contenu de la modal */
.modal-content {
    background-color: #1a1a1a;
    margin: 5vh auto; /* Réduit la marge haute pour moins de scroll */
    padding: 20px;    /* Plus d'espace intérieur pour respirer */
    line-height: 1.4;   /* Espacement entre les lignes */
    width: 95%;       /* Utilise presque toute la largeur sur petit écran */
    max-width: 850px; /* BEAUCOUP plus large (au lieu de 500px) */
    border-radius: 12px;
    border: 1px solid #444;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
}

.close-modal:hover { color: #e63946; }

/* Boutons secondaires */
.btn-outline-small {
    background: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-outline-small:hover { border-color: #e63946; }

/* Fond de la modal (Overlay) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Piloté par le JS */
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* Le contenu blanc */
.modal-content-white {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Spinner circulaire */
.loader-circle {
    width: 50px; height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spinModal 1s linear infinite;
}

@keyframes spinModal {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bouton YouTube Orange */
.btn-info-logic {
    display: inline-block;
    background: #e67e22;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
}

/* =========================================
   AFFICHAGE DES GROUPES (ADAPTATIF)
   ========================================= */

.availability {
    width: 100%;
    margin: 15px 0;
}

/* PAR DÉFAUT (Ordinateur) : 4 colonnes côte à côte */
.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 6px;
    width: 100%;
}

.group-row {
    display: flex;
    flex-direction: column; /* Nom au dessus de l'état */
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 2px;
    border-radius: 6px;
    border: 1px solid #444;
}

/* MOBILE : On repasse en 1 colonne / 4 lignes */
@media (max-width: 768px) {
    .groups-container {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 5px;
    }

    .group-row {
        flex-direction: row; /* Nom à gauche, état à droite comme avant */
        justify-content: space-between;
        padding: 8px 12px;
    }
    
    .group-name {
        font-size: 0.85rem;
    }
    
    .group-qty {
        font-size: 0.85rem;
        margin-top: 0; /* On enlève la marge du mode colonne */
    }
}

/* =========================================
   SECTION BONS CADEAUX
   ========================================= */
.gift-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.gift-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.15);
}

.gift-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.gift-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--darker-bg);
}

.gift-card p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Aligne les boutons si les textes sont de longueurs différentes */
}

/* Responsive Mobile pour les bons */
@media screen and (max-width: 768px) {
    .gift-container {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   6. FAQ ACCORDÉON
   ========================================= */
.faq-container { max-width: 800px; margin: 0 auto; color:#000000}
details { background: #fff; margin-bottom: 10px; border-radius: 5px; border: 1px solid #000000; }
summary { padding: 20px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--primary-color); }
details[open] summary::after { content: "-"; }
.faq-content { padding: 0 20px 20px; color: #000000; border-top: 1px solid #eee; }

/* =========================================
   7. TROMBI
   ========================================= */

.team-grid {
    display: grid;
    /* On réduit la taille minimale des colonnes à 160px pour des cartes plus petites */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px; /* Espace réduit entre les membres */
    margin-bottom: 40px;
}

/* La carte membre */
.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    border: 1px solid #eee;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Conteneur de la photo (Cadrage 240x240) */
.team-img-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Force le carré parfait */
    background: #f0f0f0;
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garde la photo bien cadrée même si elle n'est pas parfaitement carrée */
}

/* Infos sous la photo */
.team-info {
    padding: 10px 5px; /* Padding réduit pour compacité */
    text-align: center;
}

.team-info h4 {
    font-size: 0.95rem; /* Texte un peu plus petit */
    margin: 0;
    color: #222;
}

.team-role {
    display: block;
    font-size: 0.75rem; /* Rôle discret */
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 3px;
    line-height: 1.2;
}

.grid-center {
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.grid-center .team-card {
    width: 160px; /* On garde la même largeur que les autres */
}

.team-subtitle {
    text-align: left; /* Alignement à gauche plus moderne */
    font-size: 1.3rem;
    color: #444;
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color); /* Petite barre verticale rouge */
}

/* Version Mobile (en dessous de 768px) */
@media screen and (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 colonnes */
        gap: 10px;
    }

    /* On force l'organisation à suivre la même grille de 2 colonnes */
    .grid-center {
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important;
        justify-items: center; /* Centre les cartes dans leurs colonnes */
    }

    .grid-center .team-card {
        width: 100% !important; /* Permet à la carte de prendre la largeur de la colonne */
        max-width: 160px; /* Mais on limite pour pas que ce soit géant */
    }

    .team-img-container {
        height: auto; /* Laisse l'aspect-ratio gérer la hauteur */
    }
}

/* =========================================
   8. FOOTER & RÉSEAUX SOCIAUX
   ========================================= */
.section-footer { background: var(--darker-bg); color: #fff; text-align: center; }
/* Style pour tous les liens texte du footer */
.section-footer a {
    color: #e3df29; /* Force le blanc */
    text-decoration: none; /* Enlève le soulignement par défaut */
    transition: var(--transition);
}

.section-footer a:hover {
    color: var(--primary-color); /* Devient rouge au survol */
}

/* Cas spécifique du lien Instagram dans le copyright */
.section-footer p a {
    color: #e3df29;
    opacity: 0.8;
}
.social-links { margin: 30px 0; }
.social-links a {
    color: #fff; font-size: 3.5rem; margin: 0 20px;
    transition: var(--transition); display: inline-block;
}
/* INFOS SOCIÉTÉ & CG */
.footer-info {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #ccc; /* Un gris clair pour ne pas surcharger visuellement */
    line-height: 1.5;
}

.footer-info strong {
    color: #fff;
    font-size: 1.1rem;
}

.cg-link-container {
    margin-top: 15px;
}

.cg-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #444;
    padding: 5px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.cg-link i {
    margin-right: 5px;
    color: var(--primary-color);
}

.cg-link:hover {
    color: #fff;
    border-color: var(--primary-color);
    background: rgba(230, 57, 70, 0.1);
}



.section-footer p a:hover {
    opacity: 1;
    color: var(--primary-color);
}
.privacy-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

.privacy-note i {
    color: #2ecc71; /* Un petit vert pour le côté "propre" */
    margin-right: 5px;
}

.privacy-detail {
    display: block !important; /* Force l'affichage sur une nouvelle ligne */
    font-size: 0.75rem;
    color: #aaaaaa; /* Un gris plus clair pour être visible sur le noir */
    margin-top: 5px;
    visibility: visible;
}

.social-links a:hover { color: var(--primary-color); transform: translateY(-5px); }
.footer-bottom { margin-top: 40px; font-size: 0.8rem; color: #444; }

/* =========================================
   8. RESPONSIVE MOBILE (TOUT REGROUPÉ)
   ========================================= */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: #fff; margin: 5px; transition: 0.3s; }

@media screen and (max-width: 768px) {
    /* Menu Mobile */
    .nav-links {
        position: absolute; right: 0; top: 80px; height: 92vh; width: 100%;
        background: var(--darker-bg); flex-direction: column;
        transform: translateX(100%); transition: transform 0.5s ease;
    }
    .nav-active { transform: translateX(0); }
    .nav-links li { margin: 20px 0; }
    .burger { display: block; }

    /* Contenu Mobile */
    .hero h1 { font-size: 2.5rem; }
    .features-grid { flex-direction: column; }
    .event-body { grid-template-columns: 1fr; }
    .event-price { border-left: none; border-top: 1px solid #444; padding: 20px 0 0; text-align: center; }
    .social-links a { font-size: 2.5rem; }
    
    /* Animation Burger */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
}