/* -----------------------------------------------
   Fichier : style-iframe.css
   Objectif : Style Saint-Ouen léger / Option L
   ----------------------------------------------- */

/* Import Google Fonts – Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Variables (issues de ton kit Elementor) */
:root {
    --so-blue-primary: #103E68;      /* bleu institutionnel */
    --so-grey-light: #F6F6F6;
    --so-grey-border: #D9D9D9;
    --so-text: #151515;

    --form-max-width: 620px;
}

/* Fond général de l'iframe */
body {
    background: #fff;
    font-family: 'Poppins', sans-serif;
    color: var(--so-text);
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

/* Container principal */
#container-bv {
    width: 100%;
    max-width: var(--form-max-width);
    background: #fff;
    padding: 2.2rem;
    border-radius: 10px;

    /* Option 3 : ombrage léger */
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

/* Titre */
#container-bv h1 {
    color: var(--so-blue-primary);
    font-weight: 600;
    font-size: 1.9rem;
    margin-bottom: 1.4rem;
}

/* Formulaire */
form {
    margin-top: 1rem;
}

label {
    display: block;
    font-weight: 500;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

input[type="text"],
select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--so-grey-border);
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
select:focus {
    border-color: var(--so-blue-primary);
    outline: none;
}

/* Bouton B3-B (bleu clair moderne) */
button {
    margin-top: 1.8rem;
    padding: 0.8rem 1.5rem;
    width: 100%;

    background: #dbe8f7;                /* bleu clair */
    color: var(--so-blue-primary);
    border: 2px solid var(--so-blue-primary);
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: 0.25s;
}

button:hover {
    background: #cddcf1;                /* légèrement plus sombre */
}

/* Message d'erreur */
.message {
    color: #c62828;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Bloc résultats */
.resultats {
    margin-top: 2rem;
    background: #fff;
    padding: 1.6rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.resultat {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.resultat:last-child {
    border-bottom: none;
}

.bureau {
    color: var(--so-blue-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

/* Suggestions (autocomplétion custom) */
.suggestions {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 2px;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border: 1px solid var(--so-grey-border);
    border-radius: 6px;
    margin-top: 0.4rem;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.suggestion-item {
    padding: 0.55rem 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
}

.suggestion-item:hover {
    background: #f1f4f8;
}

/* Responsive */
@media(max-width: 540px) {
    #container-bv {
        padding: 1.4rem;
    }

    #container-bv h1 {
        font-size: 1.6rem;
    }
}
