/* =====================================================================
   Questionnaire de prise de rendez-vous (page-templates/rendez-vous.php)
   Une seule colonne centrée, sur fond papier.
   ===================================================================== */

.funnel-page { background: var(--paper); }
.funnel { max-width: 1040px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; }

/* ---------- Colonne questions ---------- */
.funnel__left { min-height: inherit; display: flex; flex-direction: column; padding: 28px clamp(16px, 5vw, 64px) 48px; }
.funnel__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: var(--pill);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 11px/1 var(--font-alt); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.trust-pill .dot { color: var(--red); box-shadow: 0 0 0 4px var(--red-50); }

.progress { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 6px; margin: 28px 0 0; }
.progress i { height: 4px; border-radius: 4px; background: var(--line); transition: background .35s var(--ease); }
.progress i.on { background: var(--red); }

.funnel__main { flex: 1; display: flex; }
.screen { width: 100%; padding-top: clamp(32px, 6vh, 72px); animation: in .45s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }
.screen h1 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.035em; line-height: 1.05; outline: none; }
.screen h1 em { color: var(--red); }
.step-label { margin-bottom: 14px; font: 600 11px/1 var(--font-alt); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lede { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 520px; }
.hint { margin-top: 10px; font: 500 14px/1.4 var(--font-alt); color: var(--muted); }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted); }
.back {
  margin: 0 0 22px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 14px/1 var(--font-alt); color: var(--muted);
}
.back:hover { color: var(--red); }

/* Tuiles (choix unique) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.tile {
  display: flex; align-items: flex-start; gap: 14px; min-height: 64px; padding: 18px;
  border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; cursor: pointer;
  font: 500 16px/1.3 var(--font); transition: box-shadow .2s, background .2s, transform .2s var(--ease);
}
.tile:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.tile[aria-pressed="true"] { background: var(--red-50); box-shadow: inset 0 0 0 2px var(--red); }
.tile b { font-weight: 600; display: block; }
.t-sub { display: block; margin-top: 4px; font: 400 13px/1.35 var(--font-alt); color: var(--muted); }
.tile .ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red-50); color: var(--red); }
.tile[aria-pressed="true"] .ico { background: var(--red); color: #fff; }
.tile--plain { align-items: center; }

/* Puces (choix multiples) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips--stack { flex-direction: column; align-items: stretch; max-width: 520px; }
.chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px;
  border: 0; border-radius: var(--pill); background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: left;
  font: 500 15px/1.2 var(--font); transition: box-shadow .2s, background .2s;
}
.chips--stack .chip { border-radius: var(--radius); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-pressed="true"] { background: var(--red-50); box-shadow: inset 0 0 0 2px var(--red); }
.box { flex: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #4A4A4A; background: var(--surface) center/14px no-repeat; transition: background-color .2s; }
.chip[aria-pressed="true"] .box {
  background-color: var(--red); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.5 2.5L11 4.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Formulaires */
.form { display: grid; gap: 16px; margin-top: 30px; max-width: 580px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--other { max-width: 540px; margin-top: 16px; }
.field label { font: 600 13px/1.2 var(--font-alt); color: var(--ink-2); }
.field input, .field select, .tel select {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 0; border-radius: 14px; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); font: 400 16px/1 var(--font);
  transition: box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23848484' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
}
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field .invalid { box-shadow: inset 0 0 0 2px var(--red); background-color: var(--red-50); }
.field .fine { margin-top: 0; }
.tel { display: grid; grid-template-columns: 108px 1fr; gap: 8px; }
.form-msg { color: var(--red); font-weight: 600; font-size: 14px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Écran prix */
.note { max-width: 640px; margin-top: 26px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; color: var(--ink-2); }
.note__price { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: var(--red); }

/* Calendly */
.cal { margin-top: 24px; min-height: 700px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cal .calendly-inline-widget, .cal iframe { width: 100%; min-height: 700px; }
.cal__load { display: flex; justify-content: center; gap: 8px; padding: 120px 0; }
.cal__load i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: bounce 1s infinite; }
.cal__load i:nth-child(2) { animation-delay: .15s; }
.cal__load i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-8px); opacity: .5; } }

/* Merci */
.screen--done { text-align: left; }
.done-badge { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: 28px; box-shadow: 0 0 0 10px var(--red-50); }

.mobile-trust { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .trust-pill { display: none; }
  .mobile-trust { display: block; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font: 400 13px/1.4 var(--font-alt); color: var(--muted); }
  .mobile-trust b { color: var(--ink); }
}
@media (max-width: 560px) {
  .tiles, .grid2 { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .cal, .cal .calendly-inline-widget, .cal iframe { min-height: 1000px; }
}
