/* ============================================================
   LCTP — Tunnel demande de devis (6 étapes)
   Responsive mobile-first. DA noire/or, sobre, crédible.
   ============================================================ */

.tunnel-section {
  padding-top: 32px;
  padding-bottom: 64px;
}

.tunnel {
  background: #151719;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 28px 32px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.25);
}
@media (max-width: 640px) {
  .tunnel { padding: 20px 16px 24px; border-radius: 10px; }
}

/* ─── Header tunnel ─────────────────────────────────────── */
.tunnel-header { margin-bottom: 24px; }
.tunnel-eyebrow {
  color: #d4a853;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 4px;
}
.tunnel-title {
  color: #f3f3f3;
  font-size: 1.5rem;
  margin: 0 0 14px;
  line-height: 1.25;
}
@media (min-width: 640px) { .tunnel-title { font-size: 1.75rem; } }

/* ─── Bande de réassurance ──────────────────────────────── */
.tunnel-reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  background: #1a1c1e;
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 8px;
  margin-bottom: 18px;
}
.tunnel-reassure span {
  position: relative;
  color: #cfd0d2;
  font-size: .8rem;
  padding-left: 20px;
  flex: 1 1 auto;
  min-width: 180px;
}
.tunnel-reassure span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #d4a853;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}
@media (max-width: 640px) {
  .tunnel-reassure span { font-size: .75rem; min-width: 0; flex: 1 1 100%; }
}

/* ─── Progression ──────────────────────────────────────── */
/* ─── Bandeau contextuel (selon ?type=) ─────────────────── */
.tunnel-context {
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(212,168,83,.08), rgba(212,168,83,.03));
  border: 1px solid rgba(212,168,83,.35);
  border-left: 3px solid #d4a853;
  border-radius: 8px;
}
.tunnel-context__kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d4a853;
  margin-bottom: 4px;
}
.tunnel-context__msg {
  margin: 0;
  color: #e4e4e4;
  font-size: .92rem;
  line-height: 1.45;
}
@media (max-width: 560px) {
  .tunnel-context { padding: 10px 12px; }
  .tunnel-context__msg { font-size: .88rem; }
}

.tunnel-progress { margin-top: 16px; }
.tunnel-progress__label {
  color: #cfd0d2;
  font-size: .82rem;
  margin-bottom: 8px;
}
.tunnel-progress__label strong { color: #d4a853; font-weight: 600; }
.tunnel-progress__bar {
  background: #23262a;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.tunnel-progress__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d4a853, #e8c547);
  border-radius: 999px;
  transition: width .35s ease;
}

/* ─── Étapes ──────────────────────────────────────────── */
.tunnel-step { display: none; animation: stepIn .25s ease; }
.tunnel-step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tunnel-step__legend {
  color: #8a8a8a;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 6px;
  font-weight: 600;
}
.tunnel-step__title {
  color: #f3f3f3;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.tunnel-step__subtitle {
  color: #9a9a9a;
  font-size: .88rem;
  margin: 0 0 20px;
}

/* ─── Cas de demande (étape 1) ────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
}
.case-card {
  display: block;
  background: #1a1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  text-align: left;
  position: relative;
}
.case-card:hover { border-color: rgba(212, 168, 83, 0.45); background: #1d1f22; }
.case-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.case-card__title {
  color: #f3f3f3;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  padding-left: 26px;
  position: relative;
}
.case-card__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border: 2px solid #4a4d52;
  border-radius: 50%;
  background: #0d0f10;
  transition: border-color .18s, background .18s;
}
.case-card.is-selected { border-color: #d4a853; background: #1e1a12; }
.case-card.is-selected .case-card__title::before {
  border-color: #d4a853;
  background: radial-gradient(circle, #d4a853 40%, #0d0f10 45%);
}
.case-card__desc {
  color: #9a9a9a;
  font-size: .85rem;
  margin: 0;
  padding-left: 26px;
  line-height: 1.45;
}

/* ─── Champs form ──────────────────────────────────────── */
.tunnel .form-group { margin-bottom: 14px; }
.tunnel .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .tunnel .form-row { grid-template-columns: 1fr 1fr; }
}
.tunnel label {
  display: block;
  color: #cfd0d2;
  font-size: .82rem;
  margin-bottom: 4px;
  font-weight: 500;
}
.tunnel label .req { color: #d4a853; margin-left: 2px; }
.tunnel input[type=text],
.tunnel input[type=tel],
.tunnel input[type=email],
.tunnel input[type=date],
.tunnel input[type=number],
.tunnel select,
.tunnel textarea {
  width: 100%;
  background: #0d0f10;
  border: 1px solid #2a2d31;
  color: #f3f3f3;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s;
}
.tunnel textarea { min-height: 90px; resize: vertical; }
.tunnel input:focus,
.tunnel select:focus,
.tunnel textarea:focus {
  outline: none;
  border-color: #d4a853;
}
.tunnel input.has-error,
.tunnel select.has-error,
.tunnel textarea.has-error { border-color: #e07a5f; }
.tunnel .field-error {
  color: #e07a5f;
  font-size: .78rem;
  margin-top: 4px;
  display: none;
}
.tunnel .field-error.is-visible { display: block; }
.tunnel .field-hint {
  color: #8a8a8a;
  font-size: .78rem;
  margin: 4px 0 0;
}

/* Radios / checkboxes sobres */
.tunnel .inline-choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tunnel .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #1a1c1e;
  border: 1px solid #2a2d31;
  border-radius: 999px;
  cursor: pointer;
  color: #cfd0d2;
  font-size: .85rem;
  transition: border-color .15s, background .15s, color .15s;
}
.tunnel .chip input { position: absolute; opacity: 0; pointer-events: none; }
.tunnel .chip.is-selected,
.tunnel .chip:has(input:checked) {
  background: #1e1a12;
  border-color: #d4a853;
  color: #d4a853;
}

/* Consent */
.tunnel .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #1a1c1e;
  border: 1px solid #2a2d31;
  border-radius: 8px;
  margin-top: 8px;
}
.tunnel .consent input { margin-top: 2px; flex-shrink: 0; }
.tunnel .consent span { color: #cfd0d2; font-size: .82rem; line-height: 1.45; }
.tunnel .consent a { color: #d4a853; text-decoration: underline; }

/* ─── Récap (étape 6) ──────────────────────────────────── */
.tunnel-recap {
  background: #1a1c1e;
  border: 1px solid #2a2d31;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.tunnel-recap__group { margin-bottom: 14px; }
.tunnel-recap__group:last-child { margin-bottom: 0; }
.tunnel-recap__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.tunnel-recap__title {
  color: #d4a853;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin: 0;
}
.tunnel-recap__edit {
  background: none;
  border: none;
  color: #8cb5e0;
  font-size: .78rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.tunnel-recap__edit:hover { color: #d4a853; }
.tunnel-recap dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: .86rem;
}
@media (min-width: 520px) {
  .tunnel-recap dl { grid-template-columns: 180px 1fr; gap: 4px 12px; }
}
.tunnel-recap dt { color: #8a8a8a; }
.tunnel-recap dd { color: #f3f3f3; margin: 0; }
.tunnel-recap dd.is-empty { color: #6a6a6a; font-style: italic; }

/* ─── Navigation tunnel ────────────────────────────────── */
.tunnel-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.tunnel-nav .spacer { flex: 1; }
.tunnel-nav .btn { min-width: 130px; }
@media (max-width: 520px) {
  .tunnel-nav { flex-direction: column-reverse; }
  .tunnel-nav .btn { width: 100%; min-width: 0; }
  .tunnel-nav .spacer { display: none; }
}

/* Honeypot */
.tunnel-hp { position: absolute; left: -10000px; top: -10000px; width: 0; height: 0; overflow: hidden; }

/* Feedback zone */
.tunnel-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: .88rem;
  display: none;
}
.tunnel-feedback.is-visible { display: block; }
.tunnel-feedback.is-success {
  background: rgba(77, 196, 116, 0.1);
  border: 1px solid rgba(77, 196, 116, 0.3);
  color: #4dc474;
}
.tunnel-feedback.is-error {
  background: rgba(224, 122, 95, 0.1);
  border: 1px solid rgba(224, 122, 95, 0.3);
  color: #e07a5f;
}
