/* [BC-4-217] Barre de recherche de l'en-tête (même présentation que #rif-recherche) : champ + bouton dans un contour arrondi,
   texte centré verticalement, contour de focus qui épouse le champ. Ordinateur : entre la marque et la zone pratique ;
   tablette et mobile : sur sa propre ligne, alignée sur le logo, pleine largeur. */
.site-header .recherche-site{display:flex;flex:0 1 330px;min-width:0;height:44px;border:2px solid var(--blue);border-radius:6px;overflow:hidden;background:#fff;margin:0}
.site-header .recherche-site input[type="search"]{flex:1;min-width:0;height:100%;min-height:0;border:0;border-radius:0;padding:0 14px;line-height:normal;background:#fff;color:var(--ink);box-shadow:none;-webkit-appearance:none;appearance:none}
.site-header .recherche-site input[type="search"]::placeholder{color:var(--muted);opacity:1}
.site-header .recherche-site input[type="search"]:focus-visible{outline:0}
.site-header .recherche-site:focus-within{outline:3px solid var(--blue);outline-offset:2px}
.site-header .recherche-site button{display:flex;align-items:center;justify-content:center;width:48px;border:0;background:var(--blue);color:#fff}
.site-header .recherche-site button:hover{background:var(--navy)}
.site-header .recherche-site .ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.liste-resultats{list-style:none;padding:0;margin:0 0 8px}
.liste-resultats li{padding:10px 0;border-bottom:1px solid var(--line)}
.liste-resultats a{font-weight:600}
.liste-resultats p{margin:4px 0 0;color:var(--muted)}
/* [C-R-109] Résultats de /recherche : une carte par catégorie, 2 par ligne dès 992 px (hauteur égale), une colonne en dessous ; carte seule = demi-largeur à gauche. */
.recherche-site-cartes{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:stretch;margin-bottom:32px}
.recherche-site-carte{min-width:0;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow-wrap:anywhere}
.recherche-site-carte:hover,.recherche-site-carte:focus-within{border-color:var(--blue)}
.recherche-site-carte h2{font-size:25px;margin-bottom:10px}
.recherche-site-carte .liste-resultats{margin:0}
.recherche-site-carte .liste-resultats li:last-child{border-bottom:0}
.recherche-site-carte>p{margin:12px 0 0}
.recherche-site-carte a:hover,.recherche-site-carte a:focus-visible{text-decoration:underline}
@media(min-width:992px){.recherche-site-cartes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:999px){
    .site-header .masthead{flex-wrap:wrap;row-gap:10px;padding:10px 0}
    .site-header .recherche-site{order:5;flex:1 1 100%;height:48px}
}
/* [ABC-4-261] Champ et bouton de toute barre de recherche : même hauteur, bord haut et bas alignés, texte et flèche centrés.
   Accueil (« Un nom d'élu… ») : deux colonnes (champ souple + bouton), et non les trois de la grille des filtres où le bouton
   tombait dans la colonne du milieu, plus court que le champ. Données publiques « communes » : champ et bouton sur une ligne. */
.search-box .epe-recherche-territoire .search-fields{grid-template-columns:minmax(0,1fr) auto;align-items:end}
.search-box .epe-recherche-territoire .search-fields>div{min-width:0}
.search-box .epe-recherche-territoire input[type="search"],.search-box .epe-recherche-territoire .button{height:52px;min-height:52px;margin:0}
.search-box .epe-recherche-territoire .button{display:inline-flex;align-items:center;justify-content:center;padding:0 28px}
.section form[role="search"][action$="/communes"]{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}
.section form[role="search"][action$="/communes"] label{flex:0 0 100%;margin:0}
.section form[role="search"][action$="/communes"] input[type="search"]{flex:1 1 240px;min-width:0;height:52px;min-height:52px;margin:0}
.section form[role="search"][action$="/communes"] button{flex:none;height:52px;min-height:52px;margin:0;padding:0 28px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:650px){
    .search-box .epe-recherche-territoire .search-fields{grid-template-columns:1fr}
    .search-box .epe-recherche-territoire .button{width:100%}
}
