/* Recherche du site (23/11/2026, proposition A de la toile, loupe seule) : composants/RechercheSite.tsx,
   composants/RecherchePage.tsx. Couleurs du design system (rouge #8C3C39, or #C69C6B), angles de 4 px. */

/* La loupe : après « Contact » sur ordinateur (menu sur une ligne, 1366 px et plus), à gauche du menu en dessous. */
.elementor-nav-menu .cx-rech-place { display: flex; align-items: center; }
.cx-rech-loupe { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #8C3C39; cursor: pointer; }
/* Survol et recherche ouverte : seulement la couleur qui change, sans fond (remarque de Nicolas, 23/11/2026). */
.cx-rech-loupe, .cx-rech-loupe:hover, .cx-rech-loupe:focus { background: transparent !important; }
.cx-rech-loupe svg { color: inherit !important; fill: currentColor; }
.cx-rech-loupe[aria-expanded="true"] { color: var(--marque-or, #C69C6B) !important; }
@media (hover: hover) { .cx-rech-loupe:hover { color: var(--marque-or, #C69C6B) !important; } }
.cx-rech-loupe:focus-visible { outline: 2px solid #8C3C39; outline-offset: 2px; }
.cx-rech-place-tel { display: none; }
@media (max-width: 1365px) {
  .cx-rech-place-tel { display: inline-flex; align-items: center; margin-right: 4px; }
  .cx-rech-place-tel .cx-rech-loupe { width: 48px; height: 48px; color: var(--marque-or, #C69C6B); }
  .cx-rech-place-tel .cx-rech-loupe[aria-expanded="true"] { color: #8C3C39 !important; }
  @media (hover: hover) { .cx-rech-place-tel .cx-rech-loupe:hover { color: #8C3C39 !important; } }
  .cx-rech-place-tel .cx-rech-loupe svg { width: 28px; height: 28px; }
  /* La loupe et le bouton du menu côte à côte. */
  .elementor-widget-nav-menu:has(> .cx-rech-place-tel), .elementor-widget-nav-menu > .elementor-widget-container:has(> .cx-rech-place-tel) { display: flex !important; flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 4px; }
}

/* Le panneau : sous l'en-tête sur ordinateur, en plein écran sur téléphone. */
.cx-rech { position: fixed; inset: 0; z-index: 10000; font-family: Inter, system-ui, sans-serif; color: #3A3431; }
.cx-rech-voile { position: absolute; inset: var(--cx-rech-haut, 80px) 0 0 0; background: rgba(28, 25, 23, .45); }
.cx-rech-panneau { position: absolute; left: 0; right: 0; top: var(--cx-rech-haut, 80px); max-height: calc(100vh - var(--cx-rech-haut, 80px)); overflow-y: auto; background: #fff; border-top: 1px solid #E5E0DB; box-shadow: 0 18px 40px rgba(28, 25, 23, .18); }
.cx-rech-cadre { max-width: 1200px; margin: 0 auto; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
.cx-rech-tete-tel { display: none; }
.cx-rech-ligne { display: flex; align-items: center; gap: 16px; margin: 0; }
.cx-rech-champ { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px 0 16px; border: 2px solid #8C3C39; border-radius: 4px; background: #fff; box-sizing: border-box; color: #8C3C39; }
.cx-rech-champ input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; font: 400 18px Inter, system-ui, sans-serif; color: #1C1917; }
.cx-rech-champ input::-webkit-search-cancel-button { display: none; }
.cx-rech-effacer { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: #F5F2EF; color: #625B55; cursor: pointer; }
.cx-rech-fermer { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border: 0; background: none; font: 600 14px Inter, system-ui, sans-serif; color: #625B55; cursor: pointer; }
.cx-rech kbd, .cx-rech-page kbd { font: 600 11px Inter, system-ui, sans-serif; padding: 2px 6px; border: 1px solid #E5E0DB; border-radius: 4px; }
.cx-rech-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-rech-compte, .cx-rech-suggestions, .cx-rech-vide p { margin: 0; font-size: 14px; line-height: 1.5; color: #625B55; }
.cx-rech-compte b, .cx-rech-vide b { color: #1C1917; }
.cx-rech-vide { display: flex; flex-direction: column; gap: 6px; }
.cx-rech-suggestions button, .cx-rech-vide button, .cx-rech-pied button { padding: 0; border: 0; background: none; font: inherit; color: #8C3C39; text-decoration: underline; cursor: pointer; }
.cx-rech-vide a, .cx-rech-pied a { color: #8C3C39; }
.cx-rech-groupes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cx-rech-groupe { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cx-rech-groupe h3, .cx-rech-groupe h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font: 700 12px Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7A5A2E; }
.cx-rech-groupe h3 svg, .cx-rech-groupe h2 svg { color: #C69C6B; }
.cx-rech-groupe h3 span, .cx-rech-groupe h2 span { letter-spacing: 0; font-weight: 600; color: #625B55; }
.cx-rech-res { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; margin: 0 -12px; border-radius: 4px; text-decoration: none; color: #1C1917; }
.cx-rech-res:hover, .cx-rech-res:focus-visible { background: #F5F2EF; outline: 0; }
.cx-rech-res:focus-visible { box-shadow: inset 0 0 0 2px #8C3C39; }
.cx-rech-titre { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.cx-rech-ligne-texte { font-size: 13px; line-height: 1.45; color: #625B55; overflow-wrap: anywhere; }
.cx-rech mark, .cx-rech-page mark { background: #F3EBDD; color: inherit; padding: 0 2px; border-radius: 2px; }
.cx-rech-plus { align-self: flex-start; padding: 4px 0; font-size: 13px; font-weight: 600; color: #8C3C39; }
.cx-rech-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; border-top: 1px solid #E5E0DB; font-size: 13px; color: #625B55; }
.cx-rech-pied a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
html.cx-rech-ouverte { overflow: hidden; }

@media (max-width: 1100px) {
  .cx-rech-groupes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .cx-rech-voile { display: none; }
  .cx-rech-panneau { top: 0; bottom: 0; max-height: none; border-top: 0; box-shadow: none; }
  .cx-rech-cadre { padding: 12px 16px 32px; gap: 16px; }
  .cx-rech-tete-tel { display: flex; align-items: center; justify-content: space-between; }
  .cx-rech-tete-tel span { font-family: Buda, Georgia, serif; font-weight: 300; font-size: 24px; color: #8C3C39; }
  .cx-rech-tete-tel button { min-height: 44px; padding: 0; border: 0; background: none; font: 600 15px Inter, system-ui, sans-serif; color: #8C3C39; cursor: pointer; }
  .cx-rech-fermer { display: none; }
  .cx-rech-champ { height: 52px; }
  .cx-rech-champ input { font-size: 17px; }
  .cx-rech-groupes { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cx-rech-pied { flex-direction: column; align-items: flex-start; }
}

/* Page de tous les résultats. */
.cx-rech-page { max-width: 1200px; margin: 0 auto; padding: 48px 24px 64px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; font-family: Inter, system-ui, sans-serif; color: #3A3431; }
.cx-rech-page h1 { margin: 0; font-family: Buda, Georgia, serif; font-weight: 300; font-size: 40px; line-height: 1.2; color: #1C1917; }
.cx-rech-page form { margin: 0; }
.cx-rech-groupes-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
@media (max-width: 767px) {
  .cx-rech-page { padding: 28px 16px 48px; }
  .cx-rech-page h1 { font-size: 30px; }
  .cx-rech-groupes-page { grid-template-columns: minmax(0, 1fr); }
}
