body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #31703d;
}

.header {
  text-align: center;
  padding: 2rem;
}

.logo {
  width: 300px; /* réduit légèrement */
  max-width: 100%;
}

.slogan {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.nav {
  margin: 1rem 0;
}

.nav-button {
  background-color: #31703d;
  color: #c8d989;
  border: none;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  margin: 0 0.5rem;
  border-radius: 10px;
  font-weight: bold;
  display: inline-block;
  font-size: 1.4rem;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #588d39;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  background-color: #c8d989;
}

.histoire {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  max-width: 1200px;
  width: 100%;
  justify-content: space-between;
}

.texte-histoire, .image-histoire {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.texte-histoire h2 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #a7c832ff; /* couleur modifiée */
}

.texte-histoire p {
  font-size: 1.8rem;
  line-height: 1.4;
  color: #31703d;
  font-weight: bold;
}

.image-histoire {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.image-histoire img {
  width: 100%;
  max-width: 600px; 
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 2rem auto;

}


.bloc-coordonnees {
  font-size: 1.9rem; 
  width: 200px;
  flex: 0.8 15%;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px
  
  }

.bloc-carte {
  width: 1000px;
  flex: 1 1 45%;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

nav {
  margin-top: 1rem;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.plante {
    background-color: white; /* ✅ fond blanc */
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 1.5rem;
    width: 320px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1rem;
  }
  

.plante img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.plante h2 {
  background-color: #c8d989;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  display: inline-block;
  font-family: 'Amatic SC', cursive;
  font-weight: 700; /* max possible */
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2e5c1f;
  margin-bottom: 0.1rem; 

  
}

.prix {
  font-family: "Arial Black";
  font-size: 1.8rem;
  font-weight: 250; /* max possible */
  height: auto;
  margin-top: 0;  
 
}

button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: green;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}


footer {
  text-align: center;
  width: 100%;
  background-color: #588d39;
  color:#c8d989 ;
  padding: 0.01rem;
  font-size: 22px;
  margin-top: auto;
}

.quantite {
  width: 60px;
  margin-top: 0.5rem;
}




.notif-hidden {
  display: none;
}


#filtre {
  background-color: #4d8534 ;
  display: inline-block ; 
  align-items: center;
  gap: 1rem;
  margin: 0 2rem 1rem 2rem; /* ⬅ enlève le margin-top */
  font-size: 1.4rem;
  font-weight: bold;
  color: #c8d989;
  justify-content: flex-start;
  border-radius: 6px;
  margin-bottom: 0.2rem;
  padding: 8px;
}



#filtre label {
  font-size: 0.2rem;
  font-weight: bold;
  font-size: 25px;
}

#categorie {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  border: 2px solid #4d8534;
  border-radius: 8px;
  background-color: rgb(255, 255, 255);
  color: #2e5c1f;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#categorie:hover {
  background-color: #c8d989;
}

.highlight {
  background-color: #c8d989;
  border-radius: 8px;
  text-align: middle;
  font-size: 30px;
  padding: 0.2rem 0.5rem;
  font-weight: bold;
  display: block;
  margin-bottom: 0.3rem;
  line-height: 1;
  border: 1px solid #2d572c;
  
}

.detail {
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  font-size: 25px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 0.3rem;

}

.hidden {
  display: none;
}

.toggle-description {
  display: inline-flex;
  background-color: #ffffff !important;
  border: 2px solid #2d572c !important;
  color: #2d572c !important;
  padding: 6px 10px;
  margin: 0.5rem 0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 30s, color 30s;
}

.toggle-description:hover {
  background-color: #2d572c !important;
  color: #c8d989 !important;
}


.quantite-wrapper {
  border: 2px solid #a3d977;
  background-color: #f5fff0;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 10px 0;
  display: inline-block;
}

.quantite-wrapper label {
  font-weight: bold;
  margin-right: 8px;
  color: #3e6b1c;
  font-size: 1.2rem; 
}

.quantite-wrapper input {
  width: 50px;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 5px;
}


.formulaire-cacher {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  border-radius: 10px;
  max-width: 500px;
}

.btn-commande {
  background-color: #3e6b1c;
  color: white;
  border: none;
  padding: 16px 28px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 10px;
  margin-top: 20px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.btn-commande:hover {
  background-color: #2e4f1a;
}

.btn-ajouter {
  background-color: #3e6b1c;
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.btn-ajouter:hover {
  background-color: #2e4f1a;

}

/* ===== SECTION ENGAGEMENTS (EN DESSOUS) ===== */
.engagements-photo-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 3rem;
  gap: 2rem;
  background-color: #e8f5c8;
}

/* Zones texte engagements */
.engagements-text {
  flex: 1 1 55%;
  text-align: right;
}

.engagements-text h2 {
  margin-top: 1rem;
  font-size: 1.6rem;
  color: #3e6b1c;
}

.engagements-text ul {
  list-style: none;
  padding-left: 0;
}

.engagements-text li {
  font-size: 25px;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: bold;
  text-align: right;
}

/* Image engagements */
.engagements-image {
  flex: 1 1 40%;
}

.engagements-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.encadre {
  background-color: #a7c832ff;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1rem;
}
  .plante {
    width: 100%;
    box-sizing: border-box;
  }

  .quantite-wrapper, .btn-ajouter {
    display: block;
    width: 100%;
    margin-top: 5px;
  }

.horaires {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch; /* même hauteur pour les 2 colonnes */
  padding: 2rem;
  flex-wrap: wrap;
}


.horaires .texte-horaires {
  flex: 1;
  font-size: 1.3em;
}

.horaires .texte-horaires h1 {
  font-size: 2.5em;
  margin-bottom: 1rem;
}

.horaires .texte-horaires h2 {
  font-size: 1.8em;
  margin-top: 2rem;
}

.horaires .texte-horaires ul {
  list-style: none;
  padding-left: 0;
}

.horaires .texte-horaires li {
  margin-bottom: 0.5rem;
}

.bloc-texte {
  flex: 1;
  display: flex;
  justify-content: center;   /* centre horizontalement */
  align-items: center;       /* centre verticalement */
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.photo-horaires {
  flex: 0 0 300px; /* largeur fixe pour la photo */
  max-width: 100%;
}

.photo-horaires img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.texte-horaires {
  text-align: center;
}

.photo-horaires {
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-horaires img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit le bloc sans déformation */
  border-radius: 20px;
}
/* ======= STYLE MODERNE DU CATALOGUE ======= */


.plante {
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(49,112,61,0.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.plante:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.plante img {
  width: 100%;
  height: 200px;          /* ✅ même hauteur pour toutes les photos */
  object-fit: cover;      /* ✅ recadre sans déformer */
  border-bottom: 2px solid #c8d989;
}

.plante h2 {
  font-size: 1.8rem;
  color: #2e5c1f;
  margin: 0.6rem 0 0.2rem;
}

.plante .prix {
  font-size: 1.4rem;
  font-weight: bold;
  color: #31703d;
  margin-bottom: 0.8rem;
}

.btn-ajouter, .plante button {
  background-color: #31703d;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  font-weight: bold;
}

.btn-ajouter:hover, .plante button:hover {
  background-color: #588d39;
}

/* Quantité et description */
.quantite-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-bottom: .8rem;
}



/* Spécifique à la page catalogue */
.main.catalogue {
  display: block;          /* au lieu de flex */
  background-color: #c8d989;
  padding: 2rem 1rem;
}

#catalogue {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 2.5rem;                           
  justify-items: center;
  padding: 2.5rem 2rem;
}

/* ✅ Responsive : 2 à 3 cartes selon la largeur */
@media (max-width: 1200px) {
  #catalogue {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  #catalogue {
     grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  #catalogue { 
      grid-template-columns: 1fr;
  }
}

/* ===== Bandeau offre défilant ===== */
.bandeau-offre {
  background-color: #fff9d6;              /* vert clair de ta charte */
  color: #2d572c;                         /* vert foncé du texte */
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 2.2rem;                      /* texte bien visible */
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid #2d572c;
  padding: 0.6rem 0;
  border: none;                     /* 🚫 supprime la ligne verte */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.texte-defilant {
  display: inline-block;
  padding-left: 100%;                     /* commence à droite */
  animation: defilementTexte 35s linear infinite;
}

/* Animation de défilement fluide */
@keyframes defilementTexte {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Couleurs pour les mots clés */
.bandeau-offre strong {
  color: #c6392f;                         /* rouge pour “2 offerts !” */
}
/* ===== MODAL PRODUIT — version homogène catalogue ===== */
:root {
  --green: #416f35;
  --green-light: #d4e78f;
  --radius-big: 20px;
}

/* --- Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}
.modal-overlay.active {
  display: flex;
}

/* --- Fenêtre --- */
.modal {
  background: #fff;
  border-radius: var(--radius-big);
  width: min(92%, 850px);
  max-height: 90vh;
  overflow-y: auto; /* un seul scroll */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: popIn 0.25s ease-out;
  padding: 1.8rem 2rem;
}
@keyframes popIn {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Croix --- */
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #555;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--green); }

/* --- Contenu --- */
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  overflow-y: auto;        /* un seul menu déroulant */
  scrollbar-width: thin;
  scrollbar-color: rgba(65,111,53,0.4) transparent;
}
.modal-content::-webkit-scrollbar {
  width: 7px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(65,111,53,0.4);
  border-radius: 999px;
}

/* --- Image --- */
.modal-image-wrap {
  width: 100%;
  max-width: 350px; /* 3x plus petite que ta précédente */
  border-radius: 14px;
  overflow: hidden;
  background: #eff5ea;
}
.modal-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Infos --- */
.modal-info {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.modal-info h2 {
  font-family: inherit;
  font-size: 2.2rem;           /* beaucoup plus grand */
  font-weight: 700;
  color: #31703d;
  text-transform: none;
  background: #c8d989;
  padding: 0.5rem 2rem;
  border-radius: 16px;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
  width: fit-content;
  text-align: center;
}

/* prix identique au catalogue */
.modal-price {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #31703d;
  background-color: #fff; /* vert clair de ta charte */
  padding: 0.4rem 1rem;
  border: 2px solid #31703d;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

/* --- Description --- */
.modal-description {
  width: 100%;
  max-width: 680px;
  text-align: left;
  line-height: 1.5;
  font-size: 1rem;
  padding: 0.5rem 0;
}
.modal-description p {
  margin: 0.4rem 0;
}

/* --- Quantité + bouton --- */
.modal-action {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.modal-action label {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #333;
}
#modal-quantity {
  border: 1px solid #c6c6c6;
  border-radius: 12px;
  padding: 0.4rem 0.7rem;
  font-size: 1rem;
  width: 85px;
  background: #fff;
}
.btn-primary {
  background: var(--green);
  border: none;
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(65,111,53,0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .modal {
    width: 96%;
    padding: 1.2rem;
  }
  .modal-image-wrap {
    max-width: 300px;
  }
  .modal-info h2 {
    font-size: 1.2rem;
  }
  .modal-price {
    font-size: 1.1rem;
  }
  
}
  /* ========= CORRECTIONS RESPONSIVE ========= */

/* 1. petit correctif global : on évite les débordements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  
}
.bandeau-offre {
  overflow-x: hidden;
}
/* ====== ÉCRANS ≤ 1024px (tablettes / petits ordis) ====== */
@media (max-width: 1024px) {

  .main {
    padding: 2rem 1rem;
  }

  /* blocs avec 2 colonnes → on empile */
  .histoire,
  .contact-row,
  .engagements-photo-wrapper,
  .horaires {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .texte-histoire,
  .image-histoire,
  .vision-text,
  .engagements-text,
  .bloc-carte,
  .bloc-coordonnees {
    max-width: 100%;
    width: 100%;
  }

  /* carte google */
  .map-container {
    height: 300px;
  }

  /* images côté droite/gauche */
  .vision-image img,
  .engagements-image img,
  .photo-horaires img {
    width: min(100%, 480px);
  }

  /* catalogue → 3 par ligne */
  #catalogue {
    grid-template-columns: repeat(3, 1fr);
    padding: 1.5rem 0.5rem 5rem;
  }
}

/* ====== ÉCRANS ≤ 768px (smartphones en portrait) ====== */
@media (max-width: 768px) {

  /* police générale un peu plus petite sinon Amatic prend trop de place */
  body {
    font-size: 18px;
  }

  .header {
    padding: 1.5rem 1rem;
  }

  .logo {
    width: 220px;
  }

  .slogan {
    font-size: 1.8rem;
  }

  /* nav en colonne si tu en as plusieurs */
  .nav-button {
    display: inline-block;
    margin: 0.25rem 0.25rem;
    font-size: 1.2rem;
  }

  

  /* --- CONTACT --- */
  .contact-row {
    gap: 1.5rem;
  }
  .bloc-coordonnees,
  .bloc-carte {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  /* --- HORAIRES --- */
  .horaires {
    padding: 1.5rem 1rem 5rem;
  }

  /* --- CATALOGUE --- */

  /* le filtre prenait trop de largeur à cause des margins */
  #filtre {
    width: 100%;
    margin: 0 0 1rem 0;
    justify-content: center;
    display: flex;
    gap: 0.7rem;
  }

  #categorie {
    width: auto;
  }

  /* grille → 2 colonnes max */
  #catalogue {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
  }

  .plante {
    max-width: 100%;
    width: min(100%, 360px);
  }


  /* bandeau offre → texte un peu plus petit */
  .bandeau-offre {
    font-size: 1.8rem;
  }

  /* MODAL produit sur mobile */
  .modal {
    width: 96%;
    max-height: 90vh;
  }
  .modal-content {
    align-items: center;
  }
  .modal-info h2 {
    font-size: 1.6rem;
  }
  .modal-price {
    font-size: 1.4rem !important;
  }
}

/* ====== ÉCRANS ≤ 480px (très petits téléphones) ====== */
@media (max-width: 480px) {

  .header {
    padding: 1rem 0.6rem;
  }

  .slogan {
    font-size: 1.5rem;
  }

  .vision-text p,
  .engagements-text li {
    font-size: 1.2rem;
  }

  /* catalogue → 1 carte par ligne */
  #catalogue {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding-bottom: 5rem;  
  }

  .plante img {
    height: 210px;
  }

  /* textes dans les encadrés */
  .encadre {
    font-size: 1.1rem;
  }
}

/* version générale du filtre */
#filtre {
  display: flex;
  flex-wrap: wrap;          /* permet de revenir à la ligne */
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-start;
  background-color: #4d8534;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  width: min(100%, 1050px); /* ne dépasse jamais l’écran */
  margin: 0 auto 1rem;      /* centré */
  box-sizing: border-box;
}

#filtre label {
  font-size: 1.2rem;        /* un peu plus raisonnable que 25px */
  color: #c8d989;
}

/* sur petits écrans on resserre vraiment */
@media (max-width: 600px) {
  #filtre {
    width: 100%;
    margin: 0 0 1rem 0;     /* plus de marge latérale */
    justify-content: center;
    padding: 0.5rem 0.5rem;
  }

  #categorie {
    width: 100%;
    max-width: 280px;       /* évite que le select soit trop large */
  }

  #filtre label {
    font-size: 1.05rem;
  }
}

/* ===== SECTION "NOTRE VISION" (version finale) ===== */

/* Desktop / écran large */
.vision-photo-wrapper {
  background-color: #e8f5c8;
  width: 100%;
  margin: 0;
  padding: 3rem 6vw;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;        /* centre la photo verticalement par rapport au texte */
  gap: 3rem;
}

.vision-text {
  flex: 1 1 55%;
  min-width: 0;
}

.vision-text p {
  font-size: 1.6rem;          /* texte + grand sur PC */
  line-height: 1.7;
}

/* ✅ photo à droite, taille contrôlée (pas écran entier) */
.vision-image {
  flex: 0 0 380px;            /* largeur colonne photo */
  display: flex;
  justify-content: center;
  align-items: center;
}

.vision-image img {
  width: 100%;
  max-width: 380px;           /* limite la largeur */
  max-height: 260px;          /* évite l’effet “photo géante” */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== Mobile / tablette ===== */
@media (max-width: 900px) {
  .vision-photo-wrapper {
    flex-direction: column;
    padding: 2rem 1rem;
    background-color: #e8f5c8;  /* on garde bien le fond vert sur mobile */
  }

  .vision-text p {
    font-size: 1.3rem;
  }

  .vision-image {
    width: 100%;
    max-width: 330px;          /* ✅ même logique que ta section engagements */
    margin: 0 auto;
  }

  .vision-image img {
    width: 100%;
    max-height: 200px;         /* ✅ plus petite en hauteur sur mobile */
    object-fit: cover;
  }
}
/* ===== PANIER ===== */

/* conteneur général */
#panier {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  overflow: hidden;
  z-index: 9999;
}

/* ÉTAT FERMÉ = la pilule blanche + bouton vert */
#panier:not(.ouvert) {
  width: 340px;
  height: 64px;
  background: transparent;
  border: none;
  overflow: visible;
}

/* cadre blanc arrondi */
#panier:not(.ouvert)::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 64px;
  background: #ffffff;
  border: 3px solid #3c6f3c;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  pointer-events: none;
}

/* bouton "Afficher le panier" bien centré */
#panier:not(.ouvert) #toggle-panier {
  position: relative;
  z-index: 1;
  width: calc(100% - 12px);
  height: 52px;
  margin: 6px;
  background: #446f42;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: 'Amatic SC', cursive;
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  line-height: 1;
  cursor: pointer;
  text-align: center;
}

/* pastille quantité */
#panier:not(.ouvert) #notif-panier {
  background: #ffffff;
  color: #e40e0e;
  border-radius: 999px;
  padding: 0 .6rem;
  font-size: 1.3rem;
}

/* === cacher le contenu du panier quand il est fermé === */
#contenu-panier {
  display: none;
  width: 100%;

  background: #ffffff;       /* ✅ fond blanc propre */
  border: 2px solid #3c6f3c; /* vert léger de ta charte */
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); /* légère ombre */

  padding: 1.2rem;
  transition: all 0.3s ease; /* petit effet fluide à l’ouverture */
}

/* === afficher le contenu seulement quand .ouvert est présent === */

/* quand le panier est ouvert, le bouton doit être dedans */
#panier.ouvert #toggle-panier {
  position: static;              /* plus de position spéciale */
  width: 100%;
  margin: 0 0 0.8rem 0;
  border-radius: 10px;
  background: #31703d;
  box-shadow: none;
}


/* ====== STYLE INTERNE DU PANIER ====== */

#contenu-panier h3 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.panier-liste {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.panier-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  background: #ffffff;
  border: 1px solid #dbe8d2;
  border-radius: 12px;
  padding: 0.5rem 0.6rem;
}

.panier-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.panier-nom {
  margin: 0;
  font-weight: 700;
  color: #2f6a36;
  font-size: 1.15rem;
}

.panier-soustotal {
  margin: 0;
  font-size: 0.9rem;
  color: #557450;
}

.panier-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.panier-input-suppr {
  display: none; /* plus utilisé */
}

/* boutons + et - */
#contenu-panier .panier-btn-moins,
#contenu-panier .panier-btn-plus {
  background: #e4f3cf;
  color: #3e6b1c;
  border: 1px solid #3e6b1c;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  font-weight: bold;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

#contenu-panier .panier-btn-moins:hover,
#contenu-panier .panier-btn-plus:hover {
  background: #3e6b1c;
  color: #fff;
}

.panier-quantite-input {
  width: 44px;
  height: 28px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  font-family: 'Amatic SC', cursive;
  border: 1px solid #3e6b1c;
  border-radius: 6px;
  background: #fff;
  color: #3e6b1c;
  padding: 0;
  -moz-appearance: textfield;
}

.panier-quantite-input::-webkit-outer-spin-button,
.panier-quantite-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.panier-label {
  font-size: 0.85rem;
  color: #3e6b1c;
}

/* bouton spécifique panier */
#contenu-panier .panier-btn-suppr {
  background: #31703d;
  color: #fff;
  border: none;
  border-radius: 8px;
  min-width: 32px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: bold;
  padding: 0 0.6rem;
}

#contenu-panier .panier-btn-suppr:hover {
  background: #27592e;
}

.panier-resume {
  margin-top: 0.8rem;
  background: #e4f3cf;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
}

#panier.ouvert {
  width: 380px;
  border-radius: 20px;
  max-height: 80vh;
  overflow: visible;  /* ✅ on laisse le bouton respirer */
}


#panier.ouvert #contenu-panier {
  display: block;
  width: 100%;
  max-height: calc(80vh - 4.5rem); /* ✅ hauteur dispo sous le bouton */
  overflow-y: auto;                 /* ✅ scrollbar ICI seulement */
  background: #ffffff;
  border: 2px solid #3c6f3c;
  border-radius: 0 0 14px 14px;     /* ✅ arrondi en bas seulement */
}


/* Scrollbar seulement dans le contenu */
#panier.ouvert #contenu-panier::-webkit-scrollbar {
  width: 10px;
}

#panier.ouvert #contenu-panier::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 10px;
}

#panier.ouvert #contenu-panier::-webkit-scrollbar-thumb {
  background-color: #31703d;
  border-radius: 10px;
  border: 2px solid #ffffff;
}

#panier.ouvert #contenu-panier::-webkit-scrollbar-thumb:hover {
  background-color: #245528;
}

/* Firefox */
#panier.ouvert #contenu-panier {
  scrollbar-width: thin;
  scrollbar-color: #31703d #ffffff;
}
/* === PANIER : corrections mobile === */

/* === AJUSTEMENTS MOBILE PANIER === */
@media (max-width: 600px) {

  /* Centrer le conteneur du panier (fermé et ouvert) */
  #panier {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 10px;
    width: 94vw;
    max-width: 400px;
    margin: 0;
    box-sizing: border-box;
  }

  /* État fermé (pilule blanche) */
  #panier:not(.ouvert) {
    width: 94vw;
    height: 64px;
  }

  #panier:not(.ouvert)::before {
    inset: 0;
  }

  #panier:not(.ouvert) #toggle-panier {
    width: calc(100% - 12px);
    margin: 6px;
  }

  /* État ouvert */
  #panier.ouvert {
    width: 94vw;
    max-height: 80vh;
  }

  #panier.ouvert #contenu-panier {
    max-height: calc(80vh - 4.5rem);
    overflow-y: auto;
  }
}

/* === AGRANDIR LE NOMBRE D’ARTICLES DANS LE PANIER === */
.panier-soustotal {
  font-size: 1.3rem;        /* agrandit le x4 et le prix */
  font-weight: 600;
  color: #2f6a36;           /* ton vert principal */
  letter-spacing: 0.02em;
}
/* === AGRANDIR LE TOTAL DU PANIER === */
.panier-resume {
  font-size: 1.4rem;       /* agrandit le texte global du résumé */
  font-weight: 600;
  color: #2f6a36;
  line-height: 1.6;
}

/* pour mettre encore plus en valeur les chiffres */
.panier-resume strong,
.panier-resume span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #255d2c;
}

/* Bloc coupon dans le panier — version compacte */
.coupon-block {
  margin-top: 18px;
  padding: 14px 16px;          /* <- réduit */
  background-color: #f7ffef;
  border-radius: 12px;
  border: 2px dashed #9ccc65;  /* <- plus fin */
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.05);
  font-size: 1.2rem;
}

.coupon-block label {
  display: block;
  font-weight: 700;
  color: #3e6b1c;
  margin-bottom: 6px;          /* <- réduit */
  font-size: 1.25rem;
}

.coupon-block input[type="text"] {
  width: 100%;
  padding: 10px 14px;          /* <- réduit */
  border-radius: 10px;
  border: 1px solid #cccccc;
  font-size: 1.1rem;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.coupon-block button {
  padding: 10px 18px;          /* <- réduit */
  border-radius: 10px;
  background-color: #3e6b1c;
  color: white;
  font-size: 1.15rem;
  border: none;
  cursor: pointer;
  transition: 0.12s ease;
}

.coupon-block button:hover:not(:disabled) {
  background-color: #2e5317;
  transform: translateY(-1px);
}

/* Message */
#coupon-message {
  margin-top: 6px;
  font-size: 1.15rem;
  line-height: 1.6rem;
}

/* Style pour l'image et la vidéo */
.image-histoire img,
.image-histoire video {
  width: 100%;
  max-width: 600px;  /* ← AJOUTÉ */
  height: auto;      /* ← MODIFIÉ (était 100%) */
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* ==========================
   BANDEAU PROMOTIONNEL
   ========================== */
#bandeau-promo {
  display: none;
  background: linear-gradient(90deg, #2e5317, #3e6b1c, #2e5317);
  color: white;
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  font-family: 'Amatic SC', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bandeau-inner {
  display: inline-block;
  animation: defileBandeau 60s linear infinite;
}

@keyframes defileBandeau {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ==========================
   POPUP PROMOTIONNELLE
   ========================== */
#popup-promo {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup-card {
  background: #f2fce7;
  border: 3px solid #3e6b1c;
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  font-family: 'Amatic SC', cursive;
}

#popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #3e6b1c;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: auto;
  margin: 0;
  font-family: 'Amatic SC', cursive;
}

.popup-icon {
  font-size: 3rem;
  margin-bottom: 6px;
}

.popup-titre {
  color: #f5a623;
  margin: 0 0 10px;
  font-size: 2.8rem;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  text-shadow: 1px 1px 0px rgba(0,0,0,0.15);
}

.popup-reduction {
  font-size: 5rem;
  font-weight: 700;
  color: #3e6b1c;
  line-height: 1;
  margin: 6px 0;
  font-family: 'Amatic SC', cursive;
}

.popup-texte {
  color: #2e5317;
  margin: 8px 0 14px;
  font-size: 1.8rem;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
}

.popup-countdown-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: #3e6b1c;
  margin-bottom: 4px;
  font-family: 'Amatic SC', cursive;
}

.popup-countdown {
  font-size: 3rem;
  font-weight: 700;
  color: #2e5317;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
  font-family: 'Amatic SC', cursive;
}

.popup-cta {
  background: #3e6b1c;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.6rem;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 0;
}

.popup-cta:hover {
  background: #2e5317;
}