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

/* style.css */

/* --- POLICES DE BASE --- */
body {
  font-family: "Quicksand", sans-serif;
  color: #1f2937; /* gray-800 */
  line-height: 1.6;
}

/* Titres */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e40af; /* indigo-800 */
}

/* Élément à mettre en valeur */
.fancy {
  font-family: "Quicksand", sans-serif;
  font-size: 1.25rem;
  color: #9333ea; /* purple-600 */
}

/* Liens */
a {
  color: #4f46e5; /* indigo-600 */
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #4338ca; /* indigo-700 */
  text-decoration: underline;
}

/* Bouton de base */
.btn {
  display: inline-block;
  background-color: #6366f1; /* indigo-500 */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #4f46e5; /* indigo-600 */
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

.mini-propos {
  font-weight: 250;
  font-size: 16px;
}

.mini-propos a {
  text-decoration: none;
  color: #044368;
  font-weight: bold;
}

.section-title {
  font-size: 18px;
  font-weight: bolder;
}

.section-subtitle {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 400px;
}

body {
  min-height: 100vh;
}

/* Style général pour l'image */
.hero img {
  width: 100%;
  height: auto; /* Par défaut, s'adapte au contenu */
  object-fit: cover;
  display: block;
}

/* Hauteur fixe pour les écrans larges (PC et plus) */
@media (min-width: 1200px) {
  .hero img {
    height: 500px; /* Ajustable selon le design */
  }
}

/* Hauteur spécifique pour les tablettes (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero img {
    width: 100%;
    height: 300px; /* Hauteur plus petite pour tablette */
  }
}

/* Hauteur spécifique pour les smartphones (moins de 768px) */
@media (max-width: 767px) {
  .hero img {
    width: 100%;
    height: 200px; /* Hauteur encore plus réduite sur mobile */
  }
}

/* pour la recherche css */

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  /* Centrer la barre */
  align-items: center;
}

.search-container {
  position: absolute;
  top: 85%;
  transform: translateY(-50%);
  /* Centrer verticalement */
  width: 90%;
  /* Largeur de la barre */
  max-width: 700px;
  border: 1px solid #666;
  background: rgba(137, 137, 137, 0.01);
  /* Fond transparent */
  backdrop-filter: blur(1px);
  /* Flou derrière */
  border-radius: 30px;
  display: flex;
  align-items: center;
}

.search-container input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px;
  background: transparent;
  font-size: 16px;
  color: #000;
}

.search-container input::placeholder {
  color: rgba(3, 65, 88, 0.727);
}

/* 📱 Sur mobile : La barre devient plus large */
@media (max-width: 768px) {
  .search-container {
    width: 95%;
    /* Augmente la largeur sur petits écrans */
  }
}

@media (max-width: 480px) {
  .search-container {
    width: 95%;
    /* Encore plus large sur très petits écrans */
  }
}

/* Styles de la liste des résultats */
#results {
  position: absolute;
  top: 120%;
  /* Place la liste juste en bas du champ */
  left: 0;

  width: 100%;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.35) 0px -50px 36px -28px inset;
  backdrop-filter: blur(10px);
  /* Ajoute un léger flou derrière */

  color: rgba(0, 0, 0, 0.7);
  border-radius: 2px;
  max-height: 350px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

#results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#results li {
  padding: 10px;
  /* border-bottom: 1px solid #ddd; */
  cursor: pointer;
}

.progress-bar {
  height: 20px;
  background-color: #4caf50;
  text-align: center;
  color: white;
  line-height: 30px;
}

.quiz-choice {
  margin-bottom: 10px;
}

.btn-next {
  display: inline-block;
}

.feedback {
  margin-top: 15px;
  font-weight: bold;
}

.feedback.correct {
  color: green;
}

.feedback.incorrect {
  color: red;
}

.congrats-message {
  text-align: left;
  margin-top: 30px;
  font-size: 24px;
  color: #4caf50;
  letter-spacing: 1px;
}

.star-rating {
  /* display: flex; */
  direction: rtl;
  text-align: left;
  font-size: 1em;
  justify-content: space-evenly;
  padding: 1px;
  cursor: pointer;
}

.star-rating input {
  display: none;
  /* Cache les boutons radio */
}

.star-rating label {
  color: #ccc;
  font-size: 2em;
  transition: color 0.3s;
  cursor: pointer;
}

/* Étoiles au survol */
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ffc700;
}

/* Étoiles sélectionnées */
.star-rating input:checked ~ label {
  color: #ffc700;
}

#announcement-bar {
  width: 100%;
  background: white;
  color: black;
  padding: 20px 0;
  text-align: center;
  font-weight: bold;
  position: relative;
  z-index: 10;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 50px;
}

#announcement-text {
  display: inline-block;
  padding-left: 100%;
  animation: scrollText 60s linear infinite;
}

@keyframes scrollText {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}
