/* bctxt — landing statique. Tokens et rendu transcrits des maquettes Claude Design
   (« bctxt - Landing.dc.html », « bctxt - Legal.dc.html »). Zéro script, zéro tracker. */

:root {
  --canvas: #f3f2ee;
  --paper: #fff;
  --ink: #171717;
  --ink-2: #525252;
  --ink-3: #8a8a8a;
  --placeholder: #a3a3a3;
  --rule: #e4e2dc;
  --rule-faint: #efeee9;
  --accent: #9a6200;
  --accent-hover: #7d5008;
  --accent-bright: #e09a00;
  --accent-wash: #faf4e8;
  --pos-wash: #eef4f0;
  --pos: #16673f;
  --crit: #b3261e;
  --hover: #ebe9e3;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}
button,
input {
  font: inherit;
  color: inherit;
}
input::placeholder {
  color: var(--placeholder);
}
::selection {
  background: var(--accent-wash);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bar {
  0%,
  100% {
    transform: scaleY(0.18);
    background: #e4e2dc;
  }
  42% {
    transform: scaleY(0.85);
    background: #cfcbc1;
  }
  50% {
    transform: scaleY(1);
    background: #e09a00;
  }
  58% {
    transform: scaleY(0.85);
    background: #cfcbc1;
  }
}
@keyframes est {
  from {
    width: 0;
  }
  to {
    width: 92%;
  }
}

/* ── Coque ─────────────────────────────────────────────────────────────────── */
.shell {
  min-height: 100vh;
  display: grid;
  /* `minmax(0, 1fr)` et non `auto` : la colonne ne s'élargit jamais au min-content de ses lignes
     (l'onde de 855 px rendait toute la page large de 895 px sur téléphone). */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  position: relative;
}
.header {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  position: relative;
  display: inline-block;
  width: max-content;
  line-height: 1;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand::after {
  content: '';
  position: absolute;
  right: -0.34em;
  top: 0.129em;
  width: 0.17em;
  height: 0.72em;
  background: var(--accent-bright);
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.nav-quiet {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: var(--ink-2);
}
.nav-quiet:hover {
  background: var(--hover);
  color: var(--ink);
}
.nav-secondary {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 500;
}
.nav-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Landing ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 0;
  text-align: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  animation: rise 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent-bright);
  display: block;
}
.eyebrow .mono {
  letter-spacing: 0.1em;
  color: var(--accent);
}
.title {
  font-size: clamp(46px, 6.2vw, 78px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.038em;
  margin: 0 0 40px;
  max-width: 900px;
  text-wrap: balance;
  animation: rise 600ms 60ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ask {
  width: min(520px, 100%);
  animation: rise 600ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ask-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 20px 50px -30px rgba(23, 23, 23, 0.35);
  text-align: left;
}
.ask-form:focus-within {
  border-color: #cfcbc1;
}
.ask-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: none;
  background: transparent;
  font-size: 16px;
  outline: none;
  border-radius: 10px;
}
.ask-input:focus-visible {
  outline: 2px solid var(--accent-wash);
}
.ask-input:user-invalid {
  color: var(--crit);
}
.ask-button {
  height: 48px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 80ms;
}
.ask-button:hover {
  background: var(--accent-hover);
}
.ask-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.ask-hint {
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-3);
  margin: 12px 0 0;
}
.ask-hint a {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ask-hint a:hover {
  color: var(--ink);
}

/* L'onde : 72 barres, 3 px, gap 9 px, hauteur 100 px, décalage 75 ms par barre. Elle mesure 855 px :
   sur un téléphone elle déborde, et `overflow: hidden` l'empêche de faire défiler la page en largeur
   (le masque fond déjà les bords, la coupe est invisible). */
.wave {
  width: 100%;
  height: 120px;
  margin-top: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  pointer-events: none;
  flex: none;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.wave span {
  display: block;
  width: 3px;
  height: 100px;
  border-radius: 2px;
  background: #e4e2dc;
  transform-origin: center;
  transform: scaleY(0.18);
  animation: bar 6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
.wave span:nth-child(1) { animation-delay: 0s; }
.wave span:nth-child(2) { animation-delay: 0.075s; }
.wave span:nth-child(3) { animation-delay: 0.15s; }
.wave span:nth-child(4) { animation-delay: 0.225s; }
.wave span:nth-child(5) { animation-delay: 0.3s; }
.wave span:nth-child(6) { animation-delay: 0.375s; }
.wave span:nth-child(7) { animation-delay: 0.45s; }
.wave span:nth-child(8) { animation-delay: 0.525s; }
.wave span:nth-child(9) { animation-delay: 0.6s; }
.wave span:nth-child(10) { animation-delay: 0.675s; }
.wave span:nth-child(11) { animation-delay: 0.75s; }
.wave span:nth-child(12) { animation-delay: 0.825s; }
.wave span:nth-child(13) { animation-delay: 0.9s; }
.wave span:nth-child(14) { animation-delay: 0.975s; }
.wave span:nth-child(15) { animation-delay: 1.05s; }
.wave span:nth-child(16) { animation-delay: 1.125s; }
.wave span:nth-child(17) { animation-delay: 1.2s; }
.wave span:nth-child(18) { animation-delay: 1.275s; }
.wave span:nth-child(19) { animation-delay: 1.35s; }
.wave span:nth-child(20) { animation-delay: 1.425s; }
.wave span:nth-child(21) { animation-delay: 1.5s; }
.wave span:nth-child(22) { animation-delay: 1.575s; }
.wave span:nth-child(23) { animation-delay: 1.65s; }
.wave span:nth-child(24) { animation-delay: 1.725s; }
.wave span:nth-child(25) { animation-delay: 1.8s; }
.wave span:nth-child(26) { animation-delay: 1.875s; }
.wave span:nth-child(27) { animation-delay: 1.95s; }
.wave span:nth-child(28) { animation-delay: 2.025s; }
.wave span:nth-child(29) { animation-delay: 2.1s; }
.wave span:nth-child(30) { animation-delay: 2.175s; }
.wave span:nth-child(31) { animation-delay: 2.25s; }
.wave span:nth-child(32) { animation-delay: 2.325s; }
.wave span:nth-child(33) { animation-delay: 2.4s; }
.wave span:nth-child(34) { animation-delay: 2.475s; }
.wave span:nth-child(35) { animation-delay: 2.55s; }
.wave span:nth-child(36) { animation-delay: 2.625s; }
.wave span:nth-child(37) { animation-delay: 2.7s; }
.wave span:nth-child(38) { animation-delay: 2.775s; }
.wave span:nth-child(39) { animation-delay: 2.85s; }
.wave span:nth-child(40) { animation-delay: 2.925s; }
.wave span:nth-child(41) { animation-delay: 3s; }
.wave span:nth-child(42) { animation-delay: 3.075s; }
.wave span:nth-child(43) { animation-delay: 3.15s; }
.wave span:nth-child(44) { animation-delay: 3.225s; }
.wave span:nth-child(45) { animation-delay: 3.3s; }
.wave span:nth-child(46) { animation-delay: 3.375s; }
.wave span:nth-child(47) { animation-delay: 3.45s; }
.wave span:nth-child(48) { animation-delay: 3.525s; }
.wave span:nth-child(49) { animation-delay: 3.6s; }
.wave span:nth-child(50) { animation-delay: 3.675s; }
.wave span:nth-child(51) { animation-delay: 3.75s; }
.wave span:nth-child(52) { animation-delay: 3.825s; }
.wave span:nth-child(53) { animation-delay: 3.9s; }
.wave span:nth-child(54) { animation-delay: 3.975s; }
.wave span:nth-child(55) { animation-delay: 4.05s; }
.wave span:nth-child(56) { animation-delay: 4.125s; }
.wave span:nth-child(57) { animation-delay: 4.2s; }
.wave span:nth-child(58) { animation-delay: 4.275s; }
.wave span:nth-child(59) { animation-delay: 4.35s; }
.wave span:nth-child(60) { animation-delay: 4.425s; }
.wave span:nth-child(61) { animation-delay: 4.5s; }
.wave span:nth-child(62) { animation-delay: 4.575s; }
.wave span:nth-child(63) { animation-delay: 4.65s; }
.wave span:nth-child(64) { animation-delay: 4.725s; }
.wave span:nth-child(65) { animation-delay: 4.8s; }
.wave span:nth-child(66) { animation-delay: 4.875s; }
.wave span:nth-child(67) { animation-delay: 4.95s; }
.wave span:nth-child(68) { animation-delay: 5.025s; }
.wave span:nth-child(69) { animation-delay: 5.1s; }
.wave span:nth-child(70) { animation-delay: 5.175s; }
.wave span:nth-child(71) { animation-delay: 5.25s; }
.wave span:nth-child(72) { animation-delay: 5.325s; }

/* Trois colonnes (lire, écrire, publier) sous le héros — maquette v2 du 2026-09-07. */
.pillars {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 40px 64px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
.pillar-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.pillar-text {
  font-size: 16px;
  line-height: 25px;
  margin: 0;
  text-wrap: pretty;
}

.footer {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-line {
  white-space: nowrap;
}
.opening {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 220px;
}
.opening-track {
  height: 2px;
  background: var(--rule);
  border-radius: 1px;
  overflow: hidden;
}
.opening-fill {
  height: 2px;
  width: 92%;
  background: var(--accent-bright);
  animation: est 24s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}
.footer-links a {
  white-space: nowrap;
}
.footer a {
  color: var(--ink-3);
}
.footer a:hover {
  color: var(--ink);
}

/* ── Legal ─────────────────────────────────────────────────────────────────── */
.back {
  font-size: 14px;
  color: var(--ink-2);
}
.back:hover {
  color: var(--ink);
}
.legal {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 40px 96px;
}
.legal-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  margin-bottom: 40px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}
.card .mono {
  margin: 0 0 12px;
}
.card h1 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: -0.024em;
  margin: 0 0 20px;
}
.facts {
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin: 0 0 20px;
  padding: 0;
}
.facts div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 18px;
  border-top: 1px solid var(--rule-faint);
  font-size: 15px;
  line-height: 22px;
}
.facts div:first-child {
  border-top: none;
}
.facts dt {
  color: var(--ink-3);
  margin: 0;
}
.facts dd {
  color: var(--ink);
  margin: 0;
}
.clause {
  padding: 16px 0;
  border-top: 1px solid var(--rule-faint);
}
.clause h2 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin: 0 0 6px;
}
.clause p {
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.footer-legal {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-legal a {
  color: var(--ink-3);
}
.footer-legal a:hover {
  color: var(--ink);
}

/* ── 404 ───────────────────────────────────────────────────────────────────── */
.lost {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}
.lost h1 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: -0.024em;
  margin: 0 0 8px;
}
.lost p {
  color: var(--ink-2);
  margin: 0 0 24px;
}

/* ── Petits écrans ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header,
  .hero,
  .legal {
    padding-left: 20px;
    padding-right: 20px;
  }
  .pillars {
    padding: 8px 20px 48px;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px 24px;
  }
  .footer-line {
    white-space: normal;
  }
  .footer-links {
    justify-content: center;
  }
  .footer-legal {
    padding: 0 20px 24px;
    justify-content: center;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ── Mouvement réduit : rien ne bouge, tout est déjà à sa place ────────────── */
@media (prefers-reduced-motion: reduce) {
  .eyebrow,
  .title,
  .ask {
    animation: none;
  }
  .wave span {
    animation: none;
    transform: scaleY(0.18);
  }
  .opening-fill {
    animation: none;
    width: 92%;
  }
  .ask-button {
    transition: none;
  }
}
