/* APGO — Agence pour la Prévention du Grand Ouest — V1 */
:root {
  --ink: #103476;
  --ink-2: #1d4590;
  --accent: #d9042c;
  --accent-d: #b00322;
  --leaf: #1f8a5b;
  --leaf-bg: #e6f4ec;
  --bg: #f7f5f0;
  --card: #ffffff;
  --line: #e3dfd5;
  --muted: #5a6878;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(16, 52, 118, .25);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: "Archivo", "Manrope", sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-d); margin-bottom: .8rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 "Manrope", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(217, 4, 44, .7); }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }

/* Top bar + header */
.topbar { background: var(--ink); color: #cfdbe8; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { display: block; height: 56px; width: auto; }
.site-footer .logo img { height: 72px; }
.logo-mark { width: 42px; height: 42px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; }
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { font: 800 1.35rem/1 "Archivo", sans-serif; }
.logo-text small { white-space: nowrap; display: block; font: 600 .62rem/1.3 "Manrope", sans-serif; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--accent-d); }
.header-cta { display: flex; gap: .6rem; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(217, 4, 44, .28), transparent 60%),
    radial-gradient(500px 500px at 10% 110%, rgba(31, 138, 91, .25), transparent 60%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 5rem; }
.hero p.lead { font-size: 1.15rem; color: #c9d6e3; max-width: 34em; }
.hero h1 em { font-style: normal; color: #ff6b7d; }
.hero .eyebrow, .devis-hero .eyebrow { color: #ff8a98; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2rem; }
.hero-trust div { font-size: .9rem; color: #c9d6e3; }
.hero-trust strong { display: block; font: 800 1.6rem/1.1 "Archivo", sans-serif; color: #fff; }

.quick-quote { background: #fff; color: var(--ink); border-radius: 20px; padding: 1.8rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.quick-quote h2 { font-size: 1.4rem; margin-bottom: .2rem; }
.quick-quote .muted { font-size: .92rem; }
.qq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.2rem 0; }
.qq-grid a {
  display: flex; align-items: center; gap: .6rem; padding: .8rem; border: 1.5px solid var(--line);
  border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .9rem; transition: border-color .15s, background .15s;
}
.qq-grid a:hover { border-color: var(--accent); background: #fff4f6; }
.qq-grid .ico { flex: none; width: 36px; height: 36px; }
.qq-foot { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); margin-top: .9rem; }
.qq-foot svg { width: 16px; height: 16px; color: var(--leaf); }

/* Icons */
.ico { display: grid; place-items: center; border-radius: 10px; background: #fdeaee; color: var(--accent-d); }
.ico svg { width: 60%; height: 60%; }

/* Sections */
section { padding: 5rem 0; }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-white { background: #fff; }

/* Reassurance strip */
.strip { background: #fff; border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.strip div { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .92rem; }
.strip .ico { width: 40px; height: 40px; flex: none; background: var(--leaf-bg); color: var(--leaf); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.service {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; scroll-margin-top: 100px;
}
.service .ico { width: 56px; height: 56px; }
.service ul { margin: .4rem 0 1.2rem; padding: 0; list-style: none; }
.service li { position: relative; padding-left: 1.4rem; margin: .3rem 0; font-size: .95rem; color: var(--muted); }
.service li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.service .tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--leaf); background: var(--leaf-bg); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.service-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.link-arrow { font-weight: 700; color: var(--accent-d); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem; border-radius: var(--radius); background: var(--bg); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 800 2.2rem/1 "Archivo", sans-serif; color: var(--accent); margin-bottom: .8rem;
}
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.filters button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem;
  font: 600 .9rem "Manrope", sans-serif; cursor: pointer; color: var(--ink);
}
.filters button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.real { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ba { position: relative; aspect-ratio: 4 / 5; overflow: hidden; --pos: 50%; user-select: none; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { background: linear-gradient(135deg, #8a8f96, #5e646c); }
.ba-after { background: linear-gradient(135deg, var(--ink-2), var(--ink)); clip-path: inset(0 0 0 var(--pos)); }
.ba-tag {
  position: absolute; top: .7rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(16, 52, 118, .75); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.ba-before .ba-tag { left: .7rem; }
.ba-after .ba-tag { right: .7rem; background: var(--accent); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 8px rgba(0, 0, 0, .35); }
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba input:focus-visible ~ .ba-handle::after { outline: 3px solid var(--accent); }
.real-body { padding: 1rem 1.2rem 1.2rem; }
.real-body h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.real-body p { font-size: .88rem; color: var(--muted); margin: 0; }
.real-cat { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-d); }

/* Aides */
.aides { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.aides-card { background: var(--ink); color: #fff; border-radius: 20px; padding: 2.2rem; }
.aides-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.aides-card li { display: flex; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.aides-card li svg { flex: none; width: 22px; height: 22px; color: #6fd3a0; }

/* Zone */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.dept { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.4rem; }
.dept span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; font-size: .88rem; }
.map-box { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #e9eef2; aspect-ratio: 4 / 3; }
.map-box iframe { width: 100%; height: 100%; border: 0; }

/* Avis */
.avis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.avis blockquote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: .6rem; }
.avis cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; font-size: .9rem; }
.avis cite span { font-weight: 500; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.3rem 1.1rem; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: 3.5rem 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: .3rem 0 0; opacity: .9; }

/* Footer */
.site-footer { background: #0a2150; color: #a9b8c7; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-text { color: #fff; }
.legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }

/* Mobile sticky actions */
.mobile-bar { display: none; }

/* ---------- Devis wizard ---------- */
.devis-hero { background: var(--ink); color: #fff; padding: 2.6rem 0 6rem; }
.devis-hero p { color: #c9d6e3; margin: 0; }
.devis-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.6rem; margin-top: -4.5rem; padding-bottom: 5rem; align-items: start; }
.wizard { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 2.2rem; min-height: 520px; }
.progress { display: flex; gap: .4rem; margin-bottom: .6rem; }
.progress i { flex: 1; height: 6px; border-radius: 9px; background: var(--line); transition: background .3s; }
.progress i.done { background: var(--accent); }
.progress-label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 1.6rem; }
.step-panel { display: none; animation: fade .3s ease; }
.step-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-panel h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.step-panel > p.muted { margin-bottom: 1.6rem; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.choices.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1rem; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .93rem; transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice label small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.choice label .ico { width: 40px; height: 40px; }
.choice label:hover { border-color: #f0a0b0; }
.choice input:checked + label { border-color: var(--accent); background: #fff4f6; box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + label { outline: 3px solid rgba(217, 4, 44, .4); outline-offset: 2px; }
.choice input:checked + label::after {
  content: "✓"; position: absolute; top: .6rem; right: .7rem; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .75rem; display: grid; place-items: center;
}

.q-block { border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; margin-bottom: 1.2rem; }
.q-block h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.q-block h3 .ico { width: 32px; height: 32px; }
.q { margin-bottom: 1.2rem; }
.q:last-child { margin-bottom: 0; }
.q > span, .field > span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea, .q input[type=number], .q select {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: 500 1rem "Manrope", sans-serif; color: var(--ink); background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .q input:focus, .q select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 4, 44, .15); }
.field.invalid input, .field.invalid select { border-color: #d33; }
.err { display: none; color: #c22; font-size: .8rem; margin-top: .3rem; }
.field.invalid .err { display: block; }
.step-error { display: none; background: #fdecec; color: #a11; border-radius: 10px; padding: .7rem 1rem; font-size: .9rem; font-weight: 600; margin-top: 1rem; }
.step-error.show { display: block; }

.upload { border: 2px dashed var(--line); border-radius: 12px; padding: 1.2rem; text-align: center; cursor: pointer; color: var(--muted); font-size: .9rem; }
.upload:hover { border-color: var(--accent); }
.upload input { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.check input { margin-top: .25rem; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }

.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.wizard-nav .btn-ghost { color: var(--ink); border-color: var(--line); }

.aide-result { border-radius: 14px; padding: 1.2rem 1.4rem; margin-top: 1.2rem; display: none; }
.aide-result.show { display: block; }
.aide-result strong { font-family: "Archivo", sans-serif; font-size: 1.15rem; }
.aide-result.bleu { background: #e6efff; color: #1b3f8f; }
.aide-result.jaune { background: #fff6d6; color: #7a5a00; }
.aide-result.violet { background: #f1e8ff; color: #5b2a9a; }
.aide-result.rose { background: #ffe9f1; color: #8f1d4a; }
.aide-result p { margin: .3rem 0 0; font-size: .88rem; }

.summary { position: sticky; top: 96px; background: #fff; border-radius: 20px; padding: 1.6rem; border: 1px solid var(--line); }
.summary h3 { font-size: 1.05rem; }
.summary-list { list-style: none; padding: 0; margin: .6rem 0 1rem; font-size: .9rem; }
.summary-list li { padding: .45rem 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: .6rem; }
.summary-list li span:last-child { font-weight: 700; text-align: right; }
.summary-empty { color: var(--muted); font-size: .88rem; }
.summary-help { background: var(--bg); border-radius: 12px; padding: 1rem; font-size: .88rem; }
.summary-help a { font-weight: 800; color: var(--accent-d); text-decoration: none; font-size: 1.05rem; }

.recap { background: var(--bg); border-radius: 14px; padding: 1.2rem 1.4rem; font-size: .92rem; }
.recap dl { display: grid; grid-template-columns: 180px 1fr; gap: .4rem 1rem; margin: 0; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 600; }

.success { text-align: center; padding: 2rem 0; }
.success .badge { width: 76px; height: 76px; border-radius: 50%; background: var(--leaf-bg); color: var(--leaf); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.success .badge svg { width: 38px; height: 38px; }
.success .ref { display: inline-block; background: var(--bg); border-radius: 10px; padding: .6rem 1rem; font-weight: 800; letter-spacing: .05em; margin: .6rem 0 1.4rem; }

/* Responsive */
@media (max-width: 1100px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .burger { display: block; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; padding: 1rem 20px 1.4rem; border-bottom: 1px solid var(--line); gap: .9rem;
  }
}
@media (max-width: 980px) {
  .hero .wrap, .aides, .zone { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery, .avis { grid-template-columns: 1fr 1fr; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .devis-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .topbar .zone-txt { display: none; }
  .header-cta { display: none; }
  .hero .wrap { padding-top: 2.6rem; padding-bottom: 3rem; }
  section { padding: 3.5rem 0; }
  .service { grid-template-columns: 1fr; padding: 1.4rem; }
  .steps, .gallery, .avis, .fields { grid-template-columns: 1fr; }
  .qq-grid { grid-template-columns: 1fr; }
  .wizard { padding: 1.4rem; }
  .recap dl { grid-template-columns: 1fr; }
  .recap dd { margin-bottom: .5rem; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; padding: .6rem .8rem; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 52, 118, .1);
  }
  .mobile-bar .btn { padding: .8rem .5rem; font-size: .92rem; }
  .mobile-bar .btn-ghost { color: var(--ink); border-color: var(--ink); }
}

/* ---------- Devis interactif : estimation en direct ---------- */
.live { margin-bottom: 1rem; }
.live-head { display: flex; align-items: center; gap: .5rem; font: 800 1.05rem "Archivo", sans-serif; margin-bottom: .8rem; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(31, 138, 91, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(31, 138, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 138, 91, 0); } }
.live-empty { display: none; font-size: .9rem; color: var(--muted); }
.live.empty .live-empty { display: block; }
.live.empty .live-body { display: none; }
.live small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.live-total { display: block; font: 800 1.6rem/1.2 "Archivo", sans-serif; color: var(--ink); margin: .2rem 0 .4rem; font-variant-numeric: tabular-nums; }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .4rem 0 1rem; }
.live-grid > div { background: var(--leaf-bg); border-radius: 10px; padding: .7rem; }
.live-grid > div:last-child { background: #fdeaee; }
.live-grid b { font: 800 1.1rem "Archivo", sans-serif; font-variant-numeric: tabular-nums; }
.precision .bar, .roi-bars i { display: block; height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; margin: .35rem 0; }
.precision .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #f0566f); transition: width .5s ease; border-radius: 9px; }
.precision small span { float: right; color: var(--ink); font-weight: 800; }

.q-block h3 { flex-wrap: wrap; }
.q-price { margin-left: auto; font: 800 .95rem "Manrope", sans-serif; font-style: normal; color: var(--accent-d); background: #fdeaee; border-radius: 999px; padding: .25rem .7rem; }
.q-price:empty { display: none; }

.range { display: flex; align-items: center; gap: 1rem; }
.range input { flex: 1; accent-color: var(--accent); height: 28px; }
.range output { min-width: 96px; text-align: right; font: 800 1.05rem "Archivo", sans-serif; color: var(--accent-d); }

.insights { display: grid; gap: .6rem; }
.insights:not(:empty) { margin-top: 1rem; }
.insight { border-radius: 12px; padding: .9rem 1rem .9rem 2.6rem; position: relative; font-size: .9rem; animation: fade .3s ease; }
.insight::before { position: absolute; left: .9rem; top: .85rem; font-weight: 800; font-size: 1rem; }
.insight strong { display: block; margin-bottom: .15rem; }
.insight p { margin: 0; }
.insight.ok { background: var(--leaf-bg); color: #145c3c; }
.insight.ok::before { content: "✓"; }
.insight.warn { background: #fff4e0; color: #7a4b00; }
.insight.warn::before { content: "!"; }
.insight.alert { background: #fdecec; color: #8a1616; }
.insight.alert::before { content: "⚠"; }
.add-btn { margin-top: .6rem; background: #fff; color: var(--ink); border: 1.5px solid currentColor; }

.rfr-scale { margin-top: 1.2rem; }
.rfr-scale .bar { position: relative; display: grid; height: 34px; border-radius: 10px; overflow: visible; }
.rfr-scale .bar span { display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.rfr-scale .bleu { background: #2f5fd0; border-radius: 10px 0 0 10px; }
.rfr-scale .jaune { background: #e2b400; }
.rfr-scale .violet { background: #7d47c2; }
.rfr-scale .rose { background: #d0477d; border-radius: 0 10px 10px 0; }
.rfr-scale .marker { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: var(--ink); border-radius: 4px; transition: left .4s ease; }
.rfr-scale .limits { display: block; margin-top: .5rem; font-size: .78rem; }
.aide-lines { list-style: none; padding: 0; margin: .8rem 0 0; }
.aide-lines li { display: flex; justify-content: space-between; padding: .3rem 0; border-top: 1px solid rgba(0, 0, 0, .08); font-size: .9rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.kpi { background: var(--bg); border-radius: 14px; padding: 1rem; }
.kpi small { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .3rem; }
.kpi b { font: 800 1.15rem/1.25 "Archivo", sans-serif; font-variant-numeric: tabular-nums; }
.kpi.green { background: var(--leaf-bg); }
.kpi.green b { color: var(--leaf); }
.kpi.dark { background: var(--ink); color: #fff; }
.kpi.dark small { color: #b9c8d8; }
.roi { margin-top: 1rem; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.roi p { margin: 0 0 .8rem; font-size: .95rem; }
.roi-bars > div { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: .8rem; font-size: .82rem; font-weight: 700; }
.roi-bars i { background: var(--ink); height: 14px; transition: width .8s ease; }
.roi-bars i.g { background: var(--leaf); }
.next-box { margin-top: 1.4rem; background: #fff4f6; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; font-size: .93rem; }
.c-recap { background: var(--bg); border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1.2rem; }
.c-recap:empty { display: none; }
.timeline { list-style: none; padding: 0; margin: 0 auto 1.6rem; max-width: 420px; text-align: left; counter-reset: tl; }
.timeline li { position: relative; padding: 0 0 1rem 2.6rem; font-size: .92rem; color: var(--muted); }
.timeline li::before { counter-increment: tl; content: counter(tl); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.timeline b { display: block; color: var(--ink); }

@media (max-width: 980px) {
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  body:has(.est-bar) { padding-bottom: 76px; }
  .mobile-bar.est-bar {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; padding: .6rem 1rem; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(16, 52, 118, .1);
  }
  .est-bar small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
  .est-bar b { display: block; font: 800 1rem "Archivo", sans-serif; }
}
@media (max-width: 640px) {
  .roi-bars > div { grid-template-columns: 1fr; gap: .2rem; }
  .range output { min-width: 80px; }
}
