/* Layout : colonne de 1080px. Hero centré (photo + bande de logos + phrase).
   Grille de projets 2 colonnes. Page projet : chiffres en bento asymétrique
   (chaque carte a sa propre forme), graphique, puis récit.
   Fond quasi noir + aurore bleue discrète + étoiles + grain.
   Rayons par rôle : 30 cartes, 22 boîtes, 12 tuiles, pilule = contrôles. */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #030305;
  --surface: #0d0e12;
  --surface-2: #15161c;
  --line: rgba(255, 255, 255, 0.075);
  --fg: #f5f5f7;
  --muted: #8b8d98;
  --accent: #4099ff;   /* remplacé par la couleur du projet sur sa page */
  --accent-2: #7fd8ff;
  --ok: #34d17a;
  --star: #ffc53d;
  /* Série de graphiques (validée daltonisme, fond sombre) */
  --s1: #3a8cf0; --s2: #1aa88f; --s3: #c47a12; --s4: #b15fd0; --s5: #d4506e;

  --glass: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  --glass-edge: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -1px 0 rgba(255,255,255,.03);

  /* SF Pro sur Apple (via -apple-system), Inter ailleurs */
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", system-ui, "Segoe UI", sans-serif;
  --serif: "New York", "Instrument Serif", ui-serif, "Iowan Old Style", Georgia, serif;
  --mono: "SF Mono", ui-monospace, "Geist Mono", Menlo, Consolas, monospace;
  --display: "Bricolage Grotesque", "SF Pro Display", -apple-system, "Inter", sans-serif; /* chiffres */
  --hand: "Gochi Hand", "Comic Sans MS", "Marker Felt", cursive;                          /* bulles */

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  padding-inline: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }
svg.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.b { width: 1em; height: 1em; flex: none; fill: currentColor; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ── Fonds ───────────────────────────────────── */
.bg { position: absolute; top: 0; left: 0; width: 100%; height: 1400px; z-index: -1; pointer-events: none; overflow: hidden;
  mask: linear-gradient(#000 0 35%, rgba(0,0,0,.35) 65%, transparent 100%); }
.bg::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 55% at 50% -8%, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--accent) 8%, transparent) 55%, transparent 80%); transition: background 1s; }
html { position: relative; }
.aurora span { position: absolute; width: 60vmax; aspect-ratio: 1; border-radius: 50%; filter: blur(100px); mix-blend-mode: screen; transition: background 1s; }
.aurora span:nth-child(1) { background: var(--accent); top: -34vmax; left: -12vmax; opacity: .13; animation: drift1 28s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { background: var(--accent-2); top: -26vmax; right: -28vmax; opacity: .07; animation: drift2 34s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { background: #1b3cff; top: 10vmax; left: 20vmax; opacity: .06; animation: drift1 40s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, 18vmax) scale(.9); } }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 8 - 1px), rgba(255,255,255,.03) calc(100% / 8 - 1px) calc(100% / 8));
  mask: radial-gradient(70% 60% at 50% 15%, #000, transparent 80%);
}
.grain {
  position: absolute; inset: -50%; opacity: .06;
  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='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }

.wrap { max-width: var(--wrap); margin-inline: auto; }

/* ── Liquid glass ────────────────────────────── */
.glass {
  position: relative; isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--glass-edge), 0 10px 30px -14px rgba(0,0,0,.8);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(120px circle at var(--x, 50%) var(--y, 0%), rgba(255,255,255,.2), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.glass:hover::after { opacity: 1; }
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 8px 0 20px; border: 0; border-radius: 999px;
  color: var(--fg); font: 500 15px/1 var(--font); letter-spacing: -0.01em; cursor: pointer;
  transition: transform .45s var(--spring), box-shadow .3s;
}
.btn:not(:has(.chip)) { padding-right: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); transition-duration: .15s; }
.btn .chip {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  background: rgba(255,255,255,.1); transition: transform .45s var(--spring), background .3s;
}
.btn:hover .chip { transform: rotate(-45deg); }
.btn .chip.still { transform: none !important; }
.btn .b { font-size: 17px; }
.btn.primary {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.12), 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn.primary .chip { background: rgba(255,255,255,.22); }
.btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.12), 0 14px 40px -8px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn.light { color: #0b0b0f; background: linear-gradient(180deg, #fff, #e4e4ea); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.08), 0 10px 30px -12px rgba(0,0,0,.6); }
.btn.light .chip { background: #0b0b0f; color: #fff; }
.btn .mono { font-family: var(--mono); font-size: 13.5px; font-weight: 400; }

/* ── Header ─────────────────────────────────── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 16px;
  max-width: var(--wrap); margin-inline: auto;
}
.top::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 45%, color-mix(in srgb, var(--bg) 75%, transparent) 75%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  mask: linear-gradient(#000 55%, transparent);
}
.brand { display: grid; line-height: 1.25; }
.brand b { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.roles { height: 1.25em; overflow: hidden; color: var(--muted); font-size: 14px; }
.roles span { display: block; animation: roll 12s infinite var(--ease); }
@keyframes roll {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-100%); }
  50%, 70% { transform: translateY(-200%); }
  75%, 95% { transform: translateY(-300%); }
  100% { transform: translateY(-400%); }
}
.bar { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: rgba(255,255,255,.08); }
.nav a.cta { color: #fff; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }

/* Sélecteur de langue */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; color: var(--fg); font: 600 13px/1 var(--font); cursor: pointer; }
.lang-btn .i { color: var(--muted); transition: transform .35s var(--spring); }
.lang-btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.flag { width: 22px; height: 16px; border-radius: 4px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.15); display: block; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; margin: 0; list-style: none; border-radius: 18px;
  background: rgba(20,21,27,.92); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--glass-edge), 0 24px 60px -20px rgba(0,0,0,.9);
  transform-origin: top right; animation: pop .3s var(--spring);
}
@keyframes pop { from { transform: scale(.92) translateY(-6px); opacity: 0; } }
.lang-menu button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--fg); font: 500 15px/1 var(--font); cursor: pointer; text-align: left; }
.lang-menu button:hover { background: rgba(255,255,255,.07); }
.lang-menu .i { margin-left: auto; color: var(--accent); }

/* ── Hero ───────────────────────────────────── */
.hero { display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: 40px 72px; }
.portrait { position: relative; width: 200px; aspect-ratio: 1; max-width: 100%; }
.portrait::before {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), transparent 55%, var(--accent));
  filter: blur(22px); opacity: .4; animation: spin 14s linear infinite;
}
.portrait::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.portrait .face {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, var(--surface-2), #030305);
  display: grid; place-items: center; font-size: 84px; font-weight: 600; color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Bande de logos : padding vertical pour que le zoom ne soit pas coupé */
.marquee {
  width: min(720px, 100%); overflow: hidden; padding-block: 18px; margin-block: -12px;
  mask: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.marquee .track { display: flex; gap: 14px; width: max-content; animation: slide 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }
.logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none;
  color: var(--c); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #15161c), #0c0d11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .45s var(--spring), box-shadow .3s;
}
/* Icône d'app iOS : fond plein, reflet en haut, ombre douce */
.logo.app {
  position: relative; overflow: hidden; container-type: size; color: #fff;
  background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 16px -8px rgba(0,0,0,.9);
}
.logo.app::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 45%); }
.logo.app .g { width: 56%; height: 56%; object-fit: contain; }
.logo.app.img .g { width: 60%; height: 60%; }
.logo.app.ui .g { stroke-width: 1.8; }
.logo.app.text .g { width: auto; height: auto; font-family: var(--display); font-weight: 800; font-size: 44cqw; letter-spacing: -0.04em; line-height: 1; }
.logo.app.full { background: none; box-shadow: 0 6px 16px -8px rgba(0,0,0,.9); }
.logo.app.full::after { display: none; }
.logo.app.full img { width: 100%; height: 100%; object-fit: cover; }
.blogo { width: 20px; height: 20px; object-fit: contain; flex: none; }
.marquee .logo { cursor: default; width: 56px; height: 56px; border-radius: 15px; }
.marquee .logo:hover { transform: scale(1.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent), 0 8px 22px -6px color-mix(in srgb, var(--c) 60%, transparent); position: relative; z-index: 1; }

/* Bulle de texte façon BD (positionnée en fixed par le JS, hors de la zone masquée) */
.tip {
  position: fixed; z-index: 50; left: 0; top: 0; pointer-events: none;
  padding: 8px 16px 9px; border-radius: 20px 24px 18px 26px / 22px 18px 24px 20px;
  font: 400 21px/1.15 var(--hand); letter-spacing: .01em; white-space: nowrap; color: #121214;
  background: #fff; border: 2.5px solid #121214; box-shadow: 4px 5px 0 #121214;
  translate: -50% calc(-100% - 16px); opacity: 0; scale: .6; rotate: -3deg; transform-origin: 50% 100%;
  transition: opacity .15s, scale .45s var(--spring), rotate .45s var(--spring);
}
.tip.on { opacity: 1; scale: 1; rotate: -1.5deg; }
.tip::after { content: ""; position: absolute; left: 44%; bottom: -9px; width: 14px; height: 14px; rotate: 50deg;
  background: #fff; border-right: 2.5px solid #121214; border-bottom: 2.5px solid #121214; box-shadow: 4px 4px 0 -1px transparent; }
.tip b { font-weight: 400; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--c, var(--accent)) 55%, transparent) 58% 92%, transparent 92%); padding-inline: 2px; }

.headline { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.06; max-width: 17ch; }
.headline em {
  background: linear-gradient(100deg, var(--fg) 20%, var(--accent) 50%, var(--fg) 80%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite;
  padding-right: .06em;
}
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }

.open {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #c9f7dc;
  background: color-mix(in srgb, var(--ok) 10%, rgba(10,10,14,.6));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 35%, transparent), 0 0 24px -6px color-mix(in srgb, var(--ok) 45%, transparent);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 70%, 100% { transform: scale(2.8); opacity: 0; } }

/* ── Sections ───────────────────────────────── */
.section { display: grid; gap: 28px; padding-block: 44px; scroll-margin-top: 90px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { color: var(--muted); margin-top: 6px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.filters { display: flex; gap: 2px; padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.filters button { font: 500 14px/1 var(--font); min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 0; background: transparent; color: var(--muted); transition: color .2s, background .3s; }
.filters button[aria-pressed="true"] { background: rgba(255,255,255,.14); color: var(--fg); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }

/* Bordure lumineuse qui suit le curseur */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--c, var(--accent)) 85%, transparent), transparent 60%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  opacity: 0; transition: opacity .35s;
}
.spot:hover::before { opacity: 1; }

/* ── Cartes projet ──────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { display: grid; gap: 10px; border-radius: 30px; padding: 10px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.05); transition: transform .5s var(--ease); }
a.card:hover { transform: translateY(-5px); }
.card .stage { border-radius: 22px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px 12px; }
.card-foot > div { min-width: 0; }
.card-foot .label { display: block; margin-bottom: 4px; }
.card-foot h3 { font-size: 24px; }
.card-foot p { color: var(--muted); font-size: 15px; }
.app-icon { flex: none; width: 50px; height: 50px; border-radius: 13px; overflow: hidden; display: grid; place-items: center;
  font-weight: 700; font-size: 21px; color: #fff;
  background: linear-gradient(145deg, var(--c2), var(--c)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 24px -8px var(--c); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.card.soon { opacity: .7; }

/* ── Scène (fond coloré + mockups) ──────────── */
.stage {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 60% at 30% 20%, color-mix(in srgb, var(--c) 50%, transparent), transparent 70%),
    radial-gradient(60% 60% at 80% 90%, color-mix(in srgb, var(--c2) 35%, transparent), transparent 70%),
    #0a0b0f;
}
.stage.wide { aspect-ratio: 16 / 9; border-radius: 30px; box-shadow: inset 0 0 0 1px var(--line); }
.phones { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.phone {
  --w: clamp(96px, 26%, 190px);
  width: var(--w); aspect-ratio: 9 / 19.5; border-radius: calc(var(--w) * .16);
  padding: calc(var(--w) * .035); background: #0a0a0c;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.05), 0 30px 60px -20px rgba(0,0,0,.8);
  transition: transform .7s var(--ease);
}
.phone:nth-child(1) { transform: translateX(12%) rotate(-8deg) translateY(4%); z-index: 1; }
.phone:nth-child(2) { transform: translateX(-12%) rotate(7deg) translateY(-4%); z-index: 2; }
a.card:hover .phone:nth-child(1) { transform: translateX(4%) rotate(-11deg) translateY(2%); }
a.card:hover .phone:nth-child(2) { transform: translateX(-4%) rotate(10deg) translateY(-7%); }
.stage.wide .phone { --w: clamp(110px, 20%, 230px); }
.screen { width: 100%; height: 100%; border-radius: calc(var(--w) * .13); overflow: hidden; background: #111015; position: relative; }
.screen img { width: 100%; height: 100%; object-fit: cover; }

.fake { display: grid; align-content: start; gap: 8%; height: 100%; padding: 22% 10% 10%; font-size: calc(var(--w) * .07); color: #eee; }
.fake .t { font-weight: 600; font-size: 1.35em; }
.fake .orb { justify-self: center; width: 72%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 75%, transparent) 0 38%, color-mix(in srgb, var(--c) 22%, transparent) 39% 62%, color-mix(in srgb, var(--c) 8%, transparent) 63%);
  animation: breathe 8s ease-in-out infinite; }
.fake .orb b { font-size: 1.6em; color: #fff; }
.fake .cap { text-align: center; color: #aaa; font-size: .9em; }
.fake .row { height: 1.9em; border-radius: .6em; background: rgba(255,255,255,.07); padding-inline: .7em; display: flex; align-items: center; font-size: .78em; color: #bbb; white-space: nowrap; overflow: hidden; }
.fake.cal { grid-template-columns: repeat(7, 1fr); gap: 5%; align-content: center; padding: 14% 10%; }
.fake.cal i { aspect-ratio: 1; border-radius: 30%; background: rgba(255,255,255,.07); }
.fake.cal i.on { background: var(--c); }
.fake.cal .t { grid-column: 1 / -1; margin-bottom: 8%; }
@keyframes breathe { 0%, 100% { transform: scale(.86); } 50% { transform: scale(1); } }

.browser { width: 78%; aspect-ratio: 16 / 10.5; border-radius: 12px; background: #111015; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -30px rgba(0,0,0,.9);
  transform: perspective(1200px) rotateX(8deg) rotateZ(-3deg); transition: transform .7s var(--ease); }
a.card:hover .browser { transform: perspective(1200px) rotateX(3deg) rotateZ(-1deg) scale(1.03); }
.browser .bar { height: 7%; display: flex; align-items: center; gap: 1.2%; padding-inline: 2.5%; background: #19181d; }
.browser .bar i { width: 1.6%; aspect-ratio: 1; border-radius: 50%; background: #3a3940; }
.browser .body { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto 1fr; gap: 3%; padding: 4%; height: 93%; }
.browser .kpi { border-radius: 8px; background: rgba(255,255,255,.05); padding: 8% 10%; display: grid; gap: 6px; }
.browser .kpi i { height: 5px; width: 50%; border-radius: 3px; background: rgba(255,255,255,.15); }
.browser .kpi b { height: 12px; width: 70%; border-radius: 3px; background: var(--c); opacity: .85; }
.browser .chart { grid-column: 1 / -1; border-radius: 8px; background: rgba(255,255,255,.04); display: flex; align-items: end; gap: 3%; padding: 4%; }
.browser .chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(var(--c), color-mix(in srgb, var(--c2) 50%, transparent)); transform-origin: bottom; animation: grow 1.2s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes grow { from { transform: scaleY(.15); } }
.browser img { width: 100%; height: 93%; object-fit: cover; object-position: top; }

/* ── Instagram ──────────────────────────────── */
.insta { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.ig-card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 16px; align-content: start; justify-items: start;
  padding: 26px; border-radius: 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.ig-card::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 90%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(221,42,123,.35), rgba(129,52,175,.15) 45%, transparent 70%); filter: blur(20px); }
.ig-ava { width: 92px; height: 92px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); animation: spin 10s linear infinite; }
.ig-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); animation: spin 10s linear infinite reverse; }
.ig-id b { display: block; font-size: 17px; letter-spacing: .01em; }
.ig-id span { color: var(--muted); font-size: 14px; }
.ig-count { display: grid; }
.ig-count b { font-family: var(--display); font-size: 72px; font-weight: 800; letter-spacing: -0.04em; line-height: .95;
  background: linear-gradient(95deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ig-count span { color: var(--muted); }
.ig-btn { margin-top: auto; }

.viral { display: grid; gap: 18px; min-width: 0; align-content: start; }
.viral-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.viral-head h2 { font-size: clamp(26px, 3.2vw, 34px); }
.viral-head p { color: var(--muted); margin-top: 6px; max-width: 46ch; }
.viral-nav { display: flex; gap: 8px; }
.viral-nav .btn { padding: 0 7px; }
/* Le padding vertical laisse la place au survol (sinon l'overflow coupe la carte qui monte) ;
   les fondus gauche/droite n'apparaissent que s'il reste des vidéos de ce côté (--fl / --fr posés par le JS) */
.reels {
  --fl: 0px; --fr: 72px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block: 14px; margin-block: -14px; scroll-padding-inline: 2px;
  mask: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
}
.reels::-webkit-scrollbar { display: none; }
.reel {
  position: relative; flex: 0 0 clamp(150px, 22%, 200px); aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 20px; overflow: hidden; cursor: pointer;
  scroll-snap-align: start; color: #fff; text-align: left; font: inherit;
  background: linear-gradient(160deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 40) 60% 18%));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: transform .45s var(--spring);
}
.reel:hover { transform: translateY(-4px) scale(1.02); }
.reel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.reel-ph img { width: 34%; opacity: .5; }
.reel-rank { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 13px; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.reel-info { position: absolute; inset: auto 0 0 0; display: grid; gap: 4px; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.reel-views { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.reel-views .i { fill: currentColor; font-size: 14px; }
.reel-cap { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.lb-frame { position: relative; width: min(400px, 100%); display: grid; gap: 10px; animation: pop .4s var(--spring); }
.lb-frame video { width: 100%; max-height: 80vh; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; object-fit: cover; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.lb-bar span { display: inline-flex; align-items: center; gap: 6px; }
.lb-bar a { color: var(--fg); }
.lb-close { position: absolute; top: 10px; right: 10px; padding: 0 7px; }

/* ── Parcours ───────────────────────────────── */
/* Frise : colonne date | rail + point | carte. Le rail est un segment par étape, donc continu. */
.st-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-kpis > div { display: grid; gap: 4px; padding: 18px; border-radius: 22px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
.st-kpis b { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.04em; line-height: 1.05;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-kpis span { color: var(--muted); font-size: 13px; line-height: 1.35; }

.story { list-style: none; margin: 0; padding: 0; display: grid; }
.st { display: grid; grid-template-columns: 132px 32px minmax(0, 1fr); column-gap: 14px; }
.st-when { display: grid; align-content: start; justify-items: end; text-align: right; gap: 2px; padding-top: 18px; }
.st-when b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; line-height: 1; }
.st-when span { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.4; }
.st-dot { position: relative; }
.st-dot::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; translate: -50% 0;
  background: linear-gradient(color-mix(in srgb, var(--c) 55%, transparent), rgba(255,255,255,.07)); }
.st:first-child .st-dot::before { top: 26px; }
.st:last-child .st-dot::before { bottom: auto; height: 26px; }
.st-dot::after { content: ""; position: absolute; left: 50%; top: 22px; width: 12px; height: 12px; translate: -50% 0; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px color-mix(in srgb, var(--c) 45%, transparent), 0 0 18px var(--c); }
.st-card {
  position: relative; display: grid; gap: 14px; margin-bottom: 14px; padding: 18px 20px; border-radius: 22px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, var(--surface-2)), var(--surface) 60%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 color-mix(in srgb, var(--c) 30%, transparent);
  transition: box-shadow .3s;
}
.st-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), inset 0 1px 0 color-mix(in srgb, var(--c) 45%, transparent); }
.st-head { display: flex; align-items: center; gap: 14px; }
.st-link { display: block; border-radius: 14px; }
.st-link h3 .i { font-size: 16px; color: var(--muted); margin-left: 6px; vertical-align: -1px; transition: color .2s, translate .3s var(--spring); }
.st-link:hover h3 .i { color: #fff; translate: 2px -2px; }
.st-ico { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 65%, #000));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 22px -10px var(--c); }
.st-ico .i { stroke-width: 2.1; }
.st-ico.letter { font-family: var(--display); font-weight: 800; font-size: 24px; }
.st-ico.img { background: #000; }
.st-ico.img img { width: 100%; height: 100%; object-fit: cover; }
.st-name { display: grid; gap: 1px; min-width: 0; }
.st-name h3 { font-size: 20px; letter-spacing: -0.025em; }
.st-name span { color: color-mix(in srgb, var(--c) 55%, #c9ccd6); font-size: 14px; }
.st-status { margin-left: auto; align-self: start; flex: none; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); }
.st-sum { color: #b4b7c2; max-width: 68ch; }
.st-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.st-stats > div { display: grid; gap: 1px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.st-stats b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; line-height: 1.1; color: color-mix(in srgb, var(--c) 35%, #fff); }
.st-stats span { font-size: 12px; color: var(--muted); }
.st-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.st-tools .logo { width: 30px; height: 30px; border-radius: 8px; cursor: default; }
.st-tools .logo:hover { transform: translateY(-3px) scale(1.12); }
.st-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 500; color: #dfe1e8; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; }
.st-more summary::-webkit-details-marker { display: none; }
.st-more summary:hover { background: rgba(255,255,255,.09); }
.st-more summary .i { transition: rotate .3s var(--spring); }
.st-more[open] summary .i { rotate: 180deg; }
.st-more p { color: #b4b7c2; max-width: 68ch; margin-top: 12px; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--c) 45%, transparent); }
.st.compact .st-card { padding: 14px 18px; gap: 10px; }
.st.compact .st-ico { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
.st.compact .st-name h3 { font-size: 17px; }
.st.compact .st-dot::after { width: 9px; height: 9px; top: 20px; }
.st.compact .st-when { padding-top: 14px; }

.st-extras { display: grid; gap: 12px; padding: 20px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255,255,255,.02); }
.st-extras h3 { font-size: 16px; color: var(--muted); font-weight: 500; }
.st-extras ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-extras li { padding: 7px 14px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }

@media (max-width: 720px) {
  .st-kpis { grid-template-columns: 1fr 1fr; }
  .st { grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: "dot when" "dot card"; column-gap: 12px; }
  .st-dot { grid-area: dot; }
  .st-when { grid-area: when; justify-items: start; text-align: left; display: flex; align-items: baseline; gap: 8px; padding: 12px 0 8px; }
  .st-when b { font-size: 20px; }
  .st-card { grid-area: card; padding: 16px; }
  .st-dot::after, .st.compact .st-dot::after { top: 16px; }
  .st:first-child .st-dot::before { top: 20px; }
  .st-head { flex-wrap: wrap; row-gap: 10px; }
  .st-status { margin-left: 0; order: 3; }
}

/* ── Contact (bleu profond, se détache du fond noir) ── */
.contact {
  --c: var(--accent);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; text-align: center; gap: 22px; padding: 72px 20px 56px; border-radius: 36px;
  background:
    radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%),
    linear-gradient(180deg, #0c1a33, #070b16);
  box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--accent) 55%, transparent);
}
.contact::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--angle), rgba(255,255,255,.1) 0 55%, var(--accent) 72%, #fff 80%, var(--accent-2) 86%, rgba(255,255,255,.1) 96%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  animation: turn 6s linear infinite;
}
@keyframes turn { to { --angle: 1turn; } }
.contact .grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask: radial-gradient(60% 70% at 50% 40%, #000, transparent 75%); }
.contact .beam { position: absolute; z-index: -1; left: 50%; top: -45%; width: 70%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: conic-gradient(from var(--angle), var(--accent), var(--accent-2), #1b3cff, var(--accent)); filter: blur(80px); opacity: .3; animation: turn 12s linear infinite; }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters .logo { position: absolute; width: 50px; height: 50px; font-size: 24px; border-radius: 14px; animation: bob 6s ease-in-out infinite;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #122038), #0a1224); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 30px -12px rgba(0,0,0,.8); }
.floaters .logo:nth-child(1) { left: 7%; top: 18%; rotate: -12deg; }
.floaters .logo:nth-child(2) { left: 14%; top: 62%; rotate: 8deg; animation-delay: -1.5s; }
.floaters .logo:nth-child(3) { left: 4%; top: 82%; rotate: -4deg; animation-delay: -3s; width: 40px; height: 40px; font-size: 19px; }
.floaters .logo:nth-child(4) { right: 7%; top: 16%; rotate: 10deg; animation-delay: -2s; }
.floaters .logo:nth-child(5) { right: 14%; top: 58%; rotate: -10deg; animation-delay: -4s; }
.floaters .logo:nth-child(6) { right: 5%; top: 82%; rotate: 6deg; animation-delay: -.8s; width: 40px; height: 40px; font-size: 19px; }
@keyframes bob { 50% { transform: translateY(-14px); } }
.contact h2 { font-size: clamp(32px, 5vw, 58px); max-width: 15ch; line-height: 1.04; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.contact h2 em { color: #bcdcff; }
.contact .sub { color: #b4c0d6; max-width: 44ch; }

.open-card {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 20px 14px 14px; border-radius: 22px; max-width: 100%;
  background: color-mix(in srgb, var(--ok) 9%, rgba(6,10,18,.8));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.08), 0 0 36px -10px color-mix(in srgb, var(--ok) 40%, transparent);
  animation: glow 4s ease-in-out infinite;
}
@keyframes glow { 50% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.08), 0 0 48px -8px color-mix(in srgb, var(--ok) 50%, transparent); } }
.open-card .ring { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 16%, transparent); }
.open-card b { display: block; font-weight: 600; color: #d6fbe6; }
.open-card span { color: #a9b6c9; font-size: 14px; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Pied de page : bande plus claire que le fond, filet bleu en haut, nom géant en filigrane */
.foot {
  position: relative; overflow: hidden; margin: 40px -16px 0; padding-inline: 16px; /* -16px : annule la marge latérale du body, la bande touche les bords */
  background: linear-gradient(180deg, #0b1220, #070a12 70%);
  border-top: 1px solid rgba(255,255,255,.06);
}
.foot::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 70%, transparent);
}
.foot::after {
  content: ""; position: absolute; left: 50%; top: -160px; width: 760px; height: 320px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
}
.foot-in { position: relative; z-index: 1; padding-top: 56px; }
.foot-main { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-id { display: grid; justify-items: start; gap: 6px; }
.foot-id b { font-size: 22px; letter-spacing: -0.02em; }
.foot-id > span:not(.open) { color: var(--muted); }
.foot-id .open { margin-top: 10px; }
.foot-col { display: grid; align-content: start; gap: 4px; }
.foot-col > a { color: #c9ccd6; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; gap: 8px; width: fit-content; transition: color .2s; }
.foot-col > a:hover { color: #fff; }
.foot-mail .i { color: var(--accent); }
.foot-soc { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.foot-soc .btn { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding-block: 22px; }
.foot-bottom .btn { min-height: 44px; font-size: 13px; }
.foot-word {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: .78; text-align: center;
  font-size: clamp(90px, 22vw, 260px); margin-bottom: -0.12em; user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 720px) {
  .foot-main { grid-template-columns: 1fr 1fr; }
  .foot-id { grid-column: 1 / -1; }
}

/* ── Page projet ────────────────────────────── */
.p-hero { display: grid; justify-items: center; text-align: center; gap: 14px; padding-block: 28px 36px; }
.p-hero .app-icon { width: 76px; height: 76px; border-radius: 21px; font-size: 32px; }
.p-hero h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1; letter-spacing: -0.045em; }
.p-hero > p { color: var(--muted); font-size: 19px; }
.back { justify-self: start; }

/* Badges des stores */
.stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px 0 14px; border-radius: 13px;
  background: #000; color: #fff; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 12px 30px -14px rgba(0,0,0,.9);
  transition: transform .45s var(--spring), box-shadow .3s;
}
.store:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 16px 34px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.store:active { transform: scale(.97); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1.1; letter-spacing: .01em; opacity: .9; }
.store strong { display: block; font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }

/* Bento de chiffres : 3 cartes de formes différentes + graphique pleine largeur */
.kpis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.kpi-card { position: relative; overflow: hidden; border-radius: 26px; padding: 24px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.kpi-card .k-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.kpi-card .k-label .i { font-size: 16px; }
.k-big { font-family: var(--display); font-size: clamp(42px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.k-big small { font-family: var(--font); font-size: .36em; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; margin-left: 4px; }

/* 1. Téléchargements : fond dégradé de la couleur de l'app, courbe en bas */
.k-dl { grid-column: span 5; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 32%, #0b1020), #080a10 75%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.1); padding-bottom: 0; }
.k-dl .k-label { color: color-mix(in srgb, var(--accent) 50%, #fff); }
.k-dl .spark { margin-inline: -24px; width: calc(100% + 48px); }

/* 2. Note : carte claire façon App Store */
.k-rate { grid-column: span 4; background: linear-gradient(180deg, #f7f7f9, #e9eaef); color: #0b0b0f; }
.k-rate .k-label { color: #6b6d78; }
.k-rate .k-big small { color: #6b6d78; }
.stars { position: relative; display: inline-flex; font-size: 20px; color: #d3d4da; width: max-content; }
.stars .fill { position: absolute; inset: 0; overflow: hidden; color: var(--star); white-space: nowrap; display: inline-flex; }
.stars svg { fill: currentColor; stroke: none; }
.dist { display: grid; gap: 5px; }
.dist div { display: grid; grid-template-columns: 14px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font-size: 12px; color: #6b6d78; font-variant-numeric: tabular-nums; }
.dist i { height: 6px; border-radius: 3px; background: #d8d9df; overflow: hidden; display: block; }
.dist i b { display: block; height: 100%; border-radius: 3px; background: #0b0b0f; width: var(--w); transform-origin: left; animation: bar 1s var(--ease) both; }
.dist span:last-child { text-align: right; }
@keyframes bar { from { transform: scaleX(0); } }

/* 3. Heures : cadran + répartition */
.k-hours { grid-column: span 3; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.dial { position: relative; width: 100%; max-width: 150px; aspect-ratio: 1; justify-self: center; }
.dial svg { width: 100%; height: 100%; rotate: -90deg; }
.dial circle { fill: none; stroke-width: 12; }
.dial .seg { stroke-dasharray: var(--len) 999; stroke-dashoffset: var(--off); animation: dial 1.2s var(--ease) both; }
@keyframes dial { from { stroke-dasharray: 0 999; } }
.dial .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial .center b { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dial .center span { font-size: 12px; color: var(--muted); }
.legend { display: grid; gap: 6px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.legend span { color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }

/* 4. Graphique d'évolution */
.k-chart { grid-column: 1 / -1; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; gap: 20px; }
.k-chart .head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.k-chart h3 { font-size: 22px; }
.k-chart .head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.jump { display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.jump .from { font-family: var(--display); font-size: 28px; color: var(--muted); font-weight: 600; letter-spacing: -0.03em; }
.jump .arrow { color: var(--muted); }
.jump .to { font-family: var(--display); font-size: 52px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.jump .delta { align-self: center; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #b9f5d0; background: color-mix(in srgb, var(--ok) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent); }

/* Graphiques SVG (partagés) */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart .axis-t { fill: var(--muted); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.6s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.chart .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.chart .ann-l { stroke: rgba(255,255,255,.22); stroke-dasharray: 3 3; }
.chart .ann-t { fill: var(--muted); font: 500 11px var(--font); }
.chart .val { fill: var(--fg); font: 700 13px var(--font); font-variant-numeric: tabular-nums; }
.chart .cross { stroke: rgba(255,255,255,.35); stroke-width: 1; opacity: 0; transition: opacity .15s; }
.chart .hover-pt { fill: var(--fg); stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity .15s; }
.chart.hovering .cross, .chart.hovering .hover-pt { opacity: 1; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tip { position: absolute; top: 0; left: 0; pointer-events: none; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; white-space: nowrap; color: var(--fg);
  background: rgba(22,23,30,.96); box-shadow: var(--glass-edge), 0 10px 24px -10px #000; translate: -50% calc(-100% - 14px); opacity: 0; transition: opacity .15s; z-index: 2; }
.chart.hovering .chart-tip { opacity: 1; }
.chart-tip b { font-variant-numeric: tabular-nums; }
.chart-tip span { color: var(--muted); margin-right: 6px; }
.spark .line { stroke: color-mix(in srgb, var(--accent) 60%, #fff); }
.spark .hover-pt { stroke: color-mix(in srgb, var(--accent) 60%, #fff); }

/* Aperçu / stack / faits */
.bento { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.box { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.04); border-radius: 22px; padding: 28px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.box h2 { font-size: 24px; }
.box p { color: color-mix(in srgb, var(--fg) 75%, var(--muted)); }
.box p:first-of-type { color: var(--fg); font-size: 18px; }
.side { display: grid; gap: 16px; align-content: start; }
.stack { display: grid; gap: 12px; }
.tool { display: flex; align-items: center; gap: 12px; }
.tool .logo { width: 40px; height: 40px; font-size: 19px; }
.tool .logo.txt { font-size: 14px; font-weight: 600; }
.tool b { display: block; font-weight: 500; }
.tool span { color: var(--muted); font-size: 13px; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: 15px; }
.facts div:last-child { border: 0; padding: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

.gallery { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.gallery .stage { border-radius: 30px; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: auto; min-height: 380px; }
.gallery .phone { --w: clamp(120px, 34%, 210px); }
.gallery .stage.solo .phone { transform: rotate(-6deg); }

.story { display: grid; gap: 16px; margin-top: 16px; }
.story .box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px; }
.story .box h2 { font-size: 22px; color: var(--accent); }
.story .box > div { display: grid; gap: 14px; }
.story .box p:first-of-type { font-size: inherit; color: color-mix(in srgb, var(--fg) 75%, var(--muted)); }

.next { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 28px;
  border-radius: 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.next h3 { font-size: clamp(28px, 4vw, 40px); }
.next .chip { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--c); transition: transform .5s var(--spring); }
.next:hover .chip { transform: rotate(-45deg) scale(1.08); }

/* ── Page Outils ────────────────────────────── */
.tools-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-block: 56px 72px; }
.tools-intro { display: grid; gap: 18px; }
.tools-intro h1 { font-size: clamp(48px, 7vw, 84px); line-height: .95; letter-spacing: -0.05em; }
.tools-intro p { color: var(--muted); font-size: 18px; max-width: 32ch; }
.tools-grid { display: grid; gap: 56px; padding-bottom: 40px; }
.tool-group h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 18px; }
.tool-group h2 i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.tool-group h2 span { margin-left: auto; font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tcard { display: grid; gap: 6px; padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.04); transition: transform .45s var(--spring); }
.tcard:hover { transform: translateY(-4px); }
.tc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tc-top .logo { width: 64px; height: 64px; border-radius: 17px; }
.tcard:hover .tc-top .logo { transform: rotate(-6deg) scale(1.06); }
.tc-top span { font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.tc-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.tc-h { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); }
.tc-h b { font-size: 38px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.tc-h span { color: var(--muted); font-size: 16px; font-weight: 700; }
.tc-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 10px; }
.tc-bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); transform-origin: left; animation: bar 1.1s var(--ease) both; animation-delay: calc(var(--d) * 50ms); }

.tally { display: grid; gap: 18px; }
.tally .big { display: flex; align-items: flex-start; gap: 6px; font-family: var(--display); font-weight: 800; line-height: .85; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tally .big b { font-size: clamp(72px, 9vw, 112px); font-weight: 800;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--accent) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tally .big sup { font-size: 28px; color: var(--accent); margin-top: 6px; }
.tally .cap { color: var(--muted); font-size: 15px; }
.tally .row { display: flex; gap: 0; }
.tally .row div { flex: 1; display: grid; gap: 2px; padding-right: 16px; }
.tally .row div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.tally .row b { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tally .row span { color: var(--muted); font-size: 13px; }
.split { display: flex; gap: 3px; height: 8px; }
.split i { border-radius: 4px; background: var(--c); flex: var(--f); }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.split-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* Apparition au changement de page (état final visible) */
main > * { animation: rise .7s var(--ease) both; }
main > *:nth-child(2) { animation-delay: .06s; }
main > *:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(16px); } to { transform: none; } }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .k-dl { grid-column: span 12; }
  .k-rate, .k-hours { grid-column: span 6; }
}
@media (max-width: 820px) {
  .grid, .bento, .gallery, .tools-top, .insta { grid-template-columns: minmax(0, 1fr); }
  .tools-top { padding-block: 32px 48px; gap: 32px; }
  .reel { flex-basis: 44%; }
  .story .box { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nav a:not(.cta):not(.keep) { display: none; }
  .hero { padding-block: 24px 48px; }
  .portrait { width: 160px; }
  .gallery .stage { min-height: 300px; }
  .floaters .logo:nth-child(n+2):not(:nth-child(4)) { display: none; }
  .floaters .logo:nth-child(1) { left: 5%; top: 5%; }
  .floaters .logo:nth-child(4) { right: 5%; top: 5%; }
  .floaters .logo { width: 40px; height: 40px; font-size: 19px; }
  .contact { padding-top: 84px; }
}
@media (max-width: 560px) {
  .k-rate, .k-hours { grid-column: span 12; }
  .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tcard { padding: 14px; }
  .tc-top .logo { width: 52px; height: 52px; }
  .tc-h b { font-size: 30px; }
  .marquee .logo { width: 48px; height: 48px; }
  .lang-btn .code { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
