body {
  font-family: Arial, sans-serif; /* Police standard pour le texte principal */
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f8f4f0;
}

body h2 {
  color: #00627b; /* Couleur principale pour les titres H2 */
  text-align: center;
}

body p {
  color: #807e7c;
  margin: 0 20px; /* Ajout de marges latérales pour éviter que le texte colle aux bords */
  line-height: 1.8; /* Amélioration de l'espacement entre les lignes */
}

header {
  background-color: #333333;
  border-bottom: 2px solid #ddd; /* Ligne discrète pour délimiter l'en-tête */
  position: relative;
  padding: 20px; /* Ajoute de l'espace autour du contenu de l'en-tête */
  text-align: center;
}

header img {
  width: 15%;
  float: inline-start;
}

header h1 {
  margin: 0;
  font-size: 24px;
  color: #e0e0e0;
}

button {
  background-color: #00627b;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px; /* Coins arrondis pour un effet moderne */
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: rgb(48, 131, 146); /* Couleur plus sombre au hover */
}

/*Mode sombre */

body.dark-mode {
  background-color: #111111; /* Fond sombre pour une meilleure lisibilité la nuit */
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h4 {
  color: #c1c1c1;
}

.dark-mode header {
  background-color: #333333;
}

.dark-mode .side-nav {
  background-color: #000000c1; /* Fond semi-transparent pour un effet esthétique */ 
  color: #005b96;
}

.dark-mode .tip {
  background-color: #111111;
}

.dark-mode .tip i {
  color: #005b96;
}

.dark-mode #logo-clair {
  display: none;
}

.dark-mode #logo-sombre {
  display: block;
}

/* Logo du menu */
.dark-mode .side-nav .logo {
  display: flex; /* Permet un positionnement flexible */
  justify-content: flex-end; /* Aligne le contenu (l'image) sur la droite */
  margin-bottom: 20px; /* Espacement en dessous du logo */
}

.dark-mode .side-nav .logo img {
  width: 70px; /* Ajuste la largeur de l'image */
  padding-right: 50px;
  height: auto; /* Conserve le ratio d'aspect */
  border-radius: 5px; /* Ajoute des bords légèrement arrondis */
  transition: transform 0.3s ease; /* Ajoute une animation au survol */
}

/* Effet au survol du logo */
.dark-mode .side-nav .logo img:hover {
  transform: scale(1.1); /* Agrandit légèrement l'image au survol */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Ajoute une ombre douce */
}

.dark-mode .travel-tips {
  background-color: #111111;
}

/*Fin du mode sombre */

#toggle-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000; /* Assure que ce bouton reste toujours au-dessus */
}

.side-nav {
  position: fixed;
  top: 0;
  right: -200px; /* Initialement cachée */
  height: 100%;
  width: 200px;
  background-color: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5); /* Ajoute une ombre pour la profondeur */
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: right 0.3s ease; /* Effet d'animation fluide */
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav ul li {
  margin: 20px 0;
}

.side-nav ul li a {
  text-decoration: none;
  font-size: 18px;
  color: #00627b;
  transition: color 0.3s; /* Change progressivement la couleur au survol */
}

.side-nav ul li a:hover {
  color: #74c3d7; /* Couleur plus claire au survol */
}

/* Boutons dans le menu */
.nav-icons {
  padding: 20px;
  text-align: center;
}

.nav-icons button {
  background-color: #00627b;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px 0;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-icons button:hover {
  background-color: #2a7185;
}

/* Ajout d'une classe "open" pour animer l'ouverture */
.side-nav.open {
  right: 0;
}

#logo-clair {
  display: block;
}

#logo-sombre {
  display: none;
}

/* Logo du menu */
.side-nav .logo {
  display: flex; /* Permet un positionnement flexible */
  justify-content: flex-end; /* Aligne le contenu (l'image) sur la droite */
  margin-bottom: 20px; /* Espacement en dessous du logo */
}

.side-nav .logo img {
  width: 70px; /* Ajuste la largeur de l'image */
  padding-right: 50px;
  height: auto; /* Conserve le ratio d'aspect */
  border-radius: 5px; /* Ajoute des bords légèrement arrondis */
  transition: transform 0.3s ease; /* Ajoute une animation au survol */
}

/* Effet au survol du logo */
.side-nav .logo img:hover {
  transform: scale(1.1); /* Agrandit légèrement l'image au survol */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Ajoute une ombre douce */
}

#map {
  text-align: center;
  padding: 20px;
}

.map-container {
  position: relative;
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  border: 2px solid rgb(113, 194, 208);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.marker {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: rgb(255, 0, 0); /* Rouge vif pour rendre les marqueurs visibles */
  border: 2px solid white;
  border-radius: 50%; /* Rond parfait */
  cursor: pointer;
  transition: transform 0.2s ease; /* Animation au survol */
}

.marker:hover {
  transform: scale(1.2); /* Agrandit légèrement le marqueur au survol */
  background-color: #959b9c;
}

#marker-jordanie {
  left: 5%;
  top: 63%;
}

#marker-japon {
  left: 85%;
  top: 50%;
}

#marker-thailande {
  left: 64%;
  top: 70%;
}

#country-info {
  position: absolute;
  width: 200px; 
  height: 150px; 
  background-color: #fff; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Légère ombre pour un effet flottant */
  border-radius: 8px; 
  overflow: hidden; 
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  z-index: 10;
}

#country-info img {
  width: 100%; 
  height: 70%; 
  object-fit: cover; 
}

#country-info a.button {
  background-color: #959b9c; 
  color: #fff;
  border: none;
  padding: 5px 7px 8px;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  border-radius: 8px;
  margin-left: 35px;
  margin-right: 35px;
  text-decoration: none;
  width: auto;
}

#country-info a.button:hover {
  background-color: #666c6e; 
}

/* Section principale */
.travel-tips {
  background-color: #f8f8f8; /* Couleur de fond douce */
  padding: 40px 20px;
  text-align: center;
}

/* Grille pour les conseils */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Grille responsive */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Style pour chaque conseil */
.tip {
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tip:hover {
  transform: translateY(-5px); /* Effet de levée au survol */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Icônes */
.tip i {
  font-size: 40px;
  color: #f2a900; /* Couleur dorée */
  margin-bottom: 15px;
}

/* Titres */
.tip h4 {
  font-size: 18px;
  color: #333333;
  margin-bottom: 10px;
}

/* Paragraphes */
.tip p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

footer {
  background-color: #1a1a1a; /* Fond sombre pour le pied de page */
  color: white;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* Aligne les sections du footer de façon égale */
  flex-wrap: wrap; /* Permet au contenu de s'adapter sur plusieurs lignes si nécessaire */
  max-width: 1200px;
  margin: 0 auto;
}

/* Section individuelle */
.footer-section {
  flex: 1;
  margin: 0 20px;
  min-width: 200px;
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #bdbdbd; /* Liens en gris clair */
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #666666;
}

.social-icons a {
  display: flex;
  align-items: center;
}

.social-icons i {
  margin-right: 10px;
}

/* Bas de page */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #333333; /* Ligne séparatrice discrète */
  padding-top: 10px;
  font-size: 14px;
  color: #777777;
}
