html.page-recherche,
body:has(.page-recherche-contenu) {
    background: #fff;
}

.page-recherche-contenu {
    min-height: 100vh;
    padding-bottom: 56px;
    color: #24343b;
    background: #fff;
}

.recherche-entete {
    box-sizing: border-box;
    display: flex;
    min-height: 34vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: calc(var(--hauteur-menu, 80px) + 28px) 24px 28px;
    text-align: center;
}

.recherche-entete h1 {
    margin: 0;
    color: navy;
    font-family: "Roboto", Arial, sans-serif;
    font-size: clamp(1rem, 5vw, 1.5rem);
    font-style: italic;
    font-weight: 500;
    text-shadow: 1px 1px #fff;
}

.recherche-entete > p {
    margin: 0;
}

.recherche-formulaire {
    width: min(620px, 100%);
    text-align: left;
}

.recherche-formulaire label {
    display: block;
    margin-bottom: 6px;
}

.recherche-formulaire > div {
    display: flex;
    gap: 8px;
}

.recherche-formulaire input {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font: inherit;
}

.recherche-formulaire button {
    padding: 10px 18px;
    border: 1px solid navy;
    border-radius: 6px;
    color: #fff;
    background: navy;
    font: inherit;
    cursor: pointer;
}

.recherche-aide {
    width: min(620px, 100%);
    margin: 0;
    padding-left: 22px;
    text-align: left;
    line-height: 1.5;
}

.recherche-resume,
.recherche-vide {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto 24px;
}

.recherche-resume {
    color: navy;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1.2rem;
}

.page-recherche .sous-categorie-articles {
    padding-top: 12px;
}

@media (max-width: 600px) {
    .recherche-entete {
        padding-right: 16px;
        padding-left: 16px;
    }

    .recherche-formulaire > div {
        flex-direction: column;
    }
}

.recherche-entete {
    background-image: url("../images/fondRecherche.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.recherche-formulaire > div {
    gap: 0;
}

.recherche-formulaire input {
    border-radius: 999px 0 0 999px;
    border-right: 0;
}

.recherche-formulaire button {
    border-radius: 0 999px 999px 0;
}

@media (max-width: 600px) {
    .recherche-formulaire > div {
        flex-direction: row;
    }
}

html.page-recherche,
body:has(.page-recherche-contenu) {
    background: url("../images/fondRecherche.png") center center / cover fixed no-repeat;
}

.page-recherche-contenu {
    background: transparent;
}

.recherche-entete {
    background-image: none;
}

.recherche-formulaire input,
.recherche-formulaire button {
    border: 1px solid navy;
}

.page-recherche-contenu *,
.page-recherche-contenu *::before,
.page-recherche-contenu *::after {
    border: 0 !important;
    box-shadow: none !important;
}

.recherche-formulaire input,
.recherche-formulaire button {
    border: 1px solid navy !important;
}

.recherche-entete {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
}

html.page-recherche,
body:has(.page-recherche-contenu) {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
        url("../images/fondRecherche.png");
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-attachment: fixed, fixed;
    overflow: hidden;
}

.recherche-formulaire input:focus,
.recherche-formulaire input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.page-recherche-contenu :where(p, li, h2, h3, h4, button, input, label, .sous-categorie-lien) {
    color: navy !important;
    font-family: "Roboto", Arial, sans-serif !important;
    font-style: italic !important;
}

.recherche-formulaire input::placeholder {
    color: navy;
}

.page-recherche-contenu .recherche-formulaire button {
    color: #fff !important;
}

