/* kevin.kameni.fr — feuille unique, écrite à la main.
   Direction : « je construis des produits, et je sécurise ce qui les fait tourner ».
   Sombre par défaut, clair par bascule ([data-theme="light"]). Aucun style en ligne (CSP). */

:root {
  --bg: #0b0b0d;
  --bg-2: #121216;
  --bg-3: #1a1a21;
  --fg: #f3f0ea;
  --fg-2: #b6b1a8;
  --fg-3: #7c776f;
  --line: rgba(243, 240, 234, .10);
  --line-2: rgba(243, 240, 234, .22);
  --accent: #ff6b35;
  --accent-ink: #1a0d06;
  --accent-soft: rgba(255, 107, 53, .14);
  --ok: #3ddc84;
  --warn: #ffcc4d;
  --bad: #ff5c5c;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f2ed;
  --bg-2: #ebe8e1;
  --bg-3: #e0dcd3;
  --fg: #121214;
  --fg-2: #4d4a45;
  --fg-3: #75716a;
  --line: rgba(18, 18, 20, .10);
  --line-2: rgba(18, 18, 20, .22);
  --accent: #b93a0b;
  --accent-ink: #fff7f2;
  --accent-soft: rgba(185, 58, 11, .10);
  --ok: #157a45;
  --warn: #9a6a00;
  --bad: #c42b2b;
  --shadow: 0 30px 80px rgba(30, 20, 10, .18), 0 2px 8px rgba(30, 20, 10, .10);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px) { body { font-size: 16px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* contrôles tactiles : pas de délai de double-tap, pas de sélection du libellé à l'appui long */
button, .btn, .link-pill, .act, .theme-toggle, .nav__links a { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.section { padding-block: clamp(88px, 11vw, 168px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); flex: none; }
.eyebrow--plain::before { display: none; }
.h2 { font-size: clamp(34px, 5.2vw, 72px); letter-spacing: -.03em; line-height: .98; margin-top: 20px; max-width: 18ch; font-stretch: 92%; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--fg-2); max-width: 60ch; text-wrap: pretty; }
.section__head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); align-items: end; }
@media (min-width: 900px) { .section__head { grid-template-columns: 1.1fr .9fr; gap: 64px; } .section__head .lede { padding-bottom: 8px; } }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; }
.muted { color: var(--fg-2); }
.accent { color: var(--accent); }
em { font-style: normal; color: var(--accent); }

/* ---------- boutons ---------- */
.btn {
  --press: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  text-decoration: none;
  border: 1px solid var(--line-2);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn--ghost { background: transparent; color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { filter: brightness(1.06); }
  .btn--ghost:hover { border-color: var(--fg); }
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center;
  transition: transform 220ms var(--ease-out), background-color 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.nav__brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { font-size: 14px; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--fg-2); transition: color 150ms ease, background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--fg); background: var(--bg-3); } }
@media (max-width: 760px) { .nav__links { display: none; } }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  display: inline-grid; place-items: center;
  transition: transform 160ms var(--ease-out), border-color 150ms ease;
}
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(40px, 6vh, 80px);
  overflow: clip;
  isolation: isolate;
}
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { /* voile pour la lisibilité du titre, côté gauche */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 90% at 20% 70%, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}
@media (max-width: 760px) { .hero::before { background: linear-gradient(to top, var(--bg) 0%, var(--bg) 30%, color-mix(in srgb, var(--bg) 85%, transparent) 55%, transparent 80%); } }
.hero__content { position: relative; display: grid; gap: 24px; max-width: 1100px; }
.hero__title {
  font-size: clamp(42px, 6.6vw, 104px);
  line-height: .93;
  letter-spacing: -.04em;
  font-weight: 700;
  font-stretch: 88%;
  max-width: 12ch;
}
.hero__title .l { display: block; overflow: hidden; padding: .14em .06em .12em; margin: -.14em -.06em -.12em; }
.hero__title .l > span { display: block; transform: translateY(110%); animation: rise 900ms var(--ease-out) forwards; }
.hero__title .l:nth-child(1) > span { animation-delay: 60ms; }
.hero__title .l:nth-child(2) > span { animation-delay: 130ms; }
.hero__title .l:nth-child(3) > span { animation-delay: 200ms; }
.hero__title .l:nth-child(4) > span { animation-delay: 270ms; }
@keyframes rise { to { transform: translateY(0); } }
.hero__lede, .hero__status, .hero__cta, .hero .eyebrow { opacity: 0; animation: fade 700ms var(--ease-out) forwards; }
.hero .eyebrow { animation-delay: 0ms; }
.hero__lede { animation-delay: 420ms; }
.hero__status { animation-delay: 520ms; }
.hero__cta { animation-delay: 600ms; }
@keyframes fade { to { opacity: 1; } }
.hero__lede { max-width: 62ch; font-size: clamp(17px, 1.35vw, 20px); }
.hero__status {
  font-family: var(--font-mono); font-size: 13px; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fg-3); flex: none; position: relative; display: inline-block; }
.dot--ok { background: var(--ok); }
.dot--ok::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
.dot--warn { background: var(--warn); }
.dot--bad { background: var(--bad); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3);
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--fg-3), transparent); }
@media (max-width: 760px) { .hero__scroll { display: none; } }

/* ---------- 01 deux casquettes ---------- */
.duo { display: grid; gap: 40px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: start; } }
.duo__claim { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; font-stretch: 92%; max-width: 16ch; }
.duo__claim em { color: var(--accent); }
.duo__text { display: grid; gap: 22px; color: var(--fg-2); font-size: clamp(17px, 1.25vw, 19px); }
.duo__text strong { color: var(--fg); font-weight: 600; }
.marks { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .marks { grid-template-columns: repeat(3, 1fr); } }
.mark { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
@media (min-width: 760px) { .mark { padding: 28px 28px 28px 0; border-right: 1px solid var(--line); } .mark:last-child { border-right: 0; } .mark + .mark { padding-left: 28px; } }
.mark b { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-stretch: 90%; }
.mark span { color: var(--fg-2); font-size: 15px; }

/* ---------- 02 produits ---------- */
.projects { display: grid; gap: clamp(80px, 10vw, 160px); }
.proj { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) {
  .proj { grid-template-columns: 7fr 5fr; gap: 64px; }
  .proj:nth-child(even) .proj__media { order: 2; }
}
.proj__media { position: relative; }
.proj__body { display: grid; gap: 18px; align-content: center; }
.proj__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .08em; }
.proj__title { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.03em; line-height: .98; font-stretch: 92%; }
.proj__pitch { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -.01em; font-weight: 500; text-wrap: pretty; }
.proj__desc { color: var(--fg-2); max-width: 52ch; text-wrap: pretty; }
.facts { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.facts div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; font-size: 14px; }
.facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); padding-top: 2px; }
.facts dd { color: var(--fg-2); }
.proj__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.link-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; text-decoration: none;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  transition: transform 160ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}
.link-pill:active { transform: scale(.97); }
.link-pill svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .link-pill:hover { border-color: var(--fg); background: var(--bg-2); } }
.link-pill--accent { border-color: var(--accent); color: var(--accent); }

/* cadres : navigateur et téléphone */
.frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.frame--browser .frame__bar {
  height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
}
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.frame__bar em {
  margin-left: auto; margin-right: auto;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); font-style: normal;
  background: var(--bg-2); padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line);
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame--browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.frame--phone {
  position: absolute; right: -4%; bottom: -8%; width: 26%; min-width: 120px;
  border-radius: 22px; border: 6px solid var(--bg-3); box-shadow: var(--shadow);
  background: var(--bg-3);
}
.frame--phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 36%; height: 7px; border-radius: 999px; background: var(--bg-3); z-index: 2; }
.frame--phone img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; width: 100%; border-radius: 16px; }
.proj--with-phone .frame--browser { margin-right: 6%; }
@media (max-width: 640px) { .frame--phone { width: 32%; right: -2%; bottom: -10%; } .proj--with-phone { padding-bottom: 8%; } }
.frame--mini { border-radius: 10px; }
.frame--mini img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }

/* révélations au défilement (classe posée par JS) */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* visuels des produits : montée + léger zoom, le téléphone suit avec un temps de retard */
[data-reveal="media"] { transform: translateY(48px) scale(.97); transition: opacity 600ms var(--ease-out), transform 1000ms var(--ease-out); }
[data-reveal="media"].is-in { transform: none; }
[data-reveal="media"] .frame--phone { opacity: 0; transform: translateY(40px); transition: opacity 500ms var(--ease-out) 180ms, transform 800ms var(--ease-out) 180ms; }
[data-reveal="media"].is-in .frame--phone { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > :nth-child(2) { transition-delay: 60ms; }
.stagger.is-in > :nth-child(3) { transition-delay: 120ms; }
.stagger.is-in > :nth-child(4) { transition-delay: 180ms; }
.stagger.is-in > :nth-child(5) { transition-delay: 240ms; }
.stagger.is-in > :nth-child(6) { transition-delay: 300ms; }
.stagger.is-in > :nth-child(7) { transition-delay: 360ms; }
.stagger.is-in > :nth-child(8) { transition-delay: 420ms; }
.stagger.is-in > :nth-child(9) { transition-delay: 480ms; }
/* léger parallaxe des visuels, uniquement là où les animations liées au défilement existent */
@supports (animation-timeline: view()) {
  @media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
    .proj__media .frame--browser { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
  }
}

/* ---------- 03 parcours ---------- */
.path { display: grid; gap: 40px; }
@media (min-width: 960px) { .path { grid-template-columns: 5fr 7fr; gap: 80px; } .path__intro { position: sticky; top: calc(var(--nav-h) + 24px); } }
.path__intro { display: grid; gap: 20px; align-content: start; }
.tl { display: grid; border-top: 1px solid var(--line); }
.tl__item { display: grid; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 640px) { .tl__item { grid-template-columns: 150px 1fr; gap: 24px; } }
.tl__when { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); padding-top: 4px; }
.tl__when b { color: var(--accent); font-weight: 500; display: block; }
.tl__what h3 { font-size: 22px; letter-spacing: -.02em; }
.tl__what .org { color: var(--fg-2); margin-top: 4px; }
.tl__what ul { margin-top: 14px; display: grid; gap: 8px; color: var(--fg-2); font-size: 15px; }
.tl__what li { padding-left: 18px; position: relative; }
.tl__what li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--accent); }
.tl__item--school h3 { font-size: 19px; }
.certs { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 12px; }
@media (min-width: 640px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .certs { grid-template-columns: repeat(4, 1fr); } }
.cert { border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; display: grid; gap: 8px; min-height: 130px; position: relative; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.cert .issuer { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.cert .name { font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.cert .date { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); margin-top: auto; }
.cert::after { content: "✓"; position: absolute; right: 14px; top: 12px; font-family: var(--font-mono); color: var(--ok); font-size: 14px; }

/* ---------- 04 sous le capot ---------- */
.hood { display: grid; gap: 48px; }
@media (min-width: 1000px) { .hood { grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; } }
.board { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; }
.board__head b { color: var(--fg); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.board__rows { display: grid; }
.row { display: grid; grid-template-columns: 18px 1.2fr 1fr auto; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row .name { font-weight: 600; letter-spacing: -.01em; }
.row .host { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .host a { text-decoration: none; }
.row .ms { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; min-width: 5ch; text-align: right; }
@media (max-width: 520px) { .row { grid-template-columns: 14px 1fr auto; } .row .host { display: none; } }
.board__foot { padding: 12px 18px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); border-top: 1px solid var(--line); }
.hard { display: grid; gap: 28px; }
.hard h3 { font-size: 22px; letter-spacing: -.02em; }
.hard ul { display: grid; gap: 12px; border-top: 1px solid var(--line); }
.hard li { padding: 12px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; color: var(--fg-2); }
.hard li b { color: var(--fg); font-weight: 600; }
.hard li i { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-style: normal; padding-top: 4px; }
.tools { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
@media (min-width: 760px) { .tools { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.tools h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin-bottom: 12px; }
.tools p { font-size: 15px; color: var(--fg-2); line-height: 1.7; }
.tools p b { color: var(--fg); font-weight: 500; }

/* ---------- 05 à côté ---------- */
.side { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .side { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .side { grid-template-columns: repeat(3, 1fr); } }
.side__item { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
@media (min-width: 700px) { .side__item { padding: 26px 28px 26px 0; } }
.side__item h3 { font-size: 21px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.side__item h3 small { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.side__item p { color: var(--fg-2); font-size: 15px; text-wrap: pretty; }
.side__item .meta { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); display: flex; gap: 8px; flex-wrap: wrap; }
.side__item .meta a { color: var(--fg-2); }

/* ---------- 06 kapex ---------- */
.kapex { display: grid; gap: 40px; }
@media (min-width: 960px) { .kapex { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.kapex__text { display: grid; gap: 18px; color: var(--fg-2); }
.kapex__text strong { color: var(--fg); font-weight: 600; }
.refs { display: grid; gap: 20px; }
@media (min-width: 640px) { .refs { grid-template-columns: repeat(3, 1fr); } }
.ref { display: grid; gap: 10px; text-decoration: none; }
.ref .frame { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ref:hover .frame { transform: translateY(-4px); } }
.ref b { font-weight: 600; font-size: 15px; }
.ref span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }

/* ---------- contact ---------- */
.contact { display: grid; gap: 28px; }
.contact__title { font-size: clamp(48px, 10vw, 160px); line-height: .92; letter-spacing: -.045em; font-stretch: 85%; font-weight: 700; }
.contact__mail { font-size: clamp(22px, 3.4vw, 44px); letter-spacing: -.02em; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 14px; width: fit-content; word-break: break-all; }
.contact__mail .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact__mail:hover .arrow { transform: translate(6px, -6px); } }
.contact__links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--fg-3); font-size: 13px; display: grid; gap: 14px; }
.footer__row { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.footer details { font-size: 13px; }
.footer summary { cursor: pointer; width: fit-content; }
.footer details p { margin-top: 10px; max-width: 70ch; }

/* ---------- carte de visite (/business-card) ---------- */
.bc { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 16px + env(safe-area-inset-top, 0px)) var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); }
.bc__stage { width: min(100%, 440px); display: grid; gap: 20px; perspective: 1200px; }
.card {
  position: relative;
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2) 60%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  display: grid; gap: 20px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 300ms var(--ease-out);
  transform-style: preserve-3d;
  overflow: hidden;
}
.card::after { /* reflet */
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(40% 40% at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, .10), transparent 70%);
  transition: opacity 300ms ease;
}
:root[data-theme="light"] .card::after { background: radial-gradient(40% 40% at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, .6), transparent 70%); }
.card__top { display: flex; align-items: center; gap: 18px; }
.card__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line-2); }
.card__name { font-size: 28px; letter-spacing: -.03em; line-height: 1; font-stretch: 92%; }
.card__role { color: var(--fg-2); font-size: 15px; margin-top: 6px; text-wrap: pretty; }
.card__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); display: inline-flex; align-items: center; gap: 8px; }
.card__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.card__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.act {
  display: grid; gap: 6px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line-2); text-decoration: none; background: color-mix(in srgb, var(--bg) 40%, transparent);
  transition: transform 160ms var(--ease-out), border-color 150ms ease;
}
.act:active { transform: scale(.97); }
.act svg { width: 20px; height: 20px; color: var(--accent); }
.act b { font-size: 14px; font-weight: 600; }
.act span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__cta { display: grid; gap: 10px; }
.bc__more { display: grid; gap: 14px; color: var(--fg-2); font-size: 15px; text-align: center; }
.bc__more ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.bc__more a { color: var(--fg); }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px);
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 240ms var(--ease-out); z-index: 60;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__title .l > span { animation: fade 300ms ease forwards; transform: none; opacity: 0; }
  .hero__lede, .hero__status, .hero__cta, .hero .eyebrow { animation-duration: 300ms; animation-delay: 0ms; }
  [data-reveal], [data-reveal="media"], [data-reveal="media"] .frame--phone, .stagger > * { transform: none; transition: opacity 250ms ease; }
  .dot--ok::after { animation: none; }
  .nav { transition: none; }
  .card { transition: none; }
  .ref .frame, .btn, .link-pill, .act { transition: none; }
}

/* ---------- bascule de langue ---------- */
.lang-switch { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-decoration: none; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); transition: color 150ms ease, border-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .lang-switch:hover { color: var(--fg); border-color: var(--fg); } }
