/* © 2026 Yann Laplassotte. Tous droits réservés. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08090a;
  --bg-raised: #0f1011;
  --bg-card: #101113;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f8f8;
  --text-2: #d0d3d8;
  --text-3: #8a8f98;
  --text-4: #62666d;
  --accent: #aaccd0;
  --radius: 10px;
  --radius-l: 16px;
  --wrap: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 16px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 500;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ——— Navigation ——— */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand__mark { width: 20px; height: 20px; color: var(--text); }
.brand--muted { color: var(--text-3); }
.brand--muted .brand__mark { color: var(--text-3); }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--text-3); }
.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }

/* ——— Boutons ——— */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: #ffffff; }
.btn--ghost { color: var(--text-2); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.05); }
.btn--small { height: 36px; padding: 0 16px; font-size: 14px; background: var(--text); color: var(--bg); border-radius: 8px; }
.btn--small:hover { background: #ffffff; }

/* ——— Typographie ——— */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: -0.005em; margin-bottom: 20px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(170, 204, 208, 0.6); }

h1, h2 {
  font-weight: 600;
  background: linear-gradient(to right bottom, #ffffff 30%, rgba(255, 255, 255, 0.42));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 { font-size: clamp(44px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; max-width: 16ch; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; color: var(--text); }

.lead { margin-top: 24px; max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-3); letter-spacing: -0.01em; }
.body { font-size: 17px; line-height: 1.6; color: var(--text-3); letter-spacing: -0.005em; max-width: 520px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.actions--center { justify-content: center; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 20px; font-size: 13px; color: var(--text-3); }
.meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px; border-radius: 50%; background: var(--text-4); vertical-align: middle; }
.meta--center { justify-content: center; }

/* ——— Ouverture ——— */

.hero { padding-top: clamp(64px, 10vw, 128px); }
.shot { position: relative; max-width: 1328px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 0 var(--gutter); }
.shot__glow {
  position: absolute; inset: -12% 8% auto; height: 70%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(170, 204, 208, 0.16), rgba(170, 204, 208, 0) 70%);
  filter: blur(24px);
}
.frame {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 32px 96px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.shot--hero .frame {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  border-bottom: 0;
}
.frame--fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* ——— Sections ——— */

.section { padding: clamp(96px, 12vw, 160px) 0 0; }
.section + .section { border-top: 1px solid transparent; }
.heading { margin-bottom: clamp(48px, 6vw, 72px); }
.heading--center { text-align: center; }
.heading--center h2 { margin: 0 auto; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 96px); align-items: start; }
.split__text .body { margin-top: 24px; }
.points { margin-top: 48px; border-top: 1px solid var(--line); }
.points li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.points p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--text-3); }
.split__media { position: relative; }
.split__media .frame { max-height: 720px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  overflow: hidden; border-radius: var(--radius-l);
  border: 1px solid var(--line); background: linear-gradient(to bottom, var(--bg-card), var(--bg));
  transition: border-color 0.3s ease, transform 0.6s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card__media { aspect-ratio: 16 / 11; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.02); }
.card__text { padding: 24px 24px 28px; }
.card__text p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-3); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle { padding: 40px 32px 44px; }
.principle + .principle { border-left: 1px solid var(--line); }
.principle svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 24px; }
.principle p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-3); }

.split--install { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.requirements { margin-top: 40px; }
.requirements h3 { font-size: 14px; color: var(--text-3); font-weight: 500; margin-bottom: 12px; }
.requirements li { position: relative; padding: 8px 0 8px 20px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.requirements li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 1px; background: var(--text-4); }
.steps { border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps__n { font-size: 14px; font-weight: 500; color: var(--text-4); font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--text-3); }

.cta { padding: clamp(120px, 14vw, 192px) 0 clamp(96px, 12vw, 160px); position: relative; }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 90vw); height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(170, 204, 208, 0.10), rgba(170, 204, 208, 0) 70%);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; }
.cta h2 { margin: 0 auto; }
.cta .body { margin: 16px auto 0; }

.legal { border-top: 1px solid var(--line); padding: 56px 0; }
.legal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.legal h2 {
  font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.4; max-width: none;
  background: none; color: var(--text-2); margin-bottom: 8px;
}
.legal p { font-size: 13px; line-height: 1.65; color: var(--text-3); }
.legal a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--text-4); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--text-2); }

.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; gap: 24px; height: 72px; font-size: 13px; color: var(--text-4); }
.footer nav { display: flex; gap: 24px; margin-left: auto; }
.footer nav a { color: var(--text-3); transition: color 0.2s ease; }
.footer nav a:hover { color: var(--text); }

/* ——— Apparition au défilement (seulement avec JavaScript, jamais si l'utilisateur réduit les animations) ——— */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal:nth-child(2) { transition-delay: 0.06s; }
.js .hero .reveal:nth-child(3) { transition-delay: 0.12s; }
.js .hero .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .hero .reveal:nth-child(5) { transition-delay: 0.24s; }
.js .shot--hero.reveal { transform: translateY(32px); transition-duration: 1.2s; transition-delay: 0.3s; }
.js .shot--hero.reveal.is-in { transform: none; }
.js .cards .card:nth-child(2) { transition-delay: 0.08s; }
.js .cards .card:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .shot--hero.reveal { opacity: 1; transform: none; transition: none; }
  .card, .card__media img, .btn { transition: none; }
}

/* ——— Écrans étroits ——— */

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__inner .btn--small { margin-left: auto; }
  .split, .split--install { grid-template-columns: minmax(0, 1fr); }
  .split__media .frame { max-height: 560px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card__media { aspect-ratio: 16 / 10; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--line); }
  .principle { padding: 32px 0; }
  .legal__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__inner { flex-wrap: wrap; height: auto; padding-top: 24px; padding-bottom: 24px; gap: 12px 24px; }
  .footer nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 12px 24px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .actions .btn { width: 100%; }
  .shot { padding: 0 8px; }
  .frame { border-radius: 8px; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); }
}
