/* ═══════════════════════════════════════════════════════════════
   PARCOURS GUIDÉ EN ÉTAPES — css/etapes.css
   Service → Départ → Arrivée → Prix

   Intention : un seul écran visible à la fois, aucune nécessité
   de faire défiler. Chaque étape pose une seule question et
   attend une réponse avant de continuer.
   ═══════════════════════════════════════════════════════════════ */

.et-conteneur { position: relative; }

/* Un écran d'étape : masqué par défaut, seul l'actif s'affiche */
.et-ecran { display: none; }
.et-ecran.actif { display: block; animation: etEntre .22s ease-out; }
@keyframes etEntre {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .et-ecran.actif { animation: none; }
}

/* ── Barre de progression : où en suis-je ? ── */
.et-progres {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 1.1rem;
}
.et-pas {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--sv-trait, #e5e1ea);
  transition: background .25s;
}
.et-pas.fait   { background: var(--sv-depart, #0d8a5f); }
.et-pas.actuel { background: var(--sv-bleu, #1800ad); }

.et-compteur {
  font-size: .72rem; font-weight: 600;
  color: var(--sv-encre-3, #86808f);
  margin-bottom: .3rem;
}

/* ── Question posée par l'étape ── */
.et-question {
  font-size: 1.12rem; font-weight: 700;
  line-height: 1.3; letter-spacing: -.015em;
  margin: 0 0 .3rem;
}
.et-aide {
  font-size: .82rem; color: var(--sv-encre-3, #86808f);
  margin: 0 0 1rem; line-height: 1.5;
}

/* ── Choix du service : grandes cartes tactiles (étape 1) ── */
.et-choix { display: grid; gap: .55rem; }
.et-choix-item {
  display: flex; align-items: center; gap: .85rem;
  width: 100%; text-align: left;
  padding: .95rem 1rem;
  border: 1.5px solid var(--sv-trait, #e5e1ea);
  border-radius: 14px;
  background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
  min-height: 68px;
}
.et-choix-item:hover { border-color: var(--sv-encre-3, #86808f); }
.et-choix-item.actif {
  border-color: var(--sv-bleu, #1800ad);
  background: var(--sv-bleu-pale, #eeebff);
  box-shadow: inset 0 0 0 1px var(--sv-bleu, #1800ad);
}
.et-choix-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sv-bleu-pale, #eeebff);
  color: var(--sv-bleu, #1800ad);
  flex-shrink: 0;
}
.et-choix-item.actif .et-choix-ico {
  background: var(--sv-bleu, #1800ad); color: #fff;
}
.et-choix-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.et-choix-nom  { display: block; font-size: .95rem; font-weight: 700; line-height: 1.25; }
.et-choix-desc { display: block; font-size: .76rem; color: var(--sv-encre-3, #86808f); margin-top: .15rem; line-height: 1.35; }
.et-choix-fleche { color: var(--sv-bleu, #1800ad); flex-shrink: 0; width: 20px; display: flex; align-items: center; justify-content: center; }

/* ── Navigation entre étapes ── */
.et-nav {
  display: flex; gap: .6rem; align-items: center;
  margin-top: 1.1rem;
}
.et-retour {
  min-height: 46px; padding: 0 1rem;
  border: 1.5px solid var(--sv-trait, #e5e1ea);
  border-radius: 10px; background: #fff;
  color: var(--sv-encre-2, #514c63);
  font-size: .88rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
  flex-shrink: 0;
}
.et-retour:hover { border-color: var(--sv-encre-3, #86808f); }
.et-suivant {
  flex: 1; min-height: 46px;
  border: none; border-radius: 10px;
  background: var(--sv-bleu, #1800ad); color: #fff;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.et-suivant:hover:not(:disabled) { background: var(--sv-bleu-fonce, #10007a); }
.et-suivant:disabled { opacity: .45; cursor: not-allowed; }

/* ── Récapitulatif du trajet, visible aux étapes suivantes ── */
.et-recap {
  border: 1px solid var(--sv-trait, #e5e1ea);
  border-radius: 12px;
  padding: .7rem .85rem;
  margin-bottom: 1rem;
  background: var(--sv-fond, #faf9fb);
  font-size: .82rem;
}
.et-recap-ligne {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .22rem 0;
}
.et-recap-point {
  width: 9px; height: 9px; border-radius: 50%;
  margin-top: .35rem; flex-shrink: 0;
}
.et-recap-point.a { background: var(--sv-depart, #0d8a5f); }
.et-recap-point.b { background: var(--sv-arrivee, #c8442f); }
.et-recap-txt {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--sv-encre, #1a1725); font-weight: 500;
}
.et-recap-modif {
  background: none; border: none; padding: 0 0 0 .4rem;
  color: var(--sv-bleu, #1800ad);
  font-size: .76rem; font-weight: 700; cursor: pointer;
  flex-shrink: 0;
}

/* ── Message de validation ── */
.et-erreur {
  display: none;
  margin-top: .6rem; padding: .6rem .8rem;
  border-radius: 9px;
  background: #fdeaea; color: #b3341f;
  font-size: .8rem; font-weight: 600;
}
.et-erreur.visible { display: block; }

@media (max-width: 380px) {
  .et-choix-item { padding: .8rem .8rem; min-height: 62px; }
  .et-choix-ico { width: 38px; height: 38px; }
  .et-choix-nom { font-size: .88rem; }
}
