/* Base commune aux maquettes : reset, accessibilité et mécanique du formulaire.
   Chaque proposition redéfinit les variables et sa propre mise en page. */
:root {
  --bg: #fff; --surface: #f5f5f5; --ink: #1a1a1a; --muted: #4d4d4d; --line: #d9d9d9;
  --field-border: #6b6b6b; --brand: #145374; --brand-soft: #e3eef4;
  --action: #b8432a; --action-dark: #963420; --on-action: #fff;
  --error: #b42318; --error-soft: #fdf0ef; --focus: #f2a33a;
  --radius: 14px; --btn-radius: 999px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { top: 12px; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex-shrink: 0; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

/* Bandeau de maquette */
.proto-bar { background: #111; color: #fff; font: 600 14px/1.4 system-ui, sans-serif; padding: 8px 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.proto-bar a { color: #ffd28a; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 54px; padding: 12px 22px; border-radius: var(--btn-radius); border: 2px solid transparent; font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.btn-block { width: 100%; }
.btn-action { background: var(--action); color: var(--on-action); }
.btn-action:hover { background: var(--action-dark); color: var(--on-action); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-whatsapp { background: #1b6b45; color: #fff; }
.btn-sms { background: #1f5fbf; color: #fff; }
.btn-sms:hover { background: #194d9c; color: #fff; }
.send-option .btn-whatsapp, .send-option .btn-sms, .send-option .btn-whatsapp:hover, .send-option .btn-sms:hover { color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }

/* Formulaire */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 1rem; }
.stepper-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; font-size: .9rem; flex-shrink: 0; }
.stepper li.is-current { background: var(--brand); color: #fff; }
.stepper li.is-done { color: var(--brand); }
@media (max-width: 480px) { .stepper li { flex-direction: column; gap: 2px; text-align: center; font-size: .9rem; } }
.step-title { font-size: 1.15rem; }
.step-title:focus { outline: none; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: 1rem; color: var(--muted); margin: -2px 0 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid var(--field-border); border-radius: calc(var(--radius) * .8);
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error) !important; background: var(--error-soft); }
.contact-fieldset { padding: 14px; border: 2px dashed var(--line); border-radius: var(--radius); }
.contact-fieldset.is-invalid { border-color: var(--error); }
.contact-fieldset .field:last-child { margin-bottom: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 400px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; cursor: pointer; margin: 0 !important; }
.choice input { position: absolute; top: 15px; left: 13px; width: 22px; height: 22px; margin: 0; accent-color: var(--brand); }
.choice-body { display: flex; flex-direction: column; min-height: 68px; padding: 11px 11px 11px 44px; border: 2px solid var(--field-border); border-radius: calc(var(--radius) * .8); background: #fff; font-weight: 600; line-height: 1.3; }
.choice-price { font-weight: 800; color: var(--brand); }
.choice input:checked + .choice-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.is-invalid .choice-body { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 600; font-size: 1rem; margin: 6px 0 0; }
.field-error::before { content: "⚠ "; }
.error-summary { border: 2px solid var(--error); background: var(--error-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.error-summary h4 { color: var(--error); font-size: 1.05rem; font-family: var(--font); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 600; }
.privacy-note { font-size: .95rem; color: var(--muted); margin: 12px 0 0; }
.recap { margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.recap-row { display: grid; grid-template-columns: 10em 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.recap-row:last-child { border-bottom: 0; }
.recap dt { font-weight: 700; color: var(--muted); }
.recap dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.recap .empty { color: var(--muted); font-style: italic; }
@media (max-width: 480px) { .recap-row { grid-template-columns: 1fr; gap: 0; } }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.step-actions .btn { flex: 1 1 200px; }
.notice { background: var(--error-soft); border-left: 5px solid var(--action); padding: 12px 14px; border-radius: 8px; }
.send-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.send-option .hint { margin: 6px 0 0; text-align: center; }
.after-open:empty { display: none; }
.after-open { border: 2px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.fallback { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.fallback summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--brand); }
.fallback-body { padding: 0 14px 14px; }
.copy-status:empty { display: none; }

/* FAQ commune */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; min-height: 54px; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

.badge-pending { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff6db; color: #6b4d00; border: 1px dashed #a07a10; font-size: .85rem; font-weight: 700; }
