/* =============================================================================
   Moduleo – feuille de styles principale (harmonisée)
   Nettoyée & unifiée – Palette cohérente verts
   ============================================================================
   TABLE DES MATIÈRES
   00. Reset & Bases
   01. Variables CSS (Design tokens)
   02. Typographie & Couleurs
   10. Layout utilitaires (container, sections, grilles)
   20. Composants – Navigation
   21. Composants – FAQ
   22. Composants – Formulaires
   23. Composants – Galerie (grille)
   24. Composants – Carrousel
   30. Sections (Hero, Vision, Solution, Chiffres, Bénéfices, À propos, Partenaires)
   90. Responsive
   ============================================================================
*/

/* 00. Reset & Bases --------------------------------------------------------- */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

img, video { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul, ol { padding-left: 1.2rem; }

/* 01. Variables CSS (Design tokens) ---------------------------------------- */
/* Palette harmonisée et centrale pour tout le site. Modifier ici suffit. */
:root{
  /* Verts */
  --green-700: #1B5E20; /* très bon contraste (chiffres, headers verts soutenus) */
  --green-600: #2E7D32; /* primaire */
  --green-500: #43A047; /* accent */
  --green-400: #66BB6A; /* hover doux */
  --green-300: #A5D6A7; /* secondaire (ex: hover liens nav) */
  --green-100: #E8F5E9; /* briques “bénéfices” très claires */

  /* Alias projet */
  --primary-color: var(--green-600);
  --primary: var(--green-600);
  --secondary-color: var(--green-300);

  /* Neutres & typo */
  --text: #222;
  --muted: #666;
  --bg: #fff;
  --surface: #f6f7f9;

  /* UI */
  --border-radius: 12px;

  /* Typo */
  --font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
                  Noto Sans, 'Helvetica Neue', Arial, sans-serif;
}

/* 02. Typographie & Couleurs ----------------------------------------------- */

body{
  font-family: var(--font-family);
  color: var(--text);
  background: #f9f9f9;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* 10. Layout utilitaires ---------------------------------------------------- */

.container{ width: min(1100px, 92vw); margin: 0 auto; }
.section{ padding: 3rem 0; }
.grid{ display: grid; gap: 1rem; }
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 800px){
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* 20. Composants – Navigation ---------------------------------------------- */

header{
  background: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed; top: 0; width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  z-index: 1000;
}

.logo{
  font-weight: 700;
  font-size: 1.5em;
  color: var(--primary-color);
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
  margin-left: 30px;
}
.logo img{ height: 40px; width: auto; }

nav{
  display: flex; gap: 15px;
  margin-right: auto; /* pousse les liens vers la gauche */
  margin-left: 200px; /* décale bloc nav */
}
nav a{
  color: var(--text);
  font-weight: 600; font-size: .95em;
  padding: 8px 12px; border-radius: var(--border-radius);
  transition: background .25s ease, color .25s ease;
}
nav a:hover{ background: var(--secondary-color); color: #0b2e14; }

/* 21. Composants – FAQ ------------------------------------------------------ */

.faq-container{ max-width: 800px; margin: 0 auto; }
.faq-item{
  margin-bottom: 15px; background: white; border-radius: var(--border-radius);
  overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,.08);
}
.faq-question{
  padding: 20px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--primary-color); color: white;
}
.faq-answer{
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-answer.show{ padding: 20px; max-height: 500px; }

/* 22. Composants – Formulaires --------------------------------------------- */

input, select, textarea, button{
  font: inherit; padding: .6rem .7rem; border-radius: .375rem; border: 1px solid #d1d5db;
}
button{ background: var(--primary); color: #fff; border: none; cursor: pointer; }
button:disabled{ opacity: .6; cursor: not-allowed; }

.contact-form{
  max-width: 600px; margin: 0 auto;
  background: white; padding: 30px; border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.form-group{ margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea{
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: var(--border-radius);
  font-family: var(--font-family);
}
.submit-btn{
  background: var(--primary-color); color: white; border: none; padding: 15px 30px;
  border-radius: var(--border-radius); cursor: pointer; font-weight: 600;
  transition: background .25s ease; width: 100%;
}
.submit-btn:hover{ background: var(--green-700); }

/* 23. Composants – Galerie (grille) ---------------------------------------- */

.gallery{
  display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.gallery img{
  display: block; width: 100%; border-radius: .375rem; object-fit: cover;
}

/* 24. Composants – Carrousel ------------------------------------------------ */

.carousel{ 
  position: relative; max-width: 800px; margin: 40px auto; overflow: hidden;
  border-radius: var(--border-radius); box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.carousel-track{ display: flex; transition: transform .6s ease-in-out; }
.carousel-track img{ width: 100%; flex-shrink: 0; object-fit: contain; height: 480px; }
.carousel-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); border: none; color: #fff; font-size: 2rem;
  padding: 10px 15px; cursor: pointer; border-radius: 50%; z-index: 2;
} 
.carousel-btn:hover{ background: rgba(0,0,0,.7); }
.carousel-btn.prev{ left: 15px; }
.carousel-btn.next{ right: 15px; } 

/* 30. Sections -------------------------------------------------------------- */

/* Hero */
.hero{
  position: relative; height: 100vh; min-height: 600px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: white; padding: 0 20px; overflow: hidden;
}
.hero-video{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .9;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(46,125,50,.6), rgba(165,214,167,.4));
  z-index: -1;
}
.hero-content{ max-width: 800px; margin: 0 auto; }
.hero h1{ font-size: 2.5em; margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0,0,0,.2); }
.hero p.subtitle{ font-size: 1.5em; margin-bottom: 30px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.hero button{
  padding: 15px 30px; font-size: 1.1em; background: white; color: var(--primary-color);
  border: none; border-radius: var(--border-radius); cursor: pointer; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.hero button:hover{ transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,.15); }

/* Sections génériques */
section{ padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
section h2{ text-align: center; font-size: 2em; margin-bottom: 50px; color: var(--primary-color); }

/* Vision / Solution / À propos / Partenaires containers */
.vision-section, .solution-section, .about-section, .partners-section{
  background: white; padding: 40px; border-radius: var(--border-radius); box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* Vision */
.vision-images{ display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 30px 0; }
.vision-image{
  flex: 1; min-width: 200px; max-width: 300px; border-radius: var(--border-radius);
  overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.vision-image img{ width: 100%; height: 210px; display: block; object-fit: cover; }

/* Solution - features grid */
.solution-features{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; margin-bottom: 40px;
}
.solution-feature{
  background: #f5f9f5; border-radius: var(--border-radius); padding: 25px; transition: transform .2s ease, box-shadow .2s ease;
}
.solution-feature:hover{ transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,.12); }
.solution-feature h4{ color: var(--primary-color); font-size: 1.5em; margin: 0 0 15px; display: flex; align-items: center; gap: 10px; }
.solution-feature h4 i{ font-size: 1.2em; }

.solution-images{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin: 40px 0;
}
.solution-image{
  border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,.1); transition: transform .2s ease;
  height: 250px;
}
.solution-image:hover{ transform: scale(1.03); }
.solution-image img{ width: 100%; height: 100%; object-fit: cover; }

/* MODULEO EN CHIFFRES (contraste renforcé) */
.solution-numbers{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin: 40px 0; text-align: center;
}
.solution-number{
  background: var(--green-700); /* vert soutenu = contraste OK */
  color: #fff;
  padding: 20px; border-radius: var(--border-radius);
}
.solution-number h5{ font-size: 2.5em; margin: 0; color: #fff; }

/* Pourquoi choisir MODULEO ? */
.solution-benefits{
  background: var(--primary-color); color: white; padding: 40px; border-radius: var(--border-radius); margin-top: 40px;
}
.solution-benefits h3{ text-align: center; font-size: 2em; margin-bottom: 30px; }
.benefits-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.benefit-item{
  display: flex; align-items: flex-start; gap: 15px;
  background: var(--green-100); /* brique claire demandée */
  color: #063a20;               /* texte foncé lisible */
  padding: 20px; border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
}
.benefit-item i{ font-size: 1.5em; color: #063a20; margin-top: 5px; }

/* À propos */
.about-story{ display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-bottom: 60px; }
.about-text{ flex: 1; min-width: 300px; }
.about-image{
  flex: 1; min-width: 300px; max-width: 500px; border-radius: var(--border-radius);
  overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.about-image img{ width: 100%; display: block; }

/* Process */
.process-steps{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; margin-top: 50px;
}
.process-step{
  background: #f5f9f5; border-radius: var(--border-radius); padding: 25px;
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden;
}
.process-step:hover{ transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,.1); }
.process-step h3{ color: var(--primary-color); font-size: 1.8em; margin: 0 0 15px; display: flex; align-items: center; gap: 10px; }
.process-images{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.process-image{
  border-radius: var(--border-radius); overflow: hidden; height: 150px; box-shadow: 0 4px 8px rgba(0,0,0,.08);
}

.process-image { height: 150px; }
.process-image img {
  object-fit: contain;   /* show full image */
  background: #f5f7f8;   /* subtle background behind the photo */
}

.passion-quote{
  font-style: italic; font-size: 1.2em; text-align: center; margin: 40px auto; max-width: 800px; padding: 20px;
  border-left: 4px solid var(--primary-color); background: #f5f9f5;
}

/* Partenaires */
.partners-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 30px; margin: 40px 0; align-items: center;
}
.partner-logo{
  display: flex; justify-content: center; align-items: center; height: 100px; padding: 15px;
  background: white; border-radius: var(--border-radius); box-shadow: 0 4px 8px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.partner-logo:hover{ transform: scale(1.05); box-shadow: 0 6px 12px rgba(0,0,0,.15); }
.partner-logo img{ max-width: 100%; max-height: 100%; object-fit: contain; }

.ecosystem-section{
  background: linear-gradient(135deg, var(--primary-color), var(--green-700));
  color: white; padding: 40px; border-radius: var(--border-radius); margin-top: 50px;
}
.ecosystem-title{ text-align: center; margin-bottom: 30px; font-size: 1.8em; }
.ecosystem-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

.ecosystem-item {
  background: #fff; /* Fond blanc derrière chaque logo */
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  transition: background .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,.08); /* optionnel pour contraste */
}

.ecosystem-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff; /* s'assure que l'image est bien sur blanc */
  border-radius: var(--border-radius);
}

.ecosystem-item:hover{ background: rgba(255,255,255,.2); transform: translateY(-5px); }
.ecosystem-logo img{ max-width: 100%; max-height: 100%; }

.local-partners{ margin-top: 50px; text-align: center; }
.local-partners h3{ color: var(--primary-color); margin-bottom: 20px; }
.local-cities{
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px;
}
.city-tag{
  background: var(--secondary-color); color: #0b2e14; padding: 8px 15px; border-radius: 20px; font-weight: 600;
}

.thanks-note{ text-align: center; font-size: 1.2em; margin-top: 40px; font-weight: 600; color: var(--primary-color); }

/* Footer */
footer{ background: #222; color: white; padding: 50px 20px; text-align: center; }
.social-icons{ margin: 20px 0; }
.social-icons a{ color: white; font-size: 1.5em; margin: 0 10px; transition: color .25s ease; }
.social-icons a:hover{ color: var(--secondary-color); }

/* 90. Responsive ------------------------------------------------------------ */

/* ====== Mobile (nav burger) – propre, sans @media imbriqué ====== */
@media (max-width: 900px) {
  header {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
    margin-left: 0;
    margin-right: auto;
    max-width: calc(100% - 60px);
  }

  .menu-toggle {
    display: block;          /* <- le burger est visible */
    order: 2;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 6px 10px;
    color: var(--text);
    z-index: 1001;
  }

  header nav {
    order: 3;
    position: static;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    display: none;           /* <- caché par défaut */
    flex-direction: column;
    gap: 0;
  }

  header nav.show {
    display: flex;           /* <- affiché après clic */
  }

  header nav a {
    text-align: left;
    padding: 12px 20px;
    display: block;
  }
}

/* === Centrer les "bulles" (bénéfices) en 1 colonne === */
@media (max-width: 520px) {
  /* un peu d'air à gauche/droite dans le bloc vert */
  .solution-benefits {
    padding-inline: 18px;
  }

  /* centre les items dans la grille */
  .benefits-grid {
    grid-template-columns: 1fr;
    justify-items: center; /* centre horizontalement les children dont la largeur < 100% */
  }

  /* les bulles ne font plus 100% : elles sont centrées et respirent */
  .benefit-item {
    width: 88%;        /* ajuste à 90–94% selon ton goût */
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .carousel-track img {
    height: 220px;
  }
}

