body {
    font-family: 'Poppins', sans-serif;
    background-color: #e9f5e1;
    color: #333;
    text-align: center;
    padding: 20px;
    padding-top: 50px; /* Espace supplémentaire en haut pour afficher le bouton */
}

h1 {
    color: #2a9d8f;
}

.intro-text {
    font-size: 20px;
    margin-bottom: 15px;
}

.content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 60%;
    margin: 0 auto;
}
.illustration {
    max-width: 600px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    font-size: 18px;
    margin: 10px 0;
}

button {
    padding: 10px 20px;
    background-color: #f4a261;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin: 5px;
}

button:hover {
    background-color: #e76f51;
}

/* Boutons spécifiques pour francais_chapitre3.html */
.styled-back-button, .verify-button {
    background-color: #2a9d8f !important;
}

.styled-back-button:hover, .verify-button:hover {
    background-color: #21867a !important;
}

.feedback {
    font-size: 18px;
    margin-top: 10px;
}

.correct {
    color: #2a9d8f;
}

.incorrect {
    color: #e63946;
}

/* Positionner le bouton "Retour à la page principale" en haut de la page */
.back-button-container {
    position: fixed; /* Fixe le bouton à une position spécifique */
    top: 20px; /* Positionne le bouton à 20px du haut */
    left: 50%; /* Centré horizontalement */
    transform: translateX(-50%); /* Centrage parfait */
    z-index: 9999; /* Met le bouton au-dessus de la carte */
    background-color: rgba(0, 0, 0, 0.5); /* Optionnel : fond semi-transparent */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Ombre légère pour donner du relief */
}

.back-button {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #2a9d8f; /* Couleur du bouton */
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #21867a; /* Changement de couleur au survol */
}

.chapter-list {
    list-style: none;
    padding: 0;
    font-size: 20px;
}

.chapter-list li {
    margin: 10px 0;
}

.chapter-list a {
    text-decoration: none;
    color: #2a9d8f;
    font-weight: bold;
    transition: color 0.3s ease;
}

.chapter-list a:hover {
    color: #e76f51;
}

.interactive-image {
    position: relative;
    display: inline-block;
}

.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.hotspot:hover {
    transform: scale(1.2);
}

.vignette-carte {
    display: block;
    max-width: 500px !important;
    max-height: 320px !important;
    width: auto !important;
    height: auto !important;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    object-fit: contain;
  }
  
  .bouton-interactive {
    background-color: #f4a261;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    margin: 15px auto;
    transition: background-color 0.3s ease;
  }
  
  .bouton-interactive:hover {
    background-color: #e76f51;
  }
  
  .quiz {
    margin-top: 2em;
    padding: 1em;
    border: 2px dashed #ccc;
    background-color: #fdfdfd;
    border-radius: 12px;
  }
  
  .quiz h3 {
    margin-bottom: 1em;
    font-size: 1.2em;
    color: #444;
  }
  
  .quiz ul {
    list-style-type: none;
    padding-left: 0;
  }
  
  .quiz li {
    margin: 0.5em 0;
  }
  
  .quiz button {
    background-color: #4CAF50; /* vert vif */
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .quiz button:hover {
    background-color: #45a049;
  }
  
  .quiz button:disabled {
    background-color: #cccccc;
    color: #333333;
    opacity: 1; /* garder bien visible même désactivé */
    cursor: default;
  }
  
  
  #resultatQuiz {
    margin-top: 1em;
    font-weight: bold;
    font-size: 1.1em;
  }
  
  .next-chapter-button {
    display: inline-flex;
    align-items: center;
    background-color: #2a9d8f;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.next-chapter-button:hover {
    background-color: #21867a;
    transform: translateX(5px); /* Légère animation au survol */
}

.next-chapter-button .arrow {
    margin-right: 10px;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.next-chapter-button:hover .arrow {
    transform: translateX(5px); /* L'icône se déplace aussi avec le bouton */
}

.button-container {
    margin-top: 20px; /* Espace au-dessus du bouton */
    margin-bottom: 20px; /* Espace en dessous du bouton */
}

.link-container {
    margin-bottom: 20px; /* Espace sous le lien de la carte d'Europe */
}
section {
    padding-bottom: 20px; /* Espace entre la fin d'une section et la section suivante */
}

