:root {
  --green: #1f3d2b;
  --beige: #f5f3ef;
  --white: #ffffff;
}

/* RESET */
* {margin:0; padding:0; box-sizing:border-box;}
body, h1,h2,h3,p,ul,li,a{font-family:'Inter', sans-serif;}
body{line-height:1.6;color:#333;background:var(--white);}

/* TOPBAR */
.topbar {
  background:#111; color:#eee; padding:5px 10%;
  display:flex; justify-content:space-between; font-size:0.8rem;
}
.topbar .socials a {color:white; margin-left:10px;}

/* HEADER / NAV */
header {background:var(--white); position:sticky; top:0; z-index:100; box-shadow:0 2px 8px rgba(0,0,0,0.05);}
header .nav {display:flex; justify-content:space-between; align-items:center; padding:8px 10%; gap:20px;}
header .logo a {display:flex; flex-direction:column; text-decoration:none; text-align:left;}
header .logo .logo-main {font-family:'Poppins',sans-serif; font-size:1.6rem; font-weight:700; text-transform:uppercase; color:var(--green);}
header .logo .logo-sub {font-family:'Inter',sans-serif; font-size:0.75rem; font-weight:500; color:#555; margin-top:2px;}
header .logo a:hover .logo-main{color:#145222;}
header .logo a:hover .logo-sub{color:#1f3d2b;}
header nav {display:flex; align-items:center; gap:20px;}
header nav a {color:var(--green); text-decoration:none; font-weight:500; font-size:0.9rem; padding:5px 8px; transition:all 0.3s ease;}
header nav a:hover {background:var(--green); color:white; border-radius:4px;}
header nav a.btn {background:var(--green); color:white; padding:7px 15px; border-radius:5px; font-weight:600;}
header nav a.btn:hover {background:#145222; color:white;}

/* BOUTON MENU ALIGNÉ */
nav a.devis-btn{
  background:var(--green);
  color:#fff;
  padding:10px 18px;
  border-radius:5px;
  font-weight:600;
}
nav a.devis-btn:hover{background:#145222}

/* HERO avec image de fond */


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* overlay sombre pour faire ressortir le texte */
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease forwards;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5); 
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-text .btn {
  background: var(--green);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-text .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Animation du texte */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
}



/* INTRO */
/* .intro {padding:60px 10%; font-size:1.1rem; line-height:1.7; color:#444;} */

/* INTRO */
.intro {
  padding: 80px 10%;
  background: #fdf6f0; /* fond clair */
  border-radius: 10px;
  margin-bottom: 50px;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* pour mobile */
}

.intro-text {
  flex: 1 1 500px;
}

.intro-text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 20px;
}

.intro-text .lead {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 15px;
}

.intro-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.intro-text .btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--green);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.intro-text .btn:hover {
  background-color: #2b7a3a;
}

.intro-image {
  flex: 1 1 400px;
  text-align: center;
}

.intro-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* TITRES DE SECTION */
section h2 {font-family:'Poppins',sans-serif; font-size:2rem; color:var(--green); text-align:center; margin-bottom:40px; text-transform:uppercase; letter-spacing:1px;}

/* SERVICES/PRESTATION */

.services {
  background: var(--beige);
  padding: 80px 10%;
}

.service-item {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  margin: 12px 0;
  text-align: center;
}

.service-item h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--green);
}

.service-item p {
  font-size: 1rem;
  color: #444;
}

.service-icon {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 10px;
  display: inline-block;
}

/* Images dans un wrapper */
.service-imgs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.img-wrapper {
  width: 350px;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.img-wrapper img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* GALERIE REALISATIONS */
.gallery {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-width:1200px; margin:30px auto;}
.gallery img {width:100%; height:250px; object-fit:cover; border-radius:8px;}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* images plus grandes */
  gap: 20px; /* espace entre les images */
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: 250px; /* plus grand que 200px */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.08); /* zoom un peu plus visible */
  box-shadow: 0 10px 25px rgba(0,0,0,0.25); /* ombre plus marquée */
}

/* PARTENAIRE */
.partner-card {max-width:900px; margin:40px auto; display:flex; flex-wrap:wrap; background:white; padding:30px; border-radius:8px; box-shadow:0 15px 40px rgba(0,0,0,0.08); align-items:center; gap:30px;}
.partner-img img {max-width:180px; border-radius:8px; object-fit:contain;}
.partner-content {flex:1;}
.partner-content h3 {font-family:'Poppins',sans-serif; font-size:1.6rem; margin-bottom:20px; color:var(--green);}
.partner-content p {margin-bottom:15px; line-height:1.7;}
.partner-infos p {margin-bottom:8px; font-weight:500;}
.partner-infos a {color:var(--green); text-decoration:none;}

/* CONTACT */
/* ====== Container ====== */
.contact.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: Arial, sans-serif;
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact p {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #555;
}

/* ====== Grid ====== */
.contact-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start; /* aligne la carte avec le formulaire */
}

/* ====== Formulaire ====== */
.contact-form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007BFF;
  outline: none;
}

.contact-form button {
  padding: 0.8rem;
  font-size: 1rem;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* ====== Infos + Carte ====== */
.contact-info {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.8rem;
}

.contact-info .info-text {
  line-height: 1.4;
  font-size: 0.95rem;
  color: #333;
}

.contact-info a {
  color: #007BFF;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info iframe {
  width: 100%;
  height: 100%; /* pour aligner avec le formulaire */
  min-height: 250px;
  border: 0;
  border-radius: 10px;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }

  .contact-info iframe {
    min-height: 250px;
  }
}

/* FOOTER */
footer {background:#111; color:#ccc; text-align:center; padding:30px;}

/* AOS Animation */
[data-aos]{opacity:0; transform:translateY(30px); transition:all 0.8s ease;}
[data-aos].aos-animate{opacity:1; transform:translateY(0);}

/* RESPONSIVE */
@media screen and (max-width:1000px){.gallery{grid-template-columns:repeat(2,1fr);}}
@media screen and (max-width:900px){header .nav{flex-direction:column; gap:15px;} header nav{flex-direction:column; gap:10px;} .contact-grid{grid-template-columns:1fr;} .partner-card{flex-direction:column; text-align:center;} .partner-img img{margin:0 auto;}}
@media screen and (max-width:600px){.gallery{grid-template-columns:1fr;}}


/* NOTIFICATION MAIL */
/* Overlay */
.popup-overlay {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

/* Popup */
.popup {
    background: #fff;
    padding: 25px 35px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    font-family: Arial, sans-serif;
    position: relative;
}

/* Success / Error */
.popup.success { border-left: 6px solid #28a745; }
.popup.error { border-left: 6px solid #dc3545; }

/* Close button */
.popup .close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Animations */
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes fadeOut { from {opacity:1} to {opacity:0} }

/* =========================
   SEO LOCAL (intégré design)
========================= */

.seo-local {
  background: var(--beige);
  padding: 70px 10%;
}

.seo-local .seo-box {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: center;
}

.seo-local h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 20px;
}

.seo-local p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* =========================
   FAQ (style cartes)
========================= */

.faq {
  padding: 70px 10%;
  background: #fff;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq h2 {
  margin-bottom: 40px;
}

.faq-item {
  background: var(--beige);
  padding: 25px 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.faq-item h3 {
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .seo-local,
  .faq {
    padding: 50px 5%;
  }

  .seo-local .seo-box {
    padding: 30px 20px;
  }
}

/* FOOTER LINK */
.footer-link {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

/* PARTENAIRES */
.partenaires {
  padding: 60px 0; /* au lieu des gros espacements de .services */
}

/* Supprime l’espace inutile avant la section SEO */
#zone-intervention {
  padding-top: 40px;
  margin-top: 0;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.hero-text {
  z-index: 10;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 20px;
}

/* FAQ */
/* FAQ Styles - thème méditerranéen / naturel */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Open Sans', sans-serif;
  color: #333;
}

.faq-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2E4A32; /* vert méditerranéen foncé */
}

.faq-item {
  background: #FDF6F0; /* beige doux */
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s;
}

.faq-item:hover {
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: background 0.3s, color 0.3s;
}

.faq-question::after {
  content: "▼";
  position: absolute;
  right: 25px;
  font-size: 1rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-question:hover {
  background: #E8F0E7; /* vert pâle */
  color: #1B2B1C;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 25px;
  background: #FBF8F2;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* assez grand pour la réponse */
  padding: 15px 25px 20px 25px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: #4B4B4B;
}

@keyframes fadeOut {
  from {opacity:1}
  to {opacity:0}
}
