/* ========================= */
/* 1. RESET */
/* ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================= */
/* 2. BASE */
/* ========================= */
body {
  background-color: #0b1a2a;
  font-family: sans-serif;

  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.page {
  width: 100%;
  position: relative;
}

/* ========================= */
/* 3. HERO */
/* ========================= */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* ========================= */
/* 4. HEADER */
/* ========================= */
.header {
  position: absolute;
  top: 3%;
  right: 14%;
  width: 30%;

  color: white;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: bold;

  text-align: right;
  text-shadow: 2px 2px 5px black;

  z-index: 20;
}

.header p {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: normal;
}
/* ========================= */
/* TRANSITION OVERLAY */
/* ========================= */

.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  opacity: 0;
  pointer-events: none;

  transition: opacity 1.3s ease;
  z-index: 9999;     /* au-dessus de tout */

}

.transition-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* actif */
.transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}
/* ========================= */
/* 5. CARTE SVG (NOUVEAU) */
/* ========================= */
.carte-wrapper {
  width: 100%;
  position: relative;
}

.svg-map {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================= */
/* 6. ZONES SVG */
/* ========================= */
.zone-svg {
  fill: rgba(0,0,0,0.001);
  cursor: pointer;          /* 👉 ajoute ça */
  pointer-events: all;      /* 👉 ajoute ça (important avec SVG) */

  transition: all 0.2s ease;
}

/* HOVER */
.zone-svg:hover {
  fill: rgba(255, 215, 0, 0.15);

  filter:
    drop-shadow(0 0 8px rgba(255,215,0,0.6));
}

/* ACTIF */
.zone-svg.active {
  filter:
    drop-shadow(0 0 15px rgba(0, 150, 255, 0.9))
    drop-shadow(0 0 30px rgba(0, 150, 255, 0.4));
}

/* ========================= */
/* 7. BULLE */
/* ========================= */
.bulle {
  position: absolute;
  top: 8%;
  left: 2%;
  width: 40%;
  z-index: 30;
}

.bulle-contenu {
  position: relative;

  background: #fff8e6;
  padding: 24px 30px;

  border-radius: 60% / 60%;

  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.6;
  text-align: center;

  color: #1a2a5a;

  border: 3px solid #e6b800;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.25),
    0 0 10px rgba(230,184,0,0.25);

  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: fadeIn 0.6s ease;
}

/* POINTE BULLE */
.bulle-contenu::after {
  display: none;
}

/* ========================= */
/* 8. ANIMATION */
/* ========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= */
/* 9. FOOTER */
/* ========================= */
.footer {
  width: 80%;
  max-width: 500px;
  margin: 20px auto;

  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: white;
}

.footer a {
  color: #9fd3ff;
}

/* ========================= */
/* 10. MOBILE */
/* ========================= */
@media (max-width: 768px) {

  body {
    flex-direction: column;
    align-items: center;
  }

  .page {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* HEADER */
  .header {
    position: static;
    width: 90%;
    margin: 15px auto;

    text-align: center;
    font-size: clamp(18px, 5vw, 22px);
  }

  /* HERO */
  .hero {
    width: 100%;
  }

  /* BULLE */
  .bulle {
    position: static;
    width: 90%;
    margin: 10px auto;
  }

  .bulle-contenu {
    font-size: clamp(15px, 3.5vw, 18px);
    padding: 16px;
    border-radius: 20px;
  }

  .bulle-contenu::after {
    display: none;
  }

  /* CARTE */
  .carte-wrapper {
    width: 100%;
  }

  .svg-map {
    width: 100%;
    height: auto;
  }

  /* FOOTER */
  .footer {
    width: 90%;
    margin: 20px auto;
  }
}