/* Upgrade — styles du site. Jetons de couleur et polices : assets/charte/tokens.css (copie de ../charte/). */

:root {
  --bg: var(--upg-dark-grey);
  --bg-deep: var(--upg-black);
  --surface: #222222;
  --surface-2: #2a2a2a;
  --line: rgba(255, 255, 255, 0.08);
  --grid: rgba(255, 255, 255, 0.045);
  --ink: #f2f2f2;
  --ink-2: #cfcfcf;
  --muted: var(--upg-muted);
  --accent: var(--upg-yellow);
  --on-accent: var(--upg-dark-grey);
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section: clamp(140px, 16vw, 240px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sans: var(--upg-font-sans);
  --serif: var(--upg-font-serif);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Quadrillage de plan, seulement sur quelques sections */
.has-grid { position: relative; isolation: isolate; }
.has-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 35%, transparent 85%);
}
.hero.has-grid::before { --grid: rgba(255,255,255,.06); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
em { font-family: var(--serif); font-weight: 200; font-style: italic; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Charte marks ---------- */
.mark { display: inline-block; background: currentColor; -webkit-mask: var(--src) no-repeat center / contain; mask: var(--src) no-repeat center / contain; }
.mark--a { --src: url(assets/charte/logos/web/logo-a.svg); aspect-ratio: 283.32 / 51.26; }
.arrow { display: inline-block; width: 0.72em; height: 0.72em; background: currentColor; -webkit-mask: url(assets/charte/logos/web/fleche.svg) no-repeat center / contain; mask: url(assets/charte/logos/web/fleche.svg) no-repeat center / contain; transition: transform .35s var(--ease); }

/* ---------- Buttons, pills, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: #d4ff3d; }
.btn--ghost { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: #333; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(199,255,9,.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(199,255,9,0); } }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; white-space: nowrap; }
.tag--yellow { background: var(--accent); color: var(--on-accent); }
.tag--dark { background: rgba(10,10,10,.72); color: var(--ink); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

.ui { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.ui__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.ui__sub { font-size: 14px; color: var(--muted); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; }
  html.has-cursor input, html.has-cursor textarea { cursor: text; }
  .has-cursor .cursor { display: block; position: fixed; inset: 0 auto auto 0; z-index: 300; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); translate: var(--dx, -100px) var(--dy, -100px); }
  .cursor__ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(199,255,9,.7);
    display: grid; place-items: center; translate: var(--x, -100px) var(--y, -100px);
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, border-color .3s, opacity .3s;
  }
  .cursor__label { font-size: 13px; font-weight: 500; color: var(--on-accent); opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(199,255,9,.12); }
  .cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); border-color: var(--accent); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot, .cursor.is-hidden { opacity: 0; }
  .cursor.is-text .cursor__ring { opacity: 0; }
}

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(26,26,26,.94); transition: background-color .3s; }
.nav.is-scrolled { background: var(--bg-deep); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.nav__logo { color: var(--accent); display: flex; }
.nav__logo .mark { width: 128px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav__links a { color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 80px); text-align: center; }
.hero__title { margin-top: 28px; font-size: clamp(54px, 10vw, 148px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 400; }
.hero__title em { color: var(--accent); letter-spacing: -0.03em; }
.hero__lead { max-width: 620px; margin: 28px auto 0; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Scene : du plan au terrain ---------- */
.scene { position: relative; height: 260vh; }
.scene[hidden] { display: none; }
.scene__sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: grid; place-items: center; align-content: center; gap: 22px; padding: 0 var(--gutter); }
.plan {
  --p: 0;
  position: relative; width: min(1200px, 100%, (100vh - var(--nav-h) - 120px) * 16 / 9); aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) * (1 - var(--p) * 0.6)); overflow: hidden; background: #141414;
  transform: scale(calc(0.92 + var(--p) * 0.08)); transform-origin: center top;
}
.plan__layer { position: absolute; inset: 0; }
.plan__layer img, .plan__drawing { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan__drawing .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.plan.is-drawn .plan__drawing .draw { stroke-dashoffset: 0; }
.plan__drawing text { opacity: 0; transition: opacity .8s .9s; }
.plan.is-drawn .plan__drawing text { opacity: 1; }
.plan__layer--real { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.plan__scan { position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 24px 4px rgba(199,255,9,.45); transition: opacity .3s; }
.plan[data-edge] .plan__scan { opacity: 0; }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--accent); z-index: 2; }
.corner--tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.corner--tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.corner--bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.corner--br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }
.dim { position: absolute; color: var(--accent); font-size: 13px; z-index: 2; }
.dim span { position: absolute; background: rgba(10,10,10,.85); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.dim--h { top: 30px; left: 12.5%; right: 12.5%; height: 0; border-top: 1px solid var(--accent); }
.dim--h::before, .dim--h::after { content: ""; position: absolute; top: -6px; width: 1px; height: 11px; background: var(--accent); }
.dim--h::before { left: 0; } .dim--h::after { right: 0; }
.dim--h span { left: 50%; top: -12px; translate: -50% 0; }
.dim--v { left: 30px; top: 12%; bottom: 11%; width: 0; border-left: 1px solid var(--accent); }
.dim--v::before, .dim--v::after { content: ""; position: absolute; left: -6px; height: 1px; width: 11px; background: var(--accent); }
.dim--v::before { top: 0; } .dim--v::after { bottom: 0; }
.dim--v span { top: 50%; left: 0; translate: -50% -50%; writing-mode: vertical-rl; rotate: 180deg; padding: 8px 2px; }

/* Étapes : contrôle segmenté avec curseur jaune qui glisse */
.phases { position: absolute; top: 56px; left: 56px; z-index: 3; display: grid; grid-template-columns: repeat(3, auto); padding: 4px; border-radius: 99px; background: rgba(10,10,10,.82); }
.phases__item { position: relative; z-index: 1; padding: 8px 16px; font-size: 14px; color: var(--muted); text-align: center; transition: color .35s; }
.phases__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 99px; background: var(--accent); transition: translate .55s var(--ease), width .55s var(--ease); width: var(--tw, 60px); translate: var(--tx, 0) 0; }
.plan[data-phase="0"] .phases__item:nth-of-type(2), .plan[data-phase="1"] .phases__item:nth-of-type(3), .plan[data-phase="2"] .phases__item:nth-of-type(4) { color: var(--on-accent); }

.marker { position: absolute; z-index: 3; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; transition: left 1s var(--ease), top 1s var(--ease); }
.marker__pin { width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 500; box-shadow: 0 0 0 6px rgba(199,255,9,.2); }
.marker__label { margin-top: -16px; padding: 7px 12px; border-radius: 8px; background: rgba(10,10,10,.86); font-size: 14px; white-space: nowrap; transition: opacity .25s, translate .35s var(--ease); }
.marker.is-swapping .marker__label { opacity: 0; translate: -8px 0; }
.marker.is-left { flex-direction: row-reverse; translate: -100% 0; }
.marker.is-left .marker__pin { margin: -16px -16px 0 0; }
.marker.is-left.is-swapping .marker__label { translate: 8px 0; }
.marker.is-pop .marker__pin { animation: pop .6s var(--ease); }
.marker.is-pop .marker__pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); animation: ring .9s var(--ease) forwards; }
.marker__pin { position: relative; }
@keyframes pop { 0% { scale: 1; } 35% { scale: 1.45; } 100% { scale: 1; } }
@keyframes ring { from { opacity: 1; scale: 1; } to { opacity: 0; scale: 2.2; } }

.cartouche { position: absolute; z-index: 3; right: 14px; bottom: 14px; display: grid; grid-template-columns: auto auto; min-width: 300px; background: rgba(10,10,10,.88); border: 1px solid rgba(199,255,9,.5); border-radius: 6px; font-size: 13px; overflow: hidden; }
.cartouche div { display: contents; }
.cartouche dt, .cartouche dd { padding: 7px 12px; border-bottom: 1px solid rgba(199,255,9,.2); }
.cartouche div:nth-last-of-type(1) dt, .cartouche div:nth-last-of-type(1) dd { border-bottom: 0; }
.cartouche dt { color: var(--muted); border-right: 1px solid rgba(199,255,9,.2); }
.cartouche dd[data-status] { color: var(--accent); }
.cartouche dd.is-flash { animation: flash .8s var(--ease); }
@keyframes flash { 0% { background: var(--accent); color: var(--on-accent); } 100% { background: transparent; } }
.cartouche__bar { grid-column: span 2; height: 3px; background: rgba(199,255,9,.15); position: relative; }
.cartouche__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--accent); }
.plan__legend { display: none; }
.scene__caption { font-size: 17px; color: var(--ink-2); text-align: center; min-height: 1.6em; }
.scene__caption span { display: inline-block; transition: opacity .3s, translate .4s var(--ease); }
.scene__caption.is-swapping span { opacity: 0; translate: 0 6px; }

/* ---------- Logos ---------- */
.logos { padding: clamp(72px, 9vw, 120px) 0 0; }
.logos__title { text-align: center; font-size: 15px; font-weight: 400; color: var(--muted); margin-bottom: 36px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(56px, 8vw, 112px); width: max-content; padding-right: clamp(56px, 8vw, 112px); animation: marquee 40s linear infinite; }
.logo-img { height: var(--h); width: auto; opacity: .62; transition: opacity .3s; }
.logo-img--invert { filter: brightness(0) invert(1); }
.marquee li:hover .logo-img { opacity: 1; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0 0; }
.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section__head--split > div:first-child { max-width: 680px; }
.h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.035em; font-weight: 400; }
.h2 em { color: var(--accent); }
.h2--center { text-align: center; }
.section__lead { margin-top: 24px; max-width: 560px; font-size: 18px; color: var(--ink-2); }

/* Services : liste à gauche, visuel à droite */
.metiers { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.metiers__list { display: grid; }
.metier { border-top: 1px solid rgba(255,255,255,.12); }
.metier:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.metier__head { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 28px 0; border: 0; background: none; text-align: left; }
.metier__num { font-size: 15px; color: var(--muted); transition: color .3s; }
.metier__title { font-size: clamp(34px, 4.2vw, 60px); font-weight: 400; letter-spacing: -0.035em; line-height: 1; color: #6f6f6f; transition: color .4s, translate .5s var(--ease); }
.metier__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 18px; transition: background-color .3s, color .3s, rotate .4s var(--ease); }
.metier:hover .metier__title { color: var(--ink-2); }
.metier.is-active .metier__title { color: var(--ink); translate: 6px 0; }
.metier.is-active .metier__num { color: var(--accent); }
.metier.is-active .metier__icon { background: var(--accent); color: var(--on-accent); rotate: 90deg; }
.metier__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.metier.is-active .metier__body { grid-template-rows: 1fr; }
.metier__inner { overflow: hidden; display: grid; gap: 18px; padding-left: 68px; }
.metier__inner > *:last-child { margin-bottom: 32px; }
.metier__inner p { color: var(--ink-2); max-width: 460px; }
.metier__inner .btn { justify-self: start; }
.metier__img-m { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; padding: 5px 12px; border-radius: 99px; background: var(--surface); color: var(--ink-2); }

.metiers__visual { position: sticky; top: calc(var(--nav-h) + 32px); margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.metiers__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.08; clip-path: inset(100% 0 0 0); transition: opacity .6s var(--ease), scale 1.4s var(--ease), clip-path .8s var(--ease); }
.metiers__visual img.is-on { opacity: 1; scale: 1; clip-path: inset(0 0 0 0); z-index: 1; }
.metiers__visual figcaption { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(10,10,10,.82); font-size: 14px; color: var(--ink-2); }
.metiers__count { color: var(--muted); white-space: nowrap; }
.metiers__count b { color: var(--accent); font-weight: 400; }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border: 0; padding: 10px 16px; border-radius: 99px; background: var(--surface); font-size: 15px; transition: background-color .2s, color .2s; }
.filter span { color: var(--muted); margin-left: 4px; }
.filter:hover { background: var(--surface-2); }
.filter.is-on { background: var(--accent); color: var(--on-accent); }
.filter.is-on span { color: rgba(26,26,26,.6); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cases.is-mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 112px; }
.case { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-align: left; border: 0; padding: 0; transition: background-color .3s; animation: caseIn .6s var(--ease) both; animation-delay: var(--i, 0ms); }
@keyframes caseIn { from { opacity: 0; translate: 0 20px; } }
.case:hover { background: var(--surface-2); }
.case__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; flex: none; }
.case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.case:hover .case__media img { scale: 1.05; }
.case__tags { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.case__body { padding: 22px 22px 24px; display: grid; gap: 12px; align-content: start; }
.case__title { font-size: 22px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
.case__summary { color: var(--ink-2); font-size: 16px; }
.case__stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 4px; }
.case__stats div { display: grid; }
.case__stats b { font-weight: 400; font-size: 26px; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.case__stats span { font-size: 13px; color: var(--muted); }
.case__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.case:hover .case__more .arrow { transform: translate(2px, -2px); }

/* Variantes de la mosaïque */
.is-mosaic .case--feature { grid-column: span 4; grid-row: span 5; }
.is-mosaic .case--tall { grid-column: span 2; grid-row: span 5; }
.is-mosaic .case--wide { grid-column: span 4; grid-row: span 3; flex-direction: row; }
.is-mosaic .case--overlay { grid-column: span 4; grid-row: span 5; }
.is-mosaic .case--plan { grid-column: span 3; grid-row: span 3; flex-direction: row; }
.is-mosaic .case--stat { grid-column: span 2; grid-row: span 3; }
.is-mosaic .case--cta { grid-row: span 3; }
.is-mosaic .case--tall .case__media { aspect-ratio: auto; flex: 1; }
.is-mosaic .case--wide .case__media, .is-mosaic .case--plan .case__media { aspect-ratio: auto; width: 52%; }
.is-mosaic .case--wide .case__body, .is-mosaic .case--plan .case__body { flex: 1; align-content: center; padding: 28px; }
.is-mosaic .case--feature .case__media, .is-mosaic .case--overlay .case__media { position: absolute; inset: 0; aspect-ratio: auto; }
.is-mosaic .case--feature .case__body, .is-mosaic .case--overlay .case__body { position: relative; margin-top: auto; padding: 120px 28px 28px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.62) 38%, rgba(0,0,0,.9)); }
.is-mosaic .case--feature .case__title { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.is-mosaic .case--overlay .case__title { font-size: clamp(24px, 2.4vw, 32px); }
.is-mosaic .case--feature .case__summary, .is-mosaic .case--overlay .case__summary { color: #e2e2e2; max-width: 520px; }
.is-mosaic .case--feature .case__stats b { font-size: 34px; }

.case--stat { justify-content: space-between; padding: 26px; background: var(--accent); color: var(--on-accent); }
.case--stat:hover { background: #d4ff3d; }
.case--stat .case__big { font-size: clamp(56px, 6vw, 92px); letter-spacing: -0.05em; line-height: .95; }
.case--stat p { font-size: 18px; max-width: 260px; }
.case--stat .case__more { color: var(--on-accent); }
.case__plan { position: absolute; inset: 0; display: grid; place-items: center; background:
  linear-gradient(rgba(199,255,9,.14) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(199,255,9,.14) 1px, transparent 1px) 0 0 / 32px 32px, #151515; }
.case__plan-word { position: relative; font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); line-height: 1; padding: 22px 8px 0; }
.case__plan-word::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid var(--accent); }
.case__plan-word::after { content: attr(data-dim); position: absolute; top: -10px; left: 50%; translate: -50% 0; font-size: 13px; -webkit-text-stroke: 0; color: var(--accent); background: #151515; padding: 0 8px; letter-spacing: 0; white-space: nowrap; }
.case--cta { justify-content: space-between; gap: 24px; padding: 28px; background: var(--accent); color: var(--on-accent); }
.case--cta:hover { background: #d4ff3d; }
.case--cta h3 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.case--cta p { font-size: 16px; margin-top: 12px; }
.case--cta .btn { align-self: flex-start; background: var(--on-accent); color: var(--accent); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: fade .35s var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; animation: slideIn .5s var(--ease); outline: none; }
.drawer.is-closing .drawer__backdrop { animation: fade .3s var(--ease) reverse forwards; }
.drawer.is-closing .drawer__panel { animation: slideIn .35s var(--ease) reverse forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { translate: 100% 0; } }
.drawer__close { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.drawer__close span { position: absolute; width: 18px; height: 2px; background: var(--ink); rotate: 45deg; }
.drawer__close span + span { rotate: -45deg; }
.drawer__close:hover { background: var(--accent); }
.drawer__close:hover span { background: var(--on-accent); }
.drawer__content { padding: 32px clamp(20px, 4vw, 48px) 64px; display: grid; gap: 32px; }
.drawer__cover { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; position: relative; background: #151515; }
.drawer__cover img { width: 100%; height: 100%; object-fit: cover; }
.drawer__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; margin-top: 12px; }
.drawer__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.drawer__stats div { background: var(--surface); border-radius: var(--radius-sm); padding: 18px; display: grid; gap: 4px; }
.drawer__stats b { font-weight: 400; font-size: 34px; letter-spacing: -0.03em; color: var(--accent); line-height: 1.05; }
.drawer__stats span { font-size: 14px; color: var(--muted); }
.drawer__story { display: grid; gap: 24px; }
.drawer__story h3 { font-size: 14px; font-weight: 400; color: var(--muted); margin-bottom: 6px; }
.drawer__story p { font-size: 17px; color: var(--ink-2); }
.drawer__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.drawer__gallery img:first-child:nth-last-child(odd) { grid-column: span 2; aspect-ratio: 16 / 9; }
html.drawer-open { overflow: hidden; }

/* Méthode : frise (collante sur grand écran, avance au défilement) */
.method__scroll { position: relative; }
.method__sticky { position: relative; }
.timeline { --t: 0; position: relative; padding-top: 8px; }
.timeline__track { position: absolute; left: 0; right: 0; top: 52px; height: 14px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 16px) left bottom / 100% 8px no-repeat,
              repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 80px) left bottom / 100% 14px no-repeat; }
.timeline__track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--surface-2); }
.timeline__fill { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--fill, 0px); background: var(--accent); box-shadow: 0 0 12px rgba(199,255,9,.6); }
.timeline__list { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.milestone { display: grid; gap: 14px; align-content: start; }
.milestone__day { font-size: 15px; color: var(--muted); height: 32px; display: flex; align-items: end; transition: color .4s; }
.milestone__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid #4a4a4a; margin-top: 12px; position: relative; z-index: 1; transition: background-color .4s, border-color .4s, scale .4s var(--ease), box-shadow .4s; }
.milestone__card { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; transition: background-color .5s, color .5s, translate .6s var(--ease), opacity .6s, scale .6s var(--ease); opacity: .35; translate: 0 14px; transform-origin: top center; }
.milestone__card h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.milestone__card p { font-size: 16px; color: var(--ink-2); }
.milestone__card ul { display: flex; flex-wrap: wrap; gap: 6px; }
.milestone__card li { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--bg); color: var(--ink-2); }
.milestone.is-done .milestone__day { color: var(--ink-2); }
.milestone.is-done .milestone__dot { background: var(--accent); border-color: var(--accent); }
.milestone.is-done .milestone__card { opacity: .7; translate: 0 0; }
.milestone.is-current .milestone__day { color: var(--accent); }
.milestone.is-current .milestone__dot { background: var(--accent); border-color: var(--accent); scale: 1.35; box-shadow: 0 0 0 8px rgba(199,255,9,.18); }
.milestone.is-current .milestone__card { opacity: 1; translate: 0 -6px; background: var(--surface-2); }
.milestone--day.is-current .milestone__card, .milestone--day.is-done .milestone__card { background: var(--accent); color: var(--on-accent); }
.milestone--day.is-current .milestone__card p, .milestone--day.is-done .milestone__card p { color: rgba(26,26,26,.8); }
@media (min-width: 1081px) {
  .method { padding-top: 0; margin-top: var(--section); }
  .method__scroll { height: 460vh; }
  .method__sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: grid; align-content: center; }
  .method__sticky .section__head { margin-bottom: 56px; }
}

/* Chiffres */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.stat { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; }
.stat dd { font-size: clamp(48px, 5.4vw, 80px); letter-spacing: -0.045em; line-height: 1; color: var(--accent); }
.stat dd small { font-size: .45em; color: var(--muted); letter-spacing: 0; }
.stat dt { color: var(--ink-2); font-size: 15px; }

/* Témoignages */
.quotes__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.quote { background: var(--surface); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote blockquote p { font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; }
.quote--big { background: var(--accent); color: var(--on-accent); }
.quote--big blockquote p { font-size: clamp(22px, 2vw, 28px); }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.35; }
.quote figcaption strong { font-weight: 500; }
.quote:not(.quote--big) figcaption { color: var(--ink-2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; flex: none; color: var(--ink); }
.quote--big .avatar { background: var(--on-accent); color: var(--accent); }
.stars { margin-left: auto; font-weight: 500; }

/* Équipe */
.team__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.langs { display: flex; gap: 8px; margin-top: 32px; }
.langs li { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 15px; }
.team__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.person__shape { aspect-ratio: 64 / 51; display: grid; place-items: center; background: var(--surface-2); -webkit-mask: url(assets/charte/logos/web/forme.svg) no-repeat center / 100% 100%; mask: url(assets/charte/logos/web/forme.svg) no-repeat center / 100% 100%; margin-bottom: 8px; transition: background-color .3s; }
.person:hover .person__shape { background: var(--accent); }
.person__shape span { font-family: var(--serif); font-style: italic; font-weight: 200; font-size: 64px; letter-spacing: -0.04em; transition: color .3s; }
.person:hover .person__shape span { color: var(--on-accent); }
.person h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.person p { color: var(--ink-2); font-size: 15px; }
.person--network { display: flex; flex-direction: column; gap: 6px; }
.person .stat__big { margin-top: 18px; color: var(--accent); font-size: clamp(48px, 5vw, 72px); letter-spacing: -0.04em; line-height: 1; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq__list { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); transition: background-color .25s; }
.faq details[open] { background: var(--surface-2); }
.faq summary { list-style: none; padding: 22px 64px 22px 24px; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--accent); -webkit-mask: url(assets/charte/logos/web/fleche.svg) no-repeat center / contain; mask: url(assets/charte/logos/web/fleche.svg) no-repeat center / contain; transition: transform .3s var(--ease); transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(-90deg); }
.faq details p { padding: 0 24px 24px; color: var(--ink-2); max-width: 640px; }

/* Contact : brief en 2 étapes */
.contact { padding-bottom: var(--section); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact__intro { position: sticky; top: calc(var(--nav-h) + 32px); }
.promise { display: grid; gap: 12px; margin-top: 32px; }
.promise li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.promise li::before { content: ""; width: 18px; height: 14px; background: var(--accent); -webkit-mask: url(assets/charte/logos/web/forme.svg) no-repeat center / contain; mask: url(assets/charte/logos/web/forme.svg) no-repeat center / contain; flex: none; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; font-size: 20px; }
.contact__direct a { border-bottom: 1px solid rgba(199,255,9,.5); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.contact__direct a:hover { color: var(--accent); border-color: var(--accent); }

.brief { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; gap: 28px; }
.brief__progress { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.brief__step { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); transition: color .3s; }
.brief__step b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 500; font-size: 13px; transition: background-color .3s, color .3s; }
.brief__step.is-on { color: var(--ink); }
.brief__step.is-on b { background: var(--accent); color: var(--on-accent); }
.brief__bar { grid-column: span 2; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.brief__bar span { display: block; height: 100%; width: 50%; background: var(--accent); border-radius: inherit; transition: width .5s var(--ease); }
.brief[data-step="2"] .brief__bar span, .brief[data-step="3"] .brief__bar span { width: 100%; }
.brief__pane { display: grid; gap: 28px; }
.brief__pane[hidden] { display: none; }
.brief__pane.is-entering { animation: paneIn .45s var(--ease); }
@keyframes paneIn { from { opacity: 0; translate: 16px 0; } }
.q { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.q legend { padding: 0; margin-bottom: 14px; font-size: 19px; letter-spacing: -0.01em; }
.q legend small { color: var(--muted); font-size: 14px; margin-left: 8px; }
.q__error { color: var(--accent); font-size: 14px; }
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.need input, .opts input { position: absolute; opacity: 0; pointer-events: none; }
.need__box { height: 100%; display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s; }
.need__shape { width: 34px; height: 27px; background: #444; -webkit-mask: url(assets/charte/logos/web/forme.svg) no-repeat center / contain; mask: url(assets/charte/logos/web/forme.svg) no-repeat center / contain; margin-bottom: 10px; transition: background-color .2s; }
.need strong { font-weight: 400; font-size: 18px; }
.need small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.need:hover .need__box { border-color: #444; }
.need input:checked + .need__box { background: var(--accent); color: var(--on-accent); }
.need input:checked + .need__box .need__shape { background: var(--on-accent); }
.need input:checked + .need__box small { color: rgba(26,26,26,.7); }
.need input:focus-visible + .need__box, .opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.annex { display: grid; gap: 28px; padding-top: 4px; }
.annex[hidden] { display: none; }
.annex.is-entering { animation: paneIn .4s var(--ease); }
.annex:not(.annex--common)::before { content: attr(data-for); font-size: 13px; color: var(--accent); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; background: var(--bg); border: 1px solid transparent; font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; }
.opts label:hover span { border-color: #444; }
.opts input:checked + span { background: var(--accent); color: var(--on-accent); }

.brief__recap { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); font-size: 15px; color: var(--ink-2); }
.brief__recap b { color: var(--accent); font-weight: 400; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { position: relative; display: block; }
.fld--full { grid-column: span 2; }
.fld input, .fld textarea { width: 100%; height: 64px; padding: 26px 18px 8px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--bg); font-size: 17px; transition: border-color .2s, background-color .2s; }
.fld textarea { height: auto; min-height: 112px; resize: vertical; padding-top: 30px; }
.fld span { position: absolute; left: 18px; top: 21px; font-size: 16px; color: var(--muted); pointer-events: none; transition: top .2s var(--ease), font-size .2s var(--ease), color .2s; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span,
.fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span { top: 10px; font-size: 13px; }
.fld input:focus + span, .fld textarea:focus + span { color: var(--accent); }
.fld.is-invalid input { border-color: #ff6b5a; }
.brief__actions { display: flex; gap: 10px; }
.brief__actions .btn--primary { flex: 1; }
.brief__done { justify-items: start; gap: 16px; padding: 24px 0; }
.brief__done h3 { font-size: 32px; font-weight: 400; letter-spacing: -0.03em; }
.brief__done p { color: var(--ink-2); max-width: 440px; }
.brief__check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 32px no-repeat; }

/* Footer */
.footer { background: var(--bg-deep); padding: clamp(96px, 11vw, 160px) 0 32px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__claim { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1; }
.footer__claim em { color: var(--accent); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 80px; }
.footer__cols h3 { font-size: 13px; font-weight: 400; color: var(--muted); margin-bottom: 10px; }
.footer__cols p { font-size: 15px; line-height: 1.7; }
.footer__cols a:hover { color: var(--accent); }
.footer__logo { display: block; width: 100%; color: var(--accent); margin-top: 96px; }
.footer__legal { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity 1s var(--ease), translate 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cases, .cases.is-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .is-mosaic .case { grid-column: auto !important; grid-row: auto !important; }
  .is-mosaic .case--feature, .is-mosaic .case--overlay { grid-column: span 2 !important; min-height: 460px; }
  .is-mosaic .case--wide, .is-mosaic .case--plan { flex-direction: column; }
  .is-mosaic .case--wide .case__media, .is-mosaic .case--plan .case__media { width: auto; aspect-ratio: 4 / 3; }
  .is-mosaic .case--tall .case__media { aspect-ratio: 4 / 3; flex: none; }
  .is-mosaic .case--stat { min-height: 260px; }
  .metiers { grid-template-columns: 1fr; }
  .metiers__visual { display: none; }
  .metier__img-m { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
  .metier__inner { padding-left: 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .quotes__grid { grid-template-columns: 1fr 1fr; }
  .quote--big { grid-column: span 2; }
  .team__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact__intro { position: static; }
  .timeline__list { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline__track { display: none; }
  .milestone__dot { display: none; }
  .milestone__day { height: auto; }
}

@media (max-width: 820px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg-deep); transform: translateY(-120%); transition: transform .35s var(--ease); margin: 0; z-index: -1; }
  .nav__links a { padding: 14px 0; font-size: 20px; color: var(--ink); }
  .nav.is-open .nav__links { transform: none; }
  .nav__cta { margin-left: auto; height: 40px; padding: 0 16px; font-size: 14px; }
  .nav__toggle { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); }
  .nav__toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .plan { aspect-ratio: 4 / 5; width: min(100%, (100vh - var(--nav-h) - 90px) * 4 / 5); }
  .dim--v { display: none; }
  .phases { top: 52px; left: 16px; }
  .phases__item { padding: 6px 10px; font-size: 13px; }
  .plan__drawing { object-position: 30% 50%; }
  .cartouche { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
  .cartouche div:nth-child(2), .cartouche div:nth-child(3) { display: none; }
  .marker__label { font-size: 13px; white-space: normal; max-width: 150px; }
  .needs { grid-template-columns: 1fr; }
  .need__box { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .need__shape { grid-row: span 2; margin: 0; }
}

@media (max-width: 640px) {
  :root { --section: 120px; }
  .marker__label { display: none; }
  .plan__legend { display: grid; gap: 6px; width: 100%; }
  .plan__legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); transition: opacity .25s; }
  .plan__legend b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 500; flex: none; }
  .plan__legend.is-swapping li { opacity: 0; }
  .scene__sticky { gap: 14px; }
  body { font-size: 16px; }
  .nav__inner { gap: 12px; }
  .nav__logo .mark { width: 104px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .pill { font-size: 13px; padding: 7px 12px; }
  .hero { text-align: left; }
  .hero__lead { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { width: 100%; }
  .scene { height: 220vh; }
  .cases, .cases.is-mosaic { grid-template-columns: 1fr; }
  .is-mosaic .case--feature, .is-mosaic .case--overlay { grid-column: auto !important; min-height: 440px; }
  .metier__head { grid-template-columns: 40px 1fr auto; padding: 22px 0; }
  .metier__icon { width: 44px; height: 44px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .filter { flex: none; }
  .timeline__list { grid-template-columns: 1fr; row-gap: 16px; padding-left: 28px; }
  .timeline__list::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--surface-2); }
  .timeline__list::after { content: ""; position: absolute; left: 7px; top: 0; width: 2px; height: calc(var(--t) * 100%); background: var(--accent); }
  .milestone { position: relative; }
  .milestone__dot { display: block; position: absolute; left: -28px; top: 2px; margin: 0; }
  .stats__grid { grid-template-columns: 1fr; }
  .quotes__grid { grid-template-columns: 1fr; }
  .quote--big { grid-column: auto; }
  .team__cards { grid-template-columns: 1fr; }
  .person { padding: 16px; }
  .person__shape span { font-size: 44px; }
  .person h3 { font-size: 20px; }
  .fields { grid-template-columns: 1fr; }
  .fld--full { grid-column: auto; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .contact__direct { font-size: 17px; }
  .drawer__gallery { grid-template-columns: 1fr; }
  .drawer__gallery img:first-child:nth-last-child(odd) { grid-column: auto; aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
  .scene { height: auto; }
  .scene__sticky { position: static; height: auto; padding-top: 24px; }
  .plan { transform: none; }
  .method__scroll { height: auto !important; }
  .method__sticky { position: static !important; height: auto !important; }
}

/* ===================== v4 : métiers au défilement, pop-up, WhatsApp, pages métier ===================== */

/* Métiers : sur grand écran, le bloc reste fixe et le défilement fait passer d'un métier à l'autre */
.metier__progress { grid-column: 1 / -1; height: 2px; margin-top: 18px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; display: none; }
.metier__progress::after { content: ""; display: block; height: 100%; width: calc(var(--mp, 0) * 100%); background: var(--accent); }
.metier__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.metier__inner .metier__actions .btn { justify-self: auto; }
.metiers__visual img { translate: 0 calc(var(--vp, 0) * -16px); }
@media (min-width: 1081px) {
  .metiers__scroll { height: 320vh; }
  .metiers { position: sticky; top: calc(var(--nav-h) + 24px); height: calc(100vh - var(--nav-h) - 48px); align-items: stretch; }
  .metiers__list { align-content: center; }
  /* Visuel en 4:3, centré face à la liste (les photos de réalisations sont horizontales) */
  .metiers { grid-template-columns: 1fr 1.15fr; }
  .metiers__visual { position: relative; top: auto; aspect-ratio: 4 / 3; height: auto; align-self: center; }
  .metiers__visual img { height: calc(100% + 16px); }
  .metier__head { padding: 24px 0 22px; }
  .metier__progress { display: block; }
  .metier.is-done .metier__title { color: #8a8a8a; }
}
@media (max-width: 1080px) {
  .metier__body { grid-template-rows: 1fr; }
  .metier__title { color: var(--ink); }
  .metier__icon { display: none; }
  .metier__head { cursor: default; }
}

/* Alternatives : appel, WhatsApp, téléphone */
.alt { display: grid; gap: 8px; margin-top: 40px; max-width: 460px; }
.alt__title { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.alt__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); transition: background-color .2s; }
.alt__item:hover { background: var(--surface-2); }
.alt__item strong { display: block; font-weight: 400; font-size: 16px; }
.alt__item small { display: block; font-size: 13px; color: var(--muted); }
.alt__item:hover .arrow { transform: translate(2px, -2px); }
.alt__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent) var(--icon) center / 20px no-repeat; flex: none; }
.alt__icon--cal { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.alt__icon--wa { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.3-3.9A8 8 0 1 1 8 19.4Z'/%3E%3Cpath d='M9.2 8.6c.2-.5.6-.6 1-.6l.6 1.4-.6.9c.4.9 1.2 1.8 2.3 2.4l.9-.6 1.4.6c0 .5-.2.9-.7 1.1-1.6.7-5.4-2.6-4.9-5.2Z' fill='%231a1a1a' stroke-width='1'/%3E%3C/svg%3E"); }
.alt__icon--tel { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A17 17 0 0 1 3 5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
.brief__next { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-link { border: 0; background: none; padding: 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--ink); }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity .35s, translate .45s var(--ease), scale .2s var(--ease); }
.wa-float.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.wa-float:hover { scale: 1.06; }
.wa-float .alt__icon { width: 56px; height: 56px; background-size: 26px; }
.modal-open .wa-float, .drawer-open .wa-float { opacity: 0; pointer-events: none; }

/* Pop-up */
.modal { width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); overflow: hidden; }
.modal::backdrop { background: rgba(0,0,0,.66); }
.modal[open] { animation: modalIn .45s var(--ease); }
.modal[open]::backdrop { animation: fade .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; translate: 0 24px; scale: .98; } }
.modal__panel { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 28px 0; }
.modal__title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.modal__sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.modal__close { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); flex: none; }
.modal__close span { position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: var(--ink); rotate: 45deg; }
.modal__close span + span { rotate: -45deg; }
.modal__close:hover { background: var(--accent); }
.modal__close:hover span { background: var(--on-accent); }
.modal__tabs { display: flex; gap: 6px; padding: 18px 28px 0; }
.modal__tabs button { border: 0; padding: 10px 16px; border-radius: 99px; background: var(--bg); font-size: 15px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.modal__tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.modal__body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 28px 28px; }
.modal .brief { background: none; padding: 0; }
.modal__call { display: grid; gap: 10px; }
.modal__call p { color: var(--ink-2); font-size: 17px; max-width: 520px; margin-bottom: 8px; }
.modal__call > .btn { justify-self: start; margin-bottom: 8px; }
.modal__call .alt__item { background: var(--bg); }
html.modal-open { overflow: hidden; }
html.modal-open .cursor { display: none !important; }
html.modal-open.has-cursor, html.modal-open.has-cursor * { cursor: auto !important; }
html.modal-open.has-cursor a, html.modal-open.has-cursor button, html.modal-open.has-cursor label { cursor: pointer !important; }
@media (max-width: 640px) {
  .modal { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .modal__panel { max-height: 100dvh; height: 100%; }
  .modal__head { padding: 18px 16px 0; }
  .modal__tabs { padding: 14px 16px 0; }
  .modal__body { padding: 16px 16px 32px; }
  .wa-float { right: 16px; bottom: 16px; }
}

/* Pop-up : hauteur stable quand on change d'onglet */
.modal { margin: 6vh auto auto; }
@media (max-width: 640px) { .modal { margin: 0; } }

/* ===================== Pages métier ===================== */
.btn--dark { background: var(--on-accent); color: var(--accent); }
.btn--dark:hover { background: #000; }
.btn--line { background: transparent; color: var(--on-accent); box-shadow: inset 0 0 0 1.5px var(--on-accent); }
.btn--line:hover { background: rgba(26,26,26,.08); }

.page-hero { padding: clamp(56px, 8vw, 112px) 0 0; }
.page-hero__grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--accent); }
.page-hero__title { font-size: clamp(40px, 5vw, 76px); line-height: .98; letter-spacing: -0.045em; font-weight: 400; }
.page-hero__title em { color: var(--accent); }
.page-hero .hero__lead { margin: 28px 0 0; max-width: 560px; }
.page-hero .hero__actions { justify-content: flex-start; }
.page-hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; font-size: 15px; color: var(--ink-2); }
.page-hero__proof li { display: flex; align-items: center; gap: 10px; }
.page-hero__proof li::before { content: ""; width: 16px; height: 13px; background: var(--accent); -webkit-mask: url(assets/charte/logos/web/forme.svg) no-repeat center / contain; mask: url(assets/charte/logos/web/forme.svg) no-repeat center / contain; }
.page-hero__media { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 99px; background: rgba(10,10,10,.82); font-size: 14px; color: var(--ink-2); }

.offer__grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 80px); }
.offer__item { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; row-gap: 10px; padding: 32px 0; border-top: 1px solid rgba(255,255,255,.12); transition: border-color .3s; }
.offer__item:hover { border-color: var(--accent); }
.offer__num { font-size: 15px; color: var(--accent); padding-top: 8px; grid-row: span 2; }
.offer__item h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; }
.offer__item p { color: var(--ink-2); max-width: 460px; }

.included__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.included__list { display: flex; flex-wrap: wrap; gap: 10px; }
.included__list li { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 99px; background: var(--surface); font-size: 17px; }
.included__list li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231a1a1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; flex: none; }

.steps-mini__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); counter-reset: step; }
.step { position: relative; background: var(--surface); border-radius: var(--radius); padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-size: 14px; color: var(--muted); }
.step__time { position: absolute; top: 22px; right: 22px; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--accent); color: var(--on-accent); }
.step h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); font-size: 16px; }

.cta-band__box { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); }
.cta-band__box .h2 em { color: var(--on-accent); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.others__title { grid-column: 1 / -1; font-size: 15px; color: var(--muted); margin-top: 48px; }
.other { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 16px; padding: 28px; border-radius: var(--radius); background: var(--surface); transition: background-color .3s; }
.other:hover { background: var(--surface-2); }
.other__label { grid-column: 1 / -1; font-size: 14px; color: var(--accent); }
.other__title { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.1; }
.other__go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: background-color .3s, color .3s; }
.other:hover .other__go { background: var(--accent); color: var(--on-accent); }
.other:hover .other__go .arrow { transform: translate(2px, -2px); }

@media (max-width: 1080px) {
  .page-hero__grid, .included__grid { grid-template-columns: 1fr; }
  .page-hero__media { aspect-ratio: 16 / 10; }
  .steps-mini__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .offer__grid, .others { grid-template-columns: 1fr; }
  .offer__item { grid-template-columns: 40px 1fr; padding: 24px 0; }
  .steps-mini__list { grid-template-columns: 1fr; }
  .page-hero .hero__actions .btn { width: 100%; }
  .included__list li { font-size: 15px; padding: 12px 16px; }
  .case__title { font-size: 20px; }
}

/* ===================== Pages simples : légal, 404 ===================== */
.page-hero--simple { padding-bottom: 0; }
.page-hero--simple .hero__lead { margin: 24px 0 0; text-align: left; }
.page-hero--simple .hero__actions { justify-content: flex-start; }
.legal { padding-top: clamp(64px, 8vw, 112px); }
.legal__body > * { max-width: 820px; }
.legal__body h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -0.02em; margin: 48px 0 12px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: var(--ink-2); margin-bottom: 12px; max-width: 70ch; }
.legal__body a { color: var(--ink); border-bottom: 1px solid rgba(199,255,9,.5); }
.legal__body a:hover { color: var(--accent); }
.legal__date { margin-top: 40px; font-size: 14px; }
mark.todo { background: var(--accent); color: var(--on-accent); padding: 0 6px; border-radius: 4px; }
.others--404 { margin-top: 0; }
.footer__legal a { color: var(--ink-2); }
.footer__legal a:hover { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q__error a { color: var(--ink); text-decoration: underline; }
.btn.is-loading { opacity: .6; pointer-events: none; }

.person .network__text { margin-top: auto; padding-top: 18px; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); max-width: 520px; }
[data-calendly][hidden], [data-calendly-after][hidden] { display: none !important; }
