/* Page de résultats de recherche (/?s=…). Pas de maquette : rien de nouveau, seulement des éléments des autres
   nouvelles pages. Les cartes sont celles des lieux d'une région (.lieux et .lieu de pages.css), le titre celui des
   pages de texte (texte.css), le champ celui de l'accueil (.recherche d'accueil.css), posé sur le fond gris au
   lieu d'une photo : un filet à la place de l'ombre. */
.rech-in { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Le haut : titre, filet, champ de recherche */
.rech-tete { padding-top: 72px; }
.rech-tete h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.rech-tete .filet { margin-top: 22px; }
.rech-champ { display: flex; align-items: center; max-width: 640px; margin: 34px 0 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease; }
.rech-champ:focus-within { box-shadow: inset 0 0 0 1px var(--gold); }
.rech-champ svg { flex: none; width: 20px; height: 20px; margin: 0 4px 0 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.rech-champ input { flex: 1; min-width: 0; height: 58px; margin: 0; padding: 0 12px; border: 0; border-radius: 0; background: none; color: var(--ink); font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; }
.rech-champ input:focus-visible { outline: 0; } /* Le filet doré du champ entier marque déjà la saisie. */
.rech-champ .btn-plein { height: 58px; padding: 0 26px; }
/* Propositions pendant la frappe (assets/front/socle.js), comme à l'accueil et dans l'en-tête : la liste s'ouvre sous le champ. */
.rech-champ { position: relative; }
.rech-champ .recherche-liste { position: absolute; z-index: 3; top: calc(100% + 6px); left: 0; right: 0; max-height: min(420px, 60vh); overflow-y: auto; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.16); }
.rech-champ .recherche-liste[hidden] { display: none; }
.rech-champ .recherche-liste a { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rech-champ .recherche-liste a:first-child { border-top: 0; }
.rech-champ .recherche-liste a:hover, .rech-champ .recherche-liste a.is-on { background: var(--gold-pale); }
.rech-champ .recherche-liste a > :last-child { min-width: 0; overflow-wrap: anywhere; }
.rech-champ .recherche-image { flex: none; width: 56px; height: 42px; overflow: hidden; background: #ddd; }
.rech-champ .recherche-image img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.rech-champ .recherche-liste b { display: block; font-size: 14px; line-height: 1.3; font-weight: 500; }
.rech-champ .recherche-liste small { display: block; margin-top: 2px; color: var(--gold-deep); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* Le compte, les messages, la grille */
.rech-liste { padding-top: 44px; }
.rech-compte { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.rech-compte b { color: var(--ink); font-weight: 700; }
.rech q { quotes: "“" "”"; }
.rech-message { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.rech-aide { margin: 10px 0 0; font-size: 15px; }
.rech-pistes { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }

/* Les cartes : celles des lieux d'une région. Leur titre est ici un titre 2 (il suit le titre de la page) et n'est
   jamais coupé ; trois par rangée, deux sur tablette (une recherche peut rendre 200 cartes : une seule colonne
   de grandes cartes à 768 px serait interminable), une sur téléphone ; un résultat seul reste à gauche, sous le compte. */
.rech .lieu h2 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.25; font-weight: 700; text-transform: uppercase; overflow-wrap: anywhere; }
.rech .lieu-ville { display: block; margin-top: 3px; }
@media (min-width: 1101px) { .rech .lieux, .rech .lieux:has(> :only-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: normal; } }
@media (min-width: 601px) and (max-width: 1100px) { .rech .lieux, .rech .lieux:has(> :only-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: normal; } }

/* Pages suivantes : seulement quand la recherche de WordPress prend le relais (plusieurs mots) */
.rech-pages { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.rech-pages span { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.rech-pages > :first-child { justify-self: start; }
.rech-pages > :last-child { justify-self: end; }

@media (max-width: 900px) {
	.rech-tete { padding-top: 44px; }
	.rech-tete h1 { font-size: clamp(34px, 10vw, 46px); }
	.rech-champ { margin-top: 26px; }
	.rech-liste { padding-top: 30px; }
}
@media (max-width: 600px) {
	/* Comme le champ de l'accueil sur téléphone : le bouton passe sous le champ, sur toute la largeur. */
	.rech-champ { flex-wrap: wrap; }
	.rech-champ input { height: 52px; }
	.rech-champ .btn-plein { width: 100%; height: 48px; }
	.rech-message { font-size: 18px; }
	.rech-pages .btn-cadre { padding: 0 16px; }
}
@media (max-width: 420px) { .rech-champ input::placeholder { font-size: 12.5px; letter-spacing: -.01em; } }
