/* ========== PUBLICITÉ ========== */

/* ---------- Publicité haut de page ---------- */
/* Mobile first : la hauteur est la règle principale */
.section-pubHaut {
    position: relative;
    top: 0px;
    margin-top: 40px; /* ajuste selon la hauteur du header mobile */
    /* margin-bottom: 1rem; */
}

.pubHaut-container {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pubHaut-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .section-pubHaut {
        margin-top: 30px;
    }
}

@media (min-width: 1024px) {
    .section-pubHaut {
        margin-top: 20px;
    }

    .pubHaut-container img {
        width: 900px;
        height: 200px;
        max-width: 100%;
    }
}

/* ---------- Publicité latérale ---------- */
/* Mobile first : la largeur est la règle principale */
.pubLaterale-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pubLaterale-container img {
    width: 100%; /* règle principale, déjà relative donc OK sur mobile */
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Tablette */
@media (min-width: 768px) {
    .pubLaterale-container img {
        width: 90%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .pubLaterale-container img {
        width: 100%;
    }
    /* .pubLaterale-container {
        display: none;
    } */
}

/* ---------- Publicité bas de page ---------- */
/* Mobile first : la hauteur est la règle principale */
.pubBas-container {
    margin: 0 auto;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.pubBas-container img {
    width: 900px;
    height: 100px;
    max-width: 100%;
    object-fit: cover;
}

/* Tablette */
@media (min-width: 768px) {
    .pubBas-container {
        margin-bottom: 16px;
    }

}

/* Desktop */
@media (min-width: 1024px) {
    .pubBas-container {
        margin-bottom: 20px;
    }

}
