/* Devis Clim 974 — feuille unique, mobile d'abord, aucune police externe */
:root {
  --ink: #12303b;
  --muted: #4d6670;
  --line: #d5e3e8;
  --bg: #ffffff;
  --bg-alt: #f1f7f9;
  --brand: #0b5f7a;
  --brand-dark: #08485d;
  --sky: #e3f3f8;
  --cta: #e2571c;
  --cta-dark: #b9420f;
  --wa: #128c4a;
  --wa-dark: #0d6b38;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(18, 48, 59, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 64px; /* barre de contact mobile */
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 4.5vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #f2a541; outline-offset: 2px;
}
svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden, .hp { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }

/* En-tête */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.logo b { color: var(--brand); }
.logo__ico { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; width: 26px; height: 26px; }
.top__tel { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); padding: 24px 0 32px; }
.hero__grid { display: grid; gap: 24px; }
.tag { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--brand-dark); font-size: .85rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.lead { font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; }
.ticks li { padding-left: 28px; position: relative; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 12px; height: 7px; border-left: 3px solid var(--wa); border-bottom: 3px solid var(--wa); transform: rotate(-45deg); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn--main { background: var(--cta); color: #fff; }
.btn--main:hover { background: var(--cta-dark); }
.btn[disabled] { opacity: .7; cursor: wait; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn--block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row--center { justify-content: center; }

/* Carte + formulaire */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.form-card { scroll-margin-top: 12px; }
.form-card h2 { font-size: 1.35rem; margin-bottom: .2em; }
.form { display: grid; gap: 14px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: 4px; padding: 0; }
input[type=text], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid #a9c1ca; border-radius: 8px; padding: 10px 12px; min-height: 46px;
}
textarea { resize: vertical; }
input:user-invalid, select:user-invalid { border-color: #c0392b; }
.row2 { display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid #a9c1ca; border-radius: 999px; background: #fff; cursor: pointer; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #f2a541; outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; }
.consent label { font-weight: 400; }

/* Sections */
.sec { padding: 44px 0; }
.sec--alt { background: var(--bg-alt); }
.sec--cta { background: var(--brand); color: #fff; }
.sec--cta .btn--ghost { border-color: #fff; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { background: var(--bg-alt); border-radius: var(--radius); padding: 18px; }
.steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.cards3 { display: grid; gap: 16px; margin-bottom: 24px; }
.cards3 .card { box-shadow: none; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Pied de page */
.foot { background: #0d2530; color: #c7d8de; padding: 28px 0 20px; font-size: .9rem; }
.foot a, .linkbtn { color: #fff; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 16px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* Barre de contact mobile */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr 1.3fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 700; text-decoration: none; color: var(--brand-dark); }
.bar a + a { border-left: 1px solid var(--line); }
.bar .bar__main { background: var(--cta); color: #fff; }

/* Bandeau cookies */
.consent-banner { position: fixed; left: 8px; right: 8px; bottom: 64px; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; font-size: .92rem; }
.consent-banner p { margin-bottom: 12px; }
.consent-banner .cta-row .btn { flex: 1 1 140px; min-height: 44px; }

/* Pages de texte (légales, merci) */
.doc { padding: 32px 0 48px; }
.doc h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.doc h2 { font-size: 1.25rem; margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }
.ph { background: #fff3c4; padding: 0 3px; border-radius: 3px; }

@media (min-width: 640px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .steps, .cards3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .consent-banner { left: auto; right: 16px; bottom: 16px; max-width: 420px; }
  .hero { padding: 48px 0 56px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
  .hero__txt { padding-top: 24px; }
}
.communes { margin-top: 20px; font-size: .95rem; }

/* Pages de services (v2-v3) */
.hero--page { padding-bottom: 28px; }
.crumbs { margin-bottom: 10px; color: var(--muted); }
.list { padding-left: 1.2em; }
.list li { margin-bottom: .45em; }
.foot__nav + .foot__nav { margin-top: 12px; }
/* Ordinateur : le formulaire est déjà à droite du titre, le bouton qui y mène ne sert à rien. */
@media (min-width: 960px) { .hero__cta-form { display: none; } }

/* Message « il manque… » du formulaire */
.form-err { margin: 0; padding: 10px 12px; border: 1px solid #c0392b; border-radius: 8px; background: #fdecea; color: #8c1d12; font-weight: 600; }

/* publication : valeurs réelles, plus de surlignage */
.ph { background: none; padding: 0; }
