/**
Theme Name: Astra Child
Author: Brice VINCENT
Author URI: https://conseilnumeriquebourgogne.fr
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* Menu : P == Part (pour retrouver rapidement un élément (en sautant les noms des classes)

P variables
P desktop 
 - P Header desktop
    - P Menu desktop
 - P Bloc Hero desktop


Organisation par fonctionalités :
variable pour CSS media query mobile pas possible trouver alternative
ici saisir les valeurs à remplacer en cas de changement de breakpoint :
mobile < 544px (default Astra breakpoint)
tablette 921 -> 960 (menu off canvas actif à partir de desktop)
desktop : >= 1160px

- header    H
    HDF     header desktop fluide (de 961px à 1250px)
    HDM     header desktop menu
    HDMG        menu global
    HDMM     header mega menu
    HTM     header tablette / mobile (<= 960px)
    HMD     header menu desktop (desktop cross tablette)
- global    G 
    GCS     container spacing (margin et padding)
    GT      typographie
    GBGT      button
    GO      other
    GSC     special container (ex : Encart info-cle, call to action)
- home      HO
    HBH     bloc hero
    HOS     nos services
    HO5     Prestations 5 étoiles
    HST     secteurs d'interrvention
    HPS     process
    HPF     points forts
    HAG     agréments
    HC      contact
- blog      BG
    BGA     archive
    BGS     single
- page      PA
 - service  PS
 - contact  CO
- footer    F
    FD     footer desktop
    FDM     footer desktop menu
    FTM     footer tablette mobile

*/

/* FD : header desktop */

.site-primary-footer-wrap {
    border-radius: 1.5rem;
}


.site-header {
    font-family: "Surgena", sans-serif;
    padding-bottom: 10px;
}

header .custom-logo-link img {
    padding:.4rem 0;
}



/* masquer temporairement la page d'aide */
/*#menu-item-96, #menu-item-91 {
    display:none;
}*/

/* HDF : header desktop fluid */

/* Pas de hauteur de ligne propre au haut de page : une règle y posait 20px, ramenés à 1rem au passage
   en en-tête collant, et le menu sautait à la bascule. Retirée le 26-10-2026 (Brice). */

@media only screen and (max-width: 1250px) and (min-width: 961px)  {

    .site-header .widget_block .wp-block-uagb-marketing-button {
        align-self: end;
    }

    .ast-desktop .submenu-with-border .astra-megamenu {
        border-width: 0px;
    }

    @media only screen and (max-width: 1100px) { 
        /* superpositon des boutons marketing à partir d'une certaine résolutuon pour gagner de la place */
        .site-header .widget_block .wp-block-uagb-container.alignfull.uagb-is-root-container .uagb-container-inner-blocks-wrap {
            flex-direction: column;
            row-gap: 5px;
        }
        
    }
}

/* HDM : header desktop menu */

.ast-primary-header-bar  {
    border-radius: 1.5rem;
}

.site-primary-header-wrap {
    padding: 0;
    margin:0;
}

@media (max-width: 1160px) {
    .ast-header-break-point #masthead .ast-mobile-header-wrap .ast-primary-header-bar {
       padding: 0 .5rem;
    }

    .ast-site-identity {
        padding: .5rem 0;
    }
}

@media (min-width: 961px)  {
    
    /* HDMG menu global */
    .ast-primary-header-bar .site-primary-header-wrap {
        min-height: 30px;
        padding: 1rem .5rem;
    }

    .site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container {
        padding: 0;
    }

    .header-widget-area[data-section="sidebar-widgets-header-widget-1"] {
        padding: 0;
        padding-right: 5px;
    }

    #container-btn-contact {
        margin-bottom: 0px;
    }

    .site-primary-header-wrap.ast-container {
        max-width:none;
    }

    .ast-site-identity {
        padding: 0;
    }

    .ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
        line-height: 1rem;
        padding: 0 1.5rem; 
        text-transform: uppercase;
        font-size: 0.9rem;
    }

    .dropdown-menu-toggle {
        display: none;
    }

    /* ME1 menu effect 1 : (border bottom colorée, 1 couleur par service et le reste en gris avec effet de grossissement du border au survol */
    #ast-hf-menu-1 .menu-item > a  > .menu-text {
        position: relative;   /* Nécessaire pour positionner ::after absolument par rapport à lui */
        display: inline-block; /* Assure que l'élément a un contexte de bloc pour ::after */
        padding-bottom: 3px; /* Augmentez si besoin pour l'espace entre texte et ligne */
        /* Supprimer l'ancienne bordure unie */
        border-bottom-style: none;
        /* Alternative plus sûre si d'autres bordures existent : */
        border-bottom-color: transparent;
        font-weight: 500;
    }

    #ast-hf-menu-1 #menu-item-117 .menu-item > a  > .menu-text {
        padding-bottom: 0;
    }

    /* Écart texte / trait identique en haut de page et en défilement : sans cette ligne, le texte
       hérite des 20px de `.menu-item` posés hors en-tête collant (« HDF », plus haut) au lieu du
       1rem du mode collant, et le trait descend de 4px en position 0 (signalé par Brice le 26-10-2026). */
    #ast-hf-menu-1 > .menu-item > a > .menu-text {
        line-height: 1rem;
    }

    /* 2. Créer la ligne dégradée avec ::after */
    #ast-hf-menu-1 > .menu-item > a > .menu-text::after {
        content: '';          /* Obligatoire pour qu'un pseudo-élément s'affiche */
        position: absolute;
        left: 0;              /* Démarre au bord gauche du .menu-text */
        right: 0;             /* S'étend jusqu'au bord droit du .menu-text */
        /* Alternative: width: 100%; */
        bottom: 0;            /* Se positionne tout en bas (sous le padding-bottom) */
        height: 3px;          /* Épaisseur de votre ligne dégradée - Ajustez ! */
        border-radius: .5rem;
        background-color: var(--ast-global-color-1);
    }
    
    #ast-hf-menu-1 > .menu-item > a:hover, #ast-hf-menu-1 > .menu-item > a:active, #ast-hf-menu-1 > .current-menu-item > a, #ast-hf-menu-1 > .artificial-over a  {
        /*border-bottom-width: 6px;*/
        font-weight: 600;
    }

    #ast-hf-menu-1 > .menu-item:nth-child(1) > a > .menu-text::after { /* isolation */
        background-color: var(--ast-global-color-6);
    }
    #ast-hf-menu-1 > .menu-item:nth-child(2) > a > .menu-text::after { /* ventilation */
        background-color: var(--ast-global-color-7);
    }
    #ast-hf-menu-1 > .menu-item:nth-child(3) > a > .menu-text::after { /* chauffage */
        background-color: var(--ast-global-color-2);
    }
    /* 2. Créer la ligne dégradée avec ::after */
    #ast-hf-menu-1 > .menu-item:nth-child(4) > a > .menu-text::after {
        background: linear-gradient(
            to right,
            var(--ast-global-color-6) 0%,    /* Couleur 1 commence */
            var(--ast-global-color-6) 30%,   /* Couleur 1 reste solide jusqu'à 20% */
            var(--ast-global-color-7) 45%,   /* Transition vers Couleur 2, pic à 45% */
            var(--ast-global-color-7) 55%,   /* Couleur 2 reste solide jusqu'à 55% */
            var(--ast-global-color-2) 70%,   /* Transition vers Couleur 3, pic à 80% */
            var(--ast-global-color-2) 100%  /* Couleur 3 jusqu'à la fin */
        );
    }
    #ast-hf-menu-1 > .menu-item:nth-child(4) > a > .menu-text::after { /* renovation globale */
        background-color: var(--ast-global-color-8);
    }
    #ast-hf-menu-1 > .menu-item:nth-child(5) > a > .menu-text::after { /* solaire */
        background-color: var(--ast-global-color-4);
    }

    /* ajout des pictos services */
    #ast-hf-menu-1 > .menu-item:nth-child(1) > a::after,
    #ast-hf-menu-1 > .menu-item:nth-child(2) > a::after,
    #ast-hf-menu-1 > .menu-item:nth-child(3) > a::after,
    #ast-hf-menu-1 > .menu-item:nth-child(5) > a::after {
        content: ""; /* Nécessaire pour que ::after s'affiche */
        display: inline-block;
        width: 14px;
        height: 20px;
        margin-left: 6px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        vertical-align: middle;
        position: relative;
        top: -1px;
    }

    /*#ast-hf-menu-1 > .menu-item:nth-child(7) .menu-realisation-mm.isolation h5 {
        margin-left: 2em;
    }*/

    #ast-hf-menu-1 > .menu-item:nth-child(7) .menu-realisation-mm h5::before {
        content: "";
        display: inline-block;
        width: 30px;
        height: 26px;
        margin-right: 4px;
        background-repeat: no-repeat;
    }

    #ast-hf-menu-1 > .menu-item:nth-child(7) .menu-realisation-mm.isolation h5::before {
        background-image: url(/app/themes/astra-child/assets/symboles-services/service-isolation-couleur.svg);
    }

    #ast-hf-menu-1 > .menu-item:nth-child(7) .menu-realisation-mm.solaire h5::before {
        background-image: url(/app/themes/astra-child/assets/symboles-services/service-photovoltaique-solaire-couleur.svg);
    }

    #ast-hf-menu-1 > .menu-item:nth-child(7) .menu-realisation-mm.ventilation h5::before {
        background-image: url(/app/themes/astra-child/assets/symboles-services/service-ventilation-couleur.svg);
    }

    #ast-hf-menu-1 > .menu-item:nth-child(7) .menu-realisation-mm.chauffage h5::before {
        background-image: url(/app/themes/astra-child/assets/symboles-services/service-chauffage-couleur.svg);
    }

    #ast-hf-menu-1 > .menu-item:nth-child(7) .menu-realisation-mm.renovation-ampleur h5::before {
        background-image: url(/app/themes/astra-child/assets/symboles-services/service-renovation-globale-ampleur-1.svg);
    }

    #ast-hf-menu-1 > .menu-item:nth-child(7) .menu-realisation-mm.professionnel h5::before {
        background-image: url(/app/themes/astra-child/assets/symboles-services/maison-frs-fleche-verte-blanc.svg);
    }

    #ast-hf-menu-1 > .menu-item:nth-child(1) > a::after { /* isolation */
        background-image: url('assets/symboles-services/symbole-isolation.svg'); 
    }
    #ast-hf-menu-1 > .menu-item:nth-child(2) > a::after { /* ventilation */
        background-image: url('assets/symboles-services/symbole-ventilation.svg'); 
    }
    #ast-hf-menu-1 > .menu-item:nth-child(3) > a::after { /* chauffage */
        background-image: url('assets/symboles-services/symbole-chauffage.svg'); 
    }
    #ast-hf-menu-1 > .menu-item:nth-child(5) > a::after { /* solaire */
        background-image: url('assets/symboles-services/symbole-solaire.svg'); 
    }

    #ast-hf-menu-1 > .menu-item, #ast-hf-menu-1 > .menu-item:nth-child(1), #ast-hf-menu-1 > .menu-item:nth-child(2), #ast-hf-menu-1 > .menu-item:nth-child(3), #ast-hf-menu-1 > .menu-item:nth-child(5) {
        padding: 0 2rem 0 0;
    }

    .main-header-menu .menu-link, .main-header-menu>a {
        padding: 0rem;
    }

    /* HDMM mega menu */

    /* donner une hauteur de 100% de l'ancêtre aux éléments de menu */
    .ast-builder-grid-row, .ast-builder-grid-row>.site-header-section,
    .ast-builder-grid-row .ast-builder-menu,
    .header-main-layout-1 .ast-main-header-bar-alignment,
    .ast-builder-grid-row .main-header-bar .main-header-bar-navigation,
    .ast-builder-grid-row .site-navigation,
    .ast-builder-menu .main-navigation>ul
    /*.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item*/ {
        height: 100%;
    }

    .ast-builder-menu .main-navigation>ul {
        margin-left: 1.5rem;
    }

    .ast-desktop .submenu-with-border .astra-megamenu {
        border-width: 1px;
    }

    .ast-desktop .submenu-with-border .astra-full-megamenu-wrapper {
        border-top:0px;
    }

    .ast-builder-menu-1 .main-header-menu > .menu-item > .astra-full-megamenu-wrapper {
        margin-top: 0px;
    }

    #menu-item-118 .ast-mm-custom-content.ast-mm-template-content {
        text-align: right;
    }

    .astra-megamenu.sub-menu > li.menu-item:nth-child(1) .wp-block-heading {
        text-align: left;
    }

    .astra-megamenu .mega-menu-droite .doc-rapport-visite,
    .astra-megamenu .mega-menu-droite .frs-realisation-container {
        width:192px!important;
    }

    .ast-mm-custom-content > .mega-menu-droite > .uagb-container-inner-blocks-wrap {
        display:block!important;
    }

    .ast-mm-custom-content > .mega-menu-droite > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
        display: inline-block;
        margin-left: 1em;
        width: auto;
    }

    .astra-megamenu.sub-menu > li.menu-item:last-of-type {
        text-align: right;
    }

    .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:hover .astra-megamenu {
        align-items: flex-start;
        border-radius: 1.5rem;
        padding: 1.5rem;
    }

    .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu>.menu-item:last-child {
        flex: 0 1 50%;
    }

    .ast-desktop .ast-mega-menu-enabled #menu-item-7919 .astra-megamenu>.menu-item:last-child {
        flex: 0 1 100%;
    }

    #menu-item-7919 .wp-block-uagb-container.alignfull.uagb-is-root-container .uagb-container-inner-blocks-wrap {
        margin-left: 0!important;
    }

    #menu-item-117 {
        margin-top: 2.5rem;
    }

    li#menu-item-667 {
        flex: 0 1 18%;
    }

    .astra-megamenu .doc-rapport-visite {
        flex-direction: column;
        aspect-ratio: 700 / 800;
        width: 80%!important;
        border-radius:1.5rem;
        background-color: var(--ast-global-color-0);
        background-image: url(assets/rapport-visite.svg);
        background-size: 100% auto;
        /*background-position: right -1rem bottom 2rem;*/ 
        background-repeat: no-repeat;
        margin-bottom :1.1rem;
    }

    /* stylage des encart gauche du mega menu */

    .astra-megamenu.sub-menu > li:first-child .ast-mm-custom-content .listing-services-mega-menu > .uagb-container-inner-blocks-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .astra-megamenu.sub-menu > li:first-child .ast-mm-custom-content .listing-services-mega-menu > .uagb-container-inner-blocks-wrap:has(> :nth-child(3)){
        display:grid;
        grid-template-columns: repeat(auto-fit, minmax(122px, 168px));
    }

    .astra-megamenu.sub-menu > li:first-child .ast-mm-custom-content .listing-services-mega-menu > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
        flex-grow: 0;
        flex-shrink: 0;
        flex-basis: 192px;
        /* 1. On définit la taille de base de l'élément à sa largeur minimale souhaitée. */
        flex-basis: 122px;

        /* 2. On autorise l'élément à grandir pour occuper l'espace libre.
        Le '1' signifie qu'il prendra une part proportionnelle de l'espace disponible. */
        flex-grow: 1;

        /* 3. On définit une limite stricte à sa croissance avec max-width.
        Même si flex-grow veut le rendre plus grand, il sera bloqué à 168px. */
        max-width: 168px;

        /* Optionnel mais bonne pratique: on peut aussi définir min-width explicitement. */
        min-width: 122px;
    }

    .astra-megamenu.sub-menu > li:first-child .ast-mm-custom-content .listing-services-mega-menu > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
        border: 0px solid var(--ast-global-color-8);
        row-gap: 0px;
        position: relative;
        padding: 1rem;
        border-radius: 1.5rem;
        background-size: cover;
        background-position: center center;
    }

    .wp-block-uagb-container.a-la-une{
        min-height: 250px;
        border: 3px solid var(--ast-global-color-2)!important;
    }

    .wp-block-uagb-container.a-la-une h5, .wp-block-uagb-container.a-la-une p{
        margin-bottom: .75em;
    }

    #menu-item-7156 .ast-mm-custom-content .listing-services-mega-menu > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
        background-image: url(assets/symboles-services/service-renovation-globale-ampleur-2-white.svg);
        background-size: 80% auto;
        background-repeat: no-repeat;
        background-color: var(--ast-global-color-0);
    }
    

    .astra-megamenu.sub-menu > li:first-child .ast-mm-custom-content .listing-services-mega-menu > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container h5 {
        font-weight: 400!important;
    }

    #menu-item-30 .astra-megamenu.sub-menu > li:first-child .ast-mm-custom-content .listing-services-mega-menu > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
        background-size: 80% auto;
        background-position: right 1rem top 5rem;
    }

    .astra-megamenu.sub-menu > li:first-child .ast-mm-custom-content .listing-services-mega-menu > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container.avec-bordure {
        border: 0.5px solid var(--ast-global-color-0);
    }

    .astra-megamenu.sub-menu > li:first-child .ast-mm-custom-content .listing-services-mega-menu > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        border-radius: 1.2rem 1.2rem 0 0;
        height: 40%;
        background: linear-gradient(to bottom, /* Du haut vers le bas */ rgba(49, 48, 212, 1) 0%, /* Bleu foncÃ©/indigo, assez opaque en haut */ rgba(49, 48, 212, 0.7) 50%, /* Transition */ rgba(49, 48, 212, 0) 100% /* ComplÃ¨tement transparent en bas du dÃ©gradÃ© */);
    }



    

    .mega-menu-last-encart .frs-realisation-container {
        flex-direction: column;
        aspect-ratio: 700 / 800;
        width: 80%;
        border-radius:1.5rem;
        background-size: 100% auto;
        background-position: right -1rem bottom 2rem;
        background-repeat: no-repeat;
    }


    .mega-menu-last-encart .frs-realisation-type-isolation {
        background-color: var(--ast-global-color-6);
        background-image: url(assets/symboles-services/service-isolation-blanc.svg);
        background-size: 80% auto;
    }
    .mega-menu-last-encart .frs-realisation-type-ventilation {
        background-color: var(--ast-global-color-7);
        background-image: url(assets/symboles-services/service-ventilation-blanc.svg);
        background-size: 76% auto;
    }
    .mega-menu-last-encart .frs-realisation-type-chauffage {
        background-color: var(--ast-global-color-2);
        background-image: url(assets/symboles-services/service-chauffage-blanc.svg);
        background-size: 60% auto;
    }
    .mega-menu-last-encart .frs-realisation-type-solaire {
        background-color: var(--ast-global-color-4);
        background-image: url(assets/symboles-services/service-photovoltaique-solaire-blanc.svg);
        background-size: 60% auto;
    }
    .mega-menu-last-encart .frs-realisation-type-renovation-globale {
        background-color: var(--ast-global-color-0);
        background-image: url(assets/symboles-services/service-renovation-globale-ampleur-1.svg);
        background-size: 80% auto;
    }

    .mega-menu-last-encart .wp-block-uagb-marketing-button {
        margin-top: 1rem;
    }

    .mega-menu-last-encart .frs-realisation-container p {
        text-align: center;
        font-size: 1.2rem;
        padding-top: 1rem;
        font-weight: 700;
    }


    .mega-menu-last-encart > .uagb-container-inner-blocks-wrap {
        row-gap: 0!important;
    }
    

    .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu > li .ast-mm-custom-content,
    .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu > li .ast-mm-custom-content > .wp-block-uagb-container,
    .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu > li .ast-mm-custom-content > .wp-block-uagb-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
        padding-top:0;
        margin-top: 0;
        padding-left: 0px;
        padding-right: 0px;
    }

    .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu > li .ast-mm-custom-content .wp-block-uagb-container.mega-menu-droite .uagb-container-inner-blocks-wrap .uagb-container-inner-blocks-wrap {
        flex-basis: 294px; /* permet de ne pas faire passer les titres sur une 2eme ligne et décaller l'affichage */
        margin-left:0!important;          
        margin-right:0!important;        
        padding:0!important;
    }

    .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu.sub-menu > .ast-mm-custom-content .wp-block-uagb-container.mega-menu-droite > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
        justify-content: flex-end!important;
    }

    .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li .astra-megamenu > li .ast-mm-custom-content > .wp-block-uagb-container > .uagb-container-inner-blocks-wrap {
        align-items: flex-start;
    }

    

    .main-header-menu .sub-menu .menu-link {
        padding: .5rem 1rem;
    }

    .main-header-menu .sub-menu .menu-item:hover > .menu-link .menu-text,
    .main-header-menu .sub-menu .current-menu-item > .menu-link .menu-text,
    .main-header-menu .sub-menu .menu-item  > .menu-link.highlight .menu-text {
        color: var(--ast-global-color-0);
        font-weight: 600!important;
    }

}

/* HTM header tablet mobile */

@media (max-width: 960px) {
    .ast-mobile-popup-drawer .ast-mobile-popup-header {
        position: absolute;
        min-height: 82px;
        display: block;
        right: 0;
    }

    /*.ast-mobile-popup-header #menu-toggle-close::before {
        content: ''; 
        display: block;
        position: absolute;
        bottom: 27px;
        left: 25px;
        width: 68px;
        height: 68px;
        background-image: url('assets/logo/FRS_LOGO_RVB_white.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center bottom;
        pointer-events: none;
    }*/

    #ast-hf-mobile-menu {
        position:absolute;
        top: 0;
    }

    .ast-mobile-popup-header {
        z-index: 100;
    }

    .ast-mobile-popup-content {
        z-index: 99;
    }

    /* Cibler l'élément de liste <li> qui contient notre lien logo */
    /* On lui retire le padding et la bordure que les autres éléments de menu pourraient avoir */
    .ast-builder-menu-mobile .ast-mobile-popup-content .logo-menu-mobile.menu-item {
        padding: 0 !important;
        margin-bottom: 2rem; /* Espace sous le logo, avant le premier vrai lien */
        border-bottom: none !important;
    }

    /* C'est ici que la magie opère : on cible le lien <a> lui-même */
    .ast-builder-menu-mobile .main-navigation .menu-item.logo-menu-mobile > a.menu-link,
    .ast-builder-menu-mobile .main-navigation .menu-item.logo-menu-mobile:hover > a.menu-link {
        /* 1. On le transforme en bloc pour lui donner des dimensions */
        display: block;
        width: 68px;  /* Largeur de votre logo */
        height: 68px; /* Hauteur de votre logo */

        /* 2. On masque le texte du lien ("Accueil" ou "Logo") */
        text-indent: -9999px; /* Pousse le texte hors de l'écran */
        font-size: 0;         /* Cache le texte */
        overflow: hidden;

        margin-left: 1.6rem;
        margin-top: 0.3rem;

        /* 3. On applique votre SVG comme image de fond */
        /* Assurez-vous que le chemin est correct depuis la racine du site */
        background-image: url('assets/logo/FRS_LOGO_RVB_white.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;

        /* 4. On retire les styles de lien par défaut d'Astra */
        padding: 0 !important;
        line-height: 0; /* Important pour que la hauteur soit respectée */
    }


    .ast-builder-layout-element .ast-site-identity {
        margin-left: 1em;
    }

    [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
        fill: var(--ast-global-color-5)!important;
    }

    .ast-mobile-popup-inner, .ast-mobile-popup-content {
        background-color: var(--ast-global-color-0)!important;

    }

    .ast-builder-menu-mobile .main-navigation .main-header-menu,
    .ast-hfb-header .ast-mobile-popup-content .ast-builder-menu-mobile .main-navigation .menu-item .menu-link {
        background-color: var(--ast-global-color-0)!important;
    }

    .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link {
        text-transform: uppercase;
        font-size: 1.3rem;
    }
    .ast-builder-menu-mobile .main-navigation .main-header-menu .sub-menu .menu-item > .menu-link {
        font-size: 1.1rem;
    }

    .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .ast-menu-toggle {
        overflow: hidden;
        font-size: 1.5rem;
        height: 50px;
        color: var(--ast-global-color-5)!important;
        background-color: var(--ast-global-color-0)!important;
    }

    .ast-header-break-point .ast-icon.icon-arrow svg {
        margin: 0;
    }
    
    .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link,
    /*.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .ast-menu-toggle,*/
    .ahfb-svg-iconset svg{
        color: var(--ast-global-color-5)!important;
    }

    .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item:hover > .menu-link,
    .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link
    {
        color: var(--ast-global-color-5);
        /*text-decoration: underline;*/
    }

    #ast-mobile-popup-wrapper .ast-mobile-popup-drawer .ast-mobile-popup-inner {
        width: 100%;
    }
    .ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
        max-width: 100%;
    }

    .ahfb-svg-iconset svg{
        width: 50px!important;
        height: 50px!important;
        fill: #FFFFFF!important;
    }
    #ast-hf-mobile-menu > .menu-item > a > .menu-text {
        position: relative;
    }

    #ast-hf-mobile-menu > .menu-item > a > .menu-text::after {
        content: "";
        position: absolute;
        left: 0px;
        right: 0px;
        bottom: -8px;
        height: 8px;
        border-radius: 0.5rem;
        background-color: var(--ast-global-color-1);
    }
    #ast-hf-mobile-menu > .menu-item:nth-child(2) > a > .menu-text::after
    {
        background-color: var(--ast-global-color-6);
    }
    #ast-hf-mobile-menu > .menu-item:nth-child(2) > a > .menu-text::after { /* isolation */
        background-color: var(--ast-global-color-6);
    }
    #ast-hf-mobile-menu > .menu-item:nth-child(3) > a > .menu-text::after { /* ventilation */
        background-color: var(--ast-global-color-7);
    }
    #ast-hf-mobile-menu > .menu-item:nth-child(4) > a > .menu-text::after { /* chauffage */
        background-color: var(--ast-global-color-2);
    }
    /* 2. Créer la ligne dégradée avec ::after */
    #ast-hf-mobile-menu > .menu-item:nth-child(5) > a > .menu-text::after {
        background: linear-gradient(
            to right,
            var(--ast-global-color-6) 0%,    /* Couleur 1 commence */
            var(--ast-global-color-6) 30%,   /* Couleur 1 reste solide jusqu'à 20% */
            var(--ast-global-color-7) 45%,   /* Transition vers Couleur 2, pic à 45% */
            var(--ast-global-color-7) 55%,   /* Couleur 2 reste solide jusqu'à 55% */
            var(--ast-global-color-2) 70%,   /* Transition vers Couleur 3, pic à 80% */
            var(--ast-global-color-2) 100%  /* Couleur 3 jusqu'à la fin */
        );
    }
    #ast-hf-mobile-menu > .menu-item:nth-child(5) > a > .menu-text::after { /* renovation globale */
        background-color: var(--ast-global-color-8);
    }
    #ast-hf-mobile-menu > .menu-item:nth-child(6) > a > .menu-text::after { /* solaire */
        background-color: var(--ast-global-color-4);
    }

    /* ajout des pictos services */
    #ast-hf-mobile-menu > .menu-item:nth-child(2) > a::after,
    #ast-hf-mobile-menu > .menu-item:nth-child(3) > a::after,
    #ast-hf-mobile-menu > .menu-item:nth-child(4) > a::after,
    #ast-hf-mobile-menu > .menu-item:nth-child(6) > a::after {
        content: ""; /* Nécessaire pour que ::after s'affiche */
        display: inline-block;
        width: 33px;
        height: 33px;
        margin-left: 6px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        vertical-align: middle;
        position: relative;
        top: 3px;
    }

    #ast-hf-mobile-menu > .menu-item:nth-child(2) > a::after { /* isolation */
        background-image: url('assets/symboles-services/symbole-isolation.svg'); 
    }
    #ast-hf-mobile-menu > .menu-item:nth-child(3) > a::after { /* ventilation */
        background-image: url('assets/symboles-services/symbole-ventilation.svg'); 
    }
    #ast-hf-mobile-menu > .menu-item:nth-child(4) > a::after { /* chauffage */
        background-image: url('assets/symboles-services/symbole-chauffage.svg'); 
    }
    #ast-hf-mobile-menu > .menu-item:nth-child(6) > a::after { /* solaire */
        background-image: url('assets/symboles-services/symbole-solaire.svg'); 
    }

    .ast-builder-menu-mobile .main-navigation .main-header-menu, .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link, .ast-builder-menu-mobile .main-navigation .main-header-menu .sub-menu {
        background-color: var(--ast-global-color-0);
    }

    .ast-header-social-1-wrap.ast-header-social-wrap svg {
        width: 50px;
        height: 50px;
        fill: #FFFFFF;
    }
/*
    .ast-builder-menu-mobile {
        position:relative;
    }
    [data-section="section-hb-social-icons-1"] {
        position: fixed!important;
        bottom: 0;
    }*/

    /*#ast-hf-mobile-menu > .menu-item, #ast-hf-menu-1 > .menu-item:nth-child(1), #ast-hf-mobile-menu > .menu-item:nth-child(2), #ast-hf-mobile-menu > .menu-item:nth-child(3), #ast-hf-mobile-menu > .menu-item:nth-child(5) {
        padding: 0 2rem 0 0;
    }*/

}
/* G global */

/* GCS global container spacing */

/*body {
    overflow: hidden;
}*/

/*.page .site-main .entry-content {
    padding: 0 2rem;
}*/

.page.home .site-main .entry-content {
    padding: 0 2rem;
}

.single-travaux #page .site-content #primary, 
.archive #page .site-content #primary {
    max-width: var(--wp--custom--ast-wide-width-size);
    margin-left: auto;
    margin-right: auto;
}

.ast-single-entry-banner[data-post-type="page"] {
    padding-top:1.5rem 0 1.5rem !important;
}

/* IMPORTANT : Remplacez '.votre-bloc-astra-container' ci-dessous par le vrai sélecteur CSS
de vos blocs Container Astra. Voir instructions plus bas pour le trouver. */
body.home .entry-content .wp-block-uagb-container.uagb-is-root-container,
body.archive.category .entry-content .wp-block-uagb-container.uagb-is-root-container,
body.page .entry-content .wp-block-uagb-container.uagb-is-root-container {
    /* Espacement par défaut (Mobile & Tablette) */
    margin-top: 6rem !important;
    /*margin-bottom: 2rem !important;*/

    box-sizing: border-box; /* Assure que padding est inclus dans la hauteur/largeur */
    /* overflow: hidden; */ /* Décommentez si vous avez des problèmes de marges internes qui "dépassent" */
}
@media (min-width: 961px) {
    body.home .entry-content .wp-block-uagb-container.uagb-is-root-container,
    body.archive.category .entry-content .wp-block-uagb-container.uagb-is-root-container,
    body.page .entry-content .wp-block-uagb-container.uagb-is-root-container {
        margin-top: 10rem !important;
    }
}

figure.wp-block-image.size-full {
    text-align: center;
}

/* Annuler la marge HAUT du premier élément enfant DIRECT dans le container */
/* !important peut être nécessaire pour surcharger des styles forts du thème/plugin */
.entry-content .wp-block-uagb-container > *:first-child, 
.entry-content .wp-block-uagb-container > *:first-child > h1:first-child,
.entry-content .wp-block-uagb-container > *:first-child > h2,
.entry-content .wp-block-uagb-container > *:first-child > h3:first-child,
.entry-content .wp-block-uagb-container > *:first-child > h4:first-child,
.entry-content .wp-block-uagb-container > *:first-child > h5:first-child,
.entry-content .wp-block-uagb-container > *:first-child > h6:first-child,
.entry-content .wp-block-uagb-container > *:first-child > p:first-child,
.entry-content .wp-block-uagb-container > *:first-child > ul:first-child,
.entry-content .wp-block-uagb-container > *:first-child > ol:first-child,
.entry-content .wp-block-uagb-container > *:first-child > figure:first-child, /* Blocs Image, etc. */
.entry-content .wp-block-uagb-container > *:first-child > div:first-child, /* Autres wrappers potentiels */
.entry-content .wp-block-uagb-container > *:first-child > blockquote
{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Annuler la marge BAS du dernier élément enfant DIRECT dans le container */
.entry-content .wp-block-uagb-container > *:last-child {
    margin-bottom: 0 !important;
}

.wp-block-uagb-tabs-child .wp-block-uagb-container {
    padding:0;
}

.wp-block-uagb-tabs ul.uagb-tabs__panel {
    align-self: flex-start;
}

/* ESSENTIEL : Empêcher le premier container de la page d'avoir un padding/marge en haut */
/* Adaptez '.entry-content' si ce n'est pas le conteneur principal de votre contenu */
/* Utiliser :first-of-type est souvent plus robuste que :first-child */
.entry-content > .wp-block-uagb-container:first-of-type {
     padding-top: 0 !important; /* Enlève le padding ajouté par notre règle générale */
     /* Si le thème ajoute quand même une marge au premier bloc, ajoutez aussi : */
     /* margin-top: 0 !important; */
}

/* Optionnel : Si vous voulez un petit espace même pour le premier bloc */
/* .entry-content > .votre-bloc-astra-container:first-of-type {
     padding-top: 1.5rem !important; /* Valeur spécifique pour le tout premier bloc */
/* } */

body.home .site-content .wp-block-uagb-container.uagb-is-root-container:first-child,
body.archive.category .site-content .wp-block-uagb-container.uagb-is-root-container:first-child,
body.archive.category .site-content,
body.page .site-content .wp-block-uagb-container.uagb-is-root-container:first-child
 {
    margin-top: 4rem !important;
}

@media (max-width: 1200px) {
    .ast-separate-container .entry-content > .alignfull, .ast-separate-container .entry-content[data-ast-blocks-layout] > .alignwide, .ast-plain-container .entry-content[data-ast-blocks-layout] > .alignwide, .ast-plain-container .entry-content .alignfull {
        margin-left: 0;
        margin-right: 0;
    }
}



/* GT global typography */

@font-face {
    font-family: 'Surgena';
    src: url('fonts/Surgena-Regular.eot');
    src: url('fonts/Surgena-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/Surgena-Regular.woff2') format('woff2'),
        url('fonts/Surgena-Regular.woff') format('woff'),
        url('fonts/Surgena-Regular.ttf') format('truetype'),
        url('fonts/Surgena-Regular.svg#Surgena-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Surgena';
    src: url('fonts/Surgena-Medium.eot');
    src: url('fonts/Surgena-Medium.eot?#iefix') format('embedded-opentype'),
        url('fonts/Surgena-Medium.woff2') format('woff2'),
        url('fonts/Surgena-Medium.woff') format('woff'),
        url('fonts/Surgena-Medium.ttf') format('truetype'),
        url('fonts/Surgena-Medium.svg#Surgena-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Surgena';
    src: url('fonts/Surgena-SemiBold.eot');
    src: url('fonts/Surgena-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('fonts/Surgena-SemiBold.woff2') format('woff2'),
        url('fonts/Surgena-SemiBold.woff') format('woff'),
        url('fonts/Surgena-SemiBold.ttf') format('truetype'),
        url('fonts/Surgena-SemiBold.svg#Surgena-SemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Surgena';
    src: url('fonts/Surgena-Bold.eot');
    src: url('fonts/Surgena-Bold.eot?#iefix') format('embedded-opentype'),
        url('fonts/Surgena-Bold.woff2') format('woff2'),
        url('fonts/Surgena-Bold.woff') format('woff'),
        url('fonts/Surgena-Bold.ttf') format('truetype'),
        url('fonts/Surgena-Bold.svg#Surgena-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/*@font-face {
    font-family: 'Helvetica';
    src: url('fonts/Helvetica.eot');
    src: url('fonts/Helvetica.eot?#iefix') format('embedded-opentype'),
        url('fonts/Helvetica.woff2') format('woff2'),
        url('fonts/Helvetica.woff') format('woff'),
        url('fonts/Helvetica.ttf') format('truetype'),
        url('fonts/Helvetica.svg#Helvetica') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}*/

/*@font-face {
    font-family: 'Futura LT';
    src: url('fonts/FuturaLT-Book.eot');
    src: url('fonts/FuturaLT-Book.eot?#iefix') format('embedded-opentype'),
        url('fonts/FuturaLT-Book.woff2') format('woff2'),
        url('fonts/FuturaLT-Book.woff') format('woff'),
        url('fonts/FuturaLT-Book.ttf') format('truetype'),
        url('fonts/FuturaLT-Book.svg#FuturaLT-Book') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}*/

/*@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Black.eot');
    src: url('fonts/Poppins-Black.eot?#iefix') format('embedded-opentype'),
        url('fonts/Poppins-Black.woff2') format('woff2'),
        url('fonts/Poppins-Black.woff') format('woff'),
        url('fonts/Poppins-Black.ttf') format('truetype'),
        url('fonts/Poppins-Black.svg#Poppins-Black') format('svg');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}*/

/*@font-face {
    font-family: 'Minion Pro';
    src: url('fonts/MinionPro-Regular.eot');
    src: url('fonts/MinionPro-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/MinionPro-Regular.woff2') format('woff2'),
        url('fonts/MinionPro-Regular.woff') format('woff'),
        url('fonts/MinionPro-Regular.ttf') format('truetype'),
        url('fonts/MinionPro-Regular.svg#MinionPro-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}*/

/*@font-face {
    font-family: 'Helony';
    src: url('fonts/HelonyRegular.eot');
    src: url('fonts/HelonyRegular.eot?#iefix') format('embedded-opentype'),
        url('fonts/HelonyRegular.woff2') format('woff2'),
        url('fonts/HelonyRegular.woff') format('woff'),
        url('fonts/HelonyRegular.ttf') format('truetype'),
        url('fonts/HelonyRegular.svg#HelonyRegular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}*/

/*@font-face {
    font-family: 'futura_ltbook';
    src: url('fonts/futuralt-book-webfont.woff2') format('woff2'),
         url('fonts/futuralt-book-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}*/

body {
    font-family: "DM Sans", sans-serif!important;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.3rem;
}

h1, h2, h3, h4, h5, h6,
.blog .entry-title, .blog .entry-title a, .archive .entry-title, .archive .entry-title a, .search .entry-title, .search .entry-title a {
    font-family: 'Surgena', sans-serif!important;
    text-transform: uppercase;
    font-weight: 700!important;
}

h3, h4, h5, h6 {
    text-transform: none;
    font-family: "DM Sans", sans-serif!important;
}

h1,
.ast-single-entry-banner[data-post-type="page"] .entry-title {
    font-size: 2.8rem!important;
}
h2 { font-size: 2.5rem!important;}
h3, 
.blog .entry-title, .blog .entry-title a, .archive .entry-title, .archive .entry-title a, .search .entry-title, .search .entry-title a {
     font-size: 1.9rem!important;
}
h4 { font-size: 1.6rem!important;}
h5 { font-size: 1.4rem!important;}
h6 { font-size: 1.2rem!important;}

.home h2, .home .entry-content h2 {
    margin-top: 2rem;
}

:not(.home) h2, :not(.home) .entry-content h2 {
    margin-top: 2rem;
}

/*body:not(.single-travaux) .entry-content h2:first-child {
    margin-top:-1.5rem!important;  suppression de la marge ajoutée par le h1 s'il y a un h2 juste après 
}*/

/*h2, .entry-content h2 { */
    /* https://svgbox.net/p/docs */
    /*display: inline-block;
    background: url(//s2.svgbox.net/pen-brushes.svg?ic=brush-9&color=265c78);
    color: var(--ast-global-color-5);
    width: auto;
    padding: 0.1rem 1rem 0.3rem 1rem;
}*/

.wp-block-uagb-advanced-heading .uagb-desc-text {
    margin-bottom: 0px!important;
    color: var(--ast-global-color-1);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
}

.green-color,
h2.green-color,
h3.green-color,
h4.green-color {
    color: var(--ast-global-color-1)!important
}

.home h2, .home .entry-content h2 { 
    color: var(--ast-global-color-0);
    text-transform: uppercase;
}

blockquote {
    position: relative;
    background: var(--ast-global-color-5);
    color: var(--ast-global-color-0);
    font-size: 1.2rem;
    padding: 0px 40px;
    border-left: none!important;
    width:auto!important;
    text-align: right;
}
blockquote p {
    margin: 0;
}

@media (max-width: 767px) {
    .uagb-heading-text {
        text-align: center;
    }

    blockquote.wp-block-quote {
        display:none;
        width:100%;
        flex-basis: 100%;
        text-align: center;
        padding: 0;
        margin : 0;
    }
}
/*blockquote:before {
    position: absolute;
    font-family: Arial, Helvetica, sans-serif;
    top: 12px;
    left: -5px;
    content: "\00201F";
    font-size: 3rem;
    color: var(--ast-global-color-0);
}
blockquote:after {
    position: absolute;
    font-family: Arial, Helvetica, sans-serif;
    top: 12px;
    right: 0px;
    content: "\00201D";
    font-size: 3rem;
    color: var(--ast-global-color-0);
}*/

#blockquote-home-punchline {
    font-weight: bold;
    font-style: normal;
    padding-right: 0;
    margin-right: 0;
}

.uagb-tab {
    border: 0!important;
}

.uagb-tab .uagb-tabs-list  {
    font-family: 'Surgena', sans-serif!important;
    text-transform: uppercase;
    width: 100%;
}

.no-margin { margin: 0px!important; }
.no-padding { padding: 0px!important; }
.no-margin-top { margin-top: 0px!important; }
.no-margin-top-all-childs * { margin-top: 0px!important; }
.no-margin-left { margin-left: 0px!important; }
.no-margin-right { margin-right: 0px!important; }
.no-margin-bottom { margin-bottom: 0px!important; }
.no-padding-top { padding-top: 0px!important; }
.no-padding-left { padding-left: 0px!important; }
.no-padding-right { padding-right: 0px!important; }
.no-padding-bottom { padding-bottom: 0px!important; }

.margin-top-mobile {
    margin-top:1.5rem!important;
}

.wp-block-uagb-container.largeur-limitee {
    max-width:900px!important;
}

@media (max-width: 767px) {
    .wp-block-uagb-marketing-button.uagb-marketing-btn__align-right, .wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__title-wrap, .wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__link {
        justify-content: center!important;
        text-align: right;
    }
}

/* le reste 2/3 */
.wp-block-uagb-container.gauche-un-tiers .uagb-container-inner-blocks-wrap > *:first-child {
    flex:1 33%;
}

.wp-block-uagb-container.gauche-un-tiers .wp-block-uagb-image:first-child {
    flex: 0 0 33%;
}

.wp-block-uagb-container.petite-image-gauche .wp-block-uagb-image:first-child {
    flex: 0 0 150px;
}

@media (max-width: 767px) {
    .wp-block-uagb-container.gauche-un-tiers .uagb-container-inner-blocks-wrap > *:first-child {
        flex:1 100%;
    }
    
    .wp-block-uagb-container.gauche-un-tiers .wp-block-uagb-image:first-child {
        flex: 0 0 100%;
    }

    .wp-block-uagb-marketing-button.uagb-marketing-btn__align-right, .wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__title-wrap, .wp-block-uagb-marketing-button.uagb-marketing-btn__align-text-right .uagb-marketing-btn__link {
        justify-content: center !important;
        text-align: right;
    }
}


/* GB global buttons */

/*.uagb-marketing-btn__link.wp-block-button__link {
    transition: all 0.3s ease-in-out;
}
  
.uagb-marketing-btn__link.wp-block-button__link:hover {
    transform: scale(1.05);
}*/

/* https://www.30secondsofcode.org/css/s/button-hover-transitions/#:~:text=Button%20grow%20animation&text=Use%20the%20%3Ahover%20pseudo%2Dclass,the%20user%20hovers%20over%20it.&text=You%20can%20also%20use%20the,)%20with%20scale%3A%20110%25%20.*/


.wp-block-uagb-marketing-button  {
    height: auto!important;
    width: auto;
    align-items: flex-start;
    font-family: "Surgena", sans-serif;
}

.wp-block-uagb-marketing-button .uagb-marketing-btn__title {
    font-weight: 600;
    font-size: 0.9rem;
}

.wp-block-uagb-tabs {
    justify-content: space-between;
}


.wp-block-uagb-marketing-button .uagb-marketing-btn__link.wp-block-button__link,
.uagb-tabs-list {
    /*transition: all 0.3s ease-in-out;*/
    width: auto;
    /*align-items: flex-start;*/
    color: var(--ast-global-color-5)!important;
    background-color: var(--ast-global-color-1)!important;
    border: 3px solid var(--ast-global-color-1)!important;
    text-transform: uppercase;
    border-radius: .8rem;
}

/*
#nos-services #uagb-tabs__tab0 .uagb-tabs-list {
    border: 3px solid var(--ast-global-color-2)!important;
    color: var(--ast-global-color-0)!important;
    background-color: var(--ast-global-color-5)!important;
}*/

/*

#nos-services #uagb-tabs__tab0.uagb-tabs__active .uagb-tabs-list {
    border: 3px solid var(--ast-global-color-2)!important;
    background-color: var(--ast-global-color-5)!important;
    font-weight: bold;
}*/


.wp-block-uagb-marketing-button.bleu .uagb-marketing-btn__link.wp-block-button__link {
    background-color: var(--ast-global-color-0)!important;
    border: 3px solid var(--ast-global-color-0)!important;
    text-transform: uppercase;
}

.wp-block-uagb-marketing-button.active .uagb-marketing-btn__link,
.wp-block-uagb-marketing-button .uagb-marketing-btn__link.wp-block-button__link:hover,
.uagb-tabs-list:hover, .uagb-tabs__active .uagb-tabs-list {
    background-color: var(--ast-global-color-5)!important;
    color: var(--ast-global-color-0)!important;
}

/*.uagb-is-root-container.alignwide,*/
#frs-simulation-app-container {
    padding: 0 2rem;
}

@media (max-width: 767px) {
    .wp-block-uagb-tabs-child {
        margin-top:1rem;
    }
    .wp-block-uagb-tabs-child .wp-block-uagb-container,
    #agrements .wp-block-uagb-container,
    .uagb-is-root-container.alignwide .wp-block-uagb-container {
        padding:0rem;
    }

    #secteurs .main-container {
        padding-bottom: 1.5rem!important;
    }

    /*#secteurs {
        padding: 0;
    }*/
    
}

.wp-block-uagb-marketing-button.bleu .uagb-marketing-btn__link.wp-block-button__link:hover {
    background-color: var(--ast-global-color-5)!important;
    color: var(--ast-global-color-1)!important;
}

/*.uagb-marketing-btn__link.wp-block-button__link:hover {
    border-top-width: 2px!important;
    border-left-width: 3px!important;
    border-right-width: 2px!important;
    border-bottom-width: 3px!important;
    border-color: var(--ast-global-color-1)!important;
}*/
 
/* bounce effect left to right */

/*.uagb-marketing-btn__link.wp-block-button__link:hover {
    animation: swing 1s ease;
    animation-iteration-count: 1;
}

@keyframes swing {
    15% {
      transform: translateX(5px);
    }
    30% {
      transform: translateX(-5px);
    }
    50% {
      transform: translateX(3px);
    }
    65% {
      transform: translateX(-3px);
    }
    80% {
      transform: translateX(2px);
    }
    100% {
      transform: translateX(0);
    }
}*/

/* GO : global other */

/* Utilitaire — Pleine largeur (annule la contrainte Astra sur .entry-content[data-ast-blocks-layout] > *) */
.frs-full-width {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

ul.wp-block-list li {
    padding-left: 10px;
}

ul.wp-block-list li::before {
    position: relative;
    top: 5px;
    left: -5px;
    content: "\002022";
    font-size:2rem;
    color: var(--ast-global-color-1)!important;
}

#content ul.wp-block-list {
    list-style: none;  
}

.ast-scroll-to-top-right {
    right: 25px;
    bottom: 20px;
}

/*#content ul.wp-block-list li::before {
    content: "•";
    padding-right: 7px;
    color: var(--ast-global-color-1);
}*/

.tres-important-content,
mark.has-ast-global-color-1-color {
    /* Version surlignage en dessous 
    text-decoration: none;
    box-shadow: inset 0 -2px 0 var(--ast-global-color-0), 0 2px 0 var(--ast-global-color-0);*/ /*#ff0*/
    /*transition: box-shadow .3s;
    color: inherit;
    overflow: hidden;
    color:inherit!important;*/

    /* Version marqueur */
    background-color:var(--ast-global-color-5)!important;
    background-color:#ff0!important;
    background-color:var(--ast-global-color-0)!important;
    margin: 0 -0.4rem;
    padding: 0.1rem 0.4rem;
    border-radius: 1rem 0 1rem 0;
    color:var(--ast-global-color-8)!important;

    /*background: transparent;
    color: var(--ast-global-color-7)!important;
    background-image: linear-gradient(to right, rgb(168 36 47 / 7%), rgb(171 35 45 / 63%) 4%, rgb(169 35 49 / 8%));
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;*/
}

mark {
    /*text-decoration: none;
    box-shadow: inset 0 -2px 0 #ff0, 0 2px 0 #ff0;
    transition: box-shadow .3s;
    color: inherit;
    overflow: hidden;
    color:inherit;*/

    /* Version marqueur : */
    background-color:none;
    background: var(--ast-global-color-0);
    margin: 0 -0.4rem;
    padding: 0.1rem 0.4rem;
    border-radius: 1rem 0 1rem 0;
    color:var(--ast-global-color-8);
    
    /*background-color:rgba(0, 0, 0, 0);
    background: transparent;
    color: var(--ast-global-color-7)!important;
    background-image: linear-gradient(to right, rgb(168 36 47 / 7%), rgb(171 35 45 / 63%) 4%, rgb(169 35 49 / 8%));
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;*/
}

/* GSC : global special container */

/*call-action call-action-fond-bleu*/

.call-action {
    padding: 2.5rem!important;
    background-color: var(--ast-global-color-0)!important;
}

.call-action .wp-block-uagb-image:first-child {
    flex: 0 0 150px;
}

.call-action .wp-block-uagb-container {
    padding:0;
}

.call-action.couleur-isolation {
    background-color: var(--ast-global-color-6)!important;
}

.call-action p, .call-action h2, .call-action h3, .call-action h4, .call-action h5 {
    color: var(--ast-global-color-5)!important;
}

.background-blue {
    background-color: var(--ast-global-color-0)!important;
}
.background-green {
    background-color: var(--ast-global-color-1)!important;
}

.text-white, .text-white p,
.text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
    color: var(--ast-global-color-5)!important;
}

.rounded-corner, .rounded-corner > img {
    border-radius: 1.5rem!important;
    overflow: hidden;
}

.info-cle {
    text-align: left;
    padding: 1.5rem!important;
    border-radius : 1.5rem;
    position: sticky;
    top: 111px;
}

.info-cle h3 {
    text-align: center;
    color: var(--ast-global-color-5); 
    background-color: var(--ast-global-color-0);
}

.info-cle ul {
    padding-left: 0px!important;
    padding-top:2rem;
    margin-left:0!important;
}

.info-cle ul.wp-block-list li {
    position:relative;
    padding-bottom:40px;
    font-size: 1.1rem;
    text-align: center;
}

.info-cle ul.wp-block-list li::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 103%;
    top: unset;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    background-image: url(assets/symboles-services/house-green-full.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.info-cle strong {
    color: var(--ast-global-color-1);
}

.encart-image-et-container-horizontal {
    padding: 1rem!important;
    align-items: flex-start;
}

.encart-image-et-container-horizontal .wp-block-uagb-image {
    height: 250px;
    overflow: hidden;
    display: flex; 
    align-items: center;
    justify-content: center;
    line-height: 0; 
}

.encart-image-et-container-horizontal .wp-block-uagb-image__figure {
    width: 100%;
    height: 100%;
    margin: 0; /* Retire les marges par défaut de figure */
    display: flex; /* Permet à l'image de remplir la figure */ 
}

.encart-image-et-container-horizontal .wp-block-heading {
    font-family: "DM Sans", sans-serif!important;
    text-transform: inherit;
}

/* 3. Style de l'image <img> à l'intérieur */
.encart-image-et-container-horizontal img {
    display: block;    /* Comportement de bloc */
    width: 100%;       /* Prend toute la largeur de son conteneur (<figure>) */
    height: 100%;      /* Prend toute la hauteur de son conteneur (<figure>) */
    object-fit: cover;
    object-position: center center;
}

.encart-image-et-container-horizontal > *:nth-child(2) {
    padding:0;
}

.note-importante {
    border-radius: 1.5rem!important;
    padding:1.5rem!important;
    border: 3px solid var(--ast-global-color-1)!important;
    color: var(--ast-global-color-0);
}


.note-importante.rouge {
    border: 3px solid var(--ast-global-color-2)!important;
}
.note-importante.vert {
    border: 3px solid var(--ast-global-color-1)!important;
}
.note-importante.bleu {
    border: 3px solid var(--ast-global-color-0)!important;
}

/* tableau des couleurs de revenus MPR */
/* 1. Conteneur du bloc table : gère les coins arrondis */
/* Cible la figure UNIQUEMENT si elle a la classe .tableau-couleur-mpr */


figure.wp-block-table.tableau-couleur,
figure.wp-block-table.tableau-couleur-mpr {
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 0 0 1.5em;
    border: 1px solid var(--ast-global-color-1); /* Bordure extérieure */
}

/* 2. Styles généraux de la table DANS le conteneur ciblé */
figure.wp-block-table.tableau-couleur table,
figure.wp-block-table.tableau-couleur-mpr table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-style: hidden; /* Pour que la bordure de la figure soit la seule visible */
    margin: 0;
}

/* 3. Styles généraux des cellules DANS le conteneur ciblé */
figure.wp-block-table.tableau-couleur td,
figure.wp-block-table.tableau-couleur-mpr td {
    padding: 0.8em 1.2em;
    /* Bordure très claire entre les cellules, utile pour les fonds colorés */
    border: 1px solid var(--ast-global-color-1);
    vertical-align: middle;
    text-align: left;
}

/* 4. Style des en-têtes (1ère ligne et 1ère colonne) */
figure.wp-block-table.tableau-couleur tbody tr:first-child td,
figure.wp-block-table.tableau-couleur tbody tr td:first-child,
figure.wp-block-table.tableau-couleur-mpr tbody tr:first-child td,
figure.wp-block-table.tableau-couleur-mpr tbody tr td:first-child {
    font-weight: bold;
}

figure.wp-block-table.tableau-couleur tbody tr:first-child td,
figure.wp-block-table.tableau-couleur-mpr tbody tr:first-child td

{

    border-color: var(--ast-global-color-1); /* Bordure plus visible pour les en-têtes */
}

figure.wp-block-table.tableau-couleur tbody tr td:first-child, 
figure.wp-block-table.tableau-couleur-mpr tbody tr td:first-child 
{
    border-color: var(--ast-global-color-1);
}

figure.wp-block-table.tableau-couleur-mpr tbody tr:first-child td:not(:first-child) {
    /* Aligner le contenu en haut de la cellule (alignement vertical) */
    vertical-align: top;

    /* Centrer le texte horizontalement pour tous les éléments enfants */
    text-align: center;
}

/*
  Cible les balises <strong> qui sont des enfants DIRECTS de ces cellules
  et les force à prendre toute la largeur disponible, ce qui les empile.
*/
figure.wp-block-table.tableau-couleur-mpr tbody tr:first-child td:not(:first-child) > strong {
    display: block; /* C'est la clé : chaque <strong> prend sa propre ligne. */
}

figure.wp-block-table.tableau-couleur-mpr tbody tr:first-child td:not(:first-child) strong:first-child {
    margin-bottom: 0.25em;
    color: var(--ast-global-color-5);
    padding: 1rem;
    border-radius: 1rem;
}

/* 5. Styles de couleur par colonne (surchargera les styles par défaut) */
figure.wp-block-table.tableau-couleur-mpr tbody tr:first-child td:nth-child(2) strong:first-child {
    background-color: var(--ast-global-color-0); /* Bleu */
}
figure.wp-block-table.tableau-couleur-mpr tbody tr:first-child td:nth-child(3) strong:first-child {
    background-color: var(--ast-global-color-4); /* Jaune */
}
figure.wp-block-table.tableau-couleur-mpr tbody tr:first-child td:nth-child(4) strong:first-child {
    background-color: #3B2077; /* Violet */
}
figure.wp-block-table.tableau-couleur-mpr tbody tr:first-child td:nth-child(5) strong:first-child {
    background-color: #fd6c9e; /* Rose */
}

/* 6. Centrer le texte pour les colonnes de données */
figure.wp-block-table.tableau-couleur-mpr tbody tr td:not(:first-child) {
    text-align: center;
}

@media (max-width: 782px) { /* Appliquer ces styles sur les écrans de 782px ou moins */

    /* 1. Rendre le conteneur <figure> capable de défiler horizontalement */
    figure.wp-block-table.tableau-couleur-mpr {
        /* Affiche une barre de scroll horizontale UNIQUEMENT si le contenu dépasse */
        overflow-x: auto;
        /* Améliore la fluidité du défilement sur les appareils tactiles (iOS, etc.) */
        -webkit-overflow-scrolling: touch;
    }

    /* 2. Forcer la table à conserver une largeur minimale confortable */
    figure.wp-block-table.tableau-couleur-mpr table {
        min-width: 900px;
    }

    /* 3. Optionnel : Ajuster le padding des cellules pour gagner de la place */
    figure.wp-block-table.tableau-couleur-mpr td {
        padding: 0.7em; /* Un peu moins de padding sur mobile */
    }
}


/* HBH bloc hero */

#bloc-hero p {
    margin-bottom: 0;
}

#bloc-hero-container {
    position:relative;
    margin-top:0!important;
    position: absolute; /* Sort l'élément du flux normal */
    top: 0;             /* Aligne en haut de son conteneur de positionnement */
    left: 0;            /* Aligne à gauche de son conteneur de positionnement */
    width: 100vw;        /* Prend toute la largeur disponible */
    height: 100vh;      /* Prend 100% de la hauteur de la fenêtre (viewport height) */
    min-height: 500px;
    z-index: 1;
}

#bloc-hero-container > .uagb-container-inner-blocks-wrap:first-child, #bloc-hero {
    height: 100%;
}

#bloc-hero-container > .uagb-container-inner-blocks-wrap {
    --inner-content-custom-width: 100vw;
}

/* 2. Style de la section suivante (#nos-services) */
.home #nos-services {
    /* Pousse cette section vers le bas pour laisser la place au bloc héro */
    /* 100vh (hauteur du héro) + 8rem (marge souhaitée) */
    margin-top: max(100vh, 550px) !important;
}

#nos-services {
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Assure qu'il crée son propre contexte d'empilement */
    z-index: 2;         /* S'assure qu'il s'affiche AU-DESSUS du bloc héro si jamais il y a un léger chevauchement */
    /* Ajoutez d'autres styles pour cette section */
}



#bloc-hero {
    padding:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
    border-radius: 0 0 2.5rem 2.5rem;
}

#bloc-hero > .wp-block-uagb-container:nth-child(1){
    margin-top: -2rem;
}

/*#bloc-hero-container .wp-block-uagb-image {
    position: absolute;
    bottom: 6rem;
}*/

@media only screen and (min-width: 1160px) {
    #bloc-hero > .wp-block-uagb-container:first-child {
        row-gap: 2.5rem;
    }
}

#bloc-hero > .wp-block-uagb-container:first-child {
    row-gap: 1.5rem;
}

#paragraphe-hero {
    font-size: 1.4rem;
    line-height: 1.5rem;
}
#bloc-hero > .wp-block-uagb-container:first-child {
    row-gap: 1.5rem;
}


#bloc-hero #bravo {
    font-size: 3rem;
    color: var(--ast-global-color-5);
    font-family: "Surgena", sans-serif;
    font-weight: 700;
    line-height: 2.9rem;
}

#bloc-hero .mots-verts,
.mots-verts {
    color: var(--ast-global-color-1)!important;
}

#bloc-hero-container:not(.in-view) #btn-enter-featured-realisation,
#bloc-hero-container:not(.in-view) #logo-frs-avec-slogan-bloc-hero {
    display: none!important;
}

/* éléments qui suivient le scroll dans le bloc héros */
#btn-enter-featured-realisation,
#logo-frs-avec-slogan-bloc-hero {
    display:none;
    position:fixed;
    z-index: 98;
}

#btn-enter-featured-realisation {
    width: 130px;
    height: 130px;
    left:0;
}

#btn-enter-featured-realisation a {
    position:absolute;
    width: 200px;
    top: 10px;
    left: -70px;
    text-align: center;
    font-size: 0.9rem;;
    transform: rotate(-45deg);
    display:block;
}

@media screen and (min-width: 961px)  {
    #btn-enter-featured-realisation a {
        font-size : 1rem;
    }
    #nos-services .uagb-tabs__wrap ul.uagb-tabs__panel {
        padding-right: 1.5rem;
    }
}



/* HOS home nos services */

/*#nos-services .container-vignettes .wp-block-image {
    width : 100%;
    height: auto;
    max-width: 80px;
    max-height: 80px;
    text-align: center;
}*/

/*#nos-services .container-vignettes .wp-block-uagb-tabs-child:not(#tabs-une) .wp-block-image img {
    max-width: 80px;
    max-height: 80px;
}*/

/*#nos-services .container-vignettes #tabs-une {
    border: 3px solid var(--ast-global-color-2);
    padding : 2em;
    border-radius: 1.5rem;
}*/

/*
#nos-services .container-vignettes #tabs-une h4 {
    text-align: left;
    
}*/


#points-forts .uagb-tabs__wrap .uagb-tabs__body-wrap,
#points-forts .uagb-tabs__body-wrap .uagb-tabs__body-container,
#points-forts .wp-block-uagb-container.tab-main-container,
#nos-services .uagb-tabs__wrap .uagb-tabs__body-wrap, 
#nos-services .uagb-tabs__body-wrap .uagb-tabs__body-container,
#nos-services .wp-block-uagb-container.tab-main-container{
    padding: 0;
    border:0;
}

#points-forts .uagb-tabs__wrap .uagb-tabs__body-wrap {
    padding: 1rem;
}

#nos-services .wp-block-uagb-container.tab-main-container {
    margin-top: 0rem !important;
}

/*
  Cible le conteneur principal de vos vignettes
  (adaptez le sélecteur si nécessaire).
*/
.tabs-services .wp-block-uagb-container.tab-main-container  > .uagb-container-inner-blocks-wrap {
    /* --- 1. COMPORTEMENT PAR DÉFAUT (pour 1 ou 2 éléments) ---
       Correctif du 17-09-2026 (onglets « Rénovation d'ampleur » et « Pro » : vignettes pleine
       largeur). Le `display: flex` d'origine perdait contre le `display: inherit` de Spectra
       (`.wp-block-uagb-container.uagb-layout-grid.alignfull.uagb-is-root-container
       .uagb-container-inner-blocks-wrap`, 0,5,0 contre 0,4,0 ici) : le conteneur passait en
       `block` et chaque vignette prenait toute la largeur. Mesuré au navigateur.
       Grille forcée en `!important`, comme la surcharge 3+ plus bas, et en `auto-fill` : les
       colonnes vides sont CONSERVÉES, donc 1 ou 2 vignettes gardent la largeur de colonne des
       autres onglets, alignées à gauche. */
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
    gap: 1rem; /* Conserve l'espacement */
}

/*
  Style par défaut pour chaque vignette :
  Largeur fixe, sans étirement.
*/
.tabs-services .wp-block-uagb-container.tab-main-container  > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
    flex-grow: 0; /* Empêche de grandir */
    flex-shrink: 0; /* Empêche de rétrécir (optionnel) */
    flex-basis: 192px; /* Taille de base fixe */
    /* Assurez-vous d'avoir les styles visuels de vos vignettes ici (padding, etc.) */
}


/* --- 2. SURCHARGE SI LE CONTENEUR A ASSEZ D'ÉLÉMENTS --- */
/*
  On utilise :has() pour changer le style SI le conteneur a
  un 3ème enfant (et donc 3 enfants ou plus).
  Adaptez le chiffre (3) si vous voulez que ce comportement se déclenche
  à partir de 2 ou 4 éléments.
*/
.tabs-services .wp-block-uagb-container.tab-main-container  > .uagb-container-inner-blocks-wrap:has(> :nth-child(3)) {
    /* On repasse en mode GRILLE pour l'étirement et le remplissage auto */
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(192px, 1fr));
}
/* Note : on ne touche pas au style des enfants, car le grid-template-columns
   s'occupe maintenant de leur largeur. */

.tabs-services .wp-block-uagb-container.tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
    background-position: right -1rem bottom 2rem;
    background-repeat: no-repeat;
}

.tabs-services #tabs-isolation .tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
    background-color: var(--ast-global-color-6);
    background-image: url("assets/symboles-services/service-isolation-blanc.svg");
    background-size: 80% auto;
}

@media (min-width: 1024px) {
    .tabs-services #tabs-isolation .tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
        background-color: var(--ast-global-color-6);
        background-image: url(assets/symboles-services/service-isolation-blanc.svg);
        background-size: 91% 80% auto;
    }

    .tabs-services #tabs-isolation .tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child h5 {
        text-transform: uppercase; 
    }
}

.tabs-services #tabs-ventilation .tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
    background-color: var(--ast-global-color-7);
    background-image: url("assets/symboles-services/service-ventilation-blanc.svg");
    background-size: 76% auto;
}
.tabs-services #tabs-chauffage .tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
    background-color: var(--ast-global-color-2);
    background-image: url("assets/symboles-services/service-chauffage-blanc.svg");
    background-size: 60% auto;
}
.tabs-services #tabs-renovation-globale .tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
    background-color: var(--ast-global-color-0);
    background-image: url("assets/symboles-services/service-renovation-globale-ampleur-1.svg");
    background-size: 80% auto;
}
.tabs-services #tabs-ventilation .tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:not(:first-child) {
    background-size: 80% auto;
    background-position: right 1rem top 5rem;
}
.tabs-services #tabs-solaire .tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
    background-color: var(--ast-global-color-4);
    background-image: url("assets/symboles-services/service-photovoltaique-solaire-blanc.svg");
    background-size: 60% auto;
}
.tabs-services #tabs-pro .tab-main-container > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container:first-child {
    background-color: var(--ast-global-color-0);
    background-image: url("assets/symboles-services/maison-frs-fleche-verte-blanc.svg");
    background-size: 75% auto;
}


.tabs-services .tab-main-container .wp-block-uagb-container {
    /*border : 0px solid var(--ast-global-color-8);*/
    position: relative;
    padding: 1rem;
    border-radius: 1.5rem;
    background-size: cover;
    background-position: center center;
    
}

.tabs-services .tab-main-container .wp-block-uagb-container.avec-bordure {
    border: 0.5px solid var(--ast-global-color-0);
}

.tabs-services .tab-main-container .wp-block-uagb-container:not(:first-of-type)::before {
    content: ""; /* Nécessaire pour que le pseudo-élément s'affiche */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 1.5rem 1.5rem 0 0;height: 40%; /* Par exemple, pour couvrir les 40% supérieurs. Ajustez au besoin. */
    background: linear-gradient(
      to bottom, /* Du haut vers le bas */
      rgba(49, 48, 212, 1) 0%, /* Bleu foncé/indigo, assez opaque en haut */
      rgba(49, 48, 212, 0.7) 50%, /* Transition */
      rgba(49, 48, 212, 0) 100%  /* Complètement transparent en bas du dégradé */
    );
}

.tabs-services .tab-main-container > .wp-block-uagb-container:not(:first-of-type) p {
    font-weight: 700;
}

.tabs-services .uagb-tabs__body-wrap .wp-block-uagb-tabs-child > *:first-child {
    display: block; /* Empêche les espaces indésirables sous les images */
    width: 100%;   /* Fait prendre toute la largeur de la vignette à l'image */
    height: auto;  /* Garde les proportions de l'image */
    /* object-fit: cover; */ /* Si vous voulez que l'image couvre la zone, potentiellement rognée */
}

#nos-services .container-vignettes .wp-block-uagb-container:last-child .wp-block-image img {
    filter: invert(0%) sepia(0%) saturate(100%) hue-rotate(257deg) brightness(0%) contrast(104%);
    padding: 0.5rem 0;
}

#nos-services .container-vignettes .wp-block-group {
    display: flex;
    align-items: center;
    min-height: 70px;
    border-top : 1px solid var(--ast-global-color-8);
    /*background-color: var(--ast-global-color-8);*/
}

#nos-services .container-vignettes .wp-block-uagb-container .wp-block-group {
    border-bottom : 6px solid var(--ast-global-color-8); /* isolation */
}


#nos-services .container-vignettes .wp-block-uagb-container:nth-child(1) .wp-block-group {
    border-bottom : 6px solid var(--ast-global-color-0);
}
#nos-services .container-vignettes .wp-block-uagb-container:nth-child(2) .wp-block-group {
    border-bottom : 6px solid var(--ast-global-color-7);
}
#nos-services .container-vignettes .wp-block-uagb-container:nth-child(3) .wp-block-group {
    border-bottom : 6px solid var(--ast-global-color-1); 
}
#nos-services .container-vignettes .wp-block-uagb-container:nth-child(4) .wp-block-group {
    border-bottom : 6px solid var(--ast-global-color-8);
}
#nos-services .container-vignettes .wp-block-uagb-container:nth-child(5) .wp-block-group {
    border-bottom : 6px solid var(--ast-global-color-4);
}
/*#nos-services .container-vignettes .wp-block-uagb-container:nth-child(5) .wp-block-group {
    border-bottom : 6px solid var(--ast-global-color-8); 
}
#nos-services .container-vignettes .wp-block-uagb-container:nth-child(6) .wp-block-group {
    border-bottom : 6px solid var(--ast-global-color-8); 
}
#nos-services .container-vignettes .wp-block-uagb-container:nth-child(7) .wp-block-group {
    border-bottom : 6px solid var(--ast-global-color-8); 
}*/


#nos-services .container-vignettes h4 {
    text-align: center;
    font-size: 1.3rem;
    /*min-height: 50px;*/
    margin-bottom: 0px;
}

@media (max-width: 767px) {
    #nos-services h2.uagb-heading-text {
        color : var(--ast-global-color-0)!important;
    }

    .ast-single-entry-banner[data-post-type="page"] {
        padding: 0 2rem;
    }

    .wp-block-uagb-image {
        margin-right: 0em;
    }

}


#qualite .uagb-container-inner-blocks-wrap > .wp-block-uagb-container > .wp-block-uagb-container:nth-child(1) {
    flex: 0 0 80%;
}

#isolants .encart-image-et-container-horizontal .wp-block-uagb-image  {
    height: 180px;
}

#isolants .encart-image-et-container-horizontal .wp-block-heading {
    font-family: "DM Sans", sans-serif!important;
    text-transform: inherit;
}

#isolants ul li {
    padding-bottom: .5rem;
}

#isolants ul {
    margin-top: 0;
    padding-left: 0;
}

#isolants ul li {
    padding-bottom: .5rem;
}

#isolants ul {
    margin-top: 0;
    padding-left: 0;
}






/* HO5 {
Prestations 5 étoiles */

#cinq-etoiles {
    position: relative;
    padding: 1rem 0;
}

#cinq-etoiles .ti-widget.ti-goog .ti-review-header .ti-profile-img {
    margin: 0 !important;
    margin-top: 0px !important;
    margin-bottom: 8px !important;
    align-self: flex-start;
}

#cinq-etoiles .ti-widget.ti-goog .ti-review-item>.ti-inner {
    padding: 0px !important;
}

#cinq-etoiles .ti-widget.ti-goog .ti-controls .ti-next,
#cinq-etoiles .ti-widget.ti-goog .ti-controls .ti-prev {
    border-radius: 0!important;
}

#cinq-etoiles .ti-widget.ti-goog .ti-controls .ti-next {
    right: 0px;
}
#cinq-etoiles .ti-widget.ti-goog .ti-controls .ti-prev {
    left:unset !important;
    right: 55px;
}

.ti-widget.ti-goog .ti-controls .ti-next:hover, .ti-widget.ti-goog .ti-controls .ti-prev:hover {
    cursor: pointer;
    -webkit-transform: none!important;
    -ms-transform: none!important;
    transform: none!important;
}

.ti-widget.ti-goog .ti-controls .ti-next:before, .ti-widget.ti-goog .ti-controls .ti-prev:before {
    width: 47px !important;
    height: 50px !important;
    background:transparent!important;
    -webkit-transform: none!important; transform: none!important;
    background-size: contain!important;
    background-repeat: no-repeat!important;
    transform-origin: center!important;
    border-radius: 0!important;
    top: -7px !important;
    left: -8px!important;
    right: unset!important;
}

.ti-widget.ti-goog .ti-controls .ti-next:after, .ti-widget.ti-goog .ti-controls .ti-prev:after {
    content:none!important;
}
.ti-widget.ti-goog .ti-controls .ti-prev:before {
    background-image: url(assets/global/btn-fleche-left.svg)!important;
    
}
.ti-widget.ti-goog .ti-controls .ti-next:before {
    background-image: url(assets/global/btn-fleche-right.svg)!important;
}

#cinq-etoiles .ti-inner {
    display: flex;          /* Active Flexbox */
    flex-direction: column; /* Aligne les enfants en colonne (verticalement) */
}

#cinq-etoiles .ti-inner > .ti-review-header .ti-profile-details > * {
    color: var(--ast-global-color-5);
}

#cinq-etoiles .ti-inner > .ti-review-text-container {
    margin: 2rem 0;
    order: 2; /* Deuxième élément (il était 3ème dans le HTML) */
    color: var(--ast-global-color-5);
}

#cinq-etoiles .ti-inner > .ti-stars {
    order: 3; /* Troisième élément (il était 2ème dans le HTML) */
    margin-bottom: 0px;
    margin-top: 0px;
    height: auto;
}

#cinq-etoiles .ti-inner > .ti-stars .ti-star {
    width: 35px!important;
    height: 35px!important;
    margin-right: 10px!important;
}

#cinq-etoiles > .uagb-container-inner-blocks-wrap,
#cinq-etoiles > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container,
.ti-widget.ti-goog,
.ti-widget.ti-goog .ti-reviews-container,
.ti-widget.ti-goog .ti-widget-container{
    position: unset!important;
}

#cinq-etoiles .ti-widget.ti-goog .ti-controls {
    top: unset!important;
    bottom: 4rem;
    right: 3.5rem;
}

@media (min-width: 1024px) {
    #cinq-etoiles .ti-widget.ti-goog .ti-reviews-container-wrapper {
        margin: 0 0px !important;
    }
}

/* HST home secteurs d'interrvention */

#secteurs {
    /*padding-top: 0!important;*/
    overflow: hidden;
}

#secteurs .main-container {
    display:flex;
    flex-direction: row;
    align-items: flex-start;
    overflow: hidden;
    row-gap: 0;
    column-gap: 0;
    /* Optionnel mais recommandé si le contenu peut déborder sur petits écrans */
    flex-wrap: wrap; /* Permet aux enfants de passer à la ligne si l'espace manque */
}


#secteurs .main-container > .wp-block-uagb-container:nth-child(1) {
    flex: 0 1 100%; /* Largeur idéale 60% */
    min-width: 0; /* Permet de rétrécir correctement */
    align-items: center;
}

@media (max-width: 1024px) {
    #secteurs .main-container > .wp-block-uagb-container:nth-child(1) {
        flex: 0 1 100%!important;
        min-width: 0;
    }
}

/* --- Colonne Gauche (Contenu Texte) --- */
@media (min-width: 850px) {
    #secteurs .main-container > .wp-block-uagb-container:nth-child(1) {
        flex: 0 1 59%; /* Largeur idéale 60% */
        min-width: 0; /* Permet de rétrécir correctement */
    }

    /* --- Colonne Droite (Carte, Icône, Boutons) --- */
    #secteurs .main-container > .wp-block-uagb-container:nth-child(2) {
        flex: 0 1 41%; /* Largeur idéale 40% */
        /*min-width: 450px;*/ /* Largeur minimale */
        min-height: 740px; /* Hauteur fixe (basée sur votre note) */
        position: relative; /* Contexte pour les éléments absolus (icône, svg, boutons) */
        overflow: hidden; /* Masque le SVG qui dépasse ("zoom") */
        background-color: var(--ast-global-color-0); /* Fond bleu */
        justify-content: flex-end;
    }
}

#secteurs .main-container > .wp-block-uagb-container:nth-child(1) .image-left img {
    width: 100%; /* Permet de rétrécir correctement */
}



#secteurs .main-container > .wp-block-uagb-container:nth-child(2) > .wp-block-image {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 76px;
    height: auto;
    z-index: 10; /* Au-dessus de la carte */
}

#secteurs .menu-regions-home .wp-block-uagb-marketing-button {
    width: auto!important;
}

#secteurs .menu-regions-home {
    margin-bottom: 0.7rem !important;
}


@media (max-width: 767px) {
    #secteurs #container-contenus {
        padding-left: 1rem;
    }
    #secteurs .main-container > .wp-block-uagb-container:nth-child(2) > .wp-block-image {
        width: 76px!important;
    }
    #secteurs .main-container > .wp-block-uagb-container:nth-child(2) {
        align-items: center;
    }

    #secteurs .menu-regions-home {
        flex-direction: column;
        column-gap: 0px;
        row-gap: 0.5rem;
        width: 100%!important;
    }

    #secteurs .main-container > .wp-block-uagb-container:nth-child(1) {
        flex: 0 1 100%;
    }

    /*#secteurs .main-container {
        position:relative;
    }

    #secteurs .main-container > .wp-block-uagb-container:nth-child(1) {
        flex: 0 1 100%;
    }

    #secteurs .main-container > .wp-block-uagb-container:nth-child(2) {
        flex: 0 1 0%;
    }

    #secteurs .main-container > .wp-block-uagb-container:nth-child(2) > .wp-block-image,
    #secteurs .main-container > .wp-block-uagb-container:nth-child(2) .carte-svg-container {
        display: none;
    }

    .menu-regions-home {
        position: absolute;
        bottom: 0;
        left: 0;
    }*/
}

@media (min-width: 768px) {
    #secteurs .main-container > .wp-block-uagb-container:nth-child(2) > .wp-block-image {
        top: 2rem;
        right: 3rem;
        width: 100px;
    }
}

#secteurs .main-container > .wp-block-uagb-container:nth-child(2) > .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
}

.svg-container svg {
    max-height: 300px;
}

/* Conteneur du SVG Inline (si vous l'avez ajouté dans le bloc HTML) */
#secteurs .main-container > .wp-block-uagb-container:nth-child(2) .carte-svg-container {
   position: absolute;
   /* S'étend sur toute la zone du parent pour pouvoir positionner le SVG à l'intérieur */
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   overflow: hidden; /* Double sécurité pour le clipping */
   z-index: 1; /* Derrière l'icône et les boutons */
}

/* Le SVG Inline lui-même */
/* Cible le SVG DANS le 2eme container enfant (ajoutez .carte-svg-container si vous l'utilisez) */
#secteurs .main-container > .wp-block-uagb-container:nth-child(2) svg { /* Ou .carte-svg-container svg */
    display: block;
    position: absolute; /* Permet le positionnement top/right */
    /* === Zoom et Position du SVG === */
    /* 1. Taille (Zoom) : Ajustez le % pour le zoom souhaité */
    width: 155%;
    height: auto;
    top: 9rem;
    right: 2rem; /* 2rem du bord droit */
    left: auto; /* Important pour que 'right' fonctionne */
    bottom: auto; /* Important pour que 'top' fonctionne */
    /* Empêche les interactions de la souris avec le SVG lui-même si gênant */
    pointer-events: none;
}

/* === Styles pour les éléments INTERNES du SVG === */
/* (Assurez-vous d'avoir corrigé les typos et styles des frontières dans le code SVG) */


#secteurs svg [id^="zone-"] { /* Groupes des zones colorées */
    display: none; /* Cachés par défaut */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Ignorer la souris */
}
#secteurs svg [id^="frontiere-"] { /* Groupes des frontières pointillées */
    display: block; /* Visibles par défaut */
    opacity: 1;
    /*transition: opacity 0.3s ease;*/
    pointer-events: none; /* Ignorer la souris */
}
#secteurs svg [id^="marqueur-"] { /* Groupes des marqueurs/pins */
    display: none; /* Cachés par défaut */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Ignorer la souris */
    /* fill: #3130d3; */ /* Couleur définie dans le SVG */
}

/* États actifs pour les éléments SVG */
#secteurs svg [id^="zone-"].active {
    display: block;
    opacity: 1;
}
#secteurs svg [id^="frontiere-"].active-sibling { /* Classe pour masquer la frontière quand la zone est active */
    display: none;
    opacity: 0;
}
#secteurs svg [id^="marqueur-"].active {
    display: block;
    opacity: 1;
}

/* === Styles pour le contenu de la Colonne Gauche === */
#secteurs #container-contenus {
    padding: 0 2rem;
    margin-top: 1.5rem;
}

#secteurs .contenu-region {
    display: none;
}
#secteurs .contenu-region.active {
    display: block; /* Ou flex, grid... */
     /* Ajouter une animation si souhaité */
     animation: fadeInContenu 0.5s ease-in-out;
}

@keyframes fadeInContenu {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HPS process dans plugin frs-process css*/
/*@media (max-width: 767px) {
    #process {
        padding-left : 1.5rem; 
        padding-right : 2rem; 
    }
}*/

/* HPF points forts */

#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container  > .wp-block-uagb-container > .wp-block-image {
    flex: 0 0 70px;
    /*padding : 1rem;*/
}

#points-forts > .wp-block-uagb-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 0rem;
    row-gap: 0rem;
    align-items: normal;
    /*justify-content: stretch;*/
}

#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container {
    flex: 50%; /* à la fois child et flex parent */
    justify-items: flex-start;
    justify-content: start;
    align-content: flex-start;
    overflow: hidden;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

#points-forts h3 {
    margin-bottom: 0;
    padding-right: 0.5rem;
}

#points-forts .uagb-marketing-btn__link.wp-block-button__link {
    padding: 1.1rem 2rem;
}

#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container p {
    padding : 0 1rem;
}

#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(1),
#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(4) {
    background-color: var(--ast-global-color-5);
    border : 2px solid var(--ast-global-color-8);
}

#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(2),
#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(3) {
    background-color: var(--ast-global-color-8);
    border : 2px solid transparent;
}

/*#points-forts .tres-important-content {
    https://svgbox.net/p/docs
    background: url(//s2.svgbox.net/pen-brushes.svg?ic=brush-10&color=a922307d);
    color: var(--ast-global-color-5);
}*/

#points-forts h5 {
    margin-bottom: 0;
    margin-top : -1rem;
    color : var(--ast-global-color-0);
    padding: 0rem 2rem 2rem 2rem;
    font-size:1.3rem;
}

/*#points-forts h5::before {
    content :"";
    display: inline-block;
    height: 25px;
    width: 25px;
    background-image: url('https://s2.svgbox.net/materialui.svg?color=000000&ic=hourglass_top');
    background-size: 25px 25px;
}*/


/*
#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(1){
    background-color: #265c7824;
}
#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(2){
    background-color: #a9223017;
}
#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(3) {
    background-color: #494b510a;
}
#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(4) {
    background-color: #f6bb061c;
}*/

#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(1) img {
    filter: invert(0%) sepia(0%) saturate(100%) hue-rotate(257deg) brightness(0%) contrast(104%);
    /*filter: invert(30%) sepia(5%) saturate(1020%) hue-rotate(184deg) brightness(95%) contrast(91%);*/
}
#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(2) img {
    filter: invert(0%) sepia(95%) saturate(7430%) hue-rotate(133deg) brightness(94%) contrast(101%);
    /*filter: invert(14%) sepia(72%) saturate(2963%) hue-rotate(338deg) brightness(109%) contrast(92%);*/
}
#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container:nth-child(3) img {
    filter: invert(0%) sepia(95%) saturate(7430%) hue-rotate(133deg) brightness(94%) contrast(101%);
    /*filter: invert(29%) sepia(13%) saturate(2363%) hue-rotate(156deg) brightness(96%) contrast(84%);*/
}

#points-forts > .wp-block-uagb-container  > .wp-block-uagb-container p:last-child() {
    padding-bottom: 0;
}

/*#points-forts li {
    list-style: none;   
}
#points-forts li::before {
    content: '';
    display: inline-block;
    height: 25px;
    width: 25px;
    background-image: url('assets/arrow-right.svg');
    background-size: 25px 25px;
}*/

/* HAG agréments */

#agrements h3:nth-child(1) {
    padding-top:3.8rem;
}

#agrements h3:nth-child(2) {
    margin-top:-1.4rem;
}

/* HC contact */ 

#contact-right {
    border-radius: 1.5rem;
}

#contact > .uagb-container-inner-blocks-wrap:first-child {
    align-items: flex-start;
}

#contact-left {
    max-width: 30%;
}

#contact-right h3, #contact-right label, #contact-right span {
    color: var(--ast-global-color-5);
}

#contact-right {
    width:100%;
    color: var(--ast-global-color-5);
    background-color: var(--ast-global-color-0);
}

#contact-right textarea {
    height: 50px;
}

#contact-right span.label {
    display: block;
    padding-bottom: .5rem;
}

#contact-right .wpcf7 .wpcf7-not-valid-tip {
    color: var(--ast-global-color-4);
}

#contact {
    margin-top: 16rem!important;
}

#contact select[name="select-objet"] {
    /* Définit la couleur par défaut (quand le placeholder est sélectionné) */
    color: #dbdbdb; /* Gris moyen - Choisissez votre couleur de placeholder */
}

/* Cible le champ select lorsqu'une option VALIDE est sélectionnée */
/* (Fonctionne car l'option placeholder value="" est considérée comme invalide si le champ est requis) */
#contact select[name="select-objet"]:valid {
    /* Définit la couleur normale lorsque l'utilisateur a choisi une option */
    color: var(--ast-form-input-text, #272727); /* Noir - Ou la couleur de texte normale de votre site */
}

/* Optionnel : Styler l'option placeholder DANS la liste déroulante elle-même */
/* (Le support peut varier selon les navigateurs) */
#contact select[name="select-objet"] option[value=""] {
    color: #dbdbdb; /* Un gris légèrement différent pour la liste */
}

.wpcf7 form.invalid .wpcf7-response-output {
    border-color: var(--ast-global-color-4);
}

fieldset .hidden-fields-container {
    display: none;
}

@media (max-width: 767px) {
    #contact-left {
        max-width: 100%; 
        width:100%;
    }

    #contact-left h2, #contact-right h3 { 
        text-align: center;
    }
    #contact {
        margin-top: 0rem!important;
    }
    
}

/* BGA blog archives */

/*.archive.category .entry-title a {
    color: var(--ast-global-color-5);
}*/

.ast-archive-entry-banner {
    background: var(--ast-global-color-5);
}

.archive.category .entry-title {
    padding: .5rem 1rem 1rem 1rem;
}

.archive .ast-article-post .ast-article-inner, .blog .ast-article-post .ast-article-inner, .archive .ast-article-post .ast-article-inner:hover, .blog .ast-article-post .ast-article-inner:hover {
    border-radius: 1.5rem;
}

/* PA pages */

/* PAS single */
.ast-plain-container:not(.home).ast-no-sidebar #primary {
    margin-top: 2rem;
}
.ast-single-entry-banner[data-post-type="page"][data-banner-layout="layout-2"] {
    background-color: var(--ast-global-color-5);
    margin-bottom: 2rem !important;
}

/* PS Service */

.page-service #intro {
    margin-top: 2rem !important;
}

.page-service.page-service-isolation .icon-service-et-punchline h3 {
    color: var(--ast-global-color-6);
}
.page-service.page-service-ventilation .icon-service-et-punchline h3 {
    color: var(--ast-global-color-7);
}
.page-service.page-service-solaire .icon-service-et-punchline h3 {
    color: var(--ast-global-color-4);
}
.page-service.page-service-chauffage .icon-service-et-punchline h3 {
    color: var(--ast-global-color-2);
}
.page-service.page-service-renovation-globale .icon-service-et-punchline h3 {
    color: var(--ast-global-color-0);
}
.page-service .icon-service-et-punchline h3 {
    color: var(--ast-global-color-1);
}

@media (max-width: 767px) {
    .page-service .icon-service-et-punchline h3 {
        text-align: center;
    }
}

.page-service .ast-single-entry-banner {
    padding-bottom: 0;
}

.page-service #primary.content-area.primary {
    margin-top:0;
}

/* 1. Style du conteneur <figure> */
.page-service .wp-block-post-featured-image {
    height: 450px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5em;
    line-height: 0;
    border-radius: 1.5rem;
  }
  
  /* 2. Style de l'image <img> à l'intérieur */
  .page-service .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; 
  }
  
.page-service .ast-single-entry-banner .entry-title{
    /*display: inline;*/
    border-bottom: 0;
    color: var(--ast-global-color-0)!important;
}

.page-service .icon-service-et-punchline > * :first-child  {
    flex: 0 0 200px;
}

.page-service-isolation .ast-single-entry-banner .entry-title {
    border-color: var(--ast-global-color-0)!important;
}

.page-service-chauffage .ast-single-entry-banner .entry-title {
    border-color: var(--ast-global-color-1)!important;
}

.page-service-ventilation .ast-single-entry-banner .entry-title {
    border-color: var(--ast-global-color-7)!important;
}

.page-service-solaire .ast-single-entry-banner .entry-title {
    border-color: var(--ast-global-color-4)!important;
}

.page-service-isolation .ast-single-entry-banner .entry-title {
    border-color: var(--ast-global-color-0)!important;
}

.page-service-professionnels .ast-single-entry-banner .entry-title,
.page-service-renovation-globale .ast-single-entry-banner .entry-title {
    border-color: var(--ast-global-color-8)!important;
}

.page-service .entry-content .house-decoupe-module{
    background-color: var(--ast-global-color-5);
    border-radius: 1.5rem;
}

.house-decoupe-module .texts-postes {
    background-color: var(--ast-global-color-0);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.house-decoupe-module,
.house-decoupe-module a{
    color: var(--ast-global-color-5);
}
.house-decoupe-module a:hover,
.house-decoupe-module a.hoverable-element-classname.highlight{
    color: var(--ast-global-color-1);
    /*font-size: 102%;*/
    /*font-weight: 600;*/
}

/*.page-service .entry-content .house-decoupe-module {
    padding: 1.5rem;
}*/

/*.page-service .entry-content .house-decoupe-module 
.page-service .entry-content .house-decoupe-module .svg-container {
    flex: 0 0 250px!important;
}*/
/*.page-service .entry-content .house-decoupe-module svg {
    width: 250px!important;
}*/

.listing-points-fort-frs {
    display: flex; 
    flex-wrap: wrap!important;
    align-items: flex-start!important;
    justify-content: flex-start!important;
}

.listing-points-fort-frs > .wp-block-uagb-container {
    flex-basis: 100%!important; /* Prend toute la largeur sur mobile */
    box-sizing: border-box;
    row-gap: 10px;
}

.listing-points-fort-frs > .wp-block-uagb-container > .wp-block-heading {
    position: relative;
    padding-left:2rem;
}

.listing-points-fort-frs > .wp-block-uagb-container > .wp-block-heading::before {
    content: '';
    display: block; /* ou inline-block */
    position: absolute;
    top: 20%; /* Positionne le haut du pseudo-élément au milieu vertical du parent */
    left: -2px; /* Ajustez si besoin pour le positionnement horizontal */
    transform: translateY(-50%); /* Décale le pseudo-élément vers le haut de 50% de SA PROPRE hauteur */
    width: 25px;
    height: 25px;
    background-image: url(assets/symboles-services/house-blue-full.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none; /* Empêche le pseudo-élément d'interférer avec les clics */
}

@media (min-width: 544px) {
    .listing-points-fort-frs > .wp-block-uagb-container {
        flex-basis: 48%!important;
    }
}

.site-content .ast-container {
    padding-left: 0px;
    padding-right: 0px;
}


@media (min-width: 961px) {
    /*.site-content .ast-container {
        background-color: aliceblue;
    }*/

    /*body.archive.category .site-main > article,*/
    body.page .site-main > article {
        padding-top: 0;
    }

    /*body.archive.category .entry-content > .wp-block-uagb-container:not(#bloc-hero-container):first-child,*/
    body.page .entry-content > .wp-block-uagb-container:not(#bloc-hero-container):first-child {
        margin-top: 0rem !important;
    }

    /*body.page-service h2 {
        background-color: var(--ast-global-color-5)!important;
    }*/


}

/* CO Contact */

.contact-tel, .contact-adresse, .contact-email {
    position:relative;
    padding-left:3.5rem;
}

.contact-tel::before, .contact-adresse::before, .contact-email::before {
    content: ''; 
    display: block;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    top: -0.5rem;
    left: 0;
    width: 40px;
    height: 40px;
    background-position: center bottom;
    z-index: 2;
}

.contact-tel::before {
    background-image: url(assets/global/contact-tel.svg);
}
.contact-adresse::before {
    background-image: url(assets/global/contact-adresse.svg);
}
.contact-email::before {
    background-image: url(assets/global/contact-email.svg);
}
.contact-tel a, .contact-adresse a {
    color: var(--ast-global-color-0);
    text-decoration: none;
}

/* Fleches */

@media (min-width: 961px) {
    #timeline-deroulement-chantier,
    #contact-right,
    #cible-fleche-pourquoi-frs,
    #cible-fleche-call-action-bilan,
    #contact-carte {
        position: relative;
    }

    #timeline-deroulement-chantier::before,
    .home #contact-right::before,
    #cible-fleche-pourquoi-frs::before,
    #cible-fleche-call-action-bilan::before,
    .cible-fleche-call-action-bilan::before,
    #contact-carte::before {
        content: ''; 
        display: block;
        position: absolute;
        background-size: contain;
        background-repeat: no-repeat;
        pointer-events: none;
    }

    #contact-carte::before {
        bottom: 15%;
        left: calc(50% + -28px);
        width: 1000px;
        height: 1000px;
        transform: rotate(17deg);
        transform-origin: bottom right;
        background-image: url(assets/global/fleche-bleue-contact-map.svg);
        background-position: center bottom;
        z-index: 2;
    }

    #timeline-deroulement-chantier::before {
        bottom: 100%;
        right: calc(50% + 315px);
        width: 1500px;
        height: 1500px;
        transform: rotate(-25deg); 
        transform-origin: bottom right;
        background-image: url(assets/global/fleche-bleue-deroulement-chantier.svg);
        background-position: center bottom;
        z-index: 1;
    }

    #cible-fleche-pourquoi-frs::before {
        bottom: 1.5rem;
        right: calc(50% + 315px);
        width: 1200px;
        height: 1200px;
        transform: rotate(-14deg);
        transform-origin: bottom right;
        background-image: url(assets/global/fleche-verte-pourquoi-frs.svg);
        background-position: center bottom;
        z-index: 1;
    }

    .home #contact-right::before {
        bottom: 64%;
        left: calc(50% + 45px);
        width: 1500px;
        height: 1500px;
        background-image: url(assets/global/cordon-prise-contact.svg);
        background-position: center bottom;
        z-index: 0;
    }                   

    #cible-fleche-call-action-bilan::before,
    .cible-fleche-call-action-bilan::before {
        bottom: 0.5rem;
        right: calc(50% + 315px);
        width: 750px;
        height: 750px;
        background-image: url(assets/global/fleche-blanche-call-action-bleu.svg);
        background-position: center bottom;
        z-index: 1;
        transform: rotate(-19deg);
        transform-origin: bottom right;
    }

}
/* FD : Fleches header desktop */

.site-primary-footer-wrap {
    position:relative;
    border-radius: 1.5rem;
}

.site-primary-footer-wrap::before {
    border-radius: 1.5rem;
}

.ast-footer-social-1-wrap.ast-footer-social-wrap svg {
    width: 40px;
    height: 40px;
    fill: #FFFFFF;
}

#colophon {
    position :relative;
    padding-top: 2rem;
}

#colophon::before {
    content: ''; 
    display: block;
    position: absolute;
    bottom: 70%;
    left: 16%;
    transform: translateX(-50%);
    width: 450px;
    height: 450px;
    background-image: url('assets/global/house-pre-footer.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    pointer-events: none;
}
  
/* Optionnel : Ajustements pour petits écrans */
@media (max-width: 767px) {
    .site-primary-footer-wrap::before {
        width: 90%;
        max-width: 300px;
        height: 80px;
    }

    #colophon {
        padding-top: 16rem;
    }

    #colophon::before {
        bottom: 52%;
        left: 32%;
        width: 200px;
        height: 200px;
    }
}



  /* complianz */

/*.cmplz-cookiebanner {
    position: relative;
}*/

/*.cmplz-cookiebanner {
    padding-top: 1em;
}*/

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny {
    position: absolute;
    top: 12px;
    right: 10px;
    padding: 0 1em;
    width: auto;
    font-size: 15px;
    color: #222222!important;
    box-shadow: none;
    background-color: transparent !important;
    border: 0 !important;
    text-align: right;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-always-active {
    color: var(--ast-global-color-0)!important;
}

/* complianz end */

  

/* STYLES V2 */

:root {
    /* Valeur par défaut (Mobile) */
    --container-width-default: 1124px;
    --container-gutter: 1.25rem; /* 20px */

    /* ── Pont thème → frs-blocks ───────────────────────────────────────────
     * Alias sémantiques consommés par le CSS du plugin frs-blocks, qui ne doit
     * jamais nommer une variable ni un sélecteur du thème directement.
     * Contrat : frs-blocks/docs/architecture-v1.md, §7 bis de l'inventaire.
     * Le thème décide de la valeur ; le plugin consomme le nom.
     * -------------------------------------------------------------------- */
    --frs-color-primary: var(--ast-global-color-0);  /* bleu FRS */
    --frs-color-accent:  var(--ast-global-color-1);  /* vert FRS */
    --frs-color-light:   var(--ast-global-color-5);  /* blanc */
    --frs-color-gris:    var(--ast-global-color-3);  /* gris FRS — ajouté pour la palette des blocs frs/icon et frs/carte-titre */
    /* Gris clair — demandé par Brice le 09-09-2026 pour la palette des blocs FRS (item 3.7 du
       lot « cartes »). SEULE de ces couleurs à ne PAS être un alias d'une globale Astra : Astra
       n'a pas de gris à cette valeur. Elle est donc écrite en dur ici, à l'endroit où le thème
       décide des valeurs — le plugin, lui, n'en connaîtra que le nom, comme pour les autres. */
    --frs-color-gris-clair: #b8b8b8;

    /* Surlignage de sélection sur fond foncé. Sans elle, sélectionner du texte dans l'encadré
       « Info clé » ne produit aucune différence visible : le bleu natif du navigateur sur le
       bleu du bloc. Signalé par Brice le 10-08-2026 à l'édition. */
    --frs-color-selection: var(--ast-global-color-6);

    /* ── Couleur PAR SERVICE, indépendante de la page ────────────────────────────────────
     * Les déclarations `.page-service-*` plus bas les consomment, au lieu de répéter les
     * `--ast-global-color-*` : un seul endroit à corriger si la charte bouge.
     *
     * Elles existent surtout pour le bloc `frs/icone-punchline`, où le service est choisi SUR
     * LE BLOC (liste déroulante) et non plus déduit de l'arborescence de la page. C'est ce qui
     * rend la couleur juste dans l'éditeur, dont le canvas n'a pas les classes du `<body>`. */
    --frs-service-isolation:          var(--ast-global-color-6);
    --frs-service-ventilation:        var(--ast-global-color-7);
    --frs-service-solaire:            var(--ast-global-color-4);
    --frs-service-chauffage:          var(--ast-global-color-2);
    --frs-service-renovation-globale: var(--ast-global-color-0);
    --frs-service-professionnels:     var(--ast-global-color-1);
    --frs-service-aides:              var(--ast-global-color-1);
    /* Service générique, pour les pages sans identité propre (Pôle pro, Aides…). Même valeur
       que la règle générique `.page-service .icon-service-et-punchline h3` qui les servait. */
    --frs-service-frs:                var(--ast-global-color-1);
}

/* Surlignage de sélection, TOUT LE SITE — front et canvas de l'éditeur.
 *
 * Demande de Brice du 10-08-2026, d'abord traitée à tort dans le seul bloc « Info clé » : le
 * défaut y était simplement le plus visible (bleu de sélection natif sur fond bleu, aucune
 * différence perceptible), mais il n'a rien de propre à ce bloc.
 *
 * Sa place est ici et pas dans `frs-blocks` : une règle qui vaut pour tout le site appartient au
 * thème — un plugin de blocs ne style que ses blocs (§7 bis). `style.css` étant chargé dans le
 * canvas par `add_editor_style()`, la règle vaut aussi à l'édition.
 *
 * Seul le fond est imposé : forcer la couleur du texte casserait le contraste sur les fonds
 * clairs. Les blocs à fond foncé la précisent eux-mêmes. */
::selection {
    background-color: var(--frs-color-selection);
}

/* Couleur du service porté par la page. Déclarée ici parce que c'est la PAGE qui a une
 * identité de service ; consommée par frs-blocks sans qu'il connaisse ces sélecteurs.
 * Remplace les 5 sélecteurs ancêtres `.page-service-X .icon-service-et-punchline h3`
 * (L2761-2778), à supprimer une fois la migration des gabarits terminée. */
.page-service-isolation          { --frs-service-color: var(--frs-service-isolation); }
.page-service-ventilation        { --frs-service-color: var(--frs-service-ventilation); }
.page-service-solaire            { --frs-service-color: var(--frs-service-solaire); }
.page-service-chauffage          { --frs-service-color: var(--frs-service-chauffage); }
.page-service-renovation-globale { --frs-service-color: var(--frs-service-renovation-globale); }

/* Les DEUX branches restantes, ajoutées le 10-08-2026. `functions.php` L127-133 pose SEPT
 * classes de service ; il n'y avait ici que cinq déclarations. Les pages Pôle professionnel
 * (#25) et Aides (#90) n'avaient donc aucune valeur, et ne s'affichaient correctement que par
 * coïncidence : le repli du gabarit (`--frs-color-accent`) vaut lui aussi `--ast-global-color-1`.
 * Deux replis indépendants qui tombent d'accord, ce n'est pas un contrat — que l'un des deux
 * bouge et ces deux pages changent de couleur sans que rien ne le signale.
 *
 * `--ast-global-color-1` reprend exactement ce que produit aujourd'hui la règle générique
 * `.page-service .icon-service-et-punchline h3` (L2776) : le rendu est inchangé, il est
 * seulement devenu explicite. */
.page-service-professionnels     { --frs-service-color: var(--frs-service-professionnels); }
.page-service-aides              { --frs-service-color: var(--frs-service-aides); }



.frs-container-narrow, .template-frs-localites .frs-page-cover-image {
    box-sizing: border-box;
    max-width: var(--container-width-default);
    margin-inline: auto; /* Centre horizontalement (moderne) */
}

@media (max-width: 767px) {
    .frs-container-narrow, .template-frs-localites .frs-page-cover-image {
        padding: 0 2rem;
    }

    .page .site-main .frs-container-narrow .entry-content {
        padding: 0;
    }

    .acf-travaux-listing > div {
        padding-left: 0px;
        padding-right: 0px;
    }

    .acf-travaux-listing.layout-2-cols:has( > .frs-cta-card--realisation) > .frs-cta-card--realisation
    {
        width: 100%;
    }
}

.template-frs-localites .ast-single-entry-banner[data-post-type="page"][data-banner-layout="layout-2"] {
    margin-bottom: 0rem !important;
}

.template-frs-localites .frs-page-cover-image,
.template-frs-localites .site-main > article {
    padding: 0px !important;
    margin: 0 auto !important;
}


.template-frs-localites {
    margin-bottom: 0rem !important;
}

.template-frs-localites .site-main .entry-content {
    padding: 0rem;
}

section.cta {
    display:flex;
    flex-direction: column;
    column-gap: 2rem;
    background-color: var(--ast-global-color-0);
    color: var(--ast-global-color-5);
    padding: 6rem!important;
    margin: 80px 0;
}

section.cta h3 {
    color: var(--ast-global-color-5);
}

section.cta h3 strong {
    color: var(--ast-global-color-1);
}

.cta .wp-block-buttons {
    justify-content: center;
}

@media (max-width: 767px) {
    section.cta {
        padding: 3rem!important;
    }

    section.cta .wp-block-uagb-image {
        flex: 0 226px;
    }

    section.cta .wp-block-buttons {
        justify-content: flex-start;
    }
}

.wp-block-button .wp-block-button__link {
    border: 3px solid var(--ast-global-color-1);
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-family: Surgena, sans-serif
}

.wp-block-button .wp-block-button__link:hover {
    background-color: var(--ast-global-color-5);
    color: var(--ast-global-color-0);
}

/* sinon 100% moins marges : apparemment c'est la meilleur façon de gérer le responsive actuellement avec clamp (source discussion gemini : https://gemini.google.com/app?sjid=12957470555511456353-EU) */
/* je ne peux pas l'utiliserp our le moment car Astra / Spectra ajoute des marges sur article et entry-content
/*.container-narrow  {
    width: min(var(--container-width-default), 100% - (var(--container-gutter) * 2));
    margin-inline: auto;
}*/


/* Recrutement */

/* --- 1. Section Parent (Pleine largeur + Fond Gris) --- */
.frs-section-special-colored-2 {
    background-color: #f2f5f8 !important; /* Gris clair */
}

/* --- 2. Conteneur Interne (Largeur Astra) --- */
.frs-container-narrow {
    max-width: var(--wp--custom--ast-content-width-size, 1200px) !important;
    margin: 0 auto !important;
}

/* Style des textes d'intro (H2 et P hors cartes) */
.frs-container-narrow > h2:not(.has-text-align-center), 
.frs-container-narrow > p {
    text-align: center; /* On centre l'intro pour la cohérence */
    max-width: 800px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- 3. Grille des 3 Blocs --- */
.frs-3-blocs {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap; /* Garde l'alignement horizontal sur desktop */
    gap: 25px !important;
    align-items: stretch !important; /* Force les cartes à la même hauteur */
}

/* --- 4. Style des Cartes (.frs-img-h-p) --- */
.frs-img-h-p {
    background: #ffffff !important;
    border-radius: 15px !important;
    padding: 20px 25px !important;
    flex: 1 1 33.33% !important;
    row-gap: 0px;;
    /* Ombre comme sur votre capture */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--ast-global-color-0) !important;
    
    /* Centrage interne */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Aligne le contenu en haut */
}

/* --- 5. Normalisation des éléments internes pour l'alignement --- */

/* Image / SVG */
.frs-img-h-p .wp-block-image {
    height: 80px; /* Fixe la zone de l'icône */
    margin-bottom: 0px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frs-img-h-p .wp-block-image img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain;
}

/* Titres des cartes */
.frs-img-h-p h2 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    min-height: 2.5em; /* Aligne les paragraphes horizontalement */
    display: flex;
    align-items: center;
    text-align: center;
}

/* Paragraphes des cartes */
.frs-img-h-p p {
    font-size: 0.95rem !important;
    line-height: 1.5;
    margin: 0 !important;
    color: #4a5568;
}

/* --- 6. Responsive (Tablettes et Mobiles) --- */
@media (max-width: 921px) {
    .frs-3-blocs {
        flex-wrap: wrap !important; /* Permet l'empilement */
    }
    
    .frs-img-h-p {
        flex: 1 1 100% !important; /* Prend toute la largeur */
        margin-bottom: 20px;
    }
    
    .frs-img-h-p h2 {
        min-height: auto; /* Plus besoin de min-height quand empilés */
    }
}

/* ============================================================
   PAGES RECRUTEMENT
   ============================================================ */

/* --- Zone hero (H1 + sous-titre) --- */
.frs-hero-recrutement {
    text-align: center;
    padding: 0 0 3rem 0!important;
}

.frs-hero-recrutement h1 {
    margin-bottom: 1rem;
}

/* --- Proportions colonnes gauche / droite --- */
.wp-block-group:has(> .frs-3-blocs) {
    gap: 4rem !important;
}

/* Page 1 : frs-3-blocs est une colonne verticale */
.frs-3-blocs.is-vertical {
    flex: 0 0 35% !important;
    max-width: 35% !important;
}

.frs-form-recrutement {
    flex: 0 0 62% !important;
    max-width: 62% !important;
    align-self: flex-start;
    position: sticky;
    top: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

/* --- Bandeau header formulaire --- */
.frs-form-recrutement-header {
    background: linear-gradient(
        to right,
        var(--ast-global-color-0),
        color-mix(in srgb, var(--ast-global-color-0) 55%, white)
    );
    text-align: center;
    padding: 1.5rem 1rem 1.25rem !important;
    margin: 0 !important;
    width: 100%;
}

.frs-form-recrutement-header h3 {
    color: #ffffff !important;
    margin: 0 0 0.4rem !important;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.frs-form-recrutement-header h3::before {
    content: '';
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    background-image: url('assets/global/rocket.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.frs-form-recrutement-header p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 !important;
    font-size: 0.85rem;
}

/* --- Champs du formulaire --- */
.frs-form-recrutement .wpcf7 {
    padding: 2rem;
}

/* Labels classiques (text, email, tel, select...) */
.frs-form-recrutement label {
    font-weight: 700;
}

.frs-form-recrutement label input,
.frs-form-recrutement label textarea,
.frs-form-recrutement label select {
    font-weight: normal;
}

/* Titres checkbox/radio (remplacés par <p>) */
.frs-form-recrutement .wpcf7 p:has(.wpcf7-form-control-wrap) {
    font-weight: 700;
}

/* Reset sur les labels des items individuels checkbox/radio */
.frs-form-recrutement .wpcf7-list-item label {
    font-weight: normal;
}

/* Espace label → champ (+10px) */
.frs-form-recrutement .wpcf7-form-control-wrap {
    display: block;
    margin-top: 10px;
}

/* --- Champ file stylisé --- */
.frs-form-recrutement .wpcf7-form-control-wrap[data-name="filecv"] {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    background-color: #fafafa;
}

.frs-form-recrutement .wpcf7-form-control-wrap[data-name="filecv"]::before {
    content: '';
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 0.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242'/%3E%3Cpath d='M12 12v9'/%3E%3Cpath d='m16 16-4-4-4 4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.frs-form-recrutement .wpcf7-form-control-wrap[data-name="filecv"]::after {
    content: 'Cliquez pour ajouter votre CV';
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
}

.frs-form-recrutement input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Texte erreur CF7 : couleur générale au lieu du rouge par défaut */
.frs-form-recrutement .wpcf7-not-valid-tip,
.frs-form-recrutement .wpcf7-response-output,
.frs-form-recrutement label {
    color: var(--ast-global-color-3) !important;
    border-color: var(--ast-global-color-3) !important;
}

/* --- Bouton submit 100% largeur --- */
.frs-form-recrutement .wpcf7-submit {
    width: 100%;
    background-color: var(--ast-global-color-0) !important;
    color: #ffffff !important;
    border: none;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* --- Cards avantages : puce bleue circulaire (page 1 - colonne verticale) --- */
.frs-3-blocs.is-vertical .frs-img-h-p figure {
    background-color: var(--ast-global-color-0);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem 0;
}

.frs-3-blocs.is-vertical .frs-img-h-p figure img {
    width: 70% !important;
    height: 70% !important;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

/* --- Cards avantages : alignement gauche (page 1) --- */
.frs-3-blocs.is-vertical .frs-img-h-p {
    align-items: flex-start !important;
}

.frs-3-blocs.is-vertical .frs-img-h-p h2 {
    text-align: left !important;
    min-height: unset !important;
    justify-content: flex-start !important;
    text-transform: none !important;
    font-family: 'DM Sans', sans-serif !important;
}

.frs-3-blocs.is-vertical .frs-img-h-p p {
    text-align: left;
}

/* --- Cards avantages : largeur égale + centrage (page 2 - rangée horizontale) --- */
.frs-3-blocs.is-nowrap > .frs-img-h-p {
    flex: 1 1 0 !important;
    align-items: center !important;
}

.frs-3-blocs.is-nowrap > .frs-img-h-p h2 {
    text-align: center !important;
    text-transform: none !important;
    font-family: 'DM Sans', sans-serif !important;
}

.frs-3-blocs.is-nowrap > .frs-img-h-p figure {
    background-color: var(--ast-global-color-0);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 0 0 1rem 0;
}

.frs-3-blocs.is-nowrap > .frs-img-h-p figure img {
    width: 100% !important;
    height: 100% !important;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

/* --- Formulaire : Email + Téléphone côte à côte --- */
.frs-form-recrutement .wpcf7 p:has([name="email"]),
.frs-form-recrutement .wpcf7 p:has([name="phone"]) {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
}

.frs-form-recrutement .wpcf7 p:has([name="email"]) {
    margin-right: 12px;
}

/* --- Parcours d'intégration : étapes numérotées --- */
.frs-parcours h2 {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ast-global-color-3) !important;
    margin-bottom: 1.25rem !important;
}

.frs-parcours ol {
    list-style: none !important;
    counter-reset: parcours-counter;
    padding: 0 !important;
    margin: 0 !important;
}

.frs-parcours ol li {
    counter-increment: parcours-counter;
    position: relative;
    padding-left: 4.5rem;
    margin-bottom: 2.25rem !important;
    line-height: 1.7;
}

.frs-parcours ol li::before {
    content: counter(parcours-counter);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 40px;
    height: 40px;
    background-color: var(--ast-global-color-0);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Badge "ESPACE CARRIÈRE" au-dessus du H1 --- */
.frs-heading-recrutement::before {
    content: "espace carrière";
    display: block;
    width: fit-content;
    margin: 0 auto 0.55rem;
    padding: 2px 11px;
    border-radius: 20px;
    background-color: #60a5fa;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.8;
}

/* --- Blocs 2 colonnes Agent / Artisan --- */
.frs-2-blocs {
    gap: 2rem !important;
}

.frs-2-blocs > .frs-img-h-p-list-btn {
    flex: 1 1 0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 2rem !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.frs-2-blocs > .frs-img-h-p-list-btn:first-child:hover {
    border-color: var(--ast-global-color-0);
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.frs-2-blocs > .frs-img-h-p-list-btn:last-child:hover {
    border-color: var(--ast-global-color-1);
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* Barre colorée en haut de chaque carte */
.frs-img-h-p-list-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

/* Icône dans cercle */
.frs-img-h-p-list-btn figure {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    margin: 0 !important;
}

.frs-img-h-p-list-btn figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Titre */
.frs-img-h-p-list-btn h2 {
    text-align: left !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
}

/* Sous-titre */
.frs-img-h-p-list-btn > p {
    text-align: left !important;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 !important;
}

/* Liste avec coches */
.frs-img-h-p-list-btn ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-grow: 1;
}

.frs-img-h-p-list-btn ul li {
    position: relative;
    padding-left: 1.75rem;
    margin: 1rem !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

.frs-img-h-p-list-btn ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: -12px;
    font-weight: 700;
}

/* Bouton pleine largeur en bas */
.frs-img-h-p-list-btn .wp-block-buttons {
    margin-top: auto;
    width: 100%;
}

.frs-img-h-p-list-btn .wp-block-button,
.frs-img-h-p-list-btn .wp-block-button__link {
    width: 100% !important;
    text-align: center !important;
    display: block;
    box-sizing: border-box;
    color: #ffffff !important;
}

/* --- Couleurs bloc gauche : Commercial (--ast-global-color-0) --- */
.frs-2-blocs > .frs-img-h-p-list-btn:first-child::before {
    background-color: var(--ast-global-color-0);
}
.frs-2-blocs > .frs-img-h-p-list-btn:first-child figure {
    background-color: var(--ast-global-color-0);
}
.frs-2-blocs > .frs-img-h-p-list-btn:first-child h2 {
    color: var(--ast-global-color-0) !important;
}
.frs-2-blocs > .frs-img-h-p-list-btn:first-child ul li::before {
    color: var(--ast-global-color-0);
}
.frs-2-blocs > .frs-img-h-p-list-btn:first-child .wp-block-button__link {
    background-color: var(--ast-global-color-0) !important;
    border-color: var(--ast-global-color-0) !important;
}

/* --- Couleurs bloc droit : Artisan (--ast-global-color-1) --- */
.frs-2-blocs > .frs-img-h-p-list-btn:last-child::before {
    background-color: var(--ast-global-color-1);
}
.frs-2-blocs > .frs-img-h-p-list-btn:last-child figure {
    background-color: var(--ast-global-color-1);
}
.frs-2-blocs > .frs-img-h-p-list-btn:last-child h2 {
    color: var(--ast-global-color-1) !important;
}
.frs-2-blocs > .frs-img-h-p-list-btn:last-child ul li::before {
    color: var(--ast-global-color-1);
}
.frs-2-blocs > .frs-img-h-p-list-btn:last-child .wp-block-button__link {
    background-color: var(--ast-global-color-1) !important;
}

/* --- Responsive pages recrutement --- */
@media (max-width: 1000px) {
    .frs-3-blocs.is-vertical,
    .frs-form-recrutement {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .frs-form-recrutement {
        position: static;
    }

    .wp-block-group:has(> .frs-3-blocs) {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 745px) {
    .frs-2-blocs {
        flex-wrap: wrap !important;
    }

    .frs-2-blocs > .frs-img-h-p-list-btn {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .frs-hero-recrutement {
        padding: 0 1.5rem 3rem 1.5rem!important;
    }
}

/* ============================================================
   FIN PAGES RECRUTEMENT
   ============================================================ */

/* FD : footer desktop — bloc "Nous rejoindre" (colonne centrale du footer)
   Composition en Gutenberg natif (core/group, core/image, core/heading, core/paragraph),
   accrochée via le widget "footer-widget-1" du Footer Builder Astra.

   Base (= tablette/mobile) : pile verticale centrée — logo sur sa ligne, puis titre,
   puis options. La disposition « logo à gauche + titre/options empilés à droite » est
   réservée au desktop (media min-width:1005px plus bas), en grille CSS plutôt qu'avec un
   nouveau groupe Gutenberg : la structure du widget #block-23 reste inchangée (logo,
   heading, options en 3 enfants directs). */

.frs-footer-rejoindre.is-layout-flex {
    display: flex;
    flex-direction: column;
    align-items: center;   /* tout le contenu du bloc centré */
    width: fit-content;
    margin: 0 auto;
    gap: 1rem;
}

/* Logo maison FRS : centré (align-self porte sur l'axe transversal en pile comme en grille). */
.frs-footer-rejoindre-logo {
    align-self: center;
    margin: 0 !important;
}

.frs-footer-rejoindre-logo img {
    width: 54px;
    height: auto;
    display: block;
}

/* Ligne 1 : titre + icône rocket */
.frs-footer-rejoindre-heading.is-layout-flex {
    gap: .35rem;
}

.frs-footer-rejoindre-heading img {
    width: 22px !important;
    height: 22px !important;
    margin-left: 6px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Ligne 2 : "Vous êtes : [icône] Commercial | [icône] Artisan" */
.frs-footer-rejoindre-options.is-layout-flex {
    gap: .5rem;
}

.frs-footer-rejoindre-option.is-layout-flex {
    gap: .5rem;
}

/* Icônes sans pastille : juste l'icône, blanchie via filtre (pas de SVG dédié à créer) */
.frs-footer-rejoindre-option img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.frs-footer-rejoindre-label,
.frs-footer-rejoindre-sep {
    /*margin: 0 !important;
    font-size: 100%;*/
}

/* La règle globale a{color:var(--ast-global-color-0)} rendrait les liens
   invisibles sur le fond bleu du footer : on les force en blanc ici. */
.frs-footer-rejoindre a {
    color: var(--ast-global-color-5) !important;
    text-decoration: none;
    transition: opacity .2s ease;
}

.frs-footer-rejoindre a:hover,
.frs-footer-rejoindre a:focus-visible {
    opacity: .75;
    text-decoration: underline;
}

/* FD : footer desktop — bloc partenaire « France Rénov' » (3e colonne du bandeau).
   Injecté par frs_footer_partner_logo() (functions.php) en tête du composant
   « icônes sociales 1 » du Footer Builder Astra. Le bloc empile un label
   (« Partenaire France Rénov' : », blanc, à même le bleu du footer) puis le logo
   (image 220px, cadre blanc arrondi).

   Sur desktop (voir media min-width:1005px plus bas), les icônes sociales et le
   copyright sont sortis de cette colonne et replacés sous la colonne centrale
   « Nous rejoindre » — uniquement en CSS, le Footer Builder n'est pas touché. */

.site-footer-primary-section-3 .ast-builder-layout-element {
    justify-content: flex-end;
}

/* Le composant social porte .ast-flex (display:flex, ligne par défaut) : on l'empile
   pour poser le bloc partenaire au-dessus de la rangée d'icônes (état mobile ; sur
   desktop les icônes descendent sous la colonne centrale). */
.site-footer-primary-section-3 .ast-builder-layout-element[data-section="section-fb-social-icons-1"] {
    flex-direction: column;
    align-items: flex-end;
}

.frs-footer-partner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    margin-bottom: 20px; /* espace logo → icônes sociales, utile en pile mobile */
    line-height: 0;
}

/* Label hors du cadre blanc : il reste sur le fond bleu du footer. */
.frs-footer-partner__label {
    line-height: 1.25;
    font-size: 100%;
    color: var(--ast-global-color-5);
    
}

.frs-footer-partner img {
    width: 170px;
    height: auto;
    display: block;
    background-color: white;
    border-radius: 10px;
}

/* Icônes sociales et copyright toujours centrés (desktop comme mobile).
   Sélecteurs délibérément spécifiques : la CSS dynamique d'Astra pose
   [data-section="section-fb-social-icons-1"] .footer-social-inner-wrap { text-align:right }
   (0,2,0) et .ast-footer-copyright { text-align:right } (0,1,0) ; il faut passer au-dessus. */
.site-primary-footer-inner-wrap .ast-footer-social-1-wrap .footer-social-inner-wrap,
.site-primary-footer-inner-wrap .ast-footer-copyright {
    text-align: center;
}

/* FD : footer desktop — icônes sociales + copyright déplacés sous « Nous rejoindre ».
   .site-footer-primary-section-3 et son .ast-builder-layout-element social passent en
   display:contents : leurs enfants (bloc partenaire, .ast-footer-social-1-wrap,
   l'élément .ast-footer-copyright) remontent comme items directs de la grille du footer
   (.site-primary-footer-inner-wrap, 3 × 1fr). On les replace ensuite explicitement.
   Borné à min-width:1005px : la bascule mobile (max-width:1004px) reste intacte.
   Si Astra change le markup du footer, ces sélecteurs sont à revoir. */
@media (min-width: 1005px) {
    .site-footer-primary-section-3,
    .site-footer-primary-section-3 > .ast-builder-layout-element[data-section="section-fb-social-icons-1"] {
        display: contents;
    }

    /* Colonne 1 (menu) : sur toute la hauteur (rangées 1 à 3) et centrée
       verticalement contre la pile centrale, comme le bloc partenaire. */
    .site-primary-footer-inner-wrap .site-footer-primary-section-1 {
        grid-row: 1 / 4;
        align-self: center;
    }

    /* Bloc partenaire : reste dans la colonne 3, sur toute la hauteur de la pile
       centrale (rangées 1 à 3) et centré verticalement contre elle. */
    .site-primary-footer-inner-wrap .frs-footer-partner {
        grid-column: 3;
        grid-row: 1 / 4;
        justify-self: end;
        align-self: center;
        margin-bottom: 0;
    }

    /* « Nous rejoindre » calé en bas de sa cellule : l'écart de 2em ci-dessous part
       de son bas réel, pas du bord de la cellule (grille en align-items:center). */
    .site-primary-footer-inner-wrap .site-footer-primary-section-2 {
        align-self: end;
    }

    /* Icônes sociales : sous la colonne centrale, 2em sous « Nous rejoindre ». */
    .site-primary-footer-inner-wrap .ast-footer-social-1-wrap {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
        margin-top: 2em;
        margin-bottom: 0.8em;
    }

    .site-primary-footer-inner-wrap .ast-footer-social-1-wrap .footer-social-inner-wrap {
        justify-content: center;
    }

    /* Copyright : sous les icônes, avec l'écart natif Astra conservé (10px). */
    .site-primary-footer-inner-wrap .ast-builder-layout-element.ast-footer-copyright {
        grid-column: 2;
        grid-row: 3;
        justify-self: center;
    }

    /* Bloc « Nous rejoindre » : logo à gauche (centré verticalement), titre et options
       empilés à sa droite et alignés à gauche. Grille sur .frs-footer-rejoindre, sans
       nouveau groupe Gutenberg (structure du widget #block-23 inchangée). */
    .frs-footer-rejoindre.is-layout-flex {
        display: grid;
        grid-template-columns: auto auto;
        column-gap: 1.5em;   /* logo ↔ pile titre/options */
        row-gap: .5rem;      /* titre ↔ options */
        align-items: center;
    }

    .frs-footer-rejoindre-logo {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .frs-footer-rejoindre-heading {
        grid-column: 2;
        grid-row: 1;
    }

    .frs-footer-rejoindre-options {
        grid-column: 2;
        grid-row: 2;
    }

    .frs-footer-rejoindre-heading.is-layout-flex,
    .frs-footer-rejoindre-options.is-layout-flex {
        justify-content: flex-start;
    }
}

/* FTM : footer tablette/mobile — seuil propre à FRS (1004px), distinct des breakpoints
   natifs d'Astra (960px/544px, déjà utilisés par .ast-footer-row-*-stack ailleurs).
   .site-primary-footer-inner-wrap porte aussi .ast-builder-footer-grid-columns, qui fixe
   grid-template-columns:repeat(3,1fr) hors media query : !important nécessaire pour l'écraser. */
@media (max-width: 1004px) {
    .footer-widget-area[data-section="section-footer-menu"] .astra-footer-tablet-vertical-menu {
        display: grid;
        justify-content: center;
    }

    .site-primary-footer-inner-wrap {
        grid-template-columns: 1fr !important;
        gap: 3.5em;
    }

    .site-footer-primary-section-1,
    .site-footer-primary-section-2,
    .site-footer-primary-section-3 {
        width: 100%;
    }

    /* Section 3 (icônes sociales + copyright) : Astra les aligne à droite
       (text-align:right, sans justify-content) et ne les recentre qu'à ses propres
       seuils (960px/544px) — jamais à 1004px. On force le centrage ici. */
    .site-footer-primary-section-3 .ast-builder-layout-element {
        justify-content: center !important;
    }

    /* Pile logo + icônes sociales : on recentre l'axe transversal comme le reste. */
    .site-footer-primary-section-3 .ast-builder-layout-element[data-section="section-fb-social-icons-1"] {
        align-items: center;
    }

    .site-footer-primary-section-3 .footer-social-inner-wrap,
    .site-footer-primary-section-3 .ast-footer-copyright {
        text-align: center !important;
    }

    /* Bloc partenaire : label + logo centrés (en desktop le label est calé à gauche
       du logo, ici tout est centré comme le reste de la colonne). */
    .frs-footer-partner {
        align-items: center;
    }

    .frs-footer-partner__label {
        text-align: center;
    }
}