/* ==========================================================================
   CALOFLEX — Calorifuge et isolation
   Charte : #000000 · #F5B51B · #FFFFFF · #85878B
   Titres : Archivo Black — Texte : Roboto 400 / 500
   ========================================================================== */

:root {
  --black: #000000;
  --ink: #0c0d0f;          /* fond sombre principal */
  --graphite: #17191c;     /* cartes sur fond sombre */
  --graphite-2: #23262a;
  --yellow: #F5B51B;
  --yellow-dark: #d99a00;
  --gray: #85878B;         /* gris charte : décor, filets, icônes */
  --white: #FFFFFF;
  --paper: #F4F3EF;        /* blanc cassé */
  --line: #E1DFD9;
  --line-dark: #2c2f33;
  --text: #121315;
  --muted: #55585d;        /* texte secondaire lisible sur blanc */
  --muted-dark: #a9abaf;   /* texte secondaire sur fond sombre */

  --font-title: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-text: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: 20px;
  --section: 72px;
  --radius: 2px;
  --header-h: 68px;
  --cut: 18px;             /* coin coupé, rappel de l'hexagone du logo */
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 104px; --header-h: 80px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* barre mobile fixe */
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section--tight { padding: calc(var(--section) * .6) 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Information à fournir ---------- */
.tbd {
  display: inline;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: .82em;
  letter-spacing: 0;
  text-transform: none;
  color: #6b4e00;
  background: rgba(245, 181, 27, .2);
  border: 1px dashed var(--yellow-dark);
  padding: .05em .45em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section--dark .tbd, .hero .tbd, .cta-final .tbd, .site-footer .tbd, .dark .tbd {
  color: var(--yellow);
  background: rgba(245, 181, 27, .1);
  border-color: rgba(245, 181, 27, .6);
}

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-text); font-weight: 500;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 12px; height: 13px; flex: none;
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.section--dark .eyebrow, .hero .eyebrow, .cta-final .eyebrow { color: var(--muted-dark); }

.h1 { font-size: clamp(34px, 7.2vw, 64px); text-transform: none; }
.h2 { font-size: clamp(28px, 4.6vw, 46px); }
.h3 { font-size: clamp(20px, 2.2vw, 24px); }
.lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--muted); max-width: 680px; }
.section--dark .lead, .hero .lead, .cta-final .lead { color: var(--muted-dark); }
.accent { color: var(--yellow); }
.u-yellow { box-shadow: inset 0 -0.32em 0 rgba(245,181,27,.55); }

.section-head { display: grid; gap: 20px; margin-bottom: 48px; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; }
}

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  font-family: var(--font-text); font-weight: 700; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: var(--radius);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn:hover { --bg: #ffc73d; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark { --bg: var(--black); --fg: var(--white); }
.btn--dark:hover { --bg: var(--graphite-2); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); clip-path: none; }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--text); clip-path: none; }
.btn--outline:hover { background: var(--text); color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .btn-row .btn { width: 100%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 4px;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 768px) { .brand img { height: 48px; } }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 11px; white-space: nowrap;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--line); }
.main-nav a[aria-current] { border-bottom-color: var(--yellow); }

.header-actions { display: none; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--yellow-dark); }
.header-actions .btn { min-height: 46px; padding: 0 18px; font-size: 13px; }

.nav-toggle {
  margin-left: auto; width: 48px; height: 48px;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .main-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--white); padding: 16px var(--gutter) 120px; overflow-y: auto;
    opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 18px 0; font-size: 20px; font-family: var(--font-title); border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current] { color: var(--yellow-dark); border-bottom-color: var(--line); }
  .main-nav .nav-mobile-cta { display: grid; gap: 12px; margin-top: 28px; }
  .main-nav .nav-mobile-cta .btn { font: 700 14px/1 var(--font-text); padding: 0 26px; border: 2px solid var(--bg); }
  .main-nav .nav-mobile-cta .btn--outline { border-color: var(--text); }
}
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
  .main-nav .nav-mobile-cta { display: none; }
}

/* ---------- Barre mobile fixe ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.3fr;
  height: 64px; background: var(--black);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.mobile-bar a svg { width: 20px; height: 20px; }
.mobile-bar .mb-call { color: var(--white); border-right: 1px solid var(--line-dark); }
.mobile-bar .mb-quote { background: var(--yellow); color: var(--black); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Photos (emplacements) ----------
   Chaque emplacement affiche le brief photo tant que l'image n'existe pas.
   Il suffit de déposer le fichier au nom indiqué dans assets/img/photos/. */
.photo {
  position: relative; margin: 0; overflow: hidden;
  background-color: var(--graphite);
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  aspect-ratio: 4 / 3;
  color: var(--muted-dark);
}
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo-brief {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 20px; font-size: 13px; line-height: 1.45;
}
.photo-brief::before {
  content: ""; position: absolute; top: 20px; left: 20px; width: 28px; height: 32px;
  border: 2px solid rgba(245,181,27,.55);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(245,181,27,.12);
}
.photo-brief strong { color: var(--yellow); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.photo-brief code { font-size: 11px; color: var(--gray); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); background: var(--ink); overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
.hero-media .photo-brief { justify-content: flex-start; align-items: flex-end; text-align: right; padding: 24px var(--gutter); }
.hero-media .photo-brief::before { display: none; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(8,9,10,.94) 0%, rgba(8,9,10,.82) 45%, rgba(8,9,10,.45) 100%),
    linear-gradient(0deg, rgba(8,9,10,.7) 0%, transparent 40%);
}
.hero-inner { position: relative; z-index: 3; padding-top: 64px; padding-bottom: 56px; }
@media (min-width: 900px) { .hero-inner { padding-top: 120px; padding-bottom: 104px; } }
@media (max-width: 899px) { .hero-media .photo-brief { display: none; } }
.hero h1 { max-width: 880px; margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-proofs { display: grid; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
@media (min-width: 640px) { .hero-proofs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .hero-proofs { grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 40px; } }
.hero-proofs li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; }
.check {
  flex: none; width: 20px; height: 20px; margin-top: 2px; display: grid; place-items: center;
  background: var(--yellow); color: var(--black);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.check svg { width: 11px; height: 11px; }

/* Hero des pages internes */


/* ---------- Bénéfices installateurs ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; } .split--even { grid-template-columns: 1fr 1fr; } }
.benefits { border-top: 2px solid var(--text); }
.benefit { display: grid; grid-template-columns: 56px 1fr; gap: 4px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.benefit-idx { font-family: var(--font-title); font-size: 15px; color: var(--yellow-dark); padding-top: 4px; }
.benefit h3 { font-size: 20px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 8px; }
.benefit p { color: var(--muted); grid-column: 2; }
.sticky-col { position: relative; }
@media (min-width: 960px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ---------- Cartes prestations ---------- */
.service-tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ticks { display: grid; gap: 10px; }
@media (min-width: 560px) { .ticks--2 { grid-template-columns: 1fr 1fr; gap: 10px 24px; } }
.ticks li { position: relative; padding-left: 22px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--yellow-dark); }
.section--dark .ticks li::before, .dark .ticks li::before { background: var(--yellow); }
.ticks li.hl { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--text); border-radius: var(--radius);
}
.chip--y { background: var(--yellow); border-color: var(--yellow); }
.section--dark .chip { border-color: rgba(255,255,255,.35); }

/* ---------- Secteurs ---------- */
.sectors { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
@media (min-width: 640px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
.sector { background: var(--ink); padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; transition: background .2s; }
.sector:hover { background: var(--graphite); }
.sector-ico { width: 44px; height: 44px; color: var(--yellow); margin-bottom: 8px; }
.sector h3 { font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }
.sector p { color: var(--muted-dark); font-size: 15px; }
.sector--cta { background: var(--yellow); color: var(--black); justify-content: space-between; }
.sector--cta:hover { background: #ffc73d; }
.sector--cta p { color: rgba(0,0,0,.75); }
.sector--cta a { color: var(--black); }



/* ---------- Process ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 28px 24px 32px 0; border-top: 1px solid var(--line-dark); }
@media (min-width: 768px) { .step { padding: 32px 32px 40px 0; } }
.step-num {
  display: grid; place-items: center; width: 52px; height: 58px; margin-bottom: 20px;
  font-family: var(--font-title); font-size: 18px; color: var(--black); background: var(--yellow);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.step h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.step p { color: var(--muted-dark); font-size: 15px; max-width: 34ch; }
.section:not(.section--dark) .step { border-top-color: var(--line); }
.section:not(.section--dark) .step p { color: var(--muted); }

/* ---------- Pourquoi nous ---------- */
.reasons { display: grid; gap: 20px; }
@media (min-width: 768px) { .reasons { grid-template-columns: 1fr 1fr; gap: 24px; } }
.reason { background: var(--white); border: 1px solid var(--line); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--yellow); }
.reason h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .02em; }
.reason p { color: var(--muted); }
.proof-line { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; }
.proof-line b { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; }



/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--font-title); font-size: 20px; background: var(--paper); transition: transform .2s, background .2s;
}
.faq details[open] summary::after { content: "–"; background: var(--yellow); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 760px; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; background: var(--black); color: var(--white); overflow: hidden; isolation: isolate; }
.cta-final::before {
  content: ""; position: absolute; z-index: -1; right: -140px; top: 50%; width: 520px; height: 600px; transform: translateY(-50%);
  border: 56px solid var(--yellow); opacity: .9;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.cta-final::after {
  content: ""; position: absolute; z-index: -1; right: -40px; top: 50%; width: 320px; height: 370px; transform: translateY(-50%);
  background: var(--graphite-2);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
@media (max-width: 899px) { .cta-final::before, .cta-final::after { opacity: .18; } }
.cta-final .container { padding-top: var(--section); padding-bottom: var(--section); }
.cta-final h2 { font-size: clamp(32px, 5.4vw, 60px); margin-bottom: 20px; max-width: 760px; }
.cta-final .lead { margin-bottom: 32px; }
.doc-types { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.doc-types span { display: inline-flex; align-items: center; gap: 18px; }
.doc-types span + span::before { content: ""; width: 5px; height: 5px; background: var(--yellow); }

/* ---------- Formulaire ---------- */
.form-wrap { display: grid; gap: 40px; }
@media (min-width: 1024px) { .form-wrap { grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: start; } }
.quote-form { background: var(--white); border: 1px solid var(--line); padding: 28px 20px; }
@media (min-width: 768px) { .quote-form { padding: 44px 40px; } }
.quote-form h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.form-intro { color: var(--muted); margin-bottom: 28px; }
.fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.fieldset legend { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0 0 14px; display: flex; gap: 10px; align-items: center; width: 100%; }
.fieldset legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 18px 20px; } }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 14px; font-weight: 500; }
.req { color: var(--yellow-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 16px/1.4 var(--font-text); color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); background: var(--white); box-shadow: 0 0 0 3px rgba(245,181,27,.45); }
.field .hint { font-size: 13px; color: var(--muted); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .field.is-invalid .seg { border-color: #c0392b; }
.field .err { display: none; font-size: 13px; color: #b03023; font-weight: 500; }
.field.is-invalid .err { display: block; }

.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-height: 52px; padding: 8px; text-align: center; cursor: pointer; font-weight: 700; font-size: 14px; background: var(--paper); border-right: 1px solid var(--line); transition: background .15s; }
.seg label:last-of-type { border-right: 0; }
.seg input:checked + label { background: var(--black); color: var(--white); }
.seg input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: -3px; }

.dropzone {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center;
  padding: 28px 20px; border: 2px dashed var(--gray); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--black); background: #fff8e6; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 32px; height: 32px; color: var(--yellow-dark); }
.dropzone b { font-size: 15px; }
.dropzone span { font-size: 13px; color: var(--muted); }
.file-list { display: grid; gap: 6px; margin-top: 10px; font-size: 14px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--paper); border-left: 3px solid var(--yellow); }
.file-list small { color: var(--muted); white-space: nowrap; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 8px 0 24px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--black); flex: none; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-status { display: none; margin-top: 18px; padding: 16px 18px; font-weight: 500; border-left: 4px solid var(--yellow); background: var(--paper); }
.form-status.is-visible { display: block; }

.aside-stack { display: grid; gap: 20px; }
@media (min-width: 1024px) { .aside-stack { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-card { padding: 28px 24px; border: 1px solid var(--line); background: var(--white); }
.aside-card--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.aside-card h3 { font-size: 19px; margin-bottom: 14px; }
.aside-card p { color: var(--muted); font-size: 15px; }
.aside-card--dark p { color: var(--muted-dark); }
.big-phone { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; font-family: var(--font-title); font-size: clamp(22px, 2.4vw, 28px); text-decoration: none; color: var(--yellow); }
.big-phone svg { width: 26px; height: 26px; flex: none; }
.mini-steps { display: grid; gap: 14px; counter-reset: ms; }
.mini-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 15px; }
.mini-steps li::before { counter-increment: ms; content: counter(ms); display: grid; place-items: center; width: 28px; height: 31px; font-family: var(--font-title); font-size: 13px; background: var(--yellow); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* À propos */
.prose p { color: var(--muted); font-size: 17px; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--text); }

.zone { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .zone { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); font-size: 15px; }
.footer-top { display: grid; gap: 40px; padding: 64px 0 48px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-brand img { height: 56px; width: auto; margin-left: -6px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { font-family: var(--font-text); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-phone { color: var(--yellow) !important; font-weight: 700; font-size: 18px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Utilitaires ---------- */
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; }
.maxw-640 { max-width: 640px; }
.note { font-size: 14px; color: var(--muted); }
.section--dark .note { color: var(--muted-dark); }

/* Apparition douce au scroll (désactivée si mouvement réduit) */
.reveal { transform: translateY(12px); transition: transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Libellés de navigation raccourcis sur les écrans intermédiaires */
@media (min-width: 1100px) and (max-width: 1439px) {
  .main-nav .nav-pre { display: none; }
  .header-phone .tbd { font-size: .78em; }
}

/* Bloc zone d'intervention (À propos) */
.zone-k { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.zone-badge strong { font-family: var(--font-title); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; }
.zone-plus { font-family: var(--font-title); color: var(--yellow); font-size: clamp(18px, 2vw, 22px); }
.zone-hq { margin-top: 10px; font-size: 14px; color: var(--muted-dark); }

/* Mentions légales repliables (pied de page) */
.legal { border-top: 1px solid var(--line-dark); }
.legal summary { cursor: pointer; padding: 18px 0; font-size: 14px; font-weight: 500; color: var(--muted-dark); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; font-family: var(--font-title); color: var(--yellow); }
.legal[open] summary::after { content: "–"; }
.legal summary:hover { color: var(--white); }
.legal-body { display: grid; gap: 8px 48px; padding-bottom: 32px; font-size: 14px; }
@media (min-width: 900px) { .legal-body { grid-template-columns: 1fr 1fr; } }
.legal-body h4 { margin: 16px 0 8px; }
.legal-body p + p { margin-top: 10px; }

/* Photo de fond du haut de page */
.hero-media > img { object-position: 62% 40%; }


.zone-visual { position: relative; margin: 0; overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; background: var(--graphite); }
.zone-visual img { width: 100%; height: 100%; object-fit: cover; }
.zone-badge {
  position: absolute; left: 16px; bottom: 16px; display: grid; gap: 4px;
  padding: 20px 24px; background: var(--ink); color: var(--white); border-left: 4px solid var(--yellow);
}
@media (min-width: 900px) { .zone-badge { left: 24px; bottom: 24px; padding: 24px 28px; } }

/* Photos : un seul format (3:2) pour toutes les photos de section */
.media-photo { position: relative; margin: 0; overflow: hidden; background: var(--graphite); aspect-ratio: 3 / 2; max-width: 100%; }
.media-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Cartes Ventilation / Tuyauterie côte à côte */
.services { display: grid; gap: 24px; }
@media (min-width: 900px) { .services { grid-template-columns: 1fr 1fr; gap: 32px; } }
.service-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.service-body { padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
@media (min-width: 768px) { .service-body { padding: 36px 40px 40px; } }
.service-card h3 { font-size: clamp(24px, 2.8vw, 32px); }
.service-card .intro { color: var(--muted); }
.service-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 559px) { .service-card .btn { align-self: stretch; } }

.spec { border-top: 2px solid var(--text); padding-top: 16px; }
.spec-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.spec-list { margin: 0; }
.spec-list div { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec-list dt { font-family: var(--font-title); font-size: 17px; line-height: 1.2; }
.spec-list dt::before { content: ""; display: inline-block; width: 9px; height: 10px; margin-right: 8px; background: var(--yellow); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.spec-list dd { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 420px) { .spec-list div { grid-template-columns: 1fr; gap: 4px; } }

/* Boutons d'appel : le numéro remplace « Nous appeler » */
.btn--tel { letter-spacing: .04em; white-space: nowrap; }
.mobile-bar { grid-template-columns: 1.2fr 1fr; }
.mobile-bar .mb-call { letter-spacing: .02em; font-size: 15px; white-space: nowrap; }

/* Départements couverts (À propos) */
.depts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 12px; }
.dept { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); background: var(--white); font-size: 14px; color: var(--muted); }
.dept b { font-family: var(--font-title); font-weight: 400; font-size: 16px; color: var(--text); }
.dept--hq { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.dept--hq b { color: var(--black); }
.form-note a, .hint a { color: inherit; }

/* Gaines de ventilation : carte vedette */
@media (min-width: 1024px) { .services--featured { grid-template-columns: 1.35fr 1fr; } }
.service-card--featured { border: 2px solid var(--text); }
.service-card--featured .media-photo { position: relative; }
.badge-spec {
  position: absolute; z-index: 2; top: 16px; left: 16px;
  padding: 8px 12px; background: var(--yellow); color: var(--black);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.thk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.thk-tile { background: var(--ink); color: var(--white); padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.thk-num { font-family: var(--font-title); font-size: clamp(40px, 5vw, 56px); line-height: .95; color: var(--yellow); letter-spacing: -0.02em; }
.thk-num small { font-size: .36em; color: var(--white); margin-left: 4px; letter-spacing: 0; }
.thk-tile p { font-size: 14px; line-height: 1.45; color: var(--muted-dark); }
@media (max-width: 380px) { .thk-tiles { grid-template-columns: 1fr; } }

/* Les deux photos des cartes ont la même hauteur, même si la carte ventilation est plus large */
@media (min-width: 900px) {
  .services--featured .media-photo { aspect-ratio: auto; height: clamp(260px, 24vw, 340px); }
}

/* Photo carrée de la zone d'intervention (À propos) */
.zone-visual--square { aspect-ratio: 1 / 1; width: 100%; max-width: 440px; justify-self: center; margin-inline: auto; }
.zone-visual--square img { object-position: 50% 45%; }
.zone-visual--square .zone-badge { left: 14px; bottom: 14px; padding: 14px 18px; gap: 2px; }
.zone-visual--square .zone-badge strong { font-size: clamp(22px, 2.4vw, 28px); }
.zone-visual--square .zone-plus { font-size: 16px; }
.zone-visual--square .zone-k { font-size: 11px; }

/* Mentions légales : titre affiché, non cliquable */
.legal-title { margin: 0; padding: 18px 0; font-size: 14px; font-weight: 500; color: var(--muted-dark); }
.footer-bottom nav span { color: inherit; }
.legal-body[hidden] { display: none; }
