html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}


#tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: none;
  pointer-events: none;
  z-index: 1000;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  transition: opacity 0.2s ease;
  max-width: none; /* ← pas de limite */
  width: auto; /* ← largeur auto selon contenu */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tooltip-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.tooltip-block:last-child {
  margin-bottom: 0;
}

.tooltip-block img {
  height: auto;         /* fixe la hauteur pour la cohérence */
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;      /* facultatif, ajuste si besoin */
}

.tooltip-block .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.tooltip-block .title {
  line-height: 1.2;
  font-weight: bold;
  color: #0077ff;
  margin-bottom: 2px;
}

.text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  margin-left: 46px;
}


.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto;
  flex-shrink: 0;
}

.icon-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.title-line {
  display: flex;
  align-items: center; /* garde texte et image centrés */
  gap: 10px;
}

.title-line img {
  width: 36px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
}

.title {
  font-weight: bold;
  color: #0077ff;
  font-size: 14px;
  line-height: 1.2;
}

#MonNom {
  position: fixed;
  top: 15px;
  left: 20px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 4px #00aaff;
  z-index: 1000;
  pointer-events: none;
  user-select: none;
}

#Fleche {
  position: fixed;
  bottom: 20px;
  left: 40%;
  right: 50%;
  width: 400px;
  height: 40px;
  z-index: 999;
  opacity: 0.9;
  color: white;
}


#download-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0077ff;
  color: white;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: background 0.2s ease;
}

#download-btn:hover {
  background: #1366d3cf;
}

.label {
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: white;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.314);
  padding: 4px 8px;
  border-radius: 6px;
  transition: transform 0.04s ease, box-shadow 0.2s ease;
}

.label:hover {
  color : #ffffff;
  text-shadow:
  0 0 5px #00aaff,   /* Lueur bleue légère */
  0 0 10px #00aaff,  /* Un peu plus diffuse */
  0 0 5px black;     /* Garde une base sombre */
}

