/* Bon Tirage · direction artistique « âtre et suie ».
   Un foyer d'hiver : noir de suie, braise orange, brique et crème chaude, comme un âtre allumé un soir de décembre.
   Titres en Zilla Slab, une slab d'artisan solide et franche ; texte en Work Sans, net et lisible.
   Motifs dessinés à la main : appareil de briques, conduit de fumée, flamme et braises qui montent.
   Signature : l'attestation de ramonage tamponnée et datée, fil rouge de la promesse « certificat en main ». */

:root {
  --suie: #1b1512;
  --suie-2: #261d18;
  --suie-3: #3a2d25;
  --brique: #9a3b22;
  --brique-vive: #b5492b;
  --brique-sombre: #6e2614;
  --braise: #e8642a;
  --braise-2: #f28a3c;
  --braise-3: #ffb36b;
  --creme: #f6eee0;
  --creme-2: #efe4d1;
  --papier: #fcf8f0;
  --tampon: #c4402a;
  --sur-sombre: #f3e9d8;
  --sur-sombre-2: #d9cbb7;
  --sur-sombre-3: #b3a28c;

  --bg: var(--creme);
  --surface: var(--papier);
  --surface-2: var(--creme-2);
  --ink: #221a15;
  --ink-2: #4b3d33;
  --muted: #6d5d50;
  --line: #dfcfb6;
  --accent: var(--braise);
  --accent-ink: var(--brique);
  --accent-soft: #fbe3d2;
  --on-accent: var(--suie);
  --font-body: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --head-weight: 700;
  --head-tracking: -0.005em;
  --radius: 6px;
  --radius-btn: 4px;
  --shadow: 0 2px 0 var(--line), 0 18px 34px -22px rgba(27, 21, 18, .35);
  --maxw: 1180px;
  --header-bg: var(--suie);
  --header-ink: var(--sur-sombre);
  --footer-bg: #140f0d;
  --footer-ink: #c9b9a4;
  --footer-strong: var(--creme);
}

/* ---------- Base ---------- */
body { background: var(--bg); color: var(--ink); font-size: 17px; }
h1, h2, h3, h4 { color: var(--ink); }
::selection { background: var(--braise-2); color: var(--suie); }
:focus-visible { outline: 3px solid var(--brique); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible, .etapes :focus-visible, .page-head :focus-visible,
.lead-head :focus-visible, .site-footer :focus-visible, .presta-star :focus-visible, .cta-box :focus-visible { outline-color: var(--braise-3); }
.section { padding: 80px 0; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 12.5px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brique); margin: 0 0 14px; }
.eyebrow::before, .hero-points li::before, .bref-title::before {
  content: ""; flex: none; width: 9px; height: 9px; background: var(--braise);
  border-radius: 0 50% 50% 50%; transform: rotate(45deg);
}
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.08; margin: 0 0 16px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); margin: 0; font-size: 18px; }

.link-arrow { display: inline-block; font-weight: 600; color: var(--brique); text-decoration: none; border-bottom: 2px solid currentColor; padding: 6px 0 2px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--suie); }

/* ---------- Boutons ---------- */
.btn { background: var(--braise); color: var(--suie); border: 0; border-radius: var(--radius-btn); padding: 12px 20px; min-height: 46px; font: 600 16px/1.2 var(--font-body); letter-spacing: .01em; box-shadow: 0 3px 0 var(--brique); transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--braise-2); filter: none; transform: translateY(-1px); box-shadow: 0 4px 0 var(--brique); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--brique); }
.btn-big { padding: 15px 26px; font-size: 17px; min-height: 52px; }
.btn-ghost { background: transparent; color: var(--brique); box-shadow: inset 0 0 0 2px var(--brique); }
.btn-ghost:hover { background: rgba(154, 59, 34, .08); box-shadow: inset 0 0 0 2px var(--brique); }

/* ---------- En-tête ---------- */
.site-header { background: var(--suie); color: var(--sur-sombre); border-bottom: 0; box-shadow: 0 1px 0 var(--suie-3); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, var(--brique-sombre), var(--brique-vive) 30%, var(--braise) 50%, var(--brique-vive) 70%, var(--brique-sombre)); }
.header-in { min-height: 72px; }
.brand { gap: 12px; }
.brand-logo { width: 44px; height: 44px; }
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: .005em; color: var(--creme); }
.brand-tagline { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sur-sombre-3); margin-top: 3px; }
.nav { gap: 26px; }
.nav a { color: var(--sur-sombre); opacity: 1; font-weight: 500; font-size: 15.5px; }
.nav a:not(.btn):hover { color: var(--braise-3); }
.nav a.btn { color: var(--suie); padding: 10px 18px; min-height: 44px; }
.nav-toggle { border-color: var(--suie-3); color: var(--sur-sombre); height: 44px; }
@media (max-width: 940px) {
  .nav { gap: 0; background: var(--suie); border-bottom: 3px solid var(--brique); box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .5); padding: 6px 16px 18px; }
  .nav a { border-bottom-color: var(--suie-3); padding: 13px 4px; }
  .nav a.btn { padding: 13px 18px; }
}
@media (max-width: 380px) { .brand-name { font-size: 21px; } }

/* ---------- Héros ---------- */
.hero { position: relative; background: var(--suie); color: var(--sur-sombre); overflow: hidden; padding: 64px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(/assets/briques.svg) 0 0 / 64px 32px; opacity: .16;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 90%); mask-image: linear-gradient(100deg, transparent 35%, #000 90%); }
.hero-in { position: relative; z-index: 1; display: grid; gap: 28px; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.18fr .82fr; gap: 48px; align-items: end; } }
.hero-copy { padding-bottom: 72px; }
.hero .eyebrow { color: var(--braise-3); }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.015em; color: var(--creme); margin: 0 0 24px; max-width: 15ch; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--braise); white-space: nowrap; }
.hero-lede { font-size: 19px; line-height: 1.6; color: var(--sur-sombre-2); max-width: 580px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.hero .btn-ghost { color: var(--creme); box-shadow: inset 0 0 0 2px rgba(243, 233, 216, .5); }
.hero .btn-ghost:hover { background: rgba(243, 233, 216, .08); box-shadow: inset 0 0 0 2px var(--creme); }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: #c9b9a4; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-art { position: relative; width: 100%; max-width: 500px; margin: 0 auto; align-self: end; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-tag { position: absolute; left: -24px; top: 0; display: flex; align-items: center; gap: 10px; max-width: 262px; padding: 10px 14px 10px 10px; background: var(--papier); color: var(--ink); border-left: 4px solid var(--brique); border-radius: 3px; box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .65); transform: rotate(-2.5deg); }
.hero-tag svg { flex: none; color: var(--tampon); }
.hero-tag p { margin: 0; }
.hero-tag strong { display: block; font: 700 16px/1.2 var(--font-head); }
@media (min-width: 1200px) { .hero-tag { left: -104px; } }
.hero-tag span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
@media (min-width: 960px) and (max-width: 1199px) { .hero-tag { left: -36px; max-width: 184px; } .hero-tag span { display: none; } }
@media (max-width: 959px) {
  .hero { padding-top: 44px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { max-width: 440px; }
  .hero-tag { left: 0; top: 4px; max-width: 168px; gap: 8px; padding: 8px 10px 8px 8px; }
  .hero-tag strong { font-size: 14px; }
  .hero-tag span { display: none; }
  .hero-tag svg { width: 28px; height: 28px; }
}
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* Braises qui montent */
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.embers i { position: absolute; bottom: 30px; width: 4px; height: 4px; border-radius: 50%; background: var(--braise-3); box-shadow: 0 0 6px 1px rgba(242, 138, 60, .7); opacity: 0; animation: braise 10s linear infinite; }
.embers i:nth-child(1) { left: 66%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 72%; animation-delay: 2.2s; animation-duration: 12s; }
.embers i:nth-child(3) { left: 78%; animation-delay: 4.1s; width: 3px; height: 3px; }
.embers i:nth-child(4) { left: 70%; animation-delay: 6s; animation-duration: 9s; }
.embers i:nth-child(5) { left: 82%; animation-delay: 1.3s; animation-duration: 13s; width: 3px; height: 3px; }
.embers i:nth-child(6) { left: 75%; animation-delay: 7.5s; }
.embers i:nth-child(7) { left: 63%; animation-delay: 3.4s; animation-duration: 11s; width: 3px; height: 3px; }
.embers i:nth-child(8) { left: 86%; animation-delay: 5.2s; }
.embers i:nth-child(9) { left: 58%; animation-delay: 8.4s; animation-duration: 12s; width: 3px; height: 3px; }
@keyframes braise {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: .95; }
  55% { transform: translate(-16px, -300px); opacity: .55; }
  100% { transform: translate(12px, -560px); opacity: 0; }
}
@media (max-width: 959px) { .embers i { bottom: 140px; } .embers i:nth-child(n+6) { display: none; } }

/* ---------- Bandeau réglementaire ---------- */
.lois { position: relative; background: var(--brique-sombre); color: var(--sur-sombre); padding: 42px 0 46px; border-top: 4px solid var(--suie-3); }
.lois::before { content: ""; position: absolute; inset: 0; background: url(/assets/briques.svg) 0 0 / 64px 32px; opacity: .3; }
.lois .wrap { position: relative; }
.lois-title { font: 600 12.5px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #ffc9a0; margin: 0 0 24px; }
.lois-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.lois-grid li { padding: 2px 24px; border-left: 1px solid rgba(243, 233, 216, .22); }
.lois-grid li:first-child { padding-left: 0; border-left: 0; }
.lois-num { display: block; font: 700 clamp(34px, 4.2vw, 54px)/1 var(--font-head); color: var(--braise-3); }
.lois-txt { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.45; color: var(--sur-sombre); }
.lois-ref { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: #e8c9a8; }
@media (max-width: 900px) {
  .lois-grid { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .lois-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 420px) { .lois-grid li { padding: 2px 0 2px 14px; } .lois-grid li:nth-child(odd) { padding-left: 0; } .lois-txt { font-size: 14.5px; } }

/* ---------- Prestations ---------- */
.prestas { background: var(--creme); }
.presta-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .presta-grid { grid-template-columns: 1fr 1fr; } .presta-star { grid-column: 1 / -1; } }
@media (min-width: 1060px) {
  .presta-grid { grid-template-columns: 1fr 1fr 1.12fr; }
  .presta-star { grid-column: 3; grid-row: 1 / span 2; }
}
.presta { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--papier); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 20px; box-shadow: 0 2px 0 var(--line); }
.presta::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 6px; background: var(--brique); border-radius: var(--radius) var(--radius) 0 0; }
.presta img { width: 48px; height: 48px; }
.presta h3 { font-size: 24px; line-height: 1.15; margin: 6px 0 0; }
.presta p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.presta .presta-for { font-size: 14px; font-weight: 600; color: var(--brique); }
.presta a { color: var(--brique); font-weight: 600; }
.presta .presta-prix { margin-top: auto; padding-top: 14px; border-top: 1px dashed #d4c0a0; font: 700 21px/1.2 var(--font-head); color: var(--ink) !important; }
.presta-prix span { display: block; font: 600 11.5px/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.presta-star { background: var(--suie); border-color: var(--suie); color: var(--sur-sombre); padding: 32px 30px 30px; overflow: hidden; }
.presta-star::before { background: linear-gradient(90deg, var(--brique), var(--braise)); }
.presta-star::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: url(/assets/briques.svg) 0 0 / 64px 32px; opacity: .22; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); pointer-events: none; }
.presta-star > * { position: relative; z-index: 1; }
.presta-star > div { display: flex; flex-direction: column; gap: 12px; }
.presta-star img { width: 56px; height: 56px; margin-bottom: 4px; }
.presta-star h3 { color: var(--creme); font-size: clamp(26px, 2.6vw, 32px); margin: 0; }
.presta-star p { color: var(--sur-sombre-2); }
.presta-badge { align-self: flex-start; font: 600 12px/1 var(--font-body) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--suie) !important; background: var(--braise-3); padding: 6px 10px; border-radius: 3px; }
.presta-star .presta-note { font-size: 14.5px; color: #c9b9a4; border-left: 3px solid var(--braise); padding-left: 12px; }
.presta-star .btn { align-self: flex-start; margin-top: 6px; color: var(--suie); }
.prestas-foot { margin: 24px 0 0; font-size: 14.5px; color: var(--muted); }
.prestas-foot a { color: var(--brique); font-weight: 600; }

/* ---------- Signature : l'attestation ---------- */
.certif { position: relative; background: var(--creme-2); overflow: hidden; }
.certif::before { content: ""; position: absolute; inset: 0; background: url(/assets/briques.svg) 0 0 / 64px 32px; opacity: .07; }
.certif-in { position: relative; display: grid; gap: 44px; }
@media (min-width: 960px) { .certif-in { grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; } }
.cert { margin: 0; }
.cert-paper { position: relative; max-width: 500px; margin: 0 auto; padding: 36px 34px 32px; background: var(--papier); border: 1px solid #d9c6a8; box-shadow: inset 0 0 0 9px var(--papier), inset 0 0 0 10px #e2d1b4, 0 2px 0 #d9c6a8, 0 30px 44px -22px rgba(27, 21, 18, .45); transform: rotate(-1.3deg); }
.cert-kicker { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cert-title { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--brique); font: italic 600 clamp(26px, 3vw, 34px)/1.1 var(--font-head); color: var(--brique); }
.cert-fields { margin: 0; }
.cert-fields div { display: grid; grid-template-columns: 148px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dotted #cdb999; }
.cert-fields dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.cert-fields dd { margin: 0; font: italic 600 17px/1.35 var(--font-head); color: #3b2e27; }
.cert-sign { margin-top: 20px; max-width: 230px; }
.cert-sign svg { display: block; }
.cert-sign span { display: block; border-top: 1px solid #cdb999; padding-top: 4px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.cert-stamp { position: absolute; right: 20px; bottom: 22px; width: 120px; height: 120px; color: var(--tampon); font-family: var(--font-head); transform: rotate(-14deg); opacity: .9; mix-blend-mode: multiply; }
.cert figcaption { max-width: 460px; margin: 22px auto 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.certif-copy h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin: 0 0 16px; }
.certif-copy > p { color: var(--ink-2); font-size: 18px; margin: 0; }
.checks { list-style: none; padding: 0; margin: 24px 0 26px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border: 2px solid var(--tampon); border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23c4402a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; transform: rotate(-8deg); }
.checks strong { color: var(--ink); }
@media (max-width: 520px) {
  .cert-paper { padding: 28px 22px 26px; transform: rotate(-.8deg); }
  .cert-fields div { grid-template-columns: 1fr; gap: 2px; }
  .cert-stamp { width: 96px; height: 96px; right: 12px; bottom: 16px; }
}

/* ---------- Comment ça marche ---------- */
.etapes { position: relative; background: var(--suie); color: var(--sur-sombre); overflow: hidden; }
.etapes::before { content: ""; position: absolute; inset: 0; background: url(/assets/briques.svg) 0 0 / 64px 32px; opacity: .08; }
.etapes .wrap { position: relative; }
.etapes .eyebrow { color: var(--braise-3); }
.etapes h2 { color: var(--creme); }
.etapes .section-head p:not(.eyebrow) { color: var(--sur-sombre-2); }
.etapes .etapes-transparence { margin-top: 18px; padding-left: 18px; border-left: 4px solid var(--braise); font-size: 18px; color: var(--sur-sombre); }
.frise { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
.frise::before { content: ""; position: absolute; top: 0; bottom: 0; left: 25px; width: 14px; background: repeating-linear-gradient(180deg, transparent 0 86px, #120d0b 86px 90px), linear-gradient(90deg, #2b211c, #5a4a3e 45%, #3b2e27); border-radius: 2px; }
.frise li { position: relative; padding: 4px 0 32px 88px; }
.frise li:last-child { padding-bottom: 0; }
.frise-num { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--braise); color: var(--suie); font: 700 30px/1 var(--font-head); box-shadow: 0 0 0 6px var(--suie), 0 0 0 8px var(--suie-3); }
.frise h3 { margin: 0 0 6px; font-size: 21px; color: var(--creme); }
.frise p { margin: 0; font-size: 15.5px; color: #c9b9a4; }
@media (min-width: 900px) {
  .frise { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .frise::before { top: 25px; bottom: auto; left: 32px; right: calc(25% - 56px); width: auto; height: 14px; background: repeating-linear-gradient(90deg, transparent 0 86px, #120d0b 86px 90px), linear-gradient(180deg, #2b211c, #5a4a3e 45%, #3b2e27); }
  .frise li { padding: 0; }
  .frise-num { position: relative; margin-bottom: 22px; }
}
.engagement { max-width: 920px; margin: 44px 0 0; padding: 18px 22px; background: var(--suie-2); border: 1px solid var(--suie-3); border-radius: var(--radius); font-size: 15px; color: var(--sur-sombre-2); }
.engagement strong { color: var(--creme); }

/* ---------- Le bon moment ---------- */
.saison { background: var(--creme); }
.saison-in { display: grid; gap: 40px; }
@media (min-width: 960px) { .saison-in { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.saison h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin: 0 0 16px; }
.saison p { color: var(--ink-2); }
.calendrier { background: var(--papier); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow); }
.mois { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; }
.mois li { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 70px; padding-bottom: 8px; background: var(--creme-2); border-radius: 3px; font: 700 17px/1 var(--font-head); color: var(--muted); }
.mois abbr { text-decoration: none; border: 0; }
.mois .m-ideal { height: 104px; background: var(--braise); color: var(--suie); }
.mois .m-ideal::before { content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: var(--suie); border-radius: 0 50% 50% 50%; transform: rotate(45deg); opacity: .85; }
.mois .m-hiver { height: 86px; background: var(--suie); color: var(--creme); }
.mois li[data-m="12"]::after { content: ""; position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border: 2px solid var(--braise-3); border-radius: 50%; }
.mois .is-now { outline: 3px solid var(--tampon); outline-offset: 2px; }
.cal-legende { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.cal-legende li { position: relative; padding-left: 28px; }
.cal-legende li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 3px; }
.cal-legende .l-ideal::before { background: var(--braise); }
.cal-legende .l-hiver::before { background: var(--suie); }
.cal-legende .l-civile::before { border: 2px solid var(--tampon); border-radius: 50%; }
.cal-legende strong { color: var(--ink); }
.cal-now { margin: 18px 0 0; padding: 12px 14px; background: #fbe8d8; border-left: 4px solid var(--tampon); font-size: 14.5px; color: var(--ink); }
@media (max-width: 420px) { .calendrier { padding: 22px 14px 18px; } .mois { gap: 3px; } .mois li { font-size: 14px; } }

/* ---------- Obligations ---------- */
.obligations { background: var(--creme-2); }
.oblig-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .oblig-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.oblig-grid .table-wrap { margin: 0; }
.qui-paie { background: var(--papier); border: 1px solid var(--line); border-top: 6px solid var(--brique); border-radius: var(--radius); padding: 22px 24px 20px; }
.qui-paie h3 { font-size: 23px; margin: 0 0 8px; }
.qui-paie dl { margin: 0 0 14px; }
.qui-paie dl div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.qui-paie dt { font: 700 17px/1.3 var(--font-head); color: var(--brique); }
.qui-paie dd { margin: 3px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Risques et diagnostic ---------- */
.risques { background: var(--creme); }
.risques-in { display: grid; gap: 36px; }
@media (min-width: 960px) { .risques-in { grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; } }
.risques h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin: 0 0 16px; }
.risques p { color: var(--ink-2); }
.diag { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px 30px; background: var(--brique-sombre); color: var(--creme); border-radius: var(--radius); text-decoration: none; overflow: hidden; box-shadow: 0 4px 0 #461608; transition: transform .15s; }
.diag::before { content: ""; position: absolute; inset: 0; background: url(/assets/briques.svg) 0 0 / 64px 32px; opacity: .3; }
.diag > * { position: relative; }
.diag:hover { transform: translateY(-2px); }
.diag-kicker { font: 600 12.5px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #ffc9a0; }
.diag-title { font: 700 clamp(26px, 2.6vw, 30px)/1.15 var(--font-head); color: var(--creme); }
.diag-text { font-size: 15.5px; color: #f0dcc6; }
.diag-cta { align-self: flex-start; margin-top: 8px; padding: 12px 18px; min-height: 44px; background: var(--braise); color: var(--suie); font-weight: 600; border-radius: var(--radius-btn); box-shadow: 0 3px 0 #3d150a; }
.diag-cta::after { content: " →"; }

/* ---------- Guides et FAQ de l'accueil ---------- */
.guides-band { background: var(--creme-2); padding: 72px 0; scroll-margin-top: 76px; }
.guides-band .related { margin-top: 0; }
.faq-band { background: var(--creme); padding: 72px 0 64px; }
.faq-band .faq { margin-top: 0; }
.faq-band .faq, .faq-band .sources { max-width: 880px; }
@media (min-width: 1000px) {
  .faq-band .faq { max-width: none; display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .faq-band .faq h2 { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 110px; }
  .faq-band .faq h2::after { content: "Vos questions sur le ramonage, l'entretien et l'attestation, avec la réponse des textes."; display: block; margin-top: 14px; font: 400 16px/1.55 var(--font-body); color: var(--ink-2); }
  .faq-band .faq details { grid-column: 2; }
  .faq-band .sources { margin-left: 372px; }
}
@media (max-width: 600px) { .guides-band .card-desc { display: none; } .guides-band .card { padding: 16px 18px; } }

/* ---------- Composants partagés ---------- */
.related h2, .faq h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 22px; }
.sources h2 { font-size: 22px; }
.sources ul { font-size: 14.5px; color: var(--ink-2); }
.sources a { color: var(--brique); }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { position: relative; gap: 8px; padding: 22px 20px 20px; background: var(--papier); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 0 var(--line); }
.card:hover { border-color: var(--brique); box-shadow: 0 4px 0 #d4c0a0; transform: translateY(-2px); }
.card-kind { color: var(--brique); letter-spacing: .12em; font-weight: 600; }
.card-title { font: 700 19px/1.25 var(--font-head); color: var(--ink); }
.card-desc { color: var(--muted); font-size: 14.5px; }
.card-tool { background: var(--suie); border-color: var(--suie); box-shadow: 0 2px 0 var(--brique); }
.card-tool:hover { border-color: var(--braise); box-shadow: 0 4px 0 var(--brique); }
.card-tool .card-kind { color: var(--braise-3); }
.card-tool .card-title { color: var(--creme); }
.card-tool .card-desc { color: #c9b9a4; }
.card-service { border-top: 6px solid var(--braise); }

.faq details { background: var(--papier); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq details[open] { border-color: #d4c0a0; box-shadow: 0 2px 0 var(--line); }
.faq summary { font: 700 18px/1.35 var(--font-head); padding: 16px 60px 16px 20px; min-height: 44px; color: var(--ink); }
.faq summary::after { content: "+"; top: 50%; right: 16px; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--braise); color: var(--suie); font: 600 20px/1 var(--font-body); }
.faq details[open] summary::after { content: "−"; background: var(--suie); color: var(--creme); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); }
.faq details > div a { color: var(--brique); }

/* ---------- Pages standard ---------- */
.page-head { position: relative; background: var(--suie); color: var(--sur-sombre); border-bottom: 5px solid var(--brique); padding: 34px 0 46px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: url(/assets/briques.svg) 0 0 / 64px 32px; opacity: .16; -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 95%); mask-image: linear-gradient(100deg, transparent 45%, #000 95%); }
.page-head .wrap { position: relative; }
.page-head h1 { color: var(--creme); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; margin: 14px 0 12px; max-width: 920px; }
.page-head .lede { color: #e2d5c2; font-size: 19px; max-width: 800px; }
.page-head .meta { color: var(--sur-sombre-3); }
.crumbs { color: var(--sur-sombre-3); font-size: 14px; }
.crumbs a { color: var(--sur-sombre-2); }
.content-wrap { padding-top: 44px; padding-bottom: 64px; }
.prose h2 { font-size: clamp(25px, 2.6vw, 31px); line-height: 1.15; margin: 52px 0 14px; }
.prose h2::before { content: ""; display: block; width: 34px; height: 9px; margin-bottom: 16px; background: var(--brique); border-radius: 1px; box-shadow: 38px 0 0 var(--braise); }
.prose h3 { font-size: 21px; }
.prose a:not(.btn) { color: var(--brique); text-decoration-color: rgba(154, 59, 34, .45); text-decoration-thickness: 1.5px; }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose a.btn { color: var(--suie); text-decoration: none; }
.prose strong { color: var(--ink); }
.prose ul li::marker { color: var(--braise); }
.prose ol li::marker { color: var(--brique); font-weight: 700; }
.prose blockquote { border-left-color: var(--braise); background: #fbe8d8; }

.table-wrap { border: 1px solid #d9c6a8; border-radius: var(--radius); background: var(--papier); }
th { background: var(--suie); color: var(--sur-sombre); font-weight: 600; font-size: 14px; letter-spacing: .02em; border-bottom: 0; }
td { border-bottom: 1px solid #eadcc4; }
tbody tr:nth-child(even) td { background: #f8f1e4; }
td:first-child { font-weight: 600; color: var(--ink); }
@media (max-width: 600px) { th, td { padding: 9px 10px; font-size: 14px; } }

.bref { position: relative; background: var(--papier); border: 1px solid #d9c6a8; border-top: 6px solid var(--brique); border-radius: var(--radius); padding: 20px 24px 18px; box-shadow: 0 2px 0 var(--line); }
.bref-title { display: flex; align-items: center; gap: 10px; font: 700 20px/1.2 var(--font-head); color: var(--brique); margin-bottom: 10px; }
.bref li::marker { color: var(--braise); }

.cta-box { position: relative; overflow: hidden; background: var(--suie); border: 0; border-radius: var(--radius); padding: 24px 26px; margin: 34px 0; box-shadow: 0 4px 0 var(--brique); }
.cta-box::before { content: ""; position: absolute; inset: 0; background: url(/assets/briques.svg) 0 0 / 64px 32px; opacity: .14; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.cta-box > * { position: relative; }
.cta-title { color: var(--creme); font: 700 21px/1.3 var(--font-head); }

.sidebar { top: 100px; }
.side-box { position: relative; background: var(--papier); border: 1px solid #d9c6a8; border-top: 6px solid var(--braise); border-radius: var(--radius); padding: 24px 22px 22px; gap: 14px; box-shadow: var(--shadow); }
.side-box::before { content: ""; width: 44px; height: 44px; background: url(/assets/picto-ramonage.svg) center / contain no-repeat; }
.side-title { font: 700 21px/1.25 var(--font-head); }
.side-link { color: var(--brique); font-weight: 600; }
.kind-tool .side-link { display: none; }
.page-tarifs .prose td:nth-child(2):not(:last-child), .page-entretien-poele-a-granules .prose td:last-child { font: 700 16.5px/1.4 var(--font-head); color: var(--brique); }
@media (min-width: 700px) { .page-tarifs .prose td:nth-child(2):not(:last-child) { white-space: nowrap; } }

/* ---------- Outil ---------- */
.tool { background: var(--papier); border: 1px solid #d9c6a8; border-top: 6px solid var(--brique); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.tool-kicker { display: inline-flex; align-items: center; gap: 10px; margin: -6px 0 20px; padding: 6px 12px; background: var(--suie); color: var(--braise-3); border-radius: 3px; font: 600 12.5px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.tool .q-label, .tool .q > label { font: 700 19px/1.3 var(--font-head); color: var(--ink); }
.tool .hint { color: var(--muted); }
.choices label { min-height: 44px; border: 1px solid #cdb999; border-radius: var(--radius-btn); background: #fff; padding: 9px 14px; font-size: 15px; }
.choices label:hover { border-color: var(--brique); }
.choices label:has(input:checked) { border-color: var(--braise); background: #fde7d6; box-shadow: inset 0 0 0 1px var(--braise); }
.tool #oc-go { margin-top: 4px; }
.result { border-radius: var(--radius); background: #f8f1e4; border: 1px solid #d9c6a8; border-left: 6px solid var(--braise); padding: 22px 24px; }
.result.warn { background: #fbefe2; border-color: #ecc9a6; border-left-color: var(--braise); }
.result.ok { border-left-color: #1e7a4a; }
.result-title { font: 700 21px/1.25 var(--font-head); }
.result-big { font: 700 clamp(30px, 4vw, 42px)/1.1 var(--font-head); color: var(--brique); }
.result li::marker { color: var(--braise); }

/* ---------- Formulaire de devis ---------- */
.lead { position: relative; background: var(--suie); color: var(--sur-sombre); border-top: 0; padding: 80px 0; overflow: hidden; }
.lead::before { content: ""; position: absolute; inset: 0; background: url(/assets/briques.svg) 0 0 / 64px 32px; opacity: .12; -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%); }
.lead-in { position: relative; }
.lead h2 { color: var(--creme); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.lead-intro { color: var(--sur-sombre-2); font-size: 18px; }
.lead-points li { color: #e8dccb; padding-left: 32px; }
.lead-head::after { content: ""; display: block; width: 150px; height: 150px; margin: 40px 0 0 8px; background: url(/assets/tampon.svg) center / contain no-repeat; transform: rotate(-12deg); opacity: .9; }
@media (max-width: 899px) { .lead-head::after { display: none; } }
.lead-points li::before { width: 20px; height: 20px; top: 3px; background: var(--braise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231b1512' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.lead-form { position: relative; background: var(--papier); color: var(--ink); border: 0; border-top: 6px solid var(--braise); border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .7); }
.field label { color: var(--ink); font-size: 14.5px; }
.field input, .field select, .field textarea, .tool input:not([type=radio]):not([type=checkbox]), .tool select { border: 1px solid #cdb999; border-radius: var(--radius-btn); min-height: 46px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus, .tool input:not([type=radio]):not([type=checkbox]):focus, .tool select:focus { border-color: var(--brique); outline: 3px solid rgba(232, 100, 42, .35); }
.consent { color: var(--ink-2); }
.consent a { color: var(--brique); }
.form-note { color: var(--muted); }
.form-success { background: var(--papier); border: 0; border-top: 6px solid #1e7a4a; color: var(--ink); }
@media (max-width: 600px) { .lead { padding: 56px 0; } .lead-form { padding: 22px 18px; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 0 0 30px; }
.site-footer::before { content: ""; display: block; height: 32px; margin-bottom: 52px; background: var(--brique-sombre) url(/assets/briques.svg) 0 0 / 64px 32px; border-top: 3px solid var(--brique); border-bottom: 3px solid var(--suie-3); }
.footer-grid { gap: 40px; }
.brand-footer .brand-name { color: var(--creme); font-size: 26px; }
.brand-footer .brand-logo { width: 48px; height: 48px; }
.footer-text { opacity: 1; color: var(--footer-ink); font-size: 15px; max-width: 420px; }
.footer-title { font: 700 18px/1.3 var(--font-head); color: var(--creme); margin-bottom: 12px; }
.site-footer a { color: var(--sur-sombre); }
.site-footer a:hover { color: var(--braise-3); }
.site-footer li { margin: 8px 0; }
.disclaimer { opacity: 1; color: var(--sur-sombre-3); border-top-color: var(--suie-3); }
.disclaimer a { color: var(--sur-sombre-2); }
.legal-links a { color: #c9b9a4; }

/* ---------- Sobriété ---------- */
@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  .btn, .card, .diag { transition: none; }
  .btn:hover, .card:hover, .diag:hover { transform: none; }
  html { scroll-behavior: auto; }
}
