/*
 Theme Name: Astra Child
 Theme URI: https://example.com/astra-child
 Description: Thème enfant pour Astra
 Author: Ton Nom
 Author URI: https://example.com
 Template: astra
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: astra-child
*/


body a:focus{
    outline: none;
}

.ehf-header #masthead #main-header{
    position:fixed;
}

.logo-difference {
 mix-blend-mode: difference;
  filter: invert(1);
  transition: all 0.3s ease;
}
.dark-section{
    transition: all 0.3s ease;
}

.n2-ss-slider {
    min-height: 100vh!important;
}

/*.site-logo a {
  backdrop-filter: blur(2px) saturate(1.4);
  -webkit-backdrop-filter: blur(2px) saturate(1.4);
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 5px;
}*/

/* ---- BOUTON BURGER AVEC TEXTE ---- */
.menu-toggle {
  position: fixed;
  top: 25px;
  right: 50px;
  background: #fff;
  border-radius: 50px;
  padding: 10px 18px 10px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 10030;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: #f7f7f7;
}

.menu-toggle:active, .menu-toggle.active{
    box-shadow: none;
    display: flex !important;
    opacity: 1 !important; visibility: visible !important;
}

body.menu-open .menu-toggle{
  position: fixed;
  top: 25px;
  right: 50px;
  z-index: 10030;
}

/* ---- LIGNES BURGER ---- */
.menu-icon {
  position: relative;
  width: 20px;
  height: 5px;
}

.menu-icon span,
.menu-icon span::before,
.menu-icon span::after {
  content: '';
  width: 20px;
  height: 2px;
  background: #333;
  position: absolute;
  left: 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}
 
.menu-icon span::before {
  transform: translateY(-6px);
}
.menu-icon span::after {
  transform: translateY(6px);
}

/* ---- MOT "MENU" ---- */
.menu-label {
  font-family: "Cormorant", Sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 18px;
  color: #222;
  font-style: italic;
  text-transform: uppercase;
}

/* ---- EFFET CROIX ---- */
.menu-toggle.active .menu-icon span {
  background: transparent;
}
.menu-toggle.active .menu-icon span::before {
  transform: rotate(45deg);
}
.menu-toggle.active .menu-icon span::after {
  transform: rotate(-45deg);
}

/* --- transition douce du texte Menu ↔ Fermer --- */
.menu-label {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Empêche les rebonds et scroll de fond pendant le lock */
.no-scroll {
  overscroll-behavior: none;
  touch-action: none;
}

/* L’overlay doit couvrir 100% du viewport (et scroller en interne si contenu long) */
.menu-overlay {
  position: fixed; inset: 0;
  overflow: auto; /* l’overlay peut défiler, mais le body est bloqué */
  /*display: none;*/
}
.menu-overlay.active { display: block; }

/* Fond cliquable pour fermer */
.menu-bg {
  position: fixed; inset: 0;
  display: none;
}
.menu-bg.active { display: block; }

/* (Optionnel) petite transition du libellé */
.menu-label.fade-out { opacity: .3; transition: opacity .15s; }


.menu-label.fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

/* ---- MENU LATERAL ---- */
.menu-overlay {
  position: fixed;
  top: 20px;
  right: 40px;
  left: auto !important;  
  width: 520px;
  height: 840px;
  background: #fff;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0px 20px 80px rgba(0,0,0,0.15);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease;
  z-index: 1001;
}

.menu-overlay.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay p {
    margin-bottom: 0.75em;
}

/* ---- FOND ASSOMBRI ---- */
.menu-bg {
  position: fixed ;
  inset: 0;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
  z-index: 1000;
}

.menu-bg.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
    transition: opacity .35s ease;

}

/* ---- CONTENU DU MENU ---- */
.menu-overlay nav {
  margin-top: 40px;
}

.menu-overlay nav a {
  display: block;
  font-family: "Cormorant", Sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 40px;
  color: #000;
  text-decoration: none;
  margin: 30px 0;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}

.menu-overlay.active nav a {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay nav a:hover {
  color: #b38b59;
}

/* ---- SOUS-MENU ---- */
.menu-overlay nav .submenu a {
  margin-left: 20px;
  font-size: 24px;
  font-family: "Cormorant", Sans-serif;
  font-weight: 400;;
  color: #646464;
  margin: 10px 0;
}

.hero-box {
  width: 100%;
  height: 260px;
  background-image: url('/wp-content/uploads/2025/10/BA9A95D2-BD9D-4A53-8631-F84554AA1B4B_1_105_c-copie.jpg'); /* Mets ton image ici */
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Overlay sombre doux */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Légèrement fumé */
  backdrop-filter: blur(1px);      /* Ultra subtle */
  pointer-events: none;
}

/* Texte centré */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

/* Titre */
.hero-content p {
  font-family: "Cormorant", Sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0;
}

/* Sous-titre */
.hero-content .menu-sous-titre {
  font-family: "Cormorant", Sans-serif;
  font-size: 20px;
  font-style: italic;
  margin-top: 12px;
  letter-spacing: 0px;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-box {
    height: 150px;
    border-radius: 15px;
  }
  
  .hero-content p {
    font-size: 30px;
  }
  
  .hero-content .menu-sous-titre {
    font-size: 18px;
  }
  .menu-overlay {
    padding: 30px;
  }
}


/* ---- CONTACT ---- */
.menu-contact {
  margin-top: 40px;
  font-family: "Cormorant", Sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: #555;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.menu-overlay.active .menu-contact {
  opacity: 1;
  transform: translateY(0);
}

.menu-contact a {
  color: #000;
  text-decoration: none;
}

.menu-contact a:hover {
  color: #b38b59;
}

@media (max-width: 767px){
  .menu-toggle{
    top: 15px;
    right: 15px;
    padding: 15px;
  }
  .menu-label {
  display: none;
}
.menu-overlay{
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    border-radius: 0;
}
body.menu-open .menu-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10030;
}
}


/* ----- Section Slider ----- */
#n2-ss-2, #n2-ss-2 .n2-ss-slide-background, #n2-ss-2 .n2-ss-slide {
  height: 100vh !important;
}

@media (max-width: 768px) {
  #n2-ss-2 {
    height: 100vh !important;
  }
}


/* ----- Section Services ----- */

/* ===== Carrousel mobile générique, sans dépendre des classes Elementor ===== */
@media (max-width: 767px) {

  /* Le RAIL (parent direct des 3 cartes) */
  .mc-rail {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    /* forcer les variables flex d'Elementor s'il y en a */
    --flex-direction: row !important;
    --flex-wrap: nowrap !important;

    gap: 16px;
    padding: 0 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Les SLIDES (chacune des 3 cartes) */
  .mc-rail > .mc-slide {
    flex: 0 0 85% !important;   /* largeur d’une slide */
    max-width: 85% !important;
    scroll-snap-align: start;
  }

  /* Masquer la scrollbar */
  .mc-rail::-webkit-scrollbar { display: none; }
  .mc-rail { -ms-overflow-style: none; scrollbar-width: none; }
}

/* (Option debug : à enlever quand OK)
.mc-rail { outline: 2px dashed red; }
.mc-rail > .mc-slide { outline: 1px solid blue; }
*/


/* ----- Slidder Img ----- */
/* ----- Section spacing ----- */
.portfolio-slider { position: relative;}

/* Arrows (unchanged) */
.portfolio-slider .portfolio-arrows { display:flex; gap:14px; justify-content:flex-end; align-items:center; margin-top:-48px; }
.portfolio-slider .portfolio-arrows .p-prev,
.portfolio-slider .portfolio-arrows .p-next { background:transparent; border:0px solid #111; padding:6px 10px; line-height:1; cursor:pointer; border-radius:0px; transition:transform .15s, background .15s; box-shadow: none; font-size: 32px; font-family: emoji; }
.portfolio-slider .portfolio-arrows .p-prev:hover,
.portfolio-slider .portfolio-arrows .p-next:hover { transform:translateY(-1px); background:none; color:#a0a0a0; }

.portfolio-slider .portfolio-arrows .p-prev:focus, .portfolio-slider .portfolio-arrows .p-next:focus{
  color:#a0a0a0;
}

/* ----- RAIL (supports both classic and containers) ----- */
.portfolio-rail > .elementor-container,
.portfolio-rail > .elementor-row,
.portfolio-rail > .e-con,              /* Flexbox Container wrapper */
.portfolio-rail                         /* fallback if you put slides directly inside */
{
  display: flex !important;
  display: flex !important;
  flex-wrap: nowrap !important;              
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;                        
  padding: 8px 6px;
}

/* hide scrollbar */
.portfolio-rail > .elementor-container::-webkit-scrollbar,
.portfolio-rail > .elementor-row::-webkit-scrollbar,
.portfolio-rail > .e-con::-webkit-scrollbar,
.portfolio-rail::-webkit-scrollbar { display: none; }
.portfolio-rail > .elementor-container,
.portfolio-rail > .elementor-row,
.portfolio-rail > .e-con,
.portfolio-rail { -ms-overflow-style: none; scrollbar-width: none; }

/* ----- SLIDES (supports both classic and containers) ----- */
/* Prefer .portfolio-item if you set it; else column/container/widget fallbacks */
.portfolio-rail .portfolio-item,
.portfolio-rail .elementor-column,
.portfolio-rail > .e-con > .e-con,                /* container inside container */
.portfolio-rail > .elementor-container > .elementor-column,
.portfolio-rail > .elementor-row > .elementor-column,
.portfolio-rail > .e-con > .elementor-widget-image,  /* if images are direct widgets */
.portfolio-rail > .e-con > .e-con > .elementor-widget-image
{
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Harmonize image ratio */
.portfolio-rail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;   /* adjust if you prefer 3/2, 4/3… */
  object-fit: cover;
  display: block;
  border-radius: 0px;
} 



/* Widths per breakpoint */
@media (min-width: 1025px) { /* ~3 visible */
  .portfolio-rail .portfolio-item,
  .portfolio-rail .elementor-column,
  .portfolio-rail > .e-con > .e-con,
  .portfolio-rail > .e-con > .elementor-widget-image {
    width: calc((100% - 3*88px) / 2);
  }
}
@media (min-width: 768px) and (max-width: 1024px) { /* ~2 visible */
  .portfolio-rail .portfolio-item,
  .portfolio-rail .elementor-column,
  .portfolio-rail > .e-con > .e-con,
  .portfolio-rail > .e-con > .elementor-widget-image {
    width: calc((100% - 18px) / 2);
  }
}
@media (max-width: 767px) { /* 1.2 visible */
  .portfolio-rail .portfolio-item,
  .portfolio-rail .elementor-column,
  .portfolio-rail > .e-con > .e-con,
  .portfolio-rail > .e-con > .elementor-widget-image {
    width: 82%;
  }
  .portfolio-slider .portfolio-arrows { margin-top:0px; }

}

/* drag cursor on desktop */
.portfolio-rail .is-grabbing { cursor: grabbing !important; }

/* Page interne */
.cadre-tarifs{
  height: 100% !important;
}



@media (min-width: 768px) {
 /* Page interne */
.cadre-tarifs{
  height: 100% !important;
  margin: auto;
} 
}

@media (max-width: 544px){
  .services-button{
  width: 100px;
  line-height: 18px !important;
}
}

@media (max-width: 767px){
.services-button{
  width: 100px;
  line-height: 18px !important;
}
}


/* ===========================
   CONTACT FORM 7 — 2 COLONNES
   =========================== */

/* Conteneur principal en grille 2 colonnes */
.wpcf7 form .cf7-two-cols{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0 20px;
}

/* Aplatir tous les wrappers que CF7 / Elementor peuvent injecter */
.wpcf7 form .cf7-two-cols .cf7-row,
.wpcf7 form .cf7-two-cols .cf7-row > p{
  display: contents !important;
}

/* Chaque champ (label) : base */
.wpcf7 form .cf7-two-cols .cf7-field{
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Largeurs : demi / pleine */
.wpcf7 form .cf7-two-cols .cf7-field.half{ grid-column: span 1 !important; }
.wpcf7 form .cf7-two-cols .cf7-field.full{ grid-column: 1 / -1 !important; }

/* Assurer que le textarea (full) prend bien 2 colonnes quel que soit le wrapper */
.wpcf7 form .cf7-two-cols .cf7-row > .cf7-field.full,
.wpcf7 form .cf7-two-cols .cf7-row > p > .cf7-field.full{
  grid-column: 1 / -1 !important;
}

/* Pleine largeur à l’intérieur du wrap CF7 */
.wpcf7 form .cf7-two-cols .cf7-field .wpcf7-form-control-wrap,
.wpcf7 form .cf7-two-cols .cf7-field textarea{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Fixer la hauteur du textarea "message" */
.wpcf7 form .cf7-two-cols textarea[name="message"]{
  height: 180px !important;      /* choisis ta valeur */
  min-height: 180px !important;  /* évite qu’un style remonte plus haut */
  max-height: 180px;             /* optionnel */
  resize: vertical;              /* on peut encore l’agrandir à la main si besoin */
}


/* ===== Style visuel proche de ta maquette ===== */
.wpcf7 form .cf7-two-cols label{
  font-family: "Cormorant", serif;
  font-weight: 400;
  font-size: 18px;
  color: #000;
  letter-spacing: .2px;
}

/* Inputs / textarea */
.wpcf7 form .cf7-two-cols input[type="text"],
.wpcf7 form .cf7-two-cols input[type="email"],
.wpcf7 form .cf7-two-cols input[type="tel"],
.wpcf7 form .cf7-two-cols textarea{
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #C3C3C3;
  border-radius: 0px;
  background: #fff;
  font-family: "Cormorant", serif;
  font-size: 16px;
  color: #000;
}

/* Placeholder */
.wpcf7 form .cf7-two-cols ::placeholder{
  color: #9a9a9a; opacity: 1;
}

/* Focus */
.wpcf7 form .cf7-two-cols input:focus,
.wpcf7 form .cf7-two-cols textarea:focus{
  outline: none;
  border-color: #000;
}

/* Note "* Obligatoire" */
.wpcf7 form .cf7-two-cols .cf7-note{
  grid-column: 1 / -1;
  margin: -16px 0 10px;
  font-family: "Cormorant", serif;
  font-size: 14px;
  color: #333;
}

/* Centrer le bouton d’envoi */
.wpcf7 form .cf7-two-cols .submit-row{
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;     /* fallback si le flex est écrasé */
}

/* Bouton lui-même : centré et taille propre */
.wpcf7 form .cf7-two-cols .submit-row input[type="submit"]{
  display: inline-block !important;
  margin: 0 auto !important;
  background: #000;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 0;
  font-family: "Cormorant", serif;
  font-size: 18px;
  letter-spacing: .3px;
  cursor: pointer;
}

.wpcf7 form .cf7-two-cols .submit-row input[type="submit"]:hover{
  opacity: .9;
}

/* CF7 enveloppe souvent le bouton dans un <p> : on neutralise */
.wpcf7 form .cf7-two-cols .submit-row > p{
  display: contents !important;
  margin: 0 !important;
}


/* ===== Responsive : mobile en 1 colonne ===== */
@media (max-width: 767px){
  .wpcf7 form .cf7-two-cols{
    grid-template-columns: 1fr;
  }
  .wpcf7 form .cf7-two-cols .cf7-field.half{
    grid-column: 1 / -1 !important;
  }
  .wpcf7-spinner{
    display: none!important;
  }
}

/* Home logo slider */

/* Slider logos infini */
/* Force le widget HTML à prendre toute la largeur */
/*.elementor-widget-html {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}*/

/* Assure que le slider occupe toute la largeur */
/*.logo-slider {
  width: 100% !important;
  height: 100px !important;
  position: relative !important;
  overflow: hidden;
}

/* Track animée 
.logo-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
 animation: scroll var(--speed, 40s) linear infinite;
 width: max-content;
}

.logo-track .logos {
  display: flex;
}

.logo-track img {
  height: 35px;
  margin: 0 30px;
  flex-shrink: 0;
  display: inline-block;
  filter: grayscale(100%);
  opacity: 0.85;
}

/*@keyframes scroll {
  0% {
    transform: translateX(0) translateY(-50%);
  }
  100% {
    transform: translateX(calc(-50%)) translateY(-50%);
  }
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50%));
  }
}


@media (max-width: 768px) {
  .logo-track img {
    height: 30px;
    margin: 0 20px;
  }
}
*/

/* ============================
   BC LOGO SLIDER - CLEAN FIX
============================ */

.bc-logo-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.bc-logo-track,
.bc-logo-track-clone {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 50px;            /* espace entre logos */
  will-change: transform;
}

.bc-logo-track-clone {
  margin-top: -35px;  /* Ajuster ce nombre pour plus ou moins de décalage */
  margin-left: 50px;
}

.bc-logo-track img,
.bc-logo-track-clone img {
  height: 35px;
  width: auto;
  flex-shrink: 0;
  margin: 0;
  display: inline-block;
}

.bc-logo-track img,
.bc-logo-track-clone img {
  margin-right: 0 !important;
}




/*.bc-logo-slider {
  overflow: hidden !important;
  width: 100% !important;
  height: 80px;
  display: flex;
  align-items: center;
  position: relative;
}

.bc-logo-slider * {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: content-box !important;
}

.bc-logo-track,
.bc-logo-track-clone {
  display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    gap: 50px !important;
    height: 100%;
    will-change: transform;
    margin: 0 !important;
    padding: 0 !important;
}

.bc-logo-track img,
.bc-logo-track-clone img {
    height: 35px;
    width: auto;
    flex-shrink: 0 !important;
    display: block !important;
}

.bc-logo-track img,
.bc-logo-track-clone img {
  max-width: 140px !important;
  width: 140px !important;
  height: auto !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
  vertical-align: middle !important;
  backface-visibility: hidden !important;
  transform: translateZ(0) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}*/



/* Slider Services */

/* Structure identique au portfolio */
.enviro-slider .portfolio-rail {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.enviro-slider .portfolio-rail::-webkit-scrollbar {
  display: none;
}

/* SLIDE STYLE like portfolio */
.enviro-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.enviro-item img {
  width: 100%;
  height: auto;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
  transition: transform .25s ease;
}

/* LABEL (nouveau) */
h3.enviro-label {
  margin-top: 12px;
  font-size: 30px;
  text-align: center;
  color: #1a1a1a;
}

/* Ajuste l'espacement comme ton portfolio */
.enviro-slider .elementor-container {
  display: flex;
  gap: 30px; /* même gap que ton slider portfolio */
  align-items: flex-start;
}

/* Flèches minimalistes */
.enviro-slider .portfolio-arrows {
  display: flex;
  gap: 20px;
  margin-right: 50px;
}

.enviro-slider .portfolio-arrows button {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.2s;
}

.enviro-slider .portfolio-arrows button:hover {
  opacity: 1;
}


/****** PORTFOLIO ********/

.elementor-245 .elementor-element.elementor-element-25b63a7 .ha-filter{
  text-align: center!important;
}
.ha-filter__item--active, .ha-filter__item:active{
  background-color: #000!important;
  color: #ffffff!important;
}

.ha-filter__item:hover{
  background-color: #000!important;
  color: #ffffff!important;
}

/* Appliquer une transition fluide pour l'apparition des éléments */
.jha-justified-grid__item {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.ha-justified-grid__item.is-visible {
  opacity: 1;
  transform: scale(1);
}

.your-grid-item-selector {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 767px){
  .enviro-slider .portfolio-arrows {
  margin-right: 0px;
  justify-content: center;
}
}

.footer-link a{
  color:#ffffff!important;
}

.footer-link a:hover{
  opacity: 0.6;
}