/* ==========================================================================
   1. RÉACTIVATION DU SCROLL SUR L'ACCUEIL UNIQUEMENT
   ========================================================================== */
/* Ces règles s'appliquent quand home.css est chargé sans casser les autres pages si on cible l'accueil */
html:has(.hero-banner),
body:has(.hero-banner) {
    height: auto;
    min-height: 100vh;
    overflow-y: auto; /* Active le scroll vertical sur l'accueil */
    overflow-x: hidden;
}

/* ==========================================================================
   2. BANNIÈRE (2/3 DE L'ÉCRAN) + OMBRAGE VERS LE BACKGROUND
   ========================================================================== */
.hero-banner {
    width: 100%;
    height: 90.00vh;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-bottom: 4px solid var(--color-accent);
    /* Ombrage puissant entre la bannière et le background 16:9 en dessous */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.98);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   3. BACKGROUND 16:9 ENTIER SOUS LA BANNIÈRE + AFFICHES SHOWS (VERTICAL 3:4)
   ========================================================================== */
.home-content {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-image: url('../assets/img/ui/bg-home.jpg');
    background-size: 100% 100%;
    background-position: top center;
    background-repeat: no-repeat;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Padding vertical (vh) et horizontal (vw) relatifs à la taille de la fenêtre */
    padding: clamp(40px, 6vh, 80px) clamp(20px, 2vw, 40px);
}

.upcoming-shows {
    width: 100%;
    /* Plafond élargi pour laisser l'interface respirer et s'étaler sur les écrans 4K */
    max-width: 1800px;
    margin: 0 auto;
}

.section-title {
    /* Le grand titre grandit proportionnellement à l'écran */
    font-size: clamp(2.5rem, 4vw, 5rem);
    text-align: center;
    margin-bottom: clamp(30px, 4vh, 60px);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.4vw, 6px);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.95);
}

.shows-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    /* L'espacement entre les affiches s'adapte à la résolution */
    gap: clamp(30px, 4vw, 70px);
}

/* Le cœur du Fluid Design : la carte n'est plus figée en pixels fixes */
.show-card {
    width: clamp(260px, 22vw, 480px);
    transition: transform 0.3s ease;
}

.show-card:hover {
    transform: translateY(-8px) scale(1.03);
}

.poster-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4; 
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
    background-color: #111;
}

.poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.show-info {
    text-align: center;
    /* Espacements intérieurs de la cartouche dynamiques */
    margin-top: clamp(8px, 1vh, 15px);
    background: rgba(0, 0, 0, 0.9);
    padding: clamp(10px, 1.2vw, 20px);
    border-left: 4px solid var(--color-accent);
}

.show-info h2 {
    /* Titre du show fluide */
    font-size: clamp(1.2rem, 1.6vw, 2.2rem);
    letter-spacing: 1px;
}

.show-info p {
    /* Date du show fluide */
    font-size: clamp(0.9rem, 1vw, 1.3rem);
    color: var(--color-accent);
    margin-top: 4px;
}

/* ==========================================================================
   4. RÈGLES MOBILE / TABLETTE (PLACÉES À LA FIN)
   ========================================================================== */
@media (max-width: 768px) {
    html:has(.hero-banner),
    body:has(.hero-banner) {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .shows-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .show-card {
        width: 80vw;
        max-width: 340px;
    }

    .hero-banner {
        height: 55vh;
    }

    .home-content {
        aspect-ratio: auto;
        min-height: auto;
        padding: 40px 15px;
        background-size: cover;
    }
}