/* ==========================================================================
   Nathan Dupont — feuille de style du site
   Aucune dépendance externe. Polices servies localement.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/mono-500.woff2") format("woff2"); }

:root {
  --ink: #101418;
  --graphite: #2b343c;
  --slate: #6b7883;
  --mist: #f4f1ea;
  --white: #ffffff;
  --line: #d9dde0;
  --line-soft: #eceff2;
  --signal: #1f5c7a;
  --amber: #d08a2c;
  --amber-ink: #3d2706;
  --check: #3e7d57;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --wrap: 72rem;
  --radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
h1 { letter-spacing: -0.028em; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: opacity 0.15s ease; }
a:hover { opacity: 0.75; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}
table { width: 100%; border-collapse: collapse; }

/* --- primitives ---------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.band { padding: 6rem 0; }
.band--tight { padding: 4rem 0; }
.band--mist { background: var(--mist); }
.band--ink { background: var(--ink); color: var(--mist); }
.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--mist); }

.eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.band--ink .eyebrow { color: var(--slate); }
.rule { display: block; width: 2.75rem; height: 2px; background: var(--amber); }
.num { font-family: var(--mono); font-size: 0.8125rem; color: var(--amber); }
.price { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.big { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--graphite); }
.dim { color: var(--slate); }
.band--ink .muted { color: var(--line); }

.t-xl { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.t-lg { font-size: clamp(1.75rem, 3.4vw, 2.25rem); }
.t-md { font-size: 1.125rem; }
.t-sm { font-size: 0.875rem; }
.t-xs { font-size: 0.75rem; }
.lead { font-size: 1.125rem; max-width: 40rem; }

.stack > * + * { margin-top: 1rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.5rem; } .mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; } .mt-10 { margin-top: 5rem; }

.grid { display: grid; gap: 1.5rem; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr; }
.split { grid-template-columns: 1fr; gap: 3rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.card:hover { border-color: var(--slate); box-shadow: 0 14px 36px -22px rgba(16, 20, 24, 0.4); transform: translateY(-2px); }
.card--dark { background: var(--graphite); border-color: transparent; color: var(--mist); }
.card--flush { padding: 0; overflow: hidden; }

.btn { display: inline-block; border-radius: 10px; padding: 0.85rem 1.5rem; font-size: 0.9375rem; }
.btn--primary { background: var(--amber); color: var(--amber-ink); }
.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost-light { border: 1px solid var(--slate); color: var(--mist); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }

.tiles { display: grid; gap: 1px; background: var(--line); grid-template-columns: 1fr; }
.tile { background: var(--white); padding: 1.5rem; transition: background 0.18s ease; }
.tile:hover { background: var(--mist); }

.panel {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2rem;
}
.panel--ink { background: var(--ink); border-color: transparent; color: var(--mist); }
.panel__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.panel__body { position: relative; }

.sep > li + li,
.sep > * + * { border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: 0.75rem; }
.band--ink .sep > * + * { border-color: var(--graphite); }

/* --- en-tête ------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.5rem; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.brand__name { display: block; font-size: 0.95rem; }
.brand__tag { display: none; font-size: 0.75rem; color: var(--slate); }
.nav-desktop { display: none; }
.nav-mobile { display: none; border-top: 1px solid var(--line); background: var(--white); }
.nav-mobile.is-open { display: block; }
.nav-mobile__inner { display: grid; gap: 0.25rem; padding: 1rem 1.5rem; max-width: var(--wrap); margin: 0 auto; }
.navlink { position: relative; color: var(--graphite); font-size: 0.875rem; padding: 0.5rem 0; }
.navlink.is-active { color: var(--ink); }
.navlink.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amber);
}
.burger { display: grid; gap: 5px; padding: 0.5rem; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* --- parcours au défilement --------------------------------------------- */

.scrub { position: relative; background: var(--white); }
.scrub__media {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.scrub__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.scrub__clip.is-live { opacity: 1; }
.scrub__veil { position: absolute; inset: 0; pointer-events: none; }
.scrub__chapters { position: relative; margin-top: -100vh; margin-top: -100dvh; }
.scrub__chapter { min-height: 160vh; min-height: 160dvh; }
.scrub__pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.scrub__copy {
  max-width: 34rem;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scrub__chapter.is-active .scrub__copy { opacity: 1; transform: none; }
.scrub__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.scrub__tag {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: var(--graphite);
}

/* --- pied de page -------------------------------------------------------- */

.footer { background: var(--ink); color: var(--mist); }
.footer a { color: var(--mist); }
.footer__cols { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--graphite);
  color: var(--slate);
  font-size: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

/* --- tableaux de prix ---------------------------------------------------- */

.rate { border-top: 1px solid var(--line-soft); }
.rate td { padding: 1.25rem 1.5rem; vertical-align: top; }
.rate td:last-child { text-align: right; white-space: nowrap; }
.rate--sub { background: var(--mist); }

/* --- écrans moyens et grands -------------------------------------------- */

@media (min-width: 700px) {
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand__tag { display: block; }
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; align-items: center; gap: 1.5rem; }
  .nav-mobile, .nav-mobile.is-open { display: none; }
  .burger { display: none; }
  .scrub__veil {
    background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.72) 34%, rgba(255,255,255,0) 62%);
  }
}

@media (min-width: 900px) {
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1.2fr 0.8fr; }
  .split--wide { grid-template-columns: 1.35fr 0.65fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrub__copy { opacity: 1; transform: none; transition: none; }
  .card, a.card:hover { transition: none; transform: none; }
}
