/* Styles de base */
body {
  margin: 20px;
  padding: 0;
  font: 12px Arial;
  margin-bottom: 200px;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

/* Menu principal responsive */
#menu-demo2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Bouton menu mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: #0b5d1e;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Conteneur des filtres */
.filters-container {
  width: 100%;
  margin: 20px 0;
  padding: 0 10px;
}

.menu {
  height: auto;
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.menu li {
  position: relative;
  width: auto;
  margin-bottom: 10px;
}

.menu li a:link,
.menu li a:visited {
  display: block;
  color: #fff;
  background: #0b5d1e;
  padding: 10px 15px;
  border-right: 1px solid #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 40px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.menu li a:hover {
  background-color: #139a43;
}

.menu .sousmenu {
  list-style-type: none;
  display: none;
  padding: 0;
  margin: 0;
  position: absolute;
  z-index: 100;
  width: 200px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 5px;
}

.menu .sousmenu li {
  float: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #f0f0f0;
}

.menu .sousmenu li a:link,
.menu .sousmenu li a:visited {
  display: block;
  color: #333;
  text-decoration: none;
  background-color: #fff;
  border-radius: 0;
  text-align: left;
  padding: 10px 15px;
  border-right: none;
}

.menu .sousmenu li a:hover {
  background-color: #f0f0f0;
  color: #0b5d1e;
}

.menu li:hover .sousmenu {
  display: block;
}

/* Formulaire de dates */
.date-form {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.date-form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.date {
  border: 1px solid #ccc;
  border-radius: 40px;
  padding: 8px;
  width: 100%;
}

.mot {
  padding-left: 0;
  text-align: center;
  font-size: 2.5rem;
}

.mot2 {
  padding: 0 20px;
  font-family: "Saira", sans-serif;
  font-weight: bolder;
  font-size: 1.2rem;
  color: black;
  text-align: center;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
}

/* Tableau des villes */
.image {
  width: 100%;
  overflow-x: auto;
  margin: 40px 0;
}

.image table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 1200px;
}

.image td {
  text-align: center;
  padding: 15px;
  vertical-align: top;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Correction de l'ordre: Image en premier */
.image tr:nth-child(1) {
  order: 1; /* Images en premier */
}

.image tr:nth-child(2) {
  order: 2; /* Noms des villes en deuxième */
}

.image tr:nth-child(3) {
  order: 3; /* Boutons "Let's GO" en troisième */
}

.image tr img {
  height: 200px;
  width: 200px;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
  display: block;
  order: 1; /* Force l'image à être en premier */
}

.image tr img:hover {
  transform: scale(1.05);
}

.font {
  font-family: "Saira", sans-serif;
  font-size: 20px;
  font-weight: bolder;
  text-align: center;
  margin: 10px 0;
  order: 2; /* Nom de la ville en deuxième */
}

a {
  text-decoration: none;
}

.go {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 15px;
  border: 2px solid #0b5d1e;
  font-size: 14px;
  border-radius: 10px;
  color: #0b5d1e;
  font-weight: bold;
  transition: all 0.3s;
  order: 3; /* Bouton "Let's GO" en troisième */
}

.go:hover {
  background-color: #0b5d1e;
  color: white;
}

#col {
  font-size: 13px;
}

/* Media Queries pour le responsive */

/* Tablettes */
@media (max-width: 1024px) {
  .image table {
    width: 90%;
  }
  
  .image tr img {
    height: 180px;
    width: 180px;
  }
  
  .mot {
    font-size: 2rem;
  }
  
  .mot2 {
    font-size: 1.1rem;
  }
}

/* Mobiles */
@media (max-width: 768px) {
  body {
    margin: 10px;
    margin-bottom: 100px;
  }
  
  /* Menu mobile */
  .mobile-menu-btn {
    display: flex;
  }
  
  #menu-demo2 {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: white;
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  #menu-demo2.active {
    display: flex;
  }
  
  #menu-demo2 > li {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Filtres */
  .filters-container {
    margin: 10px 0;
  }
  
  .menu {
    flex-direction: column;
    margin: 20px 0;
    gap: 10px;
  }
  
  .menu li {
    width: 100%;
  }
  
  .menu .sousmenu {
    position: static;
    width: 100%;
    display: none;
    margin-top: 5px;
  }
  
  .menu li.open .sousmenu {
    display: block;
  }
  
  .date-form {
    flex-direction: column;
  }
  
  /* Contenu */
  .mot {
    font-size: 1.8rem;
    margin-top: 20px;
  }
  
  .mot2 {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .image {
    overflow-x: auto;
  }
  
  .image table {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .image tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
  }
  
  .image td {
    padding: 10px;
    width: 100%;
  }
  
  .image tr img {
    width: 100%;
    height: auto;
    max-height: 200px;
    order: 1; /* Image en premier */
  }
  
  .font {
    order: 2; /* Nom de la ville en deuxième */
  }
  
  .go {
    order: 3; /* Bouton en troisième */
  }
}

/* Très petits mobiles */
@media (max-width: 480px) {
  .mot {
    font-size: 1.5rem;
  }
  
  .mot2 {
    font-size: 0.9rem;
  }
  
  .menu li a:link,
  .menu li a:visited {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .go {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .font {
    font-size: 18px;
  }
  
  .image tr {
    padding: 10px;
  }
  
  .image tr img {
    height: 150px;
  }
}