/* Compléments au CSS d'origine (public/css/probat.css, repris de Webflow sans changement) :
   ce que faisait le JavaScript de Webflow (menu, carrousel, menus déroulants, filtres),
   la carte des chantiers et l'accessibilité au clavier. */

/* Les attributs width/height ajoutés aux images (stabilité de la mise en page) ne doivent pas
   imposer de hauteur : sans règle CSS, hauteur automatique comme sur Webflow. */
:where(img[width][height]) { height: auto; }

/* Menu mobile */
.burger-block { -webkit-tap-highlight-color: transparent; }
.menu-top, .menu-mid, .menu-bot { transition: transform .3s ease, opacity .2s ease; }
@media screen and (max-width: 991px) {
  .navbar-v4.est-ouvert .full-screen-menu { display: flex; }
  .navbar-v4.est-ouvert .menu-top { transform: translateY(10px) rotate(45deg); }
  .navbar-v4.est-ouvert .menu-mid { opacity: 0; }
  .navbar-v4.est-ouvert .menu-bot { transform: translateY(-10px) rotate(-45deg); }
  html.menu-ouvert, html.menu-ouvert body { overflow: hidden; }
}

/* Carrousel des témoignages */
.w-slider-mask .w-slide { transition: transform .5s ease; }
.w-slider-arrow-left, .w-slider-arrow-right { display: flex; align-items: center; justify-content: center; }

/* Menus déroulants (À propos) */
.w-dropdown-toggle .w-icon-dropdown-toggle { transition: transform .2s ease; }
.w-dropdown-toggle.w--open .w-icon-dropdown-toggle { transform: rotate(180deg); }

/* Filtres des projets */
.button-filter { cursor: pointer; }
.button-filter:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.liste-vide { margin-top: 24px; }
.liste-vide[hidden] { display: none; }
.projet-item[hidden] { display: none; }

/* Carte des chantiers (/projets) : reprise de www.probat.forme.ch (MapLibre auto-hébergé, style MapTiler de Probat) */
.carte-projets { position: relative; width: 100%; height: 600px; overflow: hidden; background: #fafaf9; }
.carte-projets .carte-projets__carte { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte-projets__attente { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-size: 14px; color: #5e5d5a; transition: opacity .4s; }
.carte-projets.est-chargee .carte-projets__attente { opacity: 0; pointer-events: none; }
.carte-projets .maplibregl-ctrl-logo { display: none !important; }
/* Repères, regroupements et bulles : mêmes styles que la carte de la page Contact (18.11.2026). */
.carte-projets .marker { width: 29px; height: 38px; cursor: pointer; }
.carte-projets .marker svg { display: block; }
.carte-projets .cluster-marker { cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #1A2B3C; color: #fff; font-family: "Tt Commons Pro", sans-serif; font-size: 18px; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .15s ease-out; }
.carte-projets .cluster-marker:hover { transform: scale(1.1); }
.carte-projets .marker:focus-visible, .carte-projets .cluster-marker:focus-visible, .carte-projets .map-popup__list li:focus-visible { outline: 2px solid #1A2B3C; outline-offset: 3px; }
.carte-projets .map-popup { background: #1A2B3C; border-radius: 8px; padding: 12px 16px; min-width: 180px; text-align: center; }
.carte-projets .map-popup__list { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow-y: auto; }
.carte-projets .map-popup__list li { color: #fff; font-family: "Tt Commons Pro", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.15); cursor: pointer; transition: color .15s; }
.carte-projets .map-popup__list li:last-child { border-bottom: none; }
.carte-projets .map-popup__list li:hover { color: #9A9EA2; }
.carte-projets .map-popup__name { color: #fff; font-family: "Tt Commons Pro", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0; }
.carte-projets .map-popup__info { color: #fff; font-family: "Tt Commons Pro", sans-serif; font-size: 13px; margin: 6px 0 0; }
.carte-projets .map-popup__btn { display: inline-flex; margin-top: 10px; padding: 10px; justify-content: center; align-items: center; border: 1px solid #fff; border-radius: 8px; background: transparent; font-family: "Tt Commons Pro", sans-serif; color: #fff; font-size: 14px; line-height: 12px; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; transition: background-color .2s, border-color .2s, color .2s; }
.carte-projets .map-popup__btn:hover { border-color: var(--light-blue); background-color: var(--light-blue); color: var(--blue); }
.carte-projets .maplibregl-popup-tip { display: none; }
.carte-projets .maplibregl-popup-content { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
@media screen and (max-width: 767px) { .carte-projets .map-popup__btn { padding: 7px; font-size: 13px; line-height: 10px; } }

/* Focus visible au clavier */
a:focus-visible, [role="button"]:focus-visible, button:focus-visible, .w-dropdown-toggle:focus-visible,
.w-slider-arrow-left:focus-visible, .w-slider-arrow-right:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .w-slider-mask .w-slide, .menu-top, .menu-mid, .menu-bot { transition: none; }
}

/* Webflow, republication du 17.11.2026 : titre des bandeaux centré (.h1-wrapper align-items: center). */
.h1-wrapper { align-items: center; }

/* Accessibilité (audit du 18.11.2026, WCAG 2.2 « taille des cibles ») : liens légaux du pied de page assez hauts et espacés sur mobile. */
@media screen and (max-width: 767px) {
  .footer-legal-link { display: inline-flex; align-items: center; min-height: 24px; }
}
@media screen and (max-width: 479px) {
  .section-flex-horizontal.legal { column-gap: 12px; }
}

/* Photos de fond modifiables dans Forme®Space : le gabarit pose --fc-fond sur l’élément, le voile reste celui de Webflow. */
.domaine-item{background-image:linear-gradient(#1a2b3cbf, #1a2b3cbf), var(--fc-fond, url("/images/card-entreprise-generale-optimise.webp"))}
.domaine-item.batiment{background-image:linear-gradient(#1a2b3cbf, #1a2b3cbf), var(--fc-fond, url("/images/batiment-2-optimise.webp"))}
.domaine-item.gencivil{background-image:linear-gradient(#1a2b3cb3, #1a2b3cb3), var(--fc-fond, url("/images/card-genie-civil-optimise.webp"))}
.domaine-item.reno{background-image:linear-gradient(#1a2b3cb3, #1a2b3cb3), var(--fc-fond, url("/images/card-renovation-optimise.webp"))}
.mask{background-image:linear-gradient(#00000029, #00000029), var(--fc-fond, url("/images/probat-siteweb-adobestock-1547228693.webp"))}
.domaine-item-batiplus{background-image:linear-gradient(#1a2b3c80, #1a2b3c80), var(--fc-fond, url("/images/probat-header-image.webp"))}
.domaine-item-batiplus.batiment{background-image:linear-gradient(#1a2b3cbf, #1a2b3cbf), var(--fc-fond, url("/images/card-batiplus-batiment-optimise.webp"))}
.domaine-item-batiplus.gencivil{background-image:linear-gradient(#1a2b3cb3, #1a2b3cb3), var(--fc-fond, url("/images/probat-siteweb-adobestock-195053884.webp"))}
.domaine-item-batiplus.terrassement{background-image:linear-gradient(#1a2b3cbf, #1a2b3cbf), var(--fc-fond, url("/images/card-batiplus-terrassement-optimise.webp"))}
.domaine-item-batiplus.travaux-publics{background-image:linear-gradient(#1a2b3cbf, #1a2b3cbf), var(--fc-fond, url("/images/card-batiplus-travaux-publics-optimise.webp"))}
.projet-item-selector.first{background-image:var(--fc-fond, url("/images/entreprise-generale-1.webp"))}
.projet-item-selector.second{background-image:var(--fc-fond, url("/images/savoirfaire-batiment-1.webp"))}
.header-attente{background-image:linear-gradient(#1a2b3c66, #1a2b3c66), var(--fc-fond, url("/images/chambin-100.webp"))}
@media screen and (max-width: 479px){.header-attente{background-image:linear-gradient(#1a2b3c66, #1a2b3c66), var(--fc-fond, url("/images/chambin-100.webp"))}}

/* Lien « Gérer les cookies » (bandeau de consentement Forme) et apparence du bandeau aux couleurs du site */
.footer-legal-link.bouton-cookies { background: none; border: 0; padding: 0; margin: 0; font-family: inherit; line-height: inherit; cursor: pointer; text-align: left; }
:root { --forme-cookies-police: "Tt Commons Pro", Arial, sans-serif; --forme-cookies-accent: #1a2b3c; --forme-cookies-rayon: 8px; --forme-cookies-rayon-bouton: 8px; }

/* Repère « contenu principal » pour les lecteurs d’écran, sans effet sur la mise en page Webflow */
.contenu-principal { display: contents; }
