/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #f9f5f2;
  --bg-elev: #ffffff;
  --text: #16151a;
  --text-muted: #5c5a63;
  --line: #eadfdb;
  --accent: #ff7f6d;
  --accent-soft: #ffedf3;
  --accent-2: #5b6aa8;
  --navy: #183864;
  /* dégradé calligraphique : corail → framboise → prune → marine (cf. moodboard « Ambiance, matières ») */
  --grad-script: linear-gradient(100deg, #ff7f6d 0%, #d4617a 38%, #8a5a9a 68%, #33437e 100%);
  --shadow: 0 1px 2px rgba(22, 21, 26, .04), 0 12px 32px -12px rgba(22, 21, 26, .18);

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e13;
    --bg-elev: #18171e;
    --text: #f2f0ea;
    --text-muted: #a19fa8;
    --line: #2a2832;
    --accent: #ff7f6d;
    --accent-soft: #3a2330;
    --accent-2: #8e9be0;
    --grad-script: linear-gradient(100deg, #ff7f6d 0%, #e0708f 40%, #a58ae6 72%, #7f9bff 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --bg: #0f0e13;
  --bg-elev: #18171e;
  --text: #f2f0ea;
  --text-muted: #a19fa8;
  --line: #2a2832;
  --accent: #ff7f6d;
  --accent-soft: #3a2330;
  --accent-2: #8e9be0;
  --grad-script: linear-gradient(100deg, #ff7f6d 0%, #e0708f 40%, #a58ae6 72%, #7f9bff 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
h1, h2 { font-weight: 500; }
h3, h4 { font-weight: 600; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--grad-accent); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--font-serif); font-style: italic; }
/* Textes calligraphiques : dégradé qui part de l'accent. Instrument Serif n'a qu'une graisse :
   font-weight 600 laisse le navigateur l'épaissir légèrement. */
.serif, .script-text, .pm-hello, .pm-lead {
  background: var(--grad-script); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; font-weight: 600;
}
.pm-hello { font-weight: 700; }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

section { padding: clamp(72px, 12vw, 140px) 0; }
#impact { padding-top: clamp(24px, 4vw, 48px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.section-head h2 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; }
.section-head p { max-width: 420px; margin: 0; color: var(--text-muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--grad-accent); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 16px 0 auto; z-index: 50; pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 10px 10px 10px 22px;
  width: calc(100% - 2 * var(--gutter));
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
}
.logo { font-weight: 700; text-decoration: none; letter-spacing: -.02em; cursor: pointer; user-select: none; }
.logo .dot { color: var(--accent); display: inline-block; transition: transform .4s var(--ease); }
.logo:hover .dot { transform: scale(1.6); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; text-decoration: none; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: transform .4s var(--ease), border-color .2s;
}
.theme-toggle:hover { transform: rotate(25deg); border-color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav .btn { padding: 10px 18px; font-size: 15px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 420px) {
  .nav .btn { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-wrap { position: relative; padding-bottom: 90px; }
.hero { position: relative; z-index: 1; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 72px; }
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .16; will-change: transform; }
.blob-1 { width: 540px; height: 540px; background: var(--grad-accent); top: 2%; right: -12%; }
.blob-2 { width: 380px; height: 380px; background: #ffd3d8; bottom: 2%; right: 18%; opacity: .26; }
.blob-3 { width: 280px; height: 280px; background: #cfd8f2; top: 28%; left: -10%; opacity: .2; }
@media (prefers-color-scheme: dark) { .blob { opacity: .09; } .blob-2, .blob-3 { opacity: .07; } }
.hero .container { position: relative; z-index: 1; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.status-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero .container { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 {
  --fs: clamp(32px, 5vw, 66px); --lines: 4.4;
  margin: 28px 0 40px; font-size: var(--fs); min-height: calc(var(--fs) * var(--lines));
  line-height: 1.08; letter-spacing: -.035em; font-weight: 500; max-width: 30ch;
}
.hero h1:not(.ready) { opacity: 0; }
.hero h1 .serif { letter-spacing: -.02em; }
/* apparition douce : chaque mot monte et se précise, ligne après ligne (--l = ligne, --i = rang du mot) */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(7px); }
.hero h1.ready .w { animation: wordIn 1.5s cubic-bezier(.16, .84, .3, 1) both; animation-delay: calc(.15s + var(--l, 0) * .26s + var(--i, 0) * .035s); }
.hero h1.out .w { animation: wordOut .28s ease both; animation-delay: 0s; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wordOut { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translateY(-.25em); filter: blur(4px); } }
/* dégradé continu sur les mots de la partie calligraphique : chaque mot affiche sa tranche */
.serif.sliced { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; -webkit-text-fill-color: initial; }
.serif .w.g { background-image: var(--grad-script); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .04em; }
mark { background: none; color: inherit; }
@media (max-width: 720px) { .hero h1 { --lines: 5.8; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .w { opacity: 1; transform: none; filter: none; animation: none !important; } }

.hero-ctas { transition: opacity .5s var(--ease), visibility .5s; }
.hero-ctas.off { opacity: 0 !important; visibility: hidden; pointer-events: none; }

/* navigation du titre : a = onglets, b = index, c = pager */
.hero-nav { display: block; max-width: 100%; }
.hn button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hn-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--bg-elev) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.hn-tabs button { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: background .3s, color .3s; }
.hn-tabs button:hover { color: var(--text); }
.hn-tabs button.on { background: var(--text); color: var(--bg); }

/* variante d : navigation à gauche (liste numérotée + flèches), texte à droite et plus large */
.hv-d .container { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.hv-d .hero-nav { grid-column: 1; grid-row: 1 / span 2; padding-top: 12px; }
.hv-d h1 { grid-column: 2; grid-row: 1; margin-top: 0; max-width: 24ch; --fs: clamp(30px, 4.5vw, 62px); --lines: 5.6; }
.hv-d .hero-ctas { grid-column: 2; grid-row: 2; }
.hn-list { list-style: none; margin: 0; padding: 0; }
.hn-list button { width: 100%; display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 8px; padding: 18px 20px; text-align: left; border-radius: 18px; font-size: 15px; font-weight: 500; color: var(--text); transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.hn-list li { border-bottom: 1px solid var(--line); }
.hn-list li:last-child { border-bottom: 0; }
.hn-list .n { font-size: 13px; opacity: .6; }
.hn-list svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.hn-list button:hover svg { transform: translateX(3px); }
.hn-list button.on { background: var(--text); color: var(--bg); box-shadow: 0 14px 30px -14px rgba(20, 20, 30, .5); }
@media (max-width: 860px) { .hv-d .container { display: flex; } .hv-d .hero-nav { padding: 0; width: 100%; } .hv-d h1 { max-width: none; --lines: 6.4; } }

.hv-b .hero-nav { order: 2; margin-bottom: 36px; }
.hv-b h1 { margin-bottom: 28px; }
.hn-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hn-index button { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; text-align: left; color: var(--text-muted); font-size: 17px; font-weight: 500; transition: color .3s, transform .4s var(--ease); }
.hn-index .n { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--text-muted); transition: color .3s; }
.hn-index button:hover { color: var(--text); transform: translateX(4px); }
.hn-index button.on { color: var(--text); }
.hn-index button.on .n { color: var(--accent); }
.hn-index button.on .t { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.hv-b .hero-ctas { order: 3; }

.hn-pager { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hn-pager button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); transition: transform .3s var(--ease), background .3s; }
.hn-pager button:hover { background: var(--grad-accent); color: #fff; transform: scale(1.06); }
.hn-pager svg { width: 18px; height: 18px; }
.hn-label { font-size: 15px; font-weight: 500; min-width: 190px; }
.hn-label b { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--accent); }
.hn-dots { display: flex; gap: 6px; }
.hn-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: width .35s var(--ease), background .3s; }
.hn-dots i.on { width: 22px; border-radius: 99px; background: var(--grad-accent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Marquee (clients)
   ========================================================================== */
.marquee-wrap { position: relative; z-index: 2; }
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 150s linear infinite; }
.marquee-wrap:hover .marquee-track, .marquee-wrap.open .marquee-track { animation-play-state: paused; }
.client { display: flex; align-items: center; flex: none; height: 36px; color: var(--text-muted); }
.client::after { content: "✦"; margin-left: 72px; font-size: 12px; opacity: .35; }
.client-text { font-size: 24px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.logo-mask { display: block; height: 30px; background: var(--text-muted); opacity: .75; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo-img { height: auto; max-height: 34px; object-fit: contain; filter: grayscale(1) opacity(.5); }
@media (prefers-color-scheme: dark) { .logo-img { filter: grayscale(1) invert(1) opacity(.5); } }

/* tooltip : liste cliquable des clients */
.clients-tip {
  position: absolute; left: 50%; top: calc(100% + 4px); z-index: 40; width: min(380px, calc(100vw - 32px)); padding: 20px 22px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.clients-tip::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.marquee-wrap:hover .clients-tip, .marquee-wrap:focus-within .clients-tip, .marquee-wrap.open .clients-tip { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.clients-tip-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.clients-tip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.clients-tip a, .clients-tip .no-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.clients-tip a:hover { background: var(--accent-soft); color: var(--text); }
.clients-tip a span { color: var(--accent); transition: transform .25s var(--ease); }
.clients-tip a:hover span { transform: translate(2px, -2px); }
.clients-tip .no-link { color: var(--text-muted); cursor: default; }
.soon-tag { font-style: normal; font-weight: 500; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text-muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Metrics
   ========================================================================== */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
}
.metric .num { font-size: clamp(44px, 6vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.metric .num sup { font-size: .45em; color: var(--accent); vertical-align: top; position: relative; top: .2em; }
.metric .label { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.metrics-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.stat-card {
  position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.stat-card h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.stat-card .big { font-size: 56px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.stat-card .reveal-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .4s; }
.stat-card:hover .reveal-list, .stat-card:focus-within .reveal-list { max-height: 200px; opacity: 1; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); }
.stat-card .hint { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.stat-card:hover .hint { display: none; }

@media (max-width: 860px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics-detail { grid-template-columns: 1fr; }
  .stat-card .reveal-list { max-height: none; opacity: 1; }
  .stat-card .hint { display: none; }
}

/* ==========================================================================
   Skills & Process
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.skill-group + .skill-group { margin-top: 32px; }
.skill-group h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 14px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.tag:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-2px); }
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process li {
  counter-increment: step; position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.process li:last-child { border-bottom: 1px solid var(--line); }
.process li::before {
  content: "0" counter(step); font-family: var(--font-serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--accent);
}
.process h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.process p { margin: 0; color: var(--text-muted); }

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ==========================================================================
   Case studies : bento grid (image seule, détails au survol)
   ========================================================================== */
.v-aba { background: linear-gradient(135deg, #b9d8ff, #e7d9ff); color: #7c6cf0; }
.v-airbus { background: linear-gradient(135deg, #0b1f4d, #2f5bd3); color: #2f5bd3; }
.v-bookmeet { background: linear-gradient(135deg, #ffe0d8, #f29a8c); color: #e0705f; }
.v-ifpen { background: linear-gradient(135deg, #e3e9e1, #a6bba9); color: #5f8266; }
.v-ciexport { background: linear-gradient(135deg, #2a3a5c, #b0607a); color: #7a4a73; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 250px; gap: 16px; }
.bento-card.b1 { grid-column: span 7; grid-row: span 2; }
.bento-card.b2, .bento-card.b3 { grid-column: span 5; }
.bento-card.b4, .bento-card.b5 { grid-column: span 6; }

.bento-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius); isolation: isolate;
  text-decoration: none; color: #fff; border: 1px solid var(--line);
}
/* signal « cliquable » : le curseur change (flèche + description) et les coins s'arrondissent */
.bento-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.bento-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bento-media > img, .bento-media > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-media .inner { position: absolute; inset: -6%; display: grid; place-items: center; transition: transform 1.4s var(--ease), filter 1s var(--ease); }
.bento-card:hover .bento-media .inner { transform: scale(1.07); filter: blur(2px) saturate(.9); }
.bento-media .mock {
  width: 52%; aspect-ratio: 4 / 3; border-radius: 14px; background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); padding: 14px; display: grid; gap: 8px; grid-template-rows: 12px 1fr 1fr;
}
.mock .bar { display: flex; gap: 5px; }
.mock .bar i { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }
.mock .block { border-radius: 8px; background: #eee; }
.mock .block.c { background: currentColor; opacity: .85; }

/* survol progressif : voile, puis chips, titre, description et KPI arrivent l'un après l'autre */
.bento-overlay {
  position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(to top, rgba(8, 8, 14, .88) 8%, rgba(8, 8, 14, .45) 55%, rgba(8, 8, 14, .12));
  opacity: 0; transition: opacity .55s var(--ease);
}
.bento-overlay > * { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.bento-card:hover .bento-overlay, .bento-card:focus-visible .bento-overlay { opacity: 1; }
.bento-card:hover .bento-overlay > *, .bento-card:focus-visible .bento-overlay > * { opacity: 1; transform: none; }
.bento-overlay > :nth-child(1) { transition-delay: .06s; }
.bento-overlay > :nth-child(2) { transition-delay: .14s; }
.bento-overlay > :nth-child(3) { transition-delay: .22s; }
.bento-overlay > :nth-child(4) { transition-delay: .30s; }
.bento-overlay h3 { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -.025em; max-width: 24ch; }
.bento-overlay p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.5; max-width: 46ch; }
.bento-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bento-chips .chip { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.bento-kpis { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); }
.bento-kpis strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.bento-kpis span { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* curseur des cartes : flèche + description du projet (souris uniquement) */
.cursor-bubble {
  position: fixed; left: 0; top: 0; z-index: 90; display: flex; align-items: center; gap: 12px; max-width: min(320px, 82vw);
  padding: 8px 20px 8px 8px; border-radius: 34px; background: var(--text); color: var(--bg);
  pointer-events: none; transform: translate3d(-300px, -300px, 0) scale(0); transform-origin: 30px 50%;
  transition: opacity .25s; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5);
}
.cursor-bubble.flip { flex-direction: row-reverse; padding: 8px 8px 8px 20px; transform-origin: calc(100% - 30px) 50%; }
.cb-arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-accent); color: #fff; }
.cb-arrow svg { width: 22px; height: 22px; }
.cb-body { display: grid; gap: 6px; }
.cb-text { font-size: 14px; font-weight: 500; line-height: 1.4; }
.cb-soon:empty { display: none; }
.cb-soon { justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--grad-accent); color: #fff; }
.cursor-bubble.soon .cb-arrow { background: color-mix(in srgb, var(--bg) 22%, transparent); }
.has-cursor .bento-card { cursor: none; }

/* écrans tactiles : pas de survol, le contenu reste visible */
@media (hover: none) {
  .bento-overlay { opacity: 1; background: linear-gradient(to top, rgba(8, 8, 14, .85) 5%, rgba(8, 8, 14, .1) 70%); }
  .bento-overlay > * { opacity: 1; transform: none; }
  .bento-overlay p, .bento-kpis { display: none; }
}
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .bento-card.b1, .bento-card.b2, .bento-card.b3, .bento-card.b4, .bento-card.b5 { grid-column: auto; grid-row: auto; }
  .bento-card.b1 { grid-row: span 2; }
}

/* ==========================================================================
   Deliverables
   ========================================================================== */
.deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deliv {
  padding: 32px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s;
}
.deliv:hover { transform: translateY(-4px); border-color: var(--accent); }
.deliv .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 24px; }
.deliv .icon svg { width: 26px; height: 26px; }
.deliv h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; }
.deliv p { margin: 0; color: var(--text-muted); font-size: 16px; }
@media (max-width: 860px) { .deliverables { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.head-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; max-width: 520px; }
.head-right p { margin: 0; flex: 1; min-width: 220px; }
#temoignages { overflow-x: clip; }
.riff-arrows { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.riff-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--text); color: var(--bg); cursor: pointer; transition: transform .3s var(--ease), background .3s; }
.riff-btn:hover { background: var(--grad-accent); color: #fff; transform: scale(1.07); }
.riff-btn:active { transform: scale(.94); }
.riff-btn svg { width: 20px; height: 20px; }

.riff { position: relative; height: clamp(400px, 48vw, 470px); margin-top: 8px; touch-action: pan-y; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; }
/* halo coloré derrière les cartes : donne de la matière à l'effet verre */
.riff::before { content: ""; position: absolute; inset: -12% -8%; z-index: 0; pointer-events: none; filter: blur(30px);
  background: radial-gradient(34% 46% at 22% 40%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%), radial-gradient(34% 46% at 78% 58%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%); }
.riff.dragging { cursor: grabbing; }
.riff:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 24px; }
.riff-card {
  --cbg: #ffe5df; --ctext: #1b1a20; --chl: rgba(255, 255, 255, .8);
  position: absolute; left: 50%; top: 50%; width: min(440px, 78vw); margin: 0; padding: 24px 26px 22px;
  display: flex; flex-direction: column; gap: 18px; border-radius: 26px; color: var(--ctext);
  background: color-mix(in srgb, var(--cbg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);   /* effet verre */
  border: 1px solid rgba(255, 255, 255, .65);                                                    /* contour continu */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 24px 50px -28px rgba(40, 20, 30, .4);
  transition: transform .8s var(--ease), opacity .6s var(--ease);
  will-change: transform;
}
.riff-card.active { background: color-mix(in srgb, var(--cbg) 70%, transparent); }   /* la carte active laisse deviner les voisines */
.riff.dragging .riff-card { transition: none; }
.riff-card.c1 { --cbg: #ffe3dc; }
.riff-card.c2 { --cbg: #dfe5fa; }
.riff-card.c3 { --cbg: #ffd9e6; }
.riff-card.c4 { --cbg: #e0ece3; }
.riff-card.c5 { --cbg: #183864; --ctext: #fff; --chl: #ff7f6d; border-color: rgba(255, 255, 255, .24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 24px 50px -28px rgba(10, 20, 50, .6); }
.rc-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.rc-stars { letter-spacing: 2px; font-size: 13px; }
.riff-card blockquote { margin: 0; font-size: clamp(18px, 2.3vw, 24px); line-height: 1.32; letter-spacing: -.015em; font-weight: 500; }
.riff-card mark { background: var(--chl); color: inherit; padding: .02em .22em; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.riff-card.c5 mark { color: #fff; }
.rc-line { height: 1px; background: currentColor; opacity: .25; }
.riff-card .who { display: flex; align-items: center; gap: 12px; }
.riff-card .avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, .7); color: var(--navy); }
.riff-card.c5 .avatar { background: rgba(255, 255, 255, .16); color: #fff; }
.riff-card .who strong { display: block; font-size: 15px; }
.riff-card .who span { font-size: 13px; opacity: .7; }
.riff-card:not(.active) { cursor: pointer; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px);
  position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, #1a2a52 0%, #4d3a62 52%, #e8766a 118%); color: #fff;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card h2 { margin: 12px 0 20px; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; }
.contact-card .eyebrow { color: rgba(255, 255, 255, .65); }
.contact-card .hl { background: var(--grad-accent); color: #fff; padding: 0 .2em; border-radius: 8px; }
.contact-card ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact-card li::before { content: "→ "; color: var(--accent); }
.form { display: grid; gap: 12px; }
.form label { font-size: 14px; opacity: .7; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); font: inherit; font-size: 16px;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .26); outline: none; transition: border-color .2s;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { background: var(--grad-accent); color: #fff; justify-content: center; }
.form .btn.sent { background: #22c55e; }
.socials { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.socials a { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); text-decoration: none; font-size: 14px; }
.socials a:hover { background: #fff; color: #1a2a52; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

footer { padding: 32px 0 36px; color: var(--text-muted); font-size: 14px; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ==========================================================================
   Case study page
   ========================================================================== */
.cs-hero { padding: 160px 0 60px; }
.cs-hero h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 20px 0; font-weight: 500; max-width: 18ch; }
.cs-hero .lead { font-size: 22px; color: var(--text-muted); max-width: 680px; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.cs-facts span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 4px; }
.cs-cover { height: clamp(260px, 50vw, 560px); border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; }
.cs-cover .inner { position: absolute; inset: -10%; display: grid; place-items: center; }
.cs-body { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 80px var(--gutter); }
.cs-toc { position: sticky; top: 110px; align-self: start; list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.cs-toc a { display: block; padding: 6px 12px; border-left: 2px solid var(--line); text-decoration: none; color: var(--text-muted); font-size: 15px; transition: .2s; }
.cs-toc a:hover, .cs-toc a.active { color: var(--text); border-color: var(--accent); }
.cs-content { max-width: 720px; }
.cs-content h2 { font-size: clamp(28px, 3.5vw, 38px); letter-spacing: -.03em; line-height: 1.15; margin: 72px 0 20px; }
.cs-content h2:first-child { margin-top: 0; }
.cs-content p { font-size: 19px; line-height: 1.7; }
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0; }
.cs-stats div { padding: 24px; border-radius: var(--radius-sm); background: var(--bg-elev); border: 1px solid var(--line); }
.cs-stats strong { display: block; font-size: 40px; letter-spacing: -.04em; color: var(--accent); line-height: 1.1; }
.cs-stats span { font-size: 14px; color: var(--text-muted); }
.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.persona { padding: 24px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.persona strong { font-size: 20px; }
.persona p { font-size: 16px !important; margin: 8px 0 0; }
.callout { padding: 28px; border-left: 3px solid var(--accent); background: var(--bg-elev); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.4; margin: 40px 0; }
.learned { padding: 32px; border-radius: var(--radius); border: 1px dashed var(--accent-2); margin-top: 56px; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 48px 0; border-top: 1px solid var(--line); text-decoration: none; }
.next-case strong { font-size: clamp(26px, 4vw, 44px); letter-spacing: -.03em; }
@media (max-width: 860px) {
  .cs-body { grid-template-columns: 1fr; gap: 0; }
  .cs-toc { display: none; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .cs-stats, .persona-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 14, .85); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox .lb-content { width: min(1000px, 100%); aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; position: relative; transform: scale(.95); transition: transform .4s var(--ease); }
.lightbox.open .lb-content { transform: none; }

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* Easter egg */
.confetti { position: fixed; top: -20px; z-index: 200; pointer-events: none; font-size: 22px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 201; transform: translate(-50%, 120px);
  padding: 14px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow);
  transition: transform .5s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

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


/* Logo */
:root { --logo: #183864; }
:root[data-theme="dark"] { --logo: #f2f0ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo: #f2f0ea; } }
.logo { display: inline-flex; align-items: center; }
.logo-mark { height: 28px; width: auto; fill: var(--logo); transition: transform .4s var(--ease), fill .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Smooth scroll (Lenis)
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (max-width: 720px) { body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* ==========================================================================
   Barre du haut : logo | navigation | langue + photo
   ========================================================================== */
.topbar {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  pointer-events: none;
}
.topbar > *, .topbar-right > * { pointer-events: auto; }
.logo { justify-self: start; }
.topbar-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.logo, .lang-btn, .dock {
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
}
.logo, .lang-btn { height: 52px; border-radius: 999px; }
.logo { padding: 0 18px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 12px; cursor: pointer; transition: border-color .2s, transform .3s var(--ease); }
.lang-btn:hover { border-color: var(--text); transform: translateY(-1px); }
.flag { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.flag svg { width: 100%; height: 100%; display: block; }
.chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 176px; margin: 0; padding: 6px; list-style: none;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.lang-menu[hidden] { display: none; }
.lang-menu li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 500; }
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--accent-soft); outline: none; }
.lang-menu li[aria-selected="true"] { font-weight: 700; }
.avatar-btn {
  width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 2px solid var(--bg-elev); overflow: hidden; cursor: pointer;
  background: var(--accent-soft); box-shadow: 0 0 0 1px var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.avatar-btn:hover { transform: scale(1.08); box-shadow: 0 0 0 2px var(--accent); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }

/* Navigation : en haut sur ordinateur, en bas sur mobile */
.dock { position: relative; justify-self: center; display: flex; padding: 6px; border-radius: 999px; }
.dock a { position: relative; z-index: 1; padding: 10px 22px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .3s; }
.dock a:hover { color: var(--text); }
.dock a.active { color: var(--bg); }
.dock-pill { position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 999px; background: var(--text); opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; }

@media (max-width: 720px) {
  .topbar { display: flex; justify-content: space-between; }
  .dock {
    position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    box-shadow: var(--shadow); background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  }
  .dock a { padding: 12px 26px; }
}

/* ==========================================================================
   Popup profil (structure inspirée de sanvithi.com/story) — contenu scrollable
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 14, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: min(640px, 100%); border-radius: 32px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .3s, transform .45s var(--ease);
}
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-scroll { max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 28px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-elev) 90%, transparent); backdrop-filter: blur(8px);
  cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--ease), border-color .2s;
}
.modal-close:hover { transform: rotate(90deg); border-color: var(--text); }
.modal-close svg { width: 18px; height: 18px; }

.pm-hero {
  position: relative; padding: 56px 24px 72px; display: grid; justify-items: center;
  background:
    radial-gradient(60% 70% at 20% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(60% 70% at 85% 80%, color-mix(in srgb, var(--accent-2) 50%, transparent), transparent 70%),
    var(--accent-soft);
}
.pm-frame {
  width: min(250px, 62%); aspect-ratio: 4 / 5; border-radius: 999px; overflow: hidden;
  padding: 7px; background: var(--bg-elev);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 18%, transparent), 0 0 0 10px color-mix(in srgb, var(--bg-elev) 55%, transparent), 0 24px 50px -16px rgba(0, 0, 0, .35);
}
.pm-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 999px; display: block; }
.pm-hello {
  position: absolute; z-index: 3; left: 50%; bottom: 2px; transform: translateX(-50%) rotate(-4deg); margin: 0; white-space: nowrap;
  font-family: "Caveat", cursive; font-size: clamp(40px, 9vw, 58px); line-height: 1; color: var(--text);
  text-shadow: 0 2px 0 var(--bg-elev), 0 0 18px var(--bg-elev);
}

.pm-sheet {
  position: relative; margin: -22px 16px 0; padding: 44px clamp(20px, 5vw, 40px) 28px; border-radius: 28px;
  background: var(--bg-elev); border: 1px solid var(--line); box-shadow: 0 -8px 30px -18px rgba(0, 0, 0, .25);
}
.pm-sheet h2 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.pm-sheet p { margin: 0 0 18px; font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 3.2vw, 24px); line-height: 1.4; }

.pm-status { display: inline-flex !important; align-items: center; gap: 10px; margin: 6px 0 0 !important; font-family: var(--font-sans) !important; font-style: normal !important; font-size: 15px !important; font-weight: 500; }
.pm-status .pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; animation: pulse 2s infinite; }

.pm-map { position: relative; margin: 16px 16px 0; height: 220px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--accent-soft); }
.pm-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85) contrast(.96); }
:root[data-theme="dark"] .pm-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pm-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); } }
.pm-pin {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line); font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
}
.pm-pin svg { width: 16px; height: 16px; color: var(--accent-2); }

.pm-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 16px 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; text-decoration: none; font-weight: 600; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.pill:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-2px); }

/* Divers */
.deliv .icon { font-size: 26px; }
.deliv .chip { display: inline-block; margin-top: 16px; }

.stat-card .big .unit { font-size: .45em; letter-spacing: -.01em; color: var(--text); font-weight: 600; }

/* ==========================================================================
   Disponibilité : card de texte libre
   ========================================================================== */
.avail { padding: clamp(24px, 4vw, 56px) 0; }
.avail-card {
  position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 8vw, 96px) clamp(22px, 6vw, 80px);
  border-radius: calc(var(--radius) + 12px); background: var(--bg-elev); border: 1px solid var(--line);
}
.avail-card::before {
  content: ""; position: absolute; inset: -30%; pointer-events: none;
  background:
    radial-gradient(40% 40% at 18% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(40% 40% at 82% 72%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
}
.script-text { position: relative; margin: 0 auto; max-width: 27ch; font-family: var(--font-serif); font-style: italic; font-size: clamp(32px, 5.4vw, 62px); line-height: 1.12; letter-spacing: -.02em; }

/* ==========================================================================
   Page Play : apps vibe codées
   ========================================================================== */
.play-hero { padding-bottom: 28px; }
.play-list { padding: 32px 0 120px; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-slot {
  min-height: 280px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  border-radius: var(--radius); border: 1.5px dashed var(--line); color: var(--text-muted);
  transition: border-color .3s, background .3s;
}
.app-slot:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.slot-n { margin-bottom: auto; font-family: var(--font-serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--accent); }
.app-slot h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; color: var(--text); }
.app-slot p { margin: 0; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } .app-slot { min-height: 180px; } }

/* matière : grain léger sur les grandes surfaces */
.contact-card::after, .avail-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (max-width: 720px) {
  .hn-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hn-tabs::-webkit-scrollbar { display: none; }
  .hn-tabs button { flex: none; white-space: nowrap; }
}


/* ==========================================================================
   v3 — palette du moodboard (dégradé corail → bleu marine), typographie, navigation en verre,
   hero centré, bandeau clients interactif, compétences
   ========================================================================== */
:root {
  --text: #3a2e2a; --text-muted: #8a7f79; --line: #e8dfdb; --line-strong: #d8cdc8;
  --accent: #ff8f78; --accent-soft: #fff0ec; --accent-2: #6679b4; --gray-card: #efecec;
  /* dégradé des titres : corail → rose → lavande → bleu → marine (illustration « forêt ») */
  --grad-script: linear-gradient(100deg, #ff9a82 0%, #eba1ab 26%, #a99ac7 54%, #5b70ab 80%, #27366c 100%);
  --grad-accent: linear-gradient(120deg, #ff9a82 0%, #f0a2ab 38%, #a79bc8 74%, #6679b4 100%);
  /* maillage doux (capture 4) : orange à gauche, pêche au centre, lavande en haut à droite, bleu en bas à droite */
  --mesh: radial-gradient(60% 55% at 6% 42%, #ffb27a 0%, transparent 70%), radial-gradient(55% 55% at 46% 46%, #f7c9bd 0%, transparent 72%), radial-gradient(50% 46% at 100% 4%, #d4c3dd 0%, transparent 70%), radial-gradient(56% 52% at 94% 100%, #7a8ab5 0%, transparent 72%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f1ebe7; --text-muted: #a99f9a; --line: #2d2a31; --line-strong: #3b3740; --accent-soft: #3a2430; --gray-card: #1d1b22;
    --grad-script: linear-gradient(100deg, #ff9a82 0%, #f0a6b4 28%, #b3a3da 58%, #8ea6ee 100%);
    --grad-accent: linear-gradient(120deg, #ff9a82 0%, #f0a2ab 38%, #b3a3da 74%, #8ea6ee 100%);
  }
}
:root[data-theme="dark"] {
  --text: #f1ebe7; --text-muted: #a99f9a; --line: #2d2a31; --line-strong: #3b3740; --accent-soft: #3a2430; --gray-card: #1d1b22;
  --grad-script: linear-gradient(100deg, #ff9a82 0%, #f0a6b4 28%, #b3a3da 58%, #8ea6ee 100%);
  --grad-accent: linear-gradient(120deg, #ff9a82 0%, #f0a2ab 38%, #b3a3da 74%, #8ea6ee 100%);
}
section { position: relative; }
section > .container { position: relative; z-index: 1; }

/* --- typographie calligraphique : serif droit (réf. capture « Save what moves you. ») --- */
.serif { font-family: var(--font-serif); font-style: normal; font-weight: 400; }
.serif, .pm-hello, .pm-lead, .script-text .grad {
  background: var(--grad-script); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; font-weight: 400;
}
.script-text, .pm-sheet p, .callout, .slot-n, .hn-chips, .process li::before { font-style: normal; }
.pm-hello { font-family: var(--font-serif); font-size: clamp(46px, 10vw, 66px); font-weight: 400; transform: translateX(-50%) rotate(-3deg); }
.pm-sheet p { font-size: clamp(19px, 3vw, 22px); line-height: 1.45; }
.script-text { color: var(--text); background: none; -webkit-text-fill-color: initial; }
.metric .num sup, .stat-card .big, .slot-n, .tip-n b {
  background: var(--grad-script); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* --- navigation : verre léger, plus fine --- */
.topbar { top: 14px; transition: transform .55s var(--ease), opacity .35s; }
.topbar.nav-hidden { transform: translateY(-150%); opacity: 0; pointer-events: none; }
.logo, .lang-btn, .dock {
  background: color-mix(in srgb, var(--bg-elev) 48%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 30px -18px rgba(60, 40, 40, .4);
}
@media (prefers-color-scheme: dark) { .logo, .lang-btn, .dock { border-color: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -18px rgba(0, 0, 0, .7); } }
.logo { height: 40px; padding: 0 14px; }
.logo-mark { height: 19px; }
.lang-btn { height: 40px; padding: 0 10px 0 8px; gap: 5px; }
.flag { width: 20px; height: 20px; }
.chev { width: 12px; height: 12px; }
.avatar-btn { width: 40px; height: 40px; border-width: 1.5px; }
.dock { padding: 5px; }
.dock a { padding: 8px 15px; font-size: 13.5px; font-weight: 500; }
.dock a .ic { display: none; }
.dock-pill { top: 5px; bottom: 5px; }
.dock a.disabled { cursor: not-allowed; }
.dock a.disabled .lbl, .dock a.disabled .ic { opacity: .45; }
.dock-tip {
  position: absolute; top: calc(100% + 12px); left: 50%; padding: 5px 13px; border-radius: 99px; background: var(--text); color: var(--bg);
  font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0;
  transform: translate(-50%, -4px) scale(.85); transition: opacity .2s, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.dock a.disabled:hover .dock-tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
.dock a.show-tip .dock-tip { animation: tipPop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.dock a.show-tip { animation: nudge .45s var(--ease); }
@keyframes tipPop { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.5); } 60% { opacity: 1; transform: translate(-50%, -5px) scale(1.12); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 55% { transform: translateX(3px); } 80% { transform: translateX(-1px); } }

@media (max-width: 720px) {
  /* mobile : logo, navigation, langue et photo sur une même ligne, en bas de l'écran */
  .topbar { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; }
  .topbar.nav-hidden { transform: translateY(170%); }
  .logo { height: 36px; padding: 0 11px; }
  .logo-mark { height: 17px; }
  .lang-btn { height: 36px; padding: 0 8px 0 7px; }
  .flag { width: 18px; height: 18px; }
  .avatar-btn { width: 36px; height: 36px; }
  .topbar-right { gap: 8px; }
  .dock { position: relative; left: auto; bottom: auto; transform: none; flex: 1; min-width: 0; justify-content: space-around; padding: 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 30px -18px rgba(60, 40, 40, .4); background: color-mix(in srgb, var(--bg-elev) 48%, transparent); }
  .dock-pill { display: none; }
  .dock a { display: flex; align-items: center; padding: 8px 10px; color: var(--text-muted); transition: background .35s var(--ease), color .3s; }
  .dock a .ic { display: block; width: 19px; height: 19px; flex: none; }
  .dock a .lbl { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; font-size: 12.5px; transition: max-width .4s var(--ease), opacity .25s, margin .4s var(--ease); }
  .dock a.active { background: var(--text); color: var(--bg); }
  .dock a.active .lbl { max-width: 96px; opacity: 1; margin-left: 6px; }
  .dock-tip { top: auto; bottom: calc(100% + 14px); }
  .lang-menu { top: auto; bottom: calc(100% + 8px); }
  .toast { bottom: 76px; }
}

/* --- hero centré : titre, bouton collé dessous, chips en dessous --- */
.hero { min-height: 100svh; padding: 118px 0 48px; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 84px; width: min(900px, 94vw); height: 560px; transform: translateX(-50%); pointer-events: none;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0; filter: blur(8px);
  background: linear-gradient(to bottom, color-mix(in srgb, #ffb98a 16%, transparent), color-mix(in srgb, #d4c3dd 8%, transparent) 55%, transparent 90%);
}
.hero .container { align-items: center; text-align: center; }
.hero-title { width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: calc(clamp(30px, 4.6vw, 60px) * 4.4); }
.hero h1 {
  --fs: clamp(30px, 4.6vw, 60px); margin: 0; min-height: 0; max-width: 24ch; text-align: center;
  font-size: var(--fs); font-size-adjust: .5; line-height: 1.12; letter-spacing: -.03em; font-weight: 500;
}
.hero .serif { font-size-adjust: .5; }
.hero-ctas { margin-top: 22px; display: flex; justify-content: center; }
@media (max-width: 720px) { .hero-title { min-height: calc(clamp(30px, 4.6vw, 60px) * 5.8); } .hero h1 { max-width: none; } }

/* bouton « verre liquide » fin */
.btn-glass {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .2));
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -10px 18px rgba(255, 255, 255, .22), 0 10px 26px -12px rgba(90, 60, 70, .4);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s;
}
.btn-glass::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .85) 50%, transparent 68%); transform: translateX(-130%); transition: transform .9s var(--ease); pointer-events: none; }
.btn-glass:hover { transform: translateY(-2px) scale(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -10px 18px rgba(255, 255, 255, .3), 0 16px 30px -12px rgba(90, 60, 70, .5); }
.btn-glass:hover::before { transform: translateX(130%); }
.btn-glass .arrow { transition: transform .35s var(--ease); }
.btn-glass:hover .arrow { transform: translateX(3px); }
@media (prefers-color-scheme: dark) { .btn-glass { background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border-color: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 26px -12px rgba(0, 0, 0, .7); } .btn-glass::before { background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .3) 50%, transparent 68%); } }

/* chips du carrousel du hero : fines, contour clair, active en dégradé d'accent */
.hero-nav { margin-top: 36px; width: 100%; display: flex; justify-content: center; }
.hn-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 780px; }
.hn-chips button {
  font: inherit; font-size: 13.5px; font-weight: 400; color: var(--text-muted); background: transparent; cursor: pointer;
  padding: 8px 17px; border-radius: 999px; border: 1px solid var(--line-strong);
  transition: color .3s, background .4s, border-color .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.hn-chips button:hover { color: var(--text); border-color: var(--text-muted); transform: translateY(-1px); }
.hn-chips button.on { color: #fff; background: var(--grad-accent); border-color: transparent; }

/* fond du hero : maillage très léger */
.blob-1 { background: #ffb98a; opacity: .2; }
.blob-2 { background: #f5c6c0; opacity: .26; }
.blob-3 { background: #bcc6e8; opacity: .2; }

/* --- bandeau clients --- */
.marquee-wrap:hover .marquee-track, .marquee-wrap.open .marquee-track { animation-play-state: running !important; }
.client { transition: opacity .5s var(--ease), filter .5s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1); transform: translate(var(--mx, 0px), var(--my, 0px)); }
.marquee.focus .client:not(:hover) { opacity: .26; filter: blur(1.5px); transform: scale(.95); }
.client:hover { transform: translate(var(--mx, 0px), var(--my, 0px)) translateY(-3px) scale(1.14); }
.logo-img { transition: filter .5s var(--ease); }
.client:hover .logo-img { filter: none; }
.logo-wrap { position: relative; display: block; height: 30px; border-radius: 12px; transition: background .45s var(--ease); }
.logo-wrap .logo-mask, .logo-wrap .logo-orig { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .45s var(--ease); }
.logo-wrap .logo-orig { object-fit: contain; opacity: 0; }
.client:hover .logo-orig { opacity: 1; }
.client:hover .logo-mask { opacity: 0; }
.client.on-dark .logo-wrap { height: 44px; }
.client.on-dark .logo-mask, .client.on-dark .logo-orig { inset: 9px 14px; width: auto; height: auto; }
.client.on-dark:hover .logo-wrap { background: #15141b; }
.client-text:hover { background: var(--grad-script); -webkit-background-clip: text; background-clip: text; color: transparent; }

.clients-more { position: relative; display: flex; justify-content: center; }
.clients-more-btn { font: inherit; font-size: 12.5px; font-weight: 400; color: var(--text-muted); background: none; border: 0; cursor: pointer; padding: 10px 14px; transition: color .3s; }
.clients-more-btn:hover, .clients-more.open .clients-more-btn { color: var(--text); }
.clients-pop {
  position: absolute; top: 100%; left: 50%; z-index: 40; width: min(640px, 92vw); padding: 16px 22px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elev) 62%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.clients-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.clients-more:hover .clients-pop, .clients-more:focus-within .clients-pop, .clients-more.open .clients-pop { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.clients-pop ul { list-style: none; margin: 0; padding: 0; columns: 3 140px; column-gap: 20px; font-size: 11.5px; font-weight: 300; line-height: 1.9; color: var(--text-muted); }
.clients-pop li { break-inside: avoid; }
.clients-pop .more-indep { margin-top: 6px; font-style: italic; opacity: .8; column-span: all; }

/* --- métriques : chiffres plus petits, halo flou, cartes sans survol --- */
#impact { padding-top: clamp(24px, 4vw, 48px); }
.metrics-glow { position: absolute; left: 50%; top: 52%; width: min(980px, 100vw); height: 560px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--mesh); filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0; }
.metric .num { font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -.03em; }
.metric .num sup { font-size: .5em; margin-left: .35em; top: .1em; }
.metric .label { margin-top: 2px; font-size: 14px; }
.metric { padding: 22px 24px; }
.stat-card { padding: 26px 28px; }
.stat-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
.stat-card .big { font-size: 40px; }
.stat-card .reveal-list { max-height: none; opacity: 1; margin-top: 16px; }
.stat-card .hint { display: none; }

/* --- compétences --- */
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .32; pointer-events: none; z-index: 0; }
.glow-a { width: 520px; height: 520px; left: -14%; top: 6%; background: radial-gradient(circle, #ffc3a0, transparent 70%); }
.glow-b { width: 560px; height: 560px; right: -16%; top: -4%; background: radial-gradient(circle, #c3c9ea, transparent 70%); }
.skills-search { position: relative; display: block; width: min(340px, 100%); }
.skills-search svg { position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.skills-search input {
  width: 100%; padding: 11px 16px 11px 40px; border-radius: 999px; border: 1px solid var(--line-strong); font: inherit; font-size: 14px; color: var(--text); outline: none;
  background: color-mix(in srgb, var(--bg-elev) 50%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .3s, box-shadow .3s;
}
.skills-search input:focus { border-color: #ff9a82; box-shadow: 0 0 0 4px color-mix(in srgb, #ff9a82 22%, transparent); }
.skill-group { margin-top: 30px; }
.skill-group[hidden], .skill[hidden] { display: none; }
.skill-group h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill {
  position: relative; font: inherit; font-size: 14px; font-weight: 400; color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: default;
  background: transparent; border: 1px solid var(--line-strong);
  transition: color .3s, background .4s, border-color .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.skill:hover, .skill.open { background: var(--grad-accent); color: #fff; border-color: transparent; transform: translateY(-2px); }
.skill-tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 30; width: 216px; padding: 14px 16px 12px; border-radius: 18px; display: grid; gap: 6px; text-align: left; color: var(--text); font-weight: 400;
  background: color-mix(in srgb, var(--bg-elev) 70%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .65); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform-origin: 50% 100%;
  transform: translate(calc(-50% + var(--shift, 0px)), 8px) scale(.88); transition: opacity .2s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.skill.open .skill-tip { opacity: 1; transform: translate(calc(-50% + var(--shift, 0px)), 0) scale(1); }
.tip-n { font-size: 13px; color: var(--text-muted); }
.tip-n b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.tip-n small { font-size: 12.5px; }
.tip-range { font-size: 12.5px; font-weight: 500; }
.tip-note { font-size: 13px; color: var(--text-muted); }
.tip-bar { position: relative; height: 6px; margin-top: 2px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tip-bar i { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 99px; background: var(--grad-accent); transform: scaleX(0); transform-origin: left; }
.skill.open .tip-bar i { animation: tipGrow .9s .12s var(--ease) both; }
@keyframes tipGrow { to { transform: scaleX(1); } }
.tip-years { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-muted); }
.skills-empty { margin-top: 28px; }

/* --- texte libre sur fond gris, dégradé dosé sur la phrase clé --- */
.avail-card { background: var(--gray-card); border-color: transparent; }
.avail-card::before { display: none; }
.script-text { max-width: 25ch; font-size: clamp(30px, 5vw, 58px); line-height: 1.16; }

/* --- popup : maillage, préférences --- */
.pm-hero { background: var(--mesh), var(--accent-soft); }
.pm-prefs { margin-top: 22px; }
.pm-prefs h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.pm-prefs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pm-prefs li { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 13.5px; }
.pm-pin svg { color: #ff8f78; }

/* --- pied de page --- */
@media (max-width: 720px) { body { padding-bottom: 0; } footer { padding: 28px 0 16px; } }
footer { padding: 32px 0 36px; }
.skills-search svg { z-index: 2; }
.metrics-glow { opacity: .66; }
.script-text { font-weight: 400; }


/* ==========================================================================
   Typo des textes de description : même style que les chips du hero (13,5 px / 400)
   ========================================================================== */
:root { --desc-size: 13.5px; --desc-weight: 400; }
.metric .label, .stat-card p, .stat-card .reveal-list .chip, .cs-facts > div, .cs-stats span, .lang-menu li, .persona p, .pm-prefs li, .skills-empty {
  font-size: var(--desc-size); font-weight: var(--desc-weight);
}
.cs-facts span { font-size: 12px; font-weight: 500; }
.lang-menu li[aria-selected="true"] { font-weight: 500; }
.next-case { padding-inline: 0; }



/* ==========================================================================
   v4 — espacements, miniatures, case studies épurées
   ========================================================================== */
section { padding: clamp(40px, 6vw, 72px) 0; }
#impact { padding-top: clamp(16px, 3vw, 32px); }

/* cartes : images */
.bento-media > img { transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.bento-card:hover .bento-media > img { transform: scale(1.06); filter: blur(2px) saturate(.95); }
.bento-media.v-airbus-img { background: linear-gradient(135deg, #dfe9ff, #eadff5); }
.bento-media.v-airbus-img > img { object-fit: cover; transform: scale(1.12); }
.bento-card:hover .bento-media.v-airbus-img > img { transform: scale(1.18); }

/* témoignages : titre plus proche des cartes */
#temoignages { padding-bottom: clamp(32px, 5vw, 56px); }
#temoignages .section-head { margin-bottom: 4px; }
.riff { height: clamp(370px, 44vw, 430px); margin-top: 0; }

/* --- case studies : texte centré dans une colonne étroite, sans sommaire --- */
.cs-body { display: block; padding: 56px var(--gutter) 40px; }
.cs-content { margin: 0 auto; max-width: 600px; padding-inline: clamp(0px, 4vw, 40px); }
.cs-content p, .cs-hero .lead, .cs-stats span, .persona p, .learned p {
  font-size: var(--desc-size); font-weight: var(--desc-weight); line-height: 1.75;
}
.cs-hero .lead { max-width: 560px; }
.cs-content h2 { margin-top: 56px; }
.cs-cover-img { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--gray-card); }
.cs-cover-img img { display: block; width: 100%; height: auto; }
.cs-fig { margin: 40px 0; width: min(980px, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); border-radius: var(--radius); overflow: hidden; background: var(--gray-card); }
.cs-fig img { display: block; width: 100%; height: auto; }
.cs-fig:has(img[height="2048"]) { width: min(640px, calc(100vw - 2 * var(--gutter))); }

/* projet suivant : plus discret, avec miniature */
.next-case { max-width: 600px; margin: 0 auto; padding: 24px clamp(0px, 4vw, 40px); gap: 20px; }
.next-case .nc-text { display: grid; gap: 4px; }
.next-case .muted { font-size: var(--desc-size); }
.next-case strong { font-size: clamp(16px, 1.8vw, 19px); font-weight: 500; letter-spacing: -.01em; }
.nc-thumb { flex: none; width: 84px; height: 58px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #dfe9ff, #eadff5); transition: transform .5s var(--ease); }
.nc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next-case:hover .nc-thumb { transform: scale(1.06) rotate(-1.5deg); }
.next-case { margin-bottom: 8px; }

/* --- mobile : hero centré verticalement, tout visible au-dessus de la barre --- */
@media (max-width: 720px) {
  .hero { min-height: 100svh; min-height: 100dvh; padding: 24px 0 92px; align-items: center; }
  .hero-title { min-height: calc(clamp(30px, 4.6vw, 60px) * 7); }
}

@media (max-width: 720px) {
  .dock a { min-height: 40px; padding: 0 12px; }
}
