/* Page d'accueil : recherche et carte. */

.accueil__tete { margin-bottom: 18px; }
.accueil__tete h1 { font-size: clamp(1.375rem, 3.4vw, 1.75rem); }
.accueil__tete p { margin-top: 5px; max-width: 68ch; color: var(--encre-2); font-size: .9375rem; }

.commandes {
  display: grid; gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
}
@media (max-width: 640px) { .commandes { grid-template-columns: minmax(0, 1fr); } }

.bouton-ici {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 15px; font: inherit; font-size: .875rem; color: var(--encre);
  background: var(--carte); border: 1px solid var(--bord);
  border-radius: var(--rayon); box-shadow: var(--ombre);
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.bouton-ici:hover { border-color: #cdd3cd; }
.bouton-ici[data-occupe="1"] { color: var(--encre-3); cursor: progress; }

.onglets--accueil { margin-bottom: 16px; }

/* La carte et la liste : côte à côte sur grand écran, empilées sinon. */
.atelier {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}
@media (max-width: 1040px) { .atelier { grid-template-columns: minmax(0, 1fr); } }

.carte-cadre { position: relative; overflow: hidden; padding: 0; }
#carte { height: min(68vh, 620px); min-height: 380px; background: #e8eae5; }
@media (max-width: 1040px) { #carte { height: 52vh; } }

/* Leaflet impose ses propres styles : on les ramène dans le système. */
.leaflet-container { font: inherit; background: #e8eae5; }
.leaflet-control-zoom a {
  color: var(--encre) !important; background: var(--carte) !important;
  border-color: var(--bord) !important;
}
.leaflet-control-zoom a:hover { background: #f4f5f2 !important; }
.leaflet-control-attribution {
  background: rgba(255, 255, 255, .86) !important;
  color: var(--encre-3) !important; font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--encre-2) !important; }
.leaflet-popup-content-wrapper {
  border-radius: var(--rayon-s); box-shadow: var(--ombre-haute);
  border: 1px solid var(--bord);
}
.leaflet-popup-content { margin: 11px 13px; font: inherit; }
.leaflet-popup-tip { border: 1px solid var(--bord); }

.infobulle__nom { font-weight: 600; font-size: .9375rem; }
.infobulle__lieu { color: var(--encre-2); font-size: .8125rem; margin-top: 1px; }
.infobulle__prix { margin-top: 7px; font-size: 1.125rem; font-weight: 600; }
.infobulle__prix small { font-size: .75rem; font-weight: 400; color: var(--encre-2); }
.infobulle a { display: inline-block; margin-top: 7px; font-size: .875rem; font-weight: 600; }

/* Légende posée sur la carte : deux pôles, et un cercle creux au milieu. */
.legende-carte {
  position: absolute; z-index: 400; left: 10px; bottom: 10px;
  padding: 9px 11px; background: rgba(255, 255, 255, .94);
  border: 1px solid var(--bord); border-radius: var(--rayon-s);
  box-shadow: var(--ombre); font-size: .75rem; color: var(--encre-2);
  line-height: 1.7;
}
.legende-carte strong { display: block; color: var(--encre); font-size: .75rem; margin-bottom: 3px; }
.legende-carte span { display: flex; align-items: center; gap: 7px; }
.legende-carte i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.legende-carte .pastille--moins { background: var(--moins-cher); }
.legende-carte .pastille--plus { background: var(--plus-cher); }
.legende-carte .pastille--moyen { background: var(--carte); border: 2px solid var(--reference); }

/* ------------------------------------------------------------- résultats */

.resultats { display: flex; flex-direction: column; max-height: min(68vh, 620px); }
@media (max-width: 1040px) { .resultats { max-height: none; } }

.resultats__liste { overflow: auto; }
.resultats__liste ol { margin: 0; padding: 0; list-style: none; }

.ligne-station {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px; align-items: baseline;
  width: 100%; padding: 11px 18px; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--grille);
  font: inherit; color: inherit; cursor: pointer;
  transition: background .12s;
}
.ligne-station:hover, .ligne-station:focus-visible { background: #f7f8f5; }
.ligne-station__nom { font-weight: 600; font-size: .875rem; }
.ligne-station__lieu { grid-column: 1; color: var(--encre-3); font-size: .75rem; }
.ligne-station__prix { grid-row: 1; grid-column: 2; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.ligne-station__ecart { grid-row: 2; grid-column: 2; font-size: .75rem; white-space: nowrap; text-align: right; }
.ecart--moins { color: #22517f; }
.ecart--plus { color: #8a4a12; }
.ecart--egal { color: var(--encre-3); }
