/* Recherche dans le site — styles communs (30/11/2026, version 3 du 01/12/2026). Fichier MAÎTRE : entreprise/leads-db/shop/recherche.css, copié
   TEL QUEL sur chaque site (lien à part ou ajouté à la fin de la feuille du site au build). Tous les sélecteurs sont dans
   :where() : spécificité nulle, n'importe quelle règle du site l'emporte, quel que soit l'ordre (y compris « input {…} »).
   Site à remise à zéro par balise (préflight Tailwind « input, button { padding: 0 } », « p { margin: 0 } », normalize) :
   poser la classe recherche-solide sur <html> (ou sur le formulaire et la zone de résultats). Le champ, le bouton et les
   paragraphes du module passent alors en 0,0,2 (form input, body p) et l'emportent sur ces remises à zéro, chargées avant
   ou après ; une règle du site qui nomme une classe (.recherche input) l'emporte toujours. Sans la classe, rien ne change :
   les sites qui stylent input, button ou p par balise gardent leur aspect. Tailwind < 3.4 remet aussi le fond du bouton par
   [type='submit'] (0,1,0) : le redire dans la feuille du site. Aucune police imposée (font: inherit).
   Couleurs : variables --recherche-* à définir par le site (sinon valeurs neutres ci-dessous) :
   --recherche-fond / --recherche-texte (champ), --recherche-bord, --recherche-accent (focus, suggestion active),
   --recherche-panneau-fond / --recherche-panneau-texte, --recherche-survol, --recherche-doux (texte secondaire),
   --recherche-filet (séparateurs), --recherche-rayon, --recherche-ombre.
   Champ à 16 px au moins (pas de zoom automatique sur iPhone), cibles de 44 px.
   Seule exception aux :where() (version 3, bloc « isolés du site » en fin de feuille) : la couleur des liens du panneau de
   suggestions et la forme de la liste de résultats, en 0,2,0, pour que les règles générales du site (a, header a, .entete a,
   ol, article ol > li::before…) ne les touchent plus ; une règle du site qui vise une classe du module en plus l'emporte. */
:where(form.recherche){position:relative;display:flex;align-items:stretch;min-width:0;margin:0}
:where(form.recherche) :where(input[type="search"],input[name="q"]){flex:1 1 auto;min-width:0;width:100%;box-sizing:border-box;margin:0;font:inherit;font-size:max(16px,1rem);line-height:1.3;min-height:44px;padding:.5rem .85rem;color:var(--recherche-texte,#17202a);background:var(--recherche-fond,#fff);border:1px solid var(--recherche-bord,#8a939c);border-right:0;border-radius:var(--recherche-rayon,6px) 0 0 var(--recherche-rayon,6px);-webkit-appearance:none;appearance:none}
:where(form.recherche) :where(input)::placeholder{color:var(--recherche-doux,#5c6670);opacity:1}
:where(form.recherche) :where(button[type="submit"]){flex:none;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-width:44px;min-height:44px;margin:0;padding:0 .8rem;font:inherit;font-weight:600;color:var(--recherche-texte,#17202a);background:var(--recherche-fond,#fff);border:1px solid var(--recherche-bord,#8a939c);border-radius:0 var(--recherche-rayon,6px) var(--recherche-rayon,6px) 0;cursor:pointer}
/* recherche-solide : ce que les remises à zéro par balise effacent (marges, police, couleurs), redit en 0,0,2 */
form:where(.recherche-solide.recherche,.recherche-solide .recherche) input:where([type="search"],[name="q"]){margin:0;padding:.5rem .85rem;font:inherit;font-size:max(16px,1rem);line-height:1.3;color:var(--recherche-texte,#17202a)}
form:where(.recherche-solide.recherche,.recherche-solide .recherche) input::placeholder{color:var(--recherche-doux,#5c6670);opacity:1}
form:where(.recherche-solide.recherche,.recherche-solide .recherche) button:where([type="submit"]){margin:0;padding:0 .8rem;font:inherit;font-weight:600;color:var(--recherche-texte,#17202a);background-color:var(--recherche-fond,#fff)}
:where(form.recherche) :where(input,button):focus-visible{outline:2px solid var(--recherche-accent,#1d4ed8);outline-offset:1px;position:relative;z-index:1}
:where(form.recherche) :where(svg){width:1.15rem;height:1.15rem;flex:none}
:where(.recherche-sr){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Panneau de suggestions */
:where(.recherche-panneau){position:absolute;left:0;top:calc(100% + 4px);z-index:60;box-sizing:border-box;width:max(100%,min(26rem,calc(100vw - 2rem)));max-height:min(70vh,34rem);overflow:auto;padding:.3rem;color:var(--recherche-panneau-texte,#17202a);background:var(--recherche-panneau-fond,#fff);border:1px solid var(--recherche-filet,#d5dae0);border-radius:var(--recherche-rayon,6px);box-shadow:var(--recherche-ombre,0 14px 30px -10px rgba(15,23,42,.4));text-align:left;font-size:1rem;line-height:1.35}
:where(.recherche-panneau)[hidden],:where(.recherche-liste)[hidden],:where(.recherche-message)[hidden],:where(.recherche-rubriques)[hidden]{display:none}
:where(.recherche-option){display:block;box-sizing:border-box;min-height:44px;padding:.5rem .65rem;border-radius:calc(var(--recherche-rayon,6px) - 2px);color:inherit;text-decoration:none;cursor:pointer}
:where(.recherche-option):hover,:where(.recherche-option.actif){background:var(--recherche-survol,#eef1f4)}
:where(.recherche-option.actif){outline:2px solid var(--recherche-accent,#1d4ed8);outline-offset:-2px}
:where(.ro-titre){display:block;font-weight:600}
:where(.ro-ligne,.rr-meta){display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .5rem;margin-top:.15rem;font-size:.84rem;color:var(--recherche-doux,#5c6670)}
:where(.ro-type){font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:0 .3rem;border:1px solid currentColor;border-radius:3px}
:where(.ro-etiquette){font-weight:600;color:var(--recherche-panneau-texte,#17202a)}
:where(.recherche-tous){font-weight:600;margin-top:.2rem;border-top:1px solid var(--recherche-filet,#d5dae0);border-radius:0}
:where(.recherche-message,.recherche-panneau .recherche-rubriques){margin:.45rem .65rem;font-size:.92rem;color:var(--recherche-doux,#5c6670)}
form:where(.recherche-solide.recherche,.recherche-solide .recherche) p:where(.recherche-message,.recherche-rubriques){margin:.45rem .65rem}
:where(.recherche-rubriques) :where(a){color:inherit;text-decoration:underline;text-underline-offset:2px}

/* Page de résultats */
:where(.recherche-compte){margin:1.2rem 0 .6rem;font-weight:600}
body p:where(.recherche-solide .recherche-compte){margin:1.2rem 0 .6rem}
:where(.recherche-resultats){list-style:none;margin:0;padding:0}
:where(.rr){padding:.95rem 0;border-bottom:1px solid var(--recherche-filet,#d5dae0)}
:where(.rr-titre){font-size:1.08rem;font-weight:650;line-height:1.3}
:where(.rr-description){margin:.3rem 0 0;color:var(--recherche-doux,#5c6670)}
:where(.recherche-astuce){margin:.2rem 0 .6rem;color:var(--recherche-doux,#5c6670)}
:where(.recherche-suite){margin:1.6rem 0 .2rem;font-weight:600;color:var(--recherche-doux,#5c6670)}
body p:where(.recherche-solide .rr-description){margin:.3rem 0 0}
body p:where(.recherche-solide .recherche-astuce){margin:.2rem 0 .6rem}
body p:where(.recherche-solide .recherche-suite){margin:1.6rem 0 .2rem}
body button:where(.recherche-solide .recherche-plus){margin-top:1rem;padding:.5rem 1.1rem;font:inherit;font-weight:600;color:inherit}
:where(.recherche-plus){min-height:44px;margin-top:1rem;padding:.5rem 1.1rem;font:inherit;font-weight:600;color:inherit;background:transparent;border:1px solid var(--recherche-bord,#8a939c);border-radius:var(--recherche-rayon,6px);cursor:pointer}

/* Loupe des petits écrans : formulaire avec la classe recherche-repliable + loupe [data-recherche-ouvrir] (de préférence un lien
   <a href="/recherche/"> visible dès le HTML : aucun décalage). Ouverte, la barre passe en pleine largeur sous l'en-tête
   (l'en-tête doit être position:relative ou sticky ; fond : --recherche-barre-fond). Point de bascule 47.5em (760 px) : un site
   qui en veut un autre redéclare ces règles dans sa feuille pour sa largeur. */
:where(.recherche-loupe){display:none;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;font:inherit;color:inherit;text-decoration:none;background:transparent;border:1px solid currentColor;border-radius:var(--recherche-rayon,6px);cursor:pointer}
:where(.recherche-loupe) :where(svg){width:1.2rem;height:1.2rem}
@media (max-width:47.5em){
  :where(form.recherche-repliable){display:none}
  :where(form.recherche-repliable.recherche-ouverte){display:flex;position:absolute;left:0;right:0;top:100%;z-index:50;padding:.6rem 1rem .75rem;background:var(--recherche-barre-fond,#fff)}
  :where(.recherche-loupe:not([hidden])){display:inline-flex}
}
@media (prefers-reduced-motion:reduce){:where(.recherche-option){scroll-behavior:auto}}

/* Isolés du site (version 3) : liens du panneau à la couleur du panneau (des liens or pâle sur fond blanc devenaient illisibles),
   liste de résultats sans retrait, puce ni numéro (« ol { padding } », « article ol > li::before { content: counter() } » du
   site). Spécificité 0,2,0 (0,3,0 pour les états) : plus forte que « a », « header nav a », « .entete a », « .prose ol », plus
   faible qu'une règle du site qui nomme en plus une classe du module (« .recherche-panneau a.recherche-option »). */
.recherche-panneau .recherche-option,.recherche-panneau .recherche-option:hover,.recherche-panneau .recherche-option:focus,.recherche-panneau .recherche-option:visited{color:inherit}
.recherche-panneau .recherche-rubriques :where(a){color:inherit}
.recherche-corps>.recherche-resultats{list-style:none;margin:0;padding:0}
.recherche-resultats>.rr{list-style:none;margin:0;padding:.95rem 0;min-height:0;counter-increment:none;background:none;border:0;border-bottom:1px solid var(--recherche-filet,#d5dae0);border-radius:0;box-shadow:none}
.recherche-resultats>.rr::before,.recherche-resultats>.rr::after{content:none}
