/* FeriaMania V7 — en-tête épuré : logo original, fond blanc, aucun aplatissement.
   Modifications uniquement visuelles, aucun effet sur le dépôt et la recherche. */

/* L'ancien fond vif/vert ne doit plus apparaître autour de l'en-tête. */
body:not(.depot-body) {
    background: #f6f7fb !important;
    background-attachment: initial !important;
}

/* Logo sur un fond blanc sobre, centré et à ses proportions d'origine. */
body #wrapper #header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    min-height: 144px;
    margin: 16px auto 14px;
    padding: 24px 20px;
    border: 1px solid #ece9f0;
    border-radius: 18px;
    background: #fff !important;
    box-shadow: 0 7px 26px rgba(47, 27, 69, .06);
    text-align: center;
}
body #wrapper #header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    text-decoration: none;
}
body #wrapper #header a img {
    display: block;
    width: 350px;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* Neutralise la couleur de fond de l'ancien bloc de recherches et d'annonces
   (habituellement définie dans les réglages historiques). */
body #onads + div {
    background: #fff !important;
    border: 1px solid #ece9f0;
    border-radius: 16px;
    box-shadow: 0 5px 24px rgba(47, 27, 69, .04);
}

@media (max-width: 600px) {
    body #wrapper #header {
        min-height: 110px;
        margin: 10px auto 12px !important;
        padding: 21px 12px !important;
        border-radius: 14px;
    }
    body #wrapper #header a img {
        width: 245px !important;
        max-width: 78vw !important;
    }
    body #onads + div {
        border-radius: 12px;
    }
}
