/* Reset basique */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quantico';
}


/* Carte */
.carte {
  display: grid;
  place-items: center;                 /* centre H + V */
  width: 100%;
  margin-top: var(--header-h);         /* évite le chevauchement header */
  height: calc(100vh - var(--header-h)); /* prend tout l'espace restant */
  overflow: hidden;                    /* évite les scrolls parasites */
}

/* L'SVG s'adapte et reste centré */
.carte > svg {
  display: block;
  width: min(95vw, 950px);  /* responsive + limite max */
  max-height: 100%;
  height: auto;
}

path {
			stroke: black;
			stroke-width: 1px;
			stroke-linecap: round;
			stroke-linejoin: round;
			stroke-opacity: .25;
			fill: #88D5FC;	
      
      /* Supprime le délai de 300ms sur mobile */
     touch-action: manipulation;
    
     /* Optionnel : empêche la zone grise moche qui apparaît au clic sur certains téléphones */
     -webkit-tap-highlight-color: transparent;
		}
/* Uniquement pour les appareils avec souris/trackpad (PC) */
@media (hover: hover) {
  g path:hover {
    fill: #3333FF;
  }
}

/* Optionnel : retour visuel rapide au toucher sur mobile */
@media (hover: none) {
  g path:hover, 
  g path:active, 
  g path:focus {
    /* On dit au CSS de ne JAMAIS toucher à la couleur sur mobile */
    outline: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important; /* Transparence totale */
    -webkit-focus-ring-color: rgba(0,0,0,0) !important;
  }
}

.buttons {
  display: flex;
  justify-content: center;  /* centre horizontalement */
  align-items: center;      
  gap: 60vw;                /* plus d'espace sur grand écran */
  margin-top: 30px;
  flex-wrap: wrap;          /* passe en ligne suivante si écran trop petit */
}

/* Style des boutons */
.buttons button {
  min-width: 140px;
  padding: 14px 28px;
  font-size: 1.1rem;
  background: linear-gradient(to right, #0000EC, #0198E9);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Quantico', sans-serif;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s ease;
}

.buttons button:hover {
  transform: translateY(-2px);
  background: linear-gradient(to right, #0198E9, #0000EC);
}

/* Écrans moyens */
@media (max-width: 900px) {
  .buttons button {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Petits écrans */
@media (max-width: 600px) {
  .buttons button {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
    .buttons {
    gap: 100px; /* moins d'espace sur écrans larges */
  }
}
/* RESPONSIVE */
@media (min-width: 768px) {
  main {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
  }
}


/* Message d'erreur */
#error-message {
  margin-top: 10px;
  text-align: center;
  color: #d9534f;
  font-weight: 600;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
#error-message.show {
  opacity: 1;
}

