/* ÆON — Sealed Glyph v2.0 */
:root {
  --bg-deep:      #0c0d14;
  --bg-elevated:  #14151e;
  --bg-raised:    #1a1b26;
  --indigo-500:   #5d5dd9;
  --indigo-700:   #3a3a8a;
  --indigo-900:   #1f1f4a;
  --oxide-400:    #7d9e7e;
  --oxide-600:    #5a7a5b;
  --neutral-50:   #f0eee8;
  --neutral-200:  #c8c4b8;
  --neutral-500:  #6b6f7d;
  --neutral-700:  #3a3c47;
  --line:         #232432;
  --line-soft:    #1c1d28;

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --measure:      1280px;
  --gutter:       clamp(20px, 4vw, 56px);
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);

  /* Tweakable knobs (overridden from JS) */
  --tw-stagger:   1;
  --tw-anim-dur:  800ms;
  --tw-h-scale:   1;
  --tw-h-weight:  400;
}

/* Surface variants */
html.surface-warm {
  --bg-deep:     #110f0c;
  --bg-elevated: #1a1612;
  --bg-raised:   #221d18;
  --line:        #2a241f;
  --line-soft:   #1f1a16;
  --neutral-200: #d4cdbf;
}

/* Headline scale + weight tweakable */
.display { font-weight: var(--tw-h-weight); }
h1.display, h2.display { font-size: calc(var(--_base-size, 1em) * var(--tw-h-scale)); }
.hero h1 { --_base-size: clamp(56px, 8vw, 112px); }
.section-head h2 { --_base-size: clamp(36px, 5vw, 64px); }
.merkle-stage h2 { --_base-size: clamp(36px, 5vw, 56px); }
.doctrine h2 { --_base-size: clamp(40px, 5vw, 64px); }
.contact h2 { --_base-size: clamp(40px, 5vw, 64px); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-deep); color: var(--neutral-200); }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Typography ---------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--neutral-50);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oxide-400);
}
.body-lg { font-size: 18px; line-height: 1.55; color: var(--neutral-200); text-wrap: pretty; }
.body    { font-size: 15px; line-height: 1.6; color: var(--neutral-500); text-wrap: pretty; }
.lede    { font-size: 20px; line-height: 1.5; color: var(--neutral-200); font-weight: 400; text-wrap: pretty; }

.italic-em { font-family: var(--font-display); font-style: italic; color: var(--neutral-50); }

/* Layout -------------------------------------------------------- */
.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { position: relative; }
.section-pad { padding: clamp(96px, 12vw, 160px) 0; }
.divider { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 6vw, 96px);
  align-items: baseline;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-head .index { color: var(--oxide-400); }
.section-head h2 {
  max-width: 18ch;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* Header -------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg-deep) 75%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand .ae {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--neutral-50);
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand .label { color: var(--neutral-500); font-size: 13px; }
nav.primary { display: flex; gap: 28px; }
nav.primary a {
  font-size: 13px;
  color: var(--neutral-500);
  transition: color 0.2s var(--ease);
}
nav.primary a:hover { color: var(--neutral-50); }
nav.primary a .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--oxide-400);
  margin-right: 6px;
}
@media (max-width: 800px) { nav.primary { display: none; } }
.header-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-50);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.header-cta:hover { border-color: var(--indigo-500); background: rgba(93,93,217,0.08); }

/* Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--indigo-500);
  color: var(--neutral-50);
}
.btn-primary:hover { background: #6b6be0; }
.btn-ghost {
  border-color: var(--line);
  color: var(--neutral-200);
}
.btn-ghost:hover { border-color: var(--neutral-500); color: var(--neutral-50); }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 120px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; padding-bottom: 80px; }
}
.hero h1 {
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 24px 0 32px;
}
.hero h1 .it { font-style: italic; color: var(--neutral-200); font-weight: 400; }
.hero .sub {
  font-size: 18px;
  color: var(--neutral-500);
  max-width: 48ch;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 21, 30, 0.6);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--oxide-400);
  box-shadow: 0 0 0 3px rgba(125,158,126,0.12);
}
.hero-eyebrow .txt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neutral-200); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat .v {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--neutral-50);
  line-height: 1;
}
.hero-stats .stat .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oxide-400);
  margin-top: 8px;
}

/* Hero visual --------------------------------------------------- */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20% -20% -20% -20%;
  background: radial-gradient(circle at 50% 50%, rgba(93,93,217,0.15), transparent 55%);
  filter: blur(20px);
  z-index: 0;
}

/* Problème grid ------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.problem-grid .cell {
  background: var(--bg-deep);
  padding: 40px 32px;
}
.problem-grid .cell .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--oxide-400);
  margin-bottom: 32px;
}
.problem-grid .cell h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--neutral-50);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.problem-grid .cell p { color: var(--neutral-500); font-size: 15px; }
@media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; } }

/* Perétimeter (03.5) ----------------------------------------- */
.perimeter-lede {
  max-width: 62ch;
  margin: -32px 0 56px;
  font-size: 18px;
  color: var(--neutral-500);
}
.perimeter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1024px) { .perimeter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .perimeter-grid { grid-template-columns: 1fr; } }
.ptile {
  background: var(--bg-deep);
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: background 0.3s var(--ease);
}
.ptile:hover { background: var(--bg-elevated); }
.ptile .n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--oxide-400);
}
.ptile h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--neutral-50);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: 2px;
}
.ptile p {
  font-size: 13.5px;
  color: var(--neutral-500);
  line-height: 1.55;
  margin-top: auto;
}
.perimeter-foot {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--neutral-200);
  text-align: center;
  text-wrap: balance;
}

.problem-quote {
  margin-top: 80px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--neutral-200);
  line-height: 1.25;
  max-width: 28ch;
  text-wrap: balance;
}
.problem-quote .cite {
  display: block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oxide-400);
}

/* Approche ------------------------------------------------------ */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }
.principle {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 40px 32px 36px;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.principle .gloss { flex: 1; }
.principle .visual { height: 180px; margin: -8px -8px 28px; display: flex; align-items: center; justify-content: center; }
.principle .num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--oxide-400);
}
.principle h3 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--neutral-50);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.principle .kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-500);
  margin-bottom: 16px;
}
.principle p { font-size: 14.5px; color: var(--neutral-500); }
.principle .foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

/* Merkle -------------------------------------------------------- */
.merkle-stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 960px) { .merkle-stage { grid-template-columns: 1fr; } }
.merkle-stage h2 {
  letter-spacing: -0.01em;
  margin: 16px 0 24px;
  max-width: 14ch;
}
.merkle-stage .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oxide-400);
}
.merkle-stage p { font-size: 16px; color: var(--neutral-500); margin-bottom: 16px; max-width: 50ch; }

.hash-strip {
  margin-top: 32px;
  display: flex; flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hash-strip .row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--neutral-500);
}
.hash-strip .row .k { color: var(--oxide-400); text-transform: uppercase; }
.hash-strip .row .h { color: var(--neutral-200); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash-strip .row .ok { color: var(--oxide-400); }

/* Matrice ------------------------------------------------------- */
.matrix {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}
.matrix-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
}
.matrix-grid > div {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 14px;
  color: var(--neutral-200);
  display: flex; align-items: center;
  min-height: 64px;
}
.matrix-grid > div:nth-child(5n) { border-right: 0; }
.matrix-grid .header {
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  min-height: 56px;
}
.matrix-grid .header.aeon { color: var(--neutral-50); background: rgba(93,93,217,0.08); }
.matrix-grid .row-label { color: var(--neutral-500); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.matrix-grid .cell.aeon { background: rgba(93,93,217,0.05); }
.matrix-grid .cell .v {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--neutral-50);
  letter-spacing: -0.01em;
}
.matrix-grid .cell.muted .v { color: var(--neutral-500); }
.matrix-grid .cell .sub { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--neutral-500); margin-top: 2px; text-transform: none; }
.matrix-grid > div:nth-last-child(-n+5) { border-bottom: 0; }
@media (max-width: 960px) {
  .matrix-grid { grid-template-columns: 1fr 1fr; font-size: 12px; }
  .matrix-grid > div:nth-child(5n) { border-right: 1px solid var(--line); }
  .matrix-grid > div:nth-child(2n) { border-right: 0; }
}

/* Funnel -------------------------------------------------------- */
.funnel {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.funnel .step {
  display: grid;
  grid-template-columns: 80px 100px 1fr 1fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.funnel .step:hover { background: rgba(20,21,30,0.5); }
.funnel .step .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--oxide-400);
}
.funnel .step .icon {
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
}
.funnel .step h4 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--neutral-50);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.funnel .step p { font-size: 14px; color: var(--neutral-500); }
@media (max-width: 860px) {
  .funnel .step { grid-template-columns: 60px 60px 1fr; }
  .funnel .step p { grid-column: 1 / -1; padding-left: 120px; margin-top: -8px; }
}

/* Doctrine ------------------------------------------------------ */
.doctrine {
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.doctrine .doctrine-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
@media (max-width: 960px) { .doctrine .doctrine-inner { grid-template-columns: 1fr; } }
.doctrine h2 { max-width: 14ch; margin: 16px 0 24px; }
.doctrine .extracts {
  display: flex; flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.doctrine .extract {
  padding-left: 20px;
  border-left: 1px solid var(--indigo-700);
}
.doctrine .extract blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.35;
  color: var(--neutral-200);
  margin-bottom: 8px;
}
.doctrine .extract cite {
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oxide-400);
}

.timeline {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline .yr {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline .yr:last-child { border-bottom: 0; }
.timeline .yr .year {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--neutral-50);
  letter-spacing: -0.01em;
}
.timeline .yr .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.timeline .yr.active .year { color: var(--indigo-500); }
.timeline .yr.active .lbl { color: var(--neutral-50); }

/* Contact ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { max-width: 14ch; margin: 16px 0 24px; }
.contact-meta {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.contact-meta .ln {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-meta .ln .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oxide-400); }
.contact-meta .ln .v { color: var(--neutral-200); font-size: 14px; }

form.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
}
form.contact-form label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--oxide-400);
  display: block;
  margin-bottom: 8px;
}
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--neutral-50);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}
form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus {
  border-bottom-color: var(--indigo-500);
}
form.contact-form textarea { min-height: 120px; }
form.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { form.contact-form .row2 { grid-template-columns: 1fr; } }

form.contact-form .consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: rgba(20, 21, 30, 0.6);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--neutral-200);
  line-height: 1.55;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 0;
}
form.contact-form .consent > span {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--neutral-200);
}
form.contact-form .consent input[type="checkbox"] {
  width: 16px; height: 16px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--neutral-700);
  background: var(--bg-deep);
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
form.contact-form .consent input[type="checkbox"]:checked {
  background: var(--indigo-500);
  border-color: var(--indigo-500);
}
form.contact-form .consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--neutral-50);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
form.contact-form .consent input[type="checkbox"]:focus-visible {
  outline: 1px solid var(--indigo-500);
  outline-offset: 2px;
}
form.contact-form .consent a { color: var(--neutral-50); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--indigo-700); }
form.contact-form .consent a:hover { text-decoration-color: var(--indigo-500); }

/* Footer -------------------------------------------------------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  color: var(--neutral-500);
  font-size: 13px;
}
footer.site .ftop {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 56px;
  gap: 24px;
}
footer.site .wordmark {
  font-family: var(--font-display);
  font-size: 88px;
  color: var(--neutral-50);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
@media (max-width: 720px) { footer.site .wordmark { font-size: 56px; } }
footer.site .links { display: flex; gap: 28px; }
footer.site .links a { color: var(--neutral-500); transition: color 0.2s var(--ease); }
footer.site .links a:hover { color: var(--neutral-50); }
footer.site nav.flinks {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
footer.site nav.flinks a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  transition: color 0.2s var(--ease);
}
footer.site nav.flinks a:hover { color: var(--neutral-50); }
footer.site .legal {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  gap: 24px; flex-wrap: wrap;
}

/* Animations ---------------------------------------------------- */
/* Fallback : si /js/animations.js échoue à charger (404, CSP, réseau),
   les éléments sont révélés en CSS pur après 1.4s. Garantit que la page
   est toujours lisible même sans JS. Le JS, s'il marche, ajoute .in plus
   tôt et neutralise l'animation auto via la règle .fade-up.in. */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--tw-anim-dur) var(--ease), transform var(--tw-anim-dur) var(--ease);
  transition-delay: calc(var(--d, 0ms) * var(--tw-stagger));
  will-change: opacity, transform;
  animation: ae-fade-up-fallback 0.6s ease 1.4s forwards;
}
.fade-up.in { opacity: 1; transform: translateY(0); animation: none; }
@keyframes ae-fade-up-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transition: opacity var(--tw-anim-dur) var(--ease);
  transition-delay: calc(var(--d, 0ms) * var(--tw-stagger));
  animation: ae-fade-in-fallback 0.6s ease 1.4s forwards;
}
.fade-in.in { opacity: 1; animation: none; }
@keyframes ae-fade-in-fallback {
  to { opacity: 1; }
}

/* Animation mode: off → instant */
html.anim-off .fade-up,
html.anim-off .fade-in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html.anim-off .ring-rotate { animation: none !important; }
html.anim-off * { transition-duration: 0.01ms !important; animation: none !important; }

/* Animation mode: full → adds entry scale + slower */
html.anim-full .fade-up {
  transform: translateY(36px) scale(0.985);
}
html.anim-full .fade-up.in {
  transform: translateY(0) scale(1);
}

/* Ring rotate toggleable */
html.no-spin .ring-rotate { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; animation: none !important; }
  .fade-up, .fade-in { opacity: 1; transform: none; }
}

/* Selection */
::selection { background: var(--indigo-500); color: var(--neutral-50); }

/* Scrollbar (sober) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--neutral-700); border: 2px solid var(--bg-deep); border-radius: 4px; }

/* ============================================================ */
/* Legal pages (mentions-legales, confidentialite, cgv, securite) */
/* ============================================================ */
.legal-page { min-height: 70vh; }
.legal-page h1.display { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 24px; }
.legal-page .body-lg { margin-top: 24px; line-height: 1.65; }
.legal-block { margin-top: 56px; }
.legal-block h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  color: var(--neutral-100);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--neutral-800);
}
.legal-block p {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--neutral-300);
  line-height: 1.7;
  margin: 0 0 14px;
  font-size: 0.98rem;
}
.legal-block code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--oxide-400);
}
.legal-block a {
  color: var(--indigo-500);
  text-decoration: underline;
  text-decoration-color: rgba(93,93,217,.4);
  text-underline-offset: 3px;
}
.legal-block a:hover { color: var(--neutral-50); text-decoration-color: currentColor; }
.legal-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}
.legal-list li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--neutral-300);
  line-height: 1.65;
  font-size: 0.98rem;
}
.legal-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--oxide-400);
  font-family: 'JetBrains Mono', monospace;
}
.legal-list li strong {
  color: var(--neutral-100);
  font-weight: 500;
}
.note.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--neutral-500);
  letter-spacing: 0.04em;
  margin-top: 20px;
}

/* ============================================================ */
/* Chatbot widget (vanilla, injected at end of index.html)       */
/* ============================================================ */
.ae-chat-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--neutral-50);
  color: var(--bg-deep);
  border: none;
  cursor: pointer;
  z-index: 9000;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), 0 0 0 1px var(--neutral-700);
  display: grid; place-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px; font-style: italic; font-weight: 500;
}
.ae-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(0,0,0,.7), 0 0 0 1px var(--indigo-500); }
.ae-chat-fab .dot {
  position: absolute; top: 6px; right: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--oxide-400);
  box-shadow: 0 0 0 2px var(--bg-deep);
  animation: aePulse 2.4s infinite;
}
@keyframes aePulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.ae-chat-panel {
  position: fixed;
  right: 22px; bottom: 92px;
  width: min(94vw, 380px);
  height: min(78vh, 560px);
  background: var(--bg-elevated);
  border: 1px solid var(--neutral-700);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  z-index: 9000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}
.ae-chat-panel.open { display: flex; animation: aeRise .28s ease-out; }
@keyframes aeRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.ae-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--neutral-800);
}
.ae-chat-head .ae-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--neutral-700);
  display: grid; place-items: center;
  color: var(--neutral-50);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 500; font-size: 18px;
}
.ae-chat-head .ae-title { flex: 1; }
.ae-chat-head .ae-title strong { display: block; color: var(--neutral-50); font-size: 14px; font-weight: 500; }
.ae-chat-head .ae-title span { display: flex; align-items: center; gap: 6px; color: var(--neutral-500); font-size: 11px; }
.ae-chat-head .ae-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oxide-400); animation: aePulse 2.4s infinite; }
.ae-chat-close {
  background: none; border: none; color: var(--neutral-500);
  cursor: pointer; padding: 4px; line-height: 1;
}
.ae-chat-close:hover { color: var(--neutral-50); }

.ae-chat-msgs {
  flex: 1; overflow-y: auto;
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.ae-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--neutral-200);
  animation: aeRise .25s ease-out;
}
.ae-msg.bot { background: var(--bg-deep); border: 1px solid var(--neutral-800); border-bottom-left-radius: 4px; align-self: flex-start; }
.ae-msg.user { background: var(--indigo-700); color: var(--neutral-50); border-bottom-right-radius: 4px; align-self: flex-end; }
.ae-typing { display: flex; gap: 4px; padding: 12px 14px; }
.ae-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--neutral-500); animation: aePulse 1.4s infinite; }
.ae-typing span:nth-child(2) { animation-delay: .2s; }
.ae-typing span:nth-child(3) { animation-delay: .4s; }

.ae-chat-starters {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 18px 8px;
}
.ae-chat-starters button {
  background: transparent;
  border: 1px solid var(--neutral-800);
  color: var(--neutral-400);
  font-family: inherit;
  font-size: 11.5px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.ae-chat-starters button:hover { border-color: var(--indigo-500); color: var(--neutral-50); }

.ae-chat-form {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--neutral-800);
}
.ae-chat-form input {
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--neutral-800);
  color: var(--neutral-50);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.ae-chat-form input:focus { border-color: var(--indigo-500); }
.ae-chat-form button {
  width: 38px; height: 38px;
  background: var(--neutral-50);
  color: var(--bg-deep);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: grid; place-items: center;
}
.ae-chat-form button:disabled { opacity: .4; cursor: not-allowed; }
.ae-chat-foot {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--neutral-600);
  letter-spacing: .08em;
  padding: 0 0 10px;
}

/* ============================================================ */
/* Section 05 — Le train de la précision (replaces matrix)      */
/* ============================================================ */
.precision-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 56px;
  margin-top: 56px;
  position: relative;
}
.precision-grid::before {
  content: "";
  grid-column: 2;
  background: linear-gradient(to bottom, transparent, var(--neutral-800) 12%, var(--neutral-800) 88%, transparent);
  width: 1px;
}
.precision-col { display: flex; flex-direction: column; gap: 28px; }
.precision-head .mono {
  display: block;
  color: var(--oxide-400);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  margin-bottom: 10px;
}
.precision-head h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  color: var(--neutral-50);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.precision-head .sub {
  color: var(--neutral-400);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}
.bench-list, .reg-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.bench-list li {
  display: grid;
  grid-template-columns: 1fr 84px 1fr 56px;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--neutral-800);
}
.bench-list li.now { border-bottom-color: var(--indigo-700); }
.bench-list .bench-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.92rem; color: var(--neutral-200);
}
.bench-list li.now .bench-label { color: var(--neutral-50); }
.bench-list .bench-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--neutral-500);
  letter-spacing: .08em;
}
.bench-list li.now .bench-year { color: var(--oxide-400); }
.bench-list .bench-bar {
  height: 4px;
  background: var(--neutral-800);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.bench-list .bench-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--indigo-700), var(--indigo-500));
  border-radius: 2px;
  animation: benchFill 1.8s ease-out both;
}
.bench-list li.now .bench-fill {
  background: linear-gradient(90deg, var(--indigo-500), var(--oxide-400));
}
@keyframes benchFill {
  from { width: 0 !important; }
}
.bench-list .bench-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--neutral-100);
  text-align: right;
  font-weight: 500;
}
.bench-list li.now .bench-val { color: var(--neutral-50); }

.reg-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--neutral-800);
}
.reg-list .reg-when {
  grid-row: 1; grid-column: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--oxide-400);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-top: 2px;
}
.reg-list .reg-what {
  grid-row: 1; grid-column: 2;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: var(--neutral-50);
  font-weight: 500;
}
.reg-list .reg-why {
  grid-row: 2; grid-column: 2;
  color: var(--neutral-400);
  font-size: 0.9rem;
  line-height: 1.55;
}
.precision-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: var(--neutral-200);
  line-height: 1.5;
  margin: 12px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--neutral-800);
}
.precision-quote .italic-em {
  font-style: italic;
  color: var(--neutral-50);
}

.precision-foot {
  margin-top: 72px;
  padding: 36px 40px;
  border: 1px solid var(--neutral-800);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(20,21,30,.6), rgba(12,13,20,.3));
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 48px;
  align-items: center;
}
.precision-bench { display: flex; align-items: baseline; gap: 24px; }
.precision-bench .big-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 4.6rem);
  color: var(--neutral-50);
  letter-spacing: -0.02em;
  line-height: 1;
}
.precision-bench .big-num .pct {
  font-size: 0.45em;
  color: var(--oxide-400);
  font-style: italic;
  margin-left: 4px;
}
.precision-bench .big-sub { display: flex; flex-direction: column; gap: 4px; }
.precision-bench .big-sub strong {
  color: var(--neutral-50);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}
.precision-bench .big-sub span {
  color: var(--neutral-400);
  font-size: 0.82rem;
  line-height: 1.5;
}
.precision-bench .big-sub .small.mono {
  color: var(--oxide-400);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .04em;
  margin-top: 4px;
}
.precision-proof .mono {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--oxide-400);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.precision-proof p {
  color: var(--neutral-300);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}
.precision-proof p em {
  font-style: italic;
  color: var(--neutral-100);
}
.precision-investor {
  display: block;
  text-align: center;
  margin-top: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--neutral-500);
}
.precision-investor a {
  color: var(--indigo-500);
  text-decoration: underline;
  text-decoration-color: rgba(93,93,217,.4);
  text-underline-offset: 3px;
}
.precision-investor a:hover { color: var(--neutral-50); }

@media (max-width: 880px) {
  .precision-grid { grid-template-columns: 1fr; gap: 48px; }
  .precision-grid::before { display: none; }
  .precision-foot { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .bench-list li { grid-template-columns: 1fr 56px; grid-template-rows: auto auto; gap: 4px 12px; }
  .bench-list .bench-bar { grid-column: 1 / -1; grid-row: 2; }
  .bench-list .bench-val { grid-column: 2; grid-row: 1; }
}

/* bench-foot disclaimer (section 05) */
.bench-foot.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--neutral-500);
  letter-spacing: .04em;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--neutral-800);
  line-height: 1.55;
}

/* Text link for inline references */
.text-link {
  color: var(--indigo-500);
  text-decoration: underline;
  text-decoration-color: rgba(93,93,217,.4);
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--neutral-50); text-decoration-color: currentColor; }

/* ============================================================ */
/* Investor page                                                */
/* ============================================================ */
.investor-page { min-height: 70vh; }
.investor-page h1.display { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 24px; }
.investor-page em { font-style: italic; color: var(--neutral-50); }
.invest-stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.ist {
  padding: 22px 20px;
  border: 1px solid var(--neutral-800);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(20,21,30,.6), rgba(12,13,20,.3));
}
.ist-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 2.1rem;
  color: var(--neutral-50);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.ist-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--oxide-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 8px 0 12px;
}
.ist-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--neutral-500);
  line-height: 1.55;
  letter-spacing: .02em;
}

/* ============================================================ */
/* RESPONSIVE — verrouillage mobile complet                      */
/* ============================================================ */

/* Anti-débordement absolu */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; height: auto; }
.wrap { padding-left: clamp(16px, 4vw, 56px); padding-right: clamp(16px, 4vw, 56px); }

/* Tap targets confortables (Apple HIG 44×44 / Material 48dp) */
@media (hover: none) {
  a, button { min-height: 44px; }
  .header-cta, .btn { padding-block: 12px; }
}

/* ---------- Tablette ≤ 960px ---------- */
@media (max-width: 960px) {
  .section-pad { padding-block: clamp(60px, 10vw, 100px); }
  .hero { padding-block-start: clamp(80px, 14vw, 140px); }
  .hero h1.display { font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1.05; }
}

/* ---------- Mobile ≤ 720px ---------- */
@media (max-width: 720px) {
  /* Header : compresser */
  .site-header .row { height: 56px; }
  .site-header .brand .label { font-size: 13px; }
  .header-cta { font-size: 12px; padding: 8px 14px; }

  /* Hero — hexagone Æ remis en plus petit, centré sous le texte */
  .hero-visual {
    max-width: 280px;
    margin: 32px auto 0;
    aspect-ratio: 1 / 1;
  }
  .hero-eyebrow .txt { font-size: 11px; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
    padding-top: 24px;
  }
  .hero-stats .stat .v { font-size: 28px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Titres généraux */
  h2.display { font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.1; }
  .body-lg { font-size: 1rem; line-height: 1.55; }

  /* Section heads */
  .section-head { gap: 12px; margin-bottom: 32px; }

  /* Principles : padding réduit */
  .principle { padding: 28px 22px 26px; }
  .principle h3 { font-size: 22px; }
  .principle .visual { height: 140px; margin: 0 -8px 20px; }
  .principle .num { top: 18px; right: 20px; }

  /* Merkle : hash-strip lisible */
  .hash-strip .row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
  }
  .hash-strip .row .k { font-size: 10px; letter-spacing: 0.12em; }
  .hash-strip .row .h { font-size: 11px; max-width: 100%; }
  .hash-strip .row .ok { font-size: 10px; justify-self: end; margin-top: -20px; }

  /* Funnel steps */
  .funnel { gap: 16px; }
  .funnel .step { padding: 20px 18px; }
  .funnel .step h4 { font-size: 16px; }

  /* Doctrine */
  .doctrine .timeline .yr {
    grid-template-columns: 60px 1fr;
    gap: 14px;
    padding: 12px 0;
  }
  .doctrine .extract blockquote { font-size: 1.05rem; line-height: 1.5; }

  /* Contact */
  .contact-meta .ln { grid-template-columns: 80px 1fr; gap: 10px; font-size: 12px; }
  form.contact-form { gap: 16px; }
  form.contact-form label { font-size: 12px; }

  /* Footer wrap */
  footer.site .ftop {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }
  footer.site .ftop .links { flex-wrap: wrap; gap: 14px 22px; }
  footer.site .flinks { flex-wrap: wrap; gap: 10px 18px; font-size: 11px; }
  footer.site .legal {
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 11px;
  }
  footer.site .wordmark { font-size: 48px; }

  /* Investor stats grid serrée */
  .invest-stats { gap: 14px; }
  .ist { padding: 18px 16px; }
  .ist-num { font-size: 1.7rem; }

  /* Précision (05) */
  .precision-bench { flex-direction: column; align-items: flex-start; gap: 14px; }
  .precision-bench .big-num { font-size: 3rem; }
  .precision-foot { padding: 24px 20px; }

  /* Legal pages */
  .legal-block { margin-top: 40px; }
  .legal-block h2 { font-size: 1.3rem; }

  /* Chatbot panel */
  .ae-chat-panel {
    right: 12px;
    bottom: 82px;
    width: calc(100vw - 24px);
    max-width: 380px;
  }
  .ae-chat-fab { right: 14px; bottom: 14px; }
}

/* ---------- Très petit ≤ 480px ---------- */
@media (max-width: 480px) {
  .site-header .row { height: 52px; }
  .brand .ae { font-size: 22px; }
  .brand .label { display: none; } /* on garde juste l'Æ */
  .hero-eyebrow { font-size: 11px; }
  h1.display, h2.display { letter-spacing: -0.01em; }
  .principle { padding: 24px 18px 22px; }
  .principle h3 { font-size: 20px; }
  .perimeter-grid { gap: 16px; }
  .ptile { padding: 22px 18px; }
  .ist-num { font-size: 1.5rem; }
  .precision-bench .big-num { font-size: 2.6rem; }
  .precision-foot { padding: 20px 16px; }
}

/* ---------- Très très petit ≤ 360px (vieux iPhones SE) ---------- */
@media (max-width: 360px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .hero h1.display { font-size: clamp(2rem, 9vw, 2.6rem); }
  .principle { padding: 20px 14px; }
  .ptile { padding: 18px 14px; }
}

/* ---------- Préfère-réduire-le-mouvement (déjà OK mais on renforce) ---------- */
@media (prefers-reduced-motion: reduce) {
  .ring-rotate, .bench-fill { animation: none !important; }
  .ae-chat-fab .dot, .ae-status-dot { animation: none !important; }
}

/* ---------- Désactiver hover sur tactile (évite états collés) ---------- */
@media (hover: none) {
  .principle:hover, .ptile:hover, .step:hover { transform: none; }
}

/* ============================================================ */
/* Centrage visuel mobile (≤ 720px) — équilibre et respiration  */
/* ============================================================ */
@media (max-width: 720px) {
  /* Hero : tout centré, lecture posée */
  .hero-grid { text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-eyebrow { justify-content: center; }
  .hero h1.display { margin-inline: auto; max-width: 16ch; }
  .hero .sub { margin-inline: auto; max-width: 38ch; }
  .hero-actions { justify-content: center; width: 100%; }
  .hero-stats { text-align: center; max-width: 320px; margin-inline: auto; }
  .hero-stats .stat .k { letter-spacing: 0.08em; }

  /* Section heads : titres centrés */
  .section-head { text-align: center; }
  .section-head .mono { text-align: center; }
  .section-head h2.display { margin-inline: auto; max-width: 18ch; }
  .section-head .body-lg { margin-inline: auto; max-width: 44ch; }

  /* Problème intro centrée */
  .problem-quote { text-align: center; max-width: 48ch; margin-inline: auto; }

  /* Approche / principles : kicker centré */
  .principle { text-align: left; }
  .principle .kicker { text-align: left; }

  /* Périmètre lede centré */
  .perimeter-lede { text-align: center; max-width: 44ch; margin-inline: auto; }
  .perimeter-foot { text-align: center; max-width: 44ch; margin-inline: auto; }

  /* Merkle copy centrée */
  .merkle-copy { text-align: center; }
  .merkle-copy .kicker { text-align: center; }
  .merkle-copy h2.display { margin-inline: auto; max-width: 14ch; }
  .merkle-copy .body-lg, .merkle-copy .body { margin-inline: auto; max-width: 42ch; }

  /* Section 05 (précision) : header centré */
  .precision-grid > .precision-col .precision-head { text-align: left; }
  .precision-investor { text-align: center; }

  /* Section funnel : intro centrée */
  .funnel .step { text-align: left; }

  /* Doctrine : centrage */
  .doctrine .left { text-align: center; }
  .doctrine .left h2.display { margin-inline: auto; max-width: 14ch; }
  .doctrine .left .body-lg { margin-inline: auto; max-width: 44ch; }
  .doctrine .timeline .yr { text-align: left; }
  .doctrine .extract { text-align: left; }

  /* Contact : alignement centré pour la copy */
  .contact-left { text-align: center; }
  .contact-left h2.display { margin-inline: auto; max-width: 14ch; }
  .contact-left .body-lg { margin-inline: auto; max-width: 42ch; }
  .contact-meta { max-width: 360px; margin-inline: auto; }
  .contact-meta .ln { text-align: left; }

  /* Footer */
  footer.site .ftop { text-align: center; }
  footer.site .ftop .links { justify-content: center; }
  footer.site .flinks { justify-content: center; }
  footer.site .legal { text-align: center; }
}
