html, body {
    max-width: 100%;
    overflow-x: hidden; /* Supprime le scroll horizontal */
    margin: 0;
    padding: 0;
}

/* --- POLICE GLOBALE (Corps de texte) --- */
body, p, li, a, label, blockquote, input, textarea {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 400;
}

/* --- TITRES (Anton / Bebas Style) --- */
h1, h2, h3, h4, .logo-area h1, .mini-title, .section-title {
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    font-weight: 400; /* Anton n'a qu'un seul poids */
}

/* Les sous-titres et petites infos */
.subtitle, .label, .event-date, .mini-event-info .date {
    font-family: 'Anton', sans-serif !important;
    letter-spacing: 2px !important;
}

/* Image de fond */
#bg-image, .background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Image d'un groupe de métal de face avec instruments visibles */
    background-image: url('https://images.unsplash.com/photo-1692592312369-e57ed9027373?q=80&w=1171&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95); /* Animation plus fluide */
    z-index: -2;
    filter: brightness(0.5) contrast(1.1);
}

/* 1. Assure-toi que le header est au-dessus de tout */

header, .logo-area, .logo-area h1, .logo-area h1 span {
    all: unset; 
    box-sizing: border-box;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Hauteur fixe pour forcer l'affichage */
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    z-index: 9999 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* Le Logo */
.logo-area {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    cursor: pointer;
}

.logo-area h1 {
    font-family: 'Anton', sans-serif !important;
    font-size: 26px !important;
    line-height: 0.9 !important;
    color: #111 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important; /* Texte l'un sous l'autre */
}

.logo-area h1 span {
    color: #EB5A23 !important; /* Couleur Orange Demandée */
    font-size: 14px !important;
    letter-spacing: 5px !important;
    margin-top: 2px;
}

/* Le conteneur des PNG */
.gauge-wrapper {
    position: relative;
    width: 60px; /* Taille du compteur */
    height: 60px;
    flex-shrink: 0; /* Empêche le logo de s'écraser */
}

.gauge-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#gauge-needle {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: contain;
    transform-origin: center center; /* À ajuster en 50% 80% si ton aiguille pivote par le bas */
    transition: transform 0.1s ease-out;
    z-index: 2;
}

/* Style du Menu (Haut Droite) */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
}


nav a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    transition: 0.3s;
}

/* Petit effet de soulignement rouge au survol */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #EB5A23;
    transition: 0.3s;
}

nav a:hover {
    color: #EB5A23 !important;
}

nav a:hover::after {
    width: 100%;
}

/* 2. Empêche l'overlay de bloquer les clics */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
    pointer-events: none; /* TRÈS IMPORTANT : laisse passer les clics à travers lui */
}

/* 3. Ajuste le conteneur principal pour qu'il ne recouvre pas le menu */
/* Positionnement global du contenu */
main {
    position: absolute; /* Changé de fixed à absolute pour permettre le scroll si le contenu dépasse */
    top: 100px;
    left: 0;
    width: 100%;
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligne en haut pour que le scroll commence bien */
    padding-bottom: 50px;
    z-index: 10;
    pointer-events: none;
}

.content-section {
    position: absolute;
    opacity: 0;
    visibility: hidden; /* Cache la section */
    transform: translateY(20px);
    transition: all 0.6s ease;
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border: 1px solid red;
    pointer-events: none; /* Empêche d'interagir quand c'est caché */
}

.content-section.active {
    opacity: 1 !important;
    visibility: visible !important; /* Affiche la section */
    transform: translateY(0) !important;
    pointer-events: auto; /* Active les clics (boutons/liens) */
    color: #ffffff !important;
    pointer-events: auto !important;
}

.content-section p {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #ccc;
}

.scroll-container {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: left;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
}

/* Formulaire de contact */
input, textarea {
    width: 100%;
    background: #111;
    border: 1px solid #444;
    padding: 12px;
    color: white;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
}

textarea { height: 100px; resize: none; }

input:focus, textarea:focus {
    border-color: #EB5A23;
    outline: none;
}

/* Bouton Métal */
.btn {
    background: #EB5A23;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #EB5A23;
    color: #fff;
}

.content-section h2 {
    font-size: 2.2rem;
    color: #EB5A23;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Nunito', sans-serif;
}

/* Éléments de design */
h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #EB5A23;
    text-transform: uppercase;
}

p { line-height: 1.6; margin-bottom: 15px; }

.event-card {
    background: #1a1a1a;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #222;
    border: 1px solid #444;
    color: white;
}

/* --- Mise en page Home --- */
.content-section {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s ease;
    background: rgba(0, 0, 0, 0.95);
    
    /* TAILLE ET SCROLL */
    width: 90%;
    max-width: 150vh; 
    max-height: 80vh; /* Limite à 60% de la hauteur de l'écran */
    overflow-y: auto; /* Active le scroll interne */
    padding: 25px;    /* Réduit l'espace interne */
    
    /* EFFET NÉON BLANC */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.507), 
                inset 0 0 10px rgba(255, 255, 255, 0.05);
    
    pointer-events: none;
    z-index: 20;
}

/* On force la barre de scroll à être visible mais discrète */
.content-section::-webkit-scrollbar {
    width: 4px;
}
.content-section::-webkit-scrollbar-thumb {
    background: #ffffff;
}

/* Style des particules */
.particle {
    position: fixed;
    background: white;
    border-radius: 50%;
    pointer-events: none; /* Ne bloque pas les clics */
    z-index: -1; /* Derrière le texte mais devant le fond sombre */
    opacity: 0;
    animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

.home-header h2 { margin-bottom: 5px; }
.subtitle { color: #EB5A23; font-size: 0.8rem; letter-spacing: 4px; }
.lead-text { font-style: italic; font-size: 1.2rem; color: #fff !important; }

.separator { border: none; border-top: 1px solid #333; margin: 20px 0; }

.bio h3 { font-size: 1.2rem; margin-bottom: 10px; color: #EB5A23; }

/* Les paragraphes pour plus de lisibilité */
p.lead-text {
    font-weight: 700; /* Nunito est beau en gras pour l'intro */
    font-size: 1.3rem;
}

/* Citation (Blockquote) */
blockquote {
    font-family: 'Nunito', sans-serif !important;
    font-style: italic;
    font-weight: 300;
}

/* --- Portfolio Centré --- */
.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Garde 2 colonnes */
    gap: 15px;
    margin: 20px auto 25px auto; /* Centre la grille elle-même */
    justify-items: center; /* Centre les items dans leurs colonnes */
    max-width: 75%; /* Limite la largeur pour un meilleur centrage */
}

.grid-portfolio .item {
    width: 100%; /* Prend toute la place de la colonne définie par max-width */
    max-width: 75%; /* Taille uniforme */
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-portfolio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-portfolio img:hover {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.1);
}

/* Scrollbar Personnalisée */
.content-section::-webkit-scrollbar { width: 6px; }
.content-section::-webkit-scrollbar-thumb { background: #ffffff; }

.calendar-wrapper {
    width: 100%;
    max-width: 90%; /* Un peu plus large pour la lisibilité */
    margin: 25px auto;
    background: rgba(10, 10, 10, 0.8); /* Fond très sombre transparent */
    border-radius: 12px;
    padding: 10px;
    position: relative;
    
    /* Double bordure pour l'effet "néon" */
    border: 0.5px solid rgba(235, 92, 35, 0.719);
    box-shadow: 0 8px 32px rgba(235, 92, 0, 0.8), 
                0 0 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* On stylise l'iframe pour qu'il s'intègre au décor */
.calendar-wrapper iframe {
    /* Filtre Metal Dark : Inversion des couleurs + Teinte froide */
    filter: invert(92%) hue-rotate(180deg) brightness(0.7) contrast(1.5) saturate(0.5);
    border-radius: 5px;
    display: block;
    transition: all 0.5s ease;
}

/* Effet de survol : le calendrier s'éclaire légèrement */
.calendar-wrapper:hover {
    border-color: rgba(235, 92, 0, 1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .calendar-wrapper { max-width: 95%; }
}

.form-wrapper {
    width: 100%;
    max-width: 100%; 
    margin: 20px auto;
    /* On retire les bordures et padding inutiles qui créent du blanc */
    border: none; 
    padding: 0 !important; 
    background: transparent; /* On enlève le fond blanc du conteneur */
    border-radius: 8px;
    overflow: hidden;
    line-height: 0; /* Supprime l'espace résiduel sous l'iframe */
}

/* Optionnel : Si tu veux essayer de rendre le formulaire sombre */
.form-wrapper iframe {
    width: 100%;
    /* On force une hauteur minimale, mais Google Form est souvent grand */
    height: 700px; 
    border: none;
    display: block;
    margin: 0;
    padding: 0;
    /* Optionnel : si tu veux que le formulaire s'intègre mieux au site noir */
    filter: grayscale(0.2); 
}

/* Conteneur global du portfolio sous le calendrier */
.event-details-list {
    margin-top: 40px;
    width: 100%;
}

.section-title {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
}

/* Ligne d'événement */
.event-item {
    display: flex;
    align-items: center; /* Aligne verticalement l'image et le texte */
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 10px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Bloc Image (Gauche) */
.event-image {
    flex: 0 0 150px; /* Taille fixe pour l'image */
    height: 100px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.event-image img {
    width: 80%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.5s;
}

.event-item:hover .event-image img {
    filter: grayscale(0) brightness(1.1);
    transform: scale(1.1);
}

/* Bloc Texte (Droite) */
.event-info {
    flex: 1; /* Prend tout l'espace restant */
    min-width: 0;
    word-wrap: break-word;
    text-align: left; /* Aligné à gauche face à l'image */
}

.event-info h4 {
    color: #EB5A23;
    font-size: 1.3rem;
    margin: 0;
    text-transform: uppercase;
}

.event-date {
    display: block;
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

.event-info p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    color: #aaa !important;
    margin-bottom: 10px !important;
}

/* Petit bouton stylisé */
.btn-small {
    background: transparent;
    border: 1px solid #EB5A23;
    color: #EB5A23;
    padding: 5px 12px;
    font-size: 0.7rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-small:hover {
    background: #EB5A23;
    color: #fff;
}

/* Responsive : On empile l'image et le texte sur petit écran */
@media (max-width: 500px) {
    .event-item {
        flex-direction: column;
        text-align: center;
    }
    .event-info {
        text-align: center;
    }
}
/* Style pour le lien de l'image */
.event-image-link {
    display: block;
    flex: 0 0 150px; /* On garde la même taille que précédemment */
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

/* Indicateur "VOIR DÉTAILS" caché par défaut */
.click-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(255, 0, 0, 0.8); /* Rouge métal */
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    opacity: 0;
    transition: 0.3s ease;
    z-index: 5;
    white-space: nowrap;
    border-radius: 2px;
}

/* Effets au survol de l'image cliquable */
.event-image-link:hover .click-hint {
    opacity: 1;
}

.event-image-link:hover .event-image img {
    filter: grayscale(0) brightness(0.5); /* On assombrit l'image pour faire ressortir le texte */
    transform: scale(1.1);
}

/* On s'assure que le pointer-events est actif pour le lien */
.event-image-link {
    pointer-events: auto;
}

.next-events-preview {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-title {
    font-family: 'Anton', sans-serif !important;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #EB5A23;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.preview-container {
    display: flex;
    flex-direction: column; /* Cartes l'une sous l'autre sur mobile */
    gap: 12px;
    margin-bottom: 15px;
}

/* Petites cartes cliquables */
.mini-event-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto !important; /* Pour être sûr qu'on peut cliquer */
}

.mini-event-card:hover {
    background: rgba(235, 90, 35, 0.1); /* Lueur orange au survol */
    border-color: #EB5A23;
    transform: translateX(5px); /* Petit décalage vers la droite */
}

.mini-event-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 15px;
    filter: grayscale(1); /* Grisé par défaut */
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-event-card:hover img {
    filter: grayscale(0); /* Couleur au survol */
    border-color: #EB5A23;
}

.mini-event-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mini-event-info .date {
    font-family: 'Anton', sans-serif !important;
    font-size: 0.75rem;
    color: #EB5A23;
    letter-spacing: 1px;
}

.mini-event-info .name {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- RESPONSIVE : Version Horizontale sur grands écrans --- */
@media (min-width: 768px) {
    .preview-container {
        flex-direction: row; /* Côte à côte sur PC */
    }
    .mini-event-card {
        flex: 1; /* Les deux cartes prennent la même largeur */
    }
}

/* Bouton discret pour rediriger */
.btn-link {
    background: none;
    border: none;
    color: #888;
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-link:hover {
    color: #EB5A23;
}

/* Conteneur de contact */
.contact-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Formulaire plus large que les infos */
    gap: 40px;
    text-align: left;
}

/* Style des champs du formulaire */
.contact-form input, 
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
    transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #EB5A23;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Infos de contact (droite) */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item .label {
    display: block;
    font-size: 0.7rem;
    color: #EB5A23;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: bold;
}

.info-item p {
    font-size: 1rem;
    color: #fff;
    margin: 0;
}

/* Liens réseaux sociaux */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.social-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Responsive : On empile tout sur mobile */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Correction de la visibilité pour la section rejoindre */
#rejoindre {
    color: #ffffff !important;
}

#rejoindre .bio p {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0,0,0,1); /* Pour bien lire sur le fond */
}

/* On s'assure que le texte du logo est bien noir et visible */
.logo-area h1 {
    color: #111111 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================================
   ADMIN PANEL & SOUMISSION (FULL THROTTLE - UPDATED)
   ============================================================ */

/* Les formulaires restent compacts (Connexion / Soumission) */
#auth-container, #submission-form {
    background: rgba(0, 0, 0, 0.95);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(235, 90, 35, 0.2);
    margin: 20px auto;
    width: 100%;
    max-width: 600px; /* On garde 600px pour que les formulaires soient lisibles */
    pointer-events: auto !important;
}

/* --- LE PANEL ADMIN (VERSION LARGE) --- */
#admin-panel {
    background: rgba(0, 0, 0, 0.95);
    padding: 40px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    margin: 0 auto;
    width: 95vw !important; /* Prend presque toute la largeur de l'écran */
    max-width: 1400px !important; /* Mais s'arrête à 1400px pour le confort */
    pointer-events: auto !important;
}

/* On centre tout le contenu à l'intérieur */
.admin-centered-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les titres et les boîtes horizontalement */
}

/* Les boîtes internes (Validation / Stats) */
.admin-box {
    width: 100%;
    max-width: 1200px; /* Largeur de lecture idéale pour les cartes */
    margin-bottom: 40px;
}

/* Titre du panel spécifique */
#admin-panel h2 {
    font-family: 'Anton', sans-serif !important;
    color: #EB5A23;
    font-size: 3rem; /* Plus gros pour le panel large */
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 2px;
}

/* Style des champs Heure (Début/Fin) */
.time-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.time-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.time-item label {
    font-family: 'Anton', sans-serif;
    font-size: 0.8rem;
    color: #EB5A23;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* Adaptation des inputs pour les heures */
input[type="time"] {
    cursor: pointer;
    text-transform: uppercase;
}

/* Cartes des événements en attente (Panneau Admin) */
.admin-event-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #EB5A23;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.admin-event-info {
    flex: 1;
}

.admin-event-info strong {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    display: block;
}

.admin-event-info span {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
}

/* Boutons spéciaux pour l'admin */
.btn-validate {
    background: #28a745; /* Vert pour valider */
    color: white;
    border: none;
    padding: 8px 15px;
    font-family: 'Anton', sans-serif;
    cursor: pointer;
    transition: 0.3s;
}

.btn-validate:hover {
    background: #fff;
    color: #28a745;
}

.btn-logout {
    background: transparent;
    border: 1px solid #666;
    color: #666;
    margin-top: 20px;
    font-size: 0.8rem;
}

.btn-logout:hover {
    border-color: #fff;
    color: #fff;
}

.event-info h4 {
    color: #EB5A23;
    font-size: 1.4rem;
    margin: 0 0 5px 0; /* Un petit espace de 5px seulement vers le bas */
    text-transform: uppercase;
    font-family: 'Anton', sans-serif;
}

.event-date {
    display: block;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px; /* Espace avant la description */
}

/* --- ANIMATION DES BRAISES VOLANTES --- */

.gauge-wrapper::before, 
.gauge-wrapper::after {
    content: "";
    position: absolute;
    top: 40%; /* Positionne le départ au niveau des flammes du compteur */
    left: 50%;
    width: 2px;
    height: 2px;
    background: #EB5A23;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    /* Création de plusieurs braises avec box-shadow */
    box-shadow: 
        10px -5px 2px #EB5A23, 
        -10px -10px 2px #ff4500, 
        5px -15px 2px #EB5A23;
    opacity: 0;
}

/* Premier groupe de braises */
.gauge-wrapper::before {
    animation: embersRise 2s infinite linear;
}

/* Deuxième groupe (décalé pour la fluidité) */
.gauge-wrapper::after {
    animation: embersRise 2.5s infinite linear;
    animation-delay: 0.7s;
    left: 45%; /* Légèrement décalé sur le côté */
}

@keyframes embersRise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        /* Les braises montent en zigzaguant légèrement */
        transform: translateY(-80px) translateX(-20px) scale(0.5) rotate(360deg);
        opacity: 0;
        /* Elles s'éteignent en devenant plus sombres */
        box-shadow: 
            20px -20px 4px #ff0000, 
            -20px -40px 4px #000, 
            15px -60px 4px #EB5A23;
    }
}

/* Effet de chaleur pulsante sur le compteur (Glow) */
.gauge-wrapper {
    position: relative;
    animation: gaugeHeat 2s infinite alternate ease-in-out;
}

@keyframes gaugeHeat {
    from {
        filter: drop-shadow(0 0 2px rgba(235, 90, 35, 0.3));
    }
    to {
        filter: drop-shadow(0 0 10px rgba(235, 90, 35, 0.7));
    }
}

/* --- STYLE FORMULAIRE BÉNÉVOLE --- */

.custom-contact-form select {
    width: 100%;
    background: #111 !important;
    border: 1px solid #444 !important;
    border-left: 3px solid #EB5A23 !important;
    padding: 12px;
    color: white;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.radio-label {
    color: #ccc;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Personnalisation des boutons radio pour coller au orange */
.radio-label input[type="radio"] {
    accent-color: #EB5A23;
    width: 18px;
    height: 18px;
}

/* Amélioration visuelle des champs */
.custom-contact-form input:focus, 
.custom-contact-form textarea:focus,
.custom-contact-form select:focus {
    border-color: #EB5A23 !important;
    box-shadow: 0 0 10px rgba(235, 90, 35, 0.3);
    outline: none;
}

/* --- TABS ESPACE ARTISTE --- */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #888;
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #EB5A23;
    border-bottom: 2px solid #EB5A23;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajustements inputs fiche */
#tab-profile input {
    margin-bottom: 5px;
}

/* --- LECTEUR AUDIO CUSTOM --- */
.audio-input-wrapper {
    position: relative;
}

.input-tip {
    font-size: 0.75rem;
    color: #888;
    margin: 5px 0 10px 5px;
    font-style: italic;
}

.audio-preview {
    background: rgba(235, 90, 35, 0.1);
    border: 1px dashed #EB5A23;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-preview .label {
    font-family: 'Anton', sans-serif;
    font-size: 0.8rem;
    color: #EB5A23;
    letter-spacing: 1px;
}

audio {
    width: 100%;
    height: 35px;
    filter: invert(100%) hue-rotate(160deg) brightness(1.5); /* Force le lecteur à être sombre/orange */
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-left: 3px solid #EB5A23;
    border-radius: 4px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.orange-text { color: #EB5A23; font-family: 'Anton'; font-size: 1.5rem; margin: 0; }

.bio-text { 
    font-family: 'Nunito'; 
    white-space: pre-wrap; /* Garde les retours à la ligne */
    color: #ccc;
    margin: 15px 0;
}

.form-buttons { display: flex; gap: 15px; align-items: center; margin-top: 10px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px;
    width: 100%;
    justify-content: center; /* Important : centre les cartes */
}

.stat-card {
    background: #111;
    padding: 20px;
    border: 1px solid #222;
    text-align: center;
    border-radius: 4px;
}

.click-number {
    display: block;
    font-size: 2.5rem;
    color: #EB5A23;
    font-family: 'Anton', sans-serif;
}

.stat-card h4 {
    margin: 0 0 10px 0;
    color: #EB5A23;
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
}

.stat-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-family: 'Anton', sans-serif;
    color: #fff;
}

.stat-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.groups-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.group-public-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.group-public-card:hover {
    border-color: #EB5A23;
    transform: translateY(-5px);
}

.group-card {
    position: relative; /* Et non fixed ou absolute ! */
    background: rgba(0, 0, 0, 0.8); /* Fond noir semi-transparent pour bien voir le texte */
    border: 1px solid #EB5A23;
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    z-index: 1; /* Pour être sûr qu'elle ne passe pas SOUS le fond */
}

.group-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.group-card-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: #222;
}

.group-public-card h3 {
    color: #EB5A23;
    margin: 0;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

.group-public-card .genre {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1px;
}

.group-public-card .bio-preview {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
    height: 60px; /* Limite la hauteur de la bio */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.group-public-card audio {
    width: 100%;
    height: 30px;
    filter: invert(1) hue-rotate(150deg);
}

.filter-bar {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-bar label {
    font-family: 'Anton', sans-serif;
    color: #888;
    font-size: 0.9rem;
}

.filter-bar select {
    background: #000;
    color: #fff;
    border: 1px solid #EB5A23;
    padding: 8px 15px;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
}

.filter-bar select:hover {
    background: #111;
}

.metal-select {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
    border-bottom: 2px solid #EB5A23;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 15px;
    outline: none;
    appearance: none; /* Enlève le style par défaut du navigateur */
}

.metal-select option {
    background: #111;
    color: #fff;
}

/* ============================================================
   ADMIN PANEL & STATS CARDS (RESTYLISÉ)
   ============================================================ */

/* 1. Grille de statistiques harmonisée */
#admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

/* 2. La Carte de Statistique (Le look "Metal") */
.stat-card {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 25px !important;
    border: 1px solid #222 !important;
    border-left: 4px solid #EB5A23 !important; /* La barre orange verticale */
    border-radius: 4px;
    text-align: left !important; /* Alignement à gauche pour le look fiche technique */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: rgba(235, 90, 35, 0.05) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.stat-card h4 {
    margin: 0 0 15px 0;
    color: #EB5A23;
    font-family: 'Anton', sans-serif !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* 3. Le compteur massif */
.stat-count {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.stat-number {
    font-size: 3.5rem !important; /* Chiffre XXL */
    font-family: 'Anton', sans-serif !important;
    color: #fff;
    line-height: 1;
    text-shadow: 2px 2px 0px #000;
}

.stat-label {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 1px;
}

/* 4. Cartes de validation (Rituels en attente) */
.admin-event-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-left: 4px solid #fff; /* Blanc pour contraster avec le orange */
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    animation: fadeIn 0.4s ease;
}

.admin-event-info strong {
    font-family: 'Anton', sans-serif;
    color: #EB5A23;
    font-size: 1.2rem;
    text-transform: uppercase;
    display: block;
}

.admin-event-info span {
    color: #888;
    font-size: 0.9rem;
}

/* ============================================================
   BOUTONS ADMIN SPECIFIQUES
   ============================================================ */

.btn-validate {
    background: #EB5A23;
    color: white;
    border: none;
    padding: 8px 20px;
    font-family: 'Anton', sans-serif;
    cursor: pointer;
    transition: 0.3s;
}

.btn-validate:hover {
    background: #fff;
    color: #EB5A23;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 768px) {
    /* On réduit les marges globales pour gagner de la place */
    body {
        padding: 10px;
    }

    /* Le panel admin et les formulaires prennent toute la largeur */
    #admin-panel, #auth-container, #submission-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0;
        padding: 20px;
    }

    /* La grille de cartes passe en une seule colonne */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* On agrandit les boutons pour les pouces (règle des 44px minimum) */
    button, .btn, .nav-link {
        min-height: 48px;
        width: 100%;
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    /* Titres moins énormes sur petit écran */
    h2 {
        font-size: 1.5rem !important;
    }
}

/* ==========================================
   ⚡️ CORRECTIF FINAL MENU MOBILE
   ========================================== */
@media (max-width: 850px) {
    /* 1. On laisse le header s'ajuster à peine (hauteur auto mais contenue) */
    header {
        height: auto !important;
        min-height: 80px !important;
        padding: 10px !important;
        flex-direction: column !important; /* Logo en haut, boutons juste en dessous */
        justify-content: center !important;
    }

    /* 2. Le logo devient plus petit pour laisser de la place */
    .logo-area {
        transform: scale(0.8);
        margin-bottom: 5px;
    }

    /* 3. LA MAGIE : Les boutons s'organisent en grille compacte */
    nav ul {
        display: flex !important;
        flex-wrap: wrap !important; /* Permet de passer à la ligne (superposition) */
        justify-content: center !important;
        gap: 5px !important; /* Espace très réduit */
        width: 100% !important;
    }

    nav ul li {
        flex: 1 1 auto; /* Les boutons s'adaptent à la largeur disponible */
        min-width: 100px; /* Largeur minimum pour ne pas écraser le texte */
    }

    nav ul li a {
        font-size: 11px !important; /* Texte plus petit pour gagner de la place */
        padding: 8px 5px !important;
        border: 1px solid #EB5A23 !important;
        background: rgba(255, 255, 255, 0.8) !important;
        text-align: center;
        display: block;
    }
}

.mission-item {
    margin-top: 20px;
    padding-left: 15px;
    border-left: 2px solid #EB5A23; /* Ton orange signature */
}

.mission-item h4 {
    color: #EB5A23;
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-family: 'Anton', sans-serif;
}

.mission-item p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}

.separator {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.mission-image-container {
    position: relative;
    width: 100%;
    margin: 20px 0 30px 0;
    /* On enlève la bordure pour que le fondu soit parfait */
    overflow: hidden;
}

.mission-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    filter: grayscale(30%) contrast(1.2);
    
    /* --- LA MAGIE DU FONDU ICI --- */
    /* Ce masque crée un dégradé de transparence : 
       Transparent au bord (0%), Opaque au milieu (20% à 80%), Transparent au bord (100%) */
    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%, 
        black 20%, 
        black 80%, 
        transparent 100%);
    mask-image: linear-gradient(to bottom, 
        transparent 0%, 
        black 20%, 
        black 80%, 
        transparent 100%);
}

@media (max-width: 768px) {
    .mission-banner {
        height: 150px;
    }
}

/* Fond de la modale (noir transparent) */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

/* Boîte centrale */
.modal-content {
    background: #111;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #EB5A23;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 20px rgba(235, 90, 35, 0.3);
}

/* Bouton fermer */
.close-modal {
    color: #888;
    float: right;
    font-size: 28px;
    cursor: pointer;
}
.close-modal:hover { color: #EB5A23; }