/* =========================================================
   PAGE « DEMANDER UN DEVIS » — questionnaire en 4 étapes
   Page volontairement légère : aucune animation lourde en fond
   ========================================================= */

.quote { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 48px) 0 90px; }
.quote__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }

/* Colonne de réassurance */
.quote__aside { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 26px; }
.quote__aside .h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); }
.quote__points { display: grid; gap: 14px; }
.quote__points li { display: flex; gap: 14px; align-items: flex-start; }
.q-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--gold-light); background: var(--gold-soft); border: 1px solid rgba(182, 144, 84, 0.35); flex: none; }
.q-icon .icon { width: 18px; height: 18px; }
.quote__points b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.quote__points span { font-size: 14px; }
.quote__urgent { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(182, 144, 84, 0.3); background: var(--gold-soft); }
.quote__urgent b { display: block; color: var(--text); font-weight: 600; }
.quote__urgent a { color: var(--gold-light); font-weight: 600; }
.quote__urgent a:hover { text-decoration: underline; }

/* Carte du formulaire */
.form-card { border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #2d2a24, #211e1a); border: 1px solid rgba(182, 144, 84, 0.25); box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9); }
.form-card__head { padding: 26px 30px 22px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 160% at 0% 0%, rgba(182, 144, 84, 0.12), transparent 60%); }
.form-card__progress { height: 2px; margin-top: 18px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.form-card__progress span { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0.25); transition: transform 0.5s var(--ease-out); }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stepper button { display: flex; gap: 8px; align-items: center; padding: 0; text-align: left; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); cursor: default; transition: color 0.3s; }
.stepper button i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10.5px; letter-spacing: 0; border: 1px solid var(--line-strong); transition: background 0.3s, border-color 0.3s, color 0.3s; flex: none; }
.stepper button.is-done { color: var(--muted); cursor: pointer; }
.stepper button.is-done i { background: var(--gold-soft); border-color: rgba(182, 144, 84, 0.5); color: var(--gold-light); }
.stepper button.is-current { color: var(--gold-light); }
.stepper button.is-current i { background: var(--gold-grad); border-color: var(--gold); color: #0b0b0c; }

.form-card__body { padding: 28px 30px 8px; }
.step-panel { display: none; border: 0; padding: 0; min-width: 0; }
.step-panel.is-active { display: grid; gap: 20px; animation: step-in 0.4s var(--ease-out) both; }
.form-card__body[data-dir="prev"] .step-panel.is-active { animation-name: step-in-prev; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes step-in-prev { from { opacity: 0; transform: translateX(-24px); } }
.step-panel legend { padding: 0; margin-bottom: 2px; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text); float: left; width: 100%; }
.step-panel legend + * { clear: both; }
.hint { font-size: 14.5px; margin-top: -8px; }

/* Choix de prestation */
.opts-wrap { display: grid; gap: 22px; }
.opt-group { display: grid; gap: 12px; }
.opt-group h3 { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.opt-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opts--2 { grid-template-columns: repeat(2, 1fr); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); transition: border-color 0.25s, background-color 0.25s; }
.opt:hover .opt__card { border-color: rgba(182, 144, 84, 0.45); background: rgba(182, 144, 84, 0.04); }
.opt input:focus-visible + .opt__card { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.opt input:checked + .opt__card { border-color: var(--gold); background: rgba(182, 144, 84, 0.08); box-shadow: inset 0 0 0 1px rgba(182, 144, 84, 0.4); }
.opt__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--gold-light); background: var(--gold-soft); border: 1px solid rgba(182, 144, 84, 0.28); transition: background 0.25s, color 0.25s; }
.opt__icon .icon { width: 19px; height: 19px; }
.opt input:checked + .opt__card .opt__icon { background: var(--gold-grad); color: #0b0b0c; }
.opt b { display: block; color: var(--text); font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.opt small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted-2); margin-top: 3px; }
.opt__check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.3s var(--ease-out); }
.opt__check svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.opt input:checked + .opt__card .opt__check { opacity: 1; transform: none; }

/* Champs */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 9px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--text); font-weight: 500; font-size: 14.5px; display: flex; justify-content: space-between; gap: 8px; }
.field label em { font-style: normal; font-weight: 400; color: var(--muted-2); font-size: 13px; }
.input { width: 100%; padding: 15px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); color: var(--text); font-size: 16px; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; color-scheme: dark; }
.input::placeholder { color: #6d6962; }
.input:hover { border-color: rgba(255, 255, 255, 0.28); }
.input:focus { outline: none; border-color: var(--gold); background: rgba(182, 144, 84, 0.05); box-shadow: 0 0 0 4px rgba(182, 144, 84, 0.14); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.55; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 15px; top: 50%; translate: 0 -50%; color: var(--muted-2); pointer-events: none; }
.input-wrap .input { padding-left: 46px; }
.input-wrap:focus-within .icon { color: var(--gold-light); }
.field.is-invalid .input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.14); }
.field__error { display: none; align-items: center; gap: 7px; color: #dac8aa; font-size: 13.5px; }
.field.is-invalid .field__error { display: flex; }
.step-error { display: none; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 10px; background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.3); color: #e1d1b8; font-size: 14px; }
.step-error.is-visible { display: flex; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 22px; height: 22px; flex: none; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, 0.3); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; margin-top: 1px; }
.check__box svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.2s; }
.check input:checked + .check__box { background: var(--gold-grad); border-color: var(--gold); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: var(--red); }

.recap { display: flex; flex-wrap: wrap; gap: 8px; }
.recap span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; border: 1px solid rgba(182, 144, 84, 0.3); background: var(--gold-soft); color: var(--text); font-size: 13px; }
.recap .icon { width: 14px; height: 14px; color: var(--gold-light); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Pied du formulaire */
.form-card__foot { display: flex; align-items: center; gap: 12px; padding: 22px 30px 26px; }
.form-card__count { margin-right: auto; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.btn[hidden] { display: none; }
.btn__label { display: inline-flex; align-items: center; gap: 10px; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading::before { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-card__note { padding: 0 30px 26px; margin-top: -8px; font-size: 12.5px; color: var(--muted-2); display: flex; gap: 9px; align-items: center; }
.form-card__note .icon { width: 15px; height: 15px; color: var(--gold); }

@media (max-width: 1020px) {
  .quote__grid { grid-template-columns: 1fr; }
  .quote__aside { position: static; }
  .quote__aside .quote__points, .quote__aside .quote__urgent { display: none; }
}
@media (max-width: 700px) {
  .quote { padding-top: calc(var(--nav-h) + 20px); }
  .form-card { border-radius: 16px; }
  .form-card__head { padding: 20px 18px 18px; }
  .form-card__body { padding: 22px 18px 6px; }
  .form-card__foot { padding: 18px 18px 22px; flex-wrap: wrap; }
  .form-card__count { width: 100%; order: -1; }
  .form-card__foot .btn { flex: 1; }
  .form-card__note { padding: 0 18px 22px; }
  .opts, .opts--2 { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .stepper button b { display: none; }
}
@media (max-width: 400px) { .opts, .opts--2 { grid-template-columns: 1fr; } .opt__card { flex-direction: row; align-items: center; } }

@media (prefers-reduced-motion: reduce) { .step-panel.is-active { animation: none; } }

/* Lien vers la réservation VTC (page dédiée /reserver) */
.opt-lien { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(182, 144, 84, 0.45); background: linear-gradient(135deg, rgba(182, 144, 84, 0.12), rgba(255, 255, 255, 0.02)); color: var(--text, #f3f6fc); text-decoration: none; transition: border-color 0.25s, transform 0.3s; }
.opt-lien:hover { border-color: var(--gold, #b69054); transform: translateY(-2px); }
.opt-lien b { display: block; font-weight: 600; }
.opt-lien small { display: block; color: var(--muted, #9a9aae); font-size: 12.5px; }
.opt-lien .opt__icon { flex: none; }
.opt-lien__fleche { margin-left: auto; flex: none; color: var(--gold, #b69054); }
