/* ==== BANDEAU PRINCIPAL ==== */
.main-section {
    position: relative;
    color: #fff;
    width: 100%;
    min-height: 35vh;     /* base visuelle mais pas bloquante */
    height: auto;         /* s'ajuste au contenu */
    overflow: hidden;
}

.bandeau,
.bandeau img,
.filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bandeau img {
    object-fit: cover;
    object-position: center;
    opacity: 0.5;
}


.filter {
    background-color: rgba(34, 87, 130, 0.7);
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10vh 1.5rem 6vh; /* espace mais adaptable */
}

.content p {
    max-width: 85%;
    line-height: 1.35;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

/* Texte */
.main-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: bold;
    text-transform: uppercase;
}
/* ==== RESPONSIVE ==== */

@media (max-width: 991px) {
    .main-section {
        min-height: 70vh;
    }

    .main-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .content p {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    .content {
        padding: 1.5rem;
        margin-top: 0 !important;  /* Correction chevauchement header */
    }
}

@media (min-width: 768px) {
    .main-title {
        font-size: 3em;
        margin-top: 6%;
    }
}

@media (min-width: 1200px) {
    .main-title {
        font-size: 40px;
    }
    .content p {
        font-size: 18px;
    }
}

/* ==== MOBILE ==== */
@media (max-width: 767px) {
    .main-section {
        min-height: 25vh;   /* plus petit */
        height: auto;       /* s'adapte au texte */
    }

    .content {
        padding: 8vh 1rem 4vh; /* réduit l'espace */
    }

    .main-title {
        font-size: 1.5rem;
       margin-top: 4rem;   /* espace sécurisé */
    }

    .content p {
        font-size: 0.95rem;
        max-width: 100%;
    }
}
/* Écrans un peu plus larges (390px - 450px) */
@media (min-width: 390px) {
    .main-title {
        font-size: 1.7rem; /* titre un peu plus gros */
    }

    .content p {
        font-size: 1rem;   /* texte légèrement plus grand */
    }
}

/* Écrans moyens (450px - 500px) */
@media (min-width: 450px) {
    
    .main-title {
        font-size: 2rem;
    }

    .content p {
        font-size: 1.1rem;
    }
}

/* Écrans larges / tablettes (≥ 768px) */
@media (min-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        margin-top: 15%;
    }

    .content p {
        font-size: 1.4rem;
    }
}

/* Desktop large (≥ 1200px) */
@media (min-width: 1200px) {
    .main-title {
        font-size: 2rem; /* limité pour ne pas exploser */
        margin-top: 1%;   /* réduit l'espace vers le bas */
    }

    .content p {
        font-size: 1.1rem;
    }
}