/* Reset et styles généraux */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #d1c4e9, #b3e5fc); /* Dégradé pastel violet → bleu */
  color: #333;
  line-height: 1.6;
  text-align: center;
  min-height: 100vh; /* Pour que le fond couvre tout l'écran même sans contenu */
}




header {
  background: #d1c4e9; /* Violet pastel */
  color: white;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



header h1 {
  margin: 0;
  font-size: 2rem;
}

main {
  padding: 20px;
  max-width: 1000px;
  margin: 20px auto;
}

/* Nav simplifiée (pas modifiée ici car ce n'est pas le sujet) */
/* ... */

/* Image container */
.image-container {
  position: relative;
  width: 100%;
  text-align: center;
}

/* Image principale */
.base-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Hotspots communs */
.hotspot {
  position: absolute;
  cursor: pointer;
  background-color: transparent !important;
  border: none !important;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: 5;
}

/* Rectangle : même chose, mais sans toucher aux enfants */
.rectangle-hotspot1,
.rectangle-hotspot2,
.rectangle-hotspot3,
.rectangle-hotspot4,
.rectangle-hotspot5,
.rectangle-hotspot6,
.rectangle-hotspot7,
.rectangle-hotspot8,
.rectangle-hotspot9,
.rectangle-hotspot10,
.rectangle-hotspot11 {
  border: none !important;
  background-color: transparent !important;
  border-radius: 0 !important;
}


/* Taille réduite sur mobile */
@media (max-width: 768px) {
  .hotspot {
    width: 60px !important;
    height: 60px !important;
  }
}

/* Infobulles */
.tooltip {
  display: none;
  position: absolute;
  bottom: 100%; /* Au-dessus du hotspot */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 15, 15, 0.6);
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  z-index: 20;
  pointer-events: none; /* Évite d'interférer avec le hover */
}

/* Image associée au hotspot */
.hotspot-icon {
  display: none;
  position: absolute;
  
  /* On enlève bottom et left fixes pour pouvoir positionner librement */

  width: 700px;    /* largeur fixe identique */
  height: auto;    /* hauteur automatique pour garder la proportion */

  object-fit: contain;
  background-color: white;
  border: 3px solid black;
  padding: 5px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 30;
}

/* Adaptation mobile */
@media (max-width: 768px) {
  .hotspot-icon {
    width: 150px;   /* taille réduite sur mobile */
    height: auto;
  }

  .tooltip {
    font-size: 12px;
  }
}


/* Affichage au survol */
.hotspot:hover .tooltip,
.hotspot:hover .hotspot-icon {
  display: block;
}

/* Hover hotspot changement couleur */
.hotspot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}
/* Appliquer une taille uniforme à toutes les images sauf l'image de fond */
img:not(.base-image) {
  width: 700px;
  height: auto;
  object-fit: contain;
}

