/* ============================================================
   Solution Toiture Habitation — styles (v3, refonte 2026)
   Direction : rendus 3D isométriques, grandes typos, sections
   pleine hauteur claires (#f2f2ef) et nuit (#0f2430).
   Les couleurs de marque se changent dans :root ci-dessous.
   ============================================================ */

/* ---------- Polices auto-hébergées (variables, sous-ensemble latin) ---------- */
@font-face{font-family:"Schibsted Grotesk";font-style:normal;font-weight:400 900;font-display:swap;src:url("assets/fonts/schibsted-grotesk-var.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root {
  /* ---- Marque ---- */
  --blue: #1f5fe6;          /* bleu du logo */
  --blue-hover: #174ec4;
  --blue-bright: #5b96ff;   /* bleu sur fond foncé */
  --blue-soft: #e7eefc;

  /* ---- Neutres ---- */
  --paper: #f2f2ef;         /* fond clair principal */
  --paper-2: #e9e9e4;
  --white: #ffffff;
  --ink: #0e1a24;           /* titres */
  --text: #3a4652;
  --muted: #5f6a77;
  --line: #dcdfdb;
  --navy: #0f2430;          /* sections foncées */
  --night: #081b2e;         /* fond du rendu « hiver » */
  --deep: #0a1620;          /* pied de page */
  --on-dark: #e9eef2;
  --on-dark-muted: #9aabb8;
  --line-dark: rgba(255,255,255,.12);
  --ok: #17a673;
  --err: #d6334a;

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; font-weight: 500; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
h1, h2, h3 { font-weight: 600; }
h1 { font-size: clamp(2.75rem, 7.2vw, 6.4rem); letter-spacing: -.04em; line-height: .96; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.15; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.plain { list-style: none; margin: 0; padding: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }

.sec { padding: clamp(88px, 12vw, 168px) 0; position: relative; }
.sec-tight { padding: clamp(64px, 8vw, 112px) 0; }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-navy, .bg-night, .bg-deep { color: var(--on-dark); }
.bg-navy { background: var(--navy); }
.bg-night { background: var(--night); }
.bg-deep { background: var(--deep); }
.bg-navy :is(h1,h2,h3,h4), .bg-night :is(h1,h2,h3,h4), .bg-deep :is(h1,h2,h3,h4) { color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.4rem;
}
.bg-navy .kicker, .bg-night .kicker, .bg-deep .kicker { color: var(--on-dark-muted); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.55; color: var(--text); max-width: 38em; }
.bg-navy .lead, .bg-night .lead, .bg-deep .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.accent { color: var(--blue); }
.bg-navy .accent, .bg-night .accent, .bg-deep .accent { color: var(--blue-bright); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sec-head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head.center { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 17px 26px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { --bg: var(--blue); }
.btn-primary:hover { --bg: var(--blue-hover); }
.btn-dark { --bg: var(--ink); }
.btn-dark:hover { --bg: #1d2d3a; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(14,26,36,.22); }
.btn-ghost:hover { --bd: var(--ink); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-light:hover { --bg: #e9eef2; }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.3); }
.btn-outline-light:hover { --bd: #fff; }
.btn-sm { padding: 12px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; line-height: 1.25; } }  /* petits téléphones : un long libellé passe à la ligne au lieu de déborder */

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--blue); }
.bg-navy .link-arrow, .bg-night .link-arrow, .bg-deep .link-arrow { color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .35s var(--ease);
}
.site-header.is-scrolled { background: rgba(247,247,245,.86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 rgba(14,26,36,.08); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { display: block; height: 46px; width: auto; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.main-nav a:hover { background: rgba(14,26,36,.06); }
.main-nav a[aria-current="page"] { background: rgba(14,26,36,.08); }
.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 12px; }
.header-phone svg { width: 18px; height: 18px; color: var(--blue); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(14,26,36,.18); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .header-phone { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 28px; box-shadow: 0 30px 40px rgba(14,26,36,.12);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-header:has(.main-nav.open) { background: var(--paper); }
  .main-nav a { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -.03em; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: none; color: var(--blue); }
  .main-nav .nav-cta { display: flex; margin-top: 22px; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; border: 0; padding: 17px 26px; border-radius: 999px; color: #fff; }
  .main-nav .nav-cta:hover { color: #fff; background: var(--blue-hover); }
  .brand-logo { height: 40px; }
}

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 24px) 0 72px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -10% -30% 40%; height: 80%; background: radial-gradient(closest-side, rgba(31,95,230,.10), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
@media (min-width: 1440px) { .hero-stage { margin: 0 -7% 0 -3%; } }
.hero h1 { font-size: clamp(2.75rem, 5.3vw, 4.35rem); margin-bottom: .35em; }  /* « L'esprit tranquille. » tient sur une ligne */
.hero .lead { margin-bottom: 2rem; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 40px 50px rgba(14,26,36,.18)); }
.hotspot { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(14,26,36,.12); font-size: .84rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.hotspot i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(31,95,230,.5); }
@media (prefers-reduced-motion: no-preference) { .hotspot i { animation: ping 2.4s infinite; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,95,230,.45); } 70% { box-shadow: 0 0 0 10px rgba(31,95,230,0); } 100% { box-shadow: 0 0 0 0 rgba(31,95,230,0); } }
.hero-stage { position: relative; }
.hs-1 { top: 30%; left: 4%; }
.hs-2 { top: 11%; right: 3%; }
.hs-3 { top: 64%; left: 20%; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.trust li { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500; color: var(--ink); }
.trust svg { width: 20px; height: 20px; color: var(--blue); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue span { width: 1.5px; height: 34px; background: linear-gradient(var(--muted), transparent); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue span { animation: cue 2s ease-in-out infinite; transform-origin: top; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 920px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .scroll-cue { display: none; }
  .hotspot { font-size: .76rem; padding: 6px 11px 6px 8px; }
}
/* Mobile : titre → rendu pleine largeur → texte court → boutons pleine largeur */
@media (max-width: 640px) {
  .hero { padding-bottom: 48px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero .kicker { order: 1; margin-bottom: 1rem; }
  .hero h1 { order: 2; font-size: clamp(2.2rem, 11.2vw, 3.6rem); margin-bottom: 0; }
  .hero-visual { order: 3; max-width: none; width: calc(100% + 2 * var(--gutter)); margin: 10px calc(var(--gutter) * -1) 6px; }
  .hero .lead { order: 4; margin-bottom: 1.5rem; }
  .hero .btn-row { order: 5; flex-direction: column; align-items: stretch; gap: 10px; }
  .hotspot, .lead-more { display: none; }
  .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 32px; padding-top: 22px; }
  .trust li { align-items: flex-start; font-size: .9rem; line-height: 1.35; }
  .trust svg { flex: none; }
}

/* ---------- Récit au défilement (avant / après) ---------- */
.story { position: relative; height: 230vh; background: var(--paper); overflow-x: clip; }  /* clip (pas hidden) : garde le sticky, empêche le canvas élargi de déborder sur mobile */
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.story-copy { position: relative; z-index: 2; display: grid; }
.story-step { grid-area: 1 / 1; opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.story-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-step h2 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); }
.story-step p { font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.story-media { position: relative; aspect-ratio: 1400 / 1227; }
.story-media img, .story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story-media img { filter: drop-shadow(0 40px 50px rgba(14,26,36,.16)); }  /* ombre statique : jamais sur le canvas animé */
.story-base { visibility: hidden; }
.story-canvas { visibility: hidden; inset: auto; top: -40%; left: -12%; width: 124%; height: 140%; pointer-events: none; }  /* marges = PAD_TOP / PAD_X dans script.js */
.story-media.is-ready .story-canvas, .story-media.is-ready .story-base { visibility: visible; }
.story-media.is-ready .story-fallback { visibility: hidden; }
.story-badge { position: absolute; top: 4%; right: 4%; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(14,26,36,.1); font-size: .82rem; font-weight: 600; }
.story-badge span { padding: 7px 14px; border-radius: 999px; color: var(--muted); transition: all .3s var(--ease); }
.story-badge span.on { background: var(--ink); color: #fff; }
.story-dots { position: absolute; left: 0; top: -3rem; display: flex; gap: 8px; }
.story-dots i { width: 28px; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s, width .3s; }
.story-dots i.on { background: var(--ink); width: 52px; }
@media (max-width: 920px) {
  .story { height: 210vh; }
  .story-sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: center; padding-top: calc(var(--header-h) + 8px); padding-bottom: 16px; gap: 12px; }
  .story-step .kicker { margin-bottom: .9rem; }
  .story-step h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: .35em; }
  .story-step p { font-size: .98rem; margin-bottom: 0; }
  .story-step .btn { margin-top: 1.1rem; padding: 14px 22px; }
  /* La maison prend l'espace restant sous le texte, sans jamais être déformée (le canvas doit rester aligné) */
  .story-stage { align-self: stretch; min-height: 0; container-type: size; display: grid; place-items: center; }
  .story-media { width: 100%; max-width: 520px; width: min(100%, 520px, 100cqh * 1400 / 1227); }
  .story-dots { top: -1.4rem; }
}

/* ---------- Hiver ---------- */
.winter { text-align: center; overflow: hidden; }
.winter h2 { max-width: 14ch; margin-inline: auto; }
.winter .lead { margin-inline: auto; }
.winter-img { width: min(820px, 100%); margin: clamp(8px, 2vw, 24px) auto 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
.winter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; margin-top: clamp(32px, 5vw, 64px); text-align: left; }
.winter-grid > div { background: var(--night); padding: 28px 26px; }
.winter-grid b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; margin-bottom: 6px; }
.winter-grid span { color: var(--on-dark-muted); font-size: .95rem; }
@media (max-width: 860px) { .winter-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .winter-grid { grid-template-columns: 1fr; } }

/* ---------- Couches de toiture ---------- */
.layers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.layers-img img { width: 100%; max-width: 620px; margin: 0 auto; }
.layer-list { counter-reset: layer; border-top: 1px solid var(--line); }
.layer-list li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.layer-list li::before { counter-increment: layer; content: "0" counter(layer); grid-row: span 2; font-family: var(--font-display); font-size: .95rem; font-weight: 500; color: var(--blue); padding-top: 4px; }
.layer-list h3 { margin: 0; font-size: 1.35rem; }
.layer-list p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .layers-grid { grid-template-columns: minmax(0, 1fr); } .layers-img img { max-width: 440px; } }

/* ---------- Cartes services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); padding: 24px 24px 28px; text-decoration: none; color: inherit; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(14,26,36,.10); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--paper); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
a.tag { text-decoration: none; transition: background .2s; }
a.tag:hover { background: var(--paper-2); }
.bg-paper .tag:not(.blue) { background: var(--white); }
.bg-navy .tag, .bg-night .tag { background: rgba(255,255,255,.08); color: var(--on-dark); }
.svc-card .svc-img { aspect-ratio: 4 / 3.1; display: grid; place-items: center; margin: 12px -8px 8px; }
.svc-card .svc-img img { width: 92%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.04) translateY(-4px); }
.svc-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .3em; }
.svc-card p { color: var(--muted); font-size: 1rem; margin-bottom: 1.2rem; }
.svc-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.svc-card .more svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.svc-card:hover .more svg { transform: translateX(4px); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Go Nano ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.nano-visual { position: relative; }
.nano-visual::before { content: ""; position: absolute; inset: 6% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(91,150,255,.32), rgba(91,150,255,.06) 60%, transparent 75%); filter: blur(6px); }
.nano-visual img { position: relative; width: 100%; max-width: 600px; margin: 0 auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
.nano-stage { position: relative; max-width: 600px; margin: 0 auto; }
.nano-visual .nano-product { position: absolute; right: -2%; bottom: -3%; width: 34%; max-width: none; filter: drop-shadow(0 28px 36px rgba(0,0,0,.55)); }
.cert-badge { display: block; width: min(100%, 320px); height: auto; margin-top: 1.8rem; border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(91,150,255,.14); color: var(--blue-bright); margin-bottom: 1.4rem; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 2.2rem; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.bg-navy .checks svg, .bg-night .checks svg, .bg-deep .checks svg { color: var(--blue-bright); }
.bg-navy .checks li, .bg-deep .checks li { color: var(--on-dark); }
.fine { font-size: .82rem; color: var(--muted); margin-top: 1.4rem; }
.bg-navy .fine, .bg-night .fine, .bg-deep .fine { color: var(--on-dark-muted); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } .nano-visual img { max-width: 440px; } .nano-stage { max-width: 440px; } .nano-visual .nano-product { right: 1%; width: 32%; } }

/* ---------- Réalisations (rail) ---------- */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.rail-head .sec-head { margin-bottom: 0; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(14,26,36,.2); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.rail-ctrl button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail-ctrl svg { width: 20px; height: 20px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 400px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter) 8px; margin: 0 calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; scroll-snap-align: start; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.04); }
figcaption { padding: 14px 4px 0; font-size: .95rem; color: var(--muted); }
figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: 1.05rem; }
@media (max-width: 640px) { .rail-ctrl { display: none; } .rail { grid-auto-columns: 78vw; } }

/* Galerie (page réalisations) */
.gallery { columns: 3 300px; column-gap: 18px; }
.gallery figure { break-inside: avoid; margin: 0 0 26px; }
.gallery .shot { aspect-ratio: auto; }
.gallery .shot img { height: auto; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: st; }
.step-card { position: relative; padding-top: 28px; }
.step-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.step-card::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--blue); transition: width 1.1s var(--ease); }
.step-card.in::after { width: 100%; }
.step-card .num { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; color: var(--ink); margin-bottom: 18px; display: block; }
.step-card h3 { margin-bottom: .4em; }
.step-card p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Régions ---------- */
.regions { border-top: 1px solid var(--line); }
.region { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line); }
.region b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 4.6vw, 3.6rem); letter-spacing: -.04em; color: var(--ink); line-height: 1.05; }
.region span { color: var(--muted); font-size: .95rem; text-align: right; }
@media (max-width: 640px) { .region { flex-direction: column; gap: 4px; } .region span { text-align: left; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--ink),var(--ink)) center/14px 1.5px no-repeat, linear-gradient(var(--ink),var(--ink)) center/1.5px 14px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 26px; color: var(--muted); max-width: 46em; }

/* ---------- Soumission (formulaire) ---------- */
.quote-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.quote-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.quote-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.03em; color: #fff; text-decoration: none; margin-top: .6rem; }
.quote-phone svg { width: 28px; height: 28px; color: var(--blue-bright); }
@media (max-width: 920px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } .quote-copy { position: static; } }

.form-card { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 40px 80px rgba(0,0,0,.18); }
.bg-paper .form-card, .bg-white .form-card { box-shadow: 0 30px 60px rgba(14,26,36,.08); border: 1px solid var(--line); }
.form-card-head h2, .form-card-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .25em; color: var(--ink); }
.form-card-head p { color: var(--muted); margin-bottom: 1.4rem; }
.progress { height: 4px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; width: 33%; background: var(--blue); border-radius: 4px; transition: width .4s var(--ease); }
.step-label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 12px 0 18px; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin-bottom: 18px; padding: 0; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.project-grid .choice:last-child:nth-child(odd) { grid-column: 1 / -1; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 500; color: var(--ink); font-size: .98rem; transition: all .18s var(--ease); background: var(--white); }
.choice span svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--blue); }
.choice:hover span { border-color: rgba(14,26,36,.35); }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 15px; transition: border-color .18s, box-shadow .18s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a24' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,95,230,.14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: .86rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 4px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.step-nav .btn-primary { min-width: 150px; }
.step-nav .btn-block { flex: 1; }
.form-reassure { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.form-reassure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-status { margin: 12px 0 0; font-size: .92rem; }
.form-status:empty { display: none; }
.form-status.error { color: var(--err); }
@media (max-width: 520px) { .project-grid, .grid-2 { grid-template-columns: 1fr; } .project-grid .choice:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--deep); color: var(--on-dark-muted); padding: clamp(80px, 10vw, 140px) 0 0; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-dark); }
.foot-top h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); margin: 0; }
.foot-top .btn-row { justify-content: flex-end; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0; }
.foot-cols h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.nw { white-space: nowrap; }
.foot-cols a, .foot-cols > div > span { display: block; color: var(--on-dark-muted); text-decoration: none; padding: 5px 0; font-size: .97rem; }
.foot-cols a:hover { color: #fff; }
.foot-brand .brand { color: #fff; margin-bottom: 18px; }
.foot-brand .brand-logo { height: 52px; }
.foot-brand p { font-size: .95rem; max-width: 26em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--line-dark); font-size: .86rem; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--on-dark-muted); }
.foot-bottom a:hover { color: #fff; }
@media (max-width: 920px) { .foot-top { grid-template-columns: 1fr; } .foot-top .btn-row { justify-content: flex-start; } .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; gap: 28px; } .foot-top .btn-row { flex-direction: column; align-items: stretch; } }

/* ---------- En-tête de page (pages internes) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); max-width: 14ch; }
.page-hero .lead { margin-top: 1.2rem; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.page-hero-grid img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(14,26,36,.16)); }
.crumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .page-hero-grid img { margin: 0 auto; max-width: 420px; } }

/* Détail de service */
.svc-detail { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.svc-detail:first-child { border-top: 0; }
.svc-detail .split > div:first-child img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(14,26,36,.14)); }
.svc-detail h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.svc-detail .tags { margin-bottom: 1.4rem; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.6rem 0 2rem; }
.specs div { background: var(--paper); padding: 16px 18px; }
.specs b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.specs span { font-size: .84rem; color: var(--muted); }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }

/* À propos */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { background: var(--white); border-radius: var(--radius-lg); padding: 28px 26px 30px; }
.value svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 1.5rem; }
.value p { color: var(--muted); font-size: .98rem; margin: 0; }
.values.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .values, .values.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values, .values.cols-3 { grid-template-columns: 1fr; } }
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--paper-2); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -.05em; color: #fff; line-height: 1; margin-bottom: 12px; }
.stat span { color: var(--on-dark-muted); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact-lines { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.contact-line { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact-line .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--blue); }
.contact-line .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-line b { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-line a, .contact-line span { color: var(--ink); text-decoration: none; font-size: 1.08rem; font-weight: 500; }
.contact-line a:hover { color: var(--blue); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Merci */
.thanks { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 80px; }
.thanks h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 16ch; }
.thanks-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 32px; }
.thanks-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.thanks-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.thanks-steps div { background: var(--white); border-radius: var(--radius); padding: 22px; }
.thanks-steps b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--blue); letter-spacing: -.04em; margin-bottom: 8px; }
@media (max-width: 680px) { .thanks-steps { grid-template-columns: 1fr; } }

/* Pages légales */
.legal { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(72px, 10vw, 128px); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.legal h2 { font-size: 1.5rem; letter-spacing: -.02em; margin-top: 2.4em; }
.legal-date { color: var(--muted); font-size: .92rem; margin-bottom: 2.4rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,16,24,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90svh; border-radius: 12px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox-close svg { width: 22px; height: 22px; }

/* ---------- Bannière de témoins ---------- */
.cookie-banner { position: fixed; z-index: 250; left: 16px; bottom: 16px; max-width: 420px; background: var(--ink); color: var(--on-dark); border-radius: 20px; padding: 20px 20px 18px; box-shadow: 0 30px 60px rgba(0,0,0,.3); transform: translateY(20px); opacity: 0; transition: all .32s var(--ease); }
.cookie-banner.in { transform: none; opacity: 1; }
.cookie-text { font-size: .9rem; margin: 0 0 14px; color: var(--on-dark-muted); }
.cookie-text a { color: #fff; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-banner .btn-ghost { --fg: #fff; --bd: rgba(255,255,255,.3); }
@media (max-width: 760px) {
  .cookie-banner { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: none; padding: 12px 14px; border-radius: 16px; }
  .cookie-text { font-size: .8rem; line-height: 1.4; margin-bottom: 10px; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- Apparitions au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .story-step { transition: none; }
}
