/* ==========================================================================
   Bingle — feuille de styles
   Palette : noirs et gris profonds, accent bleu ciel utilisé avec parcimonie
   ========================================================================== */

:root {
  --ink: #0e1013;
  --ink-2: #16191e;
  --ink-3: #22262d;
  --g-700: #3b4048;
  --g-600: #545a64;
  --g-500: #6c727c;
  --g-400: #959ba4;
  --g-300: #c4c8ce;
  --g-200: #e3e5e8;
  --g-150: #ebedf0;
  --g-100: #f3f4f6;
  --paper: #ffffff;
  --tint: #f6f7f8;

  --accent: #7ab8f0;        /* bleu ciel : points, jauges, un mot ici et là */
  --accent-ink: #2c6fb3;    /* version lisible sur fond blanc */
  --navy: #061630;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
/* Pas de mot isolé sur la dernière ligne : titres équilibrés, paragraphes « jolis » */
h1, h2, h3, h4, .verdict, .footer__title { text-wrap: balance; }
p, li, dd, small, figcaption, .check span { text-wrap: pretty; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }
.muted { color: var(--g-500); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typo ---------- */
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 560;
  max-width: 16ch;
  text-wrap: balance;
}
.h2--wide { max-width: 26ch; }
.h2--compare { max-width: none; font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1.08; }
.nowrap { white-space: nowrap; }
@media (max-width: 900px) { .nowrap { white-space: normal; } }
.h3 { font-size: 1.375rem; letter-spacing: -0.03em; font-weight: 560; line-height: 1.15; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); max-width: 34ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--g-600);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--g-100);
  box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.05);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(122, 184, 240, 0.18);
}
.eyebrow--dark { background: rgba(255, 255, 255, 0.06); color: var(--g-300); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* ---------- Boutons : pilule + icône imbriquée ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --ic: rgba(255, 255, 255, 0.12);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out), background 0.5s var(--ease);
  will-change: transform;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.98); transition-duration: 0.2s; }
.btn__icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ic);
  transition: transform 0.6s var(--ease), background 0.6s var(--ease);
}
.btn__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--ease); }
.btn:hover .btn__icon { transform: translateX(1px); }
.btn:hover .btn__icon svg { transform: translate(1px, -1px); }
.btn--dark { --fill: #2a2f37; box-shadow: 0 10px 30px -12px rgba(14, 16, 19, 0.45); }
.btn--dark:hover { box-shadow: 0 16px 36px -14px rgba(14, 16, 19, 0.55); }
.btn--light { --bg: #fff; --fg: var(--ink); --ic: var(--g-100); --fill: #eef5fc; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.35); }
.btn--sm { font-size: 14px; padding: 5px 5px 5px 16px; gap: 10px; }
.btn--sm .btn__icon { width: 28px; height: 28px; }

.link {
  position: relative; font-size: 15px; color: var(--g-600);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.4s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; color: var(--ink); }

/* ---------- Logo fixe ---------- */
.brand {
  position: fixed; z-index: 40;
  top: clamp(18px, 3vw, 32px); left: var(--gutter);
  width: clamp(86px, 8vw, 112px);
  aspect-ratio: 690 / 252;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.brand__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand__img--white { opacity: var(--logo-white, 0); }
.brand__img--black { opacity: calc(1 - var(--logo-white, 0)); }
body.is-ready .brand__img { transition: opacity 0.5s var(--ease); }

/* ---------- Navigation flottante ---------- */
.nav {
  position: fixed; z-index: 40;
  top: clamp(14px, 2.6vw, 26px); right: var(--gutter);
  display: flex; align-items: center; gap: 6px;
  padding: 5px 5px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.06), 0 12px 30px -18px rgba(14, 16, 19, 0.3);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background 0.5s var(--ease);
}
body.is-done .nav { opacity: 1; transform: none; pointer-events: auto; }
/* En descendant, logo et navigation s'effacent ; ils reviennent dès qu'on remonte. */
body.is-done.ui-hidden .nav { opacity: 0; transform: translateY(-16px); pointer-events: none; }
body.ui-hidden .brand { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.nav__links { position: relative; display: flex; gap: 2px; }
.nav__links a {
  position: relative; z-index: 1;
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--g-600);
  transition: color 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
/* L'ovale qui suit la souris d'un lien à l'autre */
.nav__pill {
  position: absolute; left: 0; top: 0; height: 100%;
  width: var(--pw, 0px);
  border-radius: 999px;
  background: rgba(14, 16, 19, 0.06);
  transform: translateX(var(--px, 0px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), opacity 0.35s var(--ease);
}
.nav__pill.is-on { opacity: 1; }
body.tone-dark .nav { background: rgba(22, 25, 30, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px -18px rgba(0, 0, 0, 0.5); }
body.tone-dark .nav__links a { color: var(--g-300); }
body.tone-dark .nav__links a:hover { color: #fff; }
body.tone-dark .nav__pill { background: rgba(255, 255, 255, 0.1); }
body.tone-dark .nav .btn--dark { --bg: #fff; --fg: var(--ink); --ic: var(--g-100); --fill: #eef5fc; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: 400vh; background: #fff; }
body.is-done .hero { height: 100vh; height: 100svh; }
.hero__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #f4f4f3 url("hero-first.jpg") center / cover no-repeat;
}
.hero__canvas, .hero__end {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
/* La vidéo sert uniquement de source d'images : elle est dessinée dans le canvas. */
.hero__video { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.hero__end { opacity: 0; transition: opacity 0.4s linear; }
body.is-done .hero__end { opacity: 1; }
/* À la fin de la vidéo, le dégradé du pied de page descend du haut de l'écran */
.hero__glow {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: var(--glow, 0);
}
body.is-done .hero__glow { opacity: 1; }

.hero__copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
  color: #fff;
  pointer-events: none;
}
.hero__title {
  font-size: clamp(1.75rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 560;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line > span {
  display: inline-block;
  transform: translateY(calc((1 - var(--t1, 0)) * 105%));
  opacity: var(--t1, 0);
}
.hero__line:nth-child(2) > span { transform: translateY(calc((1 - var(--t2, 0)) * 105%)); opacity: var(--t2, 0); }
.hero__sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  opacity: var(--t3, 0);
  transform: translateY(calc((1 - var(--t3, 0)) * 14px));
  filter: blur(calc((1 - var(--t3, 0)) * 6px));
}
.hero__cta {
  margin-top: 30px;
  opacity: var(--t4, 0);
  transform: translateY(calc((1 - var(--t4, 0)) * 14px));
}
body.is-done .hero__cta { pointer-events: auto; }

.hero__hint {
  position: absolute; left: 50%; bottom: 64px;
  width: 1px; height: 46px; margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  opacity: 0; transition: opacity 0.8s var(--ease) 0.6s;
}
.hero__hint span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: #fff; animation: hint 2.2s var(--ease) infinite; }
/* Sur le fond gris de fin, l'indicateur de scroll passe en foncé */
body.is-done .hero__hint { background: rgba(14, 16, 19, 0.12); }
body.is-done .hero__hint span { background: var(--ink); }
body.is-done .hero__hint { opacity: 1; }
@keyframes hint { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding: clamp(96px, 13vw, 176px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .muted, .dim { color: var(--g-400); }
.section--rounded {
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  padding-top: calc(clamp(96px, 13vw, 176px) + 40px);
  z-index: 2;
  background: var(--paper);
}
.section--rounded.section--tint { background: var(--tint); }
.section--rounded.section--dark { background: var(--ink); }
.sheet {
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  background: var(--paper);
  z-index: 2;
}

.split-head {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.split-head > p { max-width: 42ch; justify-self: end; }

/* Apparitions au scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Manifeste ---------- */
.manifesto {
  font-size: clamp(1.7rem, 3.3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--g-400);
  max-width: 30ch;
  text-wrap: pretty;
}
.manifesto em { font-style: normal; color: var(--ink); }

.facts {
  /* Bande noire compacte, séparée par des repères « + » comme sur un plan */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  padding: 8px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 30px 60px -36px rgba(14, 16, 19, 0.6);
}
.fact { position: relative; padding: 26px 28px 28px; }
.fact + .fact { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.fact + .fact::before, .fact + .fact::after {
  content: "+"; position: absolute; left: 0; transform: translateX(-50%);
  font-family: var(--mono); font-size: 16px; line-height: 1; color: rgba(255, 255, 255, 0.6);
  background: var(--ink); padding: 2px 0;
}
.fact + .fact::before { top: -2px; }
.fact + .fact::after { bottom: -2px; }
.fact dt { font-size: 12px; color: var(--accent); margin-bottom: 22px; letter-spacing: 0.04em; }
.fact dd { color: var(--g-400); max-width: 34ch; font-size: 14.5px; line-height: 1.5; }
.fact dd strong { display: block; color: #fff; font-weight: 560; font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 6px; }

.process { margin-top: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: 1fr 2.4fr; gap: 64px; }
.process__head p { margin-top: 14px; max-width: 30ch; }
.process__steps { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
.step { position: relative; padding-top: 28px; }
.step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.step::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--g-200); z-index: -1; }
.process__steps.is-in .step::before { transform: scaleX(1); }
.process__steps.is-in .step:nth-child(2)::before { transition-delay: 0.15s; }
.process__steps.is-in .step:nth-child(3)::before { transition-delay: 0.3s; }
.process__steps.is-in .step:nth-child(4)::before { transition-delay: 0.45s; }
.step__num { display: block; font-size: 12px; color: var(--g-500); margin-bottom: 18px; }
.step h4 { font-size: 1.12rem; font-weight: 560; letter-spacing: -0.025em; margin-bottom: 8px; }
.step p { color: var(--g-500); font-size: 15px; max-width: 40ch; }

/* ---------- Double bezel ---------- */
.bezel {
  padding: 6px;
  border-radius: var(--r-xl);
  background: rgba(14, 16, 19, 0.035);
  box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.05);
  height: 100%;
}
.bezel__core {
  position: relative;
  height: 100%;
  border-radius: calc(var(--r-xl) - 6px);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(14, 16, 19, 0.04), 0 24px 48px -28px rgba(14, 16, 19, 0.16);
  overflow: hidden;
}
.bezel--dark { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.bezel--dark .bezel__core { background: var(--ink-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }

.ui-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--g-150);
}
.ui-label { font-size: 12px; color: var(--g-600); }
.ui-meta { margin-left: auto; font-size: 12px; color: var(--g-400); }
.ui-bar .chip { margin-left: auto; }
.ui-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g-300); }
.ui-dot.is-live { background: var(--accent); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(122, 184, 240, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(122, 184, 240, 0); } }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: var(--g-100); color: var(--g-600);
  white-space: nowrap;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.chip--ok, .chip[data-state="ok"] { background: #ecf4fc; color: var(--accent-ink); }
.chip--warn, .chip[data-state="warn"] { background: var(--ink); color: #fff; }

/* Fil d'activité */
.feed { position: relative; height: 300px; padding: 4px 8px 8px; overflow: hidden; }
.feed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.feed__item {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 10px;
  border-radius: 16px;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease), background 0.5s var(--ease);
}
.feed__item + .feed__item { box-shadow: inset 0 1px 0 var(--g-150); }
.feed__item.is-new { animation: feedIn 0.9s var(--ease) both; background: #f6f9fd; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-18px) scale(0.98); } to { opacity: 1; transform: none; } }
.feed__glyph {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--g-100); color: var(--ink);
}
.feed__glyph svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feed__text { min-width: 0; }
.feed__text b { display: block; font-weight: 520; font-size: 14.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__text span { display: block; font-size: 12px; color: var(--g-500); font-family: var(--mono); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__act { display: flex; align-items: center; gap: 8px; }
.mini-btn {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: #fff;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.mini-btn:hover { background: var(--ink-3); transform: translateY(-1px); }
.mini-btn:active { transform: scale(0.96); }
.mini-btn.is-done { background: #ecf4fc; color: var(--accent-ink); }

/* Devis */
.quote { padding: 18px 20px 22px; }
.quote__mail {
  font-size: 13.5px; color: var(--g-700); line-height: 1.5;
  padding: 12px 14px; border-radius: 14px; background: var(--g-100);
  min-height: 74px;
}
.quote__mail .mono { display: block; font-size: 11px; color: var(--g-500); margin-bottom: 4px; }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.quote__lines { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.quote__lines td { padding: 8px 0; border-bottom: 1px solid var(--g-150); color: var(--g-600); }
.quote__lines td:last-child { text-align: right; color: var(--ink); }
.quote__lines tbody tr { opacity: 0.25; transition: opacity 0.6s var(--ease); }
.quote__lines tbody tr.is-on { opacity: 1; }
.quote__lines tfoot td { border: 0; padding-top: 12px; font-weight: 560; color: var(--ink); font-size: 15px; }
.quote__margin { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 10px; font-size: 11px; color: var(--g-500); }
.quote__bar { height: 4px; border-radius: 4px; background: var(--g-150); overflow: hidden; }
.quote__bar i { display: block; height: 100%; width: 31.4%; background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(var(--m, 0)); transition: transform 1.2s var(--ease); }

/* Heures */
.hours { padding: 26px 20px 22px; }
.hours__track { position: relative; height: 10px; border-radius: 10px; background: var(--g-150); }
.hours__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: left; transform: scaleX(var(--h, 0)); transition: transform 1.6s var(--ease); }
.hours__track b { position: absolute; top: -5px; left: var(--at); width: 1px; height: 20px; background: var(--g-300); }
.hours__track b:last-of-type { left: calc(100% - 1px); }
.hours__legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--g-400); }
.hours__legend span:nth-child(2) { position: relative; left: 4%; }
.hours__legend span:nth-child(3) { position: relative; left: 12%; }
.hours__people { margin-top: 18px; }
.hours__people li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--g-150); }
.hours__people .mono { font-size: 12.5px; color: var(--g-600); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-family: var(--mono); background: var(--g-100); color: var(--g-700); box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.06); }

/* Factures */
.invoices { padding: 6px 20px 14px; }
.invoices li { display: grid; grid-template-columns: 56px 1fr auto 92px; gap: 10px; align-items: center; padding: 12px 0; font-size: 13.5px; }
.invoices li + li { border-top: 1px solid var(--g-150); }
.invoices li > span:first-child { font-size: 11.5px; color: var(--g-400); }
.invoices li > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invoices li > span:nth-child(3) { font-size: 12.5px; color: var(--g-600); }
.invoices .chip { justify-self: end; }

/* Aujourd'hui */
.today__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.todo {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  text-align: left; padding: 16px; border-radius: 18px;
  background: var(--g-100); font-size: 13.5px; color: var(--g-600); line-height: 1.35;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.todo__n { font-size: 1.6rem; color: var(--ink); letter-spacing: -0.04em; font-family: var(--font); font-weight: 560; }
.todo--accent { background: var(--ink); color: var(--g-300); }
.todo--accent .todo__n { color: var(--accent); }

/* ---------- Studio : un CRM qui se compose ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }

.crm__core { display: flex; flex-direction: column; }
.crm__top {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--g-150);
}
.crm__org { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 520; letter-spacing: -0.01em; white-space: nowrap; }
.crm__flag { width: 24px; height: 24px; flex: none; }
.crm__search {
  flex: 1; max-width: 340px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--g-100); color: var(--g-400); font-size: 13px;
}
.crm__search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.crm__me { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 11.5px; color: var(--g-500); white-space: nowrap; }

.crm__body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 580px; }
.crm__side { display: flex; flex-direction: column; padding: 18px 12px; border-right: 1px solid var(--g-150); background: #fbfbfc; }
.crm__label { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g-400); padding: 0 10px 10px; }
.crm__nav { display: grid; gap: 2px; }
.crm__nav li { animation: navIn 0.6s var(--ease-out) both; }
.crm__nav button {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px;
  font-size: 13.5px; color: var(--g-600); text-align: left;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.crm__nav button:hover { background: var(--g-100); color: var(--ink); }
.crm__nav button[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--g-200), 0 4px 12px -8px rgba(14, 16, 19, 0.25); }
.crm__nav svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.crm__nav .is-new-mod button::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.crm__foot { margin-top: auto; padding: 16px 10px 0; font-size: 11px; color: var(--g-400); }
@keyframes navIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.crm__main { position: relative; padding: 26px 28px; min-width: 0; }
.view { display: none; }
.view.is-active { display: block; animation: viewIn 0.7s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.view__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.view__kicker { font-size: 11px; color: var(--g-500); margin-bottom: 6px; }
.view__title { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.03em; font-weight: 560; }
.view__title .muted { font-weight: 450; }
.panel { margin-top: 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--g-150); overflow: hidden; }
.view .quote, .view .hours { padding: 0; }
.view .invoices { padding: 0; }

/* Relances */
.rows li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 112px; gap: 14px; align-items: center;
  padding: 13px 0; border-top: 1px solid var(--g-150);
}
.rows li:first-child { border-top: 0; }
.rows b { display: block; font-weight: 520; font-size: 14.5px; letter-spacing: -0.01em; }
.rows small { display: block; font-size: 12.5px; color: var(--g-500); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .when { font-size: 12px; color: var(--g-500); white-space: nowrap; }
.rows .chip { justify-self: end; }
.tag { justify-self: start; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--g-200); color: var(--g-600); }

/* Pipeline */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kanban__col { padding: 10px; border-radius: 14px; background: var(--g-100); min-height: 260px; }
.kanban__col > p { font-size: 11px; color: var(--g-500); padding: 2px 4px 10px; }
.deal { position: relative; padding: 11px 12px; margin-bottom: 8px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--g-150), 0 6px 14px -12px rgba(14, 16, 19, 0.35); }
.deal b { display: block; font-size: 13px; font-weight: 520; letter-spacing: -0.01em; }
.deal span { font-size: 11.5px; color: var(--g-500); }
.deal--ghost { min-height: 52px; background: transparent; box-shadow: none; border: 1.5px dashed var(--g-300); }
.deal--won { box-shadow: inset 0 0 0 1.5px var(--accent); }
.deal--move { z-index: 1; animation: dealMove 7s var(--ease) infinite; }
@keyframes dealMove {
  0%, 30% { transform: none; }
  40% { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 18px 30px -16px rgba(14, 16, 19, 0.35); }
  55%, 85% { transform: translateX(calc(100% + 30px)); }
  100% { transform: none; }
}

/* Fiche client */
.client__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.client__facts div { padding: 14px; border-radius: 14px; background: var(--g-100); }
.client__facts dt { font-size: 10.5px; color: var(--g-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.client__facts dd { font-size: 15px; letter-spacing: -0.01em; }
.timeline li { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 0 12px 18px; border-top: 1px solid var(--g-150); font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--g-300); }
.timeline li:first-child::before { background: var(--accent); }
.timeline .mono { font-size: 12px; color: var(--g-500); }

/* Planning */
.plan { display: grid; gap: 8px; }
.plan__row { display: grid; grid-template-columns: 84px repeat(5, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: 13px; }
.plan__row > span:first-child { color: var(--g-600); }
.plan__row--head span { font-size: 11px; color: var(--g-400); }
.plan__row i {
  grid-row: 1;
  grid-column: calc(var(--s) + 1) / calc(var(--e) + 1);
  font-style: normal; font-size: 12px;
  padding: 10px 10px; border-radius: 9px;
  background: var(--ink); color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plan__row > span:first-child { grid-row: 1; grid-column: 1; }
.plan__row i.is-alt { background: var(--g-150); color: var(--ink); }
.plan__row i.is-off { background: repeating-linear-gradient(135deg, var(--g-100) 0 6px, #fff 6px 12px); color: var(--g-500); box-shadow: inset 0 0 0 1px var(--g-150); }
.plan__row i.is-accent { background: #e8f2fc; color: var(--accent-ink); box-shadow: inset 0 0 0 1px rgba(122, 184, 240, 0.6); }

/* Assistant */
.assist { display: flex; flex-direction: column; gap: 12px; }
.assist .bubble { max-width: 88%; }
.assist__list { margin: 10px 0 14px; }
.assist__list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--g-150); font-size: 14px; color: var(--ink); }
.assist__list .mono { color: var(--g-500); font-size: 12px; }

/* Choix des services */
.picker { position: sticky; top: 110px; }
.picker > .muted { margin: 8px 0 22px; font-size: 15px; }
.picker__list { display: grid; gap: 8px; }
.svc {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 16px;
  background: #fff; text-align: left;
  box-shadow: inset 0 0 0 1px var(--g-200);
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.svc:hover { transform: scale(1.015); box-shadow: inset 0 0 0 1px var(--g-300), 0 14px 28px -20px rgba(14, 16, 19, 0.3); }
.svc:active { transform: scale(0.99); }
.svc b { display: block; font-size: 14.5px; font-weight: 540; letter-spacing: -0.015em; }
.svc small { display: block; font-size: 12.5px; color: var(--g-500); margin-top: 2px; line-height: 1.4; }
.svc__switch { position: relative; width: 36px; height: 21px; border-radius: 999px; background: var(--g-200); transition: background 0.4s var(--ease); }
.svc__switch::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(14, 16, 19, 0.25);
  transition: transform 0.5s var(--ease-out);
}
.svc[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.svc[aria-pressed="true"] .svc__switch { background: var(--ink); }
.svc[aria-pressed="true"] .svc__switch::after { transform: translateX(15px); }

/* ---------- Clients ---------- */
.clients__head { margin-bottom: clamp(48px, 6vw, 72px); }
.clients__count { margin-top: 20px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: 500; color: var(--g-600); }
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.logo-tile {
  --tile: #fff;
  padding: 5px; border-radius: 1.6rem;
  background: rgba(14, 16, 19, 0.035);
  box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.05);
}
.logo-tile--dark { --tile: var(--ink); --name: rgba(255, 255, 255, 0.7); }
.logo-tile--light { --tile: #fff; --name: var(--g-500); }
.logo-tile__core {
  position: relative; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  border-radius: calc(1.6rem - 5px);
  background: var(--g-100);
  overflow: hidden;
  transition: background 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.logo-tile__core img {
  width: auto; height: auto; max-width: 58%; max-height: 42%;
  filter: brightness(0); opacity: 0.5;
  transition: filter 0.7s var(--ease), opacity 0.7s var(--ease), transform 0.8s var(--ease-out);
}
.logo-tile__sector {
  position: absolute; top: 14px; left: 0; right: 0;
  text-align: center;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--g-600);
  transition: color 0.6s var(--ease);
}
.logo-tile:hover .logo-tile__sector { color: var(--name); }
.logo-tile__core img { margin-top: 14px; }
/* Logos multicolores : des nuances de gris plutôt qu'une silhouette, pour garder les détails */
.logo-tile--tonal .logo-tile__core img { filter: grayscale(1) contrast(1.15) brightness(0.82); opacity: 0.8; }
/* Sur le fond gris de la section, les tuiles sont blanches */
.section--tint .logo-tile__core { background: #fff; }
.logo-tile:hover .logo-tile__core { background: var(--tile); box-shadow: 0 24px 40px -26px rgba(14, 16, 19, 0.45); }
.logo-tile:hover img { filter: none; opacity: 1; transform: scale(1.06) translateY(-6px); }
.logo-tile:hover .logo-tile__sector {
  position: absolute; top: 14px; left: 0; right: 0;
  text-align: center;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--g-600);
  transition: color 0.6s var(--ease);
}
.logo-tile:hover .logo-tile__sector { color: var(--name); }
.logo-tile__core img { margin-top: 14px; }

/* ---------- Comparatif ---------- */
.section--dark .h2 { color: #fff; }
.fitting {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(64px, 8vw, 104px);
  align-items: start;
}
.fitting__test .dim { margin-top: 8px; }
.checks { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.checks li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.check {
  display: grid; grid-template-columns: 26px 1fr; gap: 18px; align-items: start;
  padding: 20px 4px; cursor: pointer;
  color: var(--g-300); font-size: 1.02rem; line-height: 1.45;
  transition: color 0.4s var(--ease), transform 0.6s var(--ease-out);
}
.check:hover { color: #fff; transform: translateX(10px); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  width: 22px; height: 22px; border-radius: 7px; margin-top: 2px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  display: grid; place-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.check__box::after {
  content: ""; width: 10px; height: 5px;
  border-left: 1.75px solid var(--ink); border-bottom: 1.75px solid var(--ink);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.45s var(--ease);
}
.check input:checked + .check__box { background: var(--accent); box-shadow: none; transform: scale(1.05); }
.check input:checked + .check__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:checked ~ span:last-child { color: #fff; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.file { font-size: 0.86em; background: rgba(255, 255, 255, 0.07); padding: 2px 8px; border-radius: 6px; color: #fff; word-break: break-all; }

.fitting__result { position: sticky; top: 110px; }
.fitting__result .bezel__core { padding: 32px; }
.label-sm { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-400); }
/* Étiquette cousue « Swiss Made », comme dans un vêtement sur mesure */
.result__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.swiss-made {
  width: 112px; height: auto; flex: none;
  transform: rotate(2.5deg);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.7s var(--ease-out);
}
.fitting__result:hover .swiss-made { transform: rotate(0deg) scale(1.04); }
.tape {
  position: relative; height: 56px; margin: 26px 0 30px;
  border-radius: 10px; overflow: hidden;
  background: #e9d9b5;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.tape__ticks {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(14, 16, 19, 0.55) 0 1px, transparent 1px 100%) 0 0 / calc(100% / 6) 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 16, 19, 0.55) 0 1px, transparent 1px calc(100% / 30)) 0 0 / 100% 34% no-repeat,
    repeating-linear-gradient(90deg, rgba(14, 16, 19, 0.7) 0 1px, transparent 1px calc(100% / 6)) 0 0 / 100% 62% no-repeat;
}
.tape__fill {
  position: absolute; inset: 0;
  background: var(--accent);
  mix-blend-mode: multiply;
  transform-origin: left; transform: scaleX(var(--fit, 0));
  transition: transform 0.9s var(--ease);
}
.verdict { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 560; color: #fff; min-height: 2.2em; }
.fitting__result .dim { margin: 12px 0 28px; min-height: 3em; font-size: 15px; }
.verdict.is-swap, .js-verdict-sub.is-swap { animation: swap 0.6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }


/* ---------- Bulles (assistant) ---------- */
.bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 22px;
  font-size: 15.5px; line-height: 1.55;
  animation: bubble 0.7s var(--ease) both;
}
.bubble--q { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble--a { align-self: flex-start; background: #fff; color: var(--g-700); border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px var(--g-200), 0 18px 36px -24px rgba(14, 16, 19, 0.25); }
.bubble--a strong { color: var(--ink); font-weight: 560; }
.bubble__from { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--g-400); font-family: var(--mono); margin-bottom: 6px; }
.bubble__from i { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 9px; }
@keyframes bubble { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.team__text .h2 { margin-bottom: 28px; }
.team__text .lead { margin-bottom: 20px; }
.team__text .muted { max-width: 52ch; }
.team__people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.person--offset { margin-top: 72px; --d: 140ms; }
.person__core { display: flex; flex-direction: column; }
.person__portrait {
  position: relative; aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #eef0f3, #dfe3e8);
  display: grid; place-items: center;
  overflow: hidden;
}
.person--offset .person__portrait { background: linear-gradient(160deg, #1b1f25, #0e1013); }
.person__portrait span {
  position: relative;
  font-size: clamp(5rem, 9vw, 8rem); font-weight: 600; letter-spacing: -0.06em; line-height: 1;
  color: var(--ink);
  transition: transform 1s var(--ease);
}
.person--offset .person__portrait span { color: #fff; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.topo path { fill: none; stroke: rgba(14, 16, 19, 0.12); stroke-width: 0.7; }
.person--offset .topo path { stroke: rgba(255, 255, 255, 0.1); }
.topo path.is-accent { stroke: var(--accent); stroke-width: 1; opacity: 0.9; }
.person:hover .topo { transform: scale(1.06); }
.person:hover .person__portrait span { transform: translateY(-4px); }
.person__meta { padding: 18px 18px 20px; display: flex; align-items: baseline; justify-content: space-between; }
.person__meta h3 { font-size: 1.2rem; font-weight: 560; letter-spacing: -0.025em; }
.person__meta p { font-size: 12px; color: var(--g-500); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  color: #fff;
  padding-top: clamp(320px, 36vw, 500px);
  background: linear-gradient(to bottom, #fff 0%, #cfe6fb 16%, #4f8fd6 28%, #12376e 45%, var(--navy) 65%);
  overflow: hidden;
}
.footer__waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer__inner { position: relative; }
.footer__claim {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: clamp(56px, 7vw, 88px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__title { font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 560; max-width: 20ch; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: clamp(48px, 6vw, 72px) 0; }
.footer__brand img { width: 108px; height: auto; margin-bottom: 18px; }
.footer__brand p { color: rgba(255, 255, 255, 0.55); font-size: 14.5px; max-width: 32ch; }
.footer__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 18px; }
.footer__grid ul { display: grid; gap: 10px; }
.footer__grid li a, .footer__grid li span { font-size: 14.5px; color: rgba(255, 255, 255, 0.78); }
.footer__grid li a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.4s var(--ease);
  padding-bottom: 2px;
}
.footer__grid li a:hover { color: #fff; background-size: 100% 1px; }
.made-in { display: inline-flex; align-items: center; gap: 10px; }
.made-in img { width: 17px; height: auto; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px; color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .studio { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .picker { position: static; }
  .picker__list { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 40px; }
  .nav__links { display: none; }
}

@media (max-width: 767px) {
  .section { padding: 88px 0; }
  .sheet { border-radius: 28px 28px 0 0; margin-top: -28px; }
  .section--rounded { border-radius: 28px 28px 0 0; margin-top: -28px; padding-top: 116px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .split-head,   .split-head > p { justify-self: start; }
  .split-head { margin-bottom: 48px; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 22px 20px; border-left: 0; }
  .fact + .fact { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .fact + .fact::before { top: 0; left: 50%; transform: translate(-50%, -50%); padding: 0 6px; }
  .fact + .fact::after { display: none; }
  .fact dt { margin-bottom: 12px; }
  .process__steps { grid-template-columns: 1fr; gap: 36px; }
  .studio { gap: 28px; }
  .picker { order: -1; }
  .picker__list { grid-template-columns: 1fr; }
  .crm__search, .crm__me .mono { display: none; }
  .crm__body { grid-template-columns: 1fr; min-height: 0; }
  .crm__side { border-right: 0; border-bottom: 1px solid var(--g-150); padding: 10px; overflow-x: auto; }
  .crm__label, .crm__foot { display: none; }
  .crm__nav { display: flex; gap: 4px; }
  .crm__nav button { white-space: nowrap; padding: 8px 12px; }
  .crm__main { padding: 18px 16px; }
  .view__title { font-size: 1.05rem; }
  .kanban { grid-template-columns: repeat(4, 150px); overflow-x: auto; }
  .plan__row { grid-template-columns: 64px repeat(5, minmax(0, 1fr)); font-size: 11px; }
  .rows li { grid-template-columns: auto minmax(0, 1fr); }
  .rows .when { display: none; }
  .rows .chip { grid-column: 2; justify-self: start; }
  .client__facts { grid-template-columns: 1fr; }
  .today__grid { grid-template-columns: 1fr 1fr; }
  .invoices li { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .invoices li > span:first-child { display: none; }
  .invoices li > span:nth-child(3) { grid-row: 2; }
  .invoices .chip { grid-row: 1 / span 2; grid-column: 2; }
  .fitting__result { position: static; }
  .fitting__result .bezel__core { padding: 24px; }
  .team__people { gap: 12px; }
  .person--offset { margin-top: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .btn { font-size: 14.5px; }
  .hero__hint { bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* Réponse de l'assistant : elle arrive juste après la question */
.assist .bubble--q { animation: bubble 0.7s var(--ease) both; }
.assist .bubble--a { animation: bubble 0.7s var(--ease) 0.6s both; }

/* ==========================================================================
   CHAT
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat { position: fixed; z-index: 45; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); }
.chat__launcher {
  display: block; width: 78px; height: 78px;
  opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease-out);
}
body.is-done .chat__launcher { opacity: 1; transform: none; pointer-events: auto; }
body.is-done .chat__launcher:hover { transform: scale(1.06); }
body.is-done .chat__launcher:active { transform: scale(0.96); }
.chat__launcher canvas { width: 78px; height: 78px; }

.chat__panel {
  position: absolute; right: 4px; bottom: 92px;
  width: min(390px, calc(100vw - 28px));
  height: min(600px, calc(100dvh - 140px));
  display: flex; flex-direction: column;
  border-radius: 26px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.06), 0 40px 80px -30px rgba(6, 22, 48, 0.45), 0 12px 24px -16px rgba(14, 16, 19, 0.25);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0; transform: translateY(14px) scale(0.96); pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease-out);
}
.chat.is-open .chat__panel { opacity: 1; transform: none; pointer-events: auto; }

.chat__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--g-150); }
.chat__status { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 560; letter-spacing: -0.015em; }
.chat__live { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; animation: live 2.2s ease-in-out infinite; }
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.5); opacity: 1; } 50% { box-shadow: 0 0 0 5px rgba(47, 191, 113, 0); opacity: 0.75; } }
.chat__close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--g-500); transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease-out); }
.chat__close:hover { background: var(--g-100); color: var(--ink); transform: scale(1.06); }
.chat__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(to bottom, #fff, var(--tint)); }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; animation: bubble 0.55s var(--ease) both; text-wrap: pretty; }
.msg--bot { align-self: flex-start; background: #fff; color: var(--g-700); border-bottom-left-radius: 6px; box-shadow: inset 0 0 0 1px var(--g-200); }
.msg--bot strong { color: var(--ink); font-weight: 560; }
.msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg--typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 15px; background: #fff; box-shadow: inset 0 0 0 1px var(--g-200); border-bottom-left-radius: 6px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--g-400); animation: dots 1.1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.recap { display: block; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--g-100); font-size: 13.5px; color: var(--g-700); }
.recap b { color: var(--ink); font-weight: 560; }
.recap span { color: var(--g-500); }

.msg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 6px; animation: bubble 0.55s var(--ease) 0.1s both; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  font-size: 13px; color: var(--ink); background: #fff;
  box-shadow: inset 0 0 0 1px var(--g-200);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.chip-btn:hover { transform: scale(1.04); box-shadow: inset 0 0 0 1px var(--g-400); }
.chip-btn:active { transform: scale(0.97); }
.chip-btn--book { background: var(--ink); color: #fff; box-shadow: none; }
.chip-btn--book:hover { box-shadow: none; background: var(--ink-3); }
.chip-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.chat__form { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--g-150); background: #fff; }
.chat__input {
  flex: 1; min-width: 0;
  padding: 12px 14px; border-radius: 14px; border: 0;
  background: var(--g-100); color: var(--ink);
  font: inherit; font-size: 14.5px;
  outline: none;
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.chat__input:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chat__send { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform 0.5s var(--ease-out), background 0.4s var(--ease); }
.chat__send:hover { transform: scale(1.06); background: var(--ink-3); }
.chat__send:active { transform: scale(0.95); }
.chat__send svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 767px) {
  .chat__launcher, .chat__launcher canvas { width: 66px; height: 66px; }
  .chat__panel { position: fixed; right: 10px; left: 10px; bottom: 88px; width: auto; height: min(560px, calc(100dvh - 120px)); }
}

/* ==========================================================================
   RÉSERVATION : fenêtre au centre du site
   ========================================================================== */
.book { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.book__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 22, 48, 0.42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.book__dialog {
  position: relative;
  width: min(880px, 100%);
  height: min(760px, calc(100dvh - 40px));
  display: flex; flex-direction: column;
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.06), 0 50px 100px -40px rgba(6, 22, 48, 0.6);
  overflow: hidden;
  opacity: 0; transform: translateY(24px) scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out);
}
.book.is-open { pointer-events: auto; }
.book.is-open .book__backdrop { opacity: 1; }
.book.is-open .book__dialog { opacity: 1; transform: none; }
.book__head { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--g-150); }
.book__title { font-size: 16px; font-weight: 560; letter-spacing: -0.02em; }
.book__meta { font-size: 11.5px; color: var(--g-500); }
.book__close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--g-500); transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease-out); }
.book__close:hover { background: var(--g-100); color: var(--ink); transform: scale(1.06); }
.book__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.book__body { position: relative; flex: 1; background: var(--tint); }
.book__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.book.is-loaded .book__frame { opacity: 1; }
.book__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.4s var(--ease); }
.book.is-loaded .book__loading { opacity: 0; }
.book__loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--g-400); animation: dots 1.1s ease-in-out infinite; }
.book__loading span:nth-child(2) { animation-delay: 0.15s; }
.book__loading span:nth-child(3) { animation-delay: 0.3s; }
body.is-booking .chat { opacity: 0; pointer-events: none; }
.chat { transition: opacity 0.4s var(--ease); }
.tel { color: var(--ink); font-weight: 560; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
@media (max-width: 767px) {
  .book { padding: 0; align-items: end; }
  .book__dialog { width: 100%; height: calc(100dvh - 24px); border-radius: 24px 24px 0 0; }
  .book__meta { display: none; }
}
/* Lien de secours, toujours accessible sous le calendrier */
.book__fallback {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; color: var(--g-600); white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px var(--g-200), 0 8px 20px -12px rgba(14, 16, 19, 0.3);
  transition: color 0.4s var(--ease), transform 0.5s var(--ease-out);
  z-index: 1;
}
.book__fallback:hover { color: var(--ink); transform: translateX(-50%) scale(1.04); }
