/* ──────────────────────────────────────────────
   Hi-fi · Site Plombier-chauffagiste
   Palette bleu plomberie · Manrope/Sora · UI moderne
   ────────────────────────────────────────────── */

:root {
  /* brand */
  --c-deep:    #0b2a6b;
  --c-primary: #1d4ed8;
  --c-bright:  #2563eb;
  --c-cyan:    #0ea5e9;
  --c-cyan-50: #e0f2fe;
  --c-blue-50: #eff5ff;
  --c-blue-100:#dbe7fe;

  --c-accent:  #f59e0b;     /* warm — urgence/CTA secondaire */
  --c-accent-d:#d97706;

  /* neutrals */
  --c-bg:      #f6f8fc;
  --c-bg-2:    #eef2f9;
  --c-surface: #ffffff;
  --c-ink:     #0b1220;
  --c-ink-2:   #1e293b;
  --c-mute:    #475569;
  --c-mute-2:  #64748b;
  --c-line:    #e6ebf4;
  --c-line-2:  #d8dfeb;

  /* status */
  --c-good:    #16a34a;
  --c-warn:    #ea580c;

  /* radii / shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --sh-2: 0 6px 16px -6px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --sh-3: 0 20px 40px -16px rgba(15,40,120,.18), 0 6px 14px -8px rgba(15,40,120,.10);
  --sh-ring: 0 0 0 6px rgba(29,78,216,.10);

  /* fonts */
  --f-sans:    'Manrope', system-ui, sans-serif;
  --f-display: 'Sora', 'Manrope', system-ui, sans-serif;
}

/* ── frame ──────────────────────────────────── */
.hf {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  isolation: isolate;
}
.hf *, .hf *::before, .hf *::after { box-sizing: border-box; }
.hf img { max-width: 100%; display: block; }

/* ── typography utility ─────────────────────── */
.hf .display { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.hf .heading { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
.hf .subhead { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; }
.hf .eyebrow { font-family: var(--f-sans); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-primary); }
.hf .lede    { font-size: 18px; color: var(--c-mute); line-height: 1.5; }
.hf .mute    { color: var(--c-mute); }
.hf .small   { font-size: 13px; }
.hf .micro   { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mute-2); font-weight: 600; }
.hf .num     { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; }

/* ── buttons ────────────────────────────────── */
.hf .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-family: var(--f-sans); font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer; user-select: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.hf .btn:hover { transform: translateY(-1px); }
.hf .btn--primary {
  background: linear-gradient(180deg, var(--c-bright) 0%, var(--c-primary) 100%);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(29,78,216,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.hf .btn--dark   { background: var(--c-ink); color: #fff; }
.hf .btn--ghost  { background: transparent; color: var(--c-ink); border-color: var(--c-line-2); }
.hf .btn--ghost:hover { background: var(--c-bg-2); }
.hf .btn--accent { background: var(--c-accent); color: #1a1208; box-shadow: 0 8px 18px -6px rgba(245,158,11,.5); }
.hf .btn--white  { background: #fff; color: var(--c-ink); border-color: var(--c-line); }
.hf .btn--lg { padding: 16px 26px; font-size: 16px; }
.hf .btn--sm { padding: 8px 14px; font-size: 13px; }
.hf .btn--xl { padding: 18px 30px; font-size: 17px; }
.hf .btn--full { width: 100%; }

/* ── chips / badges ─────────────────────────── */
.hf .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600;
  background: var(--c-blue-50); color: var(--c-primary);
  border: 1px solid var(--c-blue-100);
}
.hf .chip--neutral { background: var(--c-bg-2); color: var(--c-ink-2); border-color: var(--c-line); }
.hf .chip--dark    { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.hf .chip--accent  { background: #fff7ed; color: var(--c-accent-d); border-color: #fed7aa; }
.hf .chip--good    { background: #ecfdf5; color: var(--c-good); border-color: #a7f3d0; }
.hf .chip--solid   { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.hf .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hf .chip-live .chip-dot { background: var(--c-good); box-shadow: 0 0 0 4px rgba(22,163,74,.18); }

/* ── cards ──────────────────────────────────── */
.hf .card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.hf .card--soft  { box-shadow: var(--sh-1); }
.hf .card--lift  { box-shadow: var(--sh-3); }
.hf .card--dark  { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.hf .card--brand { background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-primary) 100%); color: #fff; border-color: transparent; }
.hf .card--ghost { background: var(--c-bg-2); border-color: var(--c-line); box-shadow: none; }
.hf .card--bordered { box-shadow: none; }

/* ── nav ────────────────────────────────────── */
.hf .nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 14px 56px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.hf .nav__topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 56px; font-size: 13px;
  background: var(--c-ink); color: #cbd5e1;
}
.hf .nav__topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.hf .nav__logo {
  font-family: var(--f-display); font-weight: 800; font-size: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--c-ink); text-decoration: none;
}
.hf .nav__logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-deep), var(--c-bright));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 14px -4px rgba(29,78,216,.45);
}
.hf .nav__links { display: flex; gap: 28px; flex: 1; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: 15px; }
.hf .nav__links a { color: var(--c-ink-2); text-decoration: none; }
.hf .nav__links a.active { color: var(--c-primary); }
.hf .nav__cta { display: flex; gap: 10px; align-items: center; }

/* ── hero gradient ──────────────────────────── */
.hf .hero {
  position: relative;
  padding: 64px 56px 80px;
  overflow: hidden;
}
.hf .hero--brand {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(29,78,216,.10), transparent 60%),
    linear-gradient(180deg, var(--c-blue-50) 0%, var(--c-bg) 100%);
}

/* ── decorative blobs ────────────────────────── */
.hf .blob {
  position: absolute; filter: blur(40px); opacity: .5; pointer-events: none;
}

/* ── photo placeholder ───────────────────────── */
.hf .photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-primary) 60%, var(--c-cyan) 110%);
  color: rgba(255,255,255,.7); display: grid; place-items: center;
  font-family: var(--f-sans); font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.hf .photo--soft {
  background: linear-gradient(135deg, #cfe0ff 0%, #e0f2fe 100%);
  color: var(--c-mute);
}
.hf .photo--dark {
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  color: rgba(255,255,255,.5);
}
.hf .photo__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.5); color: #fff; padding: 4px 10px;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(8px);
}
.hf .photo__tag--good { background: rgba(22,163,74,.85); }
.hf .photo__caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  color: #fff; font-size: 13px; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── star rating ────────────────────────────── */
.hf .stars { display: inline-flex; gap: 2px; color: var(--c-accent); }
.hf .stars svg { width: 16px; height: 16px; fill: currentColor; }
.hf .stars--lg svg { width: 22px; height: 22px; }

/* ── service icon tile ──────────────────────── */
.hf .icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--c-blue-50);
  color: var(--c-primary);
  display: grid; place-items: center;
  border: 1px solid var(--c-blue-100);
}
.hf .icon-tile--accent { background: #fff7ed; color: var(--c-accent-d); border-color: #fed7aa; }
.hf .icon-tile--ink { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ── stat ───────────────────────────────────── */
.hf .stat-num { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.02em; color: var(--c-ink); }
.hf .stat-lbl { font-size: 13px; color: var(--c-mute); font-weight: 500; }

/* ── input ──────────────────────────────────── */
.hf .input, .hf .select, .hf .textarea {
  width: 100%; background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--f-sans); font-size: 15px;
  color: var(--c-ink);
  transition: border .15s, box-shadow .15s;
}
.hf .input:focus, .hf .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--sh-ring); }
.hf .field-label { font-size: 13px; font-weight: 600; color: var(--c-ink-2); margin-bottom: 6px; display: block; }
.hf .field-hint  { font-size: 12px; color: var(--c-mute-2); margin-top: 4px; }

/* ── sticky call bar (mobile-style at bottom) ─ */
.hf .stickbar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 9;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: var(--c-ink); color: #fff;
  border-top: 1px solid var(--c-ink-2);
  box-shadow: 0 -10px 30px rgba(0,0,0,.18);
}
.hf .stickbar__phone { font-family: var(--f-display); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }

/* ── footer ─────────────────────────────────── */
.hf .footer {
  background: var(--c-ink); color: #94a3b8;
  padding: 64px 56px 28px;
  font-size: 14px;
  position: relative; z-index: 9;
}
.hf .footer h4 { font-family: var(--f-display); color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.hf .footer a  { color: #cbd5e1; text-decoration: none; }
.hf .footer a:hover { color: #fff; }
.hf .footer__bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; color: #64748b; font-size: 13px; }

/* ── progress ───────────────────────────────── */
.hf .progress { height: 6px; background: var(--c-line); border-radius: 99px; overflow: hidden; }
.hf .progress > div { height: 100%; background: linear-gradient(90deg, var(--c-bright), var(--c-cyan)); border-radius: 99px; }

/* ── dividers / sections ─────────────────────── */
.hf .section { padding: 80px 56px; }
.hf .section--tight { padding: 56px 56px; }
.hf .section--alt { background: var(--c-bg-2); }
.hf .section--dark { background: var(--c-ink); color: #fff; }
.hf .container { max-width: 1180px; margin: 0 auto; }

/* ── breadcrumb ────────────────────────────── */
.hf .crumbs { display: flex; gap: 8px; color: var(--c-mute-2); font-size: 13px; font-weight: 500; }
.hf .crumbs a { color: var(--c-mute); text-decoration: none; }

/* ── tabs ──────────────────────────────────── */
.hf .tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-pill); box-shadow: var(--sh-1); }
.hf .tab { padding: 8px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--c-mute); cursor: pointer; }
.hf .tab.active { background: var(--c-ink); color: #fff; }

/* ── accordion ───────────────────────────── */
.hf .acc { border-bottom: 1px solid var(--c-line); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.hf .acc__q { font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--c-ink); }
.hf .acc__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--c-blue-50); color: var(--c-primary); display: grid; place-items: center; font-weight: 700; flex: none; }

/* ── before-after split ──────────────────────── */
.hf .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hf .ba .photo { aspect-ratio: 4/3; }

/* ── checkbox-card ──────────────────────────── */
.hf .check-card {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border: 1.5px solid var(--c-line);
  border-radius: var(--r-md); background: #fff; cursor: pointer;
  transition: border .15s, background .15s, box-shadow .15s;
}
.hf .check-card:hover { border-color: var(--c-line-2); }
.hf .check-card.is-selected { border-color: var(--c-primary); background: var(--c-blue-50); box-shadow: var(--sh-ring); }
.hf .check-card .ck {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--c-line-2);
  display: grid; place-items: center; color: #fff; flex: none;
}
.hf .check-card.is-selected .ck { background: var(--c-primary); border-color: var(--c-primary); }

/* ── reviews ───────────────────────────────── */
.hf .review-card { padding: 24px; }
.hf .review-card .review-quote { font-family: var(--f-display); font-weight: 500; font-size: 17px; line-height: 1.5; color: var(--c-ink); margin: 12px 0; }
.hf .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-primary) 100%);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--f-display);
}

/* ── grids helpers ───────────────────────── */
.hf .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hf .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hf .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ── floating call FAB ────────────────────── */
.hf .fab {
  position: absolute; right: 24px; bottom: 24px; z-index: 8;
  display: flex; gap: 10px;
}
.hf .fab__btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; cursor: pointer;
  box-shadow: 0 12px 24px -6px rgba(0,0,0,.3);
}
.hf .fab__btn--phone { background: var(--c-primary); }
.hf .fab__btn--wa { background: #25d366; }

/* ── map (decorative) ────────────────────── */
.hf .mapbox {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 52%, rgba(29,78,216,.20) 0 110px, transparent 110px),
    radial-gradient(circle at 70% 64%, rgba(245,158,11,.20) 0 70px, transparent 70px),
    linear-gradient(180deg, #e8effb 0%, #f6f8fc 100%);
}
.hf .mapbox::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(15,23,42,.04) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(15,23,42,.04) 22px 23px);
  mask: linear-gradient(180deg, transparent 0, #000 30%, #000 80%, transparent 100%);
}
.hf .map-pin {
  position: absolute; transform: translate(-50%,-100%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-weight: 700; color: var(--c-ink); font-size: 12px;
  z-index: 2;
}
.hf .map-pin .dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--c-primary); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hf .map-pin--accent .dot { background: var(--c-accent); }

/* ── pill list (zones served) ──────────── */
.hf .pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hf .pill-list span {
  padding: 6px 12px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-pill); font-size: 13px; color: var(--c-ink-2); font-weight: 500;
}

/* ── numbered step ─────────────────────── */
.hf .step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
  flex: none;
}
.hf .step-num--brand { background: linear-gradient(135deg, var(--c-bright), var(--c-cyan)); }

/* ── KPI big numbers row ──────────────── */
.hf .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── price tag ──────────────────────────── */
.hf .price {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--f-display); font-weight: 700; color: var(--c-ink);
}
.hf .price .from { font-family: var(--f-sans); font-weight: 500; font-size: 13px; color: var(--c-mute); }
.hf .price .val  { font-size: 22px; }
.hf .price .unit { font-size: 13px; color: var(--c-mute); }

/* ── feature row ─────────────────────── */
.hf .feature { display: flex; gap: 14px; align-items: flex-start; }
.hf .feature .icon-tile { width: 44px; height: 44px; border-radius: 12px; }

/* ── certification logos ─────────────── */
.hf .cert {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; color: var(--c-ink-2);
}
.hf .cert::before {
  content: "✓"; color: var(--c-good); font-weight: 800;
}

/* hide sticky if toggled off */
body.hide-sticky .hf .stickbar { display: none; }

/* ── Images réelles dans les emplacements .photo ── */
.hf .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Variante "réalisation" : photo unique en ratio paysage (remplace une paire avant/après) */
.hf .photo--ratio { aspect-ratio: 16 / 10; height: auto; }

/* ── Recadrage : garder l'essentiel du sujet visible dans le cadre ── */
.hf .photo img[src*="climatisation-reversible"] { object-position: center 40%; }
.hf .photo img[src*="remplacement-radiateur"]   { object-position: center 28%; }
.hf .photo img[src*="renovation-sdb-marseille"] { object-position: center 42%; }
.hf .photo img[src*="clim%202"]                 { object-position: center 32%; }
.hf .photo img[src*="Ballon"]                   { object-position: center 35%; }
.hf .photo img[src*="pose-bati-support"]        { object-position: center 45%; }
.hf .photo img[src*="adoucisseur"]              { object-position: center 45%; }

/* ── Galerie cliquable : indiquer qu'on peut agrandir la photo ── */
.hf .photo img { cursor: zoom-in; }
.hf .photo { position: relative; }
.hf .photo::after {
  content: ""; position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(11,42,107,.55) center/18px 18px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease;
  pointer-events: none; backdrop-filter: blur(2px);
}
.hf .photo:hover::after { opacity: 1; transform: scale(1); }

/* Photo non interactive : ni loupe, ni agrandissement (ex. visuel du hero) */
.hf .photo--static::after { content: none; display: none; }
.hf .photo--static img { cursor: default; }

/* ══════════════════════════════════════════════════
   SITE RÉEL — base, navigation cliquable, responsive
   ══════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--c-bg);
  font-family: var(--f-sans);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
}
/* page wrapper replaces the fixed-height frame: let the page flow & scroll */
.hf { height: auto; min-height: 100vh; overflow: visible; }

/* ── real navigation ───────────────────────── */
.hf .nav { gap: 24px; }
.hf .nav__logo { text-decoration: none; }
.hf .nav__menu {
  display: flex; align-items: center; gap: 28px; flex: 1;
}
.hf .nav__links a { transition: color .15s; }
.hf .nav__links a:hover { color: var(--c-primary); }
.hf .nav__cta { margin-left: auto; }
.hf .nav__burger {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--c-line-2); background: #fff;
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--c-ink); margin-left: auto;
}
.hf .nav__burger svg { width: 22px; height: 22px; }
.hf a { -webkit-tap-highlight-color: transparent; }

/* clickable cards / links cursor */
.hf .btn, .hf .tab, .hf .acc, .hf .check-card, .hf .nav__links a { cursor: pointer; }

/* ── responsive ─────────────────────────────── */
@media (max-width: 1080px) {
  .hf .section, .hf .hero { padding-left: 32px; padding-right: 32px; }
  .hf .nav, .hf .nav__topbar { padding-left: 28px; padding-right: 28px; }
  .hf .footer { padding-left: 32px; padding-right: 32px; }
  .hf .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hf .kpis  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* collapse the topbar to essentials */
  .hf .nav__topbar { font-size: 12px; gap: 8px; }
  .hf .nav__topbar .hide-sm { display: none !important; }

  /* burger menu */
  .hf .nav { position: sticky; flex-wrap: wrap; }
  .hf .nav__burger { display: inline-flex; }
  .hf .nav__menu {
    display: none;
    flex-direction: column; align-items: stretch; gap: 4px;
    flex-basis: 100%; order: 3;
    padding: 8px 0 4px;
  }
  .hf .nav.is-open .nav__menu { display: flex; }
  .hf .nav__links {
    flex-direction: column; gap: 0; width: 100%;
  }
  .hf .nav__links a {
    display: block; padding: 13px 6px; font-size: 16px;
    border-bottom: 1px solid var(--c-line);
  }
  .hf .nav__cta {
    margin: 12px 0 4px; flex-direction: column; align-items: stretch; gap: 10px;
  }
  .hf .nav__cta .btn, .hf .nav__cta a { width: 100%; }

  /* sections tighter */
  .hf .section { padding: 52px 20px; }
  .hf .section--tight { padding: 40px 20px; }
  .hf .hero { padding: 40px 20px 52px !important; }
  .hf .footer { padding: 48px 20px 24px; }

  /* stack every multi-column grid */
  .hf .grid-3, .hf .grid-4, .hf .grid-2, .hf .kpis { grid-template-columns: 1fr; }

  /* typographic scale down */
  .hf .display { font-size: clamp(30px, 8vw, 44px) !important; }
  .hf h1.display { font-size: clamp(32px, 9vw, 46px) !important; }
  .hf .lede { font-size: 16px; }

  /* footer columns stack */
  .hf .footer .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .hf .footer__bottom { flex-direction: column; gap: 10px; }

  /* generic two-column splits → stack (set on .split utility) */
  .hf .split { grid-template-columns: 1fr !important; gap: 32px !important; }
  .hf .split-3070 { grid-template-columns: 1fr !important; }

  /* hide decorative floating cards on small screens */
  .hf .hero-float { display: none !important; }
}

@media (max-width: 520px) {
  .hf .footer .footer-grid { grid-template-columns: 1fr !important; }
  .hf .tabs { flex-wrap: wrap; border-radius: var(--r-lg); }
  .hf .stat-num { font-size: 32px; }
}

/* ── utility: generic responsive split (collapses via media query) ── */
.hf .split { display: grid; gap: 56px; align-items: center; }

/* ── devis form: real states ────────────────── */
.hf .input.is-error, .hf .textarea.is-error, .hf .select.is-error {
  border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}
.hf .err-msg { color: #dc2626; font-size: 12.5px; margin-top: 6px; font-weight: 600; display: none; }
.hf .err-msg.show { display: block; }
.hf .opt-pill {
  padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--c-line-2); background: #fff;
  color: var(--c-ink-2); font-weight: 600; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; user-select: none;
  transition: border .15s, background .15s, color .15s;
}
.hf .opt-pill:hover { border-color: var(--c-line); }
.hf .opt-pill.is-selected { border-color: var(--c-primary); background: var(--c-blue-50); color: var(--c-primary); }
.hf .opt-pill .opt-check { display: none; }
.hf .opt-pill.is-selected .opt-check { display: inline-flex; }
.hf .check-card.col { flex-direction: column; text-align: center; padding: 16px; position: relative; }
.hf .check-card .ck-corner { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; }

/* success panel */
.hf .form-success { display: none; text-align: center; padding: 20px 8px; }
.hf .form-success.show { display: block; }
.hf .success-tick {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
  background: #ecfdf5; color: var(--c-good); display: grid; place-items: center;
  border: 1px solid #a7f3d0;
}

/* skip-to-content helper for a11y (visually hidden) */
.hf .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════════════
   CTA D'APPEL — rouge "urgence" accordé à la charte
   Cible tous les boutons d'appel (href="tel:…") sur
   toutes les pages, sans toucher au HTML. Le CTA
   "Devis" reste bleu (action principale).
   ══════════════════════════════════════════════════ */
:root {
  --c-call:   #e02424;   /* rouge urgence, légèrement chaud → s'accorde au bleu/orange */
  --c-call-d: #b51717;
  --c-call-l: #f3473a;
}
.hf a.btn[href^="tel:"],
.hf .btn--call {
  background: linear-gradient(180deg, var(--c-call-l) 0%, var(--c-call) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(224,36,36,.45), inset 0 1px 0 rgba(255,255,255,.22);
}
.hf a.btn[href^="tel:"]:hover,
.hf .btn--call:hover {
  background: linear-gradient(180deg, var(--c-call) 0%, var(--c-call-d) 100%);
}

/* numéro dans la barre supérieure : rouge clair lisible sur fond sombre */
.hf .nav__topbar a[href^="tel:"] { color: #ff6b5e; font-weight: 800; }

/* FAB téléphone : rouge + pulsation discrète pour souligner l'urgence */
.hf .fab__btn--phone {
  background: linear-gradient(180deg, var(--c-call-l), var(--c-call));
  animation: call-pulse 2.2s ease-out infinite;
}
@keyframes call-pulse {
  0%   { box-shadow: 0 12px 24px -6px rgba(0,0,0,.3), 0 0 0 0 rgba(224,36,36,.5); }
  70%  { box-shadow: 0 12px 24px -6px rgba(0,0,0,.3), 0 0 0 16px rgba(224,36,36,0); }
  100% { box-shadow: 0 12px 24px -6px rgba(0,0,0,.3), 0 0 0 0 rgba(224,36,36,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hf .fab__btn--phone { animation: none; }
}

/* ── Trust ticker — défilement infini droite → gauche ── */
.trust-ticker {
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.trust-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  will-change: transform;
}
.trust-ticker:hover .trust-ticker__track { animation-play-state: paused; }
.trust-ticker__sep {
  color: var(--c-primary);
  font-size: 9px;
  opacity: .4;
  flex-shrink: 0;
}
.trust-ticker__stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-mute);
}
.trust-ticker__stars .stars svg { width: 13px; height: 13px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-ticker__track { animation: none; }
}

/* ── Blur-fade-in : titre H1 hero (équivalent BlurFade de framer-motion) ── */
@keyframes blur-fade-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(10px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}
.hf h1.display {
  animation: blur-fade-in 0.6s ease-out 0.15s both;
}
@media (prefers-reduced-motion: reduce) {
  .hf h1.display { animation: none; }
}

/* ══════════════════════════════════════════════════
   EFFETS DYNAMIQUES — reveal au scroll, hover, nav, progress
   (pilotés par app.js · respectent prefers-reduced-motion)
   ══════════════════════════════════════════════════ */

/* Reveal au scroll — l'état caché ne s'applique que si JS est actif (.reveals-on),
   donc aucun contenu n'est masqué si JS échoue ou est désactivé. */
.reveals-on .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveals-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hover-lift sur les cartes de contenu + micro-animation des icônes */
.hf .card { transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease; }
.hf .card--soft:hover,
.hf .review-card:hover,
.hf .card--bordered:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-3);
}
.hf .card--soft .icon-tile { transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
.hf .card--soft:hover .icon-tile { transform: scale(1.08) rotate(-3deg); }

/* Flèche des liens "Demander un devis" qui glisse au survol */
.hf .card a svg { transition: transform .2s ease; }
.hf .card a:hover svg { transform: translateX(3px); }

/* Nav : ombre + fond plus dense au défilement */
.hf .nav { transition: box-shadow .25s ease, background .25s ease; }
.hf .nav.is-scrolled {
  box-shadow: 0 6px 20px -10px rgba(15,40,120,.25);
  background: rgba(255,255,255,.95);
}

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--c-primary), var(--c-cyan));
  z-index: 100; transition: width .12s linear;
  box-shadow: 0 0 8px rgba(14,165,233,.5);
}

@media (prefers-reduced-motion: reduce) {
  .hf .card--soft:hover,
  .hf .review-card:hover,
  .hf .card--bordered:hover { transform: none; }
  .scroll-progress { display: none; }
}

/* ══════════════════════════════════════════════════
   Lightbox — voir la photo en entier au clic
   ══════════════════════════════════════════════════ */
.bspc-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8, 16, 40, .88);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease;
}
.bspc-lightbox.is-open { display: flex; opacity: 1; }
.bspc-lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.bspc-lightbox img {
  max-width: min(1100px, 94vw); max-height: 84vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  transform: scale(.96); transition: transform .25s ease; background: #0b1430;
}
.bspc-lightbox.is-open img { transform: scale(1); }
.bspc-lightbox__cap { color: #e2e8f0; font-size: 14px; text-align: center; max-width: 80ch; }
.bspc-lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.bspc-lightbox__close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }
body.bspc-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .bspc-lightbox, .bspc-lightbox img { transition: none; }
  .bspc-lightbox img { transform: none; }
  .bspc-lightbox__close:hover { transform: none; }
}

/* ══════════════════════════════════════════════════
   Bandeau de consentement cookies (RGPD / CNIL)
   ══════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 95;
  max-width: min(540px, calc(100% - 32px));
  background: #fff; border: 1px solid var(--c-line);
  border-radius: 16px; box-shadow: 0 18px 50px -12px rgba(11,42,107,.35);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
  transform: translateY(160%); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.is-in { transform: translateY(0); opacity: 1; }
.cookie-banner__txt { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--c-ink); }
.cookie-banner__txt a { color: var(--c-primary); font-weight: 600; }
.cookie-banner__btns { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 560px) {
  .cookie-banner__btns { justify-content: stretch; }
  .cookie-banner__btns .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; transform: none; }
}
