/* ========== Style général du bandeau ========== */
.bandeau {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px,
                rgba(14, 30, 37, 0.32) 0px 2px 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* Coins du bas carrés pendant la recherche */
.bandeau.search-active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* ========== Bouton (ex : lien de retour) ========== */
.bandeau a {
    background-color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.bandeau a:hover {
    background-color: #6f8e80;
}

/* ========== Formulaire de recherche ========== */
.form-search {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-search label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-search input[type="text"] {
    padding: 10px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    font-size: 16px;
}

/* ========== Résultats dynamiques de recherche ========== */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Résultat individuel */
.result-item {
    padding: 10px 16px;
    border-bottom: 1px solid #ffffff;
    background-color: #ffffff;
    transition: background-color 0.2s;
}
.result-item:last-child {
    border-bottom: none;
}

.result-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
}

.result-item a:hover {
    background-color: #cacaca;
    color: #000000;
}

/* ========== Responsive ========== */
@media (max-width: 950px) {
    .bandeau {
        flex-direction: column;
        align-items: stretch;
    }

    .bandeau a,
    .form-search {
        width: 100%;
    }

    .form-search input[type="text"] {
        width: 100%;
    }
}