/* Nautilus — base commune (tokens, typo, boutons, en-tête, coquille). Contrastes : AUDIT-DESIGN.md */
:root {
  --paper: #F4EFE6; --paper-2: #EAE2D5; --ink: #1E1A16; --sepia: #7A4E2D; --accent: #D98C6A; --accent-ink: #A4502F; --crack: #9B2C1F;
  --nacre-hi: #fdf8f1; --nacre: #f0dccb; --nacre-iris: #e3e4d6; --nacre-mid: #e6bfa8; --nacre-lo: #d39a7c; --ink-2: #2a241e; --rule: rgba(30, 26, 22, .18);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif; --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px; --gut: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
/* chiffres alignés partout : le raccourci font: remettrait les chiffres elzéviriens de Cormorant (« 0 » lu « o ») */
*, *::before, *::after { font-variant-numeric: lining-nums !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.55 var(--serif); font-feature-settings: "lnum", "liga"; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
body::before { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: var(--accent); color: var(--ink); }
::placeholder { color: var(--sepia); opacity: 1; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
h1, h2, h3 { font-feature-settings: "lnum", "liga"; font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 6.4vw, 92px); }
h2 { font-size: clamp(32px, 3.6vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono, .data { font-family: var(--mono); font-size: 14px; letter-spacing: 0; font-feature-settings: "tnum"; }
.cap { font-style: italic; color: var(--sepia); }
.muted { color: var(--sepia); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1.5px solid var(--ink); border-radius: 2px;
  font: 500 15px/1 var(--mono); color: var(--paper); background: var(--ink); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.nacre { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
/* en-tête */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper-2); border-bottom: 1px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 26px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 18px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-ink); text-decoration-thickness: 1.5px; }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; min-height: 42px; padding: 0 18px; } }
.net { display: inline-flex; align-items: center; gap: 8px; font: 12px/1 var(--mono); color: var(--sepia); border: 1px solid var(--rule); border-radius: 2px; padding: 7px 11px; white-space: nowrap; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); }
@media (max-width: 1000px) { .net { display: none; } }
/* coquille */
.shell .sh-wall { stroke: var(--ink); stroke-width: 2; }
.shell .sh-wall-under { stroke: var(--sepia); stroke-width: 6; stroke-opacity: .16; }
.shell.draw .sh-wall { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nau-draw 2.4s cubic-bezier(.6,.1,.2,1) .2s forwards; }
.shell.draw .sh-closed, .shell.draw .sh-hatch, .shell.draw .sh-current, .shell.draw .sh-label, .shell.draw .sh-septum { opacity: 0; animation: nau-fade .9s ease 1.7s forwards; }
@keyframes nau-draw { to { stroke-dashoffset: 0; } }
@keyframes nau-fade { to { opacity: 1; } }
.shell .sh-proto { fill: var(--sepia); fill-opacity: .16; stroke: var(--sepia); stroke-width: .6; }
.shell .sh-proto-sep { stroke: var(--sepia); stroke-width: .5; stroke-opacity: .6; }
.shell .sh-closed { stroke: var(--sepia); stroke-width: 1; }
.shell .sh-hatch { stroke: none; }
.shell .sh-septum { stroke: var(--ink); stroke-width: 1.6; }
.shell .sh-ghost { stroke: var(--sepia); stroke-width: .8; stroke-dasharray: 3 4; stroke-opacity: .55; }
.shell .sh-current { stroke: var(--accent-ink); stroke-width: 1.2; }
.shell .sh-siphon { stroke: var(--sepia); stroke-width: 1.4; stroke-opacity: .6; stroke-dasharray: 1 3; stroke-linecap: round; }
.shell .sh-crack { stroke: var(--crack); stroke-width: 2; stroke-linecap: round; }
.shell .sh-label { fill: var(--sepia); font-family: var(--mono); stroke: none; }
.shell .sh-label.is-closed { fill: var(--ink); }
.status { font: 500 12px/1 var(--mono); padding: 5px 9px; border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; }
.status.armed { color: var(--sepia); } .status.burned { color: var(--paper); background: var(--ink); border-color: var(--ink); } .status.cancelled { color: var(--crack); }
.placeholder { display: grid; place-items: center; border: 1px dashed var(--sepia); color: var(--sepia); font: italic 16px/1.3 var(--serif); text-align: center; padding: 16px; background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(122, 78, 45, .06) 9px 10px); }
.sim-note { font: italic 15px/1.3 var(--serif); color: var(--sepia); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
