/* ==========================================================================
   FwD — feuille de style
   Direction : épurée et confiante. Beaucoup de blanc, un bleu vif comme
   couleur principale, un bleu nuit pour les sections sombres, une touche de
   jaune doux. Titres en Bodoni Moda (dans l'esprit du monogramme), textes
   en Jost. Coins arrondis, ombres légères teintées de bleu.
   ========================================================================== */

/* ---------- Polices hébergées avec le site ---------- */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Jetons ---------- */
:root {
  --ink: #0f1222;        /* texte principal */
  --paper: #ffffff;      /* fond */
  --mist: #f4f6fb;       /* fond doux */
  --sky: #e9eeff;        /* bleu très clair */
  --blue: #3b5bff;       /* couleur principale */
  --blue-deep: #2a46e6;  /* bleu au survol */
  --night: #12173a;      /* sections sombres */
  --sun: #ffd75e;        /* touche chaude */

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Playfair Display", Georgia, serif;
  --sans: "Jost", Futura, "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 88rem;
  --section-y: clamp(5rem, 10vw, 9rem);
  --radius: clamp(1.1rem, 2vw, 1.6rem);
  --shadow: 0 1px 2px rgba(18, 23, 58, .06), 0 18px 40px -18px rgba(18, 23, 58, .22);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5a6075;
  --line: rgba(15, 18, 34, .12);
  --btn-bg: var(--blue);
  --btn-fg: #ffffff;
  --hover-bg: var(--night);
  --hover-fg: #ffffff;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 600;
  padding: .7rem 1.1rem;
  background: var(--blue); color: #ffffff;
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }
.noscript { padding: 1rem var(--gutter); background: #fff; color: var(--ink); }

/* ---------- Tons de section ---------- */
.tone-paper { --bg: #ffffff; --fg: var(--ink); --muted: #5a6075; --line: rgba(15,18,34,.12); }
.tone-mist  { --bg: var(--mist); --fg: var(--ink); --muted: #5a6075; --line: rgba(15,18,34,.12); }
.tone-blue  { --bg: var(--blue); --fg: #ffffff; --muted: rgba(255,255,255,.82); --line: rgba(255,255,255,.35); --btn-bg: #ffffff; --btn-fg: var(--blue); --hover-bg: var(--night); --hover-fg: #ffffff; color-scheme: dark; }
.tone-night { --bg: var(--night); --fg: #ffffff; --muted: #a9b0cf; --line: rgba(255,255,255,.14); --hover-bg: #ffffff; --hover-fg: var(--night); color-scheme: dark; }
.tone-paper, .tone-mist, .tone-blue, .tone-night { background: var(--bg); color: var(--fg); }

/* Couleurs nommées (cartes, projets, étapes) */
.c-bleu   { --bg: var(--blue);  --fg: #ffffff;     --muted: rgba(255,255,255,.84); --line: rgba(255,255,255,.35); --btn-bg: #ffffff; --btn-fg: var(--blue); --hover-bg: var(--night); --hover-fg: #ffffff; }
.c-clair  { --bg: var(--sky);   --fg: var(--ink);  --muted: #4b5272; --line: rgba(15,18,34,.14); }
.c-soleil { --bg: var(--sun);   --fg: var(--ink);  --muted: #4d4420; --line: rgba(15,18,34,.18); }
.c-nuit   { --bg: var(--night); --fg: #ffffff;     --muted: #a9b0cf; --line: rgba(255,255,255,.16); --hover-bg: #ffffff; --hover-fg: var(--night); }
.c-blanc  { --bg: #ffffff;      --fg: var(--ink);  --muted: #5a6075; --line: rgba(15,18,34,.12); }

.logo-mask {
  display: block;
  aspect-ratio: 1002 / 653;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

/* ---------- Typographie ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 8.5vw, 8.5rem);
  line-height: .95;
  letter-spacing: -.04em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
.display--md { font-size: clamp(2.4rem, 5.8vw, 5.8rem); line-height: 1; letter-spacing: -.035em; }

/* Apparition des titres */
.reg { transition: opacity .9s ease, transform 1.1s var(--ease); }
.js .reg:not(.in) { opacity: 0; transform: translateY(.3em); }

.section__intro, .about__text, .about__clients, .contact__lead { max-width: 38rem; color: var(--muted); text-wrap: pretty; }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 62em) { .section__head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.7rem;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .35s ease, border-color .35s ease, transform .5s var(--ease), box-shadow .35s ease;
}
.btn::before {
  content: "";
  position: absolute; inset: -2px; z-index: -1;
  border-radius: inherit;
  background: var(--hover-bg);
  transform: translateY(102%);
  transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--hover-fg); border-color: var(--hover-bg); }
.btn--fill { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); box-shadow: 0 10px 24px -12px rgba(59, 91, 255, .7); }
.btn--line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--sm { padding: .7rem 1.25rem; font-size: .9rem; }
.btn--lg { padding: 1.15rem 2.2rem; font-size: 1.02rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }

/* ---------- Intro ---------- */
.intro { display: none; }
.js:not(.no-intro) .intro {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; align-content: center; gap: 1.6rem;
  background: #ffffff;
  clip-path: inset(0 0 0 0);
  transition: clip-path .85s var(--ease-io);
  animation: intro-failsafe 0s 4s forwards;
  cursor: pointer;
}
.intro.is-done { clip-path: inset(0 0 100% 0); }
@keyframes intro-failsafe { to { visibility: hidden; } }
.intro__mark { width: min(44vw, 12rem); }
.intro__logo { width: 100%; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); }
.intro.is-run .intro__logo { clip-path: inset(0 0 0 0); }
.intro__line { width: min(44vw, 12rem); height: 3px; border-radius: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .25s; }
.intro.is-run .intro__line { transform: scaleX(1); }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* ---------- En-tête ---------- */
.header {
  --fg: var(--ink); --bg: #ffffff; --line: rgba(15,18,34,.12);
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1rem var(--gutter);
  color: var(--fg);
  transition: background-color .4s ease, color .4s ease, padding .4s ease, box-shadow .4s ease;
}
.header.is-dark { --fg: #ffffff; --bg: var(--night); --line: rgba(255,255,255,.2); --hover-bg: #ffffff; --hover-fg: var(--night); }
.header.is-solid {
  padding-block: .65rem;
  background-color: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-menu { --fg: #ffffff; --bg: var(--night); background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.brand { position: relative; display: block; width: 3.5rem; flex: none; }
.brand__img { width: 100%; transition: opacity .35s ease; }
.brand__img--white { position: absolute; inset: 0; opacity: 0; }
.header.is-dark .brand__img--white, .header.is-menu .brand__img--white { opacity: 1; }
.header.is-dark .brand__img--black, .header.is-menu .brand__img--black { opacity: 0; }

.nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.4rem); }
.nav__link { position: relative; padding-block: .3rem; font-size: .98rem; text-decoration: none; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.header.is-dark .nav__link::after { background: #ffffff; }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }

.burger { display: none; width: 2.75rem; height: 2.75rem; position: relative; margin-right: -.5rem; }
.burger__bars, .burger__bars::before { position: absolute; left: 50%; width: 1.5rem; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger__bars { top: calc(50% - 4px); transform: translateX(-50%); }
.burger__bars::before { content: ""; left: 0; top: 8px; width: 100%; }
.burger[aria-expanded="true"] .burger__bars { transform: translateX(-50%) translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(-8px) rotate(-90deg); }
@media (max-width: 52em) { .nav { display: none; } .burger { display: block; } }

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6.5rem var(--gutter) 2rem;
  background: var(--night); color: #ffffff;
  clip-path: circle(0% at calc(100% - 2.4rem) 2.4rem);
  transition: clip-path .8s var(--ease-io);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 2.4rem) 2.4rem); }
.menu__list { display: grid; gap: .3rem; }
.menu__list a {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 12vw, 5rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-decoration: none;
  transition: color .3s ease, transform .5s var(--ease);
}
.menu__list a:hover { color: #9fb0ff; transform: translateX(.6rem); font-style: italic; }
.menu.is-open .menu__list li { animation: menu-in .8s var(--ease) both; animation-delay: calc(.18s + var(--k) * 60ms); }
@keyframes menu-in { from { opacity: 0; transform: translateY(40%); } }
.menu__foot p { color: #a9b0cf; font-weight: 300; letter-spacing: .2em; }

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 58rem);
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: #ffffff;
  color: var(--ink);
}
.hero__glow {
  position: absolute;
  right: -18vw; top: -22vw;
  width: 70vw; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 91, 255, .16), rgba(59, 91, 255, .05) 45%, transparent 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 62em) { .hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

.hero__copy { display: grid; justify-items: start; }
.hero__pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem .45rem .8rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue-deep);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.hero__pill-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(59, 91, 255, .18); }
.hero__title {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 7.6vw, 7.8rem);
  line-height: .9;
  letter-spacing: -.045em;
  font-optical-sizing: auto;
}
.hero__line { display: block; overflow: hidden; padding: .04em .1em .14em 0; margin-bottom: -.1em; }
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
.js:not(.is-ready) .hero .ch { transform: translateY(115%); }
.js.is-ready .hero .ch { transition: transform 1.1s var(--ease) calc(var(--i) * 26ms); }
.hero__lead { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.hero__text { margin-top: 1rem; max-width: 34rem; color: var(--muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__trust { margin-top: clamp(2rem, 4vw, 2.75rem); padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; width: 100%; max-width: 34rem; }
.hero__trust-label { color: var(--muted); font-size: .92rem; }
.hero__clients { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero__clients li { padding: .4rem .9rem; border-radius: 999px; background: var(--mist); font-size: .95rem; font-weight: 500; }

/* Vitrine de réalisations */
.hero__visual {
  --mx: 0; --my: 0;
  position: relative;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
  aspect-ratio: 1 / 1.02;
}
.hv {
  position: absolute;
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(18, 23, 58, .06), 0 30px 60px -24px rgba(18, 23, 58, .38);
  transform: translate(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px)) rotate(var(--r));
  transition: transform .25s linear;
}
.hv img { width: 100%; height: auto; }
.hv--a { left: 2%; top: 6%; width: 38%; z-index: 2; animation: float 7s ease-in-out infinite; }
.hv--b { right: 2%; top: 0; width: 44%; z-index: 1; animation: float 8s ease-in-out -2s infinite; }
.hv--c { left: 26%; bottom: 0; width: 46%; z-index: 3; animation: float 9s ease-in-out -4s infinite; }
.hv-stat {
  left: -2%; bottom: 10%; z-index: 4;
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.2rem .9rem .9rem;
  border-radius: 1.1rem;
  background: #ffffff;
  color: var(--ink);
  animation: float 6s ease-in-out -1s infinite;
}
.hv-stat__icon { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; background: var(--blue); display: grid; place-content: center; }
.hv-stat__icon::before { content: ""; border-left: 11px solid #ffffff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.hv-stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1; letter-spacing: -.03em; }
.hv-stat strong + span { display: block; margin-top: .2rem; color: var(--muted); font-size: .85rem; line-height: 1.2; }
@keyframes float { 50% { translate: 0 -10px; } }

.js:not(.is-ready) .hv { opacity: 0; scale: .92; }
.js.is-ready .hv { transition: transform .25s linear, opacity .9s ease, scale 1.1s var(--ease); }
.js.is-ready .hv--b { transition-delay: 0s, .35s, .35s; }
.js.is-ready .hv--a { transition-delay: 0s, .5s, .5s; }
.js.is-ready .hv--c { transition-delay: 0s, .65s, .65s; }
.js.is-ready .hv-stat { transition-delay: 0s, .9s, .9s; }

.js:not(.is-ready) .hero__pill, .js:not(.is-ready) .hero__lead, .js:not(.is-ready) .hero__text, .js:not(.is-ready) .hero__actions, .js:not(.is-ready) .hero__trust { opacity: 0; transform: translateY(1rem); }
.js.is-ready .hero__pill, .js.is-ready .hero__lead, .js.is-ready .hero__text, .js.is-ready .hero__actions, .js.is-ready .hero__trust { transition: opacity 1s ease, transform 1.1s var(--ease); }
.js.is-ready .hero__lead { transition-delay: .45s; }
.js.is-ready .hero__text { transition-delay: .55s; }
.js.is-ready .hero__actions { transition-delay: .65s; }
.js.is-ready .hero__trust { transition-delay: .8s; }

@media (max-width: 61.99em) {
  .hero { min-height: 0; }
  .hero__visual { max-width: 26rem; }
}

/* ---------- Bandeau ---------- */
.bands { padding-block: clamp(1.4rem, 3vw, 2.2rem); overflow: hidden; background: #ffffff; border-block: 1px solid var(--line); }
.band {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--ink);
}
.band__track { display: flex; width: max-content; will-change: transform; }
.band__item { display: inline-flex; align-items: center; gap: .6em; padding-right: .6em; }
.band__item:nth-child(even) { font-style: italic; color: var(--blue); }
.band__mark { width: .32em; height: .32em; flex: none; border-radius: 50%; background: var(--blue); }

/* ---------- Expertises : cartes empilées ---------- */
.stack { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.xcard {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  transform-origin: 50% 0;
  box-shadow: var(--shadow);
}
.xcard.c-blanc { box-shadow: var(--shadow), inset 0 0 0 1px rgba(15,18,34,.08); }
.xcard::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: var(--dim, 0); pointer-events: none; }
.xcard__inner {
  position: relative; z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 3.25rem);
  min-height: inherit;
  align-content: space-between;
}
.xcard__top { display: grid; gap: 1.1rem; }
@media (min-width: 62em) { .xcard__top { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }
.xcard__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 6rem); line-height: .94; letter-spacing: -.04em; text-wrap: balance; }
.xcard__sum { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.4; max-width: 26rem; color: var(--muted); }
.xcard__foot { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 62em) { .xcard__foot { grid-template-columns: minmax(0, 1fr) auto; } }
.xcard__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.xcard__list li { padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.xcard__list li:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.xcard .btn { justify-self: start; }

@media (min-width: 62em) and (min-height: 44em) {
  .stack.is-stacking { gap: 14vh; padding-bottom: 6vh; }
  .stack.is-stacking .xcard { position: sticky; top: calc(6rem + var(--i) * 1.1rem); min-height: min(32rem, calc(100vh - 10rem)); }
}

/* ---------- Réalisations ---------- */
.filters { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; }
.filters__ink {
  position: absolute; left: 0; top: 0; z-index: 0;
  width: 0; height: 0;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 10px 22px -12px rgba(59, 91, 255, .8);
  transition: transform .6s var(--ease), width .6s var(--ease), height .6s var(--ease);
  pointer-events: none;
}
.chip {
  position: relative; z-index: 1;
  padding: .7rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .95rem;
  transition: color .35s ease, border-color .35s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { border-color: transparent; color: #ffffff; }
.filters__count { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }

.grid { margin-top: clamp(1.8rem, 4vw, 3rem); column-count: 1; column-gap: clamp(1rem, 2.4vw, 2rem); }
@media (min-width: 40em) { .grid { column-count: 2; } }
@media (min-width: 70em) { .grid { column-count: 3; } }

.card { break-inside: avoid; margin-bottom: clamp(1.8rem, 3.5vw, 2.75rem); }
.card.is-hidden { display: none; }
.card__link { display: block; width: 100%; text-align: left; text-decoration: none; color: inherit; }
button.card__link { cursor: zoom-in; }
.card__media {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(18,23,58,.05), 0 12px 30px -20px rgba(18,23,58,.35);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card.is-tilting .card__media { transition: transform .1s linear, box-shadow .6s var(--ease); }
.card__link:hover .card__media { box-shadow: 0 2px 4px rgba(18,23,58,.06), 0 30px 60px -28px rgba(18,23,58,.5); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.4), transparent 50%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.card.is-tilting .card__media::after { opacity: 1; }
.card__media img.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__media--natural { min-height: 8rem; }
.card__media--natural img.card__img { height: auto; }
.card__link:hover .card__img { transform: scale(1.04); }

.js .card.reveal .card__media { clip-path: inset(100% 0 0 0 round 1rem); transition: clip-path 1.2s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.js .card.reveal.in .card__media { clip-path: inset(0 0 0 0 round 1rem); }

.ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .9rem; padding: 1rem; text-align: center; }
.ph .logo-mask { position: relative; width: 4.8rem; }
.ph__label { position: relative; padding: .35rem .9rem; border: 1px dashed currentColor; border-radius: 999px; font-size: .9rem; }
.card__play, .ph__play {
  position: absolute; left: 50%; top: 50%;
  width: 4.2rem; height: 4.2rem;
  margin: -2.1rem 0 0 -2.1rem;
  border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: grid; place-content: center;
  transition: transform .5s var(--ease);
}
.card__play::before, .ph__play::before { content: ""; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.card__link:hover .card__play, .card__link:hover .ph__play, a.tile:hover .ph__play { transform: scale(1.1); }
.ph.ph--video { place-content: stretch; justify-items: start; align-content: space-between; text-align: left; padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.ph--video .ph__play { position: relative; left: auto; top: auto; margin: 0; }
.ph__stat { position: relative; display: grid; gap: .35rem; }
.ph__stat strong { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.ph__stat span { font-size: 1rem; line-height: 1.3; max-width: 14rem; color: var(--muted); }

.card__meta { padding-top: 1.1rem; display: grid; gap: .3rem; }
.card__type { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .95rem; }
.card__dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--blue); flex: none; }
.card__dot.c-blanc { box-shadow: inset 0 0 0 1px rgba(15,18,34,.3); }
.card__dot.c-clair { background: #a9b9ff; }
.card__dot.c-soleil { background: #f4c430; }
.card__dot.c-bleu { background: var(--blue); }
.card__dot.c-nuit { background: var(--night); }
.card__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.06; letter-spacing: -.03em; transition: color .3s ease; }
.card__link:hover .card__title { color: var(--blue); }
.card__format { color: var(--muted); font-size: .92rem; }
.card__desc { color: var(--muted); font-size: .98rem; max-width: 34rem; text-wrap: pretty; }
.card__more {
  justify-self: start;
  margin-top: .45rem;
  padding-bottom: .15rem;
  font-size: .95rem; font-weight: 500;
  color: var(--blue);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1.5px;
  transition: background-size .5s var(--ease);
}
.card__link:hover .card__more { background-size: 0 1.5px; background-position: 100% 100%; }
.card__soon { margin-top: .45rem; color: var(--muted); font-size: .95rem; font-style: italic; }
.grid__empty { margin-top: 2rem; color: var(--muted); }

/* ---------- Résultats ---------- */
.stats { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 3rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40em) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding-top: 1.3rem; border-top: 1.5px solid var(--line); display: grid; gap: .5rem; align-content: start; container-type: inline-size; }
.tone-blue .stat { border-top-color: rgba(255,255,255,.55); }
.stat__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 5.5vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
@supports (font-size: 1cqi) { .stat__num { font-size: clamp(2.4rem, 21cqi, 6rem); } }
.stat__prefix { margin-right: .05em; font-size: .7em; vertical-align: .18em; }
.stat__suffix { display: block; margin-top: .3em; font-size: .32em; line-height: 1.1; letter-spacing: -.01em; font-style: italic; white-space: normal; }
.stat__num--empty { opacity: .3; }
.stat__label { font-size: 1.1rem; font-weight: 500; }
.stat__scope { color: var(--muted); font-size: .95rem; }
.stat__todo { justify-self: start; margin-top: .4rem; padding: .3rem .8rem; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-size: .85rem; }
.stats__note { margin-top: clamp(2rem, 4vw, 3rem); max-width: 44rem; color: var(--muted); font-size: .95rem; }
.js .fade { opacity: 0; transform: translateY(1.5rem); transition: opacity .9s ease, transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .fade.in { opacity: 1; transform: none; }

/* ---------- À propos ---------- */
.about-sec { padding-top: var(--section-y); }
.about { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 62em) { .about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; } }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--fg); }
.portrait img.portrait__img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; }
.portrait__ph .logo-mask { position: relative; width: 6rem; color: var(--blue); }
.portrait__ph p { position: relative; padding: .35rem .9rem; border: 1px dashed currentColor; border-radius: 999px; font-size: .95rem; }
.about__main { display: grid; gap: clamp(1.5rem, 3vw, 2.2rem); }
.about__statement { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; max-width: 24em; }

/* Forward devient FwD */
.story { position: relative; height: 260vh; }
.story__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; place-content: center; justify-items: center;
  gap: clamp(1.5rem, 4vh, 3rem);
  padding-inline: var(--gutter);
  overflow: hidden;
}
.story__stage { display: grid; place-items: center; }
.story__word, .story__logo { grid-area: 1 / 1; }
.story__word { display: flex; align-items: baseline; font-family: var(--serif); font-weight: 500; font-size: clamp(3.6rem, 17vw, 15rem); line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.story__ch { display: inline-block; will-change: transform, opacity; }
.story__ch.is-key { color: var(--ink); }
.story__ch--c { color: var(--blue); }
.story__ch--m { color: #6f86ff; }
.story__ch--y { color: #a3b3ff; }
.story__ch--b { color: #cdd6ff; }
.story__logo { width: min(72vw, 30rem); opacity: 0; }
.story__caps { position: relative; display: grid; text-align: center; max-width: 32rem; }
.story__cap { grid-area: 1 / 1; font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.4; text-wrap: balance; }
.story__cap--2 { opacity: 0; }
.story.is-static { height: auto; }
.story.is-static .story__pin { position: static; height: auto; padding-block: var(--section-y); }
.story.is-static .story__caps { gap: .6rem; }
.story.is-static .story__cap { grid-area: auto; opacity: 1; }

.about__after { padding-bottom: var(--section-y); display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 40em) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.values li {
  display: grid; gap: .4rem; align-content: start;
  padding: 1.5rem 1.4rem 1.6rem;
  border-radius: 1.1rem;
  background: var(--mist);
  transition: background-color .4s ease, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.values li::before { content: ""; width: 2rem; height: 3px; border-radius: 3px; background: var(--blue); margin-bottom: .6rem; transition: width .5s var(--ease); }
.values li:hover { background: #ffffff; transform: translateY(-4px); box-shadow: var(--shadow); }
.values li:hover::before { width: 3.5rem; }
.values h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; }
.values p { color: var(--muted); font-size: 1rem; text-wrap: pretty; }

/* ---------- Méthode : défilement horizontal ---------- */
.method { position: relative; }
.method__pin { padding-block: var(--section-y); }
.method__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  padding-block: 1rem 2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.method__track::-webkit-scrollbar { display: none; }
.method__intro { flex: 0 0 min(84vw, 30rem); display: grid; align-content: end; gap: 1.5rem; scroll-snap-align: start; }
.method__steps { display: flex; gap: clamp(1rem, 2vw, 1.5rem); }
.mstep {
  flex: 0 0 min(80vw, 30rem);
  min-height: min(64vh, 30rem);
  display: grid; grid-template-rows: 1fr auto; gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  overflow: hidden;
}
.mstep__num { font-family: var(--serif); font-weight: 500; font-size: clamp(5.5rem, 12vw, 11rem); line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--fg); transition: color .5s ease; }
.mstep:hover .mstep__num { color: var(--fg); }
.mstep__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.03em; }
.mstep__text { margin-top: .7rem; color: var(--muted); max-width: 24rem; text-wrap: pretty; }
.method__progress { margin: clamp(1rem, 3vh, 2rem) var(--gutter) 0; height: 3px; background: rgba(15,18,34,.1); border-radius: 3px; overflow: hidden; }
.method__progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.method.is-pinned .method__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 0; overflow: hidden; }
.method.is-pinned .method__track { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; }
.method.is-pinned .method__intro { flex-basis: min(38vw, 34rem); }
.method.is-pinned .mstep { flex-basis: min(34vw, 30rem); }

/* ---------- Contact ---------- */
.contact-sec { position: relative; overflow: hidden; }
.contact-sec::before {
  content: "";
  position: absolute;
  right: -20vw; top: -25vw;
  width: 70vw; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 91, 255, .35), rgba(59, 91, 255, .08) 45%, transparent 68%);
  pointer-events: none;
}
.contact { position: relative; display: grid; gap: clamp(3rem, 7vw, 6rem); }
@media (min-width: 62em) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 7vw, 8rem); align-items: start; }
  .contact__intro { position: sticky; top: 7rem; }
}
.contact__intro { display: grid; gap: 1.6rem; align-content: start; }
.contact__lead { color: var(--fg); font-size: 1.15rem; }
.contact__zone { color: var(--muted); }
.contact__panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

.form { display: grid; gap: 1.8rem; }
.form__legend { color: var(--muted); font-size: .95rem; }
.field { position: relative; display: grid; gap: .5rem; }
.field label { font-size: .98rem; color: var(--muted); transition: color .3s ease; }
.field:focus-within label { color: #9fb0ff; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 0;
  font: inherit;
  font-size: 1.12rem;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
}
.field__bar { height: 2px; margin-top: calc(-.5rem - 2px); background: #6f86ff; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within .field__bar { transform: scaleX(1); }
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { color: var(--ink); background: #ffffff; }
.field [aria-invalid="true"] { border-color: #ff9db0; }
.field__err { color: #ffb3c1; font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { color: var(--muted); font-size: .95rem; max-width: 34rem; }
.form__privacy a { text-underline-offset: 3px; }
.form .btn { justify-self: start; }
.form__status:empty { display: none; }
.form__status.is-ok, .form__status.is-error { padding: 1.1rem 1.3rem; border-radius: .9rem; color: var(--ink); }
.form__status.is-ok { background: var(--sky); }
.form__status.is-error { background: var(--sun); }
.form__status strong { display: block; margin-bottom: .2rem; font-weight: 500; }

.direct { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.direct__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.direct__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.direct__mail { font-size: 1.2rem; overflow-wrap: anywhere; }
.todo-tag { display: inline-block; padding: .3rem .85rem; border: 1px dashed var(--line); border-radius: 999px; color: var(--muted); font-size: .9rem; }

/* ---------- Pied de page ---------- */
.footer { padding: 0 var(--gutter) 2rem; overflow: hidden; }
.footer__marquee {
  margin-inline: calc(var(--gutter) * -1);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.footer__track .band__item { padding-right: .35em; gap: .35em; }
.footer__track .band__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px #ffffff; font-style: italic; }
.footer__track .band__mark { width: .16em; height: .16em; background: var(--blue); }
.footer__inner { max-width: var(--max); margin: clamp(2.5rem, 5vw, 4rem) auto 0; display: grid; gap: 3rem; align-items: end; }
@media (min-width: 52em) { .footer__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.footer__logo { display: block; width: min(100%, 15rem); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 2rem 4rem; }
.footer__nav ul { display: grid; gap: .5rem; align-content: start; }
.footer__nav a { text-decoration: none; background: linear-gradient(#9fb0ff, #9fb0ff) no-repeat 0 100% / 0 1.5px; transition: background-size .45s var(--ease); }
.footer__nav a:hover { background-size: 100% 1.5px; }
.footer__legal { max-width: var(--max); margin: 3rem auto 0; color: var(--muted); font-size: .92rem; }

/* ---------- Pages (projets, mentions légales) ---------- */
.view {
  --bg: #ffffff; --fg: var(--ink); --muted: #5a6075; --line: rgba(15,18,34,.12);
  position: fixed; inset: 0; z-index: 100;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  color: var(--ink);
}
.view:focus { outline: none; }
.view__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter);
  background: color-mix(in srgb, #ffffff 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.view__bar .brand { width: 3rem; }
.view__back { display: inline-flex; align-items: center; gap: .7rem; font-size: .95rem; font-weight: 500; }
.view__back::before { content: ""; width: 1.8rem; height: 2px; border-radius: 2px; background: var(--blue); transition: width .5s var(--ease); }
.view__back:hover::before { width: 2.6rem; }

.pv__hero { position: relative; overflow: hidden; background: var(--bg); color: var(--fg); padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(3rem, 7vw, 5rem); }
.pv__hero-inner { position: relative; max-width: var(--max); margin-inline: auto; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pv__hero-text { display: grid; gap: 1.4rem; }
@media (min-width: 62em) { .pv__hero-inner.has-cover { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.pv__cover { justify-self: center; }
.pv__cover img { max-height: min(70vh, 40rem); width: auto; max-width: 100%; border-radius: 1rem; box-shadow: 0 2px 4px rgba(18,23,58,.08), 0 30px 60px -24px rgba(18,23,58,.45); transform: rotate(2deg); }
.pv__type { font-size: 1rem; color: var(--muted); }
.pv__title { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 9vw, 8.5rem); line-height: .92; letter-spacing: -.045em; text-wrap: balance; }
.pv__lead { max-width: 40rem; font-size: 1.2rem; color: var(--muted); text-wrap: pretty; }

.pv { padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.pv__meta { display: grid; gap: 1.4rem 2rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) { .pv__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pv__meta dt { color: var(--muted); font-size: .95rem; }
.pv__meta dd { font-size: 1.1rem; }
.pv__row { display: grid; gap: 1.2rem; padding-block: clamp(2.2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
@media (min-width: 62em) { .pv__row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; } }
.pv__row.pv__row--full { grid-template-columns: minmax(0, 1fr); }
.pv__row h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.03em; }
.pv__row p { max-width: 40rem; text-wrap: pretty; }
.pv__row .stats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.pv__count { display: inline-grid; place-content: center; min-width: 2.2rem; height: 2.2rem; margin-left: .4rem; padding-inline: .6rem; border-radius: 999px; background: var(--sky); color: var(--blue-deep); font-family: var(--sans); font-size: 1rem; letter-spacing: 0; vertical-align: middle; }
.todo-box { padding: 1.1rem 1.3rem; border: 1px dashed rgba(15,18,34,.3); border-radius: .9rem; color: var(--muted); max-width: 40rem; }

.pv__gallery { columns: 3 15rem; column-gap: clamp(.8rem, 2vw, 1.5rem); }
.tile-wrap { break-inside: avoid; margin: 0 0 clamp(1.2rem, 2.5vw, 2rem); }
.tile__cap { display: grid; gap: .1rem; margin-top: .6rem; font-size: .95rem; }
.tile__format { color: var(--muted); font-size: .88rem; }
.tile { position: relative; overflow: hidden; width: 100%; display: block; border-radius: .9rem; background: var(--mist); box-shadow: 0 1px 2px rgba(18,23,58,.05), 0 12px 30px -20px rgba(18,23,58,.35); }
.tile img.tile__img { width: 100%; height: auto; object-fit: contain; transition: transform .9s var(--ease); }
.tile[style] img.tile__img { height: 100%; }
.tile__zoom { cursor: zoom-in; }
.tile__zoom:hover img.tile__img { transform: scale(1.03); }
a.tile { text-decoration: none; background: var(--bg); color: var(--fg); }
.tile--ph { display: grid; place-content: center; text-align: center; padding: 1rem; background: var(--bg); color: var(--fg); }
.tile__play { position: absolute; inset: 0; display: grid; place-content: center; width: 100%; height: 100%; background: linear-gradient(rgba(15,18,34,.05), rgba(15,18,34,.4)); color: #ffffff; }
.tile__play span { width: 4.4rem; height: 4.4rem; display: grid; place-content: center; border-radius: 50%; background: var(--blue); color: #ffffff; transition: transform .5s var(--ease); }
.tile__play span::before { content: ""; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.tile__play:hover span { transform: scale(1.1); }
.tile video, .tile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.tile__note { margin-top: .5rem; color: var(--muted); font-size: .88rem; }
.pv__links { display: flex; flex-wrap: wrap; gap: .8rem; }

.pv__next { display: block; padding: clamp(3rem, 7vw, 6rem) var(--gutter); margin-top: clamp(3rem, 7vw, 6rem); background: var(--bg); color: var(--fg); text-decoration: none; }
.pv__next-inner { max-width: var(--max); margin-inline: auto; display: grid; gap: .6rem; }
.pv__next-label { color: var(--muted); }
.pv__next-title { font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 7rem); line-height: .95; letter-spacing: -.04em; transition: transform .6s var(--ease); }
.pv__next:hover .pv__next-title { font-style: italic; transform: translateX(1rem); }

.legal { padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(4rem, 9vw, 8rem); max-width: 56rem; margin-inline: auto; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.04em; text-wrap: balance; margin-bottom: 1.2rem; }
.legal__date { color: var(--muted); margin-bottom: 3rem; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.02em; margin: 3rem 0 .9rem; }
.legal p, .legal li { text-wrap: pretty; }
.legal p + p { margin-top: .8rem; }
.legal ul { display: grid; gap: .4rem; margin-top: .8rem; padding-left: 1.2rem; list-style: disc; }
.legal .tbd { padding: .05em .4em; background: var(--sun); color: var(--ink); border-radius: 4px; }
.legal__warn { padding: 1rem 1.3rem; border: 1px dashed rgba(15,18,34,.35); border-radius: .9rem; color: var(--muted); margin-bottom: 2.5rem; }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 4.5rem 1rem 2rem; background: rgba(15, 18, 34, .95); color: #ffffff; }
.lightbox__fig { display: grid; gap: .8rem; justify-items: center; max-width: min(92vw, 70rem); }
.lightbox__fig img { max-width: 100%; max-height: calc(100svh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: .6rem; }
.lightbox__fig figcaption { color: #cfd5ee; font-size: .95rem; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; display: grid; place-content: center; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--blue); border-color: var(--blue); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__close span::before, .lightbox__close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 1.5px; background: currentColor; }
.lightbox__close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox__nav { top: 50%; margin-top: -1.5rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav span { width: .7rem; height: .7rem; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; }
.lightbox__nav--prev span { transform: translateX(2px) rotate(-45deg); }
.lightbox__nav--next span { transform: translateX(-2px) rotate(135deg); }

/* ---------- Transition entre pages ---------- */
.curtain { position: fixed; inset: 0; z-index: 300; display: grid; pointer-events: none; }
.curtain span { grid-area: 1 / 1; transform: scaleY(0); transform-origin: bottom; }
.curtain span:nth-child(1) { background: var(--blue); }
.curtain span:nth-child(2) { background: var(--night); }
.curtain.is-in span { transform: scaleY(1); transition: transform .5s var(--ease-io) calc(var(--k) * 90ms); }
.curtain.is-out span { transform: scaleY(0); transform-origin: top; transition: transform .55s var(--ease-io) calc((1 - var(--k)) * 90ms); }

/* ---------- Curseur ---------- */
.cursor { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.cursor__dot {
  position: absolute; left: 0; top: 0;
  translate: -200px -200px;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  transition: opacity .3s ease, width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s ease, box-shadow .3s ease;
}
.cursor.is-on .cursor__dot { opacity: .9; }
.cursor.is-link .cursor__dot { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(59, 91, 255, .12); box-shadow: inset 0 0 0 1.5px var(--blue); }
.cursor__label {
  position: absolute; left: 0; top: 0;
  translate: -200px -200px;
  width: 5.5rem; height: 5.5rem;
  margin: -2.75rem 0 0 -2.75rem;
  display: grid; place-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: .95rem; font-weight: 500;
  transform: scale(0);
  transition: transform .45s var(--ease);
}
.cursor.is-card .cursor__label { transform: scale(1); }
.cursor.is-card .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reg:not(.in) { opacity: 1; transform: none; }
  .js:not(.is-ready) .hero .ch { transform: none; }
  .js:not(.is-ready) .hero__pill, .js:not(.is-ready) .hero__lead, .js:not(.is-ready) .hero__text, .js:not(.is-ready) .hero__actions, .js:not(.is-ready) .hero__trust { opacity: 1; transform: none; }
  .js:not(.is-ready) .hv { opacity: 1; scale: 1; }
  .js .fade { opacity: 1; transform: none; }
  .js .card.reveal .card__media { clip-path: none; }
  .cursor { display: none; }
}

/* ---------- Documents, séries, liens clients ---------- */
.card__badge, .tile__badge {
  position: absolute; left: .8rem; top: .8rem; z-index: 2;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: .85rem; font-weight: 500; line-height: 1.2;
  box-shadow: 0 6px 16px -8px rgba(18, 23, 58, .45);
}
.tile__badge { left: auto; right: .8rem; top: auto; bottom: .8rem; background: var(--blue); color: #ffffff; }
.tile--doc {
  overflow: visible;
  box-shadow:
    0 1px 2px rgba(18,23,58,.05), 0 12px 30px -20px rgba(18,23,58,.35),
    7px 7px 0 -1px #ffffff, 7px 7px 0 0 rgba(15,18,34,.12),
    14px 14px 0 -1px #ffffff, 14px 14px 0 0 rgba(15,18,34,.08);
  margin-bottom: 14px;
}
.tile--doc img.tile__img { border-radius: .9rem; }
.tile__desc { margin-top: .35rem; color: var(--muted); font-size: .92rem; line-height: 1.5; text-wrap: pretty; }

.pv__serie { display: grid; gap: 1.4rem; }
.pv__serie + .pv__serie { margin-top: clamp(1.5rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.pv__serie-head { display: grid; gap: .35rem; max-width: 42rem; }
.pv__serie-head h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.pv__serie-head p { color: var(--muted); }

.grid__more { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: clamp(.5rem, 2vw, 1.5rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line); }
.grid__more p { color: var(--muted); }
.grid__more-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.grid__more-n { display: inline-grid; place-content: center; min-width: 1.6rem; height: 1.6rem; padding-inline: .4rem; border-radius: 999px; background: var(--sky); color: var(--blue-deep); font-size: .8rem; }
.btn:hover .grid__more-n { background: rgba(255,255,255,.18); color: inherit; }

.lightbox__fig figcaption strong { display: block; color: #ffffff; font-weight: 500; }
.lightbox__fig figcaption span { display: block; margin-top: .15rem; font-size: .88rem; }
.pv__row p + p { margin-top: .9rem; }

/* ---------- Vidéos ---------- */
.card__stat {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; gap: .25rem;
  padding: 3.5rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(15, 18, 34, .82));
  color: #ffffff;
  text-align: left;
}
.card__stat strong { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: .9; letter-spacing: -.035em; font-variant-numeric: lining-nums; }
.card__stat span { font-size: .92rem; color: rgba(255, 255, 255, .85); }
.card__video .card__play { background: #ffffff; color: var(--blue); box-shadow: 0 10px 30px -10px rgba(15, 18, 34, .6); }
.card__video { cursor: pointer; }
.tile__badge--stat { left: .8rem; right: auto; top: .8rem; bottom: auto; background: rgba(255, 255, 255, .94); color: var(--ink); z-index: 2; }
#lb-video { display: block; width: auto; max-width: 100%; height: calc(100svh - 10rem); max-height: 52rem; aspect-ratio: 9 / 16; border-radius: .8rem; background: #000; }

.portrait__ph p.portrait__slogan { padding: 0; border: 0; border-radius: 0; color: var(--muted); font-weight: 300; letter-spacing: .2em; font-size: .95rem; }

.portrait__cap {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  display: grid; gap: .1rem;
  padding: .7rem 1rem;
  border-radius: .9rem;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(18, 23, 58, .5);
}
.portrait__cap strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.1; letter-spacing: -.01em; }
.portrait__cap span { color: var(--muted); font-size: .88rem; }

/* ---------- Parcours ---------- */
.parcours { display: grid; gap: .9rem; max-width: 40rem; padding-top: clamp(1.2rem, 2.5vw, 1.8rem); border-top: 1px solid var(--line); }
.parcours__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.1; letter-spacing: -.02em; }
.parcours p { color: var(--muted); text-wrap: pretty; }


/* ---------- Portrait sur fond blanc et formation ---------- */
.portrait { background: #ffffff; box-shadow: 0 0 0 1px rgba(15, 18, 34, .08), var(--shadow); }
.about__side { display: grid; gap: 1rem; align-content: start; }
.formations { display: grid; gap: .8rem; }
.formation {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1.2rem 1.3rem;
  border-radius: 1.1rem;
  background: var(--sky);
}
.formation__icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blue); color: #ffffff; display: grid; place-content: center; }
.formation__label { font-size: .85rem; color: var(--blue-deep); font-weight: 500; }
.formation__title { margin-top: .15rem; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.01em; }
.formation__sub { margin-top: .3rem; color: var(--muted); font-size: .92rem; }

.formation__list { display: grid; gap: .9rem; margin-top: .5rem; }
.formation__list li { position: relative; padding-left: 1.1rem; }
.formation__list li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--blue); }
.formation__list li + li::after { content: ""; position: absolute; left: .22rem; top: -1rem; height: 1.3rem; width: 1px; background: rgba(59, 91, 255, .35); }
.formation__list .formation__title { margin-top: 0; font-size: 1.2rem; }

/* ---------- Logos clients ---------- */
.hero__clients.has-logos { gap: .7rem; }
.hero__clients.has-logos li { padding: 0; background: none; border-radius: 0; }
.client-logo {
  display: grid; place-items: center;
  width: 6.6rem; height: 4.8rem;
  padding: .4rem .55rem;
  border-radius: .9rem;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 18, 34, .08), 0 8px 20px -14px rgba(18, 23, 58, .35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.client-logo { display: block; overflow: hidden; box-sizing: border-box; }
.client-logo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.client-logo:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(59, 91, 255, .35), 0 14px 26px -14px rgba(18, 23, 58, .45); }
.pv__client { display: flex; align-items: center; gap: .7rem; }
.pv__client-logo { width: 3rem; height: 3rem; object-fit: contain; border-radius: .6rem; background: #ffffff; padding: .2rem; box-shadow: 0 0 0 1px rgba(15, 18, 34, .08); }

/* ---------- Zone ---------- */
.contact__pin { display: inline-block; width: .65rem; height: .65rem; margin-right: .55rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translateY(-.05rem); background: #9fb0ff; }

/* ---------- Engagements ---------- */
.values__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.025em; margin-bottom: -1rem; }

/* ---------- Avis clients ---------- */
.quotes { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.quote { display: grid; gap: 1.4rem; align-content: space-between; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); background: var(--mist); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.3; letter-spacing: -.01em; }
.quote__who { display: flex; align-items: center; gap: .8rem; }
.quote__who img { width: 2.8rem; height: 2.8rem; object-fit: contain; border-radius: .6rem; background: #ffffff; padding: .2rem; }
.quote__who strong { display: block; font-weight: 500; }
.quote__who span { display: block; color: var(--muted); font-size: .92rem; }

/* La colonne photo + formation ne reste plus collée : tout est visible au défilement */
@media (min-width: 62em) {
  .about { align-items: start; }
  .about__side { position: static; }
}

/* ---------- Retours clients ---------- */
.feedback { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.feedback li { display: grid; gap: .5rem; align-content: start; padding: clamp(1.4rem, 3vw, 1.9rem); border-radius: var(--radius); background: var(--mist); }
.feedback__check { width: 2.4rem; height: 2.4rem; margin-bottom: .4rem; border-radius: 50%; background: var(--blue); position: relative; }
.feedback__check::after { content: ""; position: absolute; left: .82rem; top: .58rem; width: .55rem; height: 1rem; border: solid #ffffff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.feedback h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; }
.feedback p { color: var(--muted); text-wrap: pretty; }
.feedback__clients { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: clamp(1.5rem, 3vw, 2.2rem); }
.feedback__clients:empty { display: none; }
.quotes:not(:empty) { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Vidéo vedette en tête de page projet ---------- */
.pv__cover--video { display: grid; gap: .7rem; justify-items: center; width: min(100%, 21rem); }
.pv__cover--video .tile { border-radius: 1.2rem; box-shadow: 0 2px 4px rgba(18,23,58,.08), 0 30px 60px -24px rgba(18,23,58,.5); }
.pv__cover--video .tile__play span { width: 5.2rem; height: 5.2rem; background: #ffffff; color: var(--blue); }
.pv__cover--video figcaption { font-size: .92rem; color: var(--muted); }
.c-bleu .pv__cover--video figcaption { color: rgba(255,255,255,.85); }
