/* La recherche de La Voie Verte — module lvvrecherche.
   Tout est range sous .lvvr (le panneau, pose hors du bandeau) : rien ici ne
   touche une regle du theme ou de lvv.css, sauf les deux dernieres, qui
   n agissent qu une fois le script charge (html.lvvr-pret). */

.lvvr {
  --lvvr-nuit: #101A12;
  --lvvr-surface: #15221A;
  --lvvr-survol: rgba(247, 242, 228, .07);
  --lvvr-creme: #F7F2E4;
  --lvvr-doux: rgba(247, 242, 228, .66);
  --lvvr-or: #D2B269;
  --lvvr-or-bord: rgba(210, 178, 105, .38);
  --lvvr-or-fond: rgba(210, 178, 105, .12);
  --lvvr-braise: #E58A3C;
  --lvvr-titre: var(--lvv-titre, Marcellus, Georgia, serif);
  --lvvr-texte: var(--lvv-texte, "Source Sans Pro", "Helvetica Neue", Arial, sans-serif);
  position: fixed;
  inset: 0;
  z-index: 2147483600; /* au-dessus de la bulle Miss Bud et du bandeau cookies */
  font-family: var(--lvvr-texte);
  color: var(--lvvr-creme);
  -webkit-text-size-adjust: 100%;
}
.lvvr[hidden] { display: none; }
.lvvr *, .lvvr *::before, .lvvr *::after { box-sizing: border-box; }

.lvvr-voile {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 8, .66);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.lvvr-boite {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  background: var(--lvvr-surface);
  border: 1px solid var(--lvvr-or-bord);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
  animation: lvvr-entree .16s ease-out;
}
@keyframes lvvr-entree {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* La barre */
.lvvr-barre {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--lvvr-or-bord);
  background: var(--lvvr-nuit);
}
.lvvr-loupe { color: var(--lvvr-or); display: inline-flex; flex: 0 0 auto; }
.lvvr .lvvr-champ {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--lvvr-creme);
  font-family: var(--lvvr-texte);
  font-size: 19px;
  line-height: 44px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.lvvr .lvvr-champ::placeholder { color: rgba(247, 242, 228, .45); }
.lvvr .lvvr-champ::-webkit-search-cancel-button,
.lvvr .lvvr-champ::-webkit-search-decoration { -webkit-appearance: none; }

.lvvr button {
  font-family: var(--lvvr-texte);
  cursor: pointer;
}
.lvvr-effacer,
.lvvr-fermer {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--lvvr-doux);
}
.lvvr-effacer { visibility: hidden; }
.lvvr-a-texte .lvvr-effacer { visibility: visible; }
.lvvr-effacer:hover, .lvvr-fermer:hover { color: var(--lvvr-creme); background: var(--lvvr-survol); }
.lvvr-fermer kbd {
  padding: 3px 7px;
  border: 1px solid rgba(247, 242, 228, .28);
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-family: var(--lvvr-texte);
  font-size: 12px;
  letter-spacing: .04em;
}
.lvvr-fermer-tel { display: none; font-size: 15px; }

/* Le corps */
.lvvr-corps {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 22px;
  -webkit-overflow-scrolling: touch;
}
.lvvr-annonce {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lvvr-section + .lvvr-section { margin-top: 20px; }
.lvvr .lvvr-titre {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0;
  font-family: var(--lvvr-titre);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lvvr-or);
}

.lvvr-grille {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.lvvr-grille-seule { grid-template-columns: minmax(0, 1fr); }
.lvvr-cote .lvvr-section + .lvvr-section { margin-top: 22px; }

/* Les puces : rayons, marques, recherches proposees */
.lvvr-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.lvvr-puces-colonne { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.lvvr .lvvr-puce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid var(--lvvr-or-bord);
  border-radius: 999px;
  background: transparent;
  color: var(--lvvr-creme);
  font-size: 14.5px;
  line-height: 1.25;
  text-decoration: none;
  text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.lvvr-puces-colonne .lvvr-puce {
  justify-content: space-between;
  padding: 8px 10px;
  border-color: transparent;
  border-radius: 4px;
}
.lvvr .lvvr-puce:hover,
.lvvr .lvvr-puce.lvvr-actif { background: var(--lvvr-or-fond); border-color: var(--lvvr-or); color: var(--lvvr-creme); }
.lvvr .lvvr-puce[aria-pressed="true"] { background: var(--lvvr-or); border-color: var(--lvvr-or); color: var(--lvvr-nuit); }
.lvvr .lvvr-puce[aria-pressed="true"] .lvvr-puce-n { color: rgba(16, 26, 18, .7); }
.lvvr-puce-n { color: var(--lvvr-doux); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* Les produits */
.lvvr-liste { display: flex; flex-direction: column; gap: 2px; }
.lvvr .lvvr-produit {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 8px;
  border-radius: 5px;
  color: var(--lvvr-creme);
  text-decoration: none;
  transition: background .12s ease;
}
.lvvr .lvvr-produit:hover,
.lvvr .lvvr-produit.lvvr-actif { background: var(--lvvr-survol); color: var(--lvvr-creme); }
.lvvr .lvvr-produit.lvvr-actif { box-shadow: inset 3px 0 0 var(--lvvr-or); }
.lvvr-vignette {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.lvvr-vignette img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lvvr-indispo .lvvr-vignette { opacity: .6; }
.lvvr-produit-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lvvr-produit-nom {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
}
.lvvr-produit-nom mark {
  padding: 0;
  background: transparent;
  color: var(--lvvr-or);
}
.lvvr-produit-info { font-size: 13px; line-height: 1.3; color: var(--lvvr-doux); }
.lvvr-produit-prix { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.lvvr-prix { font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lvvr-etiquette {
  padding: 2px 6px;
  border: 1px solid rgba(229, 138, 60, .6);
  border-radius: 3px;
  color: var(--lvvr-braise);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lvvr .lvvr-tout {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--lvvr-or);
  border-radius: 4px;
  background: transparent;
  color: var(--lvvr-or);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease;
}
.lvvr .lvvr-tout:hover,
.lvvr .lvvr-tout.lvvr-actif { background: var(--lvvr-or); color: var(--lvvr-nuit); }

/* Messages */
.lvvr .lvvr-info {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 3px solid var(--lvvr-or);
  background: var(--lvvr-or-fond);
  color: var(--lvvr-creme);
  font-size: 14.5px;
  line-height: 1.45;
}
.lvvr-info strong { color: var(--lvvr-or); font-weight: 700; }
.lvvr .lvvr-info a, .lvvr .lvvr-contact a { color: var(--lvvr-or); text-decoration: underline; }
.lvvr .lvvr-attente, .lvvr .lvvr-vide { margin: 8px 0; color: var(--lvvr-doux); font-size: 15px; }
.lvvr-aucun { margin-bottom: 24px; }
.lvvr .lvvr-aucun-titre {
  margin: 4px 0 8px;
  font-family: var(--lvvr-titre);
  font-size: 22px;
  line-height: 1.3;
  color: var(--lvvr-creme);
  overflow-wrap: anywhere;
}
.lvvr .lvvr-aucun-texte { margin: 0; color: var(--lvvr-doux); font-size: 15px; line-height: 1.5; max-width: 60ch; }
.lvvr .lvvr-contact { margin: 22px 0 0; color: var(--lvvr-doux); font-size: 14.5px; line-height: 1.5; }
.lvvr p { line-height: 1.5; }

/* Liste complete : outils */
.lvvr-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 14px; }
.lvvr .lvvr-lien {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lvvr-or);
  font-size: 13px;
  font-family: var(--lvvr-texte);
  letter-spacing: .04em;
  text-transform: none;
  text-decoration: underline;
}
.lvvr .lvvr-retour { font-size: 14.5px; text-decoration: none; }
.lvvr .lvvr-tri {
  height: 36px;
  margin: 0 0 0 auto;
  padding: 0 30px 0 10px;
  border: 1px solid var(--lvvr-or-bord);
  border-radius: 4px;
  background: var(--lvvr-nuit);
  color: var(--lvvr-creme);
  font-family: var(--lvvr-texte);
  font-size: 14px;
}
.lvvr-dispo { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--lvvr-creme); font-size: 14px; cursor: pointer; }
.lvvr-dispo input { accent-color: var(--lvvr-or); width: 16px; height: 16px; margin: 0; }
.lvvr-filtres { margin: 0 0 18px; }
.lvvr-filtres .lvvr-puce { padding: 6px 12px; font-size: 13.5px; }

/* Focus clavier */
.lvvr a:focus-visible,
.lvvr button:focus-visible,
.lvvr select:focus-visible,
.lvvr input[type="checkbox"]:focus-visible { outline: 2px solid var(--lvvr-or); outline-offset: 2px; }

/* Page figee sous le panneau */
html.lvvr-ouvert, html.lvvr-ouvert body { overflow: hidden !important; }

/* Telephone : plein ecran */
@media (max-width: 767px) {
  .lvvr-boite {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    animation: none;
  }
  .lvvr-barre { padding: 8px 8px 8px 14px; }
  .lvvr .lvvr-champ { font-size: 17px; }
  .lvvr-fermer-ordi { display: none; }
  .lvvr-fermer-tel { display: inline; }
  .lvvr-fermer { color: var(--lvvr-or); }
  .lvvr-corps { padding: 14px 14px 28px; }
  .lvvr-grille { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lvvr-puces-colonne { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .lvvr-puces-colonne .lvvr-puce { border-color: var(--lvvr-or-bord); border-radius: 999px; padding: 7px 12px; }
  .lvvr-cote { display: flex; flex-direction: column; gap: 16px; }
  .lvvr-cote .lvvr-section + .lvvr-section { margin-top: 0; }
  .lvvr .lvvr-produit { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 8px 4px; }
  .lvvr-vignette { width: 56px; height: 56px; }
  .lvvr-produit-nom { font-size: 15px; }
  .lvvr .lvvr-tri { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lvvr-boite { animation: none; }
  .lvvr .lvvr-puce, .lvvr .lvvr-produit, .lvvr .lvvr-tout { transition: none; }
}

/* L ancienne liste du theme ne doit plus apparaitre, une fois notre script
   en place (sans lui, rien ne change). */
html.lvvr-pret .searchbar-autocomplete,
html.lvvr-pret #header #search_widget #search_results { display: none !important; }
