/* =====================================================================
   CS INSTALL SA — Design system
   Aesthetic: "Confiance & local". Bleu pro dominant, accent flamme.
   Responsive via container queries (un seul écran montre desktop + mobile).
   ===================================================================== */

:root {
  /* Bleu — froid, technique, confiance */
  --blue-50:  oklch(0.972 0.015 248);
  --blue-100: oklch(0.935 0.035 250);
  --blue-200: oklch(0.875 0.062 252);
  --blue-300: oklch(0.78 0.10 254);
  --blue-400: oklch(0.66 0.145 256);
  --blue-500: oklch(0.575 0.175 258);
  --blue-600: oklch(0.515 0.195 260);
  --blue-700: oklch(0.445 0.175 262);
  --blue-800: oklch(0.37 0.13 264);
  --blue-900: oklch(0.285 0.085 264);
  --blue-950: oklch(0.215 0.06 264);

  /* Flamme — chaud, énergie, urgence */
  --flame-400: oklch(0.74 0.16 48);
  --flame-500: oklch(0.675 0.19 42);
  --flame-600: oklch(0.605 0.205 35);
  --flame-700: oklch(0.535 0.19 32);

  /* Neutres — légèrement froids */
  --ink:    oklch(0.27 0.025 260);
  --ink-2:  oklch(0.45 0.02 260);
  --ink-3:  oklch(0.60 0.018 258);
  --line:   oklch(0.90 0.012 258);
  --line-2: oklch(0.84 0.018 258);
  --mist:   oklch(0.972 0.008 258);
  --mist-2: oklch(0.952 0.012 256);
  --paper:  oklch(0.995 0.003 258);
  --white:  #ffffff;

  --grad-hotcold: linear-gradient(90deg, var(--flame-500) 0%, var(--flame-400) 22%, oklch(0.8 0.06 200) 52%, var(--blue-500) 80%, var(--blue-600) 100%);
  --grad-blue: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  --grad-warm: linear-gradient(135deg, var(--flame-500), var(--flame-600));

  --shadow-sm: 0 1px 2px oklch(0.4 0.05 260 / 0.06), 0 1px 3px oklch(0.4 0.05 260 / 0.05);
  --shadow-md: 0 4px 14px oklch(0.4 0.06 260 / 0.08), 0 2px 6px oklch(0.4 0.06 260 / 0.05);
  --shadow-lg: 0 18px 48px oklch(0.35 0.07 262 / 0.16), 0 6px 16px oklch(0.35 0.07 262 / 0.08);
  --shadow-blue: 0 14px 34px oklch(0.45 0.18 260 / 0.32);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --maxw: 1200px;

  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin: 0; color: var(--blue-900); text-wrap: balance; }
p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- App shell + responsive container ---------- */
#root { min-height: 100vh; }
.app-frame { container: app / inline-size; background: var(--mist); overflow-x: clip; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-600); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow.warm { color: var(--flame-600); }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.5; }
.h-sec { font-size: clamp(30px, 4.4cqw, 46px); }
.sub-sec { color: var(--ink-2); font-size: clamp(16px, 1.5cqw, 18px); max-width: 56ch; margin-top: 14px; line-height: 1.6; }
.center { text-align: center; }
.center .sub-sec { margin-left: auto; margin-right: auto; }
.hotcold-rule { height: 4px; border-radius: 4px; background: var(--grad-hotcold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: var(--r-full);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 18px 40px oklch(0.45 0.18 260 / 0.4); }
.btn-warm { background: var(--flame-600); color: #fff; box-shadow: 0 12px 28px oklch(0.6 0.2 35 / 0.32); }
.btn-warm:hover { background: var(--flame-700); }
.btn-ghost { background: var(--white); color: var(--blue-700); box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-200); }
.btn-line { background: transparent; color: var(--blue-700); border: 1.5px solid var(--blue-200); }
.btn-line:hover { background: var(--blue-50); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--blue-50); }
.btn-wa { background: #25D366; color: #0a3d20; box-shadow: 0 12px 28px oklch(0.7 0.17 150 / 0.3); }
.btn-wa:hover { background: #1fbe5a; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--blue-950); color: oklch(0.9 0.03 256); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: inherit; opacity: .92; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d77a; box-shadow: 0 0 0 0 rgba(52,215,122,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,215,122,.5)} 70%{box-shadow:0 0 0 7px rgba(52,215,122,0)} 100%{box-shadow:0 0 0 0 rgba(52,215,122,0)} }
.topbar-right { display: flex; align-items: center; gap: 18px; }

.lang { display: inline-flex; align-items: center; gap: 2px; background: oklch(1 0 0 / 0.08); border-radius: var(--r-full); padding: 3px; }
.lang button { color: oklch(0.85 0.03 256); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full); letter-spacing: .03em; }
.lang button.on { background: #fff; color: var(--blue-800); }

.header { position: sticky; top: 0; z-index: 50; background: oklch(1 0 0 / 0.88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 14px; border-radius: var(--r-full); font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; white-space: nowrap; }
.nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav a.on { color: var(--blue-700); background: var(--blue-50); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; position: relative; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.logo-mark .warm { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 0 100%); background: var(--grad-warm); }
.logo-mark .cool { position: absolute; inset: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); background: var(--grad-blue); }
.logo-mark .wave { position: absolute; inset: 0; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--blue-800); white-space: nowrap; }
.logo-word span { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-top: 3px; white-space: nowrap; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.svc-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s; position: relative; overflow: hidden; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.svc-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.svc-ic.cool { background: var(--grad-blue); }
.svc-ic.warm { background: var(--grad-warm); }
.svc-card h3 { font-size: 20px; }
.svc-card .tag { font-size: 13px; color: var(--blue-600); font-weight: 600; }
.svc-card p { color: var(--ink-2); font-size: 15px; }
.svc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--blue-700); font-weight: 600; font-size: 14px; }
.svc-card:hover .svc-link { gap: 11px; }

.feature { display: flex; gap: 16px; }
.feature-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.feature h4 { font-size: 17px; margin-bottom: 5px; }
.feature p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Stats ---------- */
.stat { text-align: left; }
.stat b { font-family: var(--font-display); font-size: clamp(34px, 4.6cqw, 50px); font-weight: 800; color: var(--blue-700); display: block; letter-spacing: -0.03em; }
.stat b em { font-style: normal; color: var(--flame-600); }
.stat .lbl { font-weight: 700; color: var(--ink); margin-top: 2px; font-size: 15px; }
.stat .sub { color: var(--ink-3); font-size: 13px; margin-top: 3px; }

/* ---------- Pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.pill.warm { background: oklch(0.96 0.03 50); color: var(--flame-700); border-color: oklch(0.9 0.06 50); }
.pill.wa { background: oklch(0.95 0.05 150); color: #0a7a36; border-color: oklch(0.88 0.08 150); }
.pill.solid { background: var(--blue-600); color: #fff; border-color: transparent; }

/* ---------- Reviews ---------- */
.review { padding: 26px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.stars { display: inline-flex; gap: 2px; color: var(--flame-500); }
.review p { color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); flex: none; }
.review .who b { display: block; font-size: 15px; color: var(--ink); }
.review .who span { font-size: 13px; color: var(--ink-3); }

/* ---------- Image placeholders ---------- */
.ph { position: relative; border-radius: var(--r-lg); overflow: hidden; background:
    repeating-linear-gradient(135deg, var(--blue-50) 0 14px, var(--mist-2) 14px 28px);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3); }
.ph.warm { background: repeating-linear-gradient(135deg, oklch(0.95 0.03 50) 0 14px, oklch(0.97 0.015 50) 14px 28px); }
.ph .ph-lbl { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: .02em; background: oklch(1 0 0 / .75); padding: 6px 11px; border-radius: var(--r-full); border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.footer { background: var(--blue-950); color: oklch(0.82 0.03 256); }
.footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer a { color: oklch(0.82 0.03 256); font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr; gap: 30px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid oklch(1 0 0 / 0.1); font-size: 13px; color: oklch(0.7 0.03 256); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.input, .textarea, select.input {
  width: 100%; padding: 13px 15px; border-radius: var(--r-md); border: 1.5px solid var(--line-2);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, select.input:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px var(--blue-100); }
.textarea { resize: vertical; min-height: 120px; }

/* ---------- WhatsApp floating ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 12px; }
.wa-bubble {
  background: #fff; color: var(--ink); padding: 10px 14px; border-radius: var(--r-full); box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); white-space: nowrap;
}
.wa-bubble b { color: #128c3e; }
.wa-btn {
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px oklch(0.7 0.17 150 / 0.45); flex: none; transition: transform .18s;
}
.wa-btn:hover { transform: scale(1.06); }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { display: none; }
.mbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); background: none; padding: 5px 2px; text-decoration: none; border-radius: 10px; }
.mbar-item span { line-height: 1; letter-spacing: -0.01em; }
.mbar-item.on { color: var(--blue-700); }
.mbar-item:active { background: var(--blue-50); }
.mbar-wa { color: #128c3e; }

/* ---------- Hero shared ---------- */
.hero { position: relative; overflow: hidden; }
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 6cqw, 64px); }
.hero .lede { font-size: clamp(17px, 1.9cqw, 21px); color: var(--ink-2); line-height: 1.55; margin-top: 22px; max-width: 36ch; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* breadcrumb / page head */
.page-head { background: var(--grad-blue); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 0%, oklch(0.7 0.16 220 / .5), transparent 55%); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(32px, 4.6cqw, 50px); }
.page-head p { color: oklch(0.9 0.04 250); margin-top: 14px; font-size: 18px; max-width: 60ch; }
.page-head .eyebrow { color: oklch(0.85 0.08 60); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: oklch(0.86 0.05 250); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs > span { white-space: nowrap; }
.crumbs a:hover { color: #fff; }

/* ---------- Reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =====================================================================
   Responsive — container queries (réagit à la largeur de .app-frame)
   ===================================================================== */
@container app (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
}
@container app (max-width: 1000px) {
  .nav, .header-cta .btn span.hide-sm { display: none; }
  .burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--blue-800); background: var(--blue-50); }
  .topbar .topbar-left { display: none; }
}
@container app (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-split { grid-template-columns: 1fr !important; }
  .two-col { grid-template-columns: 1fr !important; }
  .wa-bubble { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer { padding-bottom: 92px; }
  .wa-float { display: none; }
  .header-cta a.btn-wa, .header-cta button.btn-primary { display: none; }
  .mobile-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: oklch(1 0 0 / 0.94); backdrop-filter: saturate(1.3) blur(12px); border-top: 1px solid var(--line); padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 22px oklch(0.4 0.05 260 / 0.1); }
}
@container app (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .stat b { font-size: 38px; }
}

/* mobile device preview frame */
.device-bar { background: var(--blue-950); padding: 12px 0; position: sticky; top: 0; z-index: 80; }
.device-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; }
.device-seg { display: inline-flex; background: oklch(1 0 0 / 0.1); border-radius: var(--r-full); padding: 4px; gap: 2px; }
.device-seg button { color: oklch(0.85 0.03 256); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 7px; }
.device-seg button.on { background: #fff; color: var(--blue-800); }
.device-note { color: oklch(0.7 0.03 256); font-size: 12.5px; }
@media (max-width: 720px) { .device-toggle { display: none !important; } }

/* range sliders + guide banner */
.gslider { width: 100%; height: 6px; cursor: pointer; }
.guide-banner { transition: transform .15s ease, box-shadow .2s ease; }
.guide-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
