:root {
  --navy: #0e2a47;
  --navy-2: #163a5f;
  --blue: #1565c0;
  --blue-2: #0d4f9e;
  --ice: #eef5fc;
  --ice-2: #dceaf8;
  --ink: #14202e;
  --muted: #5a6878;
  --line: #d9e1ea;
  --bg: #f7f9fc;
  --white: #fff;
  --ok: #1b7f4b;
  --warn: #b26a00;
  --err: #b42318;
  --hot: #d6451b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 42, 71, .06), 0 8px 24px rgba(14, 42, 71, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* En-tête */
.top { background: var(--white); 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; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; letter-spacing: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-phone { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { .top-phone span { display: none; } .brand small { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; min-height: 46px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.btn-danger { background: #fff; color: var(--err); border: 1.5px solid #f1c4bf; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Héros */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #1d4d7c 100%); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #d4e3f3; max-width: 36em; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #e3edf8; }
.hero-points svg { flex: none; margin-top: 3px; }
.local-section { background: #edf5fb; padding: 48px 0; }
.local-banner { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 32px; }
.local-banner h2 { margin-bottom: 12px; }
.local-banner p { color: #425e76; max-width: 720px; margin-bottom: 0; }
.local-signature { border-left: 4px solid #6cb5d8; border-radius: 8px; padding: 20px 24px; background: #fff; color: #425e76; display: grid; gap: 6px; }
.local-signature strong { color: var(--navy); font-size: 1.35rem; }
.local-signature span { font-size: .85rem; line-height: 1.5; }
@media (max-width: 760px) { .local-banner { grid-template-columns: 1fr; gap: 22px; } }
.zone-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.zone-card h3 { margin-bottom: 4px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 40px 0 48px; } }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.alt .step { background: var(--bg); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ice-2); color: var(--navy); font-weight: 800; margin-bottom: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Catalogue */
.brand-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.product-media { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #edf6fb, #f8fbfd); margin: -20px -20px 10px; padding: 16px; height: 200px; flex-shrink: 0; }
.product-media img { width: 100%; height: 100%; max-height: 210px; object-fit: contain; }
.product-description { min-height: 4.5em; }
.capacity-options { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; }
.capacity-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #c8dbe9; border-radius: 9px; color: var(--navy); text-decoration: none; background: #f9fcfe; }
.capacity-option:hover, .capacity-option:focus-visible { border-color: var(--blue); background: #edf6fd; }
.capacity-option span:first-child { display: grid; gap: 2px; }
.capacity-option small { color: var(--muted); font-size: .72rem; }
.variant-price { font-size: 1rem; font-weight: 800; text-align: right; white-space: nowrap; }
.price-note { margin: 4px 0 0; font-size: .72rem; }
.contact-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin: 22px 0 0; }
.contact-options a { font-weight: 700; }
.product .brand-tag { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.product h3 { margin: 0; }
.product .btu { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.product .price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; }
.product .price small { display: block; font-weight: 500; color: var(--muted); }

/* Financement */
.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.calc-result { background: var(--ice); border-radius: 12px; padding: 18px; margin-top: 16px; }
.calc-result .big { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
@media (max-width: 860px) { .fin-grid { grid-template-columns: 1fr; } }

.callout { background: var(--ice); border-left: 4px solid var(--blue); border-radius: 10px; padding: 16px 18px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; color: var(--navy); }
details p { margin: 10px 0 0; color: var(--muted); }

/* Formulaires */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 101, 192, .15); }
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 600px) { .row, .row-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option span { display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; cursor: pointer; font-weight: 600; color: var(--navy); height: 100%; }
.option span small { display: block; font-weight: 400; color: var(--muted); }
.option input:checked + span { border-color: var(--blue); background: var(--ice); box-shadow: 0 0 0 2px var(--blue) inset; }
.option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(21, 101, 192, .3); }

.msg { border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: .95rem; }
.msg-ok { background: #e8f6ee; color: var(--ok); }
.msg-warn { background: #fff4e0; color: var(--warn); }
.msg-err { background: #fdecea; color: var(--err); }

/* Assistant de demande */
.wizard { max-width: 760px; margin: 0 auto; padding: 32px 16px 80px; }
.progress { display: flex; gap: 6px; margin: 8px 0 28px; }
.progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress span.done { background: var(--blue); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .card { padding: 18px; } }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }

.photo-slots { display: grid; gap: 14px; }
.slot { border: 1.5px dashed #b8c7d8; border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: #fbfdff; }
.slot.filled { border-style: solid; border-color: var(--ice-2); background: #fff; }
.slot .thumb { width: 110px; height: 110px; border-radius: 10px; background: var(--ice); display: grid; place-items: center; overflow: hidden; color: var(--blue); }
.slot .thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot h4 { margin: 0 0 2px; color: var(--navy); font-size: 1rem; }
.slot .req { font-size: .72rem; font-weight: 800; color: var(--hot); text-transform: uppercase; letter-spacing: .05em; margin-left: 6px; }
.slot .tip { font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
.slot textarea { min-height: 60px; font-size: 15px; }
.slot-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 520px) { .slot { grid-template-columns: 1fr; } .slot .thumb { width: 100%; height: 170px; } }

.summary-list { list-style: none; padding: 0; margin: 0; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary-list li span:first-child { color: var(--muted); }

.done-box { text-align: center; padding: 40px 20px; }
.done-box .ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 700; background: var(--ice); padding: 8px 14px; border-radius: 8px; display: inline-block; margin: 8px 0 16px; }

/* Pied de page */
footer { background: var(--navy); color: #c9d8e8; padding: 40px 0; font-size: .92rem; }
footer a { color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer strong { color: #fff; }

.legal { max-width: 780px; margin: 0 auto; padding: 40px 16px 80px; }
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }

/* Ajustements */
.btn { white-space: nowrap; }
.hero-cta .btn, .zone-card .btn, .done-box .btn { white-space: normal; text-align: center; }
input[type=search] { font: inherit; font-size: 16px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
@media (max-width: 640px) {
  .brand { font-size: .95rem; line-height: 1.2; }
  .top .btn-sm { padding: 8px 12px; }
}
