/* ============================================================
     VIEW TRANSITIONS — navigation fluide entre pages
     ============================================================ */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-fade-out .15s ease; }
::view-transition-new(root) { animation: vt-fade-in  .15s ease; }
@keyframes vt-fade-out { to   { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } }

/* ============================================================
     BRAND PALETTES — from the ALLO PHIL RAMONE logo
     Blue #1e3fd8 · Yellow #f3c12a · Red accent #e8243a
     ============================================================ */
  :root,
  html[data-palette="marque"] {
    --bg:        #ffffff;
    --bg-alt:    #f4f6fb;
    --surface:   #ffffff;
    --ink:       #0f1640;        /* deep navy, from logo */
    --ink-2:     #2a3372;
    --muted:     #6a7097;
    --line:      #e3e7f4;
    --brand:     #1e3fd8;        /* primary blue */
    --brand-dark:#1731a8;
    --brand-soft:#e4e9fb;
    --yellow:    #f3c12a;        /* hex yellow */
    --yellow-soft:#fdf2ce;
    --red:       #e8243a;        /* spark red */
    --accent:        var(--brand);
    --accent-ink:    #ffffff;
    --accent-soft:   var(--brand-soft);
    --hero-tint: rgba(15,22,64,.62);
  }
  html[data-palette="sombre"] {
    --bg:        #0f1640;
    --bg-alt:    #172060;
    --surface:   #1c2770;
    --ink:       #ffffff;
    --ink-2:     #d6dcfb;
    --muted:     #9aa3d0;
    --line:      #2a3580;
    --brand:     #f3c12a;
    --brand-dark:#d9a81a;
    --brand-soft:rgba(243,193,42,.15);
    --yellow:    #f3c12a;
    --yellow-soft:rgba(243,193,42,.15);
    --red:       #ff4a5c;
    --accent:        #f3c12a;
    --accent-ink:    #0f1640;
    --accent-soft:   rgba(243,193,42,.18);
    --hero-tint: rgba(0,0,0,.55);
  }
  html[data-palette="clair"] {
    --bg:        #fffdf5;
    --bg-alt:    #fdf2ce;
    --surface:   #ffffff;
    --ink:       #0f1640;
    --ink-2:     #2a3372;
    --muted:     #6a7097;
    --line:      #f0e5c2;
    --brand:     #1e3fd8;
    --brand-dark:#1731a8;
    --brand-soft:#e4e9fb;
    --yellow:    #f3c12a;
    --yellow-soft:#fdf2ce;
    --red:       #e8243a;
    --accent:        var(--brand);
    --accent-ink:    #ffffff;
    --accent-soft:   var(--brand-soft);
    --hero-tint: rgba(15,22,64,.62);
  }

  /* ============================================================
     BASE
     ============================================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
  body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
  }
  h1,h2,h3,h4,h5 {
    font-family: var(--title-font, "Manrope"), system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--ink);
    margin: 0 0 .4em;
    text-wrap: balance;
  }
  h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
  h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
  h3 { font-size: clamp(1.2rem, 2.1vw, 1.4rem); }
  p  { margin: 0 0 1em; text-wrap: pretty; }
  a  { color: inherit; }
  img { max-width: 100%; display: block; }
  button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

  html[data-title-font="Fraunces"]      { --title-font: "Fraunces"; }
  html[data-title-font="Space Grotesk"] { --title-font: "Space Grotesk"; }
  html[data-title-font="Manrope"]       { --title-font: "Manrope"; }

  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  @media (min-width: 768px) { .container { padding: 0 40px; } }

  /* ============================================================
     HEADER
     ============================================================ */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in oklab, var(--bg) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .header-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 0;
  }
  .logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--ink);
    line-height: 1;
  }
  .logo img { height: 46px; width: auto; display: block; }
  @media (max-width: 900px) {
    .logo img { height: 44px; }
    .header-row { position: relative; justify-content: space-between; padding-left: 24px; padding-right: 20px; }
    .logo { position: static; transform: none; }
    .header-row > div:last-child { margin-left: auto; }
  }
  @media (max-width: 520px) { .logo img { height: 42px; } }

  nav.primary { display: flex; align-items: center; gap: 28px; }
  nav.primary a {
    text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem;
    padding: 8px 0; position: relative;
  }
  nav.primary a:hover { color: var(--brand); }
  nav.primary a.active { color: var(--brand); }
  nav.primary a.active::after {
    content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--brand); border-radius: 2px;
  }

  .header-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 18px; border-radius: 999px;
    background: transparent; color: var(--ink);
    text-decoration: none; font-weight: 700; font-size: .95rem;
    transition: color .15s ease;
    white-space: nowrap;
  }
  .header-cta:hover { color: var(--brand); }
  .header-cta svg { width: 16px; height: 16px; }
  .header-cta-label { white-space: nowrap; }

  .burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; color: var(--ink); }
  .burger svg { width: 20px; height: 20px; }

  .header-prestations {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 8px 8px 16px; border-radius: 999px;
    background: var(--yellow); color: var(--ink);
    font-weight: 700; font-size: .95rem; text-decoration: none;
    white-space: nowrap; transition: opacity .15s ease;
  }
  .header-prestations:hover { opacity: .82; }
  .header-prestations .arrow {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .header-prestations .arrow svg { width: 13px; height: 13px; }
  @media (max-width: 900px) {
    nav.primary { display: none; }
    .burger { display: inline-flex; }
    .header-cta { display: none; }
    .header-prestations { display: none; }
  }

  /* Mobile drawer */
  .mobile-drawer {
    position: fixed; inset: 0; background: rgba(15,22,64,.55);
    z-index: 100; display: none;
  }
  .mobile-drawer.open { display: block; }
  .mobile-drawer-panel {
    position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw);
    background: var(--bg); padding: 20px;
    display: flex; flex-direction: column; gap: 8px;
    animation: slideIn .22s ease;
  }
  @keyframes slideIn { from { transform: translateX(20px); opacity:0 } to { transform:none; opacity:1 } }
  .mobile-drawer a, .mobile-drawer button.navlink {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 12px; border-radius: 12px; text-decoration: none;
    font-family: var(--title-font, "Manrope"); font-weight: 700; font-size: 1.1rem;
    color: var(--ink); border-bottom: 1px solid var(--line);
    width: 100%; text-align: left;
  }
  .mobile-drawer a.cta { background: var(--brand); color: #fff; margin-top: 16px; border-bottom: 0; justify-content: center; gap: 10px; }
  .drawer-close { align-self: flex-end; margin-bottom: 8px; width: 44px; height: 44px; display:grid; place-items:center; border-radius: 10px; border: 1px solid var(--line); }

  /* ============================================================
     HERO — Fixter-style: solid blue, big claim, single CTA
     ============================================================ */
  .hero {
    position: relative; overflow: hidden;
    min-height: clamp(440px, 60vh, 600px);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: stretch;
    color: #fff;
    isolation: isolate;
    background:
      radial-gradient(circle at 85% 30%, rgba(255,255,255,.10), transparent 55%),
      radial-gradient(circle at 15% 90%, rgba(243,193,42,.18), transparent 55%),
      linear-gradient(135deg, #1e3fd8 0%, #2548e3 50%, #1731a8 100%);
  }
  .hero::before { display: none; }
  .hero::after { display: none; }
  .hero-text {
    padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 40px) clamp(40px, 5vw, 60px) max(24px, calc((100vw - 1280px)/2 + 24px));
    display: flex; flex-direction: column; justify-content: center;
    position: relative; z-index: 2;
  }
  .hero-inner { max-width: 760px; }
  .hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; margin-bottom: 22px; text-wrap: balance; }
  .hero h1 .highlight {
    color: var(--yellow);
    background: none;
    padding: 0;
  }
  .hero .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: .82rem; font-weight: 600;
    margin-bottom: 24px;
    width: fit-content;
    backdrop-filter: blur(6px);
  }
  .eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(243,193,42,.3); animation: heroPulse 2.2s ease-in-out infinite; }
  @keyframes heroPulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(243,193,42,.3); }
    50%     { box-shadow: 0 0 0 8px rgba(243,193,42,0); }
  }
  .hero p.lead { font-size: clamp(.98rem, 1.15vw, 1.08rem); color: rgba(255,255,255,.9); max-width: 500px; margin: 0 0 28px; line-height: 1.5; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .hero-cta-main {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 8px 8px 8px 26px; border-radius: 999px;
    background: var(--yellow); color: var(--ink);
    font-weight: 700; text-decoration: none; font-size: 1.05rem;
    white-space: nowrap;
    box-shadow: 0 14px 40px -10px rgba(243,193,42,.55);
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .hero-cta-main:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(243,193,42,.7); }
  .hero-cta-main .arrow {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .hero-cta-main .arrow svg { width: 20px; height: 20px; }
  .hero-cta-tel {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff; font-weight: 600; text-decoration: none;
    backdrop-filter: blur(6px);
  }
  .hero-cta-tel:hover { background: rgba(255,255,255,.18); }

  /* Trustpilot-style proof row à la Fixter */
  .hero-proof {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    margin-top: 28px;
    color: rgba(255,255,255,.92);
    font-size: .9rem;
  }
  .hero-proof-block { display: flex; flex-direction: column; gap: 4px; }
  .hero-proof-block .top { display: inline-flex; align-items: center; gap: 8px; }
  .hero-proof-block .top .label { font-weight: 700; font-size: .98rem; color: #fff; }
  .hero-proof-block .stars-wrap {
    display: inline-flex; align-items: center; gap: 1px;
    background: #00b67a; border-radius: 3px; padding: 3px 4px;
  }
  .hero-proof-block .stars-wrap svg { width: 14px; height: 14px; color: #fff; fill: #fff; }
  .hero-proof-block .proof-reviews { font-size: .82rem; color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; background: transparent; }
  .hero-proof-block .proof-reviews:hover { color: #fff; }
  .hero-proof-divider { width: 1px; height: 44px; background: rgba(255,255,255,.22); }
  .hero-proof-partner { display: flex; align-items: center; gap: 14px; }
  .hero-proof-partner .avec { font-size: .85rem; color: rgba(255,255,255,.75); }
  .hero-proof-partner .partner-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    font-weight: 700; font-size: .85rem; color: #fff;
    line-height: 1.1;
  }
  .hero-proof-partner .partner-pill .ico {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--yellow); color: var(--ink);
    display: inline-grid; place-items: center; font-size: 11px; font-weight: 800;
  }

  /* RIGHT: illustration column */
  .hero-illus {
    position: relative;
    overflow: hidden;
    background: transparent;
    border-left: 0;
  }
  .hero-illus svg.scene {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
  }
  .hero-illus::after { display: none; }
  .hero-illus .floating-badge {
    position: absolute; bottom: 14%; right: 6%;
    background: #e8243a;
    color: #fff;
    padding: 14px 22px 14px 18px;
    border-radius: 6px;
    font-weight: 800; font-size: 1rem; line-height: 1.2;
    box-shadow: 0 18px 40px -12px rgba(0,0,0,.4);
    transform: rotate(-6deg);
    z-index: 3;
    display: inline-flex; align-items: center; gap: 12px;
  }
  .hero-illus .floating-badge .badge-ico {
    flex: none;
    width: 26px; height: 26px; border-radius: 50%;
    background: #fff; color: #e8243a;
    display: inline-grid; place-items: center;
  }
  .hero-illus .floating-badge .badge-ico svg { width: 16px; height: 16px; }
  .hero-illus .floating-badge small {
    display: block; font-weight: 500; font-size: .85rem;
    color: var(--yellow); margin-top: 2px;
  }
  .hero-illus .floating-badge::before { display: none; }

  /* Smoke puff animation */
  @keyframes heroSmoke {
    0%   { transform: translate(0,0) scale(.7); opacity: 0; }
    20%  { opacity: .85; }
    60%  { opacity: .55; }
    100% { transform: translate(-18px,-140px) scale(1.6); opacity: 0; }
  }
  .hero-smoke { animation: heroSmoke 4.5s ease-out infinite; transform-origin: center; }
  .hero-smoke.s2 { animation-delay: 1.4s; }
  .hero-smoke.s3 { animation-delay: 2.8s; }

  /* Sun soft pulse */
  @keyframes heroSun {
    0%,100% { opacity: .25; transform: scale(1); }
    50%     { opacity: .45; transform: scale(1.08); }
  }
  .hero-sun-halo { transform-origin: 340px 85px; animation: heroSun 4s ease-in-out infinite; }

  /* Floating embers */
  @keyframes heroEmber {
    0%   { transform: translate(0,0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translate(10px,-80px); opacity: 0; }
  }
  .hero-ember { animation: heroEmber 3s ease-out infinite; }
  .hero-ember.e2 { animation-delay: .9s; }
  .hero-ember.e3 { animation-delay: 1.7s; }

  /* Flame flicker */
  @keyframes heroFlame {
    0%,100% { transform: scaleY(1) scaleX(1); opacity: 1; }
    50%     { transform: scaleY(1.12) scaleX(.95); opacity: .85; }
  }
  .hero-flame { transform-origin: bottom center; animation: heroFlame 1.2s ease-in-out infinite; }
  .hero-flame.f2 { animation-delay: .3s; animation-duration: 1s; }
  .hero-flame.f3 { animation-delay: .6s; animation-duration: 1.4s; }

  @media (prefers-reduced-motion: reduce) {
    .hero-smoke, .hero-sun-halo, .hero-ember, .hero-flame, .eyebrow-dot { animation: none; }
  }

  /* ── Chimney scroll animation ───────────────────────────── */
  #chimney-wrap {
    position: absolute;
    top: 0; bottom: 0;
    left: -18%; right: 18%;
    will-change: transform;
  }
  .scroll-smoke {
    position: absolute;
    width: 24px;
    height: 17px;
    border-radius: 50%;
    background: rgba(205, 222, 248, 0.68);
    filter: blur(7px);
    transform-origin: center;
    pointer-events: none;
    animation: heroSmoke 4.5s ease-out infinite;
  }
  .scroll-smoke.s2 { animation-delay: 1.4s; }
  .scroll-smoke.s3 { animation-delay: 2.8s; }
  @media (prefers-reduced-motion: reduce) {
    .scroll-smoke { animation: none; opacity: 0; }
  }

  /* Trust chips row below hero text */
  .hero-trust {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    margin-top: 28px;
    font-size: .88rem; color: var(--ink-2);
  }
  .hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
  .hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

  /* Responsive: stack */
  @media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-text { padding: 56px 24px 24px; max-width: 760px; margin: 0 auto; width: 100%; }
    .hero-illus { aspect-ratio: 16/10; min-height: 280px; border-left: 0; }
    .hero-illus .floating-badge { bottom: 14%; right: 6%; font-size: .85rem; padding: 12px 16px; }
  }
  @media (max-width: 520px) {
    .hero-cta-main { font-size: .98rem; padding: 6px 6px 6px 22px; }
    .hero-cta-main .arrow { width: 38px; height: 38px; }
  }

  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px; border-radius: 999px;
    font-weight: 700; text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease;
  }
  .btn-primary { background: var(--brand); color: #fff; }
  .btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
  .btn-yellow { background: var(--yellow); color: var(--ink); }
  .btn-yellow:hover { transform: translateY(-2px); filter: brightness(1.04); }
  .btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
  .btn-ghost:hover { background: var(--bg-alt); border-color: var(--brand); color: var(--brand); }
  .btn-dark { background: var(--ink); color: #fff; }
  .btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
  .btn svg { width: 18px; height: 18px; }

  .hero-badges {
    position: absolute; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(2, 1fr);
    background: var(--bg); color: var(--ink);
    max-width: 520px; width: 100%;
  }
  .hero-badges .badge { padding: 22px 24px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .hero-badges .badge:first-child { border-left: 0; }
  .hero-badges .badge .num { font-family: var(--title-font, "Manrope"); font-size: 1.8rem; font-weight: 800; color: var(--brand); line-height: 1; }
  .hero-badges .badge .lbl { font-size: .85rem; color: var(--muted); margin-top: 6px; }
  @media (max-width: 720px) { .hero-badges { position: static; max-width: none; } }

  /* ============================================================
     SECTIONS
     ============================================================ */
  .section-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 32px; margin-bottom: 48px; flex-wrap: wrap;
  }
  .section-head .left { max-width: 720px; }
  .eyebrow-label {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
    color: var(--brand); text-transform: uppercase; margin-bottom: 14px;
  }
  .section-head p { color: var(--muted); max-width: 560px; margin: 0; }

  /* How it works — 4 reassurance cards (Fixter style) */
  .howitworks { padding-top: 40px; padding-bottom: clamp(40px, 6vw, 72px); }
  .hiw-title { text-align: center; max-width: 1100px; margin: 0 auto 56px; padding: 0 24px; }
  .hiw-title h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; font-weight: 700; }
  .hiw-title h2 .underline {
    position: relative;
    display: inline-block;
  }
  .hiw-title h2 .underline::after {
    content: ""; position: absolute;
    left: -4%; right: -4%; bottom: -8px; height: 8px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q40 2 80 6 T160 5 T198 7' stroke='%23f3c12a' stroke-width='4' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  }
  .hiw-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    max-width: 1280px; margin: 0 auto;
  }
  .hiw-card {
    background: #f1eff7;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 36px 26px 32px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .hiw-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(30,63,216,.25); }
  .hiw-card { padding: 36px 26px 32px; text-align: center; }
  .hiw-ico {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 16px -8px rgba(30,63,216,.5);
  }
  .hiw-ico svg { width: 24px; height: 24px; }
  .hiw-card h3 { font-size: .98rem; margin-bottom: 16px; color: var(--ink); font-weight: 700; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
  .hiw-card p { color: var(--muted); font-size: .88rem; margin: 0; text-wrap: pretty; line-height: 1.6; }
  @media (max-width: 1000px) { .hiw-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
  @media (max-width: 560px) { .hiw-grid { grid-template-columns: 1fr; } }


  /* Trust bar */
  .trust {
    background: var(--bg-alt);
    padding: 28px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  }
  .trust-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    align-items: center;
  }
  .trust-item { display: flex; gap: 12px; align-items: center; font-size: .92rem; }
  .trust-item .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
  .trust-item .ico svg { width: 20px; height: 20px; }
  .trust-item strong { display: block; font-family: var(--title-font, "Manrope"); font-weight: 700; color: var(--ink); }
  .trust-item span { color: var(--muted); font-size: .82rem; }

  /* About band */
  .about {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px);
    align-items: center;
  }
  .about-media {
    aspect-ratio: 4/5; border-radius: 20px; overflow: hidden;
    background: var(--bg-alt);
    box-shadow: 0 40px 60px -40px rgba(15,22,64,.35);
    position: relative;
  }
  .about-media img { width:100%; height:100%; object-fit: cover; }
  .about-media::after {
    content:""; position:absolute; inset: auto -30px -30px auto;
    width: 120px; height: 120px; background: var(--yellow); border-radius: 20px;
    z-index: -1;
  }
  .about ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
  .about li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface);
  }
  .about li .ico { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display:grid; place-items: center; }
  .about li .ico svg { width: 18px; height: 18px; }
  .about li strong { display: block; font-family: var(--title-font, "Manrope"); }
  @media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-media { max-width: 480px; margin: 0 auto; } }

  /* Services grid */
  .services-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .service-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 24px 40px -24px rgba(30,63,216,.22); }
  .service-media {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--yellow-soft), var(--brand-soft));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .service-media img { width: 72%; height: auto; max-height: 72%; object-fit: contain; transition: transform .4s ease; }
  /* --- taille des illustrations sur les CARTES (modifier ici pour chaque service) --- */
  .service-media.is-foyer-ouvert img     { width: 72%; max-height: 72%; }
  .service-media.is-insert img           { width: 100%; max-height: 100%; }
  .service-media.is-poele img            { width: 72%; max-height: 72%; }
  .service-media.is-chaudiere img        { width: 100%; max-height: 120%; }
  .service-media.is-vmc img             { width: 72%; max-height: 72%; }
  .service-media.is-debistrage img       { width: 100%; max-height: 100%; }
  .service-media.is-expertise-camera img { width: 72%; max-height: 72%; }
  .service-card:hover .service-media img { transform: scale(1.05); }
  .service-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
  .service-body h3 { margin: 0; font-size: 1.2rem; }
  .service-body p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
  .service-body .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand); font-weight: 700; font-size: .9rem; }
  .service-body .more svg { width: 14px; height: 14px; transition: transform .2s ease; }
  .service-card:hover .more svg { transform: translateX(4px); }

  /* Emergency band */
  .emergency {
    background: var(--ink); color: #fff;
    border-radius: 24px;
    padding: clamp(40px, 6vw, 72px);
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
    position: relative; overflow: hidden;
  }
  .emergency::before {
    content: ""; position: absolute; right: -120px; bottom: -120px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle at center, rgba(243,193,42,.55), transparent 65%);
    filter: blur(30px);
  }
  .emergency h2 { color: #fff; position: relative; }
  .emergency p { color: rgba(255,255,255,.8); position: relative; margin: 0; }
  .emergency .eyebrow-label { color: var(--yellow); }
  .emergency-actions { display: flex; flex-direction: column; gap: 12px; position: relative; }
  .emergency-actions .big-tel {
    display: flex; align-items: center; gap: 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    padding: 18px 22px; border-radius: 16px;
    text-decoration: none; color: #fff;
    transition: background .2s ease;
  }
  .emergency-actions .big-tel:hover { background: rgba(255,255,255,.14); }
  .big-tel .tel-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); color: var(--ink); display:grid; place-items:center; flex:none; }
  .big-tel .tel-ico svg { width: 20px; height: 20px; }
  .big-tel small { display:block; opacity: .7; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
  .big-tel strong { display:block; font-family: var(--title-font, "Manrope"); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
  @media (max-width: 780px) { .emergency { grid-template-columns: 1fr; } }

  /* FAQ */
  .faq-grid { display: grid; gap: 12px; max-width: 860px; }
  details.faq {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    transition: border-color .2s ease;
  }
  details.faq[open] { border-color: var(--brand); }
  details.faq summary {
    list-style: none; cursor: pointer;
    padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    font-family: var(--title-font, "Manrope"); font-weight: 700; font-size: 1.05rem;
  }
  details.faq summary::-webkit-details-marker { display: none; }
  details.faq summary::after {
    content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s ease;
    line-height: 1;
  }
  details.faq[open] summary::after { content: "−"; }
  details.faq .a { padding: 0 24px 22px; color: var(--ink-2); }

  /* Testimonials */
  .reviews { background: var(--bg-alt); }
  .reviews-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .review {
    background: var(--surface); border: 1px solid var(--line);
    padding: 26px; border-radius: 18px;
    display: flex; flex-direction: column; gap: 14px;
  }
  .stars { display: flex; gap: 2px; color: var(--yellow); }
  .stars svg { width: 16px; height: 16px; }
  .review blockquote { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--ink-2); }
  .review .who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
  .who .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
  .who strong { font-family: var(--title-font, "Manrope"); font-size: .95rem; display:block; }
  .who span { color: var(--muted); font-size: .8rem; }

  /* Zone / coverage */
  .zone { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .zone-map {
    aspect-ratio: 1.2; border-radius: 20px; overflow:hidden;
    background: var(--bg-alt); position: relative;
    border: 1px solid var(--line);
  }
  .zone-map svg { width: 100%; height: 100%; display:block; }
  .zone-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--yellow-soft); color: var(--brand-dark);
    font-size: .82rem; font-weight: 700;
    border: 1px solid var(--yellow);
  }
  .zone-pill svg { width: 14px; height: 14px; }
  .zone-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; }
  .zone-list li {
    list-style: none; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .85rem;
  }
  @media (max-width: 760px) { .zone { grid-template-columns: 1fr; } }

  /* Footer */
  footer.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 72px 0 32px; }
  footer.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; font-family: "Inter", sans-serif; }
  footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
  footer a { text-decoration: none; color: rgba(255,255,255,.7); font-size: .92rem; transition: color .15s; }
  footer a:hover { color: var(--yellow); }
  footer .brand p { font-size: .9rem; max-width: 320px; }
  .footer-logo { background: #fff; padding: 8px 12px; border-radius: 10px; display: inline-block; margin-bottom: 14px; }
  .footer-logo img { height: 36px; width: auto; display:block; }
  .footer-tel {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; font-family: var(--title-font, "Manrope"); font-weight: 800;
    font-size: 1.2rem; text-decoration: none; margin-top: 6px;
  }
  .footer-tel svg { color: var(--yellow); }
  .footer-bottom {
    margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .82rem; color: rgba(255,255,255,.55);
  }
  @media (max-width: 860px) { footer.site-footer .grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { footer.site-footer .grid { grid-template-columns: 1fr; } }

  /* ============================================================
     BOUTON TÉLÉPHONE ROND — HEADER MOBILE
     ============================================================ */
  .header-tel-round { display: none; }
  @media (max-width: 900px) {
    .header-tel-round {
      display: inline-flex; align-items: center; justify-content: center;
      width: 44px; height: 44px; border-radius: 50%;
      background: var(--brand); color: #fff;
      text-decoration: none; flex-shrink: 0;
      box-shadow: 0 4px 12px -4px rgba(30,63,216,.45);
      transition: background .15s ease;
    }
    .header-tel-round:hover { background: var(--brand-dark); }
    .header-tel-round svg { width: 20px; height: 20px; }
  }

  /* ============================================================
     SUBPAGES
     ============================================================ */
  .subpage-hero {
    padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 56px);
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    position: relative; overflow: hidden;
  }
  .subpage-hero::before {
    content:""; position:absolute; right: -80px; top: -80px;
    width: 220px; height: 220px; border-radius: 50%;
    background: var(--yellow); opacity: .25;
  }
  .breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; position: relative; }
  .breadcrumb a { text-decoration: none; color: var(--muted); }
  .breadcrumb a:hover { color: var(--brand); }
  .breadcrumb span { color: var(--ink); }

  .service-detail {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 72px);
    padding: clamp(48px, 7vw, 96px) 0;
  }
  .service-detail .prose h2 {
    margin-top: 2em;
    padding-top: 24px;
    border-top: 3px solid var(--yellow);
    font-size: 1.55rem;
  }
  .service-detail .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .service-detail .prose h3 {
    margin-top: 1.5em; color: var(--brand); font-size: 1.15rem;
    display: flex; align-items: center; gap: 10px;
  }
  .service-detail .prose h3 .step {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-family: var(--title-font, "Manrope"); font-weight: 800; font-size: .95rem;
    flex: none;
  }
  .service-detail .prose ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 16px 0; }
  .service-detail .prose ul li {
    padding: 10px 14px 10px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; position: relative;
  }
  .service-detail .prose ul li::before {
    content:""; position:absolute; left: 14px; top: 17px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-soft);
  }
  .service-detail .prose table {
    width: 100%; border-collapse: collapse; margin: 16px 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    font-size: .94rem;
  }
  @media (max-width: 700px) {
    .service-detail .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  }
  .service-detail .prose thead { background: var(--brand); color: #fff; }
  .service-detail .prose th { text-align: left; padding: 12px 14px; font-weight: 700; font-size: .88rem; letter-spacing: .02em; }
  .service-detail .prose td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
  .service-detail .prose tbody tr:nth-child(even) { background: var(--bg-alt); }
  .service-detail .prose strong { color: var(--ink); font-weight: 700; }

  .service-detail aside {
    align-self: start; position: sticky; top: 90px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
    display: grid; gap: 16px;
  }
  .service-detail aside h4 { margin: 0; font-family: var(--title-font, "Manrope"); font-size: 1.1rem; }
  .service-detail aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
  .service-detail aside ul li { display: flex; gap: 10px; align-items: center; }
  .service-detail aside ul li svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
  .service-detail aside .promo {
    background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: 12px; padding: 14px;
    font-size: .9rem; color: var(--ink-2);
  }
  @media (max-width: 860px) { .service-detail { display: block; } .service-detail aside { position: static; } }

  /* Service hero image */
  .service-image {
    aspect-ratio: 16/9; border-radius: 20px; overflow:hidden; margin-bottom: 32px;
    background: linear-gradient(135deg, var(--yellow-soft), var(--brand-soft));
    display:flex; align-items:center; justify-content:center; padding: 28px;
  }
  .service-image img { max-width: 72%; max-height: 72%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(15,22,64,.18)); }
  /* --- taille des illustrations sur la PAGE DE DÉTAIL (modifier ici pour chaque service) --- */
  .service-image.is-foyer-ouvert img     { max-width: 72%; max-height: 72%; }
  .service-image.is-insert img           { max-width: 100%; max-height: 100%; }
  .service-image.is-poele img            { max-width: 72%; max-height: 72%; }
  .service-image.is-chaudiere img        { max-width: 72%; max-height: 72%; }
  .service-image.is-vmc img             { max-width: 72%; max-height: 72%; }
  .service-image.is-debistrage img       { max-width: 72%; max-height: 72%; }
  .service-image.is-expertise-camera img { max-width: 72%; max-height: 72%; }

  /* Contact */
  .contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }
  .contact-info { display: grid; gap: 16px; }
  .contact-item {
    display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
    text-decoration: none; color: var(--ink);
    transition: border-color .15s ease, transform .15s ease;
    min-width: 0;
  }
  .contact-item:hover { border-color: var(--brand); transform: translateY(-1px); }
  .contact-item .ico { flex:none; width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display:grid; place-items:center; }
  .contact-item .ico svg { width: 20px; height: 20px; }
  .contact-item > div:not(.ico) { min-width: 0; overflow: hidden; }
  .contact-item small { display:block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
  .contact-item strong { display:block; font-family: var(--title-font, "Manrope"); font-size: 1.05rem; font-weight: 800; overflow-wrap: break-word; word-break: break-word; }

  .contact-form {
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px;
  }
  .field { display: grid; gap: 6px; }
  .field label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
  .field input, .field textarea, .field select {
    font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
    color: var(--ink); min-height: 44px; width: 100%;
    transition: border-color .15s ease, background .15s ease;
  }
  .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: var(--surface); }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
  .contact-form button {
    justify-self: start;
    padding: 14px 26px; border-radius: 999px; background: var(--brand); color: #fff;
    font-weight: 700;
  }
  .contact-form button:hover { background: var(--brand-dark); }
  .contact-form button:disabled { opacity: .6; cursor: not-allowed; }
  .form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: .95rem; line-height: 1.5; }
  .form-status.ok { display: block; background: #ebfaf0; border: 1px solid #7ccfa1; color: #13643c; }
  .form-status.err { display: block; background: #fdecec; border: 1px solid #e98a8a; color: #9a2323; }
  .form-alt { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--line); }
  .form-alt a { flex: 1; min-width: 140px; text-align: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  .form-alt a:hover { border-color: var(--brand); color: var(--brand); }
  .form-alt a svg { width: 16px; height: 16px; }

  @media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

  /* Prose page */
  .prose-page { max-width: 780px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 24px; }
  .prose-page h2 { margin-top: 1.6em; color: var(--brand); }
  .prose-page h3 { margin-top: 1.2em; font-size: 1.1rem; }

  /* CGV layout */
  .cgv-section { border-bottom: 1px solid var(--line); padding: 40px 0; }
  .cgv-section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
  .cgv-num { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .cgv-title { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 0; }
  .cgv-body { padding-left: 52px; }
  @media (max-width: 600px) { .cgv-body { padding-left: 0; } }
  .cgv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
  .cgv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
  .cgv-card-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
  .cgv-card strong, .cgv-card a { color: var(--ink); font-size: .95rem; }
  .cgv-info-box { background: var(--bg-alt); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
  .cgv-info-box strong { font-size: .9rem; color: var(--ink); }
  .cgv-info-box span { font-size: .88rem; color: var(--muted); line-height: 1.5; }
  .cgv-table { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
  .cgv-table thead { background: var(--brand); color: #fff; }
  .cgv-table th { text-align: left; padding: 12px 16px; font-weight: 700; font-size: .88rem; letter-spacing: .02em; }
  .cgv-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: .9rem; color: var(--ink-2); }
  .cgv-table tbody tr:nth-child(even) { background: var(--bg-alt); }
  .service-detail-ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 16px 0; }
  .service-detail-ul li { padding: 10px 14px 10px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; position: relative; color: var(--ink-2); font-size: .93rem; }
  .service-detail-ul li::before { content: "✓"; position: absolute; left: 14px; top: 10px; color: var(--brand); font-weight: 800; }

  /* ============================================================
     TWEAKS PANEL
     ============================================================ */
  #tweaks-panel {
    position: fixed; right: 20px; bottom: 20px;
    width: 320px; max-width: calc(100vw - 40px);
    background: #fff; color: #0f1640;
    border: 1px solid #d4dbee; border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(15,22,64,.3);
    padding: 20px; z-index: 200;
    font-family: "Inter", system-ui, sans-serif;
    display: none;
  }
  #tweaks-panel.open { display: block; }
  #tweaks-panel h4 { margin: 0 0 4px; font-family: "Manrope", sans-serif; font-size: 1rem; }
  #tweaks-panel .sub { font-size: .8rem; color: #6a7097; margin-bottom: 18px; }
  #tweaks-panel .t-group { margin-bottom: 18px; }
  #tweaks-panel .t-group > label { display:block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #6a7097; margin-bottom: 8px; }
  #tweaks-panel .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  #tweaks-panel .chip {
    padding: 8px 12px; border-radius: 8px; border: 1px solid #d4dbee; background: #f4f6fb; font-size: .8rem; cursor: pointer;
    color: #0f1640;
  }
  #tweaks-panel .chip.active { background: #1e3fd8; color: #fff; border-color: #1e3fd8; }
  @media (max-width: 900px) {
    #tweaks-panel { right: 12px; left: 12px; width: auto; bottom: calc(96px + env(safe-area-inset-bottom,0)); }
  }

  :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

  @media print {
    .site-header, .call-float, #tweaks-panel, .burger, .mobile-drawer { display: none !important; }
    body { padding: 0 !important; }
  }