/* === Sommaire d'offres (cartes internes à une page) ======================================== */
.x-sommaire-offres {
    padding-top: 50px;
    padding-bottom: 0;
    background-color: var(--wp--preset--color--gris-clair);
    background-image: url('/wp-content/uploads/2023/01/mosaique_triangles-1.png');
    background-size: 27% auto;
    background-position: bottom right;
    background-repeat: no-repeat;
}
.x-sommaire-offres__titre {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 10px;
    font-family: var(--wp--preset--font-family--poppins);
    font-size: var(--wp--preset--font-size--xxxl-b);
    font-weight: 700;
    line-height: 37px;
    color: var(--wp--preset--color--encre);
    text-align: center;
}
/* Empilement par défaut de Gutenberg à 781 px corrigé par surcharge CSS (PAS isStackedOnMobile:false, essayé puis abandonné le 25/09 : cet attribut pose aussi flex-wrap:… */
.x-sommaire-offres__rangee {
    display: flex;
    flex-wrap: wrap !important;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 3%;
}
@media (min-width: 981px) {
    .x-sommaire-offres__titre {
        margin-bottom: 37px;
    }
    .x-sommaire-offres__rangee {
        padding-top: 15px;
        padding-bottom: 44px;
    }
}
/* !important sur flex-basis : Gutenberg applique par défaut flex:1 1 0% (flex-basis:0) aux colonnes de wp:columns sans style flex-basis en ligne — relevé le 25/09 (carte… */
.x-sommaire-offres .x-sommaire-offres__rangee > .x-sommaire-offres__carte {
    flex-basis: 100% !important;
    display: flex; /* finition A (28/09) : texte qui absorbe la place libre, boutons alignés en bas, arrondi 8 px, survol */
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background-color: var(--wp--preset--color--blanc);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.x-sommaire-offres__carte > p {
    flex-grow: 1;
}
.x-sommaire-offres__rangee > .x-sommaire-offres__carte:hover {
    box-shadow: 0 18px 40px -18px rgba(15, 9, 19, .35);
}
.x-sommaire-offres__image {
    overflow: hidden;
}
.x-sommaire-offres__image img {
    transition: transform .5s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .x-sommaire-offres__rangee > .x-sommaire-offres__carte:hover {
        transform: translateY(-4px);
    }
    .x-sommaire-offres__carte:hover img {
        transform: scale(1.03);
    }
}
.x-sommaire-offres__carte-titre,
.x-sommaire-offres__carte-texte,
.x-sommaire-offres__carte-bouton {
    padding-left: 15px;
    padding-right: 15px;
}
@media (min-width: 480px) and (max-width: 980px) {
    .x-sommaire-offres .x-sommaire-offres__rangee > .x-sommaire-offres__carte {
        flex-basis: 47.25% !important;
    }
    .x-sommaire-offres__rangee {
        column-gap: 5.5%;
        row-gap: 30px;
        padding-top: 40px;
        padding-bottom: 45px;
    }
}
@media (min-width: 981px) {
    .x-sommaire-offres .x-sommaire-offres__rangee > .x-sommaire-offres__carte {
        flex-basis: 22.75% !important;
    }
}
.x-sommaire-offres__image img {
    width: 100%;
    height: auto;
}
.x-sommaire-offres__carte-titre {
    margin: 20px 0 10px;
    font-family: var(--wp--preset--font-family--poppins);
    font-size: var(--wp--preset--font-size--l);
    font-weight: 700;
    line-height: 24px;
    color: var(--wp--preset--color--gris-fonce);
}
.x-sommaire-offres__carte-texte {
    margin: 0;
    font-family: var(--wp--preset--font-family--poppins);
    font-size: var(--wp--preset--font-size--s);
    font-weight: 300;
    line-height: 23.8px;
    color: var(--wp--preset--color--gris-fonce);
}
.x-sommaire-offres__carte-bouton {
    margin-top: 25px;
    padding-bottom: 20px;
    justify-content: center;
}
/* .is-style-classique dans :where() : ramène 0,4,0 à 0,3,0 (vérification R2). */
.x-sommaire-offres__carte-bouton .wp-block-button:where(.is-style-classique) .wp-block-button__link {
    font-size: 12px;
    line-height: 20.4px;
}
