/* Bannières promotionnelles accueil - ratio des images 1120x800 */
.promoblocks {
    margin: 30px 0;
}

.promoblocks__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.promoblock {
    position: relative;
    display: flex;
    aspect-ratio: 1120 / 800;
    border-radius: 22px;
    overflow: hidden;
    /* Image affichée en entier, sans rognage ni déformation */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .10);
    transition: transform .25s ease, box-shadow .25s ease;
}

.promoblock:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}

/* Titre en haut, bouton en bas, contenu sur 80% de largeur */
.promoblock__content {
    position: relative;
    z-index: 2;
    width: 90%;
    padding: 8% 8%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promoblock__title {
    margin: 0;
    width: 100%; /* occupe les 80% du conteneur */
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.18;
    text-transform: uppercase;
    color: inherit;
}

.promoblock__subtitle {
    margin-top: 18px;
    width: 65%; /* 75% de la zone contenu (80%) ≈ 60% du bloc */
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    color: inherit;
    opacity: .98;
}

/* Bouton blanc poussé en bas, texte coloré */
.promoblock__btn {
    align-self: flex-start;
    margin-top: auto;
    display: inline-block;
    padding: 13px 34px;
    background: #fff;
    color: #0028B8;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: background .2s ease, transform .2s ease;
}

.promoblock__btn:hover {
    background: #f2f2f2;
    transform: scale(1.04);
}

.promoblock__top {
    display: block;
}

/* Fallback navigateurs sans aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .promoblock {
        min-height: 340px;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .promoblocks__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .promoblock {
        aspect-ratio: 1120 / 500;
    }
    .promoblock__title {
        font-size: 1.7rem;
    }
}

@media (max-width: 575px) {
    .promoblock {
        aspect-ratio: 1120 / 620;
    }
    .promoblock__content {
        width: 86%;
    }
    .promoblock__title {
        font-size: 1.35rem;
    }
}
