/* ============================= */
/* RESET BASIQUE */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("images/imageEspacesVerts/plants-pot-with-watering-can.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  max-width: 850px;
  color: white;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

/* Bouton devis (hero uniquement) */
.btn-devis {
  background: #2e7d32;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  font-weight: bold;
  transition: 0.3s;
}

.btn-devis:hover {
  background: #1b5e20;
}

/* ============================= */
/* HEADER / NAVIGATION */
/* ============================= */
.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: bold;
  font-size: 2rem;
}

.logo img {
  height: 6rem;
}

/* Menu desktop */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* ============================= */
/* HAMBURGER */
/* ============================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: white;
  margin: 4px 0;
}

/* ============================= */
/* RESPONSIVE MOBILE */
/* ============================= */
@media (max-width: 768px) {

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Menu mobile */
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 240px;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 25px 20px 25px 35px;
    display: none;
    border-left: 3px solid #2e7d32;
    border-radius: 0 0 0 12px;
  }

  .nav-links a {
    color: white;
    padding: 12px 0;
    text-align: left;
    padding-left: 2em;
    
  }

  /* IMPORTANT : enlever le style bouton dans le menu */
  .nav-links .btn-devis {
    background: none;
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    padding-left: 2em;
    
  }

  .nav-links.active {
    display: flex;
    background: rgba(0, 0, 0, 0.95);
  }

  .hamburger {
    display: flex;
  }
}
/* ***************************************************************** */

/* **************Qui sommes-nous?************************* */
.portfolio {
  padding: 80px 60px;
  background-color: #ffffff;
  position: relative;
  margin-bottom: 15%;
 
}

.portfolio-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;

}

/* Image gauche */
.portfolio-left img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* Partie droite */
.portfolio-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.portfolio-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.portfolio-text p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* Image droite */
.portfolio-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;

}

/* Titre */
.portfolio-title {
  margin-top: -250px;
  font-size: 28px;
  font-weight: 700;
  color: #2f2f2f;
  font-size: 2.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  
  }

  .portfolio-text {
    grid-template-columns: 1fr;
  }

  .portfolio-title {
    margin-top: 50px;
    margin-bottom: -90px;
    font-size: 2rem;
  }
}
/* ========================== */
/* ============================= */
/* SECTION VAGUE PLEIN ÉCRAN */
/* ============================= */

/* TEXTE CENTRÉ ET AGRANDI */
.vague-section-fullscreen h2 {
  max-width: 900px;
  font-size: 2.8rem;  /* taille plus grande */
  line-height: 1.2;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 8rem;
  z-index: 2;

}

.vague-section-fullscreen p {
  font-size: 1.5rem;  /* texte plus grand */
  max-width: 900px;
  margin: 0 auto;
  margin-left: 20rem;
  z-index: 2;
}

/* ============================= */
/* RESPONSIVE */
@media (max-width: 1024px) {
  .vague-section-fullscreen h2 {
    font-size: 2.5rem;
    margin: 0 auto;
  }
  .vague-section-fullscreen p {
    font-size: 1.2rem;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .vague-section-fullscreen h2 {
    font-size: 2rem;
    margin: 0 auto;
  }
  .vague-section-fullscreen p {
    font-size: 1rem;
    margin: 30px auto;
  }
}

@media (max-width: 480px) {
  .vague-section-fullscreen h2 {
    font-size: 1.6rem;
    margin: 0 auto;
  }
  .vague-section-fullscreen p {
    font-size: 0.95rem;
    margin: 20px auto;
  
  }
}

/* ******************************** */
/* ******************************* */
/* ---------- Nos services---------- */
.container-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  margin-top: 3rem;
}

/* ---------- LEFT MENU ---------- */
.sidebar {
  width: 260px;
}

.sidebar .box {
  background: #eaf3ff;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
}

.sidebar .item {
  background: #f7faff;
  padding: 15px 20px;
  border-radius: 30px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  
}

.sidebar a {
text-decoration: none;
color: #555;
}

/* ---------- CART ---------- */
.cart {
  background: #ffe2a8;
  width: 300px;
  padding: 25px;
  border-radius: 20px;
  text-decoration: none;
}

.cart h3 {
  margin: 0 0 20px;
  font-size: 18px;
}

.cart img {
  width: 80%;
  border-radius: 10px;
}

.cart .line {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 10px 0;
}

.cart .divider {
  border-bottom: 1px dashed #333;
  margin: 15px 0;
}

.cart button {
  width: 100%;
  background: white;
  color: #7a2e1e;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.5rem;
}

/* **********pop-up****************** */
/* Bouton */
.btn-more {
  background: #2f5d50;
  color: white;
  padding: 10px 22px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn-more:hover {
  background: #24463d;
   color: white;
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

/* Modal content */
.modal-content {
  background: white;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  border-radius: 20px;
  text-align: center;
  animation: fadeIn 0.4s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-content h2 {
  color: #2f5d50;
  margin-bottom: 20px;
}

.modal-content ul {
  list-style: none;
  padding: 0;
}

.modal-content ul li {
  margin: 10px 0;
  color: #444;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: black;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width:768px) {
  /* Cache sidebar */
  .sidebar {
    display:none;
  }

  /* Centrer les cartes */
  .container-cards {
    display:flex;
    flex-direction:column;
    align-items:center;  /* centre horizontalement */

    padding:20px;
  }

  .cart {
    width: 100%; /* ou max-width: 400px pour limiter la taille */
    margin-bottom:30px;
    text-align:center; /* centre texte et boutons */
  }

  .cart img {
    margin:0 auto; /* centre les images */
  }

  .cart .line ul {
    padding-left:0; /* enleve l'indentation pour centrer la liste */
    list-style-position: inside;
  }

  .cart button {
    margin: 15px auto 0 auto; /* centre le bouton */
    display:block;
  }
}

@media (max-width:768px) {

  /* Cache la sidebar */
  .sidebar {
    display:none;
  }

  /* Container des cartes */
  .container-cards {
    display:flex;
    flex-direction:column; /* empile les cartes verticalement */
    align-items:center;     /* centre horizontalement */
    padding:10px;
    box-sizing:border-box;
  }

  /* Chaque carte prend 100% de la largeur disponible */
  .cart {
    width: 100%;          /* occupe tout l'espace de l'écran */
    max-width: 500px;     /* optionnel : limite max pour les très grands écrans */
    margin-bottom:20px;   /* espace entre les cartes */
    text-align:center;    /* centre le contenu texte et boutons */
    box-sizing:border-box;
    padding:15px;         /* padding interne */
  }

  /* Images responsive */
  .cart img {
    width: 100%;          /* remplissage complet de la carte */
    height: auto;         /* garde le ratio original */
    display: block;
    margin:0 auto;
    border-radius:8px;
  }

  /* Boutons centrés et largeur automatique */
  .cart button {
    display:block;
    margin:15px auto 0 auto;
    width: auto;          /* prend la taille du texte, centré */
  }

  /* Listes dans la carte */
  .cart .line ul {
    padding-left: 20px;   /* indentation normale pour lisibilité */
    text-align: left;
    list-style-position: inside;
  }

}

/* *********engagement********** */
.engagement-section {
  padding: 60px 20px;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
  font-family: 'Segoe UI', sans-serif;
}

.engagement-container {
  max-width: 1000px;
  margin: auto;
}

.engagement-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
  color: #2f5d50;
}

.intro,
.conclusion {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333;
}

.slogan-box {
  background-color: #2f5d50;
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.slogan-box .quote {
  font-size: 1.3rem;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

.engagement-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.engagement-list li {
  padding: 10px 0;
  font-size: 1rem;
  border-bottom: 1px solid #e0e0e0;
  color: #444;
}

.engagement-list li:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .engagement-section h2 {
    font-size: 1.6rem;
  }

  .slogan-box {
    padding: 18px;
  }

  .slogan-box .quote {
    font-size: 1.1rem;
  }
}


/* *********************************************** */
.blog-section {
  padding: 60px 20px;
  background: #f8f8f8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.blog-section h2 {
  font-size: 1.9rem;
  margin-bottom: 15px;
  color: #2f5d50;
}

.blog-section a{
  text-decoration: none;
  color: #2f5d50;
  font-weight: 700;
  
}

.blog-section a:hover{
  text-decoration: underline;
  color: #014051;
  font-weight: 700;
  
 
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555;
  line-height: 1.6;
}

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

.blog-card {
  background: white;
  padding-bottom: 20px;
  text-align: left;
}

.blog-card img {
  width: 100%;
  height: 450px;        /* même hauteur pour toutes */
  object-fit: cover;    /* évite la déformation */
  display: block;
  border-radius: 8px;
}


.blog-card img:hover {
  transform: scale(1.05); /* zoom léger à 105% */
}


.blog-card h3 {
  font-size: 1.2rem;
  color: #2f5d50;
  margin: 15px;
}

.blog-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0 15px;
}

.cta-google {
  margin-top: 40px;
}

.cta-google a {
  display: inline-block;
  padding: 12px 24px;
  background: #2e7d32;;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: 0.3s;
  
  
}

.cta-google a:hover {
  background: #1b5e20;
  text-decoration: none !important;
  color: #fff;
}

.image-tooltip {
  position: relative;
  display: block;
}

.tooltip-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.image-tooltip:hover .tooltip-text {
  opacity: 1;
}


/* Responsive */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-section h2 {
    font-size: 1.6rem;
  }
}

/* ========================== */
/* RESPONSIVE */

/* 3 colonnes */
@media (max-width: 1200px) {
  .projects-section {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .project {
    padding: 30px;
    min-height: 200px;
  }
  .project-title {
    font-size: 22px;
  }
  .project-intro h2 {
    font-size: 36px;
  }
}

/* 2 colonnes */
@media (max-width: 900px) {
  .projects-section {
    grid-template-columns: 1fr 1fr;
  }
  .project {
    padding: 25px;
    min-height: 180px;
  }
  .project-title {
    font-size: 20px;
  }
  .project-intro h2 {
    font-size: 32px;
  }
}

/* 1 colonne mobile */
@media (max-width: 600px) {
  .projects-section {
    grid-template-columns: 1fr;
  }
  .project {
    padding: 20px;
    min-height: 160px;
  }
  .project-title {
    font-size: 18px;
  }
  .project-intro h2 {
    font-size: 28px;
  }
}
/* ***************************** */
/* ***************************** */

/* ******************************** */
.approche-container {
  padding: 90px 10%;
  text-align: center;
  background-color: #ffffff;
}

.approche-title {
  font-size: 38px;
  font-weight: 700;
  color: #2f5d50;
  margin-bottom: 80px;
}

/* Grille des blocs */
.approche-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}

/* Carte */
.approche-card h3 {
  margin-top: 25px;
  font-size: 18px;
  font-weight: 600;
  color: #2f5d50;
}

.approche-card p {
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* Icônes abstraites */
.approche-icon {
  margin: 0 auto 20px;
  position: relative;
}

/* Cercle */
.approche-icon.cercle {
  width: 90px;
  height: 90px;
  background: #d9f99d;
  border-radius: 50%;
}

.approche-icon.cercle::before {
  content: "";
  position: absolute;
  width: 55px;
  height: 55px;
  background: #2e7d32;
  border-radius: 50%;
  top: -15px;
  left: -15px;
}

/* Check */
.approche-icon.check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
}

.approche-icon.check::before {
  content: "✔";
  font-size: 60px;
  color: #2e7d32;
}

/* Carré */
.approche-icon.carre {
  width: 80px;
  height: 80px;
  background: #d9f99d;
  position: relative;
}

.approche-icon.carre::before {
  content: "";
  position: absolute;
  width: 45px;
  height: 45px;
  background: #2e7d32;
  top: -15px;
  left: -15px;
}

/* Responsive */
@media (max-width: 900px) {
  .approche-cards {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .approche-title {
    font-size: 30px;
  }
}
/* ************************************************ */
/* pourquoi-nous */
.pourquoi-container {
  padding: 80px 10%;
  background-color: #ffffff;
  text-align: center;
}

.pourquoi-title {
  color: #2f5d50; 
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
}

.pourquoi-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.pourquoi-card h3 {
  color: black;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.pourquoi-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* Responsive tablette */
@media (max-width: 1024px) {
  .pourquoi-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive mobile */
@media (max-width: 600px) {
  .pourquoi-cards {
    grid-template-columns: 1fr;
  }

  .pourquoi-title {
    font-size: 28px;
  }
}
/* ******************Contact ********************************** */
/* *********************Contact ******************************* */
/* Contact */
#devis {
  padding: 60px 5%;
  background-color: #f7f7f7;
}


.contact-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.contact-form {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-form h2 { margin-bottom: 20px; 
color: #2f5d50; }
.contact-form form { display: flex; flex-direction: column; gap: 15px; }

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}

.contact-form textarea { resize: none; height: 120px; }

.contact-form button {
  padding: 14px;
  background-color: #2f7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.contact-form button:hover { background-color: #256628; }

.contact-map { flex: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; }

@media (max-width: 768px) { .contact-container { flex-direction: column; } }
/* Footer principal */
footer {
  background-color: #ffffff;
  margin-top: 50px;
  padding: 30px 8%;
  position: relative; /* pour que le bouton scroll soit positionné correctement */
}

/* Ligne du haut */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: auto;
  height: 5rem; /* réduit pour mobile */
}

.logo span {
  font-size: 1.2rem; /* réduit un peu pour mobile */
  font-weight: 600;
}

/* Liens réseaux */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* réduit pour mobile */
  justify-content: flex-end;
}

.footer-links a {
  color: black;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s ease;
}

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

/* Copyright en bas */
.footer-copy {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 2rem;
  font-size: 13px;
  opacity: 0.8;
}

/* Bouton scroll dans le footer */
#scrollTopBtn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  
  width: 90px;
  height: 90px;

  background-color: #2e7d32;
  color: #fff;

  font-size: 40px;
  font-weight: bold;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 5px solid #fff;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);

  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 9999;
  
}

#scrollTopBtn:hover {
  background-color: #1b5e20;
  transform: translateX(-50%) scale(1.2);
}

/* ============================ */
/* RESPONSIVE */
@media (max-width: 768px) {

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

  .logo img {
    height: 4rem;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .footer-links {
    justify-content: center;
    gap: 15px;
  }

  #scrollTopBtn {
    width: 70px;
    height: 70px;
    font-size: 30px;
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 3.5rem;
  }

  .logo span {
    font-size: 1rem;
  }

  .footer-links {
    gap: 10px;
    font-size: 0.9rem;
  }

  #scrollTopBtn {
    width: 60px;
    height: 60px;
    font-size: 25px;
    bottom: 10px;
  }
}
