/* ==========================================================================
   MRT'PLOMB — expérience « trois mondes »
   Palette (d'après le logo) :  1. blanc   2. bleu   3. noir
   ========================================================================== */

:root {
  /* 1 — blanc : fond, surfaces */
  --bg: #ffffff;
  --surface: #f5f9fc;
  /* 2 — bleu : la goutte du logo */
  --blue: #8fd0ec;          /* graphisme, halos, poignée */
  --blue-deep: #2b86bd;     /* bleu lisible pour les petits textes */
  /* 3 — noir : textes, bouton principal */
  --ink: #0b0d10;
  --ink-2: rgba(11, 13, 16, .64);
  --ink-3: rgba(11, 13, 16, .4);
  --line: rgba(11, 13, 16, .12);

  /* Mis à jour à chaque image par ui.js (nuance de bleu du monde courant) */
  --accent: rgb(143, 208, 236);
  --accent-rgb: 143, 208, 236;
  --travel: 0;

  --f-display: 'Archivo', 'Inter Tight', system-ui, sans-serif;
  --f-body: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-brand: "Josefin Sans", "Archivo", sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 44px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;          /* le geste horizontal est pour nous */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--blue-deep); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- scène */
.stage {
  position: fixed; inset: 0;
  cursor: grab;
  touch-action: pan-y;
}
html.is-grabbing, html.is-grabbing * { cursor: grabbing !important; }

.media, .stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.media { perspective: 1200px; background: var(--bg) url('../posters/climatisation.jpg') 27% 50% / cover no-repeat; /* 27 % = focusX clim */ }
.media__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
.stage__canvas { display: block; }

/* Voile blanc : la vidéo se fond dans la page en haut et en bas,
   une brume légère éclaircit le centre pour le titre noir */
.stage__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 40% at 50% 47%, rgba(255, 255, 255, .62), rgba(255, 255, 255, .18) 62%, transparent 80%),
    linear-gradient(to top, #fff 0, rgba(255, 255, 255, .92) 13%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(to bottom, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 20%);
  opacity: calc(1 - var(--travel) * .75);
}

/* ---------------------------------------------------------------- titres */
.hero {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease) 1.5s;
}
html.is-ready .hero { opacity: 1; }

.world {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 var(--gutter);
  transform: translateY(-3vh);
}
.world.is-current { pointer-events: auto; }

.world__kicker {
  margin: 0 0 clamp(14px, 2.2vh, 26px);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.world__title {
  margin: 0;
  display: flex; justify-content: center;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 300;
  font-size: clamp(30px, 7.4vw, 118px);
  line-height: .95;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--ink);
  text-shadow: 0 0 42px rgba(255, 255, 255, .7);
}
.world__char { display: inline-block; will-change: transform, opacity; }
.world__tagline {
  margin: clamp(16px, 2.6vh, 30px) 0 0;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.world__dot { display: inline-block; margin: 0 .9em; color: var(--blue); font-size: .8em; transform: translateY(-.1em); }

/* Bouton principal : noir */
.world__cta {
  position: relative;
  margin-top: clamp(26px, 4.4vh, 48px);
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px 16px 30px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 100px;
  box-shadow: 0 10px 30px -12px rgba(11, 13, 16, .45);
  transition: box-shadow .4s var(--ease), gap .4s var(--ease), background .4s var(--ease);
}
.world__cta svg { width: 16px; height: 16px; color: var(--blue); transition: transform .4s var(--ease); }
.world__cta:hover { gap: 20px; box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .35), 0 14px 34px -12px rgba(11, 13, 16, .5); }
.world__cta:hover svg { transform: translateX(2px); }

/* « Découvrir » puis « Demander un devis » juste en dessous */
.world__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.world__quote {
  padding: 12px 22px;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(11, 13, 16, .18);
  border-radius: 100px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.world__quote:hover { border-color: var(--blue-deep); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .3); }

/* ---------------------------------------------------------------- HUD */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: flex-end;
  padding: calc(env(safe-area-inset-top, 0px) + clamp(16px, 3vh, 30px)) var(--gutter) 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
/* Badge « Partout en Île-de-France » en haut à gauche (PNG/WebP transparent, recadré) */
.zone {
  position: absolute; left: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + clamp(10px, 2vh, 20px));
  width: clamp(84px, 10vw, 140px); height: auto;
  pointer-events: none;
}
/* Logo complet : centré à l'écran pendant le chargement, puis monte au centre de la barre du haut.
   Échelles et position cible calculées par main.js (--logo-s0, --logo-s1, --logo-y1). */
.brand {
  position: fixed; left: 50%; top: 50%; z-index: 55;
  transform: translate(-50%, -50%) scale(var(--logo-s0, 1));
  text-decoration: none; color: var(--ink);
  transition: top 1.2s var(--ease), transform 1.2s var(--ease);
}
html.is-ready .brand { top: var(--logo-y1, 52px); transform: translate(-50%, -50%) scale(var(--logo-s1, .4)); }
html.is-settled .brand { z-index: 10; } /* sous le panneau une fois en place */
.pill {
  padding: 10px 18px;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(11, 13, 16, .2); border-radius: 100px;
  background: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.pill { text-decoration: none; }
.pill__short { display: none; }
.pill:hover { border-color: var(--blue); background: #fff; }

.counter {
  position: fixed; z-index: 10;
  left: var(--gutter); top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--ink-3);
  pointer-events: none;
}
.counter [data-current] { color: var(--blue-deep); }
.counter__sep { width: 1px; height: 28px; background: var(--line); }
.counter__name { margin-top: 10px; text-transform: uppercase; letter-spacing: .3em; color: var(--ink-2); }

/* ---------------------------------------------------------------- dock + dial */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--gutter) calc(var(--safe-b) + clamp(18px, 4vh, 40px));
  pointer-events: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s var(--ease) 1.9s, transform 1s var(--ease) 1.9s;
}
html.is-ready .dock { opacity: 1; transform: none; }
.dock__hint {
  margin: 0 0 18px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-3);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.has-interacted .dock__hint { opacity: 0; transform: translateY(6px); }

.dial {
  --track-w: min(560px, calc(100vw - 2 * var(--gutter) - 104px));
  pointer-events: auto;
  width: var(--track-w);
  padding-top: 4px;
}
.dial__labels { position: relative; height: 34px; margin-bottom: 14px; }
.dial__label {
  --w: 0;
  position: absolute; left: var(--x); bottom: 0;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 4px 6px;
  white-space: nowrap;
}
.dial__num {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .2em;
  color: var(--blue-deep);
  opacity: calc(.4 + var(--w) * .6);
}
.dial__name {
  font-family: var(--f-display); font-stretch: 125%;
  font-size: 11px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink);
  opacity: calc(.38 + var(--w) * .62);
}
.dial__label:hover .dial__name { opacity: 1; }

.dial__track {
  position: relative;
  height: 44px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.dial__track:focus-visible .dial__halo { box-shadow: 0 0 0 1.5px var(--blue-deep), 0 0 0 7px rgba(var(--accent-rgb), .3); }

.dial__ticks { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.dial__tick {
  position: absolute; bottom: 4px;
  width: 1px; height: 6px;
  margin-left: -.5px;
  background: var(--ink);
  opacity: .22;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.dial__tick.is-station { height: 10px; width: 1.5px; background: var(--blue-deep); }

.dial__rail {
  position: absolute; left: -14px; right: -14px; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 14px, var(--line) calc(100% - 14px), transparent);
}
.dial__glow {
  position: absolute; left: -110px; top: -.5px;
  width: 248px; height: 2px; /* centré sur la poignée : -14 (rail) - 110 + 124 = 0 */
  background: radial-gradient(closest-side, var(--blue-deep), transparent);
  will-change: transform;
}

.dial__thumb {
  position: absolute; left: 0; top: 50%;
  width: 0; height: 0;
  will-change: transform;
}
.dial__halo, .dial__core {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.dial__halo {
  width: 30px; height: 30px;
  border: 1px solid rgba(11, 13, 16, .55);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 6px 18px -6px rgba(11, 13, 16, .3);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .35s var(--ease);
}
.dial__core {
  width: 8px; height: 8px;
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .25), 0 0 12px 2px rgba(var(--accent-rgb), .8);
}
.dial__track:hover .dial__halo { width: 34px; height: 34px; }
.dial.is-dragging .dial__halo { width: 44px; height: 44px; border-color: var(--blue-deep); }

.dial__hint {
  position: absolute; top: 0;
  font-size: 15px; line-height: 1; color: var(--ink-2);
  transform: translateY(-55%);
  animation: nudge 2.4s var(--ease) infinite;
  transition: opacity .6s var(--ease);
}
.dial__hint--l { right: 24px; }
.dial__hint--r { left: 24px; animation-name: nudge-r; }
html.has-interacted .dial__hint { opacity: 0; animation: none; }
@keyframes nudge   { 0%, 100% { translate: 0 0; opacity: .25; } 50% { translate: -4px 0; opacity: .9; } }
@keyframes nudge-r { 0%, 100% { translate: 0 0; opacity: .25; } 50% { translate:  4px 0; opacity: .9; } }

/* ---------------------------------------------------------------- panneau */
.panel { position: fixed; inset: 0; z-index: 30; }
.panel__backdrop {
  position: absolute; inset: 0;
  background: rgba(240, 246, 250, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.panel__sheet {
  --panel-accent: var(--blue-deep);
  --pad: clamp(26px, 3.4vw, 48px);
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(560px, 100vw);
  padding: clamp(64px, 10vh, 96px) var(--pad) 40px;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px -40px rgba(11, 13, 16, .35);
  transform: translateX(100%);
  transition: transform .55s var(--ease);
  user-select: text;
  outline: none;
}
.panel.is-open .panel__backdrop { opacity: 1; }
.panel.is-open .panel__sheet { transform: none; }

.panel__close {
  position: absolute; top: 22px; right: 22px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  transition: border-color .3s, background .3s;
}
.panel__close:hover { border-color: var(--blue); background: var(--surface); }
.panel__close svg { width: 18px; height: 18px; }

.panel__kicker {
  margin: 0 0 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-2);
}
.panel__kicker span { color: var(--blue-deep); margin-right: 10px; }
.panel__title {
  margin: 0 0 22px;
  font-family: var(--f-display); font-stretch: 125%;
  font-size: clamp(28px, 3vw, 38px); font-weight: 300; letter-spacing: .03em; line-height: 1.05;
}
.panel__intro { margin: 0 0 34px; font-size: 16px; line-height: 1.65; font-weight: 400; color: var(--ink-2); }
.panel__list { list-style: none; margin: 0 0 38px; padding: 0; counter-reset: s; }
.panel__list li {
  counter-increment: s;
  display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; row-gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.panel__list li:last-child { border-bottom: 1px solid var(--line); }
.panel__list li::before {
  content: counter(s, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--f-mono); font-size: 11px; color: var(--blue-deep); padding-top: 3px;
}
.panel__list strong { font-weight: 500; font-size: 15px; }
.panel__list span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.panel__list a { text-decoration-color: var(--blue); text-underline-offset: 3px; }
.panel__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.panel__note { margin: 0; font-size: 13px; color: var(--ink-3); }
.btn--solid {
  display: inline-flex; align-items: center;
  padding: 16px 26px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none;
  color: #fff; background: var(--ink);
  border-radius: 100px;
  transition: box-shadow .3s var(--ease);
}
.btn--solid:hover { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .35); }
.btn--solid:disabled { opacity: .6; cursor: wait; }
.btn--ghost {
  display: inline-flex; align-items: center;
  padding: 15px 24px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 100px;
  transition: border-color .3s var(--ease);
}
.btn--ghost:hover { border-color: var(--blue-deep); }

/* Découvrir : photos, rubriques, FAQ */
.panel__h {
  margin: 44px 0 16px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  color: var(--blue-deep);
}
.panel__text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.panel__text a { text-underline-offset: 3px; text-decoration-color: var(--blue); }
.panel__gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 12px;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; scroll-padding: 0 var(--pad);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  outline: none;
}
.panel__gallery::-webkit-scrollbar { display: none; }
.panel__gallery figure { margin: 0; scroll-snap-align: start; }
.panel__gallery img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; background: var(--surface);
}
.panel__gallery figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.panel__list { margin-bottom: 0; }
.panel__list--plain li { grid-template-columns: 1fr; }
.panel__list--plain li::before { display: none; }
.panel__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; }
.panel__steps li {
  counter-increment: st;
  position: relative;
  padding: 16px 18px 16px 58px;
  background: var(--surface); border-radius: 14px;
  display: grid; gap: 3px;
}
.panel__steps li::before {
  content: counter(st);
  position: absolute; left: 18px; top: 16px;
  width: 26px; height: 26px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; color: #fff;
  background: var(--blue-deep); border-radius: 50%;
}
.panel__steps strong { font-weight: 500; font-size: 15px; }
.panel__steps span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.panel__faq details { border-top: 1px solid var(--line); }
.panel__faq details:last-child { border-bottom: 1px solid var(--line); }
.panel__faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 17px 0; font-size: 15px; font-weight: 500;
}
.panel__faq summary::-webkit-details-marker { display: none; }
.panel__faq summary::after { content: '+'; font-family: var(--f-mono); color: var(--blue-deep); transition: transform .3s var(--ease); }
.panel__faq details[open] summary::after { transform: rotate(45deg); }
.panel__faq p { margin: 0 0 18px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.panel__cta {
  margin-top: 44px; padding: 26px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--surface); border-radius: 18px;
}
.panel__cta p { flex-basis: 100%; margin: 0 0 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.panel__cta strong { color: var(--ink); font-weight: 500; }
.panel__footer { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.panel__footer p { margin: 0 0 6px; }
.panel__footer a, .panel__footer button { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* Formulaire de devis */
.quote__progress { height: 3px; margin: -6px 0 10px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.quote__progress i { display: block; height: 100%; background: var(--blue-deep); border-radius: 3px; transition: width .5s var(--ease); }
.quote__count { margin: 0 0 26px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3); }
.quote__fields { display: grid; gap: 26px; }
.quote__q { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.quote__label { padding: 0; font-size: 15px; font-weight: 500; }
.quote__label em { font-style: normal; color: var(--blue-deep); margin-left: 3px; }
.quote__label small { font-weight: 400; font-size: 12px; color: var(--ink-3); margin-left: 6px; }
/* Choix rangés en grille : cases de même largeur, texte à gauche, rond (choix unique) ou carré (choix multiples) */
.quote__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quote__opt { position: relative; cursor: pointer; display: flex; }
.quote__opt input { position: absolute; opacity: 0; pointer-events: none; }
.quote__opt span {
  flex: 1; display: flex; align-items: center; gap: 11px;
  min-height: 48px; padding: 10px 14px;
  font-size: 14px; line-height: 1.3;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.quote__opt span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(11, 13, 16, .28); background: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.quote__opt input[type=checkbox] + span::before { border-radius: 5px; }
.quote__opt:hover span { border-color: rgba(43, 134, 189, .5); }
.quote__opt input:checked + span { background: rgba(143, 208, 236, .22); border-color: var(--blue-deep); box-shadow: 0 0 0 1px var(--blue-deep) inset; color: #1d6a99; font-weight: 500; }
.quote__opt input[type=radio]:checked + span::before { border-color: var(--blue-deep); box-shadow: inset 0 0 0 4px #fff; background: var(--blue-deep); }
.quote__opt input[type=checkbox]:checked + span::before {
  border-color: var(--blue-deep);
  background: var(--blue-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.quote__opt input:focus-visible + span { outline: 1.5px solid var(--blue-deep); outline-offset: 3px; }
/* Surface par pièce : un encadré par pièce, tranches sur 3 colonnes */
.quote__rooms { gap: 12px; }
.quote__q--room { padding: 12px; border-radius: 14px; background: var(--surface); gap: 8px; }
.quote__q--room .quote__label { font-size: 13px; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.quote__options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.quote__options--3 .quote__opt span { min-height: 40px; padding: 8px 10px; gap: 8px; font-size: 13px; }
.quote__options--3 .quote__opt span::before { width: 15px; height: 15px; }
@media (max-width: 420px) {
  .quote__options { grid-template-columns: 1fr; }
  .quote__options--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.quote__field input, .quote__q textarea {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  user-select: text; -webkit-user-select: text;
  transition: border-color .2s, box-shadow .2s;
}
.quote__q textarea { resize: vertical; min-height: 96px; }
.quote__q textarea::placeholder { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.is-invalid textarea { border-color: rgba(192, 57, 43, .55); }
/* Adresse : un groupe de champs */
.quote__group { gap: 14px; }
/* Photos : conseils, zone d'ajout, vignettes */
.quote__hints { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.quote__hints li { padding: 6px 11px; border-radius: 100px; background: var(--surface); font-size: 12px; color: var(--ink-2); }
.quote__drop {
  position: relative; display: grid; place-items: center; text-align: center;
  padding: 20px 16px; border: 1.5px dashed rgba(43, 134, 189, .45); border-radius: 14px;
  background: rgba(143, 208, 236, .08); cursor: pointer; transition: border-color .2s, background .2s;
}
.quote__drop:hover { border-color: var(--blue-deep); background: rgba(143, 208, 236, .16); }
.quote__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.quote__drop span { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.quote__drop strong { font-size: 14px; font-weight: 500; color: var(--blue-deep); }
.quote__drop:focus-within { outline: 1.5px solid var(--blue-deep); outline-offset: 3px; }
.quote__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.quote__thumbs:empty { display: none; }
.quote__thumb { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface); }
.quote__thumb img { width: 100%; height: 100%; object-fit: cover; }
.quote__thumb button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11, 13, 16, .7); color: #fff; font-size: 14px; line-height: 1;
}
.quote__field input:focus, .quote__q textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(143, 208, 236, .35); }
.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.quote__consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.quote__privacy { margin: -14px 0 0 32px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.is-invalid .quote__label, .quote__consent.is-invalid { color: #c0392b; }
.is-invalid input:not([type=radio]):not([type=checkbox]), .is-invalid .quote__opt span { border-color: rgba(192, 57, 43, .55); }
.quote__error { margin: 22px 0 0; padding: 12px 16px; font-size: 14px; color: #a93226; background: #fdf0ee; border-radius: 12px; }
.quote__nav { display: flex; gap: 12px; margin-top: 30px; }
.quote__metiers { display: grid; gap: 12px; }
.quote__metier {
  display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px;
  padding: 10px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .25s, box-shadow .25s;
}
.quote__metier:hover, .quote__metier:focus-visible { border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(143, 208, 236, .3); outline: none; }
.quote__metier img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.quote__metier strong { display: block; font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.quote__metier small { font-size: 12.5px; color: var(--ink-2); }
.quote__summary {
  margin: 0 0 26px; padding: 18px;
  white-space: pre-wrap; font-family: var(--f-mono); font-size: 12px; line-height: 1.7; color: var(--ink-2);
  background: var(--surface); border-radius: 14px;
  user-select: text;
}

/* La scène se met en retrait quand le panneau est ouvert */
.hero, .dock, .counter { transition-property: opacity, transform, filter; }
html.panel-open .hero { opacity: .15 !important; transition: opacity .5s var(--ease); }
html.panel-open .dock { opacity: 0 !important; transition: opacity .3s var(--ease); pointer-events: none; }
/* Après un panneau : la scène revient tout de suite (sans le délai de l'animation d'arrivée) */
html.panel-used:not(.panel-open) .hero { transition: opacity .45s var(--ease); }
html.panel-used:not(.panel-open) .dock { transition: opacity .45s var(--ease), transform .45s var(--ease); }

/* ---------------------------------------------------------------- loader */
.loader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 34px;
  background: var(--bg);
  transition: opacity .9s var(--ease) .1s, visibility 0s 1s;
  /* Sécurité : quoi qu'il arrive, le chargement disparaît après 8 s */
  animation: loader-out .8s var(--ease) 8s forwards;
}
html.is-ready .loader { opacity: 0; visibility: hidden; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* Logo complet, fidèle à l'original : goutte bleue, texte noir sur blanc */
.logo { position: relative; display: grid; justify-items: center; }
.logo__drop {
  width: 92px; height: 161px;
  fill: var(--blue);
  margin-bottom: -86px; /* le nom traverse la goutte, comme sur le logo */
  animation: drop-in 1.4s var(--ease) both;
}
.logo__word {
  position: relative;
  font-family: var(--f-brand); font-weight: 300;
  font-size: 30px; letter-spacing: .42em; margin-right: -.42em;
  color: var(--ink);
  animation: fade-up 1.2s var(--ease) .35s both;
}
.logo__tag {
  margin-top: 12px;
  font-family: var(--f-brand); font-weight: 400;
  font-size: 10.5px; letter-spacing: .32em; margin-right: -.32em; text-transform: uppercase;
  color: var(--ink);
  animation: fade-up 1.2s var(--ease) .55s both;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-18px) scale(.94); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

.loader__bar { margin-top: 300px; /* sous le logo centré */ width: 120px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar::after {
  content: ''; position: absolute; inset: 0; width: 40%;
  background: var(--blue);
  animation: load 1.2s var(--ease) infinite;
}
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.noscript { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; text-align: center; background: var(--bg); padding: 24px; }

/* ---------------------------------------------------------------- mode repli */
html.is-fallback .stage__canvas { display: none; }

/* Globe CSS (repli sans WebGL) : piloté par renderer-fallback.js via --t (0 repos → 1 voyage) */
html.has-globe .media { background: var(--bg); perspective: none; }
.globe {
  --t: 0;
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform;
  box-shadow:
    0 0 calc(var(--t) * 90px) calc(var(--t) * 8px) rgba(143, 208, 236, calc(var(--t) * .6)),
    0 0 0 calc(var(--t) * 1.5px) rgba(143, 208, 236, calc(var(--t) * .9));
}
.globe__surface, .globe__grid, .globe__shade, .globe__screens { position: absolute; }
.globe__surface, .globe__grid, .globe__shade { inset: 0; border-radius: 50%; }
.globe__surface { background: radial-gradient(circle at 36% 30%, #fff, #edf4f9 55%, #d3e5f1); }
.globe__grid {
  opacity: var(--t);
  background-image:
    repeating-linear-gradient(90deg, rgba(43, 134, 189, .26) 0 1px, transparent 1px 5.5%),
    repeating-linear-gradient(0deg, rgba(43, 134, 189, .2) 0 1px, transparent 1px 7%);
  background-size: 300% 100%, 100% 100%;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 71%);
          mask-image: radial-gradient(circle, #000 40%, transparent 71%);
}
.globe__screens { perspective: 1400px; }
.globe__screens .media__video { transform-origin: 50% 50%; }
.globe__shade {
  pointer-events: none;
  opacity: var(--t);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55), transparent 42%),
    radial-gradient(circle, transparent 56%, rgba(43, 134, 189, .28) 70.5%, rgba(255, 255, 255, .6) 71%);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .counter { display: none; }
}
@media (max-width: 560px) {
  .pill__long { display: none; } /* libellé court : laisse la place au logo centré */
  .pill__short { display: inline; }
  .pill { padding: 9px 14px; font-size: 10px; letter-spacing: .18em; }
  .zone { width: 66px; }
  .world__kicker { font-size: 10px; letter-spacing: .24em; }
  .world__title { font-size: clamp(26px, 9.2vw, 44px); letter-spacing: .03em; }
  .world__tagline { font-size: 11px; letter-spacing: .1em; }
  .world__dot { margin: 0 .55em; }
  .world__cta { padding: 14px 20px 14px 24px; font-size: 11px; }

  .dial { --track-w: calc(100vw - 2 * var(--gutter) - 92px); }
  .dial__name { font-size: 9px; letter-spacing: .16em; }
  .dial__num { font-size: 8.5px; }
  .dock__hint { font-size: 9px; }

  .panel__sheet {
    top: auto; left: 0; width: 100%;
    max-height: 86vh; max-height: 86dvh;
    border-left: 0; border-top: 1px solid var(--line);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -30px 80px -40px rgba(11, 13, 16, .35);
    --pad: 22px;
    padding: 64px var(--pad) calc(28px + var(--safe-b));
    transform: translateY(100%);
  }
  .quote__row { grid-template-columns: 1fr; }
  .world__actions { gap: 10px; }
  .world__quote { padding: 11px 18px; font-size: 10px; letter-spacing: .18em; }
  .panel__close { top: 14px; right: 14px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .world__kicker { display: none; }
  .world__cta { margin-top: 18px; }
  .dock { padding-bottom: calc(var(--safe-b) + 10px); }
  .dock__hint { display: none; }
}

/* ---------------------------------------------------------------- mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero, .dock { transition-delay: 0s; transition-duration: .3s; }
  .panel__sheet { transition-duration: .2s; }
}

/* ---------------------------------------------------------------- Découvrir : Particuliers / Professionnels */
.offers { margin: 4px 0 40px; }
.offers__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 18px; background: var(--surface); }
.offers__tab {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 12px; border-radius: 13px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.offers__tab svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.offers__tab:hover { color: var(--ink); }
.offers__tab[aria-selected="true"] { background: #fff; color: var(--blue-deep); box-shadow: 0 8px 20px -12px rgba(11, 13, 16, .35), 0 0 0 1px rgba(43, 134, 189, .25); }
.offers__panel { animation: offers-in .45s var(--ease); }
.offers__intro { margin: 20px 0 16px; font-size: 15px; color: var(--ink-2); }
.offers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offers__list li {
  display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.offers__list li:hover { border-color: rgba(43, 134, 189, .4); box-shadow: 0 10px 24px -18px rgba(11, 13, 16, .4); transform: translateY(-1px); }
.offers__list img { width: 104px; height: 68px; object-fit: cover; border-radius: 10px; background: var(--surface); }
.offers__list strong { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 500; }
.offers__list span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
@keyframes offers-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 420px) {
  .offers__tab { letter-spacing: .08em; font-size: 12px; }
  .offers__list li { grid-template-columns: 84px 1fr; gap: 12px; }
  .offers__list img { width: 84px; height: 58px; }
}
.offers__single {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--surface);
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep);
}
.offers__single svg { width: 20px; height: 20px; fill: currentColor; }
/* Champ piège anti-robots : invisible pour les visiteurs */
.quote__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
