/* Fichier css/contact-steps.css · chargé par : contact */
/* =====================================================================
   PAGE CONTACT — ÉTAPES, mise en page de la maquette de Sofiane :
   la sphère au centre ; à gauche le titre souligné + « 02/04 » ; à droite les champs en pilules ;
   des fils orange partent de la sphère vers le titre et vers chaque champ (dessinés par contact.js) ;
   « Retour » et « Suivant » séparés, en bas.  (chargé après contact.css)
   ===================================================================== */
.ct-q { position: absolute; inset: 0; left: 0; right: 0; bottom: 0; width: auto; transform: none; padding: 0; }
.ct-q .ct-q__title, .ct-q .ct-q__fields { transition: transform .9s var(--ease); }
.ct-q:not(.is-on) .ct-q__title { transform: translateX(-24px); }
.ct-q:not(.is-on) .ct-q__fields { transform: translateX(24px); }
.ct-q__title { position: absolute; left: max(var(--gutter), 8vw); top: 47%; width: min(32vw, calc(480px * var(--fs, 1))); }
.ct-q__t { display: inline-block; margin: 0; padding-bottom: 14px; border-bottom: 1.5px solid var(--action); font-size: clamp(1.35rem, .7rem + 1.4vw, calc(2.3rem * var(--fs, 1))); font-weight: 500; letter-spacing: .01em; line-height: 1.1; text-transform: uppercase; color: var(--text); }
.ct-q__n { margin: 16px 0 0; font-size: clamp(1.5rem, .9rem + 1.2vw, calc(2.3rem * var(--fs, 1))); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.ct-q__n b { color: var(--action); font-weight: 800; }
.ct-q__fields { position: absolute; left: 58vw; right: max(var(--gutter), 5vw); top: 29%; display: grid; gap: clamp(26px, 6.5svh, 80px); }
.ct-pill { display: flex; align-items: center; gap: 18px; padding: 14px 16px 14px 32px; border-radius: 999px; border: 0; margin: 0;
  background: rgb(var(--bg-rgb) / .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -24px rgb(0 0 0 / .6); }
.ct-pill__l { flex: none; font-size: clamp(1.05rem, .8rem + .5vw, 1.4rem); font-weight: 500; color: var(--text); white-space: nowrap; float: none; padding: 0; }
.ct-pill__l b { color: var(--action); }
.ct-pill .ct-in { flex: 1; min-width: 0; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--action); background: rgb(var(--text-rgb) / .03); }
.ct-pill .ct-in:focus { box-shadow: 0 0 0 3px rgb(var(--acc-rgb) / .28); }
.ct-pill--chips { flex-direction: column; align-items: flex-start; gap: 12px; border-radius: 28px; padding: 18px 22px 20px 30px; }
.ct-pill--chips .ct-chips span { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.ct-pill--area { flex-direction: column; align-items: stretch; gap: 12px; border-radius: 28px; padding: 20px 22px 22px 30px; }
.ct-pill--area .ct-in { border-radius: 18px; min-height: 140px; }
.ct-q__fields .ct-q__hint, .ct-q__fields .ct-q__need { margin: -14px 0 0 32px; }
.ct-q .ct-q__err { position: absolute; left: 58vw; right: max(var(--gutter), 5vw); bottom: calc(max(9svh, var(--ui-b, 30px) + 46px) + 70px); text-align: center; }
.ct-q .ct-q__btns { position: absolute; left: 50%; bottom: max(9svh, calc(var(--ui-b, 30px) + 46px)); transform: translateX(-50%); display: flex; align-items: center; gap: clamp(110px, 17vw, 300px); }
.ct-q--last .ct-q__btns { gap: clamp(14px, 3vw, 40px); }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: clamp(1.05rem, .85rem + .4vw, 1.3rem); font-weight: 500; border: 1px solid transparent; white-space: nowrap; transition: transform .35s var(--ease), background .25s, box-shadow .3s, opacity .3s; cursor: pointer; }
.ct-btn:hover { transform: translateY(-2px); }
.ct-btn--go { background: var(--action); color: #fff; box-shadow: 0 18px 40px -16px rgb(var(--acc-rgb) / .8); }
.ct-btn--go:hover { background: color-mix(in srgb, var(--action) 88%, #fff); }
.ct-btn--ghost { background: rgb(var(--surface-rgb, 18 32 42) / .88); color: var(--text); border-color: rgb(var(--text-rgb) / .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ct-btn--ghost:hover { border-color: rgb(var(--acc-rgb) / .7); }
.ct-btn.is-off { opacity: .45; box-shadow: none; cursor: not-allowed; }
.ct-btn.is-off:hover { transform: none; }
.ct-done__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.ct-res__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 4px; }
/* fils de connexion */
.ct-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.ct-wires path { fill: none; stroke: var(--action); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ct-wires circle { fill: var(--action); }

/* ---------- portrait : la sphère en haut ; titre, champs et boutons empilés en bas ---------- */
html.f-stack .ct-q { display: flex; flex-direction: column; gap: 14px; inset: auto var(--gutter) max(calc(var(--dock-h) + 12px), calc(var(--kb, 0px) + 10px)) var(--gutter); }
html.f-stack:not(.f-phone) .ct-q { left: 50%; right: auto; width: min(640px, calc(100% - 2 * var(--gutter))); transform: translateX(-50%); }
html.f-stack .ct-q__title, html.f-stack .ct-q__fields, html.f-stack .ct-q .ct-q__btns, html.f-stack .ct-q .ct-q__err { position: static; width: auto; transform: none; }
html.f-stack .ct-q__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
html.f-stack .ct-q__t { font-size: clamp(1.2rem, 5.6vw, 1.8rem); padding-bottom: 10px; }
html.f-stack .ct-q__n { margin: 0; font-size: clamp(1.2rem, 5.4vw, 1.7rem); }
html.f-stack .ct-q__fields { gap: 12px; }
html.f-stack .ct-pill { padding: 8px 8px 8px 18px; gap: 10px; border-radius: 22px; }
html.f-stack .ct-pill__l { font-size: 1rem; }
html.f-stack .ct-pill .ct-in { min-height: 44px; padding: 8px 14px; }
html.f-stack .ct-pill--chips, html.f-stack .ct-pill--area { padding: 14px 14px 14px 18px; border-radius: 20px; gap: 10px; }
html.f-stack .ct-pill--chips .ct-chips span { min-height: 36px; padding: 0 12px; font-size: .875rem; }
html.f-stack .ct-pill--area .ct-in { min-height: 96px; }
html.f-stack .ct-q__fields .ct-q__hint, html.f-stack .ct-q__fields .ct-q__need { margin: 0 0 0 4px; font-size: .875rem; }
html.f-stack .ct-q .ct-q__btns { justify-content: space-between; gap: 10px; }
html.f-stack .ct-q--last .ct-q__btns { flex-wrap: wrap; }
html.f-phone .ct-q--last .ct-q__btns .ct-book-go { order: 3; flex: 1 1 100%; }
html.f-stack .ct-btn { min-height: 48px; padding: 0 22px; font-size: 1rem; }
html.f-stack .ct-q .ct-q__err { text-align: left; }
@media (max-height: 720px) { html.f-stack .ct-q__fields .ct-q__hint { display: none; } html.f-stack .ct-pill--chips .ct-chips span { min-height: 32px; padding: 0 10px; font-size: .8125rem; } html.f-stack .ct-pill--chips { gap: 6px; padding: 10px 12px 10px 14px; } }
/* téléphone couché : comme l'ordinateur, en compact */
html.f-short .ct-q__title { top: 44%; left: var(--gutter); width: 30vw; }
html.f-short .ct-q__t { font-size: 1.05rem; padding-bottom: 8px; }
html.f-short .ct-q__n { margin-top: 8px; font-size: 1.1rem; }
html.f-short .ct-q__fields { left: 56vw; top: 64px; gap: 12px; }
html.f-short .ct-pill { padding: 6px 6px 6px 16px; gap: 10px; }
html.f-short .ct-pill__l { font-size: .9375rem; }
html.f-short .ct-pill .ct-in { min-height: 38px; padding: 6px 12px; }
html.f-short .ct-pill--chips { padding: 8px 10px 8px 14px; gap: 6px; border-radius: 18px; }
html.f-short .ct-pill--chips .ct-chips span { min-height: 30px; padding: 0 9px; font-size: .75rem; }
html.f-short .ct-pill--area .ct-in { min-height: 60px; }
html.f-short .ct-q__fields .ct-q__hint { display: none; }
html.f-short .ct-q .ct-q__btns { bottom: 10px; }
html.f-short .ct-btn { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

/* =====================================================================
   RÉSERVER UN APPEL — calque de la scène : la ville (.ct-world) sort vers la droite, la réservation entre par la gauche.
   Le glissement suit le défilement (vers le bas : le pied de page monte ensuite ; vers le haut : la ville revient).
   ===================================================================== */
.ct-world { position: absolute; inset: 0; transform: translateX(calc(var(--bh, 0) * -100%)); will-change: transform; }
.ct-book { position: absolute; inset: 0; z-index: 6; overflow: hidden; visibility: hidden; transform: translateX(calc((1 - var(--bh, 0)) * 100%));
  background: radial-gradient(70% 60% at 50% 18%, rgb(var(--acc-rgb) / .12), transparent 70%), linear-gradient(90deg, rgb(var(--bg-rgb) / .2), rgb(var(--bg-rgb) / .92) 18%); }
.ct-book.is-on { visibility: visible; }
/* le contenu trop haut (téléphone) défile avec la page, pas dans un cadre à part */
.ct-book__in { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: calc(var(--hd-h) + 1svh) var(--gutter) max(28px, calc(var(--dock-h) + 8px)); transform: translateY(calc(var(--bo, 0px) * -1)); }
html.f-stack .ct-book__in { padding-bottom: calc(var(--dock-h) + 16px); }
.ct-res__ok { grid-column: 1 / -1; text-align: center; }

/* =====================================================================
   PORTRAIT (téléphone, tablette debout) — maquette de Sofiane : tout centré, sans fils.
   Ordre : titre → champs en pilules → « 02/04 » → Retour · Suivant
   ===================================================================== */
html.f-stack .ct-wires { display: none; }
html.f-stack .ct-q { align-items: center; text-align: center; gap: 16px; }
html.f-stack .ct-q__title { display: contents; }
html.f-stack .ct-q__t { order: 0; border-bottom: 0; padding-bottom: 0; font-size: clamp(1.35rem, 6.4vw, 2rem); font-weight: 500; letter-spacing: .01em; }
html.f-stack .ct-q__fields { order: 1; width: min(100%, 360px); gap: 14px; }
html.f-stack .ct-q__n { order: 2; margin: 2px 0 0; font-size: clamp(1.35rem, 6vw, 1.9rem); }
html.f-stack .ct-q .ct-q__err { order: 3; text-align: center; }
html.f-stack .ct-q .ct-q__btns { order: 4; justify-content: center; gap: 12px; width: 100%; }
html.f-stack .ct-pill { justify-content: flex-start; text-align: left; padding: 8px 10px 8px 18px; border-radius: 999px; background: rgb(var(--bg-rgb) / .7); }
html.f-stack .ct-pill__l { font-size: .9375rem; }
html.f-stack .ct-pill .ct-in { min-height: 40px; padding: 6px 14px; font-size: 16px; }
html.f-stack .ct-pill--chips, html.f-stack .ct-pill--area { border-radius: 22px; align-items: center; text-align: center; }
html.f-stack .ct-pill--chips .ct-chips { justify-content: center; }
html.f-stack .ct-pill--area { align-items: stretch; text-align: left; }
html.f-stack .ct-q__fields .ct-q__hint, html.f-stack .ct-q__fields .ct-q__need { margin: 0; text-align: center; }
html.f-stack .ct-btn { min-height: 44px; padding: 0 22px; font-size: .9375rem; }
html.f-phone .ct-q--last .ct-q__btns { flex-wrap: wrap; }
html.f-phone .ct-q--last .ct-q__btns .ct-book-go { order: 3; flex: 0 1 auto; }
html.f-stack .ct-pill { background: rgb(var(--surface-rgb, 18 32 42) / .86); border: 1px solid rgb(var(--text-rgb) / .08); }

/* portrait : la barre de progression est centrée sous les boutons */
html.f-stack .ct-rail { left: 50%; right: auto; transform: translateX(-50%); width: min(200px, 52vw); bottom: max(10px, calc(var(--sab, 0px) + 6px)); }
html.f-stack .ct-q { bottom: max(calc(var(--dock-h) + 8px), calc(var(--kb, 0px) + 10px)); }
