/* ==========================================================================
   dk2art.com — feuille de style principale
   Jimmy Dineka · Lead Product Design & Design Ops
   ========================================================================== */

/* ---------- Polices (auto-hébergées, aucune requête vers un tiers) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #E8E8ED;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --muted: #6E6E73;
  --faint: #86868B;
  --line: #E5E5EA;
  --line-2: #D2D2D7;
  --dark: #1D1D1F;
  --dark-2: #2C2C2E;
  --on-dark: #F5F5F7;
  --on-dark-muted: #A1A1A6;
  --accent: #0F766E;
  --accent-ink: #FFFFFF;
  --mint: #64D2C3;
  --mint-soft: #E3EFEC;
  --orange: #F4A259;
  --coral: #FF9F6B;
  --sun: #FFD166;
  --sky: #9BB8FF;
  --ok: #30D158;

  --radius-s: 14px;
  --radius-m: 24px;
  --radius-l: 28px;
  --radius-xl: 32px;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --section: clamp(96px, 13vw, 184px);
  --header-h: 64px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible { outline-color: var(--mint); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }
.section--tight { padding-top: clamp(72px, 9vw, 120px); }

/* ---------- Typographie ---------- */
.display {
  font-size: clamp(48px, 8.6vw, 132px);
  font-weight: 800; line-height: .95; letter-spacing: -0.058em;
}
.display--m { font-size: clamp(44px, 7vw, 112px); }
.h-section {
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 800; line-height: .98; letter-spacing: -0.055em;
}
.h-sub { font-size: clamp(32px, 4.4vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.h-card { font-size: clamp(28px, 3vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.h-3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.lead { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; font-weight: 500; letter-spacing: -0.02em; }
.kicker { font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; color: var(--accent); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.grey { color: #86868B; }
.prose p + p { margin-top: 1em; }
.prose { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.prose strong { color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer;
  transition: transform .3s var(--ease), background-color .2s ease, color .2s ease, box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); }
.btn--s { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--l { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn .arrow, .link-arrow .arrow { transition: translate .3s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow, .tile:hover .arrow { translate: 4px 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 44px; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--bg);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pill--line { background: transparent; border: 1px solid var(--line-2); }
.pill--dark { background: rgba(255,255,255,.1); color: var(--on-dark); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); flex: none; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,245,247,.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -0.05em; }
.brand__mark { width: 30px; height: 30px; }
.brand .dot-accent { color: var(--accent); }
.nav { display: flex; gap: 4px; padding: 5px; background: var(--surface); border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.nav a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .2s ease; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: var(--surface); align-items: center; justify-content: center; cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }
.progress { height: 2px; background: var(--line); }
.progress__bar { height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; padding: 0 var(--gutter) 32px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.mobile-menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 24px; }
.mobile-menu nav a {
  font-size: clamp(40px, 12vw, 56px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.1;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu nav a[aria-current="page"] { color: var(--accent); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
body.menu-open { overflow: hidden; }

/* ---------- Bento / tuiles ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.row-2 { grid-row: span 2; }
.tile {
  position: relative; background: var(--surface); border-radius: var(--radius-l);
  padding: clamp(24px, 2.6vw, 36px); overflow: hidden;
  transition: translate .45s var(--ease), box-shadow .45s var(--ease);
}
a.tile:hover, .tile--hover:hover { translate: 0 -4px; box-shadow: 0 24px 48px rgba(0,0,0,.08); }
.tile--dark { background: var(--dark); color: var(--on-dark); }
.tile--accent { background: var(--accent); color: var(--accent-ink); }
.tile--mint { background: var(--mint-soft); }
.tile__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.tile--dark .tile__label { color: var(--on-dark-muted); }
.tile--accent .tile__label { color: rgba(255,255,255,.85); }
.stat { font-size: clamp(56px, 5.6vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }

/* ---------- Animations d'apparition ---------- */
.ln-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.motion .ln { display: block; animation: rise 1.4s var(--ease) both; }
@keyframes rise { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }
.motion .fade-up { animation: fadeup 1.1s var(--ease) both; }
@keyframes fadeup { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
.motion .rv {
  opacity: 0; transform: translate3d(0, 36px, 0);
  transition: opacity 1.3s var(--ease) calc(var(--d, 0s) * .6), transform 1.5s var(--ease) calc(var(--d, 0s) * .6), translate .45s var(--ease), box-shadow .45s var(--ease);
}
.motion .rv-l { transform: translate3d(-72px, 0, 0); }
.motion .rv-r { transform: translate3d(72px, 0, 0); }
.motion .rv-s { transform: scale(.94); }
.motion .rv.in { opacity: 1; transform: none; }
.float { animation: float 7s ease-in-out infinite; }
.float-b { animation: float 7s ease-in-out -3.5s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Accueil : héros ---------- */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(32px, 4vw, 48px); }
.hero__title { max-width: 1120px; }

/* Bandeau de profil */
.brand-tile {
  background: #111A2B; color: #fff; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between;
}
.brand-tile__mark { font-size: clamp(96px, 14vw, 200px); font-weight: 800; letter-spacing: -0.07em; line-height: .85; }
.brand-tile__mark span { color: #F5A623; }
.brand-tile__caption {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.brand-tile__name { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.035em; }
.brand-tile__role { font-size: 15px; color: #A1A1A6; }
.brand-tile__orbit { display: none; }
.avail { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #F5F5F7; font-size: 13px; font-weight: 600; white-space: nowrap; }
.avail__dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: #30D158; flex: none; }
.avail__dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #30D158; animation: avail-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes avail-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@media not all { .avail__dot::after { animation: none; display: none; } }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 999px; border: 3px solid #fff; margin-left: -10px; display: inline-flex; align-items: center; justify-content: center; }
.avatars span:first-child { margin-left: 0; }

/* Logos */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.logo { display: inline-flex; align-items: center; gap: 10px; opacity: .78; transition: opacity .3s ease; }
.logo:hover { opacity: 1; }
.logo svg { width: 34px; height: 34px; }
.logo span { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }

/* ---------- Services ---------- */
.svc-grid { align-items: stretch; }
.svc { display: flex; flex-direction: column; gap: 16px; padding: 36px; isolation: isolate; }
.svc__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: start; }
.svc__title { font-size: clamp(34px, 3vw, 44px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.svc__lead { font-size: 19px; font-weight: 500; }
.svc__tags { font-size: 14px; color: var(--muted); }
.tile--dark .svc__tags { color: var(--on-dark-muted); }
.svc__foot { margin-top: auto; min-height: 96px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.svc__toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; min-height: 44px;
}
.svc__toggle svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.svc__toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.svc__panel { display: grid; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.tile--dark .svc__panel { border-top-color: #3A3A3C; }
.svc__panel[hidden] { display: none; }
.motion .svc__panel:not([hidden]) { animation: fadeup .7s var(--ease) both; }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.steps__n { font-size: 15px; font-weight: 800; color: var(--accent); padding-top: 2px; }
.tile--dark .steps__n { color: var(--mint); }
.steps__t { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.steps__d { color: var(--muted); }
.tile--dark .steps__d { color: #C7C7CC; }
.svc-dot { position: absolute; border-radius: 999px; pointer-events: none; z-index: 0; }
.svc-pic { width: 88px; height: 88px; }

/* Visuels des panneaux de service */
.mini-board { background: var(--bg); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.tile--dark .mini-board { background: var(--dark-2); }
.mini-board__title { font-size: 13px; font-weight: 700; color: var(--muted); }
.tile--dark .mini-board__title { color: var(--on-dark-muted); }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; font-size: 11px; font-weight: 700; }
.week span { padding: 10px 6px; border-radius: 10px; }
.week .d { color: #A1A1A6; padding: 0 0 2px; }
.swatches { display: flex; gap: 8px; align-items: center; }
.swatches span { width: 40px; height: 40px; border-radius: 12px; }

/* ---------- Projets empilés ---------- */
.stack-list { display: flex; flex-direction: column; gap: 32px; }
.stack {
  position: sticky; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0,0,0,.06); min-height: 460px; display: flex;
  transform-origin: 50% 0; will-change: transform, filter;
}
.stack__in { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: clamp(24px, 4vw, 48px); }
.stack__body { display: flex; flex-direction: column; gap: 12px; }
.stack__meta { display: flex; gap: 14px; font-size: 14px; font-weight: 600; }
.stack__title { font-size: clamp(36px, 4vw, 56px); font-weight: 800; line-height: .98; letter-spacing: -0.06em; }
.stack__impact { font-size: 20px; line-height: 1.35; font-weight: 500; }
.stack__chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; }
.stack__visual { border-radius: 22px; min-height: 260px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 16px; }
.stack__visual > picture, .stack__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack__visual img { width: 100%; height: 100%; object-fit: cover; }
.stack--dark { background: var(--dark); color: var(--on-dark); }
.stack--dark .stack__impact, .stack--dark .stack__meta .m { color: var(--on-dark-muted); }
.stack--light { background: var(--surface); }
.stack--light .stack__impact, .stack--light .stack__meta .m { color: var(--muted); }
.stack--mint { background: var(--mint-soft); }
.stack--mint .stack__impact, .stack--mint .stack__meta .m { color: #4A5552; }

/* Maquettes vectorielles */
.mock-phone { width: 230px; border-radius: 40px; background: #1D1D1F; padding: 9px; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.mock-phone__screen { border-radius: 32px; background: #fff; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 12px; color: #1D1D1F; }
.mock-row { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.mock-row i { width: 24px; height: 24px; border-radius: 8px; flex: none; }
.mock-row span:first-of-type { flex: 1; }
.mock-card { width: 190px; aspect-ratio: 1.58 / 1; border-radius: 22px; background: #1D1D1F; color: #F5F5F7; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 24px 48px rgba(0,0,0,.2); font-size: 11px; font-weight: 700; }
.mock-dash { width: 100%; max-width: 580px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.12); display: grid; grid-template-columns: 52px minmax(0, 1fr); color: #1D1D1F; }
.mock-dash__side { background: #1D1D1F; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.mock-dash__side span { width: 18px; height: 4px; border-radius: 2px; background: #48484A; }
.mock-dash__side span:first-child { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.mock-dash__main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock-kpis span { padding: 10px; border-radius: 10px; background: #F5F5F7; }
.mock-kpis small { display: block; font-size: 9px; color: #6E6E73; }
.mock-kpis b { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.mock-bars { height: 120px; display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-radius: 10px; background: #F5F5F7; }
.mock-bars i { flex: 1; border-radius: 4px; background: #D2D2D7; }
.mock-bars i.on { background: var(--accent); }

/* ---------- Défilement des références ---------- */
.marquee-wrap { overflow: hidden; padding-top: var(--section); }
.marquee { display: flex; gap: 56px; white-space: nowrap; will-change: transform; font-size: clamp(52px, 9vw, 136px); font-weight: 800; letter-spacing: -0.06em; line-height: 1.05; }
.marquee--2 { color: #B0B0B5; }
.marquee .sep { color: var(--accent); }

/* ---------- Approche (animations en boucle) ---------- */
.ap { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.ap__n { font-size: 80px; font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: var(--accent); }
.tile--dark .ap__n { color: var(--mint); }
.ap__stage { height: 170px; border-radius: 18px; background: var(--bg); position: relative; overflow: hidden; }
.tile--dark .ap__stage { background: var(--dark-2); }
.ap__title { margin-top: auto; }
.ap__text { color: var(--muted); }
.tile--dark .ap__text { color: #C7C7CC; }

.g-line { stroke-dasharray: 100; stroke-dashoffset: 0; }
.g-node { transform-box: fill-box; transform-origin: center; }
.g-ping { transform-box: fill-box; transform-origin: center; }
.g-type { display: inline-block; overflow: hidden; white-space: nowrap; }
.g-caret { flex: none; width: 2px; height: 14px; background: var(--mint); }
.g-screen { border-radius: 10px; background: #F5F5F7; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.g-screen > span { height: 6px; border-radius: 3px; background: #D2D2D7; }
.g-screen > span:first-child { height: 22px; border-radius: 6px; background: var(--mint); }
.g-screen > span:last-child { width: 60%; }
.motion .g-line { animation: gline 3.2s ease-in-out infinite; }
.motion .g-node { animation: gnode 3.2s var(--ease) infinite; }
.motion .g-n1 { animation-delay: .25s; } .motion .g-n2 { animation-delay: .4s; } .motion .g-n3 { animation-delay: .55s; }
.motion .g-ping { animation: gping 1.6s ease-out infinite; }
.motion .g-block { animation: gdrop 3s var(--ease) infinite; animation-delay: calc(var(--i) * .14s); }
.motion .g-type { max-width: 0; animation: gtype 4s steps(30) infinite; }
.motion .g-caret { animation: gcaret .8s steps(1) infinite; }
.motion .g-screen { opacity: 0; animation: gscreen 4s var(--ease) infinite; animation-delay: calc(1.6s + var(--i) * .2s); }
@keyframes gline { 0%, 10% { stroke-dashoffset: 100; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes gnode { 0% { transform: scale(0); } 18%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes gping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes gdrop { 0% { opacity: 0; transform: translateY(-36px) scale(.9); } 22%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }
@keyframes gtype { 0% { max-width: 0; } 40%, 100% { max-width: 260px; } }
@keyframes gcaret { 50% { opacity: 0; } }
@keyframes gscreen { 0% { opacity: 0; transform: translateY(10px); } 12%, 55% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; } }

/* ---------- Cartes de réalisations ---------- */
.work-card { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 20px; border-radius: var(--radius-m); background: var(--surface); text-align: left; border: 0; cursor: pointer; width: 100%; transition: translate .45s var(--ease), box-shadow .45s var(--ease); }
.work-card:hover { translate: 0 -4px; box-shadow: 0 24px 48px rgba(0,0,0,.08); }
.work-card__img { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__meta { padding: 0 8px; font-size: 13px; color: var(--muted); }
.work-card__title { padding: 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.2; }
.work-card__foot { margin: 4px 8px 0; display: flex; justify-content: space-between; align-items: center; }
.round-btn { width: 40px; height: 40px; border-radius: 999px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-grid > [hidden] { display: none; }

/* Visionneuse */
.lightbox { border: 0; padding: 0; margin: auto; width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: transparent; color: var(--on-dark); overflow: visible; }
.lightbox::backdrop { background: rgba(10,10,12,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: fadeup .5s var(--ease) both; }
.lightbox__inner { display: flex; flex-direction: column; gap: 16px; }
.lightbox__img { border-radius: 20px; overflow: hidden; background: #000; }
.lightbox__img img { width: 100%; height: auto; max-height: calc(100vh - 220px); object-fit: contain; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.lightbox__title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.03em; }
.lightbox__meta { color: var(--on-dark-muted); font-size: 14px; }
.lightbox__ctrls { display: flex; gap: 8px; }
.icon-btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s ease; }
.icon-btn:hover { background: rgba(255,255,255,.18); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- En-tête de page intérieure ---------- */
.page-hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero__title { max-width: 1100px; }
.page-hero__lead { margin-top: 28px; max-width: 760px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Étude de cas ---------- */
.case-hero__img { border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; position: relative; }
.case-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.case-hero__img--vector { display: flex; align-items: center; justify-content: center; padding: 24px; }
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.meta-grid dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.meta-grid dd { margin-top: 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.case-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
.case-split__label { font-size: 15px; font-weight: 700; color: var(--accent); position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery__item { border-radius: var(--radius-m); overflow: hidden; background: var(--surface-2); border: 0; padding: 0; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item--wide { grid-column: span 2; }
.next-case { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-xl); background: var(--dark); color: var(--on-dark); }
.next-case__label { font-size: 14px; font-weight: 600; color: var(--on-dark-muted); }
.next-case__title { font-size: clamp(40px, 6.4vw, 96px); font-weight: 800; letter-spacing: -0.058em; line-height: .98; margin-top: 8px; }
.note-todo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #FFF4E5; color: #8A4B00; font-size: 13px; font-weight: 600; }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tools li { padding: 16px 18px; border-radius: 16px; background: var(--surface); font-weight: 600; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- Contact ---------- */
.contact-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact-main { grid-column: span 3; background: var(--dark); color: var(--on-dark); border-radius: var(--radius-xl); padding: clamp(36px, 6vw, 72px); display: flex; flex-direction: column; gap: 40px; }
.contact-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.email-big { font-size: clamp(26px, 4vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; word-break: break-word; }
.copy-btn[data-copied="true"] { background: var(--mint); color: #0B3B35; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: var(--section); background: var(--surface); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding: 56px 0 40px; }
.site-footer h2 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 500; }
.site-footer ul a:hover { color: var(--accent); }
.site-footer__claim { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; max-width: 18ch; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Mentions légales / texte long ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-left: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .bento, .bento--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > *, .bento--3 > * { grid-column: span 2; grid-row: auto; }
  .bento > .half, .bento--3 > .half { grid-column: span 1; }
  .stack__in { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .case-split { grid-template-columns: 1fr; }
  .case-split__label { position: static; }
  .contact-hero { grid-template-columns: 1fr; }
  .contact-main { grid-column: auto; }
  .contact-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__top > :first-child { grid-column: span 2; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header-h: 60px; }
  .header-actions .btn { display: none; }
  .bento > .half, .bento--3 > .half { grid-column: span 2; }
  .brand-tile { min-height: 360px; }
  .stack { position: relative !important; top: auto !important; min-height: 0; transform-origin: 50% 100%; }
  .stack__visual { min-height: 240px; }
  .stack-list { gap: 16px; }
  .work-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .next-case { grid-template-columns: 1fr; }
  .contact-side { grid-template-columns: 1fr; }
  .svc { padding: 28px; }
  .svc__head .svc-pic { display: none; }
  .svc-dot { transform: scale(.85); transform-origin: 100% 100%; }
  .hide-s { display: none !important; }
  .marquee { gap: 32px; }
  .lightbox__img img { max-height: 60vh; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__top > :first-child { grid-column: auto; }
}

@media (max-width: 420px) {
  .stat { font-size: 56px; }
  .meta-grid { grid-template-columns: 1fr; }
  .mock-scale { zoom: .82; }
}

@media not all {
  html { scroll-behavior: auto; }
  .motion .ln, .motion .fade-up { animation: none; }
  .motion .rv { opacity: 1; transform: none; transition: none; }
  .float, .float-b,
  .motion .g-line, .motion .g-node, .motion .g-ping, .motion .g-block,
  .motion .g-type, .motion .g-caret, .motion .g-screen { animation: none !important; }
  .motion .g-type { max-width: none; }
  .motion .g-screen { opacity: 1; }
  .g-ping { display: none; }
}

@media print {
  .site-header, .mobile-menu, .marquee-wrap, .progress { display: none !important; }
  .stack { position: relative !important; }
  .motion .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------- Ajustements ---------- */
.brand-tile__caption { flex-wrap: wrap; }
.brand-tile__caption > span:first-child { min-width: 0; flex: 1 1 180px; }
@media (max-width: 760px) {
  .motion .rv { transform: translate3d(0, 40px, 0); }
  .motion .rv-l { transform: translate3d(-44px, 0, 0); }
  .motion .rv-r { transform: translate3d(44px, 0, 0); }
  .motion .rv-s { transform: scale(.9); }
  .motion .rv.in { transform: none; }
  .tile--accent[target="_blank"], a.tile.tile--accent { min-height: 150px !important; }
  .brand-tile__mark { font-size: 120px; }
  .ap { min-height: 0; }
  .ap__n { font-size: 56px; }
}

.svc-grid.has-open { align-items: start; }

/* Projet complémentaire dans une étude de cas */
.side-project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--surface, #fff); }
.side-project__img { border-radius: 18px; overflow: hidden; background: #E8E8ED; }
.side-project__img img { display: block; width: 100%; height: auto; }
.side-project__body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 760px) { .side-project { grid-template-columns: minmax(0, 1fr); border-radius: 22px; } }

/* Références clients (accueil) */
.clients { display: flex; flex-direction: column; gap: 20px; padding: 28px 32px; }
.clients__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.client { display: flex; flex-direction: column; gap: 6px; padding: 4px 24px; border-left: 1px solid var(--line-2); color: inherit; text-decoration: none; min-width: 0; }
.client:first-child { padding-left: 0; border-left: 0; }
.client__name { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.client__sector { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.client__arrow { opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s ease, transform .3s ease; color: var(--accent); }
.client:hover .client__arrow, .client:focus-visible .client__arrow { opacity: 1; transform: none; }
.client:hover .client__name { color: var(--accent); }
@media (max-width: 1000px) {
  .clients__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { padding: 16px 0 16px 20px; }
  .client:nth-child(odd) { padding-left: 0; border-left: 0; }
  .client:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .client:nth-child(4) { border-left: 1px solid var(--line-2); }
}
@media (max-width: 420px) {
  .clients { padding: 24px; }
  .client__arrow { opacity: 1; transform: none; }
}
.soft { color: #545458; }
