/* ================================================
   TUNNEL - MON PROJET IMMOBILIER
   Palette calquée sur le système de design existant
   (composants dupliqués depuis trouver-mon-lieu-ideal.css
   pour conserver la même identité graphique)
   ================================================ */

/* ---- Variables (alignées sur global-style + style.css) ---- */
:root {
  --mpi-navy:          #181457;   /* couleur texte principale du site */
  --mpi-muted:         #797CA4;   /* texte secondaire du site */
  --mpi-border:        #D7D8E4;   /* bordure du site */
  --mpi-bg-light:      #EBEBF1;   /* fond inactif chips du site */
  --mpi-page-bg:       #f9f9fb;   /* fond page du site */
  --mpi-card-bg:       #FFFFFF;
  --mpi-accent:        #FF1C60;   /* rouge brand du site */
  --mpi-accent-light:  #fff0f4;
  --mpi-gradient:      linear-gradient(to right, #FF1C60 0%, #FE6A56 51%, #FF1C60 100%);
  --mpi-gradient-diag: linear-gradient(135deg, #FF1C60, #FE6A56);
  --mpi-card-shadow:   0px 10px 14px -8px rgb(185 182 196 / 50%);
  --mpi-radius:        16px;
  --mpi-radius-sm:     12px;
  --mpi-ease:          0.25s ease;

  /* Couleurs par catégorie — palette premium, distincte du tunnel "Trouver mon lieu idéal" */
  --mpi-cat1: #6C4BC2;  /* Projet — améthyste */
  --mpi-cat2: #A65B72;  /* Vous — bois de rose */
  --mpi-cat3: #1F8A70;  /* Financement — émeraude */
  --mpi-cat4: #2E6E86;  /* Services — pétrole */
}

/* ================================================
   PAGE LAYOUT — offset pour le header fixe
   ================================================ */

.tunnel-page-wrapper {
  background: var(--mpi-page-bg);
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 80px;
}

.tunnel-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================================================
   BARRE DE CATÉGORIES EN HAUT
   ================================================ */

.tunnel-cats-header {
  background: var(--mpi-card-bg);
  border-radius: var(--mpi-radius);
  padding: 16px 18px 12px;
  margin-bottom: 20px;
  overflow: visible;
  border: 1px solid #d7d8e4;
}

.tunnel-cats-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tunnel-cats-row::-webkit-scrollbar { display: none; }

.tunnel-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 42px;
  cursor: default;
}

.tunnel-cat-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--mpi-bg-light);
  transition: all 0.3s ease;
  flex-shrink: 0;
  cursor: default;
}

.tunnel-cat-name {
  font-size: 10px;
  color: var(--mpi-muted);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  cursor: default;
}

/* Cat 1 done */
.tunnel-cat-item[data-cat="1"].cat-done .tunnel-cat-dot { background: rgba(108, 75, 194, .10); }
.tunnel-cat-item[data-cat="1"].cat-done .tunnel-cat-name { color: var(--mpi-cat1); font-weight: 600; }

/* Cat 2 done */
.tunnel-cat-item[data-cat="2"].cat-done .tunnel-cat-dot { background: rgba(166, 91, 114, .10); }
.tunnel-cat-item[data-cat="2"].cat-done .tunnel-cat-name { color: var(--mpi-cat2); font-weight: 600; }

/* Cat 3 done */
.tunnel-cat-item[data-cat="3"].cat-done .tunnel-cat-dot { background: rgba(31, 138, 112, .10); }
.tunnel-cat-item[data-cat="3"].cat-done .tunnel-cat-name { color: var(--mpi-cat3); font-weight: 600; }

/* Cat 4 done */
.tunnel-cat-item[data-cat="4"].cat-done .tunnel-cat-dot { background: rgba(46, 110, 134, .12); }
.tunnel-cat-item[data-cat="4"].cat-done .tunnel-cat-name { color: var(--mpi-cat4); font-weight: 600; }

/* ---- Catégorie active (dots active par catégorie) ---- */
.tunnel-cat-item[data-cat="1"].cat-active .tunnel-cat-dot { background: var(--mpi-cat1); }
.tunnel-cat-item[data-cat="1"].cat-active .tunnel-cat-name { color: var(--mpi-cat1); font-weight: 700; }

.tunnel-cat-item[data-cat="2"].cat-active .tunnel-cat-dot { background: var(--mpi-cat2); }
.tunnel-cat-item[data-cat="2"].cat-active .tunnel-cat-name { color: var(--mpi-cat2); font-weight: 700; }

.tunnel-cat-item[data-cat="3"].cat-active .tunnel-cat-dot { background: var(--mpi-cat3); }
.tunnel-cat-item[data-cat="3"].cat-active .tunnel-cat-name { color: var(--mpi-cat3); font-weight: 700; }

.tunnel-cat-item[data-cat="4"].cat-active .tunnel-cat-dot { background: var(--mpi-cat4); }
.tunnel-cat-item[data-cat="4"].cat-active .tunnel-cat-name { color: var(--mpi-cat4); font-weight: 700; }

/* ================================================
   BARRE DE PROGRESSION SEGMENTÉE
   ================================================ */

.tunnel-progress-track {
  display: flex;
  gap: 3px;
  height: 5px;
  align-items: stretch;
}

.tunnel-progress-seg {
  border-radius: 100px;
  overflow: hidden;
  background: #D7D8E4;
  position: relative;
  flex: 1;
}

.tunnel-progress-seg-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  transition: width .4s ease;
}

.tunnel-progress-seg[data-cat="1"] .tunnel-progress-seg-fill { background: var(--mpi-cat1); }
.tunnel-progress-seg[data-cat="2"] .tunnel-progress-seg-fill { background: var(--mpi-cat2); }
.tunnel-progress-seg[data-cat="3"] .tunnel-progress-seg-fill { background: var(--mpi-cat3); }
.tunnel-progress-seg[data-cat="4"] .tunnel-progress-seg-fill { background: var(--mpi-cat4); }

/* Catégorie ignorée (ex : Financement pour une Location) : remplissage neutre,
   pas la couleur de marque, pour ne pas laisser croire qu'elle a été complétée. */
.tunnel-progress-seg.seg-skipped .tunnel-progress-seg-fill { background: var(--mpi-border) !important; }

/* ================================================
   STEP PANELS
   ================================================ */

.tunnel-step-panel { display: none; }

.tunnel-step-panel.step-panel-active {
  display: block;
  animation: mpiIn 0.32s ease;
}
.tunnel-step-panel.step-panel-back {
  animation: mpiInBack 0.32s ease;
}

@keyframes mpiIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes mpiInBack {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ================================================
   STEP-CAT-TAG par catégorie
   ================================================ */

.tunnel-step-panel[data-cat="1"] .step-cat-tag { background: rgba(108, 75, 194, .08); color: #6C4BC2; }
.tunnel-step-panel[data-cat="2"] .step-cat-tag { background: rgba(166, 91, 114, .08); color: #A65B72; }
.tunnel-step-panel[data-cat="3"] .step-cat-tag { background: rgba(31, 138, 112, .08); color: #1F8A70; }
.tunnel-step-panel[data-cat="4"] .step-cat-tag { background: rgba(46, 110, 134, .10); color: #2E6E86; }

/* ================================================
   ÉCRAN INTRO CATÉGORIE
   ================================================ */

.intro-card {
  background: var(--mpi-card-bg);
  border-radius: var(--mpi-radius);
  overflow: hidden;
  box-shadow: var(--mpi-card-shadow);
  margin-bottom: 20px;
}

.intro-card-header {
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
}

/* Gradients par catégorie */
.intro-card-header.intro-cat-1 { background: linear-gradient(135deg, #6C4BC2, #9B85E0); }
.intro-card-header.intro-cat-2 { background: linear-gradient(135deg, #A65B72, #C98CA0); }
.intro-card-header.intro-cat-3 { background: linear-gradient(135deg, #1F8A70, #3FBFA0); }
.intro-card-header.intro-cat-4 { background: linear-gradient(135deg, #2E6E86, #4F9BB5); }

.intro-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,.22);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.intro-card-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.intro-card-emoji {
  font-size: 44px;
  display: block;
  line-height: 1;
}

.intro-card-body {
  padding: 26px 28px 32px;
  text-align: center;
}

.intro-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--mpi-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.intro-card-desc {
  font-size: 14px;
  color: var(--mpi-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* Bouton CTA intro — calqué sur .header-buttons-red */
.btn-intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-image: var(--mpi-gradient);
  background-size: 200% auto;
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .5s ease;
  margin-bottom: 14px;
  line-height: 1.2;
}
.btn-intro-cta:hover {
  background-position: right center;
  color: #fff;
}

.btn-intro-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--mpi-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color var(--mpi-ease);
  text-decoration: underline;
}
.btn-intro-back:hover { color: var(--mpi-navy); }

/* ================================================
   ÉCRAN QUESTION — carte principale
   ================================================ */

.q-card {
  background: var(--mpi-card-bg);
  border-radius: var(--mpi-radius);
  padding: 24px 22px 22px;
  box-shadow: var(--mpi-card-shadow);
  margin-bottom: 4px;
}

/* Méta en haut (catégorie + compteur) */
.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 6px;
}

.step-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--mpi-accent-light);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--mpi-accent);
}
.step-cat-tag .cat-emoji { font-size: 13px; }

.step-q-counter {
  font-size: 11px;
  font-weight: 500;
  color: var(--mpi-muted);
  background: var(--mpi-bg-light);
  padding: 4px 10px;
  border-radius: 100px;
}
.step-q-counter strong { color: var(--mpi-navy); font-weight: 700; }

/* Titre & sous-titre */
.q-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--mpi-navy);
  margin-bottom: 5px;
  line-height: 1.3;
}

.q-sub {
  font-size: 13px;
  color: var(--mpi-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ================================================
   BIG CHOICE CARDS
   ================================================ */

.big-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  justify-items: stretch;
}
.big-grid.col-2 { grid-template-columns: repeat(2, 1fr); width: 100%; }
.big-grid.col-3 { grid-template-columns: repeat(3, 1fr); width: 100%; }

.big-choice {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
}
.big-choice input {
  position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
}
.big-choice-lbl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 10px 16px;
  border: 1px solid var(--mpi-border);
  border-radius: var(--mpi-radius);
  background: #fff;
  cursor: pointer;
  transition: all var(--mpi-ease);
  min-height: 120px;
  text-align: center;
  box-shadow: 0px 4px 8px -4px rgb(185 182 196 / 40%);
}
.big-choice-lbl:hover {
  border-color: var(--mpi-accent);
  background: var(--mpi-accent-light);
  box-shadow: 0 4px 14px rgba(255, 28, 96, .12);
}
.big-choice input:checked + .big-choice-lbl {
  border-color: var(--mpi-accent);
  background: var(--mpi-accent-light);
  box-shadow: 0 4px 14px rgba(255, 28, 96, .15);
}
.big-choice input:checked + .big-choice-lbl::after {
  content: "✓";
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  background: var(--mpi-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-emoji { font-size: 36px; margin-bottom: 8px; display: block; }
.bc-text  { font-size: 14px; font-weight: 700; color: var(--mpi-navy); }
.bc-desc  { font-size: 11px; color: var(--mpi-muted); margin-top: 3px; }

/* ================================================
   ICON CHOICE CARDS
   ================================================ */

.icon-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  justify-items: stretch;
}
.icon-grid.col-3 { grid-template-columns: repeat(3, 1fr); width: 100%;}
.icon-grid.col-2 { grid-template-columns: repeat(2, 1fr); width: 100%; }

.icon-choice { position: relative; display: block; width: 100%; }
.icon-choice input {
  position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
}
.icon-choice-lbl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 6px;
  border: 1px solid var(--mpi-border);
  border-radius: var(--mpi-radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all var(--mpi-ease);
  text-align: center;
  min-height: 80px;
  box-shadow: 0px 4px 8px -4px rgb(185 182 196 / 40%);
}
.icon-choice-lbl:hover { background: var(--mpi-accent-light); }
.icon-choice input:checked + .icon-choice-lbl {
  border-color: var(--mpi-accent);
  background: var(--mpi-accent-light);
}

.ic-img   { width: 32px; height: 32px; object-fit: contain; margin-bottom: 6px; }
.ic-emoji { font-size: 24px; display: block; margin-bottom: 6px; }
.ic-text  { font-size: 12px; font-weight: 600; color: var(--mpi-navy); line-height: 1.3; }

/* ================================================
   CHIPS / PILLS
   ================================================ */

.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
}
.chip-lbl {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--mpi-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mpi-muted);
  cursor: pointer;
  background: var(--mpi-bg-light);
  transition: all var(--mpi-ease);
  user-select: none;
  white-space: nowrap;
}
.chip-lbl:hover {
  border-color: var(--mpi-accent);
  color: var(--mpi-accent);
  background: var(--mpi-accent-light);
}
.chip input:checked + .chip-lbl {
  background: var(--mpi-accent);
  border-color: var(--mpi-accent);
  color: #fff;
  font-weight: 600;
}

/* ================================================
   CHOICE LIST — options radio ligne par ligne
   ================================================ */

.choice-list { display: flex; flex-direction: column; gap: 10px; }

.choice-row { position: relative; display: block; width: 100%; cursor: pointer; }
.choice-row input {
  position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
}
.choice-row-lbl {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--mpi-border);
  border-radius: var(--mpi-radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all var(--mpi-ease);
  box-shadow: 0px 4px 8px -4px rgb(185 182 196 / 40%);
}
.choice-row-lbl:hover {
  border-color: var(--mpi-accent);
  background: var(--mpi-accent-light);
}
.choice-row input:checked + .choice-row-lbl {
  border-color: var(--mpi-accent);
  background: var(--mpi-accent-light);
}
.choice-row-text { font-size: 14px; font-weight: 600; color: var(--mpi-navy); }
.choice-row-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--mpi-border);
  flex-shrink: 0;
  position: relative;
  transition: all var(--mpi-ease);
}
.choice-row input:checked + .choice-row-lbl .choice-row-check {
  background: var(--mpi-accent);
  border-color: var(--mpi-accent);
}
.choice-row input:checked + .choice-row-lbl .choice-row-check::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

/* ================================================
   ROOMS / COUNTER SELECTOR (pièces, enfants…)
   ================================================ */

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-items: stretch;
  gap: 8px;
}
.rooms-grid.col-4 { grid-template-columns: repeat(4, 1fr); width: unset; }

.room-opt {
  position: relative;
  display: block;
  width: 100%;
}
.room-opt input {
  position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
}
.room-lbl {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mpi-border);
  border-radius: var(--mpi-radius-sm);
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--mpi-navy);
  cursor: pointer;
  transition: all var(--mpi-ease);
  background: var(--mpi-bg-light);
  box-shadow: 0px 4px 8px -4px rgb(185 182 196 / 40%);
}
.room-lbl:hover {
  border-color: var(--mpi-accent);
  background: var(--mpi-accent-light);
  color: var(--mpi-accent);
}
.room-opt input:checked + .room-lbl {
  background: var(--mpi-accent);
  border-color: var(--mpi-accent);
  color: #fff;
}

/* ================================================
   BUDGET
   ================================================ */

.budget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.budget-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mpi-muted);
  margin-bottom: 6px;
  display: block;
}
.budget-input-wrap { position: relative; }
.budget-input-wrap input[type="number"] {
  width: 100%;
  border: 1px solid var(--mpi-border);
  border-radius: var(--mpi-radius-sm);
  padding: 12px 36px 12px 13px;
  font-size: 16px;
  font-weight: 700;
  color: var(--mpi-navy);
  background: #fff;
  outline: none;
  transition: border-color .2s;
  -moz-appearance: textfield;
}
.budget-input-wrap input[type="number"]:focus { border-color: var(--mpi-accent); }
.budget-input-wrap input::-webkit-inner-spin-button,
.budget-input-wrap input::-webkit-outer-spin-button { opacity: .5; }
.budget-currency {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--mpi-muted); font-size: 14px; pointer-events: none;
}

.budget-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.budget-preset {
  padding: 6px 12px;
  border: 1px solid var(--mpi-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mpi-muted);
  cursor: pointer;
  background: var(--mpi-bg-light);
  transition: all var(--mpi-ease);
}
.budget-preset:hover {
  border-color: var(--mpi-accent);
  color: var(--mpi-accent);
  background: var(--mpi-accent-light);
}

/* ================================================
   LOCALISATION (autocomplete simple & multi-tags)
   ================================================ */

.location-input-container { position: relative; }

/* Location tags (multi-sélection) */
.location-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.location-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  background: var(--mpi-accent-light);
  border: 1px solid var(--mpi-accent);
  border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--mpi-accent);
}
.tag-remove { cursor: pointer; font-size: 13px; font-weight: 700; opacity: .5; transition: opacity .2s; }
.tag-remove:hover { opacity: 1; }

/* Auto-complete dropdown */
.auto-complete-container {
  position: absolute;
  background: #fff;
  border: 1px solid var(--mpi-border);
  border-radius: var(--mpi-radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1050;
  width: 100%; left: 0; top: calc(100% + 3px);
  box-shadow: var(--mpi-card-shadow);
}
.auto-complete-container .ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--mpi-navy);
  cursor: pointer;
  border-bottom: 1px solid var(--mpi-border);
  transition: background .15s;
}
.auto-complete-container .ac-item:last-child { border-bottom: none; }
.auto-complete-container .ac-item:hover { background: var(--mpi-accent-light); color: var(--mpi-accent); }
.auto-complete-container .ac-item-name { flex: 1; font-weight: 500; }
.auto-complete-container .ac-item-type {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--mpi-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================================================
   NAVIGATION (boutons Retour / Continuer)
   ================================================ */

.tunnel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
}

.btn-tml-prev {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 20px;
  border: 1px solid var(--mpi-border);
  border-radius: 100px;
  background: #fff;
  color: var(--mpi-muted);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  box-shadow: 0px 2px 4px 0px rgb(185 182 196 / 70%);
  transition: all var(--mpi-ease);
  line-height: 1.2;
}
.btn-tml-prev:hover {
  background: var(--mpi-bg-light);
  color: var(--mpi-navy);
}

.btn-tml-next {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 24px;
  border: none;
  border-radius: 100px;
  background-image: var(--mpi-gradient);
  background-size: 200% auto;
  color: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0px 2px 7px 2px rgb(255 28 96 / 35%);
  transition: all .5s ease;
  line-height: 1.2;
}
.btn-tml-next:hover {
  background-position: right center;
  color: #fff;
}

.btn-tml-next.btn-launch {
  font-size: 15px;
  padding: 12px 30px;
  background-color: #181457 !important;
}
.btn-tml-next:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ================================================
   FORM CONTROL overrides Bootstrap
   ================================================ */

.tunnel-page-wrapper .form-control {
  border: 1px solid var(--mpi-border);
  border-radius: var(--mpi-radius-sm);
  padding: 10px 13px;
  font-size: 14px;
  color: var(--mpi-navy);
  background: #fff;
  transition: border-color .2s;
  width: 100%;
}
.tunnel-page-wrapper .form-control:focus {
  border-color: var(--mpi-accent);
  box-shadow: none;
}

/* ================================================
   INDICATEUR "RÉPONSE OBLIGATOIRE"
   ================================================ */

.q-required-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFF4F4;
  border: 1px solid #FFC9C9;
  color: #E23434;
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
  border-radius: 10px;
  margin: 0;
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  overflow: hidden;
  transition: all .25s ease;
}
.q-required-hint.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
  padding: 8px 14px;
  margin: 14px 0 0;
}

.q-card-shake { animation: mpiCardShake .4s ease; }
@keyframes mpiCardShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

.needs-answer { border-radius: 16px; animation: mpiNeedsAnswerPulse 1s ease 2; }
@keyframes mpiNeedsAnswerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 52, 52, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(226, 52, 52, .15); }
}

/* ================================================
   COULEURS DYNAMIQUES PAR CATÉGORIE
   ================================================ */

.tunnel-step-panel[data-cat="1"] { --cat-color: #6C4BC2; --cat-light: rgba(108, 75, 194, .08); --cat-shadow: rgba(108, 75, 194, .28); }
.tunnel-step-panel[data-cat="2"] { --cat-color: #A65B72; --cat-light: rgba(166, 91, 114, .08); --cat-shadow: rgba(166, 91, 114, .28); }
.tunnel-step-panel[data-cat="3"] { --cat-color: #1F8A70; --cat-light: rgba(31, 138, 112, .10); --cat-shadow: rgba(31, 138, 112, .28); }
.tunnel-step-panel[data-cat="4"] { --cat-color: #2E6E86; --cat-light: rgba(46, 110, 134, .10); --cat-shadow: rgba(46, 110, 134, .28); }

.tunnel-step-panel .btn-tml-next {
  background-image: none;
  background-color: var(--cat-color, var(--mpi-accent));
  box-shadow: 0 2px 7px 2px var(--cat-shadow, rgba(255,28,96,.35));
}
.tunnel-step-panel .btn-tml-next:hover { background-position: unset; transform: scale(0.94); }

.tunnel-step-panel .btn-intro-cta {
  background-image: none;
  background-color: var(--cat-color, var(--mpi-accent));
}
.tunnel-step-panel .btn-intro-cta:hover { background-position: unset; transform: scale(0.94); }

.tunnel-step-panel .big-choice-lbl:hover {
  border-color: var(--cat-color, var(--mpi-accent));
  background: var(--cat-light, var(--mpi-accent-light));
  box-shadow: 0 4px 14px var(--cat-shadow, rgba(255,28,96,.12));
}
.tunnel-step-panel .big-choice input:checked + .big-choice-lbl {
  border-color: var(--cat-color, var(--mpi-accent));
  background: var(--cat-light, var(--mpi-accent-light));
  box-shadow: 0 4px 14px var(--cat-shadow, rgba(255,28,96,.15));
}
.tunnel-step-panel .big-choice input:checked + .big-choice-lbl::after {
  background: var(--cat-color, var(--mpi-accent));
}

.tunnel-step-panel .icon-choice-lbl:hover { background: var(--cat-light, var(--mpi-accent-light)); }
.tunnel-step-panel .icon-choice input:checked + .icon-choice-lbl {
  border-color: var(--cat-color, var(--mpi-accent));
  background: var(--cat-light, var(--mpi-accent-light));
}

.tunnel-step-panel .chip-lbl:hover {
  border-color: var(--cat-color, var(--mpi-accent));
  color: var(--cat-color, var(--mpi-accent));
  background: var(--cat-light, var(--mpi-accent-light));
}
.tunnel-step-panel .chip input:checked + .chip-lbl {
  background: var(--cat-color, var(--mpi-accent));
  border-color: var(--cat-color, var(--mpi-accent));
  color: #fff;
}

.tunnel-step-panel .choice-row-lbl:hover {
  border-color: var(--cat-color, var(--mpi-accent));
  background: var(--cat-light, var(--mpi-accent-light));
}
.tunnel-step-panel .choice-row input:checked + .choice-row-lbl {
  border-color: var(--cat-color, var(--mpi-accent));
  background: var(--cat-light, var(--mpi-accent-light));
}
.tunnel-step-panel .choice-row input:checked + .choice-row-lbl .choice-row-check {
  background: var(--cat-color, var(--mpi-accent));
  border-color: var(--cat-color, var(--mpi-accent));
}

.tunnel-step-panel .room-lbl:hover {
  border-color: var(--cat-color, var(--mpi-accent));
  color: var(--cat-color, var(--mpi-accent));
  background: var(--cat-light, var(--mpi-accent-light));
}
.tunnel-step-panel .room-opt input:checked + .room-lbl {
  background: var(--cat-color, var(--mpi-accent));
  border-color: var(--cat-color, var(--mpi-accent));
  color: #fff;
}

.tunnel-step-panel .budget-input-wrap input[type="number"]:focus { border-color: var(--cat-color, var(--mpi-accent)); }
.tunnel-step-panel .budget-preset:hover {
  border-color: var(--cat-color, var(--mpi-accent));
  color: var(--cat-color, var(--mpi-accent));
  background: var(--cat-light, var(--mpi-accent-light));
}

.tunnel-step-panel .form-control:focus { border-color: var(--cat-color, var(--mpi-accent)); }

.tunnel-step-panel .location-tag {
  border-color: var(--cat-color, var(--mpi-accent));
  color: var(--cat-color, var(--mpi-accent));
  background: var(--cat-light, var(--mpi-accent-light));
}

.tunnel-step-panel .auto-complete-container .ac-item:hover {
  background: var(--cat-light, var(--mpi-accent-light));
  color: var(--cat-color, var(--mpi-accent));
}

.tunnel-step-panel .step-q-counter strong { color: var(--cat-color, var(--mpi-navy)); }

br { display: unset !important; }

/* ================================================
   CHECKLIST BÉNÉFICES (réutilisée dans l'écran d'intro)
   ================================================ */

.reward-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reward-checklist li {
  font-size: 14px;
  font-weight: 600;
  color: var(--mpi-navy);
  background: var(--mpi-bg-light);
  padding: 10px 14px;
  border-radius: var(--mpi-radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(-10px);
  animation: mpiChecklistIn .4s ease forwards;
}
.reward-checklist li:nth-child(1) { animation-delay: .05s; }
.reward-checklist li:nth-child(2) { animation-delay: .15s; }
.reward-checklist li:nth-child(3) { animation-delay: .25s; }
.reward-checklist li:nth-child(4) { animation-delay: .35s; }
.reward-checklist li:nth-child(5) { animation-delay: .45s; }
@keyframes mpiChecklistIn {
  to { opacity: 1; transform: translateX(0); }
}
.reward-check { font-size: 15px; }

/* ================================================
   RESPONSIVE
   ================================================ */

/* "Combien d'enfants ?" (4 choix) : pleine largeur sur une ligne en desktop,
   2 lignes de 2 choix dès la tablette et le mobile. */
@media (max-width: 1024px) {
  .rooms-grid.col-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .tunnel-page-wrapper  { padding-top: 82px; }
  .icon-grid            { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid           { grid-template-columns: repeat(3, 1fr); }
  .budget-grid          { grid-template-columns: 1fr; }
  .q-title              { font-size: 16px; }
  .intro-card-title     { font-size: 18px; }
  .btn-intro-cta        { font-size: 13px; padding: 10px 20px; }
  .btn-tml-next         { padding: 10px 18px; font-size: 13px; }
  .btn-tml-prev         { padding: 10px 14px; font-size: 13px; }
}

/* Choix à 3 options ("big-choice") : une option par ligne en dessous de 600px */
@media (max-width: 600px) {
  .big-grid:not(.col-2) { grid-template-columns: 1fr; }
}

/* Dernière question : bouton final centré au-dessus, "Retour" en lien texte en dessous */
@media (max-width: 450px) {
  .tunnel-nav-final {
    flex-direction: column-reverse;
    align-items: center;
    gap: 14px;
  }
  .tunnel-nav-final .btn-tml-prev {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--mpi-muted);
    font-size: 13px;
    padding: 4px 6px;
    text-decoration: underline;
  }
  .tunnel-nav-final .btn-tml-prev:hover {
    background: none;
    color: var(--mpi-navy);
  }
}

@media (max-width: 420px) {
  .tunnel-cat-name      { display: none; }
  .tunnel-cat-dot       { width: 28px; height: 28px; font-size: 13px; }
  .step-meta            { flex-direction: column; align-items: flex-start; }
}
