/* Styles basés sur recettes.css mais adaptés aux plantes */
.logo {
  max-width: 200px;
  height: auto;
  margin-right: 12px;
}

header h1 {
  display: inline-block;
  vertical-align: middle;
}

.hero-img {
  max-width: 100%;
  width: 300px;
  height: auto;
  display: block;
  margin: 1rem auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.intro-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #2f5940;
}

.intro-section p {
  text-align: center;
  color: #2f5940;
}

.highlight-section {
  color: #2f5940;
}

.categories-section {
  color: #2f5940;
}

.site-header {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  background: #f9fefb;
  border-radius: 12px;
}

.site-header p {
  font-size: 1.2rem;
  color: #555;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #2f5940;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
}

header {
  text-align: center;
  padding: 0;
  background: #f0f8f2;
}

header img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

header h1 {
  font-size: 2rem;
  color: #2f5940;
  margin-top: 1rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2f4034;
}

nav {
  margin: 1rem 0;
}
/* Style pour la navigation horizontale */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 1rem 0;
}

nav li {
  margin: 0 10px;
}

nav a {
  margin: 0; /* Remplacer la marge existante */
  padding: 8px 15px;
  text-decoration: none;
  color: #2f5940;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 24px;
}

nav a:hover {
  background-color: #e8f3dc;
}

/* Styles spécifiques pour la page des plantes */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.categorie-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categorie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.categorie-card h3 {
  color: #548235;
  margin-bottom: 10px;
}

.categorie-card p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.btn-categorie {
  display: inline-block;
  padding: 8px 15px;
  background-color: #548235;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.btn-categorie:hover {
  background-color: #3c611c;
}

/* Styles ajoutés pour la mise en page Pinterest */
.highlight-section {
  margin-bottom: 40px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.highlight-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.highlight-card h3 {
  color: #548235;
  margin-bottom: 5px;
}
.highlight-section {
  color: #2f5940;
}

.categories-section {
  color: #2f5940;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .highlight-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  
  .categorie-card, .highlight-card {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .categories-grid, .highlight-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .categorie-card h3, .highlight-card h3 {
    font-size: 1rem;
  }
  
  .categorie-card p, .highlight-card p {
    font-size: 0.8rem;
  }
  
  .btn-categorie {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
 
/* Bouton retour */
.btn-retour {
  display: inline-block;
  padding: 10px 20px;
  background-color: #548235;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.btn-retour:hover {
  background-color: #3c611c;
}

/* Style pour la modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  max-width: 600px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #777;
  cursor: pointer;
}

.close-modal:hover {
  color: #333;
}

.modal-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-image-placeholder {
  width: 100%;
  height: 200px;
  background-color: #f1f7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #548235;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.modal h2 {
  color: #548235;
  margin-bottom: 15px;
}

.bienfaits-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.bienfait-tag {
  background: #e8f3dc;
  color: #548235;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.modal-section {
  margin: 15px 0;
}

.modal-section h3 {
  color: #548235;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .plantes-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .plante-card {
    padding: 12px;
  }
  
  .plante-card img, .plante-placeholder {
    height: 120px;
  }
  
  .modal-content {
    margin: 15% auto;
    padding: 20px;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .plantes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .plante-card h3 {
    font-size: 1rem;
  }
  
  .plante-card p {
    font-size: 0.8rem;
  }
  
  .btn-voir-plus {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

.btn-voir-plus:hover {
background-color: #3c611c;
}

/* Bouton retour */
.btn-retour {
display: inline-block;
padding: 10px 20px;
background-color: #548235;
color: white;
text-decoration: none;
border-radius: 6px;
margin-bottom: 20px;
transition: background-color 0.3s ease;
}

.btn-retour:hover {
background-color: #3c611c;
}

/* Style pour la modal */
.modal {
display: none;
position: fixed;
z-index: 100;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.5);
}

.modal-content {
background-color: #fff;
margin: 10% auto;
padding: 25px;
border-radius: 12px;
box-shadow: 0 5px 25px rgba(0,0,0,0.2);
max-width: 600px;
position: relative;
}

.close-modal {
position: absolute;
top: 15px;
right: 20px;
font-size: 28px;
font-weight: bold;
color: #777;
cursor: pointer;
}

.close-modal:hover {
color: #333;
}

.modal-image {
width: 100%;
max-height: 250px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 20px;
}

.modal-image-placeholder {
width: 100%;
height: 200px;
background-color: #f1f7eb;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
color: #548235;
font-size: 1.5rem;
margin-bottom: 20px;
}

.modal h2 {
color: #548235;
margin-bottom: 15px;
}

.bienfaits-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 15px 0;
}

.bienfait-tag {
background: #e8f3dc;
color: #548235;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.9rem;
}

.modal-section {
margin: 15px 0;
}

.modal-section h3 {
color: #548235;
margin-bottom: 8px;
font-size: 1.1rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
.plantes-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.plante-card {
  padding: 12px;
}

.plante-card img, .plante-placeholder {
  height: 120px;
}

.modal-content {
  margin: 15% auto;
  padding: 20px;
  max-width: 90%;
}
}

@media (max-width: 480px) {
.plantes-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plante-card h3 {
  font-size: 1rem;
}

.plante-card p {
  font-size: 0.8rem;
}

.btn-voir-plus {
  padding: 6px 12px;
  font-size: 0.8rem;
}
}
/* Style pour la grille de plantes - DÉFINITION UNIQUE */
.plantes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 20px;
}

/* Style de la carte plante - DÉFINITION UNIQUE */
.plante-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 250px; /* Largeur fixe pour uniformité */
  margin-bottom: 30px;
  position: relative;
}

.plante-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Style pour le placeholder vert avec image */
.plante-placeholder {
  width: 100%;
  height: 150px;
  background-color: #f1f7eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
}

/* Style pour l'image dans le placeholder */
.plante-img {
  width: 85%;
  height: 85%;
  object-fit: cover;
  border-radius: 6px;
}

/* Style pour le bouton */
.btn-voir-plus {
  display: inline-block;
  padding: 8px 15px;
  background-color: #548235;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 10px;
}
.modal-content {
  position: relative;   /* crée un nouveau contexte */
  z-index: 1000;        /* au-dessus de l’overlay de fond */
}

.modal-actions a {
  pointer-events: auto; /* autorise bien le clic */
  cursor: pointer;      /* joli retour visuel */
  display: inline-block;
  padding: 0.3em 0.6em;
}
/* Styles spécifiques pour l'impression */
@media print {
  @page {
    size: A4;
    margin: 1cm;
  }
  
  body {
    margin: 0;
    padding: 0;
  }
  
  .modal-content {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .btn-action, .nav, .footer, .header {
    display: none !important;
  }
}
/* Style pour les boutons d'action (Imprimer et Télécharger PDF) */
/* Style pour les boutons d'action */
/* Style pour les boutons d'action (Imprimer et Télécharger PDF) */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color: white;
  background-color: #548235;
}

.btn-action:hover {
  background-color: #3c611c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pdf-btn {
  background-color: #548235;
}

.pdf-btn:hover {
  background-color: #548235;
}

/* Ajouter les icônes aux boutons */
#btnImprimer::before {
  content: "🖨️ ";
  margin-right: 5px;
}

#btnPDF::before {
  content: "📄 ";
  margin-right: 5px;
}
/* Footer */
.site-footer {
  text-align: center;
  background: #f3fbf4;
  padding: 2rem 1rem;
  margin-top: 3rem;
  color: #666;
}
/* Style pour les filtres (à ajouter dans vos fichiers CSS) */
.filters {
  display: flex;
  justify-content: center;
  margin: 1rem 0 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem;
}

.filter-btn {
  background: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-btn:hover {
  animation: pulse 0.6s infinite;
}

.filter-btn.active, .filter-btn:hover {
  background: #2a6b2a;
  color: white;
}

/* Animation de pulse */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* S'assurer que les cartes ont une transition */
.plante-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Media queries pour responsive */
@media (max-width: 768px) {
  .filters {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
    flex-wrap: nowrap;
  }
  
  .filter-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}