/* Fichier: styles.css */
/* Base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
background-color: #000;
  background-repeat: repeat;
  background-size: 15%;
}

.main-container
{  border-radius: 30px;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
header {
  background: #f8ff17;
  padding: 40px;
  color: #000;
  border-radius: 30px;
}
/* Section des 3 choix */
.choix-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 40px;
}

#logo
{
	max-width: 220px;
  width: 80%;
  margin: 40px
}

h2.header {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 2.2rem;
}

#card-maire
{}


.choix-card {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.choix-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.choix-card h3 {
    color: #0056b3; /* Bleu de la démocratie */
}

/* Carte Leaflet */
#mapid {
    height: 600px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 20px;
}

/* Styles pour les contrôles de la carte */
#map-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Style des formulaires (exemple) */
form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fafafa;
}

input[type="text"], input[type="email"], input[type="tel"], select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background-color: #28a745; 
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #1e7e34;
}

/* Fichier: styles.css (ajout) */

.autocomplete-list {
    position: absolute; /* Positionné par rapport au conteneur du formulaire */
    z-index: 1000;
    width: calc(100% - 40px); /* Ajuster à la largeur de l'input */
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* Masqué par défaut */
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:hover, .autocomplete-item.selected {
    background-color: #f0f0f0;
}