/* Réinitialisation et styles de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f3f4f6;
  color: #374151;
  line-height: 1.5;
}

/* Structure de la page */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Header et logo */
.header {
  text-align: center;
  padding-bottom: 1.5rem;
}

.logo {
  max-width: 100%;
  height: auto;
}

/* Contenu principal */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Section description */
.description-section {
  margin-bottom: 2rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.description-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.description-section p {
  font-size: 1rem;
  color: #4b5563;
}

/* Section bouton */
.button-section {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

#locateButton {
  width: 100%;
  background-color: #ef4444;
  color: white;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  transition: background-color 0.2s;
}

#locateButton:hover {
  background-color: #b91c1c;
}

#locateButton:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.5);
}

/* Messages */
.error-message {
  display: none;
  background-color: #fee2e2;
  border: 1px solid #f87171;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.success-message {
  display: none;
  background-color: #d1fae5;
  border: 1px solid #34d399;
  color: #047857;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.loading-message {
  display: none;
  text-align: center;
  margin-top: 1rem;
  color: #6b7280;
  font-style: italic;
}

/* Affichage des messages quand nécessaire */
.error-message.active,
.success-message.active,
.loading-message.active {
  display: block;
}

/* Footer */
.footer {
  margin-top: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Media queries pour la responsivité */
@media (min-width: 640px) {
  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

        #map { 
            height: 200px; 
            width: 100%; 
            z-index: 1;
        }
        .assistance-type {
            -webkit-tap-highlight-color: transparent;
        }
        .assistance-type.active {
            background-color: rgb(239, 68, 68) !important;
            color: white !important;
        }
		

#message-container {
    z-index: 1000;
    pointer-events: none; /* Permet de cliquer à travers quand pas de message */
}

#error-message, #success-message {
    transition: all 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: auto; /* Rétablit les événements de clic sur les messages */
}

#error-message.visible, #success-message.visible {
    transform: translateY(0);
    opacity: 1;
}

.hidden {
    display: none !important;
}