/* Conteneur principal */
#search-container {
    margin-bottom: 40px;
    text-align: center;
}

/* Sélecteur de commune */
#commune-select {
    width: 85%;
    padding: 5px 15px;
    font-size: 20px;
    font-weight: bold;
    background-color: #9DE2D5;
    box-sizing: border-box;
    border: 5px solid #9DE2D5;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333333' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

#commune-select:focus {
    border-color: #9DE2D5;
    box-shadow: 0 0 10px #9DE2D5;
}

#commune-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#commune-select option {
    background-color: white;
    color: #333333;
    font-size: 16px;
}

/* Section input (masquée par défaut) */
#address-section {
    margin-top: 40px;
}

/* Input de recherche */
#adresse-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 25px;
    outline: none;
    position: relative;
    box-sizing: border-box;
    border: 5px solid #9DE2D5; /* Bordure verte */
    box-shadow: 0 0 5px #9DE2D5; /* Effet lumineux */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#adresse-input:focus {
    border-color: #9DE2D5; /* Bordure plus marquée sur focus */
    box-shadow: 0 0 10px #9DE2D5; /* Accentuation de l'effet lumineux */
}

#adresse-input:focus-visible {
    border-color: #9DE2D5; /* Bordure plus marquée sur focus */
    box-shadow: 0 0 10px #9DE2D5; /* Accentuation de l'effet lumineux */
}

/* Loader */
#loader {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: none; /* Masqué par défaut */
}

/* Liste des suggestions */
#suggestions {
    list-style: none;
    padding: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Masqué par défaut */
}

#suggestions li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#suggestions li:focus-visible {
    outline: 2px solid #9DE2D5;
    outline-offset: -2px;
    background-color: #e0f5f3;
}

#suggestions li:hover {
    background-color: #f1f1f1;
}

#suggestions li.active {
    background-color: #9DE2D5;
    color: #ffffff;
}

#suggestions li.active:focus-visible {
    outline: 2px solid #0d3f3f;
    outline-offset: -2px;
}

#suggestions li.active:hover {
    background-color: #9DE2D5;
}

#suggestions .no-results {
    color: red;
    font-style: italic;
}

/* Conteneur des résultats */
.collecte-container {
    display: none;
    justify-content: center;
    gap: 20px;
}

.collecte-item {
    text-align: center;
    display: none;  /* Masqué par défaut */
    background-color: #eee;
    border-radius: 20px;
    padding: 10px 20px;
    flex: 0 1 170px;
}

.collecte-item img {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.collecte-item p {
    margin: 0;
    padding: 0;
    color: #333333;
    font-weight: 500;
}

.collecte_jour-titre {
    font-size: 24px;
}

/* Terme recherché mis en évidence dans les suggestions */
.highlight {
    color: #9DE2D5;
    font-weight: bold;
}
