/*
Theme Name: Clos des thermes
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Author: HARVEST
Author URI: https://wordpress.org
Description:
Requires at least: 6.4
Tested up to: 6.4
Requires PHP: 7.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: twentytwentyfour
Template: twentytwentyfour
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, accessibility-ready, blog, portfolio, news
*/





/* -------------------------------------------------------------------------- */
/* 0) Imports & resets                                                        */
/* -------------------------------------------------------------------------- */


:where(.wp-site-blocks *:focus){outline-width:0px !important;outline-style: none !important;}



/* Le navigateur garde le scroll vertical natif, on gère l'horizontal */
.slider-viewport{
  touch-action: pan-y;
  overscroll-behavior: contain;           /* évite le rebond iOS/Android dans la section pin */
  -webkit-overflow-scrolling: touch;
}

html,
body {
  min-height: 100vh;
  width: 100% !important;
  overflow-x: hidden !important;
  overscroll-behavior: none;
 
}

a,
a:focus,
a:active {
  outline: 0 !important;
}

.wp-block-navigation a:where(:not(.wp-element-button)):focus,
.wp-block-post-title a:where(:not(.wp-element-button)):focus,
.wp-block-site-title a:where(:not(.wp-element-button)):focus,
a:where(:not(.wp-element-button)):focus {
  text-decoration: none;
}

.sliderProjet .wp-block-column.contenu {
  position: relative;
  z-index: 2;
}
.sliderProjet .wp-block-column.contenu .slider-controls {
  pointer-events: auto;
}

a:hover {
  text-decoration: none;
}

.wp-block-column.is-vertically-aligned-bottom, .wp-block-column.is-vertically-aligned-center, .wp-block-column.is-vertically-aligned-top {
    width: auto !important;
}

/* -------------------------------------------------------------------------- */
/* 1) États init / préchargement                                              */
/* -------------------------------------------------------------------------- */

/* la loading ne doit JAMAIS intercepter les clics une fois cachée */
.loading[hidden] { display: none !important; }      /* kill total */
.loading.is-gone  { display: none !important; }     /* classe de secours */

/* quand l’overlay est à 0 d’opacité, on n’intercepte plus les clics */
.loading:not([data-active="1"]) { pointer-events: none !important; }


.smooth-content { visibility: hidden; }

.loading {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(26, 26, 26);
  overflow: hidden;
  z-index: 999999;
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity .3s ease; /* sécurité si JS en panne */
}



/* -------------------------------------------------------------------------- */
/* 2) Header / navigation                                                     */
/* -------------------------------------------------------------------------- */


/* Anti-flicker logo pendant l'init */

html.is-prep header .heading .wp-block-site-logo,
html.is-prep header .heading .wp-block-site-logo img {
  transition: none !important;
}

/* Un petit coup de pouce au moteur de rendu (WebKit) */
header .heading .wp-block-site-logo {
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999999;
  background-color: transparent;
  transition: 0.3s all ease-in-out;
}

/* avant : transition: 0.4s all ...  ->  provoque flicker sur mask/height */
header .wp-block-site-logo {
  transition: 0.4s all cubic-bezier(0.5, 0, 0.58, 1);
}


/* On s'assure que le logo reste bien au-dessus */
.wp-block-site-logo img {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 auto;
}

.background-header{
  transition: ease-in-out 0.3s;
}

.current-menu-item a{
  color: var(--wp--preset--color--tertiary) !important;
}


.wp-block-navigation-item__label{
  transition: all 0.6s cubic-bezier(0.43, 0.195, 0.02, 1);
}
.wp-block-navigation-item__label:hover{
  color: var(--wp--preset--color--tertiary) !important;
}
@media (min-width: 1070px){
  .nav-mobile{
    display: none !important;
  }
}
@media (max-width: 1070px){
  .nav-ordi{
    display: none !important;
  }
  /*
  .background-header{
    display: flex !important;
    align-items: center !important;
  }
    */
}

@media (max-width:599px){
  
}

/* mega menu */

/*
.background-header .groupe-menu {
    position: relative;
}

.background-header .groupe-menu::after{
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 100vw;
    height: 100%;
    background-color: #004f9ed1;
    z-index: 0;
    transition: ease-in-out 0.3s;
}
*/
.gw-mm-item__dropdown{
  background: #D8D8D8 !important;
}

@media (max-width:1020px){
  .out-burger{
    display: none !important;
  }
  .in-burger{
    display: block !important;
  }
  .gw-mm-item__dropdown{
  padding: 0 11px 20px 11px !important;
  }
  .groupe-menu{
    justify-content: flex-end !important;
    padding-right: 10px !important;
  }
  /* Dropdown menu */
  .gw-mm.is-mobile .gw-mm__content-wrapper {
  background-color: #D8D8D8;
  margin-top: 22px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* On force le conteneur à s'aligner en ligne et non en colonne */
  .gw-mm-item__dropdown-content .wp-block-group.is-layout-flex{
    flex-direction: column !important; /* Force l'alignement horizontal */
  }

  .gw-mm-item__link{
    display: flex;
    flex-direction: column;
  }
  .gw-mm-item .gw-mm-item__toggle{
    width: 100% !important;
    height: 30px;
    margin-top: -30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  span.dashicons.dashicons-arrow-down {
    padding: 10px;
  }
  .grp-menu-1{
    padding: 0 40px !important;
  }
  .grp-menu-2{
    padding: 0 !important;
    gap: 20px !important;
  }
  .grp-menu-2 .wp-block-group{
    gap: 0 !important;
  }

  .gw-mm-item__dropdown-content .wp-block-group.is-layout-flex .is-layout-constrained{
    padding-top: 0 !important;
  }

  .gw-mm-item .gw-mm-item__link a {
    padding: 10px;
    color: var(--wp--preset--color--tertiary);
  }
  header .gw-mm-item .wp-block-navigation {
    gap: 5px;
  }
  .gw-mm-item__dropdown-content .wp-block-group {
    flex-basis: fit-content !important;
    align-items: flex-start;
    padding: 0 !important;
  }
  .dashicons{
        color: var(--wp--preset--color--tertiary);
  }

}

/* picto menu burger */
.gw-mm__toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    position: relative;
}

.gw-mm__toggle{
  font-size: 0 !important;
}

/* Cache le texte et l'icône Dashicons */
.gw-mm__toggle .dashicons-menu,
.gw-mm__toggle .dashicons-menu::before {
    display: none !important;
}

/* Les 2 barres */
.gw-mm__toggle::before,
.gw-mm__toggle::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    left: 0;
}

.gw-mm__toggle::before { top: 4px; }
.gw-mm__toggle::after  { top: 14px; }

/* État ouvert — croix */
.is-opened .gw-mm__toggle::before,
.gw-mm-is-opened .gw-mm__toggle::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.is-opened .gw-mm__toggle::after,
.gw-mm-is-opened .gw-mm__toggle::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/*correction bug menu mobile*/


@media (max-width: 1020px) {
  /* 1. On cache le contenu du menu par défaut pour éviter le flash au chargement */
.gw-mm__content-wrapper {
    display: none;
}

/* 2. On l'affiche uniquement quand l'extension a fini de charger et que le menu est ouvert */
.gw-mm.is-opened .gw-mm__content-wrapper,
.gw-mm.is-active .gw-mm__content-wrapper {
    display: block !important;
}

/* 3. Optionnel : Si le menu doit être visible sur ordinateur sans clic */
@media (min-width: 1021px) {
    .gw-mm__content-wrapper {
        display: block !important;
    }
}
/* --- FIX DISPARITION NETTE À LA FERMETURE --- */

/* 1. On s'assure que si la classe d'ouverture n'est PAS là, le menu est invisible */
.gw-mm:not(.is-opened):not(.is-active) .gw-mm__content-wrapper {
    display: none !important;
}

/* 2. On désactive les animations de transition de l'extension qui pourraient laisser 
      le menu visible pendant qu'il se replie */
.gw-mm__content-wrapper {
    transition: none !important;
    visibility: hidden; /* Sécurité supplémentaire */
}

/* 3. On réactive la visibilité quand c'est ouvert */
.gw-mm.is-opened .gw-mm__content-wrapper,
.gw-mm.is-active .gw-mm__content-wrapper {
    display: block !important;
    visibility: visible !important;
}

}


/* footer */
@media (max-width: 1020px) {

  .wp-block-group.flex-footer {
    display: flex;
    gap: 50px;

  }
  .wp-block-group.flex-footer > .wp-block-group {
    width: 100%;
    flex-basis: auto !important;
  }
  
  ul.wp-block-social-links {
    justify-content: center;
  }
  

}


.footer{
  padding-bottom: 80px !important;
}


/* -------------------------------------------------------------------------- */
/* 3) Hero / Intro                                                            */
/* -------------------------------------------------------------------------- */

section.intro { position: relative; }
section.intro .title { position: relative; z-index: 2; }
section.intro .two { position: relative; z-index: 3; }
section.intro .lines { position: relative; z-index: 1; }
section.two { margin-top: -50vh; }



/* -------------------------------------------------------------------------- */
/* 4) Éléments graphiques (cercles, flair, gradients)                         */
/* -------------------------------------------------------------------------- */




/* -------------------------------------------------------------------------- */
/* 5) Blocs divers                                                            */
/* -------------------------------------------------------------------------- */




.wp-block-button a{
  transition: all 0.6s cubic-bezier(0.43, 0.195, 0.02, 1);
}
.wp-block-button a:hover{
  background-color: black !important;
  color: white !important;
  border-color: black !important;
}
p a{
  transition: all 0.6s cubic-bezier(0.43, 0.195, 0.02, 1);
}
p a:hover{
  color: var(--wp--preset--color--tertiary) !important;
}



/* -------------------------------------------------------------------------- */
/* 6) Formulaires (Gravity Forms)                                            */
/* -------------------------------------------------------------------------- */


.gform_fields{
  row-gap: 10px !important;
}

.gform-datepicker{
  width: 100% !important;
}
 
.textarea, .ginput_container input{
  border: none !important;
  box-shadow: none !important;
}

.gform_button {
  min-height: 0px !important;
    padding: 10px 15px !important;
    border-radius: 0px !important;
    font-size: 1.5rem !important;
    background: none !important;
    color: black !important;
    border-color: black;
    border: solid 1px !important;
    line-height: 30px !important;
  font-weight: normal !important;
  transition: all 0.6s cubic-bezier(0.43, 0.195, 0.02, 1) !important;
}
.gform_button:hover{
  background-color: black !important;
  color: white !important;
  border-color: black !important;
}
.gfield legend, .gfield_required, .gfield label {
  font-size: 1rem !important;
  color:black !important;
}

/* -------------------------------------------------------------------------- */
/* 7) Éléments décoratifs positionnés                                       */
/* -------------------------------------------------------------------------- */



/* -------------------------------------------------------------------------- */
/* 8) Utilitaires perf                                                       */
/* -------------------------------------------------------------------------- */

/* Aides GPU / reveal */
[data-reveal],
[data-parallax],
[data-item] {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* -------------------------------------------------------------------------- */
/* 9) Media queries                                                          */
/* -------------------------------------------------------------------------- */



/* Passage à 2 colonnes sur les tablettes (ex: sous 1024px) */
@media (max-width: 1024px) {
  .banner-white{
  width: 50% !important;
  }

  .picto-logo:after {
  content: "";
  position: absolute;
  width: 100px !important;
  height: 100px !important;
  left: 50%;; 
  }
  .picto-logo{
    border-top-right-radius: 200px !important;
  }
  .responsive-radius img{
    border-top-right-radius: 100px !important;
    border-bottom-left-radius: 100px !important;
  }

}




/* Style par défaut (Desktop) */
.col-inv {
  display: flex;
  flex-direction: row; /* Aligné horizontalement par défaut */
}

/* Changement à partir de 781px et en dessous */
@media (max-width: 781px) {
  .col-inv {
    flex-direction: column-reverse; /* Empile les colonnes et inverse l'ordre */
  }
  .col-mob{
  padding-bottom: 0 !important;
  }
  .col-mob .wp-block-cover {
    border-radius: 0 !important;
    min-height: 300px !important;

  }

  .col-top .wp-block-cover {
    min-height: 300px !important ;
  }
  .col-top .is-content-justification-right {
    justify-content: flex-start !important;
    padding: 0 !important;
  }
  .banner-80 > *{
    max-width: 100% !important;
  }
   .out-tel{
    display: none !important;
  }


}

@media (min-width: 782px) {
  .on-tel{
    display: none !important;
  }
}