.expert h2, .expert p {
    flex: 1;
}

.sommaire.gauche,
.sommaire.droitehaut {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 1 / 1;
}

.sommaire.gauche {
    border-radius: 0px 160px 0px 160px;
}

.sommaire.droitehaut {
    border-radius: 160px 0px 160px 0px !important;
}

/* .anime en flex : texte poussé en bas */
.sommaire .anime {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Image en fond absolu */
.sommaire .anime img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sommaire .anime::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.563);
    z-index: 1;
    pointer-events: none;
}

/* Texte dans le flux, par-dessus */
.sommaire .anime .mot {
    position: relative;
    z-index: 2;
    padding: 0 60px 80px 80px;
}

.sommaire .anime .mot h3 {
    font-family: var(--wp--preset--font-family--fustat);
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
}

.sommaire .anime .mot p {
    color: white;
    margin: 0;
}

.sommaire .hoverfeu {
    position: absolute;
    inset: 0;
    background-color: var(--wp--preset--color--primaire);
    background-image: url(/wp-content/uploads/2026/06/flamme.svg);
    background-repeat: no-repeat;
    background-position: bottom -50px right -50px;
    background-size: 100%;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 4;
}

.sommaire .rouge {
    color: white;
    padding: 0 80px 100px 80px;
    font-family: var(--wp--preset--font-family--fustat);
    font-size: 32px;
    font-weight: 700;
}

.sommaire:hover .hoverfeu {
    opacity: 1;
}

.showroom .sommaire .cache {
    display: none;
}

.showroom .sommaire.gauche {
    border-radius: 160px 0px 160px 0px !important;
}

.showroom .sommaire.droitehaut {
    border-radius: 160px 0px 160px 0px !important;
}

.showroom .hoverfeu .rouge {
    padding: 0 20px 20px 20px !important;
}

.showroom .sommaire .anime .mot {
    position: relative;
    z-index: 2;
    padding: 0 60px 20px 20px;
}

.showroom.bas {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    
}

.showroom.bas .grille {
    padding-left: 200px !important;
    padding-right: 200px !important;
}



@media (max-width: 1280px) {

    .showroom .grille {
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }

    .showroom.bas .grille {
        display: grid;
        grid-template-columns: repeat(3,1fr);
    }
    .showroom.bas .grille {
        padding-left: 100px !important;
        padding-right: 100px !important;
    }
}

@media (max-width: 1024px) {
    .sommaire .anime .mot {
        padding: 0px 60px 40px 60px;
    }

    .sommaire .rouge {
        padding: 0 40px 60px 60px;
    }

    .showroom.bas .grille {
        display: grid !important;
        grid-template-columns: repeat(1,1fr) !important;
    }

    .intro.page .texte {
        display: flex;
        flex-direction: column  ;
        align-items: start;
        gap: 10px !important;
    }

    .intro.page {
        gap: 10px !important;
    }

}

@media (max-width: 768px) {
    h3 {
        font-size: 28px;
    }

    .sommaire .anime .mot {
        padding: 0px 20px 70px 40px;
    }

    .sommaire .anime .mot h3 {
        font-size: 26px;
    }

    .sommaire .rouge{
        padding: 0 20px 70px 40px;
        font-size: 26px;
    }

    .cache {
        display: none !important;
    }
    .showroom.bas .grille {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    
}

@media (max-width: 640px) {
    .grille {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
        padding-left: 80px !important;
        padding-right: 80px !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .sommaire .anime .mot {
        padding: 0 40px 80px 40px !important;
    }

    .sommaire .rouge {
        padding: 0 40px 80px 40px !important;
    }

    .sommaire.gauche,
    .sommaire.droitehaut {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .pad.projet .texte {
        gap: 10px !important;
    }

    .pad.projet{
        gap: 20px ;
    }

    .contenu.nopad {
        padding-bottom: 0px !important;
    }


}

@media not all and (min-width: 501px) {
    :root{
        --wp--custom--px: 20px;
        --wp--custom--block-gap: 110px;
    }

    .sommaire .anime .mot {
        padding: 0 40px 80px 40px !important;
    }

    .sommaire .rouge {
        padding: 0 40px 80px 40px !important;
    }

    .grille {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
    .contenu.nopad {
        padding-bottom: 0px !important;
    }

    
}

@media (max-width: 390px) {
    h3 {
        font-size: 24px;
    }

    .sommaire .anime .mot h3 {
        font-size: 22px;
    }

    .sommaire .rouge {
        font-size: 22px;
    }
}