/* Améliorations de base */
:root {
  --primary-color: #1da1f2; /* Couleur principale (similaire à Twitter/X) */
  --secondary-color: #333; /* Couleur de texte et d'arrière-plan de la navigation/pied de page */
  --light-bg: #f5f5f5; /* Arrière-plan général */
  --dark-bg: #222; /* Arrière-plan du pied de page */
  --text-color: #333;
  --text-light: white;
  --spacing-md: 20px;
  --spacing-sm: 10px;
  --border-radius: 8px;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif; /* Police moderne, 'Inter' est un bon choix */
  background-color: var(--light-bg);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  line-height: 1.6; /* Améliore la lisibilité */
}

/* Structure principale */
#content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Barre de Navigation */
/* Modification de la navigation pour utiliser Flexbox pour l'alignement */
nav {
  background: var(--secondary-color);
  padding: var(--spacing-sm) var(--spacing-md);
  /* Changement ici pour centrer les éléments dans l'axe vertical */
  display: flex; 
  align-items: center;
  justify-content: space-between; /* Distribue l'espace : logo à gauche, liens à droite */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style du logo */
.nav-logo {
  height: 30px; /* Taille du logo (ajustez si nécessaire) */
  width: auto;
  margin: 0;
  vertical-align: middle;
}

/* Conteneur des liens pour garder l'espacement d'origine */
.nav-links a {
  color: var(--text-light);
  margin-left: 15px; /* Espacement entre les liens */
  padding: 5px 10px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}
/* Contenu Principal */
main {
  flex: 1;
  padding: var(--spacing-md);
  text-align: center;
  max-width: 1200px; /* Limite la largeur pour une meilleure lecture sur grands écrans */
  margin: 0 auto; /* Centre le contenu */
  width: 100%;
}

main img {
  max-width: 100%; /* S'assure que l'image est responsive */
  height: auto;
  width: 300px; /* Garde la taille d'origine si l'écran est assez grand */
  margin: var(--spacing-sm);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre douce aux images */
  object-fit: cover; /* S'assure que l'image couvre bien son espace */
}

/* Bannière/Image de tête */
.banner {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limite la hauteur pour éviter qu'elle soit trop grande */
  object-fit: cover;
}

/* Pied de Page */
footer {
  background: var(--dark-bg);
  color: var(--text-light);
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

/* Chargement */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--primary-color); /* Utilisation de la variable */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.8em; /* Un peu plus grand */
  z-index: 1000; /* Assure qu'il est au-dessus de tout */
}

/* Bannière de Cookies */
#cookie-banner {
  position: fixed;
  bottom: 0;
  background: white; /* Plus clair et plus visible */
  color: var(--text-color);
  width: 100%;
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Ombre au-dessus */
  z-index: 999; /* Juste en dessous du loader */
  display: none;
}

#cookie-banner button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: var(--spacing-sm);
  font-weight: 600;
}