/* Direction : studio sombre et chaleureux. Une seule ambiance assumée (pas de thème clair automatique),
   rythmée par une section « papier ». Hagrid très grand pour les titres, son italique pour les mots clés.
   Layout : grandes respirations, grilles 12 colonnes, études de cas avec sommaire collant. */

@font-face { font-family: "Hagrid"; src: url("../fonts/hagrid-text-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Hagrid"; src: url("../fonts/hagrid-text-italic-var.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

:root {
  --ink: #0C0C0B;
  --ink-2: #151513;
  --ink-3: #1F1E1B;
  --paper: #F1EDE5;
  --paper-2: #BAB5AB;
  --paper-3: #8C877F;
  --sand: #E2CBA8;
  --line: rgba(241, 237, 229, .12);
  --line-strong: rgba(241, 237, 229, .32);

  --bg: var(--ink);
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --fg: var(--paper);
  --fg-2: var(--paper-2);
  --fg-3: var(--paper-3);
  --accent: var(--sand);
  --todo-bg: rgba(226, 203, 168, .18);
  --todo-fg: #F3DDB9;
  --ok: #7FD9A8; --warn: #F2C55C; --err: #F59A92;

  --p: var(--sand);

  --display: "Hagrid", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: .75rem;
  --fs-s: .875rem;
  --fs-m: 1rem;
  --fs-l: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-3xl: clamp(2.75rem, 1.6rem + 4.6vw, 6rem);
  --fs-hero: clamp(3.4rem, 1rem + 10.5vw, 12.5rem);

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
  color-scheme: dark;
}

/* Section claire : on redéfinit seulement les rôles */
.is-paper {
  --bg: var(--paper);
  --surface: #E8E3D9;
  --surface-2: #DDD7CB;
  --fg: #0C0C0B;
  --fg-2: #48453F;
  --fg-3: #6A665F;
  --line: rgba(12, 12, 11, .12);
  --line-strong: rgba(12, 12, 11, .4);
  --accent: #7A5B31;
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
}

/* Couleurs projet, lisibles sur fond sombre */
.p-myplace { --p: #FF8A4C; }
.p-osim { --p: #FDC301; }
.p-carbone { --p: #8F9BFF; }
.p-charte { --p: #AEB8EE; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--fs-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 120; background: var(--ink); }
/* Grain discret */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: .98; text-wrap: balance; }
em.it, .it { font-family: var(--display); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { font-family: var(--body); font-size: .9375rem; font-weight: 500; letter-spacing: -0.005em; color: var(--fg-3); }
.todo { background: var(--todo-bg); color: var(--todo-fg); padding: 0 .3em; border-radius: 4px; font-style: normal; }
.is-paper .todo { background: #F3DDB9; color: #4A3712; }

/* Lignes de texte révélées (SplitText) */
.line-mask { overflow: clip; overflow-clip-margin: 0; padding: .22em .12em .12em 0; margin: -.22em -.12em -.12em 0; }

/* ---------------- NAVIGATION ---------------- */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-bg { position: absolute; inset: 0; background: rgba(12, 12, 11, .62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); opacity: 0; transition: opacity .4s; border-bottom: 1px solid var(--line); }
.nav.is-scrolled .nav-bg { opacity: 1; }
.brand { position: relative; white-space: nowrap; display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 560; font-size: 1.375rem; letter-spacing: -0.045em; line-height: 1; color: var(--paper); }
.brand-dot { display: inline-block; color: var(--sand); transition: transform .6s var(--ease); }
.brand:hover .brand-dot { transform: translateY(-.28em); }
.nav-links { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-links a.link { position: relative; padding: 10px 14px; font-size: .9375rem; color: var(--paper-2); transition: color .3s; }
.nav-links a.link:hover, .nav-links a.link.is-active { color: var(--paper); }
.nav-links a.link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a.link:hover::after { transform: scaleX(1); transform-origin: left; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; font-size: .8125rem; color: var(--paper-2); margin-inline: 8px; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(127, 217, 168, .5); animation: ping 2.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(127, 217, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 217, 168, 0); } }
.menu-btn { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); }
.menu-btn span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--paper); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 19px; } .menu-btn span:nth-child(2) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .nav-links .link, .nav-links .status { display: none; }
  .menu-btn { display: block; }
}
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink-2);
  padding: calc(var(--nav-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu ol { display: flex; flex-direction: column; gap: 4px; counter-reset: m; }
.menu li a { display: flex; align-items: baseline; gap: 16px; font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 12vw, 4rem); letter-spacing: -0.04em; line-height: 1.1; }
.menu li a::before { counter-increment: m; content: "0" counter(m); font-family: var(--mono); font-size: .8125rem; font-weight: 400; color: var(--paper-3); letter-spacing: 0; }
.menu li { transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.menu-open .menu li { transform: none; opacity: 1; }
.menu-open .menu li:nth-child(2) { transition-delay: .06s; } .menu-open .menu li:nth-child(3) { transition-delay: .12s; } .menu-open .menu li:nth-child(4) { transition-delay: .18s; } .menu-open .menu li:nth-child(5) { transition-delay: .24s; }
.menu-foot { display: flex; flex-direction: column; gap: 8px; color: var(--paper-2); }

/* ---------------- BOUTONS ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 500; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sand); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn .arr { display: inline-block; transition: transform .6s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn--line { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn--line::before { background: var(--fg); }
.btn--line:hover { color: var(--bg); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.is-paper .btn { background: var(--fg); color: var(--bg); }
.is-paper .btn::before { background: #7A5B31; }
.is-paper .btn:hover { color: #FFFFFF; }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }

/* ---------------- CURSEUR ---------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--paper); mix-blend-mode: difference; transition: transform .3s var(--ease), opacity .3s; }
.cursor-ring {
  position: absolute; top: 0; left: 0; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  background: var(--sand); color: var(--ink); display: grid; place-items: center;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  transform: scale(0); transition: transform .5s var(--ease);
}
.cursor.is-label .cursor-ring { transform: scale(1); }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-hover .cursor-dot { transform: scale(5); }
.cursor.is-off .cursor-dot { opacity: 0; transform: scale(.5); }

/* ---------------- TRANSITION DE PAGE ---------------- */
.curtain { position: fixed; inset: 0; z-index: 180; pointer-events: none; display: grid; place-items: center; background: var(--sand); color: var(--ink); transform: translateY(100%); }
.curtain span { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: -0.04em; opacity: 0; }

/* ---------------- HERO : mur d'écrans en perspective ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 64px)); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-bg { position: absolute; inset: 0; z-index: -2; perspective: 1800px; perspective-origin: 65% 35%; overflow: hidden; }
.wall {
  --rx: 50deg; --rz: -32deg; --s: 1; --wx: 0px; --wy: 0px;
  position: absolute; top: -38%; right: -22%; width: min(1650px, 120vw); height: 190%;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px);
  transform-origin: 50% 50%;
  transform: translate3d(var(--wx), var(--wy), 0) rotateX(var(--rx)) rotateZ(var(--rz)) scale(var(--s));
  will-change: transform;
}
.wall-col { min-width: 0; }
.wall-track { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 24px); animation: wallUp 70s linear infinite; will-change: transform; }
.wall-col--1 .wall-track { animation-name: wallDown; animation-duration: 82s; }
.wall-col--2 .wall-track { animation-duration: 64s; }
.wall-col--3 .wall-track { animation-name: wallDown; animation-duration: 76s; }
.wall-col--4 .wall-track { animation-duration: 90s; }
.hero.is-off .wall-track { animation-play-state: paused; }
@keyframes wallUp { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(-50% - clamp(7px, .8vw, 12px)), 0); } }
@keyframes wallDown { from { transform: translate3d(0, calc(-50% - clamp(7px, .8vw, 12px)), 0); } to { transform: translate3d(0, 0, 0); } }
.wall-card { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: var(--ink-3); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(241,237,229,.08); }
.wall-card img, .wall-card video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* profondeur : flou et luminosité selon la colonne */
.wall-card::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--dim, 0); pointer-events: none; }
.wall-col--0 { --dim: .58; }
.wall-col--1 { --dim: .32; }
.wall-col--2 { --dim: .05; }
.wall-col--3 { --dim: .22; }
.wall-col--4 { --dim: .55; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 42%, rgba(226,203,168,.07), transparent 70%),
    linear-gradient(90deg, var(--ink) 0%, rgba(12,12,11,.94) 26%, rgba(12,12,11,.55) 48%, rgba(12,12,11,.08) 70%, rgba(12,12,11,0) 100%),
    linear-gradient(180deg, rgba(12,12,11,.75) 0%, rgba(12,12,11,0) 22%, rgba(12,12,11,0) 70%, var(--ink) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: clamp(3.2rem, 1rem + 7.4vw, 9.25rem); letter-spacing: -0.055em; line-height: .9; max-width: 11ch; }
.hero-title .row { display: block; }
.hero-title .it { font-weight: 400; letter-spacing: -0.045em; padding-right: .06em; }
.hero-lead { margin-top: clamp(24px, 3vw, 36px); font-size: var(--fs-l); line-height: 1.5; color: var(--paper-2); max-width: 44ch; }
.hero-lead strong { color: var(--paper); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.hero-cases { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; margin-top: clamp(36px, 5vw, 64px); }
.hero-cases .label { margin-right: 4px; }
.hero-cases a { position: relative; color: var(--paper-2); font-size: .9375rem; padding-bottom: 3px; transition: color .4s var(--ease); }
.hero-cases a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sand); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.hero-cases a:hover { color: var(--paper); }
.hero-cases a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 900px) {
  .hero { align-items: flex-end; min-height: 92svh; }
  .wall { --rx: 46deg; --rz: -30deg; top: -20%; right: -95%; width: 230vw; height: 150%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(12,12,11,.25) 0%, rgba(12,12,11,.7) 26%, rgba(12,12,11,.9) 45%, var(--ink) 72%);
  }
}
@media (prefers-reduced-motion: reduce) { .wall-track { animation: none; } }

/* Bandeau défilant */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 22px; }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.02em; color: var(--paper-2); white-space: nowrap; }
.marquee span::after { content: "✳"; color: var(--sand); font-size: .7em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------- SECTIONS ---------------- */
.section { padding-block: clamp(96px, 13vw, 200px); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(48px, 7vw, 104px); }
.sec-head .label { grid-column: 1 / span 3; align-self: start; padding-top: .9em; }
.sec-head h2 { grid-column: 4 / span 9; font-size: var(--fs-3xl); }
.sec-head p { grid-column: 4 / span 6; font-size: var(--fs-l); color: var(--fg-2); }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } .sec-head > * { grid-column: 1 / -1 !important; } }

/* ---------------- PROJETS EMPILÉS ---------------- */
.stack { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.stack-item { position: sticky; top: calc(var(--nav-h) + 16px + env(safe-area-inset-top, 0px)); }
.card-project {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px);
  min-height: min(78vh, 760px); padding: clamp(20px, 2.6vw, 36px); border-radius: var(--radius-lg);
  background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transform-origin: 50% 0;
}
.card-project .info { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 8px; min-width: 0; }
.card-project .idx { display: flex; justify-content: space-between; color: var(--paper-3); font-family: var(--mono); font-size: .8125rem; }
.card-project h3 { font-size: clamp(2.5rem, 1.4rem + 4vw, 5.5rem); letter-spacing: -0.05em; }
.card-project .pitch { font-size: var(--fs-l); color: var(--paper-2); margin-top: 18px; max-width: 34ch; }
.card-project .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-project .go { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.card-project .go i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-style: normal; transition: background .5s var(--ease), color .5s, transform .6s var(--ease); }
.card-project:hover .go i { background: var(--c, var(--p)); color: var(--c-ink, var(--ink)); border-color: var(--c, var(--p)); transform: rotate(-45deg); }
.card-project .media { position: relative; border-radius: calc(var(--radius-lg) - 12px); overflow: hidden; background: var(--ink-3); min-height: 280px; }
.card-project .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); }
.card-project:hover .media img { transform: scale(1.02); }
.card-project .accent { position: absolute; inset: auto 0 0 0; height: 2px; background: var(--p); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.card-project:hover .accent { transform: scaleX(1); }
@media (max-width: 900px) {
  .stack-item { position: relative; top: 0; }
  .card-project { grid-template-columns: 1fr; min-height: 0; }
  .card-project .media { aspect-ratio: 4 / 3; min-height: 0; order: -1; }
}

/* ---------------- MANIFESTE ---------------- */
.manifesto p { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 1rem + 3.2vw, 4.25rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 22ch; }
.manifesto .word { color: rgba(241, 237, 229, .16); transition: color .2s; }
.manifesto .word.is-lit { color: var(--paper); }
.manifesto .word.it { color: rgba(226, 203, 168, .2); }
.manifesto .word.it.is-lit { color: var(--sand); }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); }
.number { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.number b { font-family: var(--display); font-size: clamp(2.75rem, 1.8rem + 3vw, 5rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.number > span { color: var(--paper-2); max-width: 22ch; font-size: .9375rem; }
@media (max-width: 800px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* ---------------- EXPERTISES (section papier) ---------------- */
.skills { border-top: 1px solid var(--line-strong); }
.skill { border-bottom: 1px solid var(--line); }
.skill-head {
  width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 56px; gap: 20px; align-items: center;
  padding: clamp(24px, 3vw, 40px) 0; text-align: left; min-height: 44px;
}
.skill-head .n { font-family: var(--mono); font-size: .8125rem; color: var(--fg-3); }
.skill-head h3 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.5rem); letter-spacing: -0.045em; transition: transform .7s var(--ease), color .4s; }
.skill-head .sum { color: var(--fg-2); font-size: var(--fs-m); max-width: 40ch; }
.skill-head .pm { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; justify-self: end; transition: transform .6s var(--ease), background .4s, color .4s; }
.skill-head:hover h3 { transform: translateX(12px); }
.skill.is-open .skill-head .pm { transform: rotate(45deg); background: var(--fg); color: var(--bg); }
.skill-body { overflow: hidden; height: 0; }
.skill-body-inner { display: grid; grid-template-columns: 64px repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: clamp(28px, 3vw, 44px); }
.skill-body-inner > div:first-child { grid-column: 2; }
.skill-body h4 { font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.skill-body li { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.skill-body .proof a { display: inline-flex; margin: 0 8px 8px 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .875rem; transition: background .3s, color .3s; }
.skill-body .proof a:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 800px) {
  .skill-head { grid-template-columns: 40px minmax(0, 1fr) 48px; }
  .skill-head .sum { grid-column: 2; grid-row: 2; }
  .skill-head .pm { grid-column: 3; grid-row: 1; }
  .skill-body-inner { grid-template-columns: 1fr; }
  .skill-body-inner > div:first-child { grid-column: auto; }
}
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; align-items: center; }
.tools .label { margin-right: 12px; }
.tools span:not(.label) { padding: 9px 15px; border-radius: 999px; background: var(--surface); font-size: .9375rem; }

/* ---------------- MÉTHODE (horizontal) ---------------- */
.method { overflow: hidden; }
.method-pin { padding-block: clamp(96px, 12vw, 160px); }
.method-track { display: flex; gap: clamp(16px, 2vw, 28px); padding-left: var(--gutter); padding-right: var(--gutter-r); will-change: transform; }
@media (min-width: 900px) { .method-track { padding-left: max(48px, calc((100vw - 1440px) / 2 + 48px)); } }
.step {
  flex: 0 0 clamp(300px, 34vw, 500px); min-height: clamp(380px, 52vh, 520px); padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.step .num { font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(4rem, 3rem + 4vw, 7.5rem); line-height: .8; color: var(--sand); letter-spacing: -0.05em; }
.step h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: -0.04em; }
.step p { color: var(--paper-2); margin-top: 12px; }
.step ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.step li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .8125rem; color: var(--paper-2); }
.method-progress { margin-top: 40px; height: 1px; background: var(--line); }
.method-progress i { display: block; height: 100%; width: 100%; background: var(--sand); transform: scaleX(0); transform-origin: left; }
@media (max-width: 900px) {
  .method-track { flex-direction: column; }
  .step { flex: 1 1 auto; min-height: 0; }
  .method-progress { display: none; }
}

/* ---------------- PARCOURS ---------------- */
.timeline { position: relative; display: flex; flex-direction: column; }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline .draw { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--sand); transform: scaleY(0); transform-origin: top; }
.job { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 24px; padding: clamp(32px, 4vw, 52px) 0 clamp(32px, 4vw, 52px) clamp(28px, 4vw, 64px); border-bottom: 1px solid var(--line); }
.job::before { content: ""; position: absolute; left: -5px; top: clamp(42px, 4.6vw, 62px); width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1px solid var(--sand); }
.job .when { font-family: var(--mono); font-size: .8125rem; color: var(--paper-3); padding-top: .6em; }
.job h3 { font-size: var(--fs-2xl); letter-spacing: -0.045em; }
.job .org { color: var(--paper-2); margin-top: 10px; }
.job ul { display: flex; flex-direction: column; gap: 10px; color: var(--paper-2); }
.job li { display: flex; gap: 12px; }
.job li::before { content: "—"; color: var(--paper-3); }
.job .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.job .links a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: .8125rem; transition: border-color .3s, color .3s; }
.job .links a:hover { border-color: var(--sand); color: var(--sand); }
@media (max-width: 900px) { .job { grid-template-columns: 1fr; gap: 12px; } }
.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.edu div { padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.edu b { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; }
.edu span:last-child { color: var(--paper-3); font-size: .9375rem; }
@media (max-width: 800px) { .edu { grid-template-columns: 1fr; } }

/* ---------------- À PROPOS ---------------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); max-width: 100%; }
.about-photo img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 25%; }
.about h2 { font-size: var(--fs-3xl); }
.about-text { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; font-size: var(--fs-l); color: var(--paper-2); max-width: 54ch; }
.about-text strong { color: var(--paper); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 40px; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts dd { margin: 0; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }

/* ---------------- CONTACT / FOOTER ---------------- */
.contact { position: relative; padding-block: clamp(112px, 14vw, 220px) 32px; border-top: 1px solid var(--line); overflow: hidden; }
.contact .label { color: var(--paper-2); }
.contact h2 { font-size: clamp(3.25rem, 1rem + 9.5vw, 11.5rem); letter-spacing: -0.06em; line-height: .9; margin-top: 28px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; margin-top: clamp(48px, 6vw, 88px); }
.big-cta {
  position: relative; width: clamp(150px, 16vw, 210px); aspect-ratio: 1; border-radius: 50%; background: var(--sand); color: var(--ink);
  display: grid; place-items: center; text-align: center; font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  transition: transform .6s var(--ease);
}
.big-cta:hover { transform: scale(1.05); }
.mail { display: flex; flex-direction: column; gap: 14px; }
.mail > a { font-family: var(--display); font-size: clamp(1.375rem, 1rem + 1.6vw, 2.5rem); letter-spacing: -0.03em; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; transition: border-color .4s, color .4s; overflow-wrap: anywhere; }
.mail > a:hover { border-color: var(--sand); color: var(--sand); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px 32px; margin-top: clamp(72px, 9vw, 140px); padding-top: 28px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--paper-3); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.foot a { color: var(--paper-2); transition: color .3s; }
.foot a:hover { color: var(--paper); }
.foot-top { justify-self: end; }
@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr; justify-items: start; }
  .foot-links { justify-content: flex-start; }
  .foot-top { justify-self: start; }
}

/* ====================== ÉTUDE DE CAS ====================== */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; z-index: 110; height: 2px; width: 100%; background: var(--p); transform: scaleX(0); transform-origin: left; }
.case-hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); }
.case-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--paper-2); font-size: .9375rem; transition: color .3s; }
.back:hover { color: var(--paper); }
.back i { font-style: normal; transition: transform .5s var(--ease); }
.back:hover i { transform: translateX(-4px); }
.case-title { font-size: clamp(3.5rem, 1rem + 11vw, 13rem); letter-spacing: -0.06em; line-height: .88; margin-top: clamp(32px, 5vw, 64px); }
.case-sub { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.case-sub .lead { grid-column: 1 / span 6; font-size: var(--fs-xl); line-height: 1.35; letter-spacing: -0.01em; }
.case-sub dl { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 0; }
.case-sub dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-3); }
.case-sub dd { margin: 6px 0 0; color: var(--paper); font-size: .9375rem; }
@media (max-width: 900px) { .case-sub { grid-template-columns: 1fr; } .case-sub > * { grid-column: 1 / -1 !important; } }

.cover-wrap { margin-top: clamp(48px, 7vw, 96px); }
.cover { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-3); aspect-ratio: 16 / 9; max-width: 100%; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

.brief { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.brief div { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.brief .label { color: var(--p); }
.brief p { font-size: var(--fs-l); line-height: 1.45; color: var(--paper); }
@media (max-width: 900px) { .brief { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.kpi { padding: 24px 20px 0 0; display: flex; flex-direction: column; gap: 8px; }
.kpi b { font-family: var(--display); font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.25rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi > span { color: var(--paper-2); font-size: .9375rem; max-width: 24ch; }
@media (max-width: 800px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }

.case-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); padding-top: clamp(96px, 12vw, 180px); }
.toc { position: sticky; top: calc(var(--nav-h) + 32px + env(safe-area-inset-top, 0px)); align-self: start; min-width: 0; }
.toc-in { position: relative; }
.toc ol { display: flex; flex-direction: column; }
.toc-in::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.toc .fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--p); transform: scaleY(0); transform-origin: top; }
.toc a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0 9px 18px; min-height: 40px; color: var(--paper-3); font-size: .9375rem; transition: color .35s, transform .5s var(--ease); }
.toc a span { font-family: var(--mono); font-size: .75rem; }
.toc a:hover { color: var(--paper); }
.toc a.is-active { color: var(--paper); transform: translateX(4px); }
.toc a.is-active span { color: var(--p); }
@media (max-width: 1000px) {
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .toc { top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 50; margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter); background: rgba(12, 12, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .toc ol { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc-in::before, .toc .fill { display: none; }
  .toc a { padding: 10px 12px; white-space: nowrap; }
  .toc a.is-active { transform: none; }
}

.chapters { display: flex; flex-direction: column; gap: clamp(112px, 14vw, 200px); min-width: 0; }
.chapter { display: flex; flex-direction: column; gap: 32px; min-width: 0; scroll-margin-top: calc(var(--nav-h) + 40px); }
.chapter > .label { color: var(--p); }
.chapter h2 { font-size: var(--fs-2xl); letter-spacing: -0.045em; max-width: 20ch; }
.chapter > p { font-size: var(--fs-l); color: var(--paper-2); max-width: 60ch; }
.chapter > p strong { color: var(--paper); font-weight: 500; }

.statement { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 24ch; }
.statement .it { color: var(--p); }

.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shot-media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-3); max-width: 100%; }
.shot-media img { width: 100%; height: auto; }
.shot figcaption { font-size: .875rem; color: var(--paper-3); max-width: 64ch; }
[data-zoom] { cursor: zoom-in; }

.ph { border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--ink-2); aspect-ratio: 16 / 9; max-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--paper-2); }
.ph p { font-size: .9375rem; max-width: 44ch; }
.ph small { font-family: var(--mono); font-size: .75rem; color: var(--paper-3); }
.ph .play { width: 72px; height: 72px; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.tile { padding: clamp(22px, 2.2vw, 30px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.tile h3 { font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.15; }
.tile p { color: var(--paper-2); font-size: .9375rem; }
.tile .big { font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.25rem); letter-spacing: -0.05em; line-height: 1; }
.tile--accent { background: var(--p); color: var(--ink); border-color: transparent; }
.tile--accent p, .tile--accent .label { color: rgba(12, 12, 11, .72); }

/* Onglets / segments */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); align-self: flex-start; max-width: 100%; }
.tabs button { position: relative; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: .9375rem; color: var(--paper-2); transition: color .4s, background .4s var(--ease); }
.tabs button:hover { color: var(--paper); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); font-weight: 500; }
.tab-panel { min-width: 0; }

.persona { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.persona .goal { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.03em; }
.persona ul { display: flex; flex-direction: column; }
.persona li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--paper-2); display: flex; gap: 12px; }
.persona li::before { content: "→"; color: var(--p); }
@media (max-width: 760px) { .persona { grid-template-columns: 1fr; } }

/* Accordéon */
.acc { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 16px; align-items: center; padding: 24px 0; text-align: left; min-height: 44px; }
.acc-head .n { font-family: var(--mono); font-size: .8125rem; color: var(--paper-3); }
.acc-head h3 { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); letter-spacing: -0.03em; font-weight: 500; transition: color .3s; }
.acc-head .pm { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .6s var(--ease), background .4s, color .4s; }
.acc-item.is-open .acc-head .pm { transform: rotate(45deg); background: var(--paper); color: var(--ink); }
.acc-body { height: 0; overflow: hidden; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 0 28px 64px; }
.acc-grid > div { color: var(--paper-2); }
.acc-grid .principle { padding: 18px 20px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); color: var(--paper); }
.acc-grid .principle .label { display: block; color: var(--p); margin-bottom: 6px; }
@media (max-width: 700px) { .acc-grid { grid-template-columns: 1fr; padding-left: 0; } }

/* Flux et arbre */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: f; }
.flow li { position: relative; padding: 18px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.flow li::before { counter-increment: f; content: "0" counter(f); font-family: var(--mono); font-size: .75rem; color: var(--paper-3); }
.flow b { font-weight: 600; }
.flow span { font-size: .8125rem; color: var(--paper-3); }
.flow li.hot { border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 18%, transparent); }
@media (max-width: 800px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tree { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.tree .root { padding: 12px 24px; border-radius: 12px; background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 700; }
.tree .stem { width: 1px; height: 28px; background: var(--line-strong); }
.tree .branches { width: 100%; padding-top: 28px; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tree .node { padding: 14px; border-radius: 12px; border: 1px solid var(--line); font-weight: 500; font-size: .9375rem; background: var(--ink); }
.tree .node.hot { border-color: var(--p); color: var(--p); }
.tree .sub { padding: 10px 4px 0; font-size: .8125rem; color: var(--paper-3); line-height: 1.7; }
@media (max-width: 860px) { .tree .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.map { border-top: 1px solid var(--line-strong); }
.map li { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.map .from { color: var(--paper-3); text-decoration: line-through; text-decoration-color: rgba(241, 237, 229, .25); }
.map .arr { color: var(--p); }
.map .to { font-weight: 500; }

/* Décisions */
.decisions { border-top: 1px solid var(--line-strong); counter-reset: d; }
.decision { display: grid; grid-template-columns: 48px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.decision::before { counter-increment: d; content: "0" counter(d); font-family: var(--mono); font-size: .8125rem; color: var(--paper-3); padding-top: .3em; }
.decision h3 { font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1.15; }
.decision .k { display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-3); margin-bottom: 6px; }
.decision div { color: var(--paper-2); font-size: .9375rem; }
@media (max-width: 800px) { .decision { grid-template-columns: 1fr; gap: 10px; } }

/* Comparateur */
.compare { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-3); user-select: none; touch-action: pan-y; max-width: 100%; }
.compare > img { width: 100%; height: auto; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .after img { width: 100%; height: 100%; object-fit: cover; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; }
.compare .handle b { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-weight: 400; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.compare .lbl { position: absolute; top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(12,12,11,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; }
.compare .lbl.l { left: 16px; } .compare .lbl.r { right: 16px; }

/* Étapes Osim */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps button { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink-2); text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 44px; transition: background .5s var(--ease), color .4s, border-color .4s; }
.steps button span { font-family: var(--mono); font-size: .75rem; color: var(--paper-3); }
.steps button b { font-weight: 500; }
.steps button:hover { border-color: var(--line-strong); }
.steps button[aria-selected="true"] { background: var(--p); color: var(--ink); border-color: var(--p); }
.steps button[aria-selected="true"] span { color: rgba(12,12,11,.65); }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 12px; }
.split .tile { justify-content: center; }
.split dl { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.split dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--p); }
.split dd { margin: 4px 0 0; color: var(--paper); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Démo états IA */
.demo { padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.mock { max-width: 620px; padding: 24px; border-radius: 18px; background: #FFFFFF; color: #1A1A1A; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.mock .msg { display: flex; gap: 12px; font-size: .9375rem; color: #3A3A3A; }
.mock .av { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #F5B800; }
.state { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: .9375rem; color: #1A1A1A; }
.state b { font-weight: 600; }
.state--ok { background: #EAF6EF; } .state--ok i { color: #1F7A4D; }
.state--warn { background: #FFF6DE; } .state--warn i { color: #8A6200; }
.state--err { background: #FDEDEC; } .state--err i { color: #B42318; }
.state i { font-style: normal; font-weight: 700; }
.mock .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mock .acts span { padding: 9px 14px; border-radius: 999px; font-size: .875rem; border: 1px solid #DDD; }
.mock .acts span:first-child { background: #16173A; color: #FFFFFF; border-color: #16173A; }
.demo-area { min-height: 200px; border-radius: 18px; background: #F4F3EF; display: grid; place-items: center; }
.demo-btn { padding: 15px 28px; border-radius: 8px; font-weight: 600; background: #101830; color: #FFFFFF; transition: all .35s var(--ease); }
.demo-btn[data-s="hover"] { background: #26305A; }
.demo-btn[data-s="focus"] { outline: 2px solid #101830; outline-offset: 4px; }
.demo-btn[data-s="pressed"] { background: #0A0F20; transform: scale(.96); }
.demo-btn[data-s="disabled"] { background: #D9DBE3; color: #5B6075; }

.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.result { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius); background: var(--p); color: var(--ink); display: flex; flex-direction: column; gap: 10px; min-height: 220px; justify-content: space-between; }
.result b { font-family: var(--display); font-size: clamp(2.75rem, 1.8rem + 2.6vw, 4.5rem); letter-spacing: -0.05em; line-height: 1; }
.result span { color: rgba(12,12,11,.75); font-size: .9375rem; }
.result .todo { background: rgba(12,12,11,.12); color: var(--ink); }
@media (max-width: 800px) { .results { grid-template-columns: 1fr; } .result { min-height: 0; } }
.quote { margin: 0; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.03em; }
.quote figcaption { color: var(--paper-3); }
.watch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.watch div { display: flex; flex-direction: column; gap: 4px; }
.watch span { color: var(--paper-3); font-size: .875rem; }
@media (max-width: 800px) { .watch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.learn div { padding-top: 20px; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 10px; }
.learn h3 { font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1.15; }
.learn p { color: var(--paper-2); font-size: .9375rem; }
@media (max-width: 800px) { .learn { grid-template-columns: 1fr; } }

/* Projet suivant */
.next { position: relative; display: block; margin-top: clamp(120px, 15vw, 220px); padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line); overflow: hidden; }
.next .label { color: var(--paper-2); }
.next h2 { font-size: clamp(3.25rem, 1rem + 10vw, 12rem); letter-spacing: -0.06em; line-height: .9; margin-top: 20px; transition: transform 1s var(--ease), color .5s; }
.next:hover h2 { transform: translateX(2vw); color: var(--p); }
.next p { color: var(--paper-2); margin-top: 20px; max-width: 46ch; font-size: var(--fs-l); }
.next .peek { position: absolute; right: var(--gutter-r); top: 50%; width: clamp(220px, 28vw, 420px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; transform: translateY(-50%) rotate(4deg) scale(.8); opacity: 0; transition: transform 1s var(--ease), opacity .6s; pointer-events: none; }
.next .peek img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .peek { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
@media (max-width: 900px) { .next .peek { position: relative; right: auto; top: auto; transform: none; opacity: 1; width: 100%; margin-top: 32px; } .next:hover .peek { transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 220; background: rgba(8,8,7,.94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .4s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox-inner { max-width: 100%; max-height: 100%; overflow: auto; border-radius: 12px; }
.lightbox img { max-width: none; width: min(2600px, 170vw); }
.lightbox-close { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 22px; }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .deck-dots { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .manifesto .word { color: var(--paper); }
  .manifesto .word.it { color: var(--sand); }
  .stack-item { position: relative; top: 0; }
}

/* Évite le flash avant l'intro ; repli automatique si les scripts ne chargent pas */
html.js:not(.is-ready) [data-split="hero"],
html.js:not(.is-ready) [data-intro] { opacity: 0; }

/* ---------------- PETITS TEXTES : SYSTÈME UNIFIÉ ----------------
   Une seule famille pour les textes secondaires (Instrument Sans, chiffres tabulaires),
   et des intitulés de section rattachés à leur titre plutôt que posés dans la marge. */
:root { --mono: var(--body); }
.chip, .cursor-ring, .skill-body h4, .case-sub dt, .decision .k, .compare .lbl, .split dt {
  font-family: var(--body); text-transform: none; letter-spacing: -0.005em; font-weight: 500;
}
.chip { font-size: .8125rem; }
.skill-body h4, .case-sub dt, .split dt { font-size: .875rem; }
.decision .k, .compare .lbl { font-size: .8125rem; }
.cursor-ring { font-size: .8125rem; }
.menu li a::before, .skill-head .n, .job .when, .toc a span, .ph small, .acc-head .n,
.flow li::before, .decision::before, .steps button span {
  font-family: var(--body); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0;
}

/* Intitulé de section : au-dessus du titre, dans la même colonne, à la couleur de la marque */
.sec-head { row-gap: 0; }
.sec-head .label, .eyebrow {
  grid-column: 4 / span 9; align-self: auto; padding-top: 0; margin-bottom: clamp(18px, 2vw, 28px);
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--body); font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; color: var(--sand);
}
.sec-head .label::before, .eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.sec-head p { margin-top: clamp(20px, 2vw, 28px); }
.is-paper .sec-head .label, .is-paper .eyebrow { color: #9A7B4F; }

/* Cartes projets : index en typo de titre, client en pastille */
.card-project .idx { align-items: center; font-family: var(--body); color: var(--paper-2); }
.card-project .idx-n { font-family: var(--display); font-weight: 560; font-size: 1.375rem; letter-spacing: -0.03em; color: var(--paper); font-variant-numeric: tabular-nums; }
.card-project .idx-n i { font-style: normal; font-family: var(--body); font-weight: 500; font-size: .875rem; letter-spacing: 0; color: var(--paper-3); margin-left: 8px; }
.card-project .idx-c { font-size: .875rem; font-weight: 500; color: var(--paper-2); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* Client coloré à la couleur de sa marque */
.p-myplace { --c: #FF6A1F; }
.p-osim { --c: #FDC301; }
.p-carbone { --c: #4F63FF; }
.p-charte { --c: #AEB8EE; }
.card-project .idx-c {
  color: color-mix(in srgb, var(--c, var(--p)) 72%, #fff);
  border-color: color-mix(in srgb, var(--c, var(--p)) 55%, transparent);
  background: color-mix(in srgb, var(--c, var(--p)) 14%, transparent);
  display: inline-flex; align-items: center; gap: 8px;
}
.card-project .idx-c::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--p)); }
.card-project .accent { background: var(--c, var(--p)); }

/* Photo révélée au survol du nom */
.who { position: relative; display: inline; cursor: default; outline: none;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  text-decoration: none; transition: color .4s var(--ease); }
.who:hover, .who.is-open, .who:focus-visible { color: var(--sand); }
.who-photo { position: absolute; left: var(--px, 50%); bottom: calc(100% + 18px); width: clamp(150px, 14vw, 210px); aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 5;
  transform: translate3d(-50%, 14px, 0) rotate(-4deg) scale(.86); opacity: 0;
  transition: opacity .35s var(--ease), transform .6s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(241,237,229,.12); will-change: transform, opacity; backface-visibility: hidden; }
.who-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translateZ(0); }
.who:hover .who-photo, .who.is-open .who-photo, .who:focus-visible .who-photo { opacity: 1; transform: translate3d(-50%, 0, 0) rotate(-3deg) scale(1); }
@media (prefers-reduced-motion: reduce) { .who-photo { transition: opacity .2s; } }

.p-carbone { --c-ink: #fff; }
.number b { margin-left: -0.035em; }
/* Chiffres clés répartis sur toute la largeur de la grille */
@media (min-width: 801px) {
  .numbers { display: flex; justify-content: space-between; gap: 32px; }
  .number { flex: 0 1 auto; padding-right: 0; }
}

/* Expertise : rendre l'ouverture évidente */
.skill-head { position: relative; cursor: pointer; }
.skill-head::before { content: ""; position: absolute; inset: 0 calc(-1 * clamp(12px, 1.5vw, 20px)); border-radius: 14px; background: color-mix(in srgb, var(--fg) 4%, transparent); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.skill-head:hover::before { opacity: 1; }
.skill-head .pm { width: auto; height: 44px; padding: 0 8px 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 500; white-space: nowrap; transform: none !important; }
.skill-head .pm em { font-style: normal; }
.skill-head .pm i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1.125rem; background: var(--fg); color: var(--bg); transition: transform .6s var(--ease); }
.skill-head .pm .pm-close { display: none; }
.skill.is-open .skill-head .pm { background: transparent; color: var(--fg); }
.skill.is-open .skill-head .pm .pm-open { display: none; }
.skill.is-open .skill-head .pm .pm-close { display: inline; }
.skill.is-open .skill-head .pm i { transform: rotate(45deg); }
.skill-head:hover .pm { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.skill-head:hover .pm i { background: var(--bg); color: var(--fg); }
@media (max-width: 800px) { .skill-head .pm { padding: 0 6px; } .skill-head .pm em { display: none !important; } }
.skill-body h4 { line-height: 1.4; padding-top: 2px; }
/* Expertise : bouton réduit au seul « + » */
.skill-head .pm { padding: 0; width: 48px; height: 48px; justify-content: center; border-color: var(--line-strong); }
.skill-head .pm em { display: none !important; }
.skill-head .pm i { width: auto; height: auto; background: none; color: inherit; font-size: 1.25rem; }
.skill-head:hover .pm i { background: none; color: inherit; }
.skill.is-open .skill-head .pm { background: var(--fg); color: var(--bg); }
/* Survol Expertise : plus de fond arrondi, un trait qui se dessine sous la ligne */
.skill-head::before { display: none; }
.skill { position: relative; }
.skill::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); pointer-events: none; }
.skill:has(.skill-head:hover)::after { transform: scaleX(1); }
.skill-head:hover .n { color: var(--fg); }

/* Outils : même grille que les lignes d'expertise */
.tools { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 56px; gap: 20px; margin-top: 0; padding: clamp(32px, 4vw, 56px) 0 0; align-items: start; }
.tools .tools-title { grid-column: 2; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.5rem); letter-spacing: -0.045em; line-height: 1; }
.tools .tools-groups { grid-column: 3 / span 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tools h4 { font-family: var(--body); font-weight: 500; font-size: .875rem; color: var(--fg-3); margin-bottom: 12px; line-height: 1.4; }
.tools li { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.tools span { all: unset; }
@media (max-width: 900px) {
  .tools { grid-template-columns: 1fr; }
  .tools .tools-title, .tools .tools-groups { grid-column: 1; }
  .tools .tools-groups { grid-template-columns: 1fr 1fr; }
}

.tools .tools-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }

/* Outils : bloc distinct des expertises */
.tools { margin-top: clamp(96px, 11vw, 168px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line-strong); }
.tools .tools-intro { grid-column: 2; display: flex; flex-direction: column; gap: 24px; }
.tools .tools-intro p { color: var(--fg-2); font-size: var(--fs-m); max-width: 34ch; line-height: 1.55; }
.tools .tools-groups { row-gap: clamp(40px, 4vw, 56px); column-gap: 32px; }
.tools .tg h4 { margin-bottom: 6px; color: var(--fg); font-size: 1rem; }
.tools .tg > p { color: var(--fg-3); font-size: .875rem; line-height: 1.5; margin-bottom: 14px; max-width: 36ch; }
.tools .tg li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; }
.tools .tg li b { font-weight: 500; color: var(--fg); }
.tools .tg li span { color: var(--fg-3); font-size: .875rem; text-align: right; }
.tools .tg li span { background: none; padding: 0; border-radius: 0; font-size: .875rem; }

/* Boîte à outils : panneau compact, distinct des lignes d'expertise */
.toolbox { margin-top: clamp(64px, 7vw, 104px); background: color-mix(in srgb, var(--fg) 5%, transparent); border-radius: 20px; padding: clamp(28px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: clamp(24px, 4vw, 64px); }
.toolbox-intro h3 { font-family: var(--body); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.toolbox-intro p { margin-top: 10px; color: var(--fg-2); font-size: .9375rem; line-height: 1.55; max-width: 30ch; }
.toolbox-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.toolbox h4 { font-family: var(--body); font-weight: 500; font-size: .8125rem; color: var(--fg-3); margin-bottom: 10px; line-height: 1.4; }
.toolbox li { font-size: .9375rem; color: var(--fg); padding: 3px 0; }
@media (max-width: 900px) { .toolbox { grid-template-columns: 1fr; } .toolbox-groups { grid-template-columns: 1fr 1fr; } }

/* Boîte à outils : panneau sombre, l'IA mise en avant */
.toolbox { background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(32px, 4vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.toolbox::before { content: ""; position: absolute; right: -15%; top: -40%; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(226,203,168,.16), transparent); z-index: -1; pointer-events: none; }
.toolbox-k { display: inline-flex; align-items: center; gap: 14px; color: var(--sand); font-size: 1rem; font-weight: 500; }
.toolbox-k::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.toolbox-intro h3 { font-family: var(--display); font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1; letter-spacing: -0.045em; margin: 20px 0; font-weight: 700; }
.toolbox-intro h3 .it { color: var(--sand); font-style: italic; font-weight: 400; }
.toolbox-intro p { color: rgba(241,237,229,.7); font-size: 1rem; max-width: 40ch; line-height: 1.6; margin-top: 0; }
.toolbox h4 { color: rgba(241,237,229,.55); font-size: .8125rem; margin-bottom: 14px; }
.toolbox-ai ul { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbox-ai li { font-family: var(--display); font-size: clamp(1.125rem, .9rem + .6vw, 1.5rem); letter-spacing: -0.03em; font-weight: 560; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(226,203,168,.45); color: var(--paper); background: rgba(226,203,168,.06); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s; }
.toolbox-ai li:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.toolbox-groups { margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid rgba(241,237,229,.12); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.toolbox-groups h4 { margin-bottom: 8px; }
.toolbox-groups p { color: var(--paper); font-size: .9375rem; line-height: 1.6; }
@media (max-width: 900px) { .toolbox { grid-template-columns: 1fr; } .toolbox-groups { grid-template-columns: 1fr; } }

/* Méthode : l'IA à chaque étape */
.step .ai { margin-top: 18px; padding: 12px 0 12px 16px; border-left: 2px solid var(--sand); color: var(--paper-2); font-size: .9375rem; line-height: 1.55; }
.step .ai b { display: block; color: var(--sand); font-weight: 500; font-size: .875rem; margin-bottom: 4px; }


/* Méthode : cartes entièrement visibles pendant le défilement horizontal */
@media (min-width: 901px) {
  .method-pin { padding-block: clamp(64px, 8vw, 112px); }
  .method-track .step { min-height: 0; max-height: calc(100svh - 96px); gap: 24px; }
  .step .num { font-size: clamp(3.5rem, 2.5rem + 3vw, 6rem); }
}

.step li.ai-tag { color: var(--sand); border-color: color-mix(in srgb, var(--sand) 50%, transparent); background: color-mix(in srgb, var(--sand) 10%, transparent); }
.method-track .step { justify-content: flex-start; }
.method-track .step > div { flex: 1; display: flex; flex-direction: column; }
.method-track .step > div > ul { margin-top: auto; padding-top: 20px; }
.method-track .step ul { gap: 6px; } .method-track .step li { padding: 6px 11px; }
@media (min-width: 901px) { .method-track .step { flex-basis: clamp(330px, 37vw, 500px); } }

/* Formation : même grille que les postes, en plus léger */
.edu { display: block; margin-top: clamp(56px, 7vw, 96px); }
.edu-title { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); letter-spacing: -0.04em; margin-bottom: 8px; padding-left: clamp(28px, 4vw, 64px); }
.edu ul { border-top: 1px solid var(--line); }
.edu li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: 24px; align-items: baseline; padding: 22px 0 22px clamp(28px, 4vw, 64px); border-bottom: 1px solid var(--line); }
.edu li .when { font-size: .8125rem; color: var(--paper-3); font-variant-numeric: tabular-nums; }
.edu li b { font-family: var(--display); font-weight: 560; font-size: clamp(1.25rem, 1rem + .6vw, 1.625rem); letter-spacing: -0.03em; }
.edu li > span:last-child { color: var(--paper-2); font-size: .9375rem; }
.edu div { all: unset; }
@media (max-width: 900px) { .edu li { grid-template-columns: 1fr; gap: 6px; } }
.edu li b { line-height: 1.2; padding-top: 2px; overflow: visible; }

/* Formation intégrée à la frise, en plus discret */
.job--edu { padding-block: clamp(22px, 2.6vw, 32px); }
.job--edu h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); line-height: 1.15; }
.job--edu .org { margin-top: 6px; font-size: .875rem; color: var(--paper-3); }
.job--edu::before { width: 9px; height: 9px; left: -4px; background: var(--ink); border-color: var(--paper-3); top: clamp(30px, 3vw, 40px); }
.job--edu .edu-d { color: var(--paper-2); }

/* Formation : bloc séparé, même langage que les chiffres clés */
.edu-block { margin-top: clamp(80px, 10vw, 144px); }
.edu-block .eyebrow { margin-bottom: clamp(20px, 2.4vw, 32px); }
.edu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.edu-item { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.edu-item .when { font-size: .8125rem; color: var(--paper-3); font-variant-numeric: tabular-nums; }
.edu-item b { font-family: var(--display); font-weight: 560; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); letter-spacing: -0.035em; line-height: 1.1; }
.edu-item .d { color: var(--paper-2); font-size: .9375rem; line-height: 1.5; max-width: 34ch; }
@media (max-width: 800px) { .edu-grid { grid-template-columns: 1fr; gap: 24px; } }

.edu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.edu-tags li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: .8125rem; color: var(--paper-2); }
.edu-item .d { color: var(--paper); font-weight: 500; }
.edu-item .sk { color: var(--paper-3); font-size: .875rem; line-height: 1.55; max-width: 36ch; }
.edu-item .sk strong { color: var(--sand); font-weight: 500; }
.about-photo img { position: absolute; left: 0; top: -8%; height: 116%; }

/* Frise : le point se remplit quand le trait l'atteint */
.timeline .job::before { transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.timeline .job.is-on::before { background: var(--sand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sand) 18%, transparent); transform: scale(1.1); }
.contact h2 { font-size: clamp(2.75rem, 1rem + 5.4vw, 7rem); max-width: 16ch; line-height: .95; }
.contact h2 { max-width: none; }
.contact h2 { font-size: clamp(3.25rem, 1rem + 8vw, 10rem); line-height: .92; }
.contact h2 { font-size: clamp(2.75rem, 1rem + 5.4vw, 7rem); line-height: .95; }

/* Chiffres des études de cas répartis sur toute la largeur de la grille */
@media (min-width: 801px) {
  .kpis { display: flex; justify-content: space-between; gap: 32px; }
  .kpi { flex: 0 1 auto; padding-right: 0; }
  .kpi b { margin-left: -0.035em; }
}

/* Études de cas : le mot en italique prend la couleur du projet */
body[class^="p-"] .it { color: var(--p); }

/* Onglets : la pastille glisse d'un onglet à l'autre */
.tabs.has-ind { position: relative; }
.tabs.has-ind .tab-ind { position: absolute; z-index: 0; border-radius: 999px; background: var(--paper); pointer-events: none; transition: left .55s var(--ease), width .55s var(--ease), top .55s var(--ease); }
.tabs.has-ind button { z-index: 1; transition: color .45s var(--ease); }
.tabs.has-ind button[aria-selected="true"] { background: transparent; }
@media (prefers-reduced-motion: reduce) { .tabs.has-ind .tab-ind { transition: none; } }

/* Vidéo de démonstration dans les études de cas */
.shot-video { aspect-ratio: 16 / 9; background: #E9EBEF; }
.shot-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Indicateurs à suivre : légende au-dessus, colonnes réparties sur toute la grille */
.watch-intro { padding-top: 24px; border-top: 1px solid var(--line); margin-bottom: 20px; color: var(--paper-3); font-size: .9375rem; }
.watch-block .watch { border-top: 0; padding-top: 0; }
@media (min-width: 801px) { .watch-block .watch { display: flex; justify-content: space-between; gap: 32px; } .watch-block .watch div { flex: 0 1 auto; } }

/* Lecteur de la vidéo de démonstration */
.shot-video { cursor: pointer; }
.vid-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(12,12,11,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--paper); opacity: .92; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.vid-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); flex: none; transition: transform .3s var(--ease); }
.vid-btn:hover { transform: scale(1.06); }
.vid-btn .i-play, .shot-video.is-paused .vid-btn .i-pause { display: none; }
.shot-video.is-paused .vid-btn .i-play { display: block; }
.vid-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; }
.vid-track i { display: block; height: 100%; width: 100%; background: var(--p, var(--sand)); transform-origin: left; transform: scaleX(0); }
.vid-time { font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--paper-2); min-width: 72px; text-align: right; }
.vid-big { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); opacity: 0; transform: scale(.85); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.vid-big svg { margin-left: 4px; }
.shot-video.is-paused .vid-big { opacity: 1; transform: scale(1); }
.shot-video:not(.is-paused):not(:hover) .vid-bar { opacity: .55; }
/* barre compacte, en bas à gauche, pour ne pas masquer l'écran */
.vid-bar { right: auto; padding-right: 18px; }
.vid-track { flex: none; width: clamp(80px, 12vw, 160px); }
.vid-time { min-width: 0; }

/* Indicateurs à mesurer après le lancement */
.metrics-block { padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.metrics-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.metrics-head h3 { font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.15; }
.metrics-head p { color: var(--paper-3); font-size: .9375rem; max-width: 52ch; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { padding: clamp(20px, 2vw, 26px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.metric-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.metric-n { font-size: .8125rem; color: var(--paper-3); font-variant-numeric: tabular-nums; }
.metric-goal { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; color: var(--p, var(--sand)); border: 1px solid color-mix(in srgb, var(--p, var(--sand)) 40%, transparent); background: color-mix(in srgb, var(--p, var(--sand)) 10%, transparent); border-radius: 999px; padding: 5px 10px; }
.metric h3 { font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.2; }
.metric p { color: var(--paper-2); font-size: .875rem; line-height: 1.5; }
@media (max-width: 1000px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .metrics { grid-template-columns: 1fr; } }

/* Décisions : un intertitre qui annonce le tableau, et un libellé sur chaque colonne */
.decisions-block { margin-top: clamp(48px, 5vw, 80px); display: flex; flex-direction: column; gap: 22px; }
.chapter > .decisions-block:first-child, .chapter-body > .decisions-block:first-child { margin-top: 0; }
.decisions-head { padding-top: 0; }
.decision::before { padding-top: 2px; }
.decision h3 { color: var(--paper); }

/* Osim : verbatims, constats, prompt, avant / après */
.voices { display: flex; flex-direction: column; gap: 14px; }
.voices > .label { color: var(--paper-3); }
.voice { margin: 0; padding: clamp(22px, 2.2vw, 30px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.voice blockquote { font-size: 1.0625rem; line-height: 1.5; color: var(--paper); }
.voice figcaption { font-size: .875rem; color: var(--p, var(--sand)); }
.prompt .tile .label { color: var(--p, var(--sand)); }
.ba { border-top: 1px solid var(--line-strong); }
.ba-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ba-row b { font-weight: 500; color: var(--paper); }
.ba-row span { color: var(--paper-3); }
.ba-row span:last-child { color: var(--p, var(--sand)); font-weight: 500; }
.ba-h span { font-size: .8125rem; color: var(--paper-3) !important; font-weight: 400 !important; }
@media (max-width: 800px) { .ba-row { grid-template-columns: 1fr 1fr; } .ba-row b { grid-column: 1 / -1; } .ba-h span:first-child { display: none; } }

/* Arrivée par transition : le rideau couvre la page dès le premier affichage */
.pt-in .curtain { transform: none; }
.pt-in .curtain span { opacity: 1; }

/* Osim : les trois états, fidèles à l'application */
.osim-mock { max-width: none; width: 100%; padding: clamp(20px, 2.4vw, 32px); background: #F7F7FD; color: #22225E; gap: 20px; font-family: "IBM Plex Sans", var(--body); }
.osim-msg { display: flex; gap: 14px; align-items: flex-start; }
.osim-av { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #FDC301; color: #22225E; display: grid; place-items: center; font-weight: 700; font-size: .9375rem; }
.osim-msg p { font-size: 1rem; line-height: 1.6; color: #22225E; max-width: 72ch; }
.osim-acts { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-left: 50px; }
.osim-acts span { padding: 11px 18px; border-radius: 10px; font-size: .9375rem; font-weight: 600; }
.osim-acts .ghost { color: #22225E; border: 1px solid #D6D6F0; background: #fff; }
.osim-acts .prim { background: #22225E; color: #fff; }
.ob { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 28px; border-radius: 16px; border: 1.5px solid; }
.ob i { font-style: normal; display: grid; align-self: start; }
.ob b { display: block; font-weight: 700; font-size: 1.0625rem; margin-bottom: 6px; color: #22225E; }
.ob p { font-size: .9375rem; line-height: 1.6; color: #22225E; }
.ob-btn { align-self: end; padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; color: #fff; white-space: nowrap; }
.ob-x { position: absolute; right: 18px; top: 12px; font-size: 1.5rem; line-height: 1; }
.ob--warn { background: #FFF9EA; border-color: #F4C542; } .ob--warn i, .ob--warn .ob-x { color: #F0B92E; } .ob--warn .ob-btn { background: #F4C542; }
.ob--err { background: #FDEDEA; border-color: #D9372B; } .ob--err i, .ob--err .ob-x { color: #D9372B; } .ob--err .ob-btn { background: #D9372B; }
@media (max-width: 700px) { .ob { grid-template-columns: auto 1fr; } .ob-btn { grid-column: 1 / -1; justify-self: start; } .osim-acts { padding-left: 0; } }

/* Osim, Concevoir pour l'IA : trois temps numérotés */
.ia-part { display: flex; flex-direction: column; gap: 22px; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.ia-h { display: flex; gap: 20px; align-items: baseline; }
.ia-n { font-size: .875rem; color: var(--p, var(--sand)); font-variant-numeric: tabular-nums; min-width: 28px; }
.ia-h h3 { font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.15; }
.ia-h p { color: var(--paper-3); font-size: .9375rem; margin-top: 4px; }
.prompt-list { margin: 0; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); padding: 4px clamp(20px, 2vw, 28px); }
.prompt-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prompt-list > div:last-child { border-bottom: 0; }
.prompt-list dt { color: var(--p, var(--sand)); font-size: .9375rem; }
.prompt-list dd { margin: 0; color: var(--paper-2); font-size: .9375rem; line-height: 1.55; }
.ia-princ { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ia-princ > div { padding: clamp(20px, 2vw, 26px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.ia-princ b { display: block; font-weight: 500; font-size: 1.0625rem; color: var(--paper); margin-bottom: 8px; }
.ia-princ p { color: var(--paper-2); font-size: .9375rem; line-height: 1.5; }
.ia-part .demo { margin: 0; }
@media (max-width: 800px) { .ia-princ { grid-template-columns: 1fr; } .prompt-list > div { grid-template-columns: 1fr; gap: 4px; } .ia-h { flex-direction: column; gap: 6px; } }

/* Osim, état normal : barre d'actions fidèle à l'outil */
.osim-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid #DCDCEB; }
.osim-bar span { display: flex; align-items: center; gap: 14px; color: #22225E; font-size: .9375rem; }
.osim-bar .ob-r { font-weight: 600; }
.osim-bar .sq { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid #E2E2F3; color: #22225E; font-style: normal; flex: none; }
.osim-bar .sq.dk { background: #22225E; border-color: #22225E; color: #fff; }
@media (max-width: 600px) { .osim-bar .ob-r { font-size: .875rem; } }
/* Carbone : profils, onglets verticaux + écran */
.roles-wrap{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:16px;align-items:start}
.roles{display:flex;flex-direction:column;gap:8px;grid-column:1;grid-row:1}
.roles button{text-align:left;padding:16px 18px;border-radius:16px;border:1px solid var(--line);background:var(--ink-2);display:flex;flex-direction:column;gap:6px;transition:background .5s var(--ease),color .4s,border-color .4s}
.roles button b{font-weight:500;font-size:1rem}
.roles button span{font-size:.875rem;line-height:1.4;color:var(--paper-3)}
.roles button:hover{border-color:var(--line-strong)}
.roles button[aria-selected="true"]{background:var(--p);color:var(--ink);border-color:var(--p)}
.roles button[aria-selected="true"] span{color:rgba(12,12,11,.7)}
.roles-wrap>.tab-panel{grid-column:2;grid-row:1;min-width:0}
.role-cap{margin-top:12px;color:var(--fg-3);font-size:.9375rem;line-height:1.5}
.role-cap b{color:var(--fg);font-weight:500}
@media (max-width:860px){.roles-wrap{grid-template-columns:1fr}.roles{display:grid;grid-template-columns:1fr 1fr}.roles-wrap>.tab-panel{grid-column:1;grid-row:2}}
/* Carbone : synthèses, lecture guidée + écran */
.syn-split{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:16px;align-items:start}
.syn-notes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.syn-notes li{display:flex;gap:14px;padding:18px;border-radius:16px;border:1px solid var(--line);background:var(--ink-2)}
.syn-notes li>span{font-family:var(--mono);font-size:.75rem;color:var(--p);padding-top:3px}
.syn-notes b{display:block;font-weight:500;margin-bottom:6px}
.syn-notes p{margin:0;font-size:.875rem;line-height:1.5;color:var(--paper-3)}
@media (max-width:860px){.syn-split{grid-template-columns:1fr}.syn-split .shot-media{grid-row:1}}
/* Bouton haut de page */
.to-top{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:60;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:rgba(21,21,19,.82);color:var(--paper);border:1px solid var(--line-strong);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transform:translateY(16px) scale(.9);pointer-events:none;transition:opacity .4s var(--ease),transform .5s var(--ease),background .3s,color .3s,border-color .3s;cursor:pointer}
.to-top.on{opacity:1;transform:none;pointer-events:auto}
.to-top:hover{background:var(--paper);color:#0C0C0B;border-color:var(--paper)}
.to-top:hover svg{transform:translateY(-2px)}
.to-top svg{transition:transform .3s var(--ease)}
.to-top:focus-visible{outline:2px solid var(--p,var(--paper));outline-offset:3px}
@media (max-width:760px){.to-top{width:46px;height:46px;right:16px;bottom:16px}}
@media (prefers-reduced-motion:reduce){.to-top{transition:opacity .2s}}
/* ---------------- CARTES PROJETS : texte + image, enrichies ---------------- */
.cp3 .idx-n { font-size: 1.0625rem; color: var(--c, var(--p)); }
.p-carbone .cp3 .idx-n, .p-carbone .cp3 .pk b { color: var(--p); }
.cp3 h3 { margin-top: 26px; }
.cp3 .pitch { max-width: 36ch; }
.cp3 .proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(18px, 2vw, 28px); align-items: center; margin-top: clamp(22px, 2.4vw, 32px); padding-top: clamp(18px, 2vw, 24px); border-top: 1px solid var(--line); }
.cp3 .pk b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 1.6rem + 2vw, 3.75rem); line-height: .9; letter-spacing: -0.05em; color: var(--c, var(--p)); white-space: nowrap; }
.cp3 .pk small { display: block; margin-top: 8px; font-size: .8125rem; line-height: 1.35; color: var(--paper-2); max-width: 18ch; }
.cp3 .proof dl { display: grid; gap: 12px; margin: 0; padding-left: clamp(16px, 1.8vw, 24px); border-left: 1px solid var(--line); }
.cp3 .proof dt { font-size: .78rem; color: var(--paper-3); }
.cp3 .proof dd { margin: 2px 0 0; font-size: .96875rem; }
.cp3 .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cp3 .go { white-space: nowrap; }
.cp3 .go i { border: 0; background: var(--c, var(--p)); color: var(--c-ink, var(--ink)); width: 48px; height: 48px; }
.cp3:hover .go i { background: var(--paper); color: var(--ink); }
.cp3 .media .pz { position: absolute; inset: -5% 0; }
.cp3 .m-chips { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.cp3 .m-chips span { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; padding: 7px 12px; border-radius: 999px; background: rgba(12,12,11,.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--paper); }
.cp3 .m-chips .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: live 2.2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@media (prefers-reduced-motion: reduce) { .cp3 .m-chips .live::before { animation: none; } }
@media (max-width: 900px) { .cp3 .m-chips span:nth-child(n+2) { display: none; } }
/* Cartes projets : une seule couleur d'accent par carte (numéro, client, chiffre, bouton) */
.cp3 { --k: var(--c, var(--p)); }
.p-carbone .cp3 { --k: var(--p); }
.cp3 .idx-n, .cp3 .pk b { color: var(--k); }
.cp3 .idx-c { color: var(--k); border-color: color-mix(in srgb, var(--k) 55%, transparent); background: color-mix(in srgb, var(--k) 12%, transparent); }
.cp3 .idx-c::before { background: var(--k); }
.cp3 .go i { background: var(--k); }
.p-carbone .cp3 .go i { color: var(--ink); }
.cp3 .accent { background: var(--k); }
/* Tag client simplifié : point de couleur + nom, sans pastille */
.cp3 .idx-c { padding: 0; border: 0; background: none; color: var(--paper-2); font-size: .9375rem; gap: 9px; }
/* Chiffre clé des cartes : la largeur finale est réservée, le compteur n'entraîne plus de décalage */
.cp3 .pk b { display: inline-grid; justify-items: start; }
.cp3 .pk b > span { grid-area: 1 / 1; }
.cp3 .pk-ghost { visibility: hidden; }
/* ---------------- Écran de chargement ---------------- */
.loader { display: none; }
html.is-loading .loader { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 4vw, 56px) var(--gutter, clamp(20px, 4vw, 48px)); background: var(--ink); color: var(--paper); will-change: transform; }
html.is-loading, html.is-loading body { overflow: hidden; }
.loader .ld-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; overflow: hidden; }
.loader .ld-row > * { display: block; }
.ld-brand { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.04em; }
.ld-role, .ld-label { font-size: .9375rem; color: var(--paper-3); }
.ld-label { padding-bottom: .9em; }
.ld-num { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 2rem + 14vw, 15rem); line-height: .82; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.ld-num::after { content: "%"; font-size: .32em; letter-spacing: 0; margin-left: .08em; color: var(--paper-3); vertical-align: top; }
.ld-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(241, 237, 229, .08); }
.ld-bar i { display: block; height: 100%; background: var(--sand, #C9A36B); transform: scaleX(0); transform-origin: left; }
@media (prefers-reduced-motion: reduce) { html.is-loading .loader { display: none; } }

/* ---------------- Sélecteur de langue ---------------- */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; font-weight: 500; letter-spacing: .04em; }
.lang > * { display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; line-height: 1; }
.lang .lang-cur { background: var(--paper); color: var(--ink); }
.lang .lang-alt { color: var(--paper-2); transition: color .3s, background .3s; }
.lang .lang-alt:hover, .lang .lang-alt:focus-visible { color: var(--paper); background: rgba(241, 237, 229, .1); }
.nav-links .lang { margin-right: 4px; }
.menu-foot .lang { align-self: flex-start; }
.menu-foot .lang > * { min-width: 44px; height: 36px; font-size: .9375rem; }
@media (max-width: 900px) { .nav-links > .lang { display: none; } }
/* Compteur du chargement : marge haute pour ne pas rogner les chiffres */
.ld-num { line-height: 1; padding-top: .14em; margin-bottom: -.1em; }
/* Écran de chargement, version minimale : logotype + trait qui se remplit */
html.is-loading .loader { justify-content: center; align-items: center; }
.loader .ld-mark { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 2.4vw, 30px); }
.loader .ld-row { justify-content: center; padding: .12em .1em .08em; }
.loader .ld-brand { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -0.045em; }
.loader .ld-brand .brand-dot { animation: ld-dot 1.1s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes ld-dot { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-.32em); } }
.loader .ld-line { position: relative; width: clamp(140px, 16vw, 220px); height: 2px; background: rgba(241, 237, 229, .12); overflow: hidden; }
.loader .ld-line i { position: absolute; inset: 0; background: var(--sand, #E2CBA8); transform: scaleX(0); transform-origin: left; }
/* Chargement : le point final s'allume seulement à 100 % */
.loader .ld-brand .brand-dot { animation: none; opacity: .18; color: var(--paper); transform: scale(.55); transform-origin: 50% 80%; }
/* Chargement : sortie par le même rideau sable que les transitions de page */
.loader .ld-sweep { position: absolute; inset: 0; background: var(--sand); transform: translateY(100%); }
/* Le rideau sable suit le fond noir dans un seul mouvement continu */
.loader .ld-sweep { top: 100%; bottom: auto; height: 60vh; transform: none; }
/* Calculette Carbone : le bleu Enedis des écrans */
.p-carbone { --p: #1523DC; --c: #1523DC; --c-ink: #fff; }
.p-carbone .cp3 .go i, .p-carbone .steps button[aria-selected="true"], .p-carbone .tabs .tab-ind, .p-carbone .roles button[aria-selected="true"] { color: #fff; }
.p-carbone .steps button[aria-selected="true"] span, .p-carbone .roles button[aria-selected="true"] span { color: rgba(255,255,255,.75); }
/* Calculette Carbone : bleu Enedis adapté au fond sombre (même teinte, moins saturé, plus clair)
   --p : textes et accents, lisible sur le noir ; --c : aplats avec texte blanc */
.p-carbone { --p: #7C86EC; --c: #4B57D2; --c-ink: #fff; }
.p-carbone .cp3 { --k: #7C86EC; }
.p-carbone .cp3 .go i, .p-carbone .cp3 .accent { background: #4B57D2; color: #fff; }
.p-carbone .steps button[aria-selected="true"], .p-carbone .roles button[aria-selected="true"] { background: #4B57D2; border-color: #4B57D2; color: #fff; }
.p-carbone .tabs .tab-ind { background: #4B57D2; }
.p-carbone .tabs button[aria-selected="true"] { color: #fff; }
/* Calculette Carbone : bleu plus saturé, toujours lisible (texte 4,5:1 sur le noir) */
.p-carbone { --p: #5C67FF; --c: #2F3CE6; }
.p-carbone .cp3 { --k: #5C67FF; }
.p-carbone .cp3 .go i, .p-carbone .cp3 .accent, .p-carbone .tabs .tab-ind { background: #2F3CE6; }
.p-carbone .steps button[aria-selected="true"], .p-carbone .roles button[aria-selected="true"] { background: #2F3CE6; border-color: #2F3CE6; }

/* Menu capsule (v3) */
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav-inner > .brand { justify-self: start; }
.nav-pill { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(22, 22, 20, .62); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(241, 237, 229, .12); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); }
.nav-pill a.link { padding: 9px 18px; border-radius: 999px; font-size: .9375rem; color: var(--paper-2); transition: color .3s, background .4s var(--ease); }
.nav-pill a.link::after { display: none; }
.nav-pill a.link:hover { color: var(--paper); background: rgba(241, 237, 229, .08); }
.nav-pill a.link.is-active { background: var(--paper); color: var(--ink); font-weight: 500; }
.nav-right { position: relative; justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav-right .status { margin: 0; padding: 0; }
.nav-sep { width: 1px; height: 16px; background: rgba(241, 237, 229, .16); }
.lang.lang--nav { border: 0; padding: 0; gap: 10px; margin: 0; font-size: .8125rem; }
.lang.lang--nav > * { min-width: 0; height: auto; padding: 4px 0; border-radius: 0; background: none; position: relative; }
.lang.lang--nav .lang-cur { color: var(--paper); background: none; }
.lang.lang--nav .lang-cur::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--sand); }
.lang.lang--nav .lang-alt { color: #7d786f; }
.lang.lang--nav .lang-alt:hover { color: var(--paper); background: none; }
.nav-arr { color: inherit; margin-left: 2px; font-size: .9em; }
@media (max-width: 1100px) { .nav-pill a.link { padding: 9px 13px; } .nav-right { gap: 12px; } }
@media (max-width: 900px) {
  .nav-inner { display: flex; }
  .nav-pill, .nav-right .status, .nav-sep, .nav-right > .lang { display: none; }
}
/* Fond du menu : inexistant tant qu'on n'a pas défilé (Safari rend le flou même à opacité 0) */
.nav-bg { visibility: hidden; -webkit-backdrop-filter: none; backdrop-filter: none; transition: opacity .4s, visibility 0s linear .4s; }
.nav.is-scrolled .nav-bg { visibility: visible; -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); transition: opacity .4s, visibility 0s; }
/* Menu : texte seul, sans capsule */
.nav-pill { padding: 0; gap: 4px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-pill a.link { padding: 10px 14px; border-radius: 0; background: none !important; }
.nav-pill a.link::after { display: block; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--sand); }
.nav-pill a.link.is-active { color: var(--paper); font-weight: 400; }
.nav-pill a.link.is-active::after { transform: scaleX(1); }
