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

/* Polices hébergées sur notre serveur (pas d'appel à Google Fonts) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("geist-latin.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; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("geist-mono-latin.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 {
  --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%; scrollbar-gutter: stable; }
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: 1000 / 342;
  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);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background 0.5s var(--ease);
}
/* En descendant, logo et navigation s'effacent ; ils reviennent dès qu'on remonte. */
body.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?v=20261031f") center / cover no-repeat;
}
@media (max-width: 820px) { .hero__sticky { background-image: url("hero-first-mobile.jpg?v=20261031f"); } }
.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; }
/* Au repos, on voit la photo nette de la 1re image ; la vidéo prend le relais dès qu'elle avance. */
.hero__canvas { opacity: 0; transition: opacity 0.2s linear; }
.hero.is-moving .hero__canvas { 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 */
/* Masqué seulement si le JavaScript tourne : sans lui, tout reste lisible */
.js .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);
}
.js .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; }
/* La maquette garde la hauteur de son contenu, même quand la colonne des modules est plus longue */
.studio > .crm { height: auto; }

.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); }
.picker__cta { margin-top: 28px; }
.picker__cta-title { font-size: 15px; font-weight: 540; letter-spacing: -0.015em; margin-bottom: 12px; }
.picker__cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 16px;
  background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 540; letter-spacing: -0.015em;
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s var(--ease);
}
.picker__cta-btn:hover { transform: scale(1.015); box-shadow: inset 0 0 0 1px var(--ink), 0 14px 28px -20px rgba(14, 16, 19, 0.3); }
.picker__cta-btn span { transition: transform 0.4s var(--ease-out); }
.picker__cta-btn:hover span { transform: translateX(3px); }

/* ---------- 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: min(0.86em, max(10px, 3.2vw)); background: rgba(255, 255, 255, 0.07); padding: 2px 8px; border-radius: 6px; color: #fff; white-space: nowrap; }

.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);
}
.result__count { margin: -12px 0 14px; font-size: 13px; color: var(--g-400); }
.result__count span { color: #fff; }
.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; margin-bottom: 28px; }
.verdict.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__text .muted + .muted { margin-top: 14px; }
.team__people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; width: 100%; max-width: 440px; justify-self: center; }
.person--offset { margin-top: 56px; --d: 140ms; }
/* Portraits : lueur colorée tirée de la photo, relief au survol, courbes de niveau */
.person__stage { position: relative; perspective: 900px; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; }
.person__glow {
  position: absolute; inset: 8% 6% -4%; width: 88%; height: 96%; object-fit: cover;
  border-radius: 40px; filter: blur(30px) saturate(1.7); opacity: 0.75;
  transform: translateY(26px) scale(0.94); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none; z-index: 0;
}
.person__frame {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 28px 28px 28px 8px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease), border-radius 0.8s var(--ease);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 60px -34px rgba(14, 16, 19, 0.45);
  will-change: transform;
}
.person--offset .person__frame { border-radius: 28px 28px 8px 28px; }
.person__photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.person__frame .topo { z-index: 1; opacity: 0.55; mix-blend-mode: soft-light; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 55%); mask-image: linear-gradient(to top, #000 0%, transparent 55%); }
.person__frame .topo path { stroke: rgba(255, 255, 255, 0.9); stroke-width: 0.8; }
.person__frame .topo path.is-accent { stroke: var(--accent); stroke-width: 1.1; opacity: 1; }
.person__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(6, 12, 24, 0.55), transparent 38%); pointer-events: none; }
.person__sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.28), transparent 45%); mix-blend-mode: overlay; }
.person__tag {
  position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-radius: 16px; color: #fff;
  background: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transform: translateY(0); transition: transform 0.8s var(--ease);
}
.person__tag h3 { font-size: 1.15rem; font-weight: 560; letter-spacing: -0.025em; }
.person__tag p { font-size: 11.5px; color: rgba(255, 255, 255, 0.78); }
.person:hover .person__photo { transform: scale(1.02); }
.person:hover .person__glow { opacity: 0.95; transform: translateY(34px) scale(0.98); }
.person:hover .person__sheen { opacity: 1; }
.person:hover .person__frame { border-radius: 28px; }
.person:hover .person__tag { transform: translateY(-4px); }
/* Apparition : le portrait se dévoile de bas en haut */
.js .person.reveal .person__frame { clip-path: inset(100% 0 0 0 round 28px); transition: clip-path 1.3s var(--ease) var(--d, 0ms), transform 0.6s var(--ease), border-radius 0.8s var(--ease); }
.js .person.reveal.is-in .person__frame { clip-path: inset(0 0 0 0 round 0); }
.js .person.reveal .person__glow { opacity: 0; }
.js .person.reveal.is-in .person__glow { opacity: 0.75; transition-delay: calc(var(--d, 0ms) + 0.5s); }
.js .person.reveal.is-in:hover .person__glow { opacity: 0.95; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .js .person.reveal .person__frame { clip-path: none; } .js .person.reveal .person__glow { opacity: 0.55; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  color: #fff;
  padding-top: clamp(240px, 27vw, 380px);
  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 1.2fr 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; }
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@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, .team, .fitting { grid-template-columns: 1fr; gap: 24px; }
  .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; }
  .person__tag { flex-direction: column; align-items: flex-start; gap: 2px; left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; border-radius: 12px; }
  .person__tag h3 { font-size: 1rem; }
  .person__tag p { font-size: 10.5px; }
  .person__frame, .person--offset .person__frame { border-radius: 20px 20px 20px 6px; }
  .person__glow { filter: blur(22px) saturate(1.4); }
  .fitting__result .result__head { align-items: flex-start; }
  .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; }
  .js .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:not(.is-open) { visibility: hidden; transition: visibility 0s linear 0.6s; }
.book.is-open { visibility: visible; transition: visibility 0s; }
.book__backdrop {
  /* Voile simple, sans flou : le flou animé sur les dégradés provoquait un scintillement du fond */
  position: absolute; inset: 0;
  background: rgba(6, 18, 40, 0.52);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.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(18px) scale(0.985);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}
.book.is-open { pointer-events: auto; }
.book.is-open .book__backdrop { opacity: 1; transition-duration: 0.6s; }
.book.is-open .book__dialog {
  opacity: 1; transform: none;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.06s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.06s;
}
.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); }
/* Calendrier bloqué par le navigateur : une solution claire au lieu d'une fenêtre vide */
.book__blocked {
  position: absolute; inset: 0; z-index: 2;
  display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 32px; gap: 12px; background: var(--tint);
}
.book.is-blocked .book__blocked { display: flex; animation: bubble 0.6s var(--ease) both; }
.book.is-blocked .book__loading, .book.is-blocked .book__fallback { display: none; }
.book__blocked-title { font-size: 1.35rem; font-weight: 560; letter-spacing: -0.03em; }
.book__blocked-text { color: var(--g-500); max-width: 44ch; font-size: 15px; }
.book__blocked-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ==========================================================================
   BLOG / RESSOURCES
   ========================================================================== */
body.page-blog { background: var(--paper); }
body.page-blog .nav { opacity: 1; transform: none; pointer-events: auto; }
.blog-top { padding: clamp(120px, 14vw, 170px) 0 clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--g-500); margin-bottom: 28px; }
.crumbs a { color: var(--g-500); transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--g-300); }
.blog-top h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 560;
  max-width: 22ch;
}
.article-meta { margin-top: 26px; font-size: 15px; color: var(--g-500); }
.blog-top h1 .t-line { display: block; text-wrap: balance; }
.article-meta .chip { background: var(--ink); color: #fff; }
.article-meta .chip::before { background: var(--accent); opacity: 1; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--g-300); }
.article-lead { margin-top: 28px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; letter-spacing: -0.015em; color: var(--g-700); max-width: 60ch; }
.article-lead p + p { margin-top: 12px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.prose { max-width: 70ch; font-size: 17px; line-height: 1.72; color: var(--g-700); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -0.035em; font-weight: 560; color: var(--ink); scroll-margin-top: 110px; }
.prose h3 { margin-top: 1.8em; font-size: 1.2rem; letter-spacing: -0.02em; font-weight: 560; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 560; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color 0.3s var(--ease); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose a.btn { text-decoration: none; color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.4em; }
.prose ul li::before { content: ""; position: absolute; left: 0.2em; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote { padding: 18px 22px; border-radius: 16px; background: var(--tint); color: var(--ink); font-size: 1.05em; }
.table-wrap { overflow-x: auto; margin-top: 1.4em; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--g-200); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--g-150); }
.prose thead th { background: var(--ink); color: #fff; font-weight: 520; font-size: 14px; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody td:first-child { color: var(--ink); font-weight: 520; }

/* Encadré de réservation */
.cta-box {
  margin: 2.4em 0 !important;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 24px;
  background: var(--ink); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-box::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 184, 240, 0.35), transparent 70%); pointer-events: none;
}
.cta-box__title { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.025em; font-weight: 560; color: #fff; }
.cta-box__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--g-300); }
.cta-box .btn { position: relative; z-index: 1; }

/* Sommaire */
.toc { position: sticky; top: 110px; }
.toc__card { padding: 22px; border-radius: 22px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--g-150); }
.toc__label { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 2px 0 12px 10px; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc li a {
  display: block; padding: 7px 10px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.35; color: var(--g-600);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.toc li a:hover { color: var(--ink); background: rgba(14, 16, 19, 0.04); }
.toc li a.is-active { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--g-200); }
.toc__cta { margin-top: 14px; padding: 20px; border-radius: 22px; background: var(--ink); color: #fff; }
.toc__cta p { font-size: 15px; font-weight: 520; letter-spacing: -0.015em; margin-bottom: 14px; line-height: 1.35; }
.toc__cta .btn { width: 100%; justify-content: space-between; }

/* FAQ */
.faq { margin-top: 3em !important; }
.faq h2 { margin-bottom: 0.6em; }
.faq details { border-top: 1px solid var(--g-200); }
.faq details:last-of-type { border-bottom: 1px solid var(--g-200); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 18px 4px; font-size: 1.05rem; font-weight: 520; color: var(--ink); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--g-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8M8 4v8' stroke='%230e1013' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.5s var(--ease-out), background-color 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--g-150); }
.faq details p { padding: 0 4px 20px; margin: 0; }

.sources { margin-top: 3em !important; font-size: 13.5px; color: var(--g-500); }
.sources summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-500);
  transition: color 0.3s var(--ease);
}
.sources summary::-webkit-details-marker { display: none; }
.sources summary::after { content: "+"; font-size: 14px; transition: transform 0.4s var(--ease-out); }
.sources[open] summary::after { transform: rotate(45deg); }
.sources summary:hover { color: var(--ink); }
.sources ol { margin-top: 10px; padding-left: 1.2em; list-style: decimal; }
.sources a { color: var(--g-600); text-decoration-color: var(--g-300); text-decoration-thickness: 1px; word-break: break-word; }

.article-authors { margin-top: 3em !important; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--tint); font-size: 14.5px; color: var(--g-600); }
.article-authors b { color: var(--ink); font-weight: 560; }
.article-authors .avatars { display: flex; }
.article-authors .avatars span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--tint), inset 0 0 0 1px var(--g-200); }
.article-authors .avatars span + span { margin-left: -8px; background: var(--ink); color: #fff; }

/* Cartes d'articles (liste et articles liés) */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card {
  display: flex; flex-direction: column; gap: 14px; height: 100%;
  padding: 24px; border-radius: 24px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--g-200);
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--g-300), 0 24px 40px -28px rgba(14, 16, 19, 0.35); }
.post-card__cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.post-card__title { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.025em; font-weight: 560; color: var(--ink); }
.post-card__desc { font-size: 14.5px; line-height: 1.55; color: var(--g-500); flex: 1; }
.post-card__more { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--g-500); font-family: var(--mono); }
.post-card__more i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--g-100); font-style: normal; transition: transform 0.5s var(--ease-out), background 0.4s var(--ease); }
.post-card:hover .post-card__more i { background: var(--ink); color: #fff; transform: translateX(2px); }
.related { padding: clamp(72px, 9vw, 120px) 0; background: var(--tint); }
.related h2 { margin-bottom: 36px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 40px; }
.filter {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--g-600);
  box-shadow: inset 0 0 0 1px var(--g-200); background: #fff;
  transition: transform 0.5s var(--ease-out), background 0.4s var(--ease), color 0.4s var(--ease);
}
.filter:hover { transform: scale(1.04); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.post-card.is-hidden { display: none; }
.blog-list { padding-bottom: clamp(80px, 10vw, 140px); }

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .blog-top { padding-top: 110px; }
  .prose { font-size: 16.5px; }
  .cta-box { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
}

/* Barre de lecture verticale : se remplit au fil de l'article */
.read-progress {
  position: fixed; z-index: 30;
  top: 12.5vh; height: 75vh; width: 4px;
  left: var(--rp-left, 24px);
  border-radius: 4px;
  background: var(--g-150);
  overflow: hidden;
  opacity: 0; transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.read-progress.is-on { opacity: 1; }
.read-progress i {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, #2b5fb0, #12376e);
  border-radius: inherit;
  transform-origin: top; transform: scaleY(var(--rp, 0));
}
@media (max-width: 767px) { .read-progress { width: 3px; } }

/* Indication de défilement, visible seulement avant le premier mouvement */
.scroll-cue {
  position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 300; letter-spacing: 0.06em;
  color: rgba(14, 16, 19, 0.62);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out);
  animation: cueIn 1.2s var(--ease-out) 0.8s both;
}
.scroll-cue i { position: relative; width: 1px; height: 30px; background: rgba(14, 16, 19, 0.15); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%; background: rgba(14, 16, 19, 0.55); animation: hint 2s var(--ease) infinite; }
body.has-scrolled .scroll-cue { opacity: 0; transform: translate(-50%, 10px); animation: none; }
@keyframes cueIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Pages légales */
.legal-layout { max-width: 760px; padding-bottom: clamp(80px, 10vw, 140px); }
.legal-layout .prose h3 { margin-top: 1.6em; }
.todo-fill { background: #fff3c4; color: #7a5a00; padding: 0 .3em; border-radius: 4px; }

/* ---------- Produit phare : démos 3D en quadrillage ---------- */
.demos {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--g-200); border-bottom: 1px solid var(--g-200);
}
.demos::before, .demos::after { content: ""; position: absolute; background: var(--g-200); pointer-events: none; }
.demos::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.demos::after { top: 50%; left: 0; right: 0; height: 1px; }
.demos__cross { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; transform: translate(-50%, -50%); z-index: 1; background: var(--paper); }
.demos__cross::before, .demos__cross::after { content: ""; position: absolute; background: var(--ink); }
.demos__cross::before { left: 7px; top: 0; bottom: 0; width: 1px; }
.demos__cross::after { top: 7px; left: 0; right: 0; height: 1px; }
.demo { margin: 0; padding: clamp(20px, 2.6vw, 36px); cursor: pointer; }
.demo__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.demo__num { font-size: 11px; color: var(--g-400); }
.demo__title { font-size: 1.12rem; font-weight: 560; letter-spacing: -0.025em; color: var(--ink); }
.demo__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #34c759; align-self: center; opacity: 0; transform: scale(0.4); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.demo.is-playing .demo__dot { opacity: 1; transform: none; }
.demo__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(52, 199, 89, 0.35); animation: dotPulse 1.6s ease-out infinite; }
@keyframes dotPulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .demo__dot::after { animation: none; opacity: 0; } }
.kicker { font-size: clamp(0.85rem, 1.1vw, 1rem); font-weight: 800; padding-left: calc(clamp(2rem, 4.2vw, 3.6rem) * 0.082 - 0.068em); /* aligne le N sur le L du titre */ letter-spacing: 0.08em; text-transform: uppercase; color: #e5231b; margin-bottom: 14px; }
.demo__screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 18px; background: var(--g-100);
  box-shadow: 0 0 0 1px rgba(14, 16, 19, 0.06), 0 24px 50px -32px rgba(14, 16, 19, 0.35);
  transform: translateZ(0);
  transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.demo:hover .demo__screen { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(14, 16, 19, 0.08), 0 34px 60px -30px rgba(14, 16, 19, 0.4); }
.demo__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo__screen::after { content: ""; position: absolute; inset: 0; background: rgba(250, 250, 250, 0.18); transition: opacity 0.5s var(--ease); pointer-events: none; }
.demo.is-playing .demo__screen::after { opacity: 0; }
.demo__play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 10px 30px -10px rgba(14, 16, 19, 0.35);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.demo__play svg { width: 16px; height: 16px; fill: var(--ink); margin-left: 2px; }
.demo.is-playing .demo__play { opacity: 0; transform: scale(0.8); }
.demo__bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); overflow: hidden; z-index: 1; opacity: 0; transition: opacity 0.4s; }
.demo__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.25s linear; }
.demo.is-playing .demo__bar { opacity: 1; }
@media (max-width: 760px) {
  .demos { grid-template-columns: 1fr; border-bottom: 0; }
  .demos::before, .demos::after, .demos__cross { display: none; }
  .demo { padding: 22px 0; border-bottom: 1px solid var(--g-200); }
  .demo__screen { border-radius: 14px; }
}
@media (hover: none), (pointer: coarse) { .only-fine { display: none; } }

/* Espacements resserrés : démos 3D → studio, équipe → pied de page */
#crm-3d { padding-bottom: clamp(40px, 5vw, 72px); }
#agents { padding-top: clamp(40px, 5vw, 72px); }
#equipe { padding-bottom: clamp(48px, 6vw, 88px); }

/* Rôle sous chaque photo, révélé au survol */
.person__role {
  display: flex; flex-direction: column; gap: 3px;
  position: relative; z-index: 3;
  margin-top: 14px; padding-left: 4px;
}
.person__role span:first-child { font-size: 13.5px; font-weight: 560; letter-spacing: -0.015em; color: var(--ink); }
.person__role .mono { font-size: 11px; color: var(--g-500); }


/* ==========================================================================
   Premier écran : titre et « Passer l'intro » visibles dès le chargement
   ========================================================================== */
.hero__h1 {
  position: absolute; left: 50%; top: 50%;
  width: max-content; max-width: calc(100vw - 32px);
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--mono); font-weight: 500; text-transform: uppercase;
  font-size: clamp(12px, 1vw, 15px); line-height: 1.7; letter-spacing: 0.22em;
  color: #0e1013;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.85), 0 0 2px rgba(255, 255, 255, 0.6);
  pointer-events: none;
  animation: cueIn 1s var(--ease-out) 0.2s both;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
body.has-scrolled .hero__h1 { opacity: 0; visibility: hidden; animation: none; }
.hero__skip {
  position: absolute; right: var(--gutter); bottom: max(28px, env(safe-area-inset-bottom));
  min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.08);
  font: inherit; font-size: 13.5px; color: var(--g-700);
  opacity: var(--intro, 1);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.hero__skip:hover { color: var(--ink); background: #fff; }
body.is-done .hero__h1, body.is-done .hero__skip, body.is-done .scroll-cue { opacity: 0; visibility: hidden; }
@media (max-width: 767px) {
  .hero__h1 { width: auto; max-width: 300px; font-size: 12px; letter-spacing: 0.18em; text-wrap: balance; }
  .hero__h1 .nowrap { white-space: normal; }
  .hero__skip { bottom: max(22px, env(safe-area-inset-bottom)); right: 12px; font-size: 12.5px; padding: 0 12px; }
}

/* Mention sous la démo du CRM */
#agents .split-head .h2 { grid-column: 1; grid-row: 1; }
#agents .split-head .muted { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.split-head > .demo-note { grid-column: 1; grid-row: 2; justify-self: start; max-width: none; margin-top: -34px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--g-500); }
@media (max-width: 767px) {
  #agents .split-head .h2, #agents .split-head .muted, .split-head > .demo-note { grid-column: auto; grid-row: auto; }
  .split-head > .demo-note { margin-top: -12px; }
}

/* ==========================================================================
   Menu repliable (tablette et téléphone)
   ========================================================================== */
.nav__toggle { display: none; }
@media (max-width: 1080px) {
  .nav__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: 2px;
    border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--ink);
  }
  .nav__toggle i, .nav__toggle i::before { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
  .nav__toggle i { position: relative; box-shadow: 0 -5px 0 currentColor; transform: translateY(2.5px); }
  .nav__toggle i::before { content: ""; position: absolute; left: 0; top: 0; transform: translateY(-5px); opacity: 0; }
  body.nav-open .nav__toggle i { box-shadow: none; transform: rotate(45deg); }
  body.nav-open .nav__toggle i::before { opacity: 1; transform: rotate(-90deg); }
  body.tone-dark .nav__toggle { color: #fff; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); right: 0;
    display: flex; flex-direction: column; gap: 0;
    min-width: 230px; padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.06), 0 24px 50px -24px rgba(14, 16, 19, 0.35);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  body.nav-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__links a { padding: 12px 16px; font-size: 16px; color: var(--ink); }
  .nav__pill { display: none; }
  body.tone-dark .nav__links { background: rgba(22, 25, 30, 0.96); }
  body.tone-dark .nav__links a { color: #fff; }
}

/* ==========================================================================
   Guides et comparatifs (accueil)
   ========================================================================== */
.svc-cards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(24px, 3vw, 36px); padding-right: 84px; border-radius: 28px;
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 24px 48px -32px rgba(14, 16, 19, 0.28);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.svc-card--main { background: var(--ink); color: #fff; }
.svc-card__eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.svc-card__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.05; }
.svc-card__text { font-size: 15px; line-height: 1.5; opacity: 0.7; max-width: 44ch; }
.svc-card__arrow {
  position: absolute; top: clamp(24px, 3vw, 36px); right: clamp(24px, 3vw, 36px);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--g-100, #f1f2f4); transition: transform 0.6s var(--ease);
}
.svc-card--main .svc-card__arrow { background: rgba(255, 255, 255, 0.12); }
.svc-card__arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 34px 60px -32px rgba(14, 16, 19, 0.38); }
.svc-card:hover .svc-card__arrow { transform: rotate(45deg); }
.hub { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.hub__label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-500); margin-bottom: 16px; }
.hub__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px rgba(14, 16, 19, 0.07);
  font-size: 14.5px; color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s var(--ease);
}
.chip-link:hover { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: none; }
.hub__all { display: inline-block; margin-top: 40px; font-size: 15px; }
@media (max-width: 1000px) { .hub { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .svc-cards { grid-template-columns: 1fr; } .chip-link { font-size: 14px; min-height: 38px; padding: 0 14px; } }

/* Page Ressources : une rubrique par catégorie */
.post-cat + .post-cat { margin-top: clamp(56px, 7vw, 88px); }
.post-cat__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; font-weight: 560; margin-bottom: 20px; }

/* Page 404 */
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
