/* ===================== BASE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* ===================== CONTAINER ===================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 60px 0;
}

/* ===================== HEADER ===================== */
header {
  background: linear-gradient(135deg, #2e7d32, #81c784);
  color: white;
  text-align: center;
  padding: 100px 20px 80px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

header a.btn {
  background: #fff;
  color: #2e7d32;
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: 0.3s;
}

header a.btn:hover {
  background: #e0e0e0;
  color: #1b5e20;
}

/* ===================== SECTIONS ===================== */
section {
  padding: 60px 0;
  background-color: #fff;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

section h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 20px;
}

section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

section ul {
  list-style: disc inside;
  margin-bottom: 20px;
}

section a.btn {
  display: inline-block;
  background: #2e7d32;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

section a.btn:hover {
  background: #1b5e20;
}

/* ===================== FOOTER ===================== */
footer {
  background: #1c1c1c;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

footer a {
  color: #81c784;
  text-decoration: none;
}

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 1.6rem;
  }

  header p, section p {
    font-size: 1rem;
  }

  header a.btn, section a.btn {
    padding: 12px 20px;
  }
}


/* ===================== FORMULAIRE ===================== */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: auto;
  background-color: #f0f0f0;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

form label {
  font-weight: bold;
  color: #2e7d32;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.3s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form textarea:focus {
  border-color: #2e7d32;
  outline: none;
  box-shadow: 0 0 8px rgba(46,125,50,0.3);
}

form textarea {
  resize: vertical;
}

form button {
  width: fit-content;
  background: #2e7d32;
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #1b5e20;
}

/* Responsive */
@media (max-width: 768px) {
  form {
    padding: 30px 20px;
  }

  form button {
    width: 100%;
    text-align: center;
  }
}
/* ===================== GALERIE ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}
/* === BLOG ARTICLE STYLE === */

.article-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    line-height: 1.7;
}

.article-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.article-container h2 {
    margin-top: 40px;
    font-size: 24px;
}

.article-container h3 {
    margin-top: 25px;
    font-size: 20px;
}

.article-intro {
    font-size: 18px;
    margin-bottom: 25px;
}

.article-image {
    width: 100%;
    border-radius: 8px;
    margin: 25px 0;
}

.article-container ul {
    margin: 20px 0;
    padding-left: 20px;
}

.article-cta {
    margin: 40px 0;
    text-align: center;
}

.article-back {
    margin-top: 40px;
}
/* ============================= */
/* BLOG PAGE */
/* ============================= */

.blog-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.blog-title {
    text-align: center;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 25px;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.blog-card h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.blog-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card .btn {
    align-self: flex-start;
}
/* ============================= */
/* BLOG GRID CARDS */
/* ============================= */

.blog-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.blog-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.blog-card h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.blog-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card .btn {
    align-self: flex-start;
}

.site-footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px;
    font-size: 14px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-contact, .footer-links, .footer-copy {
    flex: 1 1 250px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

/* ============================= */
/* UNIFORMISATION DES IMAGES */
/* ============================= */

/* Grille galerie accueil */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Blog preview accueil */
.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.home-blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}
.gallery-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-grid img {
    min-width: 250px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}
.home-gallery .btn {
  display: inline-block;
  margin-top: 20px;
}

.home-gallery {
  text-align: center;
}
.service-container h1 {
    color: #2e7d32;
}


/* --- LA BANNIERE VERTE --- */
.main-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #2e7d32;
  min-height: 55px; /* Hauteur pro */
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.banner-container {
  width: 100%;
  max-width: 1400px; /* Plus large pour loger tous les liens */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- BOUTON DEVIS NOIR --- */
.btn-devis-banner {
  background-color: #000;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.3s;
}

.btn-devis-banner:hover {
  background-color: #333;
}

/* --- NAVIGATION PC (SEO-FRIENDLY) --- */
.nav-banner ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-banner ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  transition: 0.3s;
}

.nav-banner ul li a:hover {
  color: #000;
}

/* --- BURGER (Caché sur PC) --- */
.burger-banner {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.burger-banner span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
}

/* --- RESPONSIVE : TABLETTE & MOBILE --- */
@media (max-width: 1150px) {
  .burger-banner {
    display: flex; /* On affiche le burger */
  }

  .nav-banner {
    display: none; /* On cache le menu horizontal */
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background-color: #2e7d32;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }

  /* Classe ajoutée par le JavaScript */
  .nav-banner.active {
    display: block;
  }

  .nav-banner ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .nav-banner ul li a {
    font-size: 16px;
  }
}

/* Style pour la zone d'intervention */
.intervention-grid {
  background-color: #f9f9f9;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #eee;
}

.intervention-grid h3 {
  margin-bottom: 10px;
  color: #333;
}

.city-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 25px auto 0;
}

.city-links a {
  text-decoration: none;
  color: #555;
  background: white;
  padding: 12px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: 0.3s;
  font-weight: 500;
}

.city-links a:hover {
  color: #2c3e50; /* Ou ta couleur principale */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.city-links span {
  margin-right: 5px;
}


