/* ==========================================================
   Calora — chauffagiste · feuille de style
   ========================================================== */
:root {
  --ink: #191B2E;
  --ink-2: #24273F;
  --flame: #D9481F;       /* chaud : boutons (texte blanc lisible) */
  --flame-l: #F2733F;
  --flame-s: #FFEDE4;
  --ice: #2F7FE0;         /* froid */
  --ice-s: #E8F1FD;
  --muted: #555869;
  --muted-d: #B9BBCC;
  --paper: #FAF8F6;
  --white: #FFFFFF;
  --line: #E8E4E0;
  --grad: linear-gradient(90deg, #2F7FE0 0%, #7B6FD0 35%, #F2733F 70%, #D9481F 100%);
  --display: "Lexend", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--flame); }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--flame); color: var(--white); padding: 10px 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 20px; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--ink); }
.kicker::before { content: ""; width: 44px; height: 6px; border-radius: 3px; background: var(--grad); }
.dark .kicker { color: var(--white); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 14px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-flame { background: var(--flame); color: var(--white); }
.btn-flame:hover { background: #B93A16; color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bandeau saisonnier + en-tête */
.season { background: var(--ink); color: var(--muted-d); font-size: 15px; }
.season .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 9px; padding-bottom: 9px; }
.season strong { color: var(--white); }
.season a { color: var(--white); font-weight: 700; }
@media (max-width: 680px) { .season .right { display: none; } }
.header { position: sticky; top: 0; z-index: 60; background: var(--white); border-bottom: 1px solid var(--line); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--grad); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.03em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; padding: 10px 0; }
.nav a:hover { color: var(--flame); }
.nav a[aria-current="page"] { color: var(--flame); }
.nav .btn { min-height: 46px; padding: 0 20px; color: var(--white); }
.burger { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 8px 24px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav .btn { margin-top: 16px; }
}

/* Photos */
.photo { position: relative; overflow: hidden; border-radius: 22px; background: var(--flame-s); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.missing { background: repeating-linear-gradient(135deg, #F7EEE8 0 14px, #F1E5DD 14px 28px); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; padding: 16px; text-align: center; }
.photo.missing img { display: none; }

/* Hero + thermostat */
.hero { padding: 64px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 16px; }
.facts li { display: flex; gap: 8px; align-items: center; }
.facts svg { color: var(--flame); }
.thermo-card { position: relative; background: var(--white); border-radius: 32px; padding: 32px; box-shadow: 0 30px 70px rgba(25,27,46,.12); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.thermo-card .photo { position: absolute; inset: 0; border-radius: 32px; opacity: .14; }
.dial { position: relative; width: 300px; height: 300px; }
.dial svg { width: 100%; height: 100%; }
.dial .value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial .value strong { font-family: var(--display); font-size: 76px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; transition: color .3s; }
.dial .value span { font-size: 15px; color: var(--muted); font-weight: 600; }
.dial-btns { display: flex; gap: 14px; position: relative; }
.dial-btn { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); font: inherit; font-size: 26px; font-weight: 700; color: var(--ink); cursor: pointer; }
.dial-btn:hover { border-color: var(--ink); }
.thermo-tip { position: relative; text-align: center; font-size: 16px; color: var(--muted); max-width: 32ch; min-height: 52px; }
.thermo-tip strong { color: var(--ink); }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; } .dial { width: 240px; height: 240px; } .dial .value strong { font-size: 60px; } }

/* Sections */
.section { padding: 104px 0; }
.section-sm { padding: 64px 0; }
.white { background: var(--white); }
.warm { background: var(--flame-s); }
.dark { background: var(--ink); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.dark .lead, .dark p { color: var(--muted-d); }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 740px; margin-bottom: 48px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.head-row .head { margin-bottom: 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3 { grid-template-columns: 1fr; } }

/* Services illustrés */
.svc { background: var(--white); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(25,27,46,.1); color: var(--ink); }
.svc .art { height: 170px; display: flex; align-items: center; justify-content: center; }
.svc .art.cold { background: var(--ice-s); } .svc .art.hot { background: var(--flame-s); } .svc .art.mix { background: linear-gradient(90deg, var(--ice-s), var(--flame-s)); }
.svc .art svg { height: 130px; width: auto; }
.svc .body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc p { color: var(--muted); font-size: 17px; }
.svc .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--flame); font-size: 16px; }

/* Quiz */
.quiz { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .quiz { grid-template-columns: 1fr; } }
.q { border: 0; padding: 0; margin: 0 0 24px; }
.q legend { font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 12px; padding: 0; color: var(--white); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.22); color: var(--white); font-weight: 700; cursor: pointer; }
.opt input:checked + span { background: var(--white); color: var(--ink); border-color: var(--white); }
.opt input:focus-visible + span { outline: 3px solid var(--flame-l); outline-offset: 2px; }
.result { background: var(--white); color: var(--ink); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 110px; }
.result h3 { color: var(--ink); font-size: 26px; }
.result p, .result li { color: var(--muted) !important; }
.result ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.result .tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--flame-s); color: #9A3412; font-weight: 800; font-size: 14px; }
.result .art { height: 120px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(90deg, var(--ice-s), var(--flame-s)); }
.result .art svg { height: 96px; width: auto; }
.result .note { font-size: 14px; }
@media (max-width: 900px) { .result { position: static; } }

/* Contrat d'entretien */
.toggle { display: inline-flex; padding: 6px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); gap: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.toggle button { min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.toggle button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plan[hidden] { display: none; }
.plan h3 { font-size: 26px; }
@media (max-width: 760px) { .plan { grid-template-columns: 1fr; } }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps .n { height: 8px; border-radius: 4px; background: var(--grad); background-size: 400% 100%; }
.steps li:nth-child(1) .n { background-position: 0 0; } .steps li:nth-child(2) .n { background-position: 33% 0; } .steps li:nth-child(3) .n { background-position: 66% 0; } .steps li:nth-child(4) .n { background-position: 100% 0; }
.steps .num { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--muted); }
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Bloc partagé */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .photo { height: 460px; }
.split-text { display: flex; flex-direction: column; gap: 22px; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 0; } .split .photo { height: 300px; } }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 4px; color: var(--flame); }
.dark .checks svg { color: var(--flame-l); }

/* Avis */
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: var(--flame-l); letter-spacing: 3px; }
.review blockquote { margin: 0; }
.review figcaption { font-size: 15px; color: var(--muted); }

/* En-tête de page */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.page-hero .text { display: flex; flex-direction: column; gap: 16px; }
.page-hero .photo { height: 300px; }
.crumbs { font-size: 15px; color: var(--muted); } .crumbs a { color: var(--muted); }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero .photo { height: 220px; } }

/* Détails services */
.svc-detail { display: grid; grid-template-columns: 320px 1fr; gap: 48px; padding: 52px 0; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail aside { display: flex; flex-direction: column; gap: 14px; }
.svc-detail aside .art { height: 160px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: linear-gradient(90deg, var(--ice-s), var(--flame-s)); }
.svc-detail aside .art svg { height: 120px; width: auto; }
.svc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.svc-body .full { grid-column: 1 / -1; }
.svc-body h3 { font-size: 17px; margin-bottom: 10px; }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; gap: 20px; } .svc-body { grid-template-columns: 1fr; } }

/* Aides */
.aid { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.aid .badge { align-self: flex-start; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--ice-s); color: #1D5BB0; }
.aid p { color: var(--muted); }
.notice { border-left: 6px solid var(--ice); background: var(--ice-s); border-radius: 0 16px 16px 0; padding: 20px 24px; color: var(--ink); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery .photo { height: 260px; }
.gallery figcaption { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--flame); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Formulaire */
.form-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .form-grid { grid-template-columns: 1fr; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; padding: 22px; } }
.field { display: flex; flex-direction: column; gap: 7px; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-size: 15px; font-weight: 700; padding: 0; margin-bottom: 4px; }
.field input, .field select, .field textarea { min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid #D9D4CF; background: var(--paper); font: inherit; font-size: 17px; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field .err { font-size: 14px; color: #B42318; font-weight: 700; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #D92D20; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--flame); flex: none; }
.success { background: #E8F5EC; border: 1.5px solid #1E6B45; color: #155236; border-radius: 12px; padding: 16px; font-weight: 700; }
.success[hidden] { display: none; }
.info { background: var(--ink); color: var(--white); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.info::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--grad); }
.info h2 { color: var(--white); font-size: 26px; }
.info a { color: var(--white); }
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row svg { color: var(--flame-l); flex: none; margin-top: 3px; }
.info-row small { display: block; color: var(--muted-d); font-size: 14px; }
.map { height: 240px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* CTA + pied de page */
.cta { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--grad); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); max-width: 22ch; }
.footer { background: #121323; color: var(--muted-d); font-size: 16px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.footer h3 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--muted-d); text-decoration: none; }
.footer a:hover { color: var(--flame-l); }
.footer .brand { color: var(--white); margin-bottom: 14px; }
.footer .brand-name small { color: var(--muted-d); }
.footer .bottom { border-top: 1px solid #2A2C44; }
.footer .bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; font-size: 14px; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .cols { grid-template-columns: 1fr; } }
.call-bar { display: none; }
@media (max-width: 640px) {
  .call-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); }
  .call-bar .btn { flex: 1; min-height: 50px; padding: 0 10px; }
  body { padding-bottom: 76px; }
}
.result .filled { display: flex; flex-direction: column; gap: 14px; } .result .filled[hidden], .result .pending[hidden] { display: none; }
