/*
Theme Name: Biosat
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;
}

/* -------------------------------------------------------------------------- */
/* 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 */
}



/* -------------------------------------------------------------------------- */
/* 3) 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;
}
header.main-tool-bar--scrolled .background-header, 
header.main-tool-bar--scrolled .background-header .groupe-menu::after {
	background: var(--wp--preset--color--tertiary) !important;
}


.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;
}



@media (max-width:1017px){
  .out-burger{
    display: none !important;
  }
  .in-burger{
    display: block !important;
  }
  .groupe-menu{
    justify-content: flex-end !important;
    padding-right: 50px !important;
  }
  /* Dropdown menu */
  .gw-mm.is-mobile .gw-mm__content-wrapper {
  background-color: var(--wp--preset--color--tertiary) !important;
  margin-top: 40px;
  }

  /* 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: 60px;
    margin-top: -60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  span.dashicons.dashicons-arrow-down {
    padding: 30px;
  }
  .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: 20px;
  }
  header .gw-mm-item .wp-block-navigation {
    gap: 5px;
  }


}

/* 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);
}



@media (min-width:1000px){
  .in-burger{
    display: none;
  }
}


@media (max-width:781px){
.picto-home{
  padding-left: 30% !important;
  padding-right: 30% !important;
}
}


/* Footer */
@media (max-width:1000px){
  .flex-footer, .flex-footer .wp-block-group, .footer-bottom, .footer-bottom .wp-block-group{
    flex-direction: column;
  }
  .flex-footer, .flex-footer .wp-block-group .wp-block-group{
    width: 100% !important;
  }
  .footer-bottom, .footer-bottom .wp-block-group{
    align-items: flex-start;
  }
}


.gw-mm-item__dropdown {
    background: none;
    padding: 0;
    box-shadow: none;
}
.wp-block-navigation .wp-block-navigation-item__description {
  display: contents !important;
  color: var(--wp--preset--color--custom-color-3);
  font-weight: 400;
}

header .wp-block-navigation-item__content{
  display: flex !important;
  flex-direction: column;
}


/* -------------------------------------------------------------------------- */
/* 4) 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; }

/* h1 { opacity: 0; } /* (corrigé: suppression espace invisible) */ 

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


.fond-flou{
  backdrop-filter: blur(17px);
}


.carre-1, .carre-2 {
    position: relative; 
    z-index: 0;
}


.carre-2::after {
    content: "";
    position: absolute;
    top: -5%;
    right: 10%;
    width: 15%;
    height: 20%;
    background-color: var(--wp--preset--color--contrast);
    border-radius: 3.5vw;
    z-index: -1; 
    pointer-events: none;
}


.carre-1::after {
    content: "";
    position: absolute;
    bottom: -9%;
    left: 23%;
    width: 15%;
    height: 20%;
    background-color: var(--wp--preset--color--tertiary);
    border-radius: 3.5vw;
    z-index: -1; 
    pointer-events: none;
}

@media (max-width:1000px){
  .carre-1::after {
    width: 35%;
    bottom: -5%;
  }
  .carre-2::after {
    width: 35%;
    top: -2%;
  }
}

.picto-chien, .picto-chat{
    position: relative !important; 
}


.picto-chat:after {
    content: "";
    position: absolute;
    width: 109px !important;
    height: 60px !important;
    top: -54px;
    left: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(/wp-content/uploads/2026/04/picto-chat.svg);
}

.picto-chien:after {
    content: "";
    position: absolute;
    width: 70px !important;
    height: 60px !important;
    top: -54px;
    left: 20%;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("/wp-content/uploads/2026/04/picto_chien.svg");
}


/* -------------------------------------------------------------------------- */
/* 6) Texte scindé / animations de lignes                                     */
/* -------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------- */
/* 7) Blocs divers                                                            */
/* -------------------------------------------------------------------------- */



/* BTN HOVER*/

.is-style-outline a:hover{
  background-color: var(--wp--preset--color--white) !important;
  color: var(--wp--preset--color--tertiary) !important;
}

.is-style-fill a:hover{
  background-color: var(--wp--preset--color--white) !important;
  color: var(--wp--preset--color--tertiary) !important;
  border-color: var(--wp--preset--color--tertiary) !important;
  border-width: 1px !important;
  border-style: solid !important;
}

.picto-solution{
  position: relative !important;
  z-index: -1;
  margin-bottom: -50px !important;
}
.page-solutions .type-solution{
  width: 100% !important;
  margin-right: 0!important;
}
/* --- CONFIGURATION CARROUSEL --- */

/* Conteneur principal qui cache le débordement */
.slider-requete {
    width: 100%;
    overflow: visible !important;
    padding: 40px 0; /* Espace pour ne pas couper les ombres portées */
    position: relative;
}
.solutions-description p{
  color:var(--wp--preset--color--primary) !important;
}
.card-solution:hover{
  background: var(--wp--preset--color--primary) !important ;
}
.card-solution:hover p, .card-solution:hover hr, .card-solution:hover h3, .card-solution:hover .value{
  color: var(--wp--preset--color--custom-color-2) !important;
}


/* On s'assure que le site ne crée pas de scroll horizontal à cause du overflow:visible */
body {
    overflow-x: hidden;
}
/* Le rail (ton <ul> WordPress) */
.slider-posts.swiper-wrapper {
    display: flex !important; /* Force l'alignement horizontal */
    flex-wrap: nowrap !important;
    gap: 0 !important; /* Swiper gère l'espacement via JS */
    margin: 0 !important;
    padding: 0 !important;
    align-items: flex-end;
    height: 500px;
}

/* Chaque carte (ton <li> WordPress) */
.slider-posts .solution.swiper-slide {
    height: auto !important; /* Aligne la hauteur de toutes les cartes */
    margin-bottom: 0 !important;
    list-style: none !important;
    display: flex;
}

/* On s'assure que le lien et la carte prennent toute la hauteur */
.slider-posts .solution.swiper-slide > a,
.slider-posts .card-solution {
    width: 100%;
    height: 100%;
}


.slider-posts .solution .is-acf-field{
  height: 10px;
}

.slider-posts .solution .card-solution{
  height: 470px;
}
/* autres   */
.banner-index-5 {
  z-index: 2;
  position: relative;
}


.sticky-icon-wrapper::before {
  content: '';
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 350px;
  background: linear-gradient(to bottom, #c8d8f0, transparent);
  z-index: 0;
}

.scroll-section {
  overflow: visible !important;
}

.sticky-icon-wrapper {
  z-index: 10;
  overflow: visible !important;
}

/* Vérifie aussi les parents */
.wp-block-column,
.wp-block-columns {
  overflow: visible !important;
}
.scroll-section {
  position: relative;
  height: 630px;
  width: 270px;
}

.sticky-icon-wrapper {
  position: sticky;
  top: 80px; /* même valeur que le start */
  height: 350px; /* hauteur de l'icon-card + paddings */
  overflow: visible !important;
  z-index: 1;
}


.icon-padding-bottom {
  height: 40px;
  flex-shrink: 0;
}

.icon-card {
  width: 270px;
  height: 270px;
  background: #13357c;
  border-radius: 60px;
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.icon-picto {
  width: 75%; /* ajuste selon le visuel souhaité */
  height: 75%;
  object-fit: contain;
}


/* Form */
.textarea, .ginput_container input{
    background:#E7F4FF !important;
    border: none !important;
    color: var(--wp--preset--color--custom-color-2) !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    font-weight: bold !important;
}





/* banner top */
.banner-top .wp-block-cover__image-background{
  height: 101% !important;
}

@media (max-width:700px){
  .banner-top{
    min-height: 95vh !important;
    padding: 10px !important;
  }

  .banner-top .wp-block-cover__inner-container{
    padding: 0 !important;
  }
  .banner-top .wp-block-cover__inner-container .group-text{
    border: none;
    padding: 0 0 50px 25px !important;
  }
}



@media (max-width:1000px){
  /* carte home */
  .carte-home{
  margin: 0 !important;
  }
  /* titre publication */
  .title-50 h2{
    max-width: 100% !important;
  }
}






/* BTN haut de page */
.btn-go-top a{
 opacity: 0.7;
 transition: ease-in-out 0.3s;
}

.btn-go-top a:hover{
 opacity: 1 !important;
 background-color:var(--wp--preset--color--primary) !important;
 color:var(--wp--preset--color--custom-color-3) !important;
}


.photos-carroucel {
    animation: scroll-infini 15s linear infinite;
    scale: 2;
}

@keyframes scroll-infini {
    0% { transform: translateX(25.8%); }
    100% { transform: translateX(-24.8%); }
}

/* Tablet */
@media (max-width: 1024px) {
    .photos-carroucel {
        scale: 3;
    }
    .photos-carroucel .is-vertical{
  padding-right: 10px !important;
}
.photos-carroucel .is-vertical img{
  border-radius: 20px !important;
}
.photos-carroucel .is-vertical figure{
  margin-bottom: 10px !important;
}
}

/* Mobile */
@media (max-width: 768px) {
  .photos-carroucel {
    scale: 5;
  }
.photos-carroucel .is-vertical{
  padding-right: 5px !important;
}
.photos-carroucel .is-vertical img{
  border-radius: 7px !important;
}
.photos-carroucel .is-vertical figure{
  margin-bottom: 5px !important;
}

  .responsive-padding{
    padding: 50px 30px !important;
  }
}



/* -------------------------------------------------------------------------- */
/* 10) Accordéon                                                              */
/* -------------------------------------------------------------------------- */



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


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


/* -------------------------------------------------------------------------- */
/* 13) Projets                                */
/* -------------------------------------------------------------------------- */


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


/* -------------------------------------------------------------------------- */
/* 15) Utilitaires perf                                                       */
/* -------------------------------------------------------------------------- */

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

/* -------------------------------------------------------------------------- */
/* 16) Media queries                                                          */
/* -------------------------------------------------------------------------- */



/* Passage à 2 colonnes sur les tablettes (ex: sous 1024px) */
@media (max-width: 1024px) {
    .wp-block-post-template.is-layout-grid.columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Passage à 1 colonne sur les mobiles (ex: sous 768px) */
@media (max-width: 768px) {
    .wp-block-post-template.is-layout-grid.columns-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}