/* =========================================
   1. LES VARIABLES DE COULEURS
========================================= */
:root {
    --bg-dark: #050505;
    --text-main: #fef3c7;
    --text-muted: #d4d4d4;
    --orange-fire: #ff7d00;
    --orange-dark: #ff4600;
    --border-glow: rgba(255, 125, 0, 0.25);
    --bg-encart: rgba(10, 10, 10, 0.7);
}

/* =========================================
   2. RESET ET STYLE DE BASE (Correction des scrolls)
========================================= */
/* Cette règle oblige les bordures et marges à rester DANS la taille définie, évitant le scroll horizontal */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh; /* La page fait au moins 100% de la hauteur de l'écran */
    min-height: 100dvh; /* Correction spéciale pour les barres de recherche sur mobile */
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top, rgba(255,130,20,0.1) 0%, transparent 40%);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    overflow-x: hidden; /* BLOQUE LE SCROLL HORIZONTAL DÉFINITIVEMENT */
}

main {
    flex: 1; /* Pousse le footer tout en bas de l'écran sur les pages courtes */
    padding: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   3. NAVIGATION FIXE (Sticky) & MENU BURGER
========================================= */
.top-bar {
    text-align: right;
    padding: 10px 40px;
}

.top-bar button {
    background: none;
    border: none;
    color: var(--orange-fire);
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
}

.top-bar button:hover {
    color: var(--text-main);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    border-bottom: 1px solid var(--border-glow);
}

.img-logo-main { height: 40px; max-width: 100%; }
.img-logo-r { height: 30px; margin-right: 15px; vertical-align: middle; }

nav {
    display: flex;
    align-items: center;
    color: #ffffff;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.burger span {
    width: 35px;
    height: 4px;
    background-color: var(--orange-fire);
    border-radius: 2px;
    transition: 0.3s;
}

.close-menu { display: none; }

nav a, .lien-boutique {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover, .lien-boutique:hover { color: var(--orange-fire); }
.tiret { color: var(--text-muted); margin: 0 5px; }

/* Menu Déroulant BOUTIQUE */
.dropdown { display: inline-block; position: relative; }
/* Le symbole de la flèche */
.caret { 
    color: var(--orange-fire); 
    font-size: 0.7em; /* On le rend un peu plus petit pour être élégant */
    margin-left: 5px; 
    margin-right: 10px; 
    cursor: pointer;
    display: inline-block; /* Obligatoire pour pouvoir faire tourner l'élément */
    transition: transform 0.3s ease; /* L'animation fluide */
}

/* L'EFFET PRO : La flèche tourne à 180 degrés quand on survole le bouton SHOP */
.dropdown:hover .caret {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #111;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    z-index: 10;
    border: 1px solid var(--orange-fire);
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
}

.dropdown-content a { padding: 12px 16px; display: block; margin: 0; text-align: center; }
.dropdown-content a:hover { background-color: rgba(255, 125, 0, 0.2); color: var(--orange-fire); }
.dropdown:hover .dropdown-content { display: block; }

/* =========================================
   4. ENCARTS ET BOUTONS
========================================= */
.encart {
    border: 1px solid var(--border-glow);
    border-radius: 32px;
    padding: 40px;
    background-color: var(--bg-encart);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    margin-bottom: 40px;
}

/* Retire l'espace vide en dessous du dernier encart pour éviter le scroll infini */
.encart:last-child {
    margin-bottom: 0;
}

.texte-accent {
    color: var(--orange-fire);
    font-size: 1.5em;
    margin-bottom: 20px;
    margin-top: 0;
}

.btn-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--orange-fire) 0%, var(--orange-dark) 100%);
    color: #000000;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 125, 0, 0.3);
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-glow);
    background-color: #111;
    color: var(--text-main);
}

/* =========================================
   5. MISE EN PAGE : HOME, VIDEO, ETC.
========================================= */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    margin-top: 20px;
}

.hero-gauche { flex: 1; }
.hero-sous-titre {
    font-size: 1.2em;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.cercle-orange {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 125, 0, 0.4);
}

.silhouette { width: 100%; height: 100%; object-fit: cover; }

.grille-milieu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch; /* Force les éléments à avoir la même hauteur */
}

/* La ligne magique qui règle le bug de dépassement : */
.grille-milieu .encart {
    margin-bottom: 0 !important; /* Annule la marge en dessous pour éviter le décalage */
    height: 100%; /* Force la boîte à remplir parfaitement la grille */
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
}

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

.lien-single {
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.lien-single:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(255, 125, 0, 0.4);
    border-color: var(--orange-fire);
}

.titre-chanson { font-size: 2.5em; color: var(--text-main); margin: 0; }

.mailing-list { text-align: center; max-width: 600px; margin: 0 auto; }
.form-inline { display: flex; gap: 15px; margin-top: 20px; }
.form-inline input { flex: 1; margin-bottom: 0; }

/* =========================================
   6. LISTES (Musique et Dates)
========================================= */
.liste-musique { list-style-type: none; padding-left: 0; }
.liste-musique li { padding: 15px 0; border-bottom: 1px solid var(--border-glow); font-size: 1.1em; }
.liste-musique a { color: var(--text-main); text-decoration: none; font-weight: bold; transition: color 0.3s; }
.liste-musique a:hover { color: var(--orange-fire); }
.date-sortie { color: var(--text-muted); font-size: 0.85em; margin-left: 10px; }

/* =========================================
   7. FOOTER (Copyright centré, réseaux à droite)
========================================= */
footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    border-top: 1px solid var(--border-glow);
    background-color: #000;
    width: 100%;
}

.footer-gauche { text-align: center; }
.footer-gauche p { margin: 5px 0; color: var(--text-muted); font-size: 0.9em; }
.footer-gauche a { color: var(--text-muted); text-decoration: none; }
.footer-gauche a:hover { color: var(--orange-fire); }

.footer-droite {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.footer-droite a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-droite a:hover { color: var(--orange-fire); }

/* =========================================
   8. ADAPTATION MOBILE ET TABLETTE
========================================= */
/* J'ai augmenté la valeur à 1150px pour éviter tout chevauchement sur les tablettes et petits écrans PC */
@media (max-width: 1150px) {
    .burger { display: flex; } 
    
    nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 250px;
        height: 100vh;
        background-color: #0b0b0b;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px 30px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.8);
        transition: right 0.4s ease;
        z-index: 2000;
    }
    
    nav.open { right: 0; }

    .close-menu {
        display: block;
        font-size: 3em;
        color: var(--orange-fire);
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 25px;
    }

    .tiret { display: none; } 
    nav a, .lien-boutique { margin: 15px 0; font-size: 1.2em; } 
    .img-logo-r { margin-bottom: 20px; }
    
    .dropdown:hover .dropdown-content { position: static; transform: none; box-shadow: none; border: none; padding-left: 20px; }
    .dropdown-content a { text-align: left; }

    .hero-section { flex-direction: column; text-align: center; }
    .cercle-orange { margin-top: 30px; width: 250px; height: 250px; }
    .grille-milieu { grid-template-columns: 1fr; }
    .form-inline { flex-direction: column; }
    
    .footer-droite { position: static; transform: none; margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; }
    .footer-droite a { margin: 5px 10px; }
}