/* Styles généraux */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6%;
  background: #f8fbf8;
  border-bottom: 1px solid #f0f0f0;
}

h1 {
  font-family: 'Libre Baskerville', serif;
  color: #2f5940;
  font-size: 1.5rem;
  margin: 0;
}

.logo-container {
  display: flex;
  align-items: center;
}
.logo {
        max-width: 200px;  /* largeur max : adapte à ton header */
        height: auto;      /* conserve les proportions */
        margin-right: 12px; /* espace entre le logo et le titre */
      }

nav.top-nav {
  display: flex;
  gap: 2rem;
}

nav.top-nav a {
  text-decoration: none;
  color: #2f5940;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
  transition: color 0.3s ease;
}

nav.top-nav a:hover {
  color: #3a8759;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Introduction */
.diagnostic-intro {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto 2.5rem;
  padding: 0 1rem;
}

.diagnostic-intro p {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0.7rem 0;
}

/* STRUCTURE PINTEREST avec MASONRY */
.cartes-container {
  width: 100%;
  margin: 0 auto;
}

/* Style des cartes */
.carte-groupe {
  /* Masonry prendra ici la largeur de référence */
  width: 23px;
  float: left;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

/* Adaptation responsive */
@media (max-width: 1200px) {
  .carte-groupe { width: 31%; }
}
@media (max-width: 900px) {
  .carte-groupe { width: 48%; }
}
@media (max-width: 600px) {
  .carte-groupe { width: 100%; }
}


.masonry-loaded .carte-groupe {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Délais d'apparition pour l'effet cascade */
.masonry-loaded .carte-groupe:nth-child(1) { transition-delay: 0.05s; }
.masonry-loaded .carte-groupe:nth-child(2) { transition-delay: 0.1s; }
.masonry-loaded .carte-groupe:nth-child(3) { transition-delay: 0.15s; }
.masonry-loaded .carte-groupe:nth-child(4) { transition-delay: 0.2s; }
.masonry-loaded .carte-groupe:nth-child(5) { transition-delay: 0.25s; }
.masonry-loaded .carte-groupe:nth-child(6) { transition-delay: 0.3s; }
.masonry-loaded .carte-groupe:nth-child(7) { transition-delay: 0.35s; }
.masonry-loaded .carte-groupe:nth-child(8) { transition-delay: 0.4s; }
.masonry-loaded .carte-groupe:nth-child(9) { transition-delay: 0.45s; }
.masonry-loaded .carte-groupe:nth-child(10) { transition-delay: 0.5s; }
.masonry-loaded .carte-groupe:nth-child(11) { transition-delay: 0.55s; }
.masonry-loaded .carte-groupe:nth-child(12) { transition-delay: 0.6s; }
.masonry-loaded .carte-groupe:nth-child(13) { transition-delay: 0.65s; }
.masonry-loaded .carte-groupe:nth-child(14) { transition-delay: 0.7s; }

.carte-groupe:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(47, 89, 64, 0.12);
}

.carte {
  background: white;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.carte:hover {
  opacity: 0.95;
}

.carte img {
  max-height: 180px; /* Hauteur fixe ou max pour toutes les images */
  width: 100%; /* Force l'image à prendre toute la largeur */
  object-fit: cover; /* Très important pour une taille uniforme */
  border-radius: 12px 12px 0 0;
}

.carte-content {
  padding: 15px;
}

.carte-content h3 {
  margin: 0 0 8px 0;
  color: #2f5940;
  font-size: 1.2rem;
  font-weight: 600;
}

.carte-content p {
  margin: 0;
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Grand bouton central de diagnostic */
.diagnostic-button-container {
  text-align: center;
  margin: 3rem 0 4rem;
}

.diagnostic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3a6f4d;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(58, 111, 77, 0.2);
}

.diagnostic-button:hover {
  background: #305b3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(58, 111, 77, 0.25);
}

.diagnostic-button .icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Citation footer */
.citation-footer {
  text-align: center;
  font-style: italic;
  color: #4b6854;
  background: #f8fbf8;
  padding: 1.5rem 1rem;
  font-size: 1rem;
  margin-top: 2rem;
  border-radius: 6px;
}

.retour-accueil {
  margin: 1.5rem 0;
  text-align: center;
}

.retour-accueil a {
  color: #3a6f4d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.retour-accueil a:hover {
  color: #4a8b63;
  text-decoration: underline;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 2rem 1rem;
  background: #f8fbf8;
  margin-top: 1rem;
}

/* Styles pour la fiche */

.contenu-fiche {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 30px !important;
}

.fiche header.banniere {
  background: #f8fbf8;
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.fiche header img {
  max-height: 120px;
  border-radius: 6px;
}

.citation {
  margin-top: 1rem;
  font-style: italic;
  color: #3a6f4d;
}


h1#titre-probleme {
  color: #3a6f4d;
  font-size: 1.8rem;
}

#contenu-recommandation {
  margin-top: 2rem;
}

#contenu-recommandation h3 {
  color: #356444;
  margin-top: 2rem;
}

.encart-plante {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #f8fbf8;
  border-left: 5px solid #a7d7a4;
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(167, 215, 164, 0.15);
}

.encart-plante img {
  width: 100px;
  border-radius: 6px;
}

.encart-plante h4 {
  margin: 0 0 0.5rem;
  color: #3a6f4d;
}

.conseil-jour {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff6e9;
  border-left: 4px solid #f2c66d;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* Fil d'Ariane */
.breadcrumbs {
  background: #f8fbf8;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: #a7b9ac;
}

.breadcrumb-list a {
  color: #3a6f4d;
  text-decoration: none;
}

.breadcrumb-list .active {
  color: #555;
  font-weight: 600;
}

/* En-tête de fiche avec bouton retour et sauvegarde */
.fiche-header-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.btn-retour {
  display: inline-flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.btn-retour:hover {
  color: #3a6f4d;
}

.btn-retour span {
  margin-right: 0.5rem;
}

.btn-save {
  background: #f8fbf8;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: #3a6f4d;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-save:hover {
  background: #eaf5ea;
}

.btn-save span {
  margin-right: 0.5rem;
}

/* Ressources complémentaires */
.ressources-complementaires {
  background: #f9f8f4;
  border-radius: 10px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.ressources-complementaires h4 {
  margin-top: 0;
  color: #3a6f4d;
}

.ressource-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.btn-ressource {
  display: inline-flex;
  align-items: center;
  background: white;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  border: 1px solid #e0e0e0;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-ressource:hover {
  background: #f0f7f2;
  border-color: #c4e0cb;
  color: #3a6f4d;
}

.btn-ressource span {
  margin-right: 0.5rem;
}

/* Section "Quand consulter" */
.quand-consulter {
  background: #fff6e9;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid #f2c66d;
  box-shadow: 0 3px 10px rgba(242, 198, 109, 0.1);
}

.quand-consulter h3 {
  color: #d4945b;
}

.quand-consulter ul {
  margin-bottom: 1rem;
}

.avertissement {
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
}

/* CTA grand et visible */
.cta-container {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background: #3a6f4d;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(58, 111, 77, 0.2);
}

.cta-button:hover {
  background: #305b3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(58, 111, 77, 0.25);
}

.cta-button span {
  margin-right: 0.6rem;
  font-size: 1.2rem;
}
/* Ajouter au fichier diagnostic-styles.css */
.cta-container {
  background: linear-gradient(135deg, #f0f7f2, #e5f0e8);
  border-radius: 12px;
  padding: 20px;
  margin: 2.5rem 0 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(58, 111, 77, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  background: rgba(58, 111, 77, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.cta-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #3a6f4d;
  position: relative;
  z-index: 1;
}

.cta-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.feedback-text textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  min-height: 80px;
  margin-bottom: 0.8rem;
  transition: border-color 0.3s ease;
}

.feedback-text textarea:focus {
  border-color: #a7d7a4;
  outline: none;
}

.submit-feedback {
  background: #3a6f4d;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-feedback:hover {
  background: #305b3f;
}

.print-container {
  text-align: center;
  margin-top: 2rem;
}

.bouton-print {
  background: #eaeaea;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bouton-print:hover {
  background: #d8d8d8;
}

/* Responsive */
@media (max-width: 900px) {
  .cartes-container {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }
  
  nav.top-nav {
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  main {
    padding: 0 1rem;
  }
  
  .cartes-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }
  
  .carte-content {
    padding: 10px;
  }
  
  .carte-content h3 {
    font-size: 1rem;
  }
  
  .carte-content p {
    font-size: 0.8rem;
  }
  
  .diagnostic-button {
    width: 100%;
  }
}
/* Ajoutez ce code dans votre fichier CSS ou dans une balise <style> en haut de votre page */

/* Force l'affichage des éléments invisibles */
.carte-groupe {
  opacity: 1 !important; /* Force l'opacité à 100% */
  visibility: visible !important; /* Force la visibilité */
  display: block !important; /* Force l'affichage */
  transform: none !important; /* Annule toute transformation qui pourrait cacher l'élément */
}

.carte, .carte img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* S'assure que les images sont visibles et dimensionnées correctement */
.carte img {
  max-width: 100%;
  height: auto;
  min-height: 100px;
  border: 1px solid #eee; /* Ajoute une bordure pour voir où sont les images */
}

/* Redéfinir la disposition */
.cartes-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Fixer la taille des cartes */
.carte-groupe {
  width: calc(33.33% - 20px) !important; /* 3 colonnes avec espacement */
  margin-bottom: 20px !important;
  box-sizing: border-box !important;
}

/* Responsive */
@media (max-width: 768px) {
  .carte-groupe {
    width: calc(50% - 20px) !important; /* 2 colonnes sur tablette */
  }
}

@media (max-width: 480px) {
  .carte-groupe {
    width: 100% !important; /* 1 colonne sur mobile */
  }
}
/* Ajoutez ces styles à votre fichier diagnostic-styles.css */

/* Conteneur principal du quiz */
#mini-quiz-container {
  max-width: 600px;
  margin: 2rem auto 3rem;
  padding: 2rem;
  background: #f8fbf8;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #3a6f4d;
}

.mini-quiz-header {
  text-align: center;
  margin-bottom: 2rem;
}

.mini-quiz-header h2 {
  color: #3a6f4d;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mini-quiz-header p {
  color: #666;
  font-size: 0.95rem;
}

/* Style des questions */
.quiz-question {
  margin-bottom: 2rem;
}

.quiz-question h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Boutons Oui/Non */
.quiz-options {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.quiz-btn {
  padding: 0.8rem 2.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-btn-oui {
  background: #3a6f4d;
  color: white;
}

.quiz-btn-non {
  background: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
}

.quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quiz-btn-oui:hover {
  background: #2d5a3e;
}

.quiz-btn-non:hover {
  background: #e8e8e8;
}

/* Barre de progression */
.quiz-progress {
  margin-top: 2rem;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #3a6f4d;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.5rem;
}

/* Pied de quiz */
.mini-quiz-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.quiz-skip {
  background: none;
  border: none;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Bouton pour lancer le quiz */
.mini-quiz-button-container {
  text-align: center;
  margin: 1rem auto 2.5rem;
}

.mini-quiz-button {
  display: inline-flex;
  align-items: center;
  background: #faf5ec;
  color: #3a6f4d;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border: 2px solid #3a6f4d;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mini-quiz-button:hover {
  background: #f0ebe0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.mini-quiz-button .icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

/* Animation de transition entre les questions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}
/* Ajoutez ces styles à votre fichier diagnostic-styles.css */

/* Conteneur global des options de diagnostic */
.diagnostics-options {
  margin: 3rem auto;
  max-width: 900px;
  padding: 0 1rem;
}

.diagnostics-header {
  text-align: center;
  margin-bottom: 2rem;
}

.diagnostics-header h2 {
  color: #3a6f4d;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.diagnostics-header p {
  color: #666;
  font-size: 1rem;
}

/* Disposition en grille des deux options */
.diagnostics-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Chaque option de diagnostic */
.diagnostic-option {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.diagnostic-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Styles spécifiques pour chaque option */
.diagnostic-option:first-child {
  border-top: 4px solid #e9ba6b; /* Couleur chaude pour express */
}

.diagnostic-option:last-child {
  border-top: 4px solid #5b9279; /* Couleur froide pour complet */
}

/* Icône de diagnostic */
.diagnostic-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Titres dans chaque option */
.diagnostic-option h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #333;
  text-align: center;
}

/* Description sous les titres */
.diagnostic-description {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Liste des bénéfices */
.diagnostic-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.diagnostic-benefits li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: #555;
}

.diagnostic-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #5b9279;
  font-weight: bold;
}

/* Boutons de diagnostic */
.diagnostic-button {
  display: inline-block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto; /* Pousse le bouton en bas */
  text-decoration: none;
}

.diagnostic-button-express {
  background: #e9ba6b;
  color: #333;
}

.diagnostic-button-complete {
  background: #5b9279;
  color: white;
}

.diagnostic-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.diagnostic-button-express:hover {
  background: #e0b060;
}

.diagnostic-button-complete:hover {
  background: #4d7b65;
}

/* Message de transition après le mini-quiz */
#transition-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.transition-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.transition-content h3 {
  color: #3a6f4d;
  margin-bottom: 1rem;
}

.transition-content p {
  color: #666;
  margin-bottom: 1.5rem;
}

.transition-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.transition-button {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.transition-close {
  background: #f0f0f0;
  color: #555;
}

.transition-complete {
  background: #5b9279;
  color: white;
}

.transition-button:hover {
  transform: translateY(-2px);
}

/* Adaptatif pour mobile */
@media (max-width: 768px) {
  .diagnostics-container {
    flex-direction: column;
    align-items: center;
  }
  
  .diagnostic-option {
    width: 100%;
  }
}
@media (max-width: 576px) {
  .transition-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .transition-content h3 {
    font-size: 1.1rem;
  }
  
  .transition-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .transition-button {
    width: 100%;
    padding: 0.8rem;
    text-align: center;
  }
}
/* Styles pour le mini-quiz */
/* Ajoutez ce CSS à votre fichier diagnostic-styles.css */

/* Recommandation : Styles pour le message de recommandation - déplacer du JS vers CSS */
.recommandation-quiz {
  background: #f8fbf8;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid #3a6f4d;
}

.recommandation-quiz p {
  margin: 0 0 0.8rem;
  color: #333;
}

.retour-quiz {
  background: #3a6f4d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.retour-quiz:hover {
  background: #305b3f;
}

/* Styles pour le bandeau de transition (responsive) */
@media (max-width: 576px) {
  .transition-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .transition-content h3 {
    font-size: 1.1rem;
  }
  
  .transition-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .transition-button {
    width: 100%;
    padding: 0.8rem;
    text-align: center;
  }
}

/* Styles pour l'animation des questions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Styles pour mettre en avant les symptômes critiques */
.symptome-critique {
  background-color: rgba(255, 240, 240, 0.5);
  border-left: 3px solid #e09090;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
}

.symptome-critique h4 {
  color: #c05050;
  margin-top: 0;
}

.symptome-critique p {
  color: #333;
  margin-bottom: 0.5rem;
}

/* Style pour l'indicateur de détection précoce */
.detection-precoce {
  font-size: 0.9rem;
  background: #f0f8f0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin-top: 0.5rem;
  color: #3a6f4d;
}
/* Ajoutez ces styles à votre fichier diagnostic-styles.css */

/* Styles pour le message de transition amélioré */
.transition-result {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.transition-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.transition-symptome-info {
  text-align: left;
}

.transition-symptome-info h4 {
  margin: 0 0 0.5rem;
  color: #3a6f4d;
}

.transition-symptome-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.transition-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1.5rem;
}

.transition-button {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.transition-close {
  background: #f0f0f0;
  color: #555;
}

.transition-complete {
  background: #5b9279;
  color: white;
}

.transition-quiz-plus {
  background: #e9ba6b;
  color: #333;
  font-weight: 600;
}

.transition-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Styles pour le bouton Quiz+ dans la fiche */
.quiz-plus-btn {
  background: #e9ba6b;
  color: #333;
  margin-left: 8px;
}

.quiz-plus-btn:hover {
  background: #e0b060;
}

/* Ajustements pour mobile */
@media (max-width: 576px) {
  .transition-content {
    padding: 1.5rem;
    width: 95%;
    max-width: 90vw;
  }
  
  .transition-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .transition-button {
    width: 100%;
    padding: 0.9rem 0.8rem;
  }
  
  .transition-result {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.5rem;
  }
  
  .transition-symptome-info {
    text-align: center;
  }
}
/* Ajoutez ces styles à votre fichier diagnostic-styles.css */

/* Styles pour le bandeau de résultat du Quiz+ */
.quiz-plus-result {
  background: #f7f9eb;
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #5b9279;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quiz-plus-result-header {
  font-weight: 600;
  color: #3a6f4d;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.quiz-plus-result-header .emoji {
  margin-right: 8px;
  font-size: 1.3rem;
}

.quiz-plus-result p {
  margin-bottom: 1rem;
  color: #555;
}

.quiz-plus-actions {
  margin-top: 1rem;
}

.quiz-plus-btn-back {
  background: #f0f0f0;
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-plus-btn-back:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

/* Si vous avez plusieurs symptômes détectés, vous pouvez utiliser ces styles */
.other-symptoms {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.other-symptoms-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #555;
}

.symptoms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.symptom-tag {
  background: #e5f0ea;
  color: #3a6f4d;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.symptom-tag:hover {
  background: #d0e5d9;
}

/* Responsive */
@media (max-width: 576px) {
  .quiz-plus-result {
    padding: 1rem;
  }
}
/* Styles pour CTA amélioré */
.cta-container {
  background: linear-gradient(135deg, #f0f7f2, #e5f0e8);
  border-radius: 12px;
  padding: 20px;
  margin: 2.5rem 0 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(58, 111, 77, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  background: rgba(58, 111, 77, 0.1);
  border-radius: 50%;
  z-index: 0;
}


/* Styles pour la section feedback améliorée */
.feedback-form {
  background: linear-gradient(to right, #f8fbf8, #f0f7f2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0 1rem;
  border: 1px solid #e0eae5;
}

.feedback-form h4 {
  position: relative;
  padding-left: 28px;
  color: #3a6f4d;
  margin-top: 0;
  margin-bottom: 1rem;
}

.feedback-form h4::before {
  content: "💬";
  position: absolute;
  left: 0;
  top: 0;
}

.rating-buttons {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.rating-btn {
  background: white;
  border: 1px solid #e0e0e0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rating-btn:hover, .rating-btn.selected {
  background: #3a6f4d;
  color: white;
  border-color: #3a6f4d;
  transform: scale(1.1);
}

.feedback-text {
  margin-top: 1.2rem;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Styles pour la structure à deux colonnes */
/* Correction pour le responsive */
@media (max-width: 900px) {
  .contenu-fiche {
   flex-direction: column !important;
  }
  
  fiche-main-content,
  .fiche-sidebar {
    max-width: 100% !important;
    width: 100% !important;
  }
}
/* Contenu principal */
.fiche-main-content {
  flex: 1 1 auto !important;
  width: calc(100% - 310px) !important;
  max-width: 690px !important;
  order: 1 !important;
}

/* Sidebar avec les widgets */
.fiche-sidebar {
  flex: 0 0 280px !important; 
  width: 280px !important;
  margin-top: 0 !important;
  align-self: flex-start !important;
  order: 2 !important;
}

.sidebar-widget {
  background: #f8fbf8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sidebar-widget-title {
  background: #3a6f4d;
  color: white;
  padding: 12px 15px;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.sidebar-widget-title .icon {
  margin-right: 8px;
}

.sidebar-widget-content {
  padding: 15px;
}

.related-symptoms {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-symptoms li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.related-symptoms li:last-child {
  border-bottom: none;
}

.related-symptoms a {
  color: #3a6f4d;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.related-symptoms a::before {
  content: "→";
  margin-right: 8px;
  color: #e9ba6b;
}

.related-symptoms a:hover {
  color: #5b9279;
  text-decoration: underline;
}

.quick-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-tips li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  font-size: 0.95rem;
}

.quick-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5b9279;
  font-weight: bold;
}
