/* ---------- RESET LOCAL ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- CAROUSEL ---------- */
#hero-tunisie {
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#hero-tunisie .hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 25px 35px;
  border-radius: 6px;
  max-width: 600px;
}

.carousel {
  width: 100%;
  aspect-ratio: 16 / 9; 
}

.slides {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Boutons navigation */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 3;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Indicateurs */
.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active,
.dot:hover {
  background: #c9a876;
}

/* Texte superposé */
/* ---------- Hero-overlay en bas-droite ---------- */
.hero-overlay {
  position: flex;
  right: 60px;
  bottom: 40px;
  width: 420px;
  max-width: 90%;
  text-align: right;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 18px 22px;
  border-radius: 6px;
  z-index: 3;
}

.hero-overlay h1 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.hero-overlay p {
  font-size: 1rem;
  line-height: 1.3;
}

/* ---------- MAP & VIDÉO CENTRÉES ---------- */
#map-tunisie,
#video-tunisie {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

#map-tunisie iframe,
#video-tunisie video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 9;
}

/* ---------- MOBILE : 768 px ---------- */
@media (max-width: 768px) {

  /* --- HEADER --- */
  header {
    flex-direction: column;
    padding: 12px 15px;
  }
  .yblogo { height: 80px; }
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
  }
  .nav-btn {
  width: 60px;
  height: 60px;
  font-size: 2rem;
  touch-action: manipulation;
  padding: 10px;          /* ➜ zone tactile élargie */
  }

  /* --- CONTENEUR --- */
  .container { padding: 0 15px; }

.hero-overlay {
  width: 90%;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 4px;
}
.hero-overlay h1 { font-size: 1.25rem; }
.hero-overlay p  { font-size: 0.75rem; }

.nav-btn {
  position: absolute;
  top: 10px;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  z-index: 10;
}

.prev { left: 5px; }
.next { right: 5px; }
.nav-btn:active { background: rgba(0, 0, 0, 0.6); }

  /* --- VIDÉO & CARTE --- */
  #map-tunisie iframe,
  #video-tunisie video {
    height: 250px;
  }
}