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

/* On applique Playfair Display à tout le site */
body {
  font-family: 'Playfair Display', serif;
  background-color: #f9f9f9;
  color: #333;
}

/* Barre supérieure (navbar) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-left .logo {
  height: 40px;
  max-width: 120px;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Bouton du dropdown */
.dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  font-family: inherit;  /* Utilise la police du parent */
}

/* Ajout de la flèche vers le bas après le contenu du bouton */
.dropbtn::after {
  content: "\25BC"; /* Unicode pour une flèche vers le bas */
  font-size: 0.8em;
  margin-left: 5px;
}

/* Contenu du dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Liens à l'intérieur du dropdown */
.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  padding: 10px;
  text-decoration: none;
  font-family: inherit;  /* Utilise la même police que le bouton */
}

/* Affichage du dropdown au survol */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Taille des drapeaux */
.flag {
  height: 20px;
  width: auto;
}

/* Titre principal et entête */
header {
  text-align: center;
  margin: 20px;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Filtres de catégories */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filters button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.2s ease;

  /* Correction iOS Safari - forcer la couleur en noir */
  color: #333 !important;                
  -webkit-text-fill-color: #333 !important; 
  text-decoration: none !important;
}

.filters button.active,
.filters button:hover {
  background-color: #a48c74; /* Beige foncé */
  color: #fff !important;    /* Force la couleur blanche */
  -webkit-text-fill-color: #fff !important; /* iOS Safari */
}

/* Liste de cartes au milieu de la page */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px; /* Limite la largeur de la grille */
  margin: 0 auto;    /* Centre la grille sur la page */
  padding: 20px;     /* Espace autour de la grille */
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.02);
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 8px;
  line-height: 1.4;
}

.card strong {
  font-weight: 600;
}

/* Masque les cartes non filtrées */
.hidden {
  display: none;
}

/* Styles pour le système d'étoiles */
.stars {
  margin-bottom: 10px; /* Espace sous la ligne d'étoiles */
}

.star {
  font-size: 1.2rem;   /* Ajustez la taille de l’étoile selon votre design */
  color: #FFD700;      /* Couleur dorée */
  margin-right: 2px;
}

/* Section coût */
.cost {
  margin-bottom: 10px; /* Espace sous la ligne des euros */
}

.euro {
  font-size: 1.2rem; /* Taille des symboles € */
  color: #333;       /* Couleur du texte */
  margin-right: 4px; /* Espacement horizontal */
}

.euro-empty {
  color: #ccc; /* Grisé ou une autre couleur plus claire */
}

/* Footer */
.footer {
  background-color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 20px; /* Séparation d'avec le contenu principal */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 800px; /* Largeur maximale du bloc de légendes */
  margin: 0 auto;
}

.footer-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}