/* Formulaire de réservation (bloc « reservation_lavage »), repris de la maquette de Méline : préfixe « lef- ».
   Toutes les règles sont limitées à .lef : aucun effet sur la page, et la page n'agit pas sur le formulaire.
   Points de rupture : mobile ≤ 767px (base) · tablette 768–1023px · desktop ≥ 1024px. Chargé seulement par les
   pages qui portent le bloc (templates/page/show.html.twig). */

.lef {
  --lef-blue: #213067;
  --lef-green: #94ce0b;
  --lef-light: #edf4f8;
  --lef-orange: #ffa125;
  --lef-sky: #80bae9;
  --lef-white: #fff;
  --lef-font: "Open Sans", Arial, sans-serif;
  --lef-radius: 24px;
  --lef-radius-s: 16px;
  --lef-shadow: 0 8px 24px rgba(33, 48, 103, .14);
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  font: 400 15px/1.5 var(--lef-font);
  color: var(--lef-blue);
}
.lef *, .lef *::before, .lef *::after { box-sizing: border-box; }
.lef [hidden] { display: none !important; }
.lef p { margin: 0; }
.lef img { display: block; max-width: 100%; height: auto; }
.lef fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.lef legend { padding: 0; }
.lef :focus-visible { outline: 3px solid var(--lef-sky); outline-offset: 2px; }
.lef-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lef-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Carte */
.lef-card { position: relative; padding: 20px 16px 24px; border-radius: var(--lef-radius); background: var(--lef-white); box-shadow: var(--lef-shadow); }
@media (min-width: 768px) { .lef-card { padding: 28px 40px 32px; } }
@media (min-width: 1024px) { .lef-card { padding: 28px 56px 36px; } }

/* ---------- Barre d'étapes ---------- */
.lef-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 6px; padding: 0; list-style: none; }
.lef-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
/* Trait entre les pastilles */
.lef-steps__item + .lef-steps__item::before { content: ""; position: absolute; top: 18px; right: 50%; width: 100%; height: 2px; background: var(--lef-sky); z-index: 0; }
.lef-steps__item.is-done::before, .lef-steps__item.is-current::before { background: var(--lef-green); }
.lef-steps__dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 2px solid var(--lef-blue); border-radius: 50%; background: var(--lef-white); font-weight: 700; font-size: 14px; }
.lef-steps__item.is-current .lef-steps__dot, .lef-steps__item.is-done .lef-steps__dot { border-color: var(--lef-green); background: var(--lef-green); }
.lef-steps__label { display: none; font-size: 13px; font-weight: 700; }
.lef-steps__item.is-current .lef-steps__label { text-decoration: underline; text-decoration-color: var(--lef-green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lef-steps__mobile { margin-bottom: 18px; text-align: center; font-size: 13px; font-weight: 700; }
@media (min-width: 768px) {
  .lef-steps { margin-bottom: 24px; }
  .lef-steps__label { display: block; }
  .lef-steps__mobile { display: none; }
}

/* ---------- Titres ---------- */
.lef-title { display: block; margin: 0 0 12px; font: 800 20px/1.3 var(--lef-font); color: var(--lef-blue); }
.lef-title:focus { outline: none; }
.lef-subtitle { margin-bottom: 10px; font-weight: 700; font-size: 16px; }
.lef-label { margin-bottom: 6px; font-weight: 700; }
.lef-intro { margin: -4px 0 16px; font-size: 14px; }
.lef-hint { margin: -4px 0 12px; font-size: 13px; }
@media (min-width: 1024px) { .lef-title { font-size: 22px; } }

.lef-step { animation: lef-fade .2s ease-out; }
@keyframes lef-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lef-step { animation: none; } }
.lef .lef-group { margin-bottom: 24px; }
.lef .lef-subgroup { margin: 8px 0 4px; }

/* ---------- Cartes de choix (radio) ---------- */
.lef-choices { display: grid; gap: 12px; }
.lef-choices--profile { grid-template-columns: 1fr 1fr; }
.lef-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--lef-light); border-radius: var(--lef-radius-s); background: var(--lef-white); box-shadow: 0 4px 14px rgba(33, 48, 103, .10); cursor: pointer; transition: border-color .15s, background .15s; }
.lef-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lef-choice:hover { border-color: var(--lef-sky); }
.lef-choice:has(input:checked) { border-color: var(--lef-green); background: var(--lef-light); }
.lef-choice:has(input:focus-visible) { outline: 3px solid var(--lef-sky); outline-offset: 2px; }
.lef-choice--big { flex-direction: column; justify-content: center; min-height: 140px; text-align: center; }
.lef-choice__title { display: block; font-weight: 700; font-size: 16px; line-height: 1.25; }
.lef-choice__sub { display: block; font-size: 13px; }
.lef-media--profile { width: 64px; height: 64px; }
@media (min-width: 768px) {
  .lef-choices { gap: 24px; }
  .lef-choice { padding: 16px 20px; }
  .lef-choice--big { min-height: 200px; gap: 18px; }
  .lef-choice__title { font-size: 18px; }
  .lef-media--profile { width: 90px; height: 84px; }
}

/* ---------- Champs ---------- */
.lef-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.lef-field label { font-weight: 700; font-size: 14px; }
.lef input[type="text"], .lef input[type="tel"], .lef input[type="email"], .lef textarea {
  width: 100%; min-height: 48px; padding: 10px 18px; border: 2px solid var(--lef-green); border-radius: 999px;
  background: var(--lef-light); color: var(--lef-blue); font: 400 16px/1.3 var(--lef-font); /* 16px : évite le zoom automatique sur iPhone */
}
.lef textarea { min-height: 96px; border-radius: var(--lef-radius-s); resize: vertical; }
.lef input::placeholder, .lef textarea::placeholder { color: var(--lef-blue); opacity: .55; }
.lef input:focus, .lef textarea:focus { outline: none; border-color: var(--lef-blue); box-shadow: 0 0 0 3px var(--lef-sky); }
.lef [aria-invalid="true"] { border-color: var(--lef-orange) !important; }
.lef-address { display: grid; grid-template-columns: 88px 1fr; column-gap: 10px; }
.lef-address .lef-field { margin-bottom: 10px; }
.lef-field--postcode { grid-column: 1 / 2; }
.lef-field--postcode input { padding-inline: 12px; }
@media (min-width: 1024px) {
  .lef-address { grid-template-columns: 90px 2fr 110px 1.2fr; column-gap: 12px; }
  .lef-field--postcode { grid-column: auto; }
}

/* Messages d'erreur : texte bleu avec repère orange (lisible, contraste AA) */
.lef-error { display: flex; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--lef-blue); }
.lef-error::before { content: "!"; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--lef-orange); color: var(--lef-white); font-size: 12px; line-height: 18px; text-align: center; }
.lef-field .lef-error { margin-top: 2px; }
.lef-error--submit { justify-content: center; margin-top: 12px; }

/* ---------- Bacs ---------- */
.lef-flows { display: grid; gap: 14px; }
@media (min-width: 768px) { .lef-flows { grid-template-columns: 1fr 1fr; gap: 20px; } }
.lef-flow { padding: 14px 14px 16px; border: 2px solid var(--lef-light); border-radius: var(--lef-radius-s); background: var(--lef-white); box-shadow: 0 4px 14px rgba(33, 48, 103, .10); }
.lef-flow__title { margin: 0 0 8px; font: 800 17px/1.3 var(--lef-font); text-align: center; }
.lef-bin { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--lef-light); }
.lef-media--bin { flex: 0 0 34px; height: 40px; }
.lef-bin__label { flex: 1; font-weight: 700; font-size: 14px; line-height: 1.25; }
.lef-bin__price { display: block; font-weight: 400; font-size: 13px; }
.lef-counter { display: flex; align-items: center; border: 2px solid var(--lef-green); border-radius: 999px; }
.lef-counter__btn { width: 44px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--lef-blue); font: 700 20px/1 var(--lef-font); cursor: pointer; }
.lef-counter__btn:disabled { opacity: .35; cursor: default; }
.lef-counter input { width: 34px; height: 40px; padding: 0; border: 0; background: none; color: var(--lef-blue); font: 700 16px/1 var(--lef-font); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.lef-counter input::-webkit-inner-spin-button, .lef-counter input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Jours de collecte : une ligne de 6 pastilles (actives seulement si au moins un bac) */
.lef .lef-days { margin-top: 10px; transition: opacity .15s; }
.lef-days:disabled { opacity: .45; }
.lef-days legend { margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.lef-days__list { display: flex; justify-content: space-between; gap: 4px; }
.lef-days__list label { position: relative; cursor: pointer; }
.lef-days__list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lef-days__list span[aria-hidden] { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--lef-blue); border-radius: 50%; background: var(--lef-white); font-weight: 700; font-size: 14px; transition: background .15s, border-color .15s; }
.lef-days__list input:checked + span { border-color: var(--lef-green); background: var(--lef-green); }
.lef-days__list input:focus-visible + span { outline: 3px solid var(--lef-sky); outline-offset: 2px; }
.lef-days:disabled label { cursor: default; }
@media (max-width: 359px) { .lef-days__list span[aria-hidden] { width: 38px; height: 38px; } }

/* Total */
.lef-total { margin: 4px 0 24px; padding: 14px 18px; border: 2px solid var(--lef-blue); border-radius: var(--lef-radius-s); background: var(--lef-light); }
.lef-total:empty { display: none; }
.lef-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.lef-row__value { font-weight: 700; white-space: nowrap; text-align: right; }
.lef-row--head { font-weight: 800; }
.lef-row--sum { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--lef-blue); font-weight: 800; }
.lef-row--grand { font-size: 18px; font-weight: 800; }

/* ---------- Récapitulatif ---------- */
.lef-recap { padding: 8px 16px 12px; border: 2px solid var(--lef-blue); border-radius: var(--lef-radius-s); background: var(--lef-light); }
.lef-recap__item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid rgba(33, 48, 103, .15); }
.lef-recap__item:last-child { border-bottom: 0; }
.lef-recap__label { flex: 1 0 calc(100% - 44px); order: 1; font-size: 13px; }
.lef-recap__value { flex: 1 0 100%; order: 3; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.lef-edit { order: 2; flex: 0 0 36px; height: 36px; margin: -6px -6px -6px 0; border: 0; border-radius: 50%; background: none; color: var(--lef-blue); font-size: 18px; line-height: 1; cursor: pointer; }
.lef-edit:hover { background: var(--lef-white); }
.lef-recap__notes { margin-top: 12px; font-size: 13px; }
@media (min-width: 768px) {
  .lef-recap { padding: 10px 24px 14px; }
  .lef-recap__item { flex-wrap: nowrap; }
  .lef-recap__label { flex: 0 0 40%; font-size: 15px; }
  .lef-recap__value { flex: 1; order: 2; text-align: right; }
  .lef-edit { order: 3; }
}

/* ---------- Emplacements légaux ---------- */
.lef-legal { display: grid; gap: 10px; margin-top: 18px; font-size: 13px; }
.lef-legal a { color: var(--lef-blue); font-weight: 700; }
.lef-legal__text, .lef-legal__gdpr { padding: 8px 12px; border-left: 3px solid var(--lef-sky); background: var(--lef-light); }
.lef-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 4px 0; cursor: pointer; }
.lef-check input { flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--lef-blue); cursor: pointer; }

/* ---------- Boutons (identiques aux CTA de la page) ---------- */
.lef-actions { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-top: 8px; }
.lef-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 32px; border: 2px solid var(--lef-orange); border-radius: 999px; background: var(--lef-orange); color: var(--lef-white); font: 700 16px/1.2 var(--lef-font); text-align: center; cursor: pointer; transition: filter .15s; }
.lef-btn:hover { filter: brightness(1.06); }
.lef-btn:disabled { opacity: .6; cursor: wait; }
.lef-btn--ghost { border-color: var(--lef-blue); background: var(--lef-white); color: var(--lef-blue); }
.lef-back { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--lef-blue); font: 700 15px/1 var(--lef-font); cursor: pointer; }
.lef-back:hover { text-decoration: underline; }
.lef-actions__main { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.lef-reassure { font-size: 13px; text-align: center; }
@media (min-width: 768px) {
  .lef-actions { flex-direction: row; justify-content: space-between; align-items: center; }
  .lef-actions:not(:has(.lef-back)) { justify-content: flex-end; }
  .lef-actions--final { align-items: flex-start; }
  .lef-actions__main { align-items: flex-end; }
  .lef-reassure { text-align: right; }
}

/* ---------- Écrans de fin ---------- */
.lef-screen { padding: 24px 0 8px; text-align: center; }
.lef-screen--done { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lef-media--check { width: 120px; height: 120px; margin-bottom: 8px; }
.lef-done__title { margin: 0; font: 800 24px/1.3 var(--lef-font); color: var(--lef-blue); }
.lef-done__title:focus { outline: none; }
.lef-done__thanks { font-size: 16px; font-weight: 700; }
.lef-screen--done .lef-media--logo { width: 200px; height: 51px; margin-top: 16px; }
@media (min-width: 768px) { .lef-done__title { font-size: 26px; } }

/* Visuels : cadre à taille fixe, l'image s'y adapte */
.lef-media { position: relative; display: block; }
.lef-media > img { width: 100%; height: 100%; object-fit: contain; }

/* Adresse : autocomplétion BAN (liste sous le champ « rue ») */
.lef-field--search { position: relative; }
.lef-link { align-self: flex-start; margin: -6px 0 12px; padding: 4px 0; border: 0; background: none; color: var(--lef-blue); font: 600 13px/1.3 var(--lef-font); text-decoration: underline; cursor: pointer; }
.lef-link:hover { text-decoration-thickness: 2px; }
.lef-link[hidden] { display: none; }
.lef-suggest { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; border: 2px solid var(--lef-green); border-radius: var(--lef-radius-s); background: var(--lef-white); box-shadow: var(--lef-shadow); }
.lef-suggest li { padding: 8px 12px; border-radius: 12px; font-size: 14px; cursor: pointer; }
.lef-suggest li[aria-selected="true"], .lef-suggest li:hover { background: var(--lef-light); }
.lef-hint a, .lef-legal a { color: var(--lef-blue); }

/* Texte riche des mentions légales et de l'introduction */
.lef-legal__text > * + *, .lef-legal__gdpr > * + * { margin-top: 6px; }
.lef-legal__text p, .lef-legal__gdpr p { margin: 0; }
.lef-check span a { font-weight: 700; }

/* Montant corrigé par le serveur avant la redirection vers le paiement */
.lef-notice { display: grid; gap: 12px; justify-items: center; margin-top: 12px; padding: 14px 18px; border: 2px solid var(--lef-green); border-radius: var(--lef-radius-s); background: var(--lef-light); text-align: center; }

/* Hors zone : champ e-mail pour être prévenu */
.lef-outzone { display: grid; gap: 12px; justify-items: center; }
.lef-outzone .lef-field { width: 100%; max-width: 420px; text-align: left; }
.lef-outzone__tel { font-weight: 700; }
.lef-outzone__tel a { color: var(--lef-blue); }

/* Intro du bloc : texte de la section, au-dessus de la carte */
.lef-intro-bloc { max-width: 880px; margin: 0 auto 28px; text-align: center; }

/* Écrans de fin : texte enrichi saisi par Méline (titre en h3, paragraphes) */
.lef-screen:focus { outline: none; }
.lef-done h3 { margin: 0 0 8px; font: 800 24px/1.3 var(--lef-font); color: var(--lef-blue); }
.lef-done p { margin: 0 0 8px; }
.lef-done p strong { font-size: 16px; }
.lef-done a { color: var(--lef-blue); font-weight: 700; }
@media (min-width: 768px) { .lef-done h3 { font-size: 26px; } }

/* Formulaire fermé (RESERVATION_OUVERTE=0) : carte grisée et inerte, voile « Ouverture bientôt » par-dessus. */
.lef--ferme { position: relative; }
.lef--ferme .lef-card { opacity: .4; filter: grayscale(.7); pointer-events: none; user-select: none; }
.lef-ferme { position: absolute; z-index: 2; top: 96px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); padding: 28px 24px; border-radius: var(--lef-radius); background: var(--lef-blue); color: var(--lef-white); text-align: center; box-shadow: var(--lef-shadow); }
.lef-ferme p + p { margin-top: 8px; }
.lef-ferme__titre { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--lef-green); }
.lef-ferme a { color: var(--lef-white); font-weight: 600; }
