/* Site client Siako SAV : léger (aucune police à télécharger), pensé d'abord pour un petit téléphone Android. */
:root {
  --navy: #1d3a8a;
  --navy-2: #16306f;
  --navy-soft: #e8edf9;
  --orange: #e8771e;
  --orange-ink: #a24f0b;
  --orange-soft: #fdf0e4;
  --green: #1f8a5c;
  --green-soft: #e3f3eb;
  --red: #b3261e;
  --red-soft: #fbe6e4;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --fg: #172033;
  --muted: #5b6577;
  --line: #dfe4ee;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: min(980px, 100%); margin: 0 auto; padding: 0 16px; }
.narrow { width: min(620px, 100%); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.top .logo img { height: 36px; width: auto; display: block; }
.top nav { display: flex; gap: 6px; }
.top nav a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: 10px; color: var(--navy); }
.top nav a[aria-current="page"], .top nav a:hover { background: var(--navy-soft); }
@media (max-width: 420px) { .top nav a.hide-sm { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 12px;
  border: 2px solid var(--navy); background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; text-align: center; line-height: 1.2; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.orange:hover { background: #d36813; border-color: #d36813; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy-soft); }
.btn.green { background: var(--green); border-color: var(--green); }
.btn.danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 700; text-decoration: underline; }

/* Accueil */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #2448a8 100%); color: #fff; padding: 36px 0 44px; }
.hero h1 { font-size: clamp(28px, 7vw, 44px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -.5px; text-wrap: balance; }
.hero p.lead { font-size: 18px; opacity: .92; margin: 0 0 22px; max-width: 34ch; }
.hero .eyebrow { color: #f8b47a; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; margin: 0 0 10px; }
.hero .ctas { display: grid; gap: 10px; max-width: 420px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hero .grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .hero .grid { grid-template-columns: 1.2fr 1fr; } .hero .ctas { grid-template-columns: 1fr 1fr; } }
.phone-card { background: #fff; color: var(--fg); border-radius: 18px; padding: 16px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.5); max-width: 360px; justify-self: center; width: 100%; }
.phone-card .n { font-weight: 800; color: var(--navy); font-size: 15px; }
.mini-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.mini-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.mini-steps li b { color: var(--fg); }
.mini-steps .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--line); color: var(--muted); flex: none; }
.mini-steps .done .dot { background: var(--green); color: #fff; }
.mini-steps .now .dot { background: var(--orange); color: #fff; }

section.block { padding: 36px 0; }
section.block h2 { font-size: 24px; margin: 0 0 6px; color: var(--navy); }
section.block > .wrap > p.muted { margin-top: 0; }
.steps4 { display: grid; gap: 12px; margin-top: 18px; counter-reset: s; }
@media (min-width: 720px) { .steps4 { grid-template-columns: repeat(4, 1fr); } }
.steps4 li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; counter-increment: s; }
.steps4 li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 8px; }
.steps4 { padding: 0; }
.steps4 b { display: block; margin-bottom: 2px; }
.prices { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 720px) { .prices { grid-template-columns: 1fr 1fr; } }
.price { display: flex; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.price span:last-child { font-weight: 800; color: var(--navy); white-space: nowrap; }
.contact { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
@media (min-width: 720px) { .contact { grid-template-columns: 1fr auto; align-items: center; } }
.contact .row { display: flex; flex-wrap: wrap; gap: 10px; }
footer { padding: 26px 0 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 20px; }

/* Cartes et formulaires */
.page { padding: 20px 0 48px; }
.page h1 { font-size: 26px; line-height: 1.15; margin: 4px 0 6px; color: var(--navy); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stack { display: grid; gap: 14px; }
.stack > * { min-width: 0; }
label.f { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
label.f .hint, .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
input[type=text], input[type=tel], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c9d1df; border-radius: 12px; background: #fff; font-size: 16px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(29,58,138,.18); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.err { color: var(--red); font-weight: 700; margin: 0; }
.err:empty { display: none; }
.notice { border-radius: 12px; padding: 12px 14px; background: var(--navy-soft); color: var(--navy-2); font-size: 15px; }
.notice.orange { background: var(--orange-soft); color: var(--orange-ink); }
.notice.green { background: var(--green-soft); color: #145c3d; }
.notice.red { background: var(--red-soft); color: var(--red); }
.trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Étapes du formulaire */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 18px; list-style: none; padding: 0; }
.progress li { font-size: 13px; font-weight: 700; color: var(--muted); }
.progress li::before { content: ""; display: block; height: 6px; border-radius: 6px; background: var(--line); margin-bottom: 6px; }
.progress li.done::before, .progress li.now::before { background: var(--navy); }
.progress li.now { color: var(--navy); }
.choices { display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: center; border: 1.5px solid #c9d1df; border-radius: 12px; padding: 11px 14px; background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.choice input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; margin: 0; }
.choice .l { font-weight: 600; line-height: 1.3; }
.choice .p { grid-column: 2; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid #c9d1df; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 4px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--navy-soft); border: 1.5px dashed #9fb0d6; display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--navy); font-weight: 700; padding: 6px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph button.rm { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-weight: 800; }
.ph label { cursor: pointer; display: grid; gap: 4px; place-items: center; width: 100%; height: 100%; }
.ph svg { width: 28px; height: 28px; }

/* Confirmation et suivi */
.bignum { font-size: clamp(26px, 8vw, 38px); font-weight: 900; letter-spacing: .5px; color: var(--navy); text-align: center; margin: 4px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.success-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 8px; }
.success-ico svg { width: 32px; height: 32px; }
.status-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; background: var(--navy-soft); color: var(--navy); }
.badge.pret, .badge.recupere { background: var(--green-soft); color: #145c3d; }
.badge.devis_envoye { background: var(--orange-soft); color: var(--orange-ink); }
.badge.annule { background: var(--red-soft); color: var(--red); }
.timeline { list-style: none; padding: 0; margin: 6px 0 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 16px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::after { background: var(--green); }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #fff; border: 2px solid var(--line); color: var(--muted); z-index: 1; }
.timeline .done .dot, .timeline li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.timeline li.now .dot { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 5px var(--orange-soft); }
.timeline .t { font-weight: 800; padding-top: 4px; }
.timeline li.todo .t { color: var(--muted); font-weight: 600; }
.timeline .d { font-size: 13px; color: var(--muted); }
.estimate { border: 2px solid var(--orange); background: var(--orange-soft); border-radius: var(--radius); padding: 16px; }
.estimate .amount { font-size: 30px; font-weight: 900; color: var(--fg); margin: 2px 0 4px; }
.estimate .btns { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 520px) { .estimate .btns { grid-template-columns: 1fr 1fr; } }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.saved { display: grid; gap: 8px; }
.saved button { display: flex; justify-content: space-between; gap: 10px; text-align: left; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.saved button b { color: var(--navy); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--fg); color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 700; z-index: 50; max-width: calc(100% - 32px); }
.spin { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.m0 { margin: 0; }
.mt4 { margin: 4px 0 0; }
.strong { font-weight: 700; }
.mt16 { margin-top: 16px; }
.h2 { font-size: 19px; margin: 0; color: var(--navy); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card.center .row, .center .row { justify-content: center; }
.ico { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
