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



/* -------------------------------------------------------------------------- */
/* 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);
}
header .wp-block-navigation__responsive-container {
  background-color: black !important;
}
/* On prépare le conteneur du logo */
.wp-block-site-logo {
    position: relative; /* Indispensable pour placer la pastille derrière */
    display: inline-block !important;
    padding: 30px; /* Crée l'espace nécessaire pour que la pastille soit visible dessous */
    z-index: 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;
}

.btn-tel a{
  transition: 0.4s all cubic-bezier(0.5, 0, 0.58, 1);
}
.btn-tel a:hover {
  background-color: white !important;
  color: var(--wp--preset--color--primary) !important ;
}
.btn-nav-header{
    color: var(--wp--preset--color--primary);
    border: 1px solid;
    border-color: var(--wp--preset--color--primary) !important;
    border-radius: 100px;
    font-size: var(--wp--preset--font-size--small) !important;
    font-weight: 800;
  transition: 0.4s all cubic-bezier(0.5, 0, 0.58, 1);
}
.btn-nav-header a{
    width: 220px;
    height: 40px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}
.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover{
  color: var(--wp--preset--color--primary);
  text-decoration: none !important;
}

.btn-nav-header:hover{
  background-color: var(--wp--preset--color--primary) !important;
}
.btn-nav-header:hover span{
  color: white !important;
}
@media (min-width: 965px){ 
  .nav-mobile{
    display: none !important;
  }
}

@media (max-width: 965px) {
  .nav-ordi{
    display: none !important;
  }
}

/*
header .wp-block-site-logo:before{
	content: "";
	background: url(img/cercle.svg) no-repeat -100px center;
	background-size: contain;
	display: block;
	position: fixed;
	width: 396px;
	height: 396px;
	z-index: 1;
	top: -150px;
	overflow: visible;
	
}
*/
header .wp-block-site-logo a{
	z-index: 2;
}


.main-tool-bar--scrolled .wp-block-site-logo::before{
	opacity: 0;
}
header.main-tool-bar--scrolled .background-header{
  border-top: 20px solid !important;
  border-top-color: white !important;
	background-color: #000000b8 ;
}


@media (max-width: 965px) {
  header.main-tool-bar--scrolled .top-menu{
    display: none !important ;
  }
  .wp-block-site-logo {
    padding: 20px 0 0 30px !important;
  }

  .footer-top, .footer-top .wp-block-navigation__container, .footer-bottom {
    justify-content: center !important;
  }
}

/*
header .wp-block-site-logo img{
	height: 113px;
	transition: 0.4s all cubic-bezier(0.5, 0, 0.58, 1);
}

header.main-tool-bar--scrolled .wp-block-site-logo{
	padding: 0px 30px 0px 30px;
}

header.main-tool-bar--scrolled .wp-block-site-logo img {
	height: 70px;
}

header.open { height: 100%; }

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{
	color: rgba(255, 255, 255, 0.26);
}
*/
/* État actif menu / archive projets */
.current-menu-item,
.post-type-archive-projets .projets, .single-projets .projets{
	color: var(--wp--preset--color--primary);
}

.ariane_group{
	z-index: 100 !important;
	position: relative;
}


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

.back-picto-logo-1::before{
  position: absolute;
  content: "";
  background-image: url(/wp-content/uploads/2026/04/picto-adone-blanc.svg);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
  width: 500px;
  height: 500px;
  right: 20%;
  top: 0;
}
.back-picto-logo-2::before{
  position: absolute;
  content: "";
  background-image: url(/wp-content/uploads/2026/04/picto-adone-marron.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 350px;
  height: 350px;
  left: 15%;
  top: 70px;
  Z-INDEX: -1;
}
.titre-underline {
line-height: 130%;
}

.titre-underline em{
  text-decoration: none !important; 
  border-bottom: 3px solid currentColor; 
  padding-bottom: 0px; 
  display: inline-block; 
  line-height: 1;
}
@media (max-width: 965px) {
 .back-picto-logo-2::before{
    display: none !important; 
 } 
}

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

.lines { position: relative; will-change: transform; }
.split-line,
.line-wrap,
.line { display: block; overflow: hidden; }

.line-inner {
  display: inline-block;
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hover d’expérience */
.exp .line {
  transition: all .5s ease-in-out;
  cursor: pointer;
  transform-origin: left;
}
.exp .line:hover { transform: scale(1.1); }

/* -------------------------------------------------------------------------- */
/* 7) Blocs divers                                                            */
/* -------------------------------------------------------------------------- */
.banner-top{
  position: relative;
}
.banner-top::after{
  position: absolute;
  content: "";
  background-image: url(/wp-content/uploads/2026/04/ville-ss-fond.avif);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: -12vh;
}
.banner-top .wp-block-cover__inner-container{
  bottom: 13vh;
}

.picto-home .wp-block-column{
  min-height: 250px !important;
  min-width: 250px !important;
}
.index-up{
  position: relative;
  z-index: 2;
}
.index-down{
  position: relative;
  z-index: 1;
}

@media (max-width: 965px) {
  .col-padding{
    padding-top: 0 !important;
  }
  .background-fonda-photo{
    padding-bottom: 800px !important;
  }
  .fonda-photo{
    margin-top: -800px !important;
  }
  .picto-home {
    align-content: center !important;
  }
}


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

.accordion { width: 250px; margin: 15px; box-shadow: 0 8px 17px rgba(0,0,0,.2); }
.accordion-menu { color: #fff; padding: 10px; cursor: pointer !important; user-select: none; position: relative; }
.accordion-content { height: 0; overflow: hidden; font-size: 14px; width: 60%; }
.accordion-content.expanded { height: 0; overflow: hidden; } /* (semble volontaire) */
.accordion-plus,
.accordion-minus { position: absolute; top: 7px; right: 8px; }

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


.gform_footer{
  justify-content: center !important;
}
.gform_button{
  padding: 0 50px !important;
  font-family: 'neulis-cursive' !important;
  font-size: x-large !important;
  font-weight: 700 !important;
}
.ginput_container textarea{
  border-radius: 15px !important;
}
.ginput_container input,.ginput_container textarea{
  font-weight: 600 !important;
}
.gform_fields{
  gap: 12px !important;
}


/* -------------------------------------------------------------------------- */
/* 12) Mise en page Contact                                                   */
/* -------------------------------------------------------------------------- */



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

@media (max-width: 965px) {
  .wp-block-columns {
    flex-direction: column !important;
    align-items: center !important;
    padding: 10px !important;
  }
  .wp-block-columns .wp-block-column {
      margin-bottom: 30px;
      padding-top: 0 !important;
    }
}

@media (min-width: 650px){ 
}

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

