/*
Theme Name: Divi-child
Description: Theme enfant de Divi. Vous pouvez maintenant effectuer vos modifications en toute sécurité.
Author: WPMarmite
Author URI: https://wpmarmite.com
Template: Divi
Version: 1.0
*/
/* =========================
   HEADER GLOBAL
========================= */

.site-header {
    background: #ffffff;
    position: relative;
}


.site-header__inner{
  display:flex;
  gap: 50px;
  justify-content: space-around;
  align-items:center;
  width: 100%;
  max-width: none;      /* <-- supprime la limite 1200 */
  margin: 0;            /* <-- supprime le centrage */
  padding: 18px 100px;   /* garde un padding léger */
  position: relative;
}

/*VAGUE TOP SECTION*/
.bg-wave {
  position: relative !important;
  /* z-index: 1 !important; */
    position: relative; /* 🔴 obligatoire pour ancrer ::after */
  overflow: visible;  /* permet au SVG de déborder si besoin */
}
.bg-wave::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* ou -20px si tu veux qu’il déborde */

  width: 100%;
  height: 80px; /* 🔴 obligatoire sinon rien ne s’affiche */

  background-image: url("/assets/svg/wave-header.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center bottom;

  pointer-events: none;
  z-index: 2;
}

/* =========================
   LOGO
========================= */

.site-header__logo img {
  height: 80px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* =========================
   MENU PRINCIPAL
========================= */

.site-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 70px;
}

.site-menu > li {
    position: relative;
}

.site-menu > li > a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #333;
    padding: 6px 0;
    display: block;
    white-space:nowrap;
}

/* État actif */
.site-menu > li.current-menu-item > a,
.site-menu > li > a:hover {
    color: #4c6b2f;
}
.site-menu > li > a::after,
.site-menu > li > a::before,
.site-menu > li > span:not(.menu-parent)::after,
.site-menu > li > span:not(.menu-parent)::before{
  content: none !important;
}

.site-menu > li.menu-item-has-children > .menu-parent{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-menu > li.menu-item-has-children > .menu-parent::after{
  content: "" !important;
  display: inline-block;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-left: 4px;
}

/* 4) Chevronouvert */
.site-menu > li.menu-item-has-children:hover > .menu-parent::after,
.site-menu > li.menu-item-has-children:focus-within > .menu-parent::after{
  transform: rotate(-135deg);
}

/* 5) Chevron mobile */
.mobile-menu .menu-item-has-children.open > .menu-parent::after{
  transform: rotate(-135deg);
}
/* =========================
   SOUS-MENU (Services)
========================= */

.site-menu .sub-menu {
    position: absolute;
    top: 50%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    list-style: none;
    margin: 10px 0 0;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

.site-menu li:hover > .sub-menu {
    display: block;
}

.site-menu .sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
}

.site-menu .sub-menu li a:hover {
    background: #f5f5f5;
    color: #4c6b2f;
}

/* =========================
   TÉLÉPHONE (PASTILLE)
========================= */

.site-header__phone {
    position: absolute;
    top: -3px;
    right: 100px;
    background: #4c6b2f;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 2px;
    line-height: 1;
}

/* =========================
   RESPONSIVE
========================= */
/* ===== MOBILE OVERLAY MENU ===== */
/* ===== BOUTON HAMBURGER ===== */
.site-header__toggle{
  position: relative;
  z-index: 100000;
  pointer-events: auto; 
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-header__toggle span{ 
  display: block; 
  width: 34px; 
  height: 4px; 
  background: #4c6b2f; 
  pointer-events: none; 
}

.mobile-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  height: 80vh !important;
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.site-header.is-open .mobile-overlay{
  transform: translateX(0);
}

.mobile-overlay[hidden]{
  display: none;
}

/* Quand ouvert */
.mobile-overlay.is-open{
  transform: translateY(0);
  pointer-events: auto;
}

/* Top bar overlay (logo + close) */
.mobile-overlay__top{
  padding: 22px 20px 10px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px; /* espace logo ↔ croix */
}

.mobile-overlay__logo img{
  height: 58px;
  width: auto;
  display: block;
}

.mobile-overlay__close{
  background: transparent;
  border: 0;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  color: #4c6b2f;
  padding: 6px 10px;
}
.site-header.is-menu-open .site-header__toggle{
  display:none !important;
}

/* Menu centré */
.mobile-overlay__inner{
  display: flex;
  justify-content: center;
  padding: 20px 20px 40px;
}


/* Liste */
.mobile-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}


.mobile-menu li{
  margin: 16px 0;
  border: 0 !important; 
}

.mobile-menu a{
  display: inline-block;
  padding: 0 !important;       
  border: 0 !important;        
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  font-size: 16px;
  color: #333;
}
/* Par défaut (desktop) : hamburger caché */
.site-header__toggle{
  display: none;
}

@media (max-width: 1024px){
  .site-header__inner{
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .site-header__toggle{
    display: block;
    margin: 0;
    gap: 12px;
  }

  /* cache le menu desktop en mobile/tablet */
  .site-header__nav{
    display:none;
  }
.site-header{
    position: relative;
  }
  /* ✅ Numéro centré UNIQUEMENT en mobile/tablet */
  .site-header__phone{
    position: absolute;
    margin: 0;
    display: inline-block;
    order: -1;
    right: auto;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100002;

  }
  .footer-main{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
  }

  .footer-right{
    justify-content: center;
  }

  .footer-badges{
    justify-content: center;
  }
}
/* =====================================
FOOTER 
====================================== */

.footer-custom{
  background: #ffffff;
  border-top: 1px solid #ffff;
  color: #333;
}

.footer-custom .container{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 35px 0;
}

.footer-col{
  min-width: 0;
}

/* Colonne gauche (logo) */
.footer-left img{
  display: block;
  width: 260px;       /* ajuste si besoin */
  max-width: 100%;
  height: auto;
}

/* Colonne centre (adresse) */
.footer-center{
  flex: 1;
  max-width: 360px;
}

.footer-addr{
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
}

.footer-addr a{
  color: #333;
  text-decoration: none;
}

.footer-addr a:hover{
  text-decoration: underline;
}

/* Colonne droite (badges) */
.footer-right{
  display: flex;
  justify-content: flex-end;
  margin-left: 0;
}


/* Bandeau bottom */
.footer-bottom{
  border-top: 1px solid #e5e5e5;
  background: #efefef;
}

.footer-bottom .container{
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-bottom a{
  color: #333;
  text-decoration: none;
  font-size: 13px;
}

.footer-bottom a:hover{
  text-decoration: underline;
}

.footer-bottom .sep{
  color: #777;
}
/* Force uniquement ce bouton */
.btn-custom.et_pb_button{
  background: #4c6b2f !important;
  color: #fff !important;
  font-size: 16px !important;
  padding: 14px 22px !important;
}
.site-menu > li > .menu-parent{
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #333;
  padding: 6px 0;
  display: block;
  cursor: default;
}

/* SVG inline responsive */
svg.Calque_1{
  display: block;
  width: 100%;
  height: auto;
}
/* Menu mobile - overlay caché par défaut */
.mobile-overlay {
  position: fixed;
  top: 25px;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  /* Caché par défaut */
  transform: translateY(-100%);
  transition: transform 0.9s ease;
}

/* Menu mobile visible quand le header a la classe "is-open" */
.site-header.is-open .mobile-overlay {
  transform: translateY(0);
}

/* Ou si tu préfères utiliser l'attribut hidden */
.mobile-overlay[hidden] {
  display: none;
}

.mobile-overlay:not([hidden]) {
  display: block;
}

/* Style du contenu du menu */
.mobile-overlay__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.mobile-overlay__close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-overlay__inner {
  padding: 2rem 1rem;
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid #fff;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

/* ===== CONTENU DU MENU MOBILE ===== */
.mobile-overlay__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.mobile-overlay__top img {
  height: 80px;
  width: auto;
}

.mobile-overlay__close {
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  color: #4c6b2f;
}

.mobile-overlay__inner {
  padding: 2rem 1.5rem;
  overflow-y: auto;
  max-height: calc(50vh - 120px);
}

/* ===== LISTE DU MENU MOBILE ===== */
.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid #e5e5e5;
}

.mobile-menu > li > a,
.mobile-menu > li > .menu-parent {
  display: block;
  padding: 1.2rem 0;
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu > li > a:hover {
  color: #4c6b2f;
}

/* ===== SOUS-MENUS MOBILES ===== */
.mobile-menu .sub-menu {
  list-style: none;
  padding-left: 1.5rem;
  display: none;
  background: #f9f9f9;
  margin: 0;
}

.mobile-menu .menu-item-has-children.open > .sub-menu {
  display: block;
}

.mobile-menu .sub-menu li {
  border-bottom: 1px solid #e0e0e0;
}

.mobile-menu .sub-menu a {
  padding: 0.8rem 0;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
}
/* Logo footer gauche : support IMG ou SVG inline */
.footer-left svg{
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}
.site-header.is-open .site-header__toggle{
  display: none !important;
}
/* Séparation réelle des barres du hamburger */
.site-header__toggle span{
  display: block;
  width: 34px;
  height: 3px;
  background: #4c6b2f;
}

/* espace entre les barres */
.site-header__toggle span:not(:last-child){
  margin-bottom: 10px;
}