/* =========================================
   SECTION HERO — Quartier
   ========================================= */

#quartier-hero,
.quartier-hero {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;             /* pas de débordement */
    background: #001944;
    min-height: 90vh;             /* >>> plein écran desktop */
}

/* IMAGE DE FOND */
.quartier-hero__bg {
    position: absolute;
    inset: 0;                     /* top:0; right:0; bottom:0; left:0; */
    overflow: hidden;
    z-index: 1;
}

.quartier-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* couvre toute la zone */
    object-position: center;
    display: block;
    pointer-events: none;
}

/* OVERLAY BLEU + CONTENEUR FLEX */
.quartier-hero__overlay {
    position: absolute;
    inset: 0;                     /* occupe tout le hero */
    z-index: 2;

    background: rgba(0, 0, 40, 0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;
}

/* CONTENU TEXTE */
.quartier-hero__content {
    width: 100%;
    max-width: 760px;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
    text-align: left;
    color: #fef8f0;
}

.quartier-hero__eyebrow {
    margin: 0 0 .75rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.quartier-hero__title {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    margin: 0 0 1.2rem;
}

.quartier-hero__baseline {
    font-size: 1rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
    opacity: 0.95;
}

.quartier-hero__description {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 40rem;
    opacity: 0.9;
    margin: 0;
}

/* =========================================
   RESPONSIVE MOBILE
   ========================================= */

@media (max-width: 768px) {

    #quartier-hero,
    .quartier-hero {
        min-height: 70vh;         /* un peu plus compact sur mobile */
    }

    .quartier-hero__content {
        padding: 2.2rem 1.25rem;
    }

    .quartier-hero__title {
        font-size: 2rem;
    }

    .quartier-hero__baseline,
    .quartier-hero__description {
        font-size: 0.95rem;
    }
}
/* ===========================================
   FIX MOBILE HERO — supprimer l'espace vide
   =========================================== */
@media (max-width: 768px) {

    /* 1. Le hero ne doit plus imposer de min-height */
    #quartier-hero.quartier-hero {
        min-height: auto !important;
        height: auto !important;
    }

    /* 2. Le container BG ne doit PAS créer d’espace */
    .quartier-hero__bg {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* 3. L’image doit dicter la hauteur */
    .quartier-hero__img {
        width: 100%;
        height: auto !important;
        display: block;
        object-fit: cover;
    }

    /* 4. L’overlay doit suivre l’image uniquement */
    .quartier-hero__overlay {
        position: absolute;
        inset: 0;
        height: 100% !important;
        min-height: 0 !important;
    }
}

@media (max-width: 768px) {

    /* Le HERO devient plus haut sur mobile pour libérer de l'espace en haut */
    .quartier-hero {
        min-height: 520px; /* Ajuste selon ton confort : 480 / 520 / 560 */
    }

    /* NE PAS toucher au padding-top du texte, on le laisse léger */
    .quartier-hero__content {
        padding-top: 12rem; /* garde léger ! */
        padding-bottom: 2rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
