/* @import url("https://fonts.googleapis.com/css2?family=News+Cycle:wght@400;700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"); */

:root {
  --green :rgb(37, 172, 51);
}

/* * {
    outline: 1px solid limegreen;
  } */

  body {
    font-size: 1.6rem; /* = 16px si tu as 62.5% dans html */
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.6rem, 3vw, 1.8rem);
    line-height: 1.7;
    font-weight:400;
    position: relative;
  }

  h1, h2, h3 {
    font-family: 'News Cycle',sans-serif;
  }

  h1 {
  font-size: clamp(3.5rem, 5vw, 8rem);
  font-weight:bold;
}
  h2 {
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    font-weight: bold;
  }

  h3 {
    font-size: clamp(2.5rem, 3vw, 3.5rem);
    font-weight: 500;
  }
  

.logo {
    display: block;
    height: clamp(4rem, 3vw, 8rem); 
    width:auto;
    flex-shrink: 0;      /* empêche l'image de rétrécir */
    padding: 0 1rem;
}

.header-background {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  /* fallback */
  min-height: 100vh;

    background-image: url("../images/ai-generated-8550769_1280.webp");
    background-color: black;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
   
  }

@media (min-width:768px){
  .header-background {
    min-height: 100vh;
    background-attachment: fixed;
  }
}
  

nav {
    /* border: 2px dashed red; */
    width: 100%;
    background-color: rgba(31, 41, 55, 0.9);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    position: relative;
    z-index: 2;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    top:0;
    left: 0;
    position: fixed;
  
}  


.nomets {
    font-family: 'News Cycle',sans-serif;
    font-weight: bold;
    font-size: clamp(1.7rem, 3vw, 1.9rem);
  }

.nomets:hover {
  color: rgb(226, 221, 221);
}


/* Menu principal */
.main-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    position:relative;
   
}


nav a {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    text-decoration: none;
    color: white;

       
  }
  
.main-menu a:hover {
  color: var(--green);
  text-decoration:overline;



}

/* ========== GESTION MENU BURGER ========== */
  /* Bouton burger */
  .burger {
    font-size: 2.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
    z-index: 100;
  }
  
  /* Animation */
  .main-menu {
    transition: transform 0.3s ease-in-out;
  }
  
  @media (max-width: 768px) {
    .burger {
      display: block;
    }
  
    .main-menu {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      right: 0;
      width: 100%;

      background-color: rgba(12, 43, 6, 0.867);
      padding: 2rem;
      transform: translateY(-200%);
      transition: transform 0.3s ease-in-out;
      z-index: 2000;
    }
  
    .main-menu.show {
      transform: translateY(0);
      
    }
  
    .main-menu li {
      margin-bottom: 1rem;
    }
  
    /* .dropdown-toggle {
      background: none;
      border: none;
      color: white;
      font-size: 1.6rem;
      cursor: pointer;
      padding: 0;
    } */
  

  }

/* ========== OVERLAY ========== */
  .overlay-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
.overlay {
  width: 100%;
  max-width: clamp(30rem, 90%, 120rem);
  background-color: rgba(7, 7, 7, 0.5);
  padding: clamp(2rem, 5vw, 7rem);
  text-align: center;
  color: white;
  border-radius: 0.5rem;
}

.overlay h1, .overlay p {

    text-align: center;
    color: rgb(255, 255, 255);

}

.overlay h1 {
  font-family: 'News Cycle',sans-serif;
    font-size: clamp(3.5rem, 5vw, 8rem);
    padding: 2.5rem 0;
    /* font-weight: 300; */
    letter-spacing: 0.1rem;
    line-height: 1;
     
  }

.overlay span {
  font-family: 'News Cycle',sans-serif;
    font-size: clamp(2rem, 3vw, 4rem);
color: rgba(255, 255, 255, 0.64);
    /* color: transparent;
    -webkit-text-stroke: 1px white; 
    /* Contour blanc */
    /* text-stroke: 0.5px white;          */ 
    /* Pour compatibilité éventuelle */
    /* font-weight: 300; */
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}


  /* ========== FLECHE SCROLL ========== */

  .scroll-down {
    /* position: relative; */
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: white;
    animation: bounce 2s infinite;
    text-decoration: none;
    z-index: 1;
    cursor: pointer;
  }
  
  @keyframes bounce {
    0%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(8px);
    }
  }

  
/* ========== SECTION SERVICES ========== */

.services {

  background-image: url('../images/beautiful-plant-closeup.webp');
  background-position: center;
  background-size: cover;
  color: white;
}

.services h2{
  padding-top: 10rem;
}
.services h2, .services h3 {
 text-align: center;
 line-height: 1.5;
  
}

.services > h3 {
  color: var(--green);
  text-transform: uppercase;
}


.container_services {

  margin: 0 auto;
  width: clamp(30rem, 90%, 1200rem);
  text-align: center;
  padding: 9rem 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5rem;
  
}



@media (min-width: 1024px) {
  .container_services {
    flex-direction: row;
    gap:clamp(2.5rem, 2vw, 4rem);
    flex-wrap: wrap;
    justify-content: center;
    
  }
.container_service {
  /
    flex: 1 1 45%;
    /* Garantit que chaque service occupe presque 50% */
    max-width: 45%; 
    /* Évite que le dernier élément prenne toute la ligne */  
  }
}

.service_caption img {
  display: block;
  width:clamp(4rem 5vw 8rem);
  object-fit: cover;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  height: auto;
  border-radius: 8px;

 
}

.lien_service {
  padding: 0.5rem 2rem;
  background-color: rgb(100, 67, 7);
  color: white;
  display: inline-block;
  margin: 2rem 0;
  border-radius: 0.5rem;
  transition: 
    transform 0.3s ease,
    background-color 0.3s ease;


}

.lien_service:hover {
  background-color: var(--green);
  color: white;
  transform: scale(1.08); /* grossit légèrement */
}

/* ========== CAPTION ========== */



.service_caption {
  position: relative;
  display: inline-block;
  width: 100%; /* S'assure que l'image et le caption restent ensemble */
}


  .caption {
    position: absolute;
    bottom: 0; /* Fixe en bas de l'image */
    left: 0;
    width: 100%;
    height: 30%; /* Taille contrôlée */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    opacity: 1;
    transition: all 0.3s ease-in-out;

  }

  

  .service_caption:hover .caption {
    height: 100%; /* Remplit toute l'image progressivement */
    background-color: rgba(0, 0, 0, 0.7); /* Assombri légèrement au survol */
}

/* ========== SECTION A PROPOS ========== */
.presentation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 2rem;

  flex-direction: column;
  min-height: auto;
    /* Pas de hauteur fixe ici */
}




@media (min-width: 768px) {
  .presentation {
    height: 100vh;
  }
}
.presentation, .container_presentation {
  position: relative;

  
}

.bg-video {
  position: absolute;
  background-position: center;
  object-fit: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;

  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none; /* ← pour éviter les interactions avec la vidéo */
}

.container_presentation {

  margin: 0 auto;
  text-align: center;
  z-index: 1;
  color: rgb(255, 255, 255);

  /* MODIFICATION ICI */
  width: 100%;
  max-width: 90rem; /* ← 900px max par sécurité */
  padding: clamp(2rem, 4vw, 7rem);

  background-color: rgba(0, 0, 0, 0.5);

  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.container_presentation h2 {
  margin-bottom: 8rem;
  line-height: 1;
  margin-top: clamp(1rem, 2rem, 8rem);
}


/* ========== ZONE INTERVENTION ========== */

.zone-intervention {
  /* background-color: #ffffff; */
  text-align: center;
  padding-bottom:9rem;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.container_zone {
  max-width: 90rem;
  margin: auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zone-intervention h2 {

  color: #317f13;
  padding-bottom: 8rem;
  padding-top: 10rem;
}

.zone-intervention p {

  color: #222;

}
/* ========== IMAGE ========== */
.zone-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
 


.zone-image img {

  max-width: 100%;

  max-height: 100%;
  object-fit: cover;
  opacity: 0.25;
  display: block;

}


.container_villes{
  padding-top: 3rem;
}

.container_villes ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.container_villes li a {
  text-decoration: none;
  color: #7f4d13;
  font-weight: bold;
}

/* ========== COORDONNEES ========== */
/* ========== GOOGLE MAPS ========== */

.coordonnées {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background-image: url("../images/fern-leaves-black-background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 9rem;
}
.coordonnées_container {
  max-width: 90rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.coordonnées_container h2{
  padding-top: 10rem;
}


.coordonnées_container h2, p {
  color: white; 

}

.coordonnées_container h3 {
  color: var(--green);
  padding-bottom: 9rem;

}
.coordonnées_container h2, h3 {
  line-height: 1.5;
}

/* GOOGLE MAPS */

.map-placeholder {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-top: clamp(3rem, 5vw, 6rem);
  aspect-ratio: 16 / 9;
}

/* Image statique */
.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Voile semi-transparent avec message + bouton */
.map-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  z-index: 2;
}
.map-placeholder {
  position: relative;
  z-index: 0;
}

.map-overlay p {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.map-overlay button {
  background-color: rgb(122, 122, 121);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1.4rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  
}

.map-overlay button:hover {
  background-color: rgb(66, 66, 65);
}

/* Quand le consentement est donné, on remplace tout */
.map-placeholder.active {
  padding: 0;
}

.map-placeholder.active img,
.map-placeholder.active .map-overlay {
  display: none;
}

.map-placeholder.active iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ----------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-top: clamp(3rem, 4vh,5rem);
}




.contact-address, .contact-info {
  
  font-style: normal;
  background: #0200005b;
  padding: 1rem 1.5rem;
  border-left: 4px solid #317f13;
  border-radius: 4px;
  color: #ffffff;
  line-height: 1.6;
  width: 100%;
  
  
  align-content: center;
  display: block;
  
}


@media(min-width:768px) {
  .contact {
    flex-direction: row;
    align-items: normal;
  }
  .contact-address, .contact-info {
    width: 100%;
    max-width: 48%;
  }

}
/* Bouton avec effet au survol */
.btn-contact {
  margin: 7rem 0;
  display: block;
  max-width: 30rem;
  font-size: clamp(1.8rem, 2vw,2.1rem);
  padding: 0.5rem 1rem;
  background: #317f13;
  text-align: center;
  font-weight: 500;
  color: #fffffe;
  border: 2px solid #317f13;
  border-radius: 4px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
  cursor: pointer;
}

.btn-contact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #ffffff;
  z-index: -1;
  transition: width 0.3s ease;
}

.btn-contact:hover {
  color: #317f13;
}

.btn-contact:hover::before {
  width: 100%;
}

  

/* ========== btn de retour en haut de page ========== */

.scroll-to-top {
  position: fixed;
  bottom: 30%;
  right: 0;
  background-color: var(--green);
  color: white;
  padding: 0.2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  font-size: clamp(1.5rem,2vw, 2.5rem);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.scroll-to-top:hover {
  transform: scale(1.1);
  background-color: #0bb000;
}

.scroll-to-top.visible {
  opacity: 0.5;
  pointer-events: auto;
}
.scroll-to-top.visible:hover {
  opacity: 1;

}


/* ========== COOKIES ========== */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: #222;
  color: white;
  padding: 1rem;
  font-size: 1.4rem;
  border-radius: 8px;
  z-index: 2000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease-in-out;
  max-width: 100%;
  width: auto;
}

/* Cacher la bannière */
.cookie-banner.hidden {
  display: none;
}

.cookie-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.cookie-buttons button {
  flex: 1 1 45%;
  padding: 0.6rem;
  font-size: 1.2rem;
  border: none;
  background-color: var(--green);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cookie-buttons button:hover {
  background-color: #0f0;
  color: black;
}

/* ========= VERSION LARGE ÉCRAN (≥ 600px) ========= */
@media (min-width: 600px) {
  .cookie-banner {
    left: auto;
    right: 2rem;
    bottom: 2rem;
    max-width: 320px;
    padding: 1rem 1.2rem;
  }

  .cookie-buttons {
    justify-content: flex-end;
  }

  .cookie-buttons button {
    flex: initial;
  }
}
/* ========== footer ========== */

  footer {

    background-color: black;
    
    color: white;
   


    
    
  }
  
  .container_footer {
    align-items: center;
    width: 100%;
    padding: 2rem 3rem;
    justify-content: center;
    display: flex;
    flex-direction: column-reverse;
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
    gap: 1.5rem;
  }

  .container_footer a {
    display: block;
  }

  .container_footer a:hover {
    color: var(--green);
  }

  @media (min-width:767px) {
    .container_footer {
      flex-direction: row;
      justify-content: space-between;
    }
  }


  /* ========== ANIMATION ELAGUEUR ========== */


  #elagueur {
    position: fixed;
    top: 6rem; /* juste sous le menu */
    right: 0rem;
    width: clamp(80px, 10vw, 150px);
    z-index: 10;
    transform: translateY(0);
    pointer-events: none;
    transition: transform 0.1s linear;
  }

  body.menu-open #elagueur {
    z-index: 1; /* en dessous du menu mobile */
  }