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

/* Global */
body {
  font-family: "Verdana", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f9;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* Header */
.header {
  background: #d64045;
  color: #fff;
  padding: 15px 0;
  text-align: center;
}

.header h1 {
  margin-bottom: 10px;
}

.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav li {
  margin: 0 15px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  text-decoration: underline;
}

/* Style pour le conteneur des liens "Explore" avec un fond sombre */
.explore-links-wrapper {
  background-color: #2c3e50; /* Un gris-bleu très foncé */
  color: #fff; /* Texte blanc pour un contraste élevé */
  padding: 25px 20px;
  border-radius: 12px; /* Pour correspondre au style des 'cards' */
  margin-top: 30px; /* Espace au-dessus de ce bloc */
  box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Ombre pour donner de la profondeur */
}

.explore-links-wrapper h2 {
  color: #fff; /* Titre blanc */
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.3em; /* Ajustez la taille du titre si nécessaire */
}

.explore-links-wrapper .explore-nav ul {
  list-style: none; /* Supprime les puces par défaut */
  display: flex;
  flex-direction: column; /* Organise les liens verticalement */
  gap: 12px; /* Espacement entre les liens */
}

.explore-links-wrapper .explore-nav li {
  margin: 0; /* Réinitialise les marges du li */
}

.explore-links-wrapper .explore-nav a {
  color: #fff; /* Liens blancs par défaut */
  text-decoration: none;
  font-weight: bold; /* Les rend plus visibles */
  display: block; /* Prend toute la largeur pour une meilleure zone de clic */
  padding: 5px 0; /* Padding léger pour un meilleur espacement */
  transition: color 0.3s ease; /* Transition douce pour le survol */
}

.explore-links-wrapper .explore-nav a:hover {
  text-decoration: underline;
  color: #ffc107; /* Un jaune doré pour le survol, qui contraste bien avec le fond sombre */
}

/* Vous voudrez peut-être aussi revoir les styles de .sidebar-nav pour une meilleure distinction */
.sidebar-nav {
    background-color: #fff; /* Fond blanc pour la navigation rapide */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px; /* Espace sous la navigation rapide */
}

.sidebar-nav h2 {
    color: #d64045; /* Couleur du titre pour la navigation rapide */
    margin-bottom: 15px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav a {
  color: #333; /* Couleur de lien pour la navigation rapide */
  text-decoration: none;
  font-weight: normal;
  display: block;
}

.sidebar-nav a:hover {
  text-decoration: underline;
  color: #d64045;
}


/* Styles additionnels pour les nouvelles sections */
.species-grid, .identifier-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.species-card, .identifier-card {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #d64045;
}

.timeline-item {
  border-left: 3px solid #d64045;
  padding-left: 20px;
  margin: 20px 0;
}

.timeline-item h4 {
  color: #d64045;
  margin-bottom: 10px;
}

.comparison-table {
  margin: 20px 0;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #eee;
  padding: 12px;
  text-align: left;
}

.comparison-table th {
  background-color: #d64045;
  color: white;
  font-weight: bold;
}

.diagnostic-quiz {
  background: #fff3cd;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  margin: 20px 0;
}

.step-card {
  background: white;
  padding: 20px;
  margin: 15px 0;
  border-radius: 8px;
  border-left: 4px solid #d64045;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.treatment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.option-card {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border-top: 4px solid #d64045;
}

.medication-guide {
  background: #e7f3ff;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.warning-signs {
  background: #f8d7da;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #dc3545;
  margin: 20px 0;
}

.prevention-strategies {
  margin: 20px 0;
}

.strategy-card {
  background: white;
  padding: 20px;
  margin: 15px 0;
  border-radius: 8px;
  border-top: 4px solid #d64045;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.temperature-guide {
  background: #e6f3ff;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.personal-protection {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.protection-method {
  flex: 1;
  min-width: 280px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #d64045;
}

.seasonal-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.season-card {
  flex: 1;
  min-width: 200px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-top: 4px solid #d64045;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .species-grid, .identifier-grid,
  .treatment-options, .personal-protection {
    flex-direction: column;
  }
  
  .species-card, .identifier-card,
  .option-card, .protection-method {
    min-width: auto;
  }
  
  .comparison-table {
    font-size: 0.85rem;
  }
}


/* Hero */
.hero {
  background: #fff;
  padding: 30px 20px;
  border-bottom: 2px solid #eee;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.hero-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px; /* petite marge entre image et pub */
}

.hero-img {
  height: 280px;        /* Hauteur fixe sur PC */
  width: auto;          /* Garde le ratio */
  border-radius: 10px;
  object-fit: cover;    /* Remplit sans déformation */
}

/* Responsive: sur mobile l’image et la pub se mettent en colonne */
@media (max-width: 768px) {
  .hero-flex {
    flex-direction: column;
    align-items: center;
  }

  .hero-img {
    width: 80%;         /* Largeur à 80% sur smartphone */
    height: auto;       /* Hauteur auto pour garder les proportions */
  }
}

/* AdSense */
.adsense {
  flex: 0 0 336px;
  text-align: center;
}

/* Responsive: sur mobile l’image et la pub se mettent en colonne */
@media (max-width: 768px) {
  .hero-flex {
    flex-direction: column;
    align-items: center;
  }
}


/* Card Sections */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  padding: 20px;
  margin: 25px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card h2 {
  margin-bottom: 15px;
  color: #d64045;
}

/* FAQ */
.faq {
  margin: 40px 0;
}

.faq h2 {
  color: #d64045;
  margin-bottom: 20px;
  text-align: center;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.faq-question {
  width: 100%;
  padding: 15px;
  background: #d64045;
  color: #fff;
  border: none;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  padding: 15px;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg); /* Le + devient un x */
}


/* Footer */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  border-radius: 8px 8px 0 0;
}

#backToTop {
  margin-top: 10px;
  padding: 8px 16px;
  background: #d64045;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#backToTop:hover {
  background: #b43035;
}


