/* Casken — Site marketing v3 (statique).
   Base : tokens canoniques de colors_and_type.css (locked 2026-05-17) + styles des rooms.
   Système : DESIGN-SYSTEM-v2.md — 0px de radius, aucune ombre, brass = accent unique. */

/* Fonts auto-hébergées (handoff : self-host recommandé en prod — perf et confidentialité). */
@import url('fonts/fonts.css');

:root {
  /* ─ Bone — primary surface (marketing & web) ─ */
  --bone:         #F4F1EA;
  --bone-deep:    #ECE7DA;
  --bone-edge:    #E0DBC9;

  /* ─ Ink — text & dark inverted surface ─ */
  --ink:          #15161A;
  --ink-dim:      rgba(21, 22, 26, 0.66);
  --ink-more:     rgba(21, 22, 26, 0.42);
  --ink-ghost:    rgba(21, 22, 26, 0.18);
  --ink-ghost-2:  rgba(21, 22, 26, 0.08);

  /* ─ Brass — the single accent ─ */
  --brass:        #A88558;
  --brass-deep:   #7E6437;
  --brass-pale:   rgba(168, 133, 88, 0.18);

  /* ─ Sur ink (Section I + footer) ─ */
  --bone-dim:     rgba(244, 241, 234, 0.6);
  --bone-more:    rgba(244, 241, 234, 0.4);
  --bone-ghost:   rgba(244, 241, 234, 0.14);
  --bone-card:    rgba(244, 241, 234, 0.05);

  /* ─ Type families ─ */
  --font-display: 'Cabinet Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* ─ Type scale ─ */
  --fs-h2:        clamp(38px, 4.4vw, 64px);
  --fs-body:      17px;
  --fs-meta:      10.5px;

  /* ─ Tracking ─ */
  --ls-hero:      -0.034em;
  --ls-display:   -0.030em;
  --ls-meta:       0.22em;
  --ls-wordmark:   0.42em;

  /* ─ Layout ─ */
  --max-content:  1240px;
}

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; background: var(--bone); }

body {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: var(--ls-display); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(168, 133, 88, 0.30); color: var(--ink); }

*::-webkit-scrollbar         { width: 10px; height: 10px; }
*::-webkit-scrollbar-track   { background: var(--bone); }
*::-webkit-scrollbar-thumb   { background: var(--ink-ghost); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-more); }

:focus-visible { outline: 1px solid var(--brass); outline-offset: 3px; }

/* ─ Utilitaires (canoniques) ─ */

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--brass);
}

.disappear,
em.brass {
  font-style: italic;
  color: var(--brass);
}

.wordmark-wide {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--ls-wordmark);
  white-space: nowrap;
}

.container { max-width: var(--max-content); margin: 0 auto; }

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  margin: 26px 0 0;
  text-wrap: balance;
}

/* CTA noir — flèche brass */
.btn-cta {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background 180ms ease;
}
.btn-cta:hover { background: #0B0C0F; }
.btn-cta .arrow { color: var(--brass); }
.btn-cta--nav { padding: 11px 18px; font-size: 13.5px; gap: 9px; }
.btn-cta--nav .arrow { font-size: 12px; }
.btn-cta--lg { padding: 16px 30px; font-size: 15.5px; gap: 11px; }

/* ───────────────── 0 · Nav ───────────────── */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 52px;
  border-bottom: 1px solid var(--ink-ghost);
  position: sticky;
  top: 0;
  background: rgba(244, 241, 234, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.nav-wordmark { font-size: 22px; color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; color: var(--ink-more); white-space: nowrap; transition: color 180ms ease; }
.nav-link:hover { color: var(--ink); }
.nav-lang { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-more); transition: color 180ms ease; }
a.nav-lang:hover { color: var(--ink); }

/* ───────────────── 1 · Héro ───────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 86px);
}
.hero-left, .hero-right { min-width: 0; }
.hero-left {
  padding: 72px 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-h1 {
  font-size: clamp(48px, 5.4vw, 86px);
  line-height: 0.98;
  letter-spacing: var(--ls-hero);
  margin: 24px 0 0;
  text-wrap: balance;
}
.hero-sub { font-size: 19px; line-height: 1.5; color: var(--ink-dim); margin-top: 28px; max-width: 490px; }
.hero-sub em { font-style: italic; }
.hero-sub strong { font-weight: 500; color: var(--ink); }
.hero-ctas { display: flex; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.link-under {
  font-size: 15.5px;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--ink-ghost);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease;
}
.link-under:hover { color: var(--ink); border-color: var(--ink-more); }

.hero-right {
  background: var(--bone-deep);
  border-left: 1px solid var(--ink-ghost);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}
.hero-feed-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-more);
  margin-bottom: 22px;
  padding-left: 4px;
}
.feed { width: 100%; max-width: 480px; margin: 0 auto; }

.tally { display: flex; border: 1px solid var(--ink-ghost); background: var(--bone); margin-bottom: 16px; }
.tally-cell { flex: 1; padding: 16px 18px; border-right: 1px solid var(--ink-ghost-2); }
.tally-cell:last-child { border-right: none; }
.tally-num { font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.tally-num--brass { color: var(--brass); }
.tally-label { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-more); margin-top: 8px; line-height: 1.3; }

.feed-card { background: var(--bone); border: 1px solid var(--ink-ghost); }
.feed-head { display: flex; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--ink-ghost); }
.feed-head-left { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-more); }
.feed-head-right { margin-left: auto; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.feed-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--ink-ghost-2);
  opacity: 0.25;
  transform: translateX(-8px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.feed-head + .feed-row { border-top: none; }
.feed-check { color: var(--ink-ghost); font-size: 13px; transition: color 420ms; }
.feed-action { font-size: 15.5px; color: var(--ink); }
.feed-target { font-size: 11px; color: var(--ink-more); justify-self: end; white-space: nowrap; }
.feed-row.is-done { opacity: 1; transform: translateX(0); }
.feed-row.is-done .feed-check { color: var(--brass); }

/* ───────────────── 2 · I · La preuve (room ink) ───────────────── */

.proof { background: var(--ink); color: var(--bone); padding: 120px 56px; }
.proof-h2 { max-width: 880px; color: var(--bone); }
.proof-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; margin-top: 64px; align-items: start; }

.mail-card { background: var(--bone-card); border: 1px solid var(--bone-ghost); padding: 20px 22px; }
.mail-label { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-more); margin-bottom: 10px; }
.mail-body { font-size: 18px; line-height: 1.45; color: var(--bone); }
.mail-sig { font-size: 11px; color: var(--bone-more); margin-top: 12px; }

.proof-p { font-size: 18px; line-height: 1.55; color: var(--bone-dim); margin-top: 32px; max-width: 420px; }
.proof-p + .proof-p { margin-top: 18px; }
.proof-p strong { font-weight: 500; color: var(--bone); }

.pf-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-more); margin-bottom: 14px; }
.pf-facts { display: flex; flex-direction: column; gap: 8px; }
.pf-fact {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--bone-card);
  border: 1px solid var(--bone-ghost);
  opacity: 0.2;
  transform: translateX(-8px);
  transition: opacity 460ms ease, transform 460ms ease;
}
.pf-fact.is-on { opacity: 1; transform: translateX(0); }
.pf-dot { width: 5px; height: 5px; background: var(--brass); flex-shrink: 0; align-self: center; }
.pf-fact > span:last-child { font-size: 15.5px; line-height: 1.4; font-weight: 300; }

.pf-line { display: flex; justify-content: center; padding: 10px 0; opacity: 0.15; transition: opacity 460ms ease; }
.pf-line.is-on { opacity: 1; }
.pf-line span { width: 1px; height: 26px; background: var(--brass); display: block; }

.pf-decision {
  border: 1px solid var(--brass);
  padding: 20px 22px;
  background: rgba(168, 133, 88, 0.10);
  opacity: 0.15;
  transform: translateY(6px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.pf-decision.is-on { opacity: 1; transform: translateY(0); }
.pf-decision-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.pf-decision-text { font-size: 19px; line-height: 1.4; font-weight: 400; }

.pf-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pf-action { display: flex; gap: 12px; align-items: baseline; opacity: 0.2; transition: opacity 460ms ease; }
.pf-action.is-on { opacity: 1; }
.pf-check { color: var(--brass); font-size: 14px; }
.pf-action > span:last-child { font-size: 16px; line-height: 1.4; font-weight: 300; }

.pf-close {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--bone-ghost);
  opacity: 0.2;
  transition: opacity 500ms ease;
}
.pf-close.is-on { opacity: 1; }
.pf-close-time { font-size: 11px; color: var(--brass); }
.pf-close-role { font-size: 11px; color: var(--bone-more); }

/* ───────────────── 3 · II · Le système ───────────────── */

.systeme { background: var(--bone); padding: 120px 56px; }
.systeme-h2 { max-width: 820px; }
.systeme-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; margin-top: 44px; align-items: start; }
.systeme-p { font-size: 18.5px; line-height: 1.55; color: var(--ink-dim); max-width: 440px; }
.systeme-p + .systeme-p { margin-top: 18px; }
.systeme-p strong { font-weight: 500; color: var(--ink); }

.modules { border: 1px solid var(--ink-ghost); background: var(--bone); }
.module-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-top: 1px solid var(--ink-ghost-2);
}
.module-row:first-child { border-top: none; }
.module-row--route { opacity: 0.62; }
.module-num { font-size: 12px; color: var(--ink-more); }
.module-name { font-size: 17.5px; font-weight: 400; color: var(--ink); }
.module-rep { font-size: 14px; color: var(--ink-more); margin-top: 3px; }
.badge { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.badge--prod { background: var(--brass); color: var(--bone); padding: 5px 10px; }
.badge--constr { border: 1px solid var(--brass); color: var(--brass-deep); padding: 4px 10px; }
.badge--route { border: 1px solid var(--ink-ghost); color: var(--ink-more); padding: 4px 10px; }
.modules-foot { padding: 14px 22px; border-top: 1px solid var(--ink-ghost); background: var(--bone-deep); }
.modules-foot .mono { font-size: 11px; color: var(--ink-dim); }

/* ───────────────── 4 · Bande ───────────────── */

.bande { background: var(--bone-deep); border-top: 1px solid var(--ink-ghost); border-bottom: 1px solid var(--ink-ghost); }
.bande-row { display: flex; }
.bande-cell { flex: 1; padding: 40px 36px; border-left: 1px solid var(--ink-ghost); }
.bande-cell:first-child { border-left: none; }
.bande-big { font-size: clamp(24px, 2.6vw, 38px); font-weight: 300; letter-spacing: -0.025em; color: var(--ink); }
.bande-big--brass { color: var(--brass); }
.bande-small { font-size: 11px; letter-spacing: 0.06em; color: var(--ink-more); margin-top: 10px; line-height: 1.5; }

/* ───────────────── 5 · L'équipe ───────────────── */

.equipe { background: var(--bone); padding: 110px 56px; border-top: 1px solid var(--ink-ghost); }
.equipe-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.equipe-intro { font-size: 17px; line-height: 1.5; color: var(--ink-dim); max-width: 400px; }
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-ghost);
  border: 1px solid var(--ink-ghost);
  margin-top: 40px;
}
.equipe-card { background: var(--bone); display: flex; flex-direction: column; }
.equipe-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  display: block;
}
/* Cadrage par photo (classes plutôt qu'inline — la CSP du site interdit style-src inline). */
.pos-20 { object-position: center 20%; }
.pos-22 { object-position: center 22%; }
.pos-30 { object-position: center 30%; }
.equipe-body { padding: 16px 16px 20px; display: flex; flex-direction: column; flex: 1; }
.equipe-name { font-size: 16.5px; font-weight: 500; color: var(--ink); }
.equipe-role { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-deep); margin-top: 6px; }
.equipe-bio { font-size: 13.5px; line-height: 1.45; color: var(--ink-more); margin-top: 10px; }
.equipe-li {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-more);
  margin-top: auto;
  padding-top: 12px;
  transition: color 180ms ease;
}
.equipe-li:hover { color: var(--ink); }
.equipe-li-arrow { color: var(--brass); }

/* ───────────────── 6 · III · Accès ───────────────── */

.acces { background: var(--bone); padding: 130px 56px; }
.acces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.acces-p { font-size: 18.5px; line-height: 1.55; color: var(--ink-dim); margin-top: 28px; max-width: 440px; }
.acces-card { border: 1px solid var(--ink-ghost); background: var(--bone-deep); padding: 44px; }
.acces-card-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-more); }
.acces-items { margin-top: 22px; display: flex; flex-direction: column; }
.acces-item { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--ink-ghost-2); }
.acces-item:first-child { border-top: none; }
.acces-item-num { font-size: 11px; color: var(--brass); }
.acces-item-text { font-size: 16.5px; color: var(--ink); }
.acces-card .btn-cta--lg { margin-top: 28px; }
.acces-note { font-size: 11px; letter-spacing: 0.04em; color: var(--ink-more); margin-top: 16px; }

/* ───────────────── 7 · Footer (ink) ───────────────── */

.footer { background: var(--ink); color: var(--bone); padding: 72px 56px 56px; }
.footer-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 24px; }
.footer-wordmark { font-size: 26px; color: var(--bone); }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 14px; color: rgba(244, 241, 234, 0.55); transition: color 180ms ease; }
.footer-links a:hover { color: var(--bone); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--bone-ghost);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .mono { font-size: 11px; color: var(--bone-more); }
.footer-privacy { transition: color 180ms ease; }
.footer-privacy:hover { color: var(--bone); }

/* ───────────────── Responsive (≲900px : grids → 1 colonne, équipe 2×2, nav réduite) ───────────────── */

@media (max-width: 900px) {
  .nav { padding: 18px 24px; gap: 16px; }
  .nav-wordmark { font-size: 18px; }
  .nav-link, .nav-lang { display: none; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { padding: 64px 24px 56px; }
  .hero-right { border-left: none; border-top: 1px solid var(--ink-ghost); padding: 40px 24px; }

  .proof { padding: 88px 24px; }
  .proof-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }

  .systeme { padding: 88px 24px; }
  .systeme-grid { grid-template-columns: 1fr; gap: 40px; }

  .bande-row { flex-direction: column; }
  .bande-cell { border-left: none; border-top: 1px solid var(--ink-ghost); }
  .bande-cell:first-child { border-top: none; }

  .equipe { padding: 80px 24px; }
  .equipe-grid { grid-template-columns: repeat(2, 1fr); }

  .acces { padding: 88px 24px; }
  .acces-grid { grid-template-columns: 1fr; gap: 48px; }
  .acces-card { padding: 32px 28px; }

  .footer { padding: 56px 24px 40px; }
}

@media (max-width: 560px) {
  .module-row { grid-template-columns: 32px 1fr; }
  .module-row .badge { grid-column: 2; justify-self: start; }
}

@media (max-width: 420px) {
  .nav-wordmark { font-size: 16px; }
}

/* ─ Reduced motion : états finaux statiques (app.js pose .is-done / .is-on) ─ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed-row, .feed-check, .pf-fact, .pf-line, .pf-decision, .pf-action, .pf-close { transition: none; }
}
