.elementor-kit-7{--e-global-color-primary:#F1E857;--e-global-color-secondary:#000000;--e-global-color-text:#505259;--e-global-color-accent:#DD5B65;--e-global-color-04d1196:#FFFFFF;--e-global-color-0cf49bc:#BCBCBC;--e-global-color-e01ec68:#FFF28D;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;--e-global-typography-48e6c72-font-family:"Poppins";--e-global-typography-48e6c72-font-size:9.375rem;--e-global-typography-48e6c72-font-weight:900;--e-global-typography-48e6c72-text-transform:uppercase;--e-global-typography-48e6c72-line-height:6.563rem;}.elementor-kit-7 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:86.45vw;}.e-con{--container-max-width:86.45vw;}.elementor-widget:not(:last-child){margin-block-end:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1700px){.elementor-kit-7{--e-global-typography-48e6c72-font-size:7rem;--e-global-typography-48e6c72-line-height:5rem;}}@media(max-width:1025px){.elementor-kit-7{--e-global-typography-48e6c72-font-size:6.4rem;--e-global-typography-48e6c72-line-height:4.5rem;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-kit-7{--e-global-typography-48e6c72-font-size:3.7rem;--e-global-typography-48e6c72-line-height:2.6rem;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}:root { --Noir:#000000; --Blanc:#ffffff; --DD5B65:#DD5B65; --E0E0E0:#E0E0E0; }
/* Start custom CSS *//* ==========================================================================
   GÉNÉRAL
   ========================================================================== */
 html .home, .home {
    max-width: 100% !important;
    overflow-x: hidden !important;
}
/* Filtres WPGB : empêcher le débordement mobile */
.elementor-element-4b3bcbf { flex-wrap: wrap; min-width: 0; }
.elementor-element-4b3bcbf .elementor-widget-wpgb-facet { min-width: 0; max-width: 100%; }
html { overflow-x: clip; } /* filet de sécurité iOS */
.pointer{
    cursor:pointer;
}
.jaune {
    color: var(--e-global-color-primary) !important;
}

/* Empêche les déclenchements de zoom sur les filtres au toucher */
.wpgb-facet, 
.wpgb-facet *,
.wpgb-select,
.wpgb-select * {
    touch-action: manipulation !important;
}
/* Configuration des variables pour un contrôle facile */
.layout-framed {
  --frame-offset: 40px; /* Largeur par défaut */
  --frame-color: #000000;
  --frame-width: 1px;
  position: relative;
  background-color: #ffffff;
}
.layout-framed::before,
.layout-framed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--frame-width);
  background-color: var(--frame-color);
  z-index: 10;
}
.layout-framed::before {
  left: var(--frame-offset);
}
.layout-framed::after {
  right: var(--frame-offset);
}


/* --- RESPONSIVE --- */
/* Tablettes (ex: sous 768px) */
@media (max-width: 768px) {
  .layout-framed {
    --frame-offset: 20px; /* On réduit l'espace à 20px */
  }
}
/* Mobiles (ex: sous 480px) */
@media (max-width: 480px) {
  .layout-framed {
    --frame-offset: 10px; /* On réduit à 10px pour maximiser l'espace de lecture */
  }
}

/* ==========================================================================
   ANIM BOUTON COMMUN CHEVRON
   ========================================================================== */

/* 1. Style de base du bouton */
.anim-chevron {
    display: inline-flex !important;
    align-items: center;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* 2. LE CHEVRON DE GAUCHE (Ton code original) */
/* Invisible et sans largeur au départ */
.anim-chevron::before {
    content: '>';
    display: inline-block;
    width: 0;
    opacity: 0;
    margin-right: 0;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}

/* 3. LE CHEVRON DE DROITE (L'état initial) */
.anim-chevron::after {
    content: '>';
    display: inline-block;
    width: 10px; /* Présent par défaut */
    opacity: 1;
    margin-left: 10px;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}


/* --- AU SURVOL --- */

/* La flèche de GAUCHE apparaît et pousse le texte */
.anim-chevron:hover::before {
    width: 10px;
    opacity: 1;
    margin-right: 10px;
    transform: translateX(5px);
}

/* La flèche de DROITE disparaît proprement */
.anim-chevron:hover::after {
    width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateX(10px); /* Petit effet de fuite vers la droite */
}

/* Ajustement du bouton au survol */
.anim-chevron:hover {
    padding-left: 10px; 
}


/* ==========================================================================
   ANIMATION DU CTA-HEADER (Chevron à gauche au Hover)
   ========================================================================== */

/* 1. Style de base du bouton CTA */
.cta-header {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* 2. LE CHEVRON DE GAUCHE (Invisible et caché à gauche au départ) */
.cta-header::before {
    content: '>';
    display: inline-block;
    width: 0;
    opacity: 0;
    margin-right: 0;
    font-weight: bold;
    transform: translateX(-10px); /* Part de la gauche */
    transition: all 0.3s ease-in-out;
}

/* 3. AU SURVOL (HOVER) */

/* Le chevron de gauche apparaît, prend sa place et glisse vers sa position finale */
.cta-header:hover::before {
    width: 10px;
    opacity: 1;
    margin-right: 8px; /* Espace entre le chevron et le texte du CTA */
    transform: translateX(0); /* Reprend sa place naturelle */
}

/* Optionnel : Léger décalage interne du bouton pour équilibrer l'apparition du chevron */
.cta-header:hover {
    padding-left: 15px; 
}

/* ==========================================================================
   ANIM BOUTON FLECHE SVG
   ========================================================================== */

/* 1. État initial : on prépare la transition */
.cta-bons-plans .icone-bons-plans svg {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-bons-plans .icone-bons-plans svg path {
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

/* 2. Animation au survol du conteneur */

/* Agrandissement léger du cercle global */
.cta-bons-plans:hover .icone-bons-plans svg {
    transform: scale(1.1);
}

/* Déplacement des lignes de la flèche (les 3 derniers paths) */
.cta-bons-plans:hover .icone-bons-plans svg path:not(:first-child) {
    transform: translateX(10px);
}

/* Optionnel : Changement de couleur du texte au survol */
.cta-bons-plans:hover #titre-bons-plans a {
    opacity: 0.8;
    transition: 0.3s;
}
/* Extension du corps de la flèche (2ème path) */
/* On l'allonge de 20% (scaleX) depuis la pointe (right) */
.cta-bons-plans:hover .icone-bons-plans svg path:nth-child(2) {
    transform: scaleX(1.2);
    transform-origin: 120px 107px; /* Coordonnées de la pointe de la flèche */
}
/* ==========================================================================
   ANIM SVG BURGER MOBILE
   ========================================================================== */
/* On prépare le SVG pour le clic */
#Layer_1 {
    cursor: pointer;
    overflow: visible !important; /* Indispensable pour éviter que la croix soit coupée */
    transition: transform 0.4s ease;
}

/* On cible TOUS les paths à l'intérieur du groupe <g> */
#Layer_1 g path {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease;
    transform-origin: 12px 12px; /* Centre de rotation sur la grille 24x24 */
}

/* --- ANIMATIONS AU CLIC (Quand la classe .is-open est active) --- */

/* Rotation globale du SVG pour un effet fluide */
#Layer_1.is-open {
    transform: rotate(180deg);
}

/* 1ère ligne (Haut) : Elle descend et tourne à 45° */
#Layer_1.is-open g path:nth-child(1) {
    transform: translate3d(0, 6px, 0) rotate(45deg);
}

/* 2ème ligne (Milieu) : Elle disparaît */
#Layer_1.is-open g path:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

/* 3ème ligne (Bas) : Elle monte et tourne à -45° */
#Layer_1.is-open g path:nth-child(3) {
    transform: translate3d(0, -3px, 0) rotate(-45deg);
}

/* ==========================================================================
   1. GESTION DU TOP HEADER (Uniquement sur la Home)
   ========================================================================== */


.elementor-location-header .top-bar-carburant {
    display: flex !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
}

/* 1. On s'assure que le conteneur principal aligne le tunnel de texte et le bouton côte à côte */
.top-bar-carburant .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px; /* Espace de sécurité entre le texte et le bouton */
    overflow: hidden !important;
    min-width: 0 !important; /* CRUCIAL : autorise flexbox à rétrécir */
}

/* 2. Le tunnel (et le wrapper du shortcode) prend tout l'espace restant et masque ce qui dépasse */
.tunnel-carburant,
.tunnel-carburant .elementor-widget-container,
.tunnel-carburant .elementor-shortcode {
    flex-grow: 1;
    min-width: 0 !important; /* CRUCIAL : casse le "min-width: auto" par défaut */
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    white-space: nowrap;
}

/* 3. Le bouton reste fixe à droite et ne se déforme jamais */
.top-bar-carburant .btn-commun-noir {
    flex-shrink: 0;
    z-index: 10;
}

/* 4. On applique le style et l'animation aux deux textes en continu */
.tunnel-carburant .text-top-header {
    display: inline-block;
    flex-shrink: 0;
    padding-right: 100px; /* Espace crucial entre le premier texte et le deuxième */
    
    /* Typographie personnalisée */
    color: #000000;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -0.15px;
    
    /* Animation fluide de 20 secondes (ajustable) */
    animation: defilement-infini 20s linear infinite;
}

/* 5. L'effet de boucle infinie */
@keyframes defilement-infini {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        /* Se décale de la largeur exacte d'un bloc de texte */
        transform: translate3d(-100%, 0, 0);
    }
}

/* 6. Met l'animation en pause si l'utilisateur passe sa souris sur le texte */
.tunnel-carburant:hover .text-top-header {
    animation-play-state: paused;
}


@media (max-width: 767px) {
    /* 1. Aligne verticalement le tunnel de texte et le bouton sur mobile si besoin */
    .top-bar-carburant .e-con-inner {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }

    /* 2. Force le conteneur du shortcode à rester strictement en 1 seule ligne horizontale */
    .tunnel-carburant,
    .tunnel-carburant .elementor-widget-container,
    .tunnel-carburant .elementor-shortcode {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* CRUCIAL : interdit le passage à la ligne */
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* 3. Empêche Elementor de déformer ou superposer les span */
    .tunnel-carburant .text-top-header {
        display: inline-block !important;
        width: auto !important;
        min-width: max-content !important; 
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        position: relative !important; 
        font-size: 10px !important; 
        padding-right: 40px !important; 
    }
}

/* ==========================================================================
   2. CONFIGURATION DE BASE DU HEADER & DES LIENS DU MENU
   ========================================================================== */
.header-ordi {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* On prépare le lien pour accueillir la ligne animée */
.menu-header ul.elementor-nav-menu > li.menu-item > a.elementor-item {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Creation de la ligne invisible par defaut (Pointeur sous le texte) */
.menu-header ul.elementor-nav-menu > li.menu-item > a.elementor-item::after {
    content: '';
    position: absolute;
    bottom: 0; /* Placé au plus proche du texte */
    left: 0;
    width: 100%;
    height: 2px; /* Epaisseur du pointeur */
    background-color:#FFF; /* Couleur Accent par defaut */
    transform: scaleX(0); /* Invisible de base */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out, background-color 0.3s ease;
}


/* ==========================================================================
   3. ÉTAT : AVANT LE SCROLL (HEADER NORMAL)
   ========================================================================== */
/* Hover global : Le texte et la ligne passent en couleur Accent */
.header-ordi:not(.is-sticky) .menu-header ul.elementor-nav-menu > li.menu-item:hover > a.elementor-item {
    color: #FFF !important;
}
.header-ordi:not(.is-sticky) .menu-header ul.elementor-nav-menu > li.menu-item:hover > a.elementor-item::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* --- Cas particulier : Single Etablissement AVANT le scroll --- */
/* Le Hover devient BLANC (Texte + Pointeur) */
.single-pt_etablissement .header-ordi:not(.is-sticky) .menu-header ul.elementor-nav-menu > li.menu-item:hover > a.elementor-item {
    color: #ffffff !important;
}
.single-pt_etablissement .header-ordi:not(.is-sticky) .menu-header ul.elementor-nav-menu > li.menu-item:hover > a.elementor-item::after {
    background-color: #ffffff !important;
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* ==========================================================================
   4. ÉTAT : AU SCROLL (HEADER STICKY BLANC)
   ========================================================================== */
.header-ordi.is-sticky {
    position: fixed;
    background-color: #ffffff !important; /* Le fond devient blanc au scroll */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05); /* Legere ombre de detachement */
}
/* Remplacement du logo par la version noire au scroll */
.header-ordi.is-sticky .logo-header {
    content: url('https://www.latramuntana.com/wp-content/uploads/2026/05/latramuntana-logo-noir.png') !important;
}

/* Au scroll, tous les textes non-survoles deviennent NOIRS (Y compris sur single etablissement) */
.header-ordi.is-sticky .menu-header ul.elementor-nav-menu > li.menu-item > a.elementor-item {
    color: #000000 !important;
}

/* Hover global AU SCROLL : Le texte devient Accent et la ligne se deploie en Accent */
.header-ordi.is-sticky .menu-header ul.elementor-nav-menu > li.menu-item:hover > a.elementor-item {
    color: var(--e-global-color-accent) !important;
}
.header-ordi.is-sticky .menu-header ul.elementor-nav-menu > li.menu-item:hover > a.elementor-item::after {
    transform: scaleX(1);
    transform-origin: bottom left;
    background-color: var(--e-global-color-accent) !important; /* Devient Accent meme sur single-etablissement */
}


/* ==========================================================================
   5. ÉTAT : MENU ACTIF (PAGE COURANTE)
   ========================================================================== */
/* Le texte et la ligne restent actives en couleur Accent */
.menu-header ul.elementor-nav-menu > li.current-menu-item > a.elementor-item,
.menu-header ul.elementor-nav-menu > li.menu-item > a.elementor-item.elementor-item-active {
    color: #FFF!important;
}
.menu-header ul.elementor-nav-menu > li.current-menu-item > a.elementor-item::after,
.menu-header ul.elementor-nav-menu > li.menu-item > a.elementor-item.elementor-item-active::after {
    transform: scaleX(1) !important;
    background-color: #FFF !important;
}


/* ==========================================================================
   6. SPÉCIFICITÉS DE LA PAGE SINGLE ÉTABLISSEMENT (.single-pt_etablissement)
   ========================================================================== */
/* CTA de cette page : Force en Fond Blanc et Texte Noir */
.single-pt_etablissement .cta-header {
    border: 0.094rem solid #FFF!important; 
}

/* ==========================================================================
   7. SPÉCIFICITÉS DE LA PAGE .page-id-3310 (AVANT SCROLL)
   ========================================================================== */

/* 1. Le fond du header est blanc initialement */
.page-id-3310 .header-ordi:not(.is-sticky) {
    background-color: #FFF !important;
}

/* 2. Les liens du menu passent en couleur Accent initialement */
.page-id-3310 .header-ordi:not(.is-sticky) .menu-header ul.elementor-nav-menu > li.menu-item > a.elementor-item {
    color: var(--Noir)!important;
}

/* 3. Sécurité pour l'élément actif et la ligne d'animation (pour éviter le blanc sur fond blanc) */
.page-id-3310 .header-ordi:not(.is-sticky) .menu-header ul.elementor-nav-menu > li.current-menu-item > a.elementor-item,
.page-id-3310 .header-ordi:not(.is-sticky) .menu-header ul.elementor-nav-menu > li.menu-item > a.elementor-item.elementor-item-active {
    color: var(--Noir)!important;
}
.page-id-3310 .header-ordi:not(.is-sticky) .menu-header ul.elementor-nav-menu > li.menu-item:hover > a.elementor-item::after,
.page-id-3310 .header-ordi:not(.is-sticky) .menu-header ul.elementor-nav-menu > li.current-menu-item > a.elementor-item::after {
    background-color: var(--Noir) !important;
}

.page-id-3310 .header-ordi:not(.is-sticky) .logo-header {
    content: url('https://www.latramuntana.com/wp-content/uploads/2026/05/latramuntana-logo-noir.png') !important;
}

/* ==========================================================================
      ACCUEIL
   ========================================================================== */
/* Cible les puces du carrousel specifique */
.carousel-offres-du-mois .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
    background-color: #FFFFFF !important;
    opacity: 1; /* Optionnel : pour les rendre un peu moins brillantes que l'active */
}
/*--BOUCLE OFFRES ACCUEIL---*/
.meta-offre-date{
    font-family: Oswald;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.125rem;
    text-transform: uppercase;
    color:var(--DD5B65);
}

@media (max-width: 1700px) {
    .meta-offre-date {
        font-size: 1rem!important;
        line-height: 1.25rem!important;
    }
}

@media (max-width: 1280px) {
    .meta-offre-date {
        font-size: 0.9rem!important;
        line-height: 1.2rem!important;
    }
}

@media (max-width: 1024px) {
    .meta-offre-date {
        font-size: 0.9rem!important;
        line-height: 1.15rem!important;
    }
}

@media (max-width: 767px) {
    .meta-offre-date {
        font-size: 0.8rem!important;
        line-height: 1rem!important;
    }
}

/*--CARTE OPENSTREETMAP---*/

/* Effet : Force l'affichage du fond de carte (les tuiles geographiques) en Noir et Blanc */
.wpgb-map-facet .leaflet-tile-container {
    filter: grayscale(100%) brightness(115%) contrast(80%);
    opacity: 0.8;
}

/* Effet : Donne une ombre portee naturelle au Pin (l'icone) du marqueur sur la carte au repos */
.home .wpgb-marker .wpgb-marker-icon {
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease; /* Rend le retour a la taille normale fluide */
}

/* Effet : Quand la souris survole DIRECTEMENT le marqueur sur la carte, il grossit (scale 1.2) et son ombre s'accentue */
.home .wpgb-marker:hover .wpgb-marker-icon {
    transform: scale(1.2);
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.4));
}

/* Effet : Donne une ombre portee de base a la grille globale Elementor (ID de boucle 657) au repos */
.grille-etablissement .elementor-657{
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease; /* Rend le retour a la taille normale fluide apres le survol */
}

/* Effet : Quand la souris survole une carte d'etablissement dans la grille, l'element entier zoome tres legerement (1.015) et l'ombre devient plus forte */
.grille-etablissement .elementor-657:hover {
    transform: scale(1.015)!important;
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.4));
}


/* ==========================================================================
   NOS ÉTABLISSEMENTS
   ========================================================================== */
  
   
/* ==========================================================================
   ZOOM DE BACKGROUND 
   ========================================================================== */

/* --- 1. ÉCRANS TRÈS LARGES (> 1700px) : Style par défaut --- */
.e-loop-item .elementor-element-8b949f6:not(.elementor-motion-effects-element-type-background), 
.e-loop-item .elementor-element-8b949f6 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-size: max(100%, 120%) auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transition: background-size 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.e-loop-item .item-nos-etablissements:hover:not(.elementor-motion-effects-element-type-background),
.e-loop-item .item-nos-etablissements:hover > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-size: max(108%, 135%) auto !important;
}


/* --- 2.ÉCRANS DE BUREAU STANDARDS (< 1700px) --- */
@media (max-width: 1700px) {
    /* On garde les mêmes proportions, la transition reste fluide */
    .e-loop-item .elementor-element-8b949f6:not(.elementor-motion-effects-element-type-background), 
    .e-loop-item .elementor-element-8b949f6 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-size: max(100%, 125%) auto !important;
    }
    .e-loop-item .item-nos-etablissements:hover:not(.elementor-motion-effects-element-type-background),
    .e-loop-item .item-nos-etablissements:hover > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-size: max(108%, 140%) auto !important;
    }
}


/* --- 3. 💻 PETITS ÉCRANS D'ORDINATEURS / PORTABLES (< 1280px) --- */
@media (max-width: 1280px) {
    .e-loop-item .elementor-element-8b949f6:not(.elementor-motion-effects-element-type-background), 
    .e-loop-item .elementor-element-8b949f6 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-size: max(100%, 130%) auto !important;
    }
    .e-loop-item .item-nos-etablissements:hover:not(.elementor-motion-effects-element-type-background),
    .e-loop-item .item-nos-etablissements:hover > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-size: max(108%, 145%) auto !important;
    }
}


/* --- 4. TABLETTES EN MODE PAYSAGE (< 1024px) --- */
@media (max-width: 1024px) {
    /* Sur tablette, les blocs passent souvent sur moins de colonnes (donc ils s'élargissent ou s'allongent) */
    .e-loop-item .elementor-element-8b949f6:not(.elementor-motion-effects-element-type-background), 
    .e-loop-item .elementor-element-8b949f6 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-size: max(100%, 135%) auto !important;
    }
    .e-loop-item .item-nos-etablissements:hover:not(.elementor-motion-effects-element-type-background),
    .e-loop-item .item-nos-etablissements:hover > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-size: max(108%, 150%) auto !important;
    }
}


/* --- 5.SMARTPHONES ET TABLETTES VERTICALES (< 767px) --- */
@media (max-width: 767px) {
    /* Sur mobile, les cartes sont souvent très hautes (verticales). 
       On utilise 'cover' classique ou un max() plus fort pour s'assurer que l'image remplit tout le fond sans "trous blancs".
    */
    .e-loop-item .elementor-element-8b949f6:not(.elementor-motion-effects-element-type-background), 
    .e-loop-item .elementor-element-8b949f6 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-size: cover !important; /* Le 'cover' natif est souvent plus safe sur mobile */
    }
    
    /* Optionnel : On désactive l'effet de zoom au survol sur mobile car le :hover 
       déclenche des comportements bizarres au toucher (l'effet reste bloqué). 
       Si tu veux quand même le zoom au clic, remplace ':hover' par ':active'.
    */
    .e-loop-item .item-nos-etablissements:hover:not(.elementor-motion-effects-element-type-background),
    .e-loop-item .item-nos-etablissements:hover > .elementor-motion-effects-container > .elementor-motion-effects-layer {
        background-size: cover !important; /* Pas de zoom sur mobile */
    }
}
/* ==========================================================================
   NOS ÉTABLISSEMENTS - FILTRE LIEUX (Facette 7)
   ========================================================================== */

/* --- LE CONTENEUR GLOBAL (La capsule noire - Facette 7) --- */
.wpgb-facet-7 .wpgb-hierarchical-list {
    display: inline-flex !important;
    background-color: #000000 !important;
    padding: 6px !important;
    border-radius: 50px !important;
    gap: 5px !important;
    list-style: none !important;
    margin: 0 !important;
    padding-left: 6px !important;
    position: relative;
    z-index: 1;
}

/* Retrait des styles de liste par defaut */
.wpgb-facet-7 .wpgb-hierarchical-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* --- LES BOUTONS (Inactifs par defaut) --- */
.wpgb-facet-7 .wpgb-radio {
    margin: 0 !important;
    padding: 10px 25px !important;
    border-radius: 40px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    z-index: 2;
    background: transparent !important;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* --- LA CORRECTION ABSOLUTE POUR ACTIVER LE TRI --- */
.wpgb-facet-7 .wpgb-radio-control {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 4 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- LE TEXTE --- */
.wpgb-facet-7 .wpgb-radio-label {
    white-space: nowrap !important;
    position: relative;
    z-index: 3;
    transition: color 0.4s ease !important;
    pointer-events: none;
}

/* --- L'EFFET D'APPARITION DU FOND BLANC --- */
.wpgb-facet-7 .wpgb-radio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    border-radius: 40px;
    z-index: 1;
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease !important;
}

/* --- ETATS ACTIFS (Au Clic) --- */
.wpgb-facet-7 .wpgb-radio[aria-pressed="true"]::before {
    opacity: 1;
    transform: scale(1);
}

.wpgb-facet-7 .wpgb-radio[aria-pressed="true"] .wpgb-radio-label {
    color: #000000 !important;
}

.wpgb-facet-7 .wpgb-radio:hover .wpgb-radio-label {
    opacity: 0.85;
}

/* --- CODE RESPONSIVE MOBILE & TABLETTE --- */
@media (max-width: 768px) {
    /* 1. Force les wrappers de WP Grid Builder à utiliser toute la largeur */
    .wpgb-facet-7,
    .wpgb-facet-7 fieldset,
    .wpgb-facet-7 .wpgb-radio-facet {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    
    /* 2. La capsule (UL) : 1 seule ligne stricte et scroll horizontal */
    .wpgb-facet-7 .wpgb-hierarchical-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; 
        justify-content: flex-start !important;
        overflow-x: auto !important; 
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important; 
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 6px !important;
        border-radius: 50px !important;
        scrollbar-width: none !important; 
        -ms-overflow-style: none !important; 
    }
    
    /* Masque la barre de défilement (Chrome, Safari, iOS) */
    .wpgb-facet-7 .wpgb-hierarchical-list::-webkit-scrollbar {
        display: none !important; 
    }

    /* 3. CRUCIAL : Empêche les éléments <li> de se compresser ou de sauter une ligne */
    .wpgb-facet-7 .wpgb-hierarchical-list li {
        flex-shrink: 0 !important; 
        display: inline-flex !important;
    }

    /* 4. Ajustement des boutons radio pour le tactile */
    .wpgb-facet-7 .wpgb-radio {
        padding: 3px 8px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    /* Animation de défilement douce au clic */
.wpgb-facet-7 .wpgb-hierarchical-list,
.filtre-type .wpgb-facet-9 .wpgb-hierarchical-list {
    scroll-behavior: smooth !important;
}
}


/* ==========================================================================
   NOS ÉTABLISSEMENTS - FILTRE TYPE D'ÉTABLISSEMENT (Facette 9 Corrigée)
   ========================================================================== */

/* 1. Force l'alignement horizontal et l'espacement des catégories */
.filtre-type .wpgb-facet-9 .wpgb-hierarchical-list,
.filtre-type .wpgb-facet-9 .wpgb-checkbox-facet {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important; 
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Retrait des styles de liste par défaut sur les puces li */
.filtre-type .wpgb-facet-9 .wpgb-hierarchical-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 💡 CORRECTION 2 : On rend le parent relatif pour accueillir le contrôle invisible */
.filtre-type .wpgb-facet-9 .wpgb-checkbox {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

/* 💡 CORRECTION 3 : Le contrôle prend 100% de la surface mais devient invisible (opacity: 0) */
.filtre-type .wpgb-facet-9 .wpgb-checkbox-control {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 4 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Sécurité pour masquer l'input natif */
.filtre-type .wpgb-facet-9 input[type="checkbox"] {
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

/* 4. Style textuel brut : Épuré, Gras, Majuscules, Noir */
.filtre-type .wpgb-facet-9 .wpgb-checkbox-label {
    cursor: pointer !important;
    display: inline-block !important;
    white-space: nowrap !important;
    transition: color 0.25s ease, opacity 0.2s ease !important;
    position: relative !important;
    z-index: 3 !important;
    /* 💡 CORRECTION 4 : Le clic traverse le texte pour activer directement le contrôle en dessous */
    pointer-events: none !important; 
}

/* 5. Gestion du survol (Hover) pour le confort utilisateur */
.filtre-type .wpgb-facet-9 .wpgb-checkbox:hover .wpgb-checkbox-label {
    opacity: 0.7 !important;
}

/* 6. État actif : Quand une catégorie est cochée, le texte réagit visuellement */
.filtre-type .wpgb-facet-9 .wpgb-checkbox[aria-pressed="true"] .wpgb-checkbox-label,
.filtre-type .wpgb-facet-9 .wpgb-checkbox:has(input:checked) .wpgb-checkbox-label {
    color: var(--e-global-color-accent) !important; 
    text-decoration: underline !important; 
    opacity: 1 !important;
}

/* --- CODE RESPONSIVE TABLETTE & MOBILE --- */
@media (max-width: 1024px) {
    /* Position relative nécessaire pour accrocher les ombres absolues de part et d'autre */
    .filtre-type,
    .filtre-type .wpgb-facet-9 {
        width: 100% !important;
        position: relative !important;
        overflow: visible !important;
    }

    /* On force la liste à ne plus faire de retour à la ligne et à scroller horizontalement */
    .filtre-type .wpgb-facet-9 .wpgb-hierarchical-list {
        flex-wrap: nowrap !important; /* Aligne obligatoirement tout sur une seule ligne */
        overflow-x: auto !important;   /* Active le défilement horizontal au doigt */
        overflow-y: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        gap: 25px !important; /* On réduit un peu l'espace sur petit écran pour en voir plus */
        
        /* Padding ajouté à gauche et droite pour éviter le texte coupé lors du drag */
        padding: 8px 20px !important; 
        
        /* Masque la barre de défilement sur Firefox et IE/Edge */
        scrollbar-width: none !important; 
        -ms-overflow-style: none !important; 
    }
    
    /* Empêche les éléments de la liste de rétrécir ou de se déformer lors du scroll */
    .filtre-type .wpgb-facet-9 .wpgb-hierarchical-list li {
        flex-shrink: 0 !important;
    }

    /* Masque la barre de défilement sur Chrome, Safari et Opera */
    .filtre-type .wpgb-facet-9 .wpgb-hierarchical-list::-webkit-scrollbar {
        display: none !important; 
    }

    /* --- CRÉATION DE L'OMBRÉ / DÉGRADÉ DE PART ET D'AUTRE --- */
    
    /* Ombré à GAUCHE pour indiquer qu'il y a du texte caché avant */
    .filtre-type::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 30px; /* Largeur de la zone d'ombrage */
        background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
        z-index: 5; /* Passe par-dessus les mots qui défilent */
        pointer-events: none; /* Permet de cliquer à travers l'ombré sans bloquer le bouton */
    }

    /* Ombré à DROITE pour indiquer qu'il y a du texte caché après */
    .filtre-type::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px; /* Largeur de la zone d'ombrage */
        background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
        z-index: 5;
        pointer-events: none;
    }
}
/* ==========================================================================
   SINGLE ETABLISSEMENT
   ========================================================================== */
@media (max-width: 767px) {
  /* ÉTAT INITIAL : Le conteneur reste à sa place d'origine dans Elementor */
  .elementor-element.container-ancres {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
    padding: 15px !important;
    background-color: #ffffff !important;
    width: 100% !important;
    transition: background-color 0.3s ease;
  }

  /* ÉTAT FIXE : Activé uniquement quand l'utilisateur a scrollé jusqu'au conteneur */
  .elementor-element.container-ancres.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    z-index: 99999 !important; /* Passe au-dessus de tout le reste de la page */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; /* Ajoute une ombre propre en haut */
    padding: 12px 15px !important;
  }

  /* Masque les barres de défilement */
  .container-ancres::-webkit-scrollbar {
    display: none !important;
  }

  /* Style des boutons */
  .container-ancres .nav-ancre {
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin-right: 10px !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
  }

  /* Bouton actif (Noir) */
  .container-ancres .nav-ancre.active {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 25px !important;
  }
}
/* Ciblage du SVG du 2ème <li> de la liste */
@media (max-width: 767px) {
.elementor-element-90cf333 .elementor-icon-list-items li:nth-child(2) .elementor-icon-list-icon svg {
    width: 27px !important;
    height: 23px !important;
}
}
/* ==========================================================================
   PAGE OFFRES
   ========================================================================== */


/*-- FILTRES MOBILE --*/
@media (max-width: 767px) {
 /* Le conteneur principal reste stable et vertical */
    .elementor-element.container-filtres-offres {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        overflow: visible !important; /* Plus aucun scroll global ici ! */
        width: 100% !important;
    }

    /* Le texte reste en haut à sa place naturelle */
    .container-filtres-offres > p.texte-poppins-15 {
        margin: 0 0 15px 0 !important;
        width: 100% !important;
    }

    /* 2. La nouvelle zone de scroll créée par le JS */
    .wpgb-scroll-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; /* Le drag se fait uniquement ici */
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        padding-bottom: 15px !important; /* Espace pour les menus déroulants */
        scrollbar-width: none !important;
    }

    .wpgb-scroll-wrapper::-webkit-scrollbar {
        display: none !important;
    }

    /* 3. Ajustement des filtres à l'intérieur de la nouvelle ligne */
    .wpgb-scroll-wrapper .elementor-widget-wpgb-facet {
        display: inline-block !important;
        flex-shrink: 0 !important;
        width: 190px !important; /* Largeur de vos filtres */
        margin-right: 12px !important;
        margin-bottom: 0 !important;
    }

    /* 4. Le gradient de fondu à droite : ABSOLUTE et parfait */
    .elementor-element.container-filtres-offres::after {
        content: "" !important;
        position: absolute !important; /* Suit le scroll de la page */
        top: 35px; /* Se cale pile sur les filtres, sous le <p> */
        right: 0 !important;
        bottom: 15px !important;
        width: 70px !important;
        /* Dégradé transparent vers blanc */
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%) !important;
        z-index: 999 !important;
        pointer-events: none !important;
    }
}

/*--BOUCLE OFFRES ---*/
.boucle-page-offres .meta-offre-date{
    font-family: Oswald;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.125rem;
    text-transform: uppercase;
    color:var(--DD5B65);
}

@media (max-width: 1700px) {
    .boucle-page-offres .meta-offre-date {
        font-size: 0.8rem;
        line-height: 0.85rem;
    }
}

@media (max-width: 1280px) {
    .boucle-page-offres .meta-offre-date {
        font-size: 0.75rem;
        line-height: 0.2rem;
    }
}

@media (max-width: 1024px) {
    .boucle-page-offres .meta-offre-date {
        font-size: 0.75rem;
        line-height: 0.2rem;
    }
}

@media (max-width: 767px) {
    .boucle-page-offres .meta-offre-date {
        font-size: 0.75rem;
        line-height: 0.75rem;
    }
}

/* ==========================================================================
   CENTRALISATION DYNAMIQUE DES ÉTABLISSEMENTS (Page Single Offre)
   ========================================================================== */

/* 1. Transforme le conteneur de TOUTES les grilles en Flexbox centré */
.single-pt_offre .elementor-widget-loop-grid .elementor-loop-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* Centre horizontalement s'il y a 1, 2 ou 3 éléments */
    gap: 20px !important; /* Espacement régulier entre les cartes */
}

/* 2. Disposition Ordinateur (4 colonnes max, réparties proprement) */
.single-pt_offre .elementor-widget-loop-grid .elementor-loop-container > .e-loop-item {
    width: calc(25% - 15px) !important; /* (100% - 60px d'espacements) / 4 */
    max-width: 100% !important;
    flex: 0 0 auto !important;
}

/* 3. Disposition Tablette (2 colonnes centrées) */
@media (max-width: 1024px) {
    .single-pt_offre .elementor-widget-loop-grid .elementor-loop-container > .e-loop-item {
        width: calc(50% - 10px) !important;
    }
}

/* 4. Disposition Mobile (2 colonnes centrées) */
@media (max-width: 767px) {
    .single-pt_offre .elementor-widget-loop-grid .elementor-loop-container > .e-loop-item {
        width: calc(50% - 10px) !important;
    }
}
/* ==========================================================================
   FORMULAIRE #gform_1
   ========================================================================== */

/* Conteneur principal du formulaire */
#gform_1 {
    max-width: 650px;
    margin: 30px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 50px; /* Grand arrondi pour la carte du formulaire */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Ombre douce */
    font-family:"Poppins", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    color:#000;
}

/* Espacement entre les champs */
#gform_fields_1{
    row-gap:3vh;
}


/* Labels (Titres des champs) */
#gform_1 .gfield_label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
}

/* Stylisation des champs textuels, select et textarea */
#gform_1 input[type="text"],
#gform_1 input[type="tel"],
#gform_1 input[type="email"],
#gform_1 select,
#gform_1 textarea,
input:-internal-autofill-selected 
{
    width: 100%;
        padding-left: 18px;
    font-size: 15px;
    color: #505259;
    font-weight:500;
    background-color: #f8fafc; /* Fond légèrement grisé */
    border: 1px solid #e2e8f0;
    border-radius: 25px; /* L'arrondi "standard moderne" pour les champs */
    transition: all 0.25s ease-in-out;
    box-sizing: border-box;
}
/* Effet au survol (Hover) */
#gform_1 input[type="text"]:hover,
#gform_1 input[type="tel"]:hover,
#gform_1 input[type="email"]:hover,
#gform_1 select:hover,
#gform_1 textarea:hover {
    border-color: #cbd5e1;
}

/* Effet au clic / focus (Interactivité) */
#gform_1 input[type="text"]:focus,
#gform_1 input[type="tel"]:focus,
#gform_1 input[type="email"]:focus,
#gform_1 select:focus,
#gform_1 textarea:focus {
    outline: none;
    border-color: #6366f1; /* Couleur d'accentuation (Indigo) */
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); /* Halo arrondi autour du champ */
}

/* Ajustement spécifique pour le Message (Textarea) */
#gform_1 textarea {
    min-height: 120px;
    resize: vertical;
}

/* Zone d'envoi de fichier (Upload) */
#gform_1 .ginput_container_fileupload input[type="file"]{
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    color: #505259;
    font-weight:500;
}
#gform_1 input[type="file"]::-webkit-file-upload-button{
    font-size: 15px;
    color: #505259;
    cursor:pointer;
}
#gform_1 .gform_fileupload_rules {
    display: block;
    font-size: 12px;
    color: #505259;
    font-weight:500;
    margin-top: 6px;
}

/* Case à cocher (Politique de confidentialité) */
#gform_1 .gfield_checkbox {
    margin-top: 10px;
}
#gform_1 .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
#gform_1 input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px; /* Case à cocher subtilement arrondie */
    background-color: #f8fafc;
    cursor: pointer;
    display: grid;
    place-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
#gform_1 input[type="checkbox"]:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}
#gform_1 input[type="checkbox"]:checked::before {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}
#gform_1 label[for="choice_1_9_1"] {
    font-size: 13px;
    color: #505259;
    font-weight:500;
    line-height: 1.5;
    cursor: pointer;
}

/* Bouton Envoyer */
#gform_1 #gform_submit_button_1 {
    width: 100%;
    padding: 16px 24px;
    background-color: #F1E857; /* Indigo vibrant */
    color: #000;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    margin-top: 10px;
}

#gform_1 #gform_submit_button_1:hover {
    background-color: #000;
    color:#FFF;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px); /* Léger effet de surélévation */
}

#gform_1 #gform_submit_button_1:active {
    transform: translateY(1px);
}


@media (max-width: 1025px) {
     #gform_fields_1{
    row-gap:2vh;
}
    #gform_1 {
        margin: 15px auto;
        padding: 30px 25px;
        border-radius:30px;
    }
    #gform_1 input[type="text"],
    #gform_1 input[type="tel"],
    #gform_1 input[type="email"],
    #gform_1 select,
    #gform_1 textarea,
    input:-internal-autofill-selected,
    #gform_1 .ginput_container_fileupload input[type="file"], 
    #gform_1 input[type="file"]::-webkit-file-upload-button
    {
        font-size: 12px;
    }
    
    #gform_1 .gform_fileupload_rules,
    #gform_1 label[for="choice_1_9_1"] {
        font-size: 10px;
    }
    #gform_1 .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    }
    #gform_1 #gform_submit_button_1 {
        font-size: 12px;
        padding: 10px 24px;
    }
}


@media (max-width: 767px) {
    #gform_fields_1{
    row-gap:1.5vh;
}
    #gform_1 {
        margin: 15px auto;
        padding: 20px 15px;
        border-radius:25px;
    }
    #gform_1 input[type="text"],
    #gform_1 input[type="tel"],
    #gform_1 input[type="email"],
    #gform_1 select,
    #gform_1 textarea,
    input:-internal-autofill-selected,
    #gform_1 .ginput_container_fileupload input[type="file"],
    #gform_1 input[type="file"]::-webkit-file-upload-button
    {
        font-size: 11px;
    }
    #gform_1 .gform_fileupload_rules,
    #gform_1 label[for="choice_1_9_1"] {
        font-size: 9px;
    }
    #gform_1 .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    }
    #gform_1 #gform_submit_button_1 {
        font-size: 11px;
        padding: 10px 24px;
    }
}

/* 1. Couleur de la case à cocher lorsqu'elle est cochée */
#gform_1 input[type="checkbox"]:checked {
    background-color: #FC99A3;
    border-color: #FC99A3;
}

/* 2. Couleur des champs lors du clic (Focus) */
#gform_1 input[type="checkbox"]:focus,
#gform_1 input[type="text"]:focus, 
#gform_1 input[type="tel"]:focus, 
#gform_1 input[type="email"]:focus, 
#gform_1 select:focus, 
#gform_1 textarea:focus {
    outline: none;
    border-color: #FC99A3;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(252, 153, 163, 0.15); /* Ombre rose subtile */
}

/* ==========================================================================
   FORMULAIRE #gform_2 / PROFESSIONNELS
   ========================================================================== */

/* Conteneur principal du formulaire */
#gform_2 {
    max-width: 650px;
    margin: 30px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 50px; /* Grand arrondi pour la carte du formulaire */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Ombre douce */
    font-family: "Poppins", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    color: #000;
}

/* Espacement entre les champs */
#gform_fields_2 {
    row-gap: 3vh;
}

/* Labels (Titres des champs) */
#gform_2 .gfield_label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
}

/* Stylisation des champs textuels, numériques, select et textarea */
#gform_2 input[type="text"],
#gform_2 input[type="number"],
#gform_2 input[type="tel"],
#gform_2 input[type="email"],
#gform_2 select,
#gform_2 textarea,
input:-internal-autofill-selected {
    width: 100%;
    padding: 12px 18px; /* Ajusté pour un meilleur rendu vertical */
    font-size: 15px;
    color: #505259;
    font-weight: 500;
    background-color: #f8fafc; /* Fond légèrement grisé */
    border: 1px solid #e2e8f0;
    border-radius: 25px; /* L'arrondi "standard moderne" pour les champs */
    transition: all 0.25s ease-in-out;
    box-sizing: border-box;
}

/* Effet au survol (Hover) */
#gform_2 input[type="text"]:hover,
#gform_2 input[type="number"]:hover,
#gform_2 input[type="tel"]:hover,
#gform_2 input[type="email"]:hover,
#gform_2 select:hover,
#gform_2 textarea:hover {
    border-color: #cbd5e1;
}

/* Effet au clic / focus (Interactivité avec couleur Rose) */
#gform_2 input[type="checkbox"]:focus,
#gform_2 input[type="text"]:focus, 
#gform_2 input[type="number"]:focus, 
#gform_2 input[type="tel"]:focus, 
#gform_2 input[type="email"]:focus, 
#gform_2 select:focus, 
#gform_2 textarea:focus {
    outline: none;
    border-color: #FC99A3; /* Rose appliqué */
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(252, 153, 163, 0.15); /* Halo rose subtil */
}

/* Ajustement spécifique pour le Message (Textarea) */
#gform_2 textarea {
    min-height: 120px;
    resize: vertical;
}

/* Zone d'envoi de fichier (Upload - Conservé au cas où) */
#gform_2 .ginput_container_fileupload input[type="file"] {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    color: #505259;
    font-weight: 500;
}
#gform_2 input[type="file"]::-webkit-file-upload-button {
    font-size: 15px;
    color: #505259;
    cursor: pointer;
}
#gform_2 .gform_fileupload_rules {
    display: block;
    font-size: 12px;
    color: #505259;
    font-weight: 500;
    margin-top: 6px;
}

/* Cases à cocher (Conservé et adapté en Rose) */
#gform_2 .gfield_checkbox {
    margin-top: 10px;
}
#gform_2 .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
#gform_2 input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    cursor: pointer;
    display: grid;
    place-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
#gform_2 input[type="checkbox"]:checked {
    background-color: #FC99A3;
    border-color: #FC99A3;
}
#gform_2 input[type="checkbox"]:checked::before {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}
#gform_2 .gchoice label {
    font-size: 13px;
    color: #505259;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

/* Bouton Envoyer */
#gform_2 #gform_submit_button_2 {
    width: 100%;
    padding: 16px 24px;
    background-color: #F1E857; /* Jaune/Indigo selon votre choix initial */
    color: #000;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

#gform_2 #gform_submit_button_2:hover {
    background-color: #000;
    color: #FFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

#gform_2 #gform_submit_button_2:active {
    transform: translateY(1px);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1025px) {
    #gform_fields_2 {
        row-gap: 2vh;
    }
    #gform_2 {
        margin: 15px auto;
        padding: 30px 25px;
        border-radius: 30px;
    }
    #gform_2 input[type="text"],
    #gform_2 input[type="number"],
    #gform_2 input[type="tel"],
    #gform_2 input[type="email"],
    #gform_2 select,
    #gform_2 textarea,
    input:-internal-autofill-selected,
    #gform_2 .ginput_container_fileupload input[type="file"], 
    #gform_2 input[type="file"]::-webkit-file-upload-button {
        font-size: 12px;
    }
    
    #gform_2 .gform_fileupload_rules,
    #gform_2 .gchoice label {
        font-size: 10px;
    }
    #gform_2 .gchoice {
        gap: 5px;
    }
    #gform_2 #gform_submit_button_2 {
        font-size: 12px;
        padding: 10px 24px;
    }
}

@media (max-width: 767px) {
    #gform_fields_2 {
        row-gap: 1.5vh;
    }
    #gform_2 {
        margin: 15px auto;
        padding: 20px 15px;
        border-radius: 25px;
    }
    #gform_2 input[type="text"],
    #gform_2 input[type="number"],
    #gform_2 input[type="tel"],
    #gform_2 input[type="email"],
    #gform_2 select,
    #gform_2 textarea,
    input:-internal-autofill-selected,
    #gform_2 .ginput_container_fileupload input[type="file"],
    #gform_2 input[type="file"]::-webkit-file-upload-button {
        font-size: 11px;
    }
    #gform_2 .gform_fileupload_rules,
    #gform_2 .gchoice label {
        font-size: 9px;
    }
    #gform_2 #gform_submit_button_2 {
        font-size: 11px;
        padding: 10px 24px;
    }
}
/* ==========================================================================
   À PROPOS - TIMELINE (CIBLAGE UNIQUE .PAGE-ID-451)
   ========================================================================== */

body.page-id-451 {
    overflow-x: clip !important; /* clip et non hidden : hidden casse le sticky de la timeline */
    overflow-y: visible !important;

    /* 1. Wrapper principal */
    .time-line-wrapper {
        overflow: visible !important;
        contain: paint !important;
        display: grid !important; 
        grid-template-rows: 100svh !important;
        grid-template-columns: 100% !important;
        height: 500svh !important; 
        position: relative !important;
        overflow: clip !important; 
        
        view-timeline-name: --timeline;
        view-timeline-axis: block;

        & > * {
            grid-row: 1 !important;
            grid-column: 1 !important;
        }
    }

    /* 2. Titre fixe */
    .time-line-titre {
        position: sticky !important;
        top: 0 !important;
        height: 100svh !important;
        z-index: 10 !important;
        background: linear-gradient(to bottom, #ffffff 25svh, transparent 25svh) !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        pointer-events: none;

        .time-line-container-titre {
            height: 25svh !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            pointer-events: auto;
            margin-top: 30px !important;
        }
    }

    /* 3. Rail des cartes */
    .time-line-container {
        position: sticky !important;
        top: 0 !important;
        height: 100svh !important; 
        padding-top: 25svh !important; 
        box-sizing: border-box !important;
        width: max-content !important; 
        background-color: transparent !important;
        
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        will-change: transform;

        animation: scroll-x linear forwards;
        animation-timeline: --timeline;
        animation-range: contain 0% contain 100%;
    }

    /* 4. Cartes & Images */
    .slide-time-line {
        width: 100% !important; 
        max-width: 100vw !important;
        height: 75svh !important; 
        flex-shrink: 0 !important;
        box-sizing: border-box;

        img {
            image-rendering: -webkit-optimize-contrast;
            transform: translate3d(0, 0, 0) !important;
            -webkit-backface-visibility: hidden !important;
            backface-visibility: hidden !important;
            will-change: transform;
        }

        h1, h2, h3, .elementor-heading-title {
            margin-top: 20px !important;
        }
    }

    /* 5. Fallback Safari / iOS */
    @supports not (animation-timeline: view()) {
        .time-line-wrapper {
            height: auto !important; 
            display: block !important; 
        }
        
        .time-line-titre {
            position: relative !important;
            height: auto !important;
            background: #ffffff !important;

            .time-line-container-titre {
                height: auto !important;
                padding: 40px 0; 
            }
        }
        
        .time-line-container {
            position: relative !important;
            height: auto !important;
            padding-top: 0 !important;
            width: 100% !important; 
            overflow-x: auto !important; 
            scroll-snap-type: x mandatory; 
            -webkit-overflow-scrolling: touch; 
        }
        
        .slide-time-line {
            scroll-snap-align: center; 
            height: auto !important;
            min-height: 50vh; 
        }
    }
}

/* Animation globale keyframes */
@keyframes scroll-x {
    to {
        transform: translateX(calc(-100% + 100vw));
    }
}
/* ==========================================================================
  ARCHIVES TAXONOMIES
   ========================================================================== */
/* === TEXTE SEO === */   
/* Conteneur masqué par défaut */
/* Conteneur masqué par défaut */
.lire-plus .elementor-widget-container {
    max-height: 220px; /* Hauteur visible au départ */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}

/* Fondu NOIR en bas du texte replié */
.lire-plus .elementor-widget-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* État déplié */
.lire-plus.is-open .elementor-widget-container {
    max-height: 3000px;
}

.lire-plus.is-open .elementor-widget-container::after {
    opacity: 0;
}

/* Style du bouton avec fond transparent */
.btn-lire-plus {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 0; /* Ajusté pour un bouton sans fond */
    background-color: transparent;
    color: #FFF;
    font-family: var(--e-global-typography-v4-btn-large-font-family), Sans-serif;
    font-weight: var(--e-global-typography-v4-btn-large-font-weight);
    font-size: var(--n-accordion-title-font-size);
    text-transform: var(--e-global-typography-v4-btn-large-text-transform);
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;
}

/* Fond transparent au survol */
.btn-lire-plus:hover {
    background-color: transparent;
}
   
/* === FAQ=== */
/* === TITRE PRINCIPAL (Centré, Oswald) === */
.acf-faq-title {
    font-family: "Oswald", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase!important;
    color: #000000;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 40px !important;
    letter-spacing: 0.5px;
    text-align: center !important; /* Centré comme sur la capture */
}

/* === CONTENEUR PRINCIPAL === */
html body .acf-faq-accordion {
    margin: 24px auto 48px !important;
    max-width: 900px !important;
    display: block !important;
    font-family: "Poppins", sans-serif !important;
    color: #000000 !important;
}

/* === ITEM (Lignes séparatrices comme la capture) === */
html body .acf-faq-accordion .acf-faq-item {
    background: #ffffff !important;
    border: 0 !important;
    border-top: 1px solid #1E4D3B !important; /* Ligne de séparation fine */
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background-color 200ms ease !important;
}

html body .acf-faq-accordion .acf-faq-item:last-child {
    border-bottom: 1px solid #1E4D3B !important;
}

/* === BOUTON QUESTION === */
html body .acf-faq-accordion .acf-faq-item .acf-faq-question {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 16px !important; /* Espacement aéré */
    text-align: left !important;
    cursor: pointer !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background 200ms ease, color 200ms ease !important;
}

/* --- ÉTAT AU SURVOL : FOND NOIR & TEXTE BLANC --- */
html body .acf-faq-accordion .acf-faq-item .acf-faq-question:hover {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

html body .acf-faq-accordion .acf-faq-item.is-open .acf-faq-question {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

html body .acf-faq-accordion .acf-faq-item.is-open .acf-faq-question:hover {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* === TEXTE DE LA QUESTION (OSWALD) === */
html body .acf-faq-question-text {
    order: 1 !important; /* Texte à gauche */
    flex: 1 1 auto !important;
    text-align: left !important;
    font-family: "Oswald", sans-serif !important;
    font-weight: 500 !important;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem) !important;
    line-height: 1.3 !important;
    color: inherit !important; /* Hérite de la couleur noir/blanc selon hover */
    letter-spacing: 0.2px !important;
    padding-right: 20px !important;
}

/* === ICÔNE CHEVRON / PLUS (Placée tout à droite) === */
html body .acf-faq-icon {
    order: 2 !important; /* Force l'icône tout à droite */
    flex: 0 0 auto !important;
    position: relative !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    background: transparent !important;
    border: 0 !important;
    color: #1E4D3B !important; /* Couleur verte/sombre initiale */
    transition: transform 200ms ease, color 200ms ease !important;
}

/* Icône passe en blanc au survol */
html body .acf-faq-question:hover .acf-faq-icon {
    color: #ffffff !important;
}

/* Traits du "+" / "−" */
html body .acf-faq-icon::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    margin-top: -1px !important;
    background-color: currentColor !important;
    transition: transform 200ms ease !important;
}

html body .acf-faq-icon::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 2px !important;
    margin-left: -1px !important;
    background-color: currentColor !important;
    transition: transform 200ms ease !important;
}

/* En état ouvert : pivot à 90° pour former le signe "−" */
html body .acf-faq-item.is-open .acf-faq-icon::after {
    transform: rotate(90deg) !important;
}

/* === RÉPONSE / CONTENU (POPPINS) === */
html body .acf-faq-accordion .acf-faq-item .acf-faq-answer {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 320ms ease !important;
    background: #ffffff !important;
}

html body .acf-faq-accordion .acf-faq-item.is-open .acf-faq-answer {
    max-height: none !important;
}

html body .acf-faq-answer-content {
    padding: 8px 16px 28px !important;
    color: #333333 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
    background: #ffffff !important;
}

html body .acf-faq-answer-content p {
    margin: 8px 0 !important;
    font-family: "Poppins", sans-serif !important;
}

html body .acf-faq-answer-content p:first-child {
    margin-top: 0 !important;
}

html body .acf-faq-answer-content p:last-child {
    margin-bottom: 0 !important;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 600px) {
    html body .acf-faq-accordion .acf-faq-item .acf-faq-question {
        padding: 18px 12px !important;
    }
    html body .acf-faq-question-text {
        font-size: 1.05rem !important;
    }
    html body .acf-faq-answer-content {
        padding: 4px 12px 20px !important;
        font-size: 0.92rem !important;
    }
    
    html body .acf-faq-accordion .acf-faq-item .acf-faq-question {
        white-space: normal !important;
        height: auto !important;
    }
    html body .acf-faq-question-text {
        white-space: normal !important;
        min-width: 0 !important; /* CRUCIAL en Flexbox pour autoriser le passage à la ligne */
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}
/* ==========================================================================
  ORDRE TAXONOMIES ETABLISSEMENTS
   ========================================================================== */

/* ASTUCE : Assure-toi que le parent est bien en flexbox pour que 'order' fonctionne */
.wpgb-facet-9 .wpgb-hierarchical-list {
    display: flex;
    flex-direction: column;
}

/* 1. Supermarché (est le 2e élément dans le HTML) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(2) { order: 1; }

/* 2. Tabacs (est le 1er élément dans le HTML) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(1) { order: 2; }

/* 3. Station Essence (reste à sa place, 3e élément HTML) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(3) { order: 3; }

/* 4. Restaurant (reste à sa place, 4e élément HTML) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(4) { order: 4; }

/* 5. Parfumerie (reste à sa place, 5e élément HTML) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(5) { order: 5; }

/* 6. Mode (reste à sa place, 6e élément HTML) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(6) { order: 6; }

/* 7. Lifestyle (reste à sa place, 7e élément HTML) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(7) { order: 7; }

/* 8. Hotel (reste à sa place, 8e élément HTML) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(8) { order: 8; }

/* 9. Boucherie (reste à sa place, 9e élément HTML) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(9) { order: 9; }

/* 10. Animaux (est le 11e élément HTML, passe avant Botanique) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(11) { order: 10; }

/* 11. Botanique (est le 10e élément HTML, passe en tout dernier) */
.wpgb-facet-9 .wpgb-hierarchical-list > li:nth-child(10) { order: 11; }

/* -------------------------------------------------------------
   Fiche établissement : masque l'ancre "Offres en cours"
   quand la section #offres n'est pas rendue (aucune offre liée).
   ------------------------------------------------------------- */
body.single-pt_etablissement:not(:has(#offres)) .nav-ancre[href="#offres"] {
  display: none;
}/* End custom CSS */