@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/lucida-handwriting');

/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #030303;
    overflow-x: hidden;
}

html { 
    scroll-behavior: smooth; 
}

/* SLIDES COMPORTEMENT GENERIQUE */
.slide {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* LE HEADER (NAVBAR) */
/* NAV */
nav {
    display: flex;
    justify-content: space-between;     
    align-items: center;          
    padding: 20px 40px;            
    
    /* Force la nav à rester bloquée au scroll */
    position: fixed;         /* Reste ancré à l'écran */
    top: 0;                  /* Bloqué tout en haut */
    left: 0;                 /* Bloqué à gauche */
    width: 100vw;            /* Prend toute la largeur de la fenêtre */
    z-index: 9999;           /* Passe au-dessus de TOUT le contenu des slides */
    
    background-color: transparent; 
    transition: background-color 0.4s ease, box-shadow 0.4s ease; 
}
/*AFFICHAGE SCROLL COULEUR NAV*/
nav.scrolled {
    background-color: #ffffff; /* La barre de navigation devient blanche */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Petit ombrage discret */
}

nav.scrolled .gauche .container p {
    color: #000000; /* LITZ devient noir */
}

nav.scrolled .gauche .container img {
    filter: invert(0); /* Le logo redevient noir d'origine */
}

nav.scrolled .droite a {
    color: #000000; /* Les liens deviennent noirs */
}

nav.scrolled .droite li ul {
    background-color: #ffffff; /* Le fond du sous-menu devient blanc */
}

nav.scrolled .droite li ul a {
    color: #000000; /* Les liens du sous-menu deviennent noirs */
}
.gauche {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
    gap: 2px;                
}

.gauche .container {
    display: flex;
    flex-direction: row;    
    align-items: center;    
    gap: 5px;              
}

.gauche .container p {
     font-family: 'Lucida Handwriting', cursive;
    font-weight: 700;
    font-size: 2rem;
    color: #000;
    letter-spacing: 2px;
}

.gauche h3 {
    margin: 0;
    font-family: 'Inter', regular;   
    font-size: 1.2rem;
    color: #ff007f;
}

.droite ul {
    list-style: none;          
    display: flex;
    align-items: center;
    gap: 40px;                    
}

.droite a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease; 
}

.droite a:hover {
    color: #ff007f; 
}

/* BOUTON TICKETS NAV */
.btn-tickets {
    background-color: #ff007f;
    color: white;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    font-size: 1rem;
}

/* SUBNAV (INFO) */
.droite li {
    position: relative;            
}

/* Le conteneur du sous-menu (le bloc qui contient PLANNING et MOBILITE) */
.droite li ul {
    display: none;                 
    position: absolute;
    top: 100%;
    left: 0;
    background: transparent;
    flex-direction: column;        
    gap: 5px;
    padding-top: 10px;
    
    /* CORRECTION ICI : Aligne tous les éléments parfaitement à gauche */
    align-items: flex-start;
}

.droite li:hover ul {
    display: flex;
}

/* Les liens à l'intérieur du sous-menu */
.droite li ul a {
    font-size: 0.9rem;
    color: #000;
    font-weight: 700;
    text-align: left;       /* Force le texte à s'aligner à gauche */
    margin: 0;              /* Supprime toute marge parasite */
    padding: 0;
}

.droite li ul a:hover,
nav.scrolled .droite li ul a:hover {
    color: #ff007f !important; /* Force le rose au survol, peu importe l'état du scroll */
}
/* SUBNAV */

/* 1. On applique le positionnement relatif uniquement aux li de premier niveau */
.droite > ul > li:nth-child(1),
.droite > ul > li:nth-child(3) {
    position: relative;
    padding-bottom: 15px; 
    margin-bottom: -15px; 
}

/* 2. On applique le SVG uniquement au survol des liens de premier niveau (LINE-UP et SPONSOR) */
.droite > ul > li:nth-child(1) > a:hover::after,
.droite > ul > li:nth-child(3) > a:hover::after {
    content: "";
    position: absolute;
    bottom: -5px;            
    left: 50%;
    transform: translateX(-50%);
    width: 130%;          
    height: 25px;         
    background: url('./images/Soulignement.svg') no-repeat center;
    background-size: 100% 100%; 
    pointer-events: none; 
}

/* 3. On nettoie les sous-liens pour être sûr qu'aucun après-effet (::after) n'apparaisse pour INFO */
.droite li ul a::after {
    display: none !important;
    content: none !important;
}

/* CONFIGURATION PREMIÈRE SLIDE (ORELSAN) */
/* CONFIGURATION PREMIÈRE SLIDE (ORELSAN) */
.first-slide {
    background: url('./images/orelsan.png') no-repeat center center;
    background-size: cover;
    
    display: flex;
    flex-direction: column;
    
    /* MODIFICATION ICI : Pousse le contenu vers le bas de la page */
    justify-content: flex-end; 
    align-items: center;
    
    /* Crée un espace pour que le contenu ne touche pas le bandeau défilant noir */
    padding-bottom: 140px; 
    position: relative;
}

.slide-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Espace serré et propre entre le Titre, le Texte et le Bouton */
    z-index: 2; 
}

.first-slide h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 5rem;
    color: #ff007f;
    margin: 0;
    line-height: 1; /* Aligne le titre au plus près du texte */
}

.first-slide p {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); 
    margin: 0;
}

.first-slide .pink-text {
    color: #ff007f;
}
/* Supprime le vilain contour et le fond du bouton parent */
.slide button {
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
    box-shadow: none;
}

/* Ton bouton LINE-UP reste impeccable */
.btn-lineup {
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    border: 1.5px solid #ffffff; 
    color: #ffffff;
    background: transparent;
    padding: 12px 45px;          
    font-family: 'Inter', sans-serif;
    font-weight: 700;            
    font-size: 1.5rem;           
    letter-spacing: 1px;         
    border-radius: 0;            
    transition: opacity 0.2s ease; 
}

.btn-lineup:hover {
    opacity: 0.8;
}

/* BANDEAU DÉFILANT BAS (MARQUEE) */
.marquee-bottom {
    position: absolute;
    bottom: 0;
    width: 100vw;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-track span {
    display: inline-block;
    padding-left: 10px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- CONFIGURATION COMPLÈTE SLIDE 2 --- */
/* --- AJUSTEMENT DES TAILLES (SLIDE 2) --- */
/* --- ZONE GLOBAL SLIDE 2 --- */
.slide-categories {
    background-color: #141414; /* Noir profond identique à la maquette */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 140px; /* Laisse de la place pour la Navbar */
    overflow: hidden;
    position: relative;
}

/* CONTENEUR DES CARTES (Plus serrées et plus larges) */
.categories-container {
    display: flex;
    gap: 15px; /* Espacement très fin entre les cartes comme sur la maquette */
    width: 95%;
    max-width: 1400px;
    justify-content: center;
    z-index: 2; /* Reste au-dessus du bandeau rose */
    padding: 0 20px;
}

/* LES CARTES PORTRAITS INCLINÉES */
.card-category {
    position: relative;
    flex: 1;
    aspect-ratio: 3 / 3.8; /* Ratio vertical parfait pour allonger les images */
    overflow: hidden;
    transform: rotate(-6deg); /* Inclinaison identique à la maquette */
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Ombre portée sous les cartes */
}

.card-category:hover {
    transform: rotate(-4deg) scale(1.02);
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
}

.card-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* TEXTES SUR LES IMAGES (Gros, gras et centré verticalement) */
.card-category h2 {
    position: absolute;
    top: 55%; /* Légèrement sous le centre horizontal */
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 900; /* Extra gras */
    font-size: 3.5rem; /* Très grand texte qui remplit la largeur de la carte */
    letter-spacing: 1px;
    margin: 0;
    width: 100%;
    text-align: center;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

/* --- LE PANNEAU DIAGONAL GÉANT --- */
.diagonal-banner {
    position: absolute;
    bottom: -60px;
    left: -5vw;
    width: 110vw;
    height: 520px; /* On remonte le panneau pour qu'il mange le bas des cartes */
    background-color: #ff007f;
    
    /* Découpe inclinée agressive qui démarre à mi-hauteur à gauche et monte à droite */
    clip-path: polygon(0 42%, 100% 12%, 100% 100%, 0 100%);
    
    display: flex;
    align-items: flex-start;
    padding-top: 130px; /* Centre le texte dans la zone rose visible */
    overflow: hidden;
    z-index: 1; 
}

/* LE TRACKER DU TEXTE GÉANT (Incliné parallèlement au bandeau) */
.marquee-diagonal-track {
    display: flex;
    width: max-content;
    transform: rotate(-7.5deg); /* Aligne parfaitement le texte sur la pente du clip-path */
}

/* L'ANIMATION SANS FIN (ZÉRO LAG) */
.marquee-group {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marqueeDiagonal 20s linear infinite;
}

/* TEXTE DES ARTISTES EN GIGANTESQUE */
.marquee-group span {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 11rem; /* Taille massive conforme à la maquette */
    color: #ffffff;
    margin: 0 40px;
    letter-spacing: -5px; /* Lettres ultra-serrées */
}

/* Le petit point "o" de séparation */
.marquee-group .dot {
    font-size: 6rem;
    color: #ffffff;
    margin: 0 10px;
    letter-spacing: normal;
}

/* Keyframes optimisés hardware */
@keyframes marqueeDiagonal {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}
/* --- RESPONSIVE MOBILE TELEPHONE (MAX 768PX) --- */
@media (max-width: 768px) {
    .slide-categories {
        padding-top: 90px; 
        height: auto;      
        min-height: 100vh;
        padding-bottom: 280px; 
    }

    .categories-container {
        flex-direction: column; 
        gap: 20px;
        width: 85%; 
    }

    .card-category {
        aspect-ratio: 16 / 9; 
        transform: rotate(-3deg); 
    }
    
    .card-category:hover {
        transform: rotate(-1deg) scale(1.02);
    }

    .card-category h2 {
        font-size: 2rem; 
        top: 50%;
    }

    .diagonal-banner {
        height: 220px; 
        bottom: -30px;
        padding-top: 60px;
        clip-path: polygon(0 50%, 100% 15%, 100% 100%, 0 100%); 
    }

    .marquee-diagonal-track {
        transform: rotate(-8deg); 
    }

    .marquee-group span {
        font-size: 4rem; 
        margin: 0 20px;
        letter-spacing: -2px;
    }

    .marquee-group .dot {
        font-size: 2.5rem;
        margin: 0 5px;
    }
}
/* --- RESPONSIVE DE LA NAVBAR (À AJOUTER DANS LE @MEDIA MOBILE EXISTANT) --- */
@media (max-width: 768px) {
    
    nav {
        padding: 10px 15px; /* Réduit l'espace autour de la nav pour gagner de la place */
        width: 100%;        /* S'assure que la nav ne dépasse pas des 100% de l'écran */
    }

    /* Réduction de la taille du Logo et de LITZ */
    .gauche .container p {
        font-size: 1.4rem; /* Réduit le texte LITZ */
    }
    
    .gauche .container img {
        height: 25px; /* Réduit la hauteur du logo Blitz.svg */
        width: auto;
    }

    .gauche h3 {
        font-size: 0.8rem; /* Réduit "Festival2026" avant sa disparition */
    }

    /* AJUSTEMENT DU MENU DE DROITE */
    .droite ul {
        gap: 12px; /* Rapproche énormément les liens pour qu'ils tiennent sur une seule ligne */
    }

    .droite a {
        font-size: 0.8rem; /* Écrit les liens plus petits (LINE-UP, INFO, SPONSOR) */
        font-weight: 700;
    }

    /* Le bouton Tickets version Mobile */
    .btn-tickets {
        padding: 6px 10px; /* Réduit la taille du bouton rose Tickets */
        font-size: 0.8rem;
    }

    /* SÉCURITÉ POUR LE SOUS-MENU SUR MOBILE */
    /* Les téléphones n'ont pas de "hover" (survol de souris). 
       Pour éviter que le sous-menu bloque l'écran, on le décale proprement */
    .droite li ul {
        top: 120%;
        background-color: #141414; /* Donne un fond sombre pour qu'il soit lisible */
        padding: 10px;
        border-radius: 4px;
        box-shadow: 0px 4px 10px rgba(0,0,0,0.5);
    }
    
    nav.scrolled .droite li ul {
        background-color: #ffffff; /* Devient blanc quand on est sur la slide 2 */
    }
}