/* styles.css */

/* Empêche le scroll horizontal intempestif */
html, body {
  overflow-x: hidden;
}

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

body {
  font-family: 'Roboto', sans-serif;
  color: #1A1A1A;
  background-color: #FFFFFF;
  line-height: 1.6;
}

/* Conteneur pour centrer le contenu */
.container {
  max-width: 1200px; /* Ajuste selon tes préférences */
  margin: 0 auto;    /* Centre horizontalement */
  padding: 0 20px;   /* Un peu de marge latérale */
}

/* Navigation/Header */
.main-header {
  padding: 20px;
  background-color: #fff;
  z-index: 1000;
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav a {
  text-decoration: none;
  color: #1A1A1A;
}
nav a:hover {
  opacity: 0.7;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-text {
  flex: 1;
  padding-right: 20px;
}
.hero-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero-text p {
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.btn-cta {
  display: inline-block;
  background-color: #1A1A1A;
  color: #FFFFFF;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
}
.hero-image {
  flex: 1;
  text-align: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Presentation */

.presentation {
  padding: 60px 0;
  /* On centre globalement le texte */
  text-align: center; 
}

.presentation .container {
  /* Largeur maxi et centrage horizontal de tout le bloc */
  max-width: 1200px; 
  margin: 0 auto;
}

.presentation h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.presentation p {
  font-size: 1.1rem;
  margin: 0 auto 40px;
  max-width: 600px; /* Limite la largeur du paragraphe pour une meilleure lecture */
}
.images-grid {
  display: grid;
  gap: 120px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.images-grid img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

/* Parallax Avantages */
.avantages {
  background: #fff;    /* Fond blanc */
  color: #1A1A1A;      /* Texte noir */
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  text-align: center;  
}

.avantages-content {
  max-width: 800px;
  margin: 0 auto;
  /* plus besoin de position: relative; ni d’overlay */
}

.avantages-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
}

.avantages-content ul {
  list-style: disc;
  margin: 20px auto;
  font-size: 1.1rem;
  max-width: 600px; 
  text-align: left; 
}


.features {
  padding: 60px 20px;
  background: #fff;
  text-align: center; /* Le titre principal centré */
}

.features .container {
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #000;
}

/* Grille de cartes */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  /* auto-fit : s'adapte au nombre de cartes, 
     minmax(280px, 1fr) : largeur min 280px, sinon s'étend sur 1 fraction */
  gap: 30px; /* espace horizontal/vertical entre les cartes */
}

/* Style des cartes */
.feature-card {
  background: #fff; /* même couleur que la page, 
                       mais on peut ajouter un léger shadow si on veut plus de relief */
  border-radius: 8px;
  text-align: left; 
  padding: 20px;
  /* Optionnel : ombre très légère pour le côté « carte » discret */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Animations au survol (optionnel) */
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

/* Titres des cartes */
.feature-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
}

/* Paragraphe descriptif */
.feature-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

/* Responsive : sur mobile, la grille se réduit naturellement 
   grâce au minmax(280px, 1fr). 
   Mais si tu veux forcer un espacement différent, 
   tu peux ajouter une media query. */
@media (max-width: 600px) {
  .features {
    padding: 40px 20px;
  }
  .feature-card h3 {
    font-size: 1.2rem;
  }
  .feature-card p {
    font-size: 0.95rem;
  }
}



/* --- SECTION COMMANDES --- */

.commandes {
  /* Au lieu de padding: 60px 0; on ajoute un padding-bottom plus généreux */
  padding: 60px 0 100px; /* 60px en haut, 100px en bas */
  text-align: center;    /* Pour centrer le titre/texte comme précédemment */
}

.commandes h2 {
  /* Même style que ton H1 Hero, adapté en H2 */
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;   /* Ou 3rem si tu veux la même taille que ton Hero */
  font-weight: 700;    /* Met le texte en bold */
  margin-bottom: 20px;
  color: #1A1A1A;      /* Couleur identique au Hero */
}

.commandes p {
  /* Même style que ton paragraphe Hero */
  font-size: 1.2rem;
  color: #1A1A1A;
  margin-bottom: 30px;
}

/* Formulaire */
#commande-form {
  /* Reste inchangé, sauf si tu veux un peu plus d'espace */
  display: block;
  margin: 0 auto;
  text-align: left;
  max-width: 400px;
}

#commande-form label {
  /* inchangé, sauf design si besoin */
  display: block;
  margin-top: 10px;
  font-size: 1rem; /* un peu plus grand si tu préfères */
}

/* Champs de formulaire */
#commande-form input,
#commande-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  /* On peut rester sur Roboto ou mettre Montserrat */
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}

/* Bouton Commander style Hero */
#commande-form button {
  display: inline-block;
  background-color: #1A1A1A;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;    /* un peu plus gras si tu veux */
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  
}
#commande-form button:hover {
  opacity: 0.8;
  margin: 0 auto;    /* Centre le formulaire */
  max-width: 400px;  /* Largeur max du formulaire */
  text-align: left;  /* Labels alignés à gauche */
}



/* Footer */
.footer {
  background-color: #FFFFFF;
  border-top: 1px solid #ccc;
  padding: 20px 0;
}
.footer .container {
  text-align: center;
  font-size: 0.9rem;
}
.footer a {
  color: #1A1A1A;
}
.footer a:hover {
  opacity: 0.7;
}

/* Effets fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Flip (optionnel) */
.flip-container {
  perspective: 1000px;
}
.flip-item {
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}
.flip-item:hover {
  transform: rotateY(180deg);
}
.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.back {
  transform: rotateY(180deg);
}



/* --- MEDIA QUERIES POUR L'AFFICHAGE MOBILE --- */
@media (max-width: 768px) {
  
  /* Header et nav en colonne */
  .main-header .container {
    display: block;       /* Au lieu de flex */
    text-align: center;   /* Pour centrer le logo et la nav */
  }
  .main-header nav ul {
    display: block;       /* Menu vertical */
    margin-top: 10px;
  }
  .main-header nav li {
    margin: 10px 0;       /* Espacement entre liens */
  }

  /* Hero Section : empiler le texte et l'image */
  .hero-inner {
    display: block;       /* plus de flex row */
    text-align: center;
  }
  .hero-text {
    padding-right: 0;     /* Retire la marge */
    margin-bottom: 20px;  /* Espace sous le texte */
  }
  .hero-image {
    margin-top: 20px; 
  }

  /* Section Présentation */
  .presentation {
    padding: 40px 20px;   /* Ajuste les espacements sur mobile */
  }
  .presentation p {
    max-width: 100%;      /* Laisse toute la largeur sur mobile */
    margin: 0 auto 30px;
  }
  /* Si tu préfères une seule colonne d’images */
  .images-grid {
    grid-template-columns: 1fr;  /* 1 seule colonne */
    justify-items: center;       /* Centre les visuels */
  }

  /* Section Avantages */
  .avantages {
    padding: 40px 20px;
    text-align: center;
  }

  /* Section Commandes */
  .commandes {
    padding: 40px 20px 80px;
  }
  /* Le formulaire reste un bloc centré */
  #commande-form {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  /* Footer : centré / colonne */
  .footer .container {
    text-align: center;
  }
}

/* Par défaut (desktop) : on n'affiche pas la burger */
.burger {
  display: none; 
}

/* Sur mobile (max-width: 768px ou 600px, à ajuster) */
@media (max-width: 768px) {

  /* Le bouton burger apparaît */
  .burger {
    display: inline-block;
    cursor: pointer;
  }

  /* On enlève le "display: flex" (ou block) habituel sur la nav 
     pour la masquer (par exemple display: none ou transform translateX) */
  #main-nav {
    display: none; 
    /* Ou éventuellement position: absolute; left:0; top:60px; etc.
       Si tu veux un menu coulissant, tu le positionneras autrement. */
  }

  /* Quand la nav est "active", on l’affiche (géré via JS) */
  #main-nav.open {
    display: block; 
    /* Ou transform: translateX(0) si tu veux un slide-in. */
  }
}

.burger {
  width: 30px;
  height: 24px;
  position: relative;
  padding-top: 20px;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #1A1A1A;
  margin-bottom: 5px;
  transition: 0.3s;
}


/* SECTION PROGRAMME DE TESTS R&D */
.rd-program {
  padding: 60px 0;
  text-align: center; /* Centre le titre et le paragraphe */
  background-color: #FFFFFF; /* Fond blanc (ou autre couleur, à adapter) */
}

.rd-program .container {
  max-width: 800px;
  margin: 0 auto;
}

.rd-program h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1A1A1A;
}

.rd-program p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #1A1A1A;
  margin-bottom: 30px;
}

.rd-program .btn-cta {
  display: inline-block;
  background-color: #1A1A1A;
  color: #FFFFFF;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.rd-program .btn-cta:hover {
  background-color: #333333; 
}

.video-container {
  position: relative;
  overflow: hidden;     /* Cache tout dépassement horizontal */
  margin: 30px auto;
  max-width: 600px;     /* Largeur max si tu veux limiter la vidéo sur grand écran */
  width: 100%;          /* S’assure qu’elle occupe 100% en mobile */
  text-align: center;
}

.video-container video {
  display: block;
  width: 100%;          /* Vidéo responsive, occupe toute la largeur disponible */
  height: auto;         /* Respecte le ratio */
  border-radius: 4px;   /* Optionnel, arrondit les angles */
  margin: 0 auto;
  padding-top: 100px;
}

.fullwidth-image {
  width: 100%;
  margin: 0 auto;
  /* Au lieu de background-color: #eee ou #f5f5f5, on enlève tout. */
  background: url("images/visuel-pleurote.jpg") center center / cover no-repeat;
  min-height: 60vh;
  position: relative;
}

/* Overlay éventuel (si tu mets du texte par-dessus l’image) */
.image-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Facultatif : ajouter un voile si besoin de lisibilité : 
     background: rgba(0,0,0,0.3);
     color: #fff; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Deux paragraphes côte à côte */
.two-col-paragraphs {
  display: flex;
  gap: 40px;         /* Espace horizontal entre paragraphes */
  justify-content: center; 
  /* Si tu veux vraiment les centrer, 
     sinon, remove ou use "space-between" */
  margin-bottom: 40px;  
}

/* Chaque paragraphe prend la place disponible */
.two-col-paragraphs p {
  flex: 1;
  text-align: left;  /* Alignement gauche pour la lecture */
  font-size: 1.2rem;
  line-height: 1.6;
  color: #444;
  margin: 0;         /* On gère le spacing via .two-col-paragraphs */
  max-width: none;   /* Laisse le paragraphe s’étendre */
}

/* MEDIA QUERY : sous 768px, repasser en colonne unique */
@media (max-width: 768px) {
  .two-col-paragraphs {
    display: block;    /* Les paragraphes s’empilent verticalement */
  }
  .two-col-paragraphs p {
    margin-bottom: 1.5rem; /* Espace entre eux */
  }
}
