/* ==========================================================================
   STYLES COMMUNS : Bannières (hero.css)
   ========================================================================== */

/* --- 1. Base des Hero Sections --- */
.about-hero-section,
.page-hero-section,
.contact-hero,
.blog-hero-section,
.literary-hero-section,
.participer-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: 4rem 2rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary-accent);
    /* Couleur de secours si l'image ne charge pas */
    color: var(--color-text-light);
    box-sizing: border-box;
    overflow: hidden;
    /* Empêche le filtre sombre de déborder */
}

/* --- 2. Filtre Sombre (Overlay) --- */
.about-hero-section::before,
.page-hero-section::before,
.contact-hero::before,
.blog-hero-section::before,
.literary-hero-section::before,
.participer-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* --- 3. Conteneur du Contenu --- */
.about-hero-section .container,
.page-hero-section .container,
.contact-hero .container,
.blog-hero-content,
.literary-hero-content-wrapper,
.participer-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Réinitialisation propre des marges des titres */
.about-hero-section h1,
.page-hero-section h1,
.contact-hero h1,
.blog-hero-title,
.literary-hero-content .entry-title,
.participer-hero h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* --- 4. Cas Particulier : Page Littéraire --- */
/* (La seule bannière qui a une grille à 2 colonnes au lieu d'être centrée) */
.literary-hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
    /* Annule le text-align: center du parent */
}

/* --- Correction du centrage dans les bannières --- */
/* On annule le padding latéral par défaut de la classe .container quand elle est dans un Hero */
.about-hero-section .container,
.page-hero-section .container,
.contact-hero .container,
.blog-hero-section .container,
.literary-hero-section .container,
.participer-hero .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobiles)
   ========================================================================== */
@media (max-width: 768px) {

    /* On réduit la taille de toutes les bannières sur téléphone */
    .about-hero-section,
    .page-hero-section,
    .contact-hero,
    .blog-hero-section,
    .literary-hero-section,
    .participer-hero {
        min-height: 30vh;
        padding: 3rem 1.5rem;
    }

    /* La bannière littéraire repasse sur 1 seule colonne et se centre */
    .literary-hero-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}