/* Feuille commune du site (français et anglais, pages principales et
   « sécurité en détail »). Les pages FROST gardent leur propre style. */
:root {
  --bg: #060708;
  --surface: #0f1216;
  --surface-2: #141920;
  --line: #1c2128;
  --line-2: #2a3039;
  --text: #f4f5f7;
  --muted: #a3aab5;
  --dim: #6f7682;
  --accent: #7c93ff;
  --accent-soft: rgba(124, 147, 255, 0.14);
  --ok: #4ade80;
  --bad: #f87171;
  --warn: #ffb648;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --font-display: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* Variables de thème (sombre ici, claires dans :root[data-theme="light"]). */
  --on-accent: #060708;
  --nav-bg: rgba(6, 7, 8, 0.72);
  --nav-line: rgba(255, 255, 255, 0.06);
  --glass-1: rgba(255, 255, 255, 0.025);
  --glass-2: rgba(255, 255, 255, 0.006);
  --tint: rgba(255, 255, 255, 0.015);
  --tint-hover: rgba(255, 255, 255, 0.03);
  --grid-line: rgba(255, 255, 255, 0.035);
  --body-strong: #d2d6dd;
  --pgp-text: #cdd2da;
  --panel-1: #11151b;
  --panel-2: #0c0f13;
  --panel-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  --chip-bg: rgba(12, 14, 17, 0.75);
  --brand-grad: linear-gradient(145deg, #1d2330, #0d1016);
  --hover-line: #3d4450;
  --warn-text: #d8c2a0;
  --warn-strong: #f0c98a;
  --ok-soft-text: #9fd8b3;
  --logo-bg: #0b0d10;
  --deep-bg: #08090b;
  --dot-line: #3a404a;
  --item-text: #aab1bc;
  --item-strong: #e4e7ec;
  --code-text: #dfe3ea;
  --code-bg: rgba(255, 255, 255, 0.05);
  --frost-hover: #aab9ff;
  --dialog-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Passage en fondu entre les pages du site (navigateurs qui le prennent en charge). */
@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--font-mono); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }

/* ===== Navigation ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: 72px; display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(20px, 3vw, 40px);
  background: var(--nav-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--nav-line);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-grad); border: 1px solid var(--line-2); }
.nav-links { display: flex; gap: 16px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
/* FROST, la prochaine grande étape : mis en avant dans le menu. */
.nav-links a.nav-frost { color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }
.nav-links a.nav-frost:hover { color: var(--frost-hover); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.badge-private {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; white-space: nowrap;
  color: var(--warn); border: 1px solid rgba(255, 182, 72, 0.35); background: rgba(255, 182, 72, 0.06);
  padding: 6px 12px; border-radius: 999px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px;
  border-radius: 12px; font-weight: 600; font-size: 17px; white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--text), var(--bg) 8%); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--hover-line); background: var(--tint-hover); }
.lang-switch { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; transition: color 0.2s, border-color 0.2s; }
.lang-switch:hover { color: var(--text); border-color: var(--hover-line); }
.frost-link {
  height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.18em;
  color: var(--text); background: var(--accent-soft); border: 1px solid rgba(124, 147, 255, 0.45);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.frost-link:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ===== Héro ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px var(--gutter) 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 74% 46%, rgba(124, 147, 255, 0.17), transparent 70%),
    radial-gradient(ellipse 40% 35% at 12% 8%, rgba(167, 139, 250, 0.07), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 62% 45%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 60% at 62% 45%, #000 25%, transparent 75%);
}
.hero-inner { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow .num { font-family: var(--font-mono); color: var(--accent); letter-spacing: 0.04em; }
.eyebrow .new { color: var(--ok); }
h1 { font-size: clamp(44px, 4.9vw, 72px); line-height: 1.04; letter-spacing: -0.036em; margin-top: 22px; text-wrap: balance; }
h1 .strike { position: relative; color: var(--dim); white-space: nowrap; }
h1 .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 0.07em; border-radius: 1em;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  animation: strike 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.7s forwards;
}
@keyframes strike { to { transform: scaleX(1); } }

.pgp { margin-top: 32px; max-width: 580px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--glass-1), var(--glass-2)); }
.pgp-armor { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--dim); }
.pgp-text { font-family: var(--font-mono); font-size: 16.5px; line-height: 1.72; color: var(--pgp-text); margin: 12px 0; letter-spacing: 0.01em; }
.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.lock-stage { position: relative; width: min(100%, 560px); aspect-ratio: 1 / 1; }
.lock-stage canvas, .lock-stage .lock-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Un seul des deux à la fois : le dessin seulement sans WebGL. */
.lock-stage canvas { display: block; }
.lock-stage .lock-fallback { display: none; }
.lock-stage.no-webgl canvas { display: none; }
.lock-stage.no-webgl .lock-fallback { display: block; }
.lock-floor { position: absolute; left: 50%; bottom: 5%; width: 56%; height: 10%; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(124, 147, 255, 0.30), rgba(124, 147, 255, 0) 70%); filter: blur(10px); pointer-events: none; }
.lock-status {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 6px;
  padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--chip-bg); font-size: 15px; font-weight: 600; color: var(--muted);
}
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(124, 147, 255, 0.15); transition: background 0.3s, box-shadow 0.3s; }
.lock-status.open .led { background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15), 0 0 14px rgba(74, 222, 128, 0.6); }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; font-weight: 500; }
.scroll-hint svg { animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(7px); opacity: 1; } }

/* ===== Chiffres clés ===== */
.strip { padding: 0 var(--gutter); }
.strip-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--glass-1), var(--glass-2)); }
.stat { padding: 32px 30px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-k { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 3.4vw, 48px); letter-spacing: -0.03em; line-height: 1; }
.stat-l { margin-top: 12px; font-size: 16.5px; line-height: 1.5; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 130px var(--gutter); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center h2, .section-head.center .lead { margin-left: auto; margin-right: auto; }
.feature { min-height: 92vh; display: flex; align-items: center; padding: 110px var(--gutter); }
.feature-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.feature.reverse .feature-copy { order: 2; }
h2 { font-size: clamp(36px, 4.1vw, 56px); line-height: 1.07; letter-spacing: -0.032em; margin-top: 18px; max-width: 640px; text-wrap: balance; }
.lead { font-size: 19.5px; line-height: 1.7; color: var(--muted); margin-top: 22px; max-width: 560px; text-wrap: pretty; }
.feature-visual { display: flex; justify-content: center; }

/* Liste à coches des sections */
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.ticks li { position: relative; padding-left: 34px; font-size: 17.5px; line-height: 1.6; color: var(--body-strong); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c93ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks strong { color: var(--text); font-weight: 600; }

.panel {
  width: 100%; max-width: 460px; padding: 32px;
  background: linear-gradient(180deg, var(--panel-1), var(--panel-2));
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--panel-shadow), inset 0 1px 0 var(--tint-hover);
}
.panel-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.panel-label { font-size: 15px; color: var(--dim); }
.panel.list { padding: 0; overflow: hidden; }
.panel-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--dim); }
.panel-bar strong { color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.rows { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* Révélations : état de départ, puis `.play` posé par le script quand la
   section arrive à l'écran (délais en cascade, voir --d). */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.play .reveal { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

/* ===== 01 — Le problème ===== */
.problems { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem { padding: 30px 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--glass-1), var(--glass-2)); }
.problem-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(248, 113, 113, 0.1); color: var(--bad); }
.problem h3 { margin-top: 20px; font-size: 22px; letter-spacing: -0.01em; }
.problem p { margin-top: 10px; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.answer {
  margin-top: 28px; padding: 26px 30px; border-radius: 20px; display: flex; align-items: center; gap: 20px;
  border: 1px solid rgba(124, 147, 255, 0.35); background: linear-gradient(90deg, rgba(124, 147, 255, 0.12), rgba(124, 147, 255, 0.03));
}
.answer-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.answer p { font-size: 19px; line-height: 1.55; color: var(--text); }
.answer p span { color: var(--muted); }

/* ===== 02 — Sauvegarde ===== */
.keys { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.key { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); }
.key-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); flex-shrink: 0; }
.key-name { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.key-where { font-size: 14px; color: var(--dim); }
.key-state { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.play .key.read .key-state { color: var(--ok); }
/* Atténuées une fois apparues (avant : la règle l'emportait sur l'état caché de
   l'animation, et la case se montrait avant son tour). */
.play .key.lost { opacity: 0.45; }
.play .key.idle { opacity: 0.55; }
.key.lost .key-name { text-decoration: line-through; text-decoration-color: var(--bad); }
.key.lost .key-state { color: var(--bad); }
.restored {
  margin-top: 18px; padding: 16px 18px; border-radius: 14px; display: flex; align-items: center; gap: 12px;
  background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.3); color: var(--ok); font-weight: 600; font-size: 16.5px;
}
.restored small { display: block; font-weight: 400; font-size: 14px; color: var(--ok-soft-text); }

/* ===== 03 — Fonctionnalités ===== */
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 28px 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--glass-1), var(--glass-2)); display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card.wide { grid-column: span 2; }
.card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card h3 { margin-top: 18px; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 16px; font-size: 15px; font-weight: 600; color: var(--accent); }
.logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.logos img, .logos .logo-base { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; background: var(--logo-bg); border: 1px solid var(--line); padding: 2px; }
/* Symbole de Base (cercle entaillé) : sur fond blanc, comme ses déclinaisons officielles. */
.logos .logo-base { display: inline-grid; place-items: center; background: #fff; padding: 4px; }
.logos .logo-base svg { width: 100%; height: 100%; display: block; }

/* ===== 04 — Actions tokenisées ===== */
.stock-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); }
.stock-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.stock-name { font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.stock-sym { font-size: 13.5px; color: var(--dim); font-family: var(--font-mono); }
.spark { margin-left: auto; width: 104px; height: 34px; flex-shrink: 0; overflow: visible; }
.spark .line { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease; }
.spark .area { opacity: 0; transition: opacity 0.8s ease; }
.play .spark .line { stroke-dashoffset: 0; transition-delay: var(--d, 0s); }
.play .spark .area { opacity: 1; transition-delay: calc(var(--d, 0s) + 0.6s); }
.spark.up .line { stroke: var(--ok); }
.spark.down .line { stroke: var(--bad); }
.spark.up .spark-stop { stop-color: var(--ok); stop-opacity: 0.28; }
.spark.down .spark-stop { stop-color: var(--bad); stop-opacity: 0.28; }
.spark .spark-stop.end { stop-opacity: 0; }
.stock-price { width: 92px; text-align: right; font-family: var(--font-mono); font-size: 15.5px; line-height: 1.3; }
.stock-price span { display: block; font-size: 13px; }
.stock-price .up { color: var(--ok); }
.stock-price .down { color: var(--bad); }
.note {
  margin-top: 26px; padding: 18px 20px; border-radius: 14px; max-width: 560px;
  background: rgba(255, 182, 72, 0.06); border: 1px solid rgba(255, 182, 72, 0.22);
  font-size: 15.5px; line-height: 1.6; color: var(--warn-text);
}
.note strong { color: var(--warn-strong); }

/* ===== 05 — Échanges ===== */
.swap-box { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); }
.swap-label { font-size: 14px; color: var(--dim); }
.swap-amount { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.swap-amount img { width: 30px; height: 30px; object-fit: contain; }
.swap-amount img.sol { transform: scale(2.05); }
/* Flèche entre les deux cases, sans les chevaucher. */
.swap-arrow { display: flex; justify-content: center; margin: 12px 0; }
.swap-arrow span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.quotes { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.quote { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15.5px; color: var(--muted); transition: border-color 0.35s, background 0.35s, color 0.35s; }
.quote b { font-weight: 600; color: inherit; }
.quote .q-out { font-family: var(--font-mono); }
.quote .q-best { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ok); margin-left: 8px; }
.play .quote.best { border-color: var(--accent); background: var(--accent-soft); color: var(--text); transition-delay: 1.1s; }
.verified { margin-top: 20px; display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 600; color: var(--ok); }

/* ===== 06 — Sécurité ===== */
.dialog { width: 100%; max-width: 450px; background: #f3f3f3; color: #1b1b1b; border-radius: 12px; overflow: hidden; box-shadow: var(--dialog-shadow); opacity: 0; transform: scale(0.94) translateY(10px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.play .dialog { opacity: 1; transform: none; transition-delay: 0.15s; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 13.5px; color: #333; background: #fff; border-bottom: 1px solid #e3e3e3; font-family: 'Segoe UI', var(--font-body); }
.dialog-body { padding: 24px 26px 8px; font-family: 'Segoe UI', var(--font-body); }
.dialog-title { font-size: 19px; font-weight: 600; color: #003e92; }
.dialog-lines { margin-top: 14px; font-family: var(--font-mono); font-size: 15px; line-height: 1.95; color: #2a2a2a; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 22px; background: #eaeaea; margin-top: 18px; }
.dialog-actions span { min-width: 104px; text-align: center; padding: 8px 0; border-radius: 5px; font-size: 15px; border: 1px solid #c8c8c8; background: #fdfdfd; font-family: 'Segoe UI', var(--font-body); }
.dialog-actions .ok { background: #0067c0; border-color: #0067c0; color: #fff; }
.dialog-caption { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--dim); max-width: 450px; }

.shields { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.shield { display: flex; gap: 16px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.shield-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.shield h3 { font-size: 18px; letter-spacing: -0.005em; line-height: 1.35; }
.shield p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.honest {
  margin-top: 40px; padding: 28px 30px; border-radius: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: rgba(255, 182, 72, 0.06); border: 1px solid rgba(255, 182, 72, 0.25);
}
.honest-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 182, 72, 0.14); color: var(--warn); }
.honest h3 { font-size: 19px; color: var(--warn-strong); }
.honest p { margin-top: 6px; font-size: 16px; line-height: 1.65; color: var(--warn-text); }
.deep-link { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: border-color 0.2s, background 0.2s; }
.deep-link:hover { border-color: var(--hover-line); background: var(--tint-hover); }
.deep-link.accent { border-color: rgba(124, 147, 255, 0.5); background: var(--accent-soft); color: var(--text); }
.deep-link.accent:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.honest-links { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* ===== 07 — FROST ===== */
.frost-feature { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 78% 50%, rgba(124, 147, 255, 0.10), transparent 70%), linear-gradient(180deg, var(--deep-bg), var(--bg)); }
.frost-by { margin-top: 18px; text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.frost-by strong { color: var(--text); font-family: var(--font-display); }

/* ===== 07 — En pratique ===== */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step-card { position: relative; padding: 30px 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--glass-1), var(--glass-2)); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); }
.step-card h3 { margin-top: 18px; font-size: 22px; }
.step-card p { margin-top: 10px; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.restore-line { margin-top: 22px; text-align: center; font-size: 17px; color: var(--muted); }
.restore-line strong { color: var(--text); }

/* ===== 08 — Statut ===== */
.status { padding: 140px var(--gutter); display: flex; justify-content: center; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--deep-bg), var(--bg)); }
.status-inner { max-width: 820px; width: 100%; text-align: center; }
.status-inner h2 { margin: 18px auto 0; max-width: 760px; font-size: clamp(32px, 3.6vw, 48px); }
.roadmap { margin-top: 48px; text-align: left; border-top: 1px solid var(--line); }
.step { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--body-strong); }
.step a { color: var(--accent); }
.step-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.step-badge.done { background: var(--text); color: var(--bg); }
.step-badge.doing { border: 1.5px solid var(--accent); color: var(--accent); }
.step-badge.todo { border: 1.5px solid var(--line-2); color: var(--dim); }
.step-badge.next { background: var(--accent); color: var(--on-accent); }
.step.next { color: var(--text); }
.step.next strong { color: var(--text); }

/* ===== 09 — Questions ===== */
.faq { margin-top: 48px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 28px; line-height: 1; color: var(--dim); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--text); }
.faq details p { padding: 0 0 26px; max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--muted); }

/* ===== 07 — Privacy is normal ===== */
.privacy { position: relative; border-top: 1px solid var(--line); background: radial-gradient(ellipse 55% 60% at 85% 20%, rgba(244, 183, 40, 0.07), transparent 70%), var(--bg); }
.privacy-title { font-size: clamp(44px, 5.4vw, 76px); letter-spacing: -0.04em; line-height: 1.02; }
/* « normal. » en doré, clin d'œil au slogan de la communauté Zcash. */
.privacy-word { background: linear-gradient(90deg, #f4b728, #ffd36e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ledgers { width: 100%; max-width: 470px; display: flex; flex-direction: column; gap: 14px; }
.ledger { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--panel-1), var(--panel-2)); box-shadow: var(--panel-shadow); }
.ledger.shielded { border-color: rgba(244, 183, 40, 0.35); }
.ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 14.5px; color: var(--muted); }
.ledger-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ledger-tag.open { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.ledger-tag.closed { color: #f4b728; background: rgba(244, 183, 40, 0.12); }
.ledger-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.ledger-row span { color: var(--dim); }
.ledger-row code { font-size: 14.5px; color: var(--text); }
.ledger-row code.masked { color: #f4b728; letter-spacing: 0.12em; }
.ledger-foot { margin-top: 10px; font-size: 14px; color: var(--muted); }
.privacy-cards { margin-top: 64px; }
.privacy-cards .card-icon { background: rgba(244, 183, 40, 0.12); color: #f4b728; }
.privacy-note { max-width: none; margin-top: 28px; }
:root[data-theme="light"] .privacy { background: radial-gradient(ellipse 55% 60% at 85% 20%, rgba(201, 138, 0, 0.08), transparent 70%), var(--bg); }
:root[data-theme="light"] .privacy-word { background-image: linear-gradient(90deg, #b87800, #d99a00); }
:root[data-theme="light"] .ledger.shielded { border-color: rgba(184, 120, 0, 0.35); }
:root[data-theme="light"] .ledger-tag.closed,
:root[data-theme="light"] .ledger-row code.masked,
:root[data-theme="light"] .privacy-cards .card-icon { color: #a86d00; }
:root[data-theme="light"] .ledger-tag.closed,
:root[data-theme="light"] .privacy-cards .card-icon { background: rgba(184, 120, 0, 0.1); }

/* ===== Page FROST ===== */
.compare { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--glass-1), var(--glass-2)); }
.compare-col.next { border-color: rgba(124, 147, 255, 0.45); background: linear-gradient(180deg, rgba(124, 147, 255, 0.10), rgba(124, 147, 255, 0.02)); }
.compare-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.compare-col.next .compare-title { color: var(--accent); }
.compare-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; }
.compare-row span { color: var(--dim); }
.compare-row b { font-weight: 500; color: var(--body-strong); padding-left: 26px; position: relative; }
.compare-row b::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.compare-row.ok b::before { content: "✓"; color: var(--ok); }
.compare-row.warn b::before { content: "!"; color: var(--warn); left: 5px; }
/* Téléphone aux proportions d'un vrai écran (environ 9 × 19,5) : appareil
   sombre dans les deux thèmes du site (variables redéfinies sur lui). */
.phone { --text: #f4f5f7; --muted: #a3aab5; --dim: #6f7682; --line: #1c2128; --accent: #7c93ff; --on-accent: #060708; --ok: #4ade80; color: var(--text); width: min(360px, 86vw); aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; padding: 16px 16px 10px; border-radius: 52px; background: #050607; border: 1px solid #2c323b; box-shadow: 0 0 0 3px #12161b, 0 0 0 4px #2a3039, 0 60px 120px -40px rgba(0, 0, 0, 0.95); }
.phone-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 18px 0; font-size: 15px; font-weight: 600; color: var(--text); }
.phone-island { width: 108px; height: 32px; border-radius: 999px; background: #000; }
.phone-icons { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.phone-screen { flex: 1; display: flex; flex-direction: column; padding: 30px 10px 0; }
.phone-app { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.phone-title { margin-top: 12px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -0.01em; }
.phone-sub { text-align: center; font-size: 15px; color: var(--dim); }
.phone-amount { margin-top: 30px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -0.03em; line-height: 1.1; }
.phone-amount span { display: block; margin-top: 6px; font-family: var(--font-mono); font-weight: 400; font-size: 14.5px; letter-spacing: 0; color: var(--muted); }
.phone-lines { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.phone-lines div { display: flex; justify-content: space-between; padding: 13px 15px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 15px; }
.phone-lines span { color: var(--dim); }
.phone-lines b { font-weight: 600; font-family: var(--font-mono); font-size: 14.5px; }
.phone-signed { margin-top: 16px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ok); }
.phone-btn { margin-top: auto; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; }
.phone-cancel { margin: 14px 0 6px; text-align: center; font-size: 15.5px; color: var(--dim); }
.phone-home { width: 130px; height: 5px; margin: 12px auto 4px; border-radius: 999px; background: #e6e8ec; opacity: 0.55; }
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ===== Sécurité en détail (page à part) ===== */
.deep { padding: 150px var(--gutter) 110px; }
.deep-inner { max-width: 900px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15.5px; font-weight: 500; }
.back:hover { color: var(--text); }
.group { margin-top: 64px; }
.group-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.group-title.warn { color: var(--warn); }
.item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.item h3 { font-size: 21px; letter-spacing: -0.01em; }
.item p { margin-top: 8px; font-size: 17px; line-height: 1.75; color: var(--item-text); }
.item code { color: var(--code-text); font-size: 0.92em; background: var(--code-bg); padding: 1px 6px; border-radius: 5px; }
.item strong { color: var(--item-strong); }
.todo-box { margin-top: 56px; padding: 26px 28px; background: rgba(255, 182, 72, 0.06); border: 1px solid rgba(255, 182, 72, 0.25); border-radius: 16px; }
.todo-box h3 { font-size: 19px; color: var(--warn-strong); }
.todo-box p { margin-top: 8px; font-size: 17px; line-height: 1.7; color: var(--warn-text); }

.footer { padding: 56px var(--gutter); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; color: var(--dim); font-size: 15px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer-copy { flex-basis: 100%; font-size: 13px; letter-spacing: 0.01em; opacity: 0.85; }

/* ===== Points de navigation ===== */
.dots { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; gap: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--dot-line); transition: all 0.25s ease; }
.dot.active { background: var(--text); border-color: var(--text); transform: scale(1.3); }

/* ===== Écrans étroits ===== */
@media (max-width: 1759px) { .badge-extra { display: none; } }
/* Écrans de 1400 à 1599 px : liens de section ET bouton « Mode d'emploi » ; barre resserrée pour que tout tienne. */
@media (min-width: 1400px) and (max-width: 1599px) {
  .nav { gap: 16px; padding: 0 28px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 14px; }
  .nav-actions { gap: 8px; }
  .badge-private { padding: 6px 10px; letter-spacing: 0.05em; }
  .guide-link { padding: 0 12px; font-size: 13.5px; }
  .frost-link { padding: 0 13px; letter-spacing: 0.12em; }
}
@media (max-width: 1399px) { .nav-links { display: none; } }
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .shields { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero { padding-top: 104px; }
  .hero-inner, .feature-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .lock-stage { width: min(78vw, 420px); }
  .feature.reverse .feature-copy { order: 0; }
  .feature { min-height: 0; padding: 90px var(--gutter); }
  .section { padding: 90px var(--gutter); }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .problems, .steps { grid-template-columns: 1fr; }
  .honest { grid-template-columns: auto 1fr; }
  .honest .honest-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .dots { display: none; }
  .scroll-hint { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { height: 64px; gap: 12px; }
  .badge-private { display: none; }
  .strip-inner { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .cards, .shields { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .panel { padding: 24px; }
  .panel.list { padding: 0; }
  .btn { height: 50px; font-size: 16px; }
  .eyebrow { flex-wrap: wrap; font-size: 12px; letter-spacing: 0.1em; gap: 8px; }
  .lock-status { max-width: 100%; padding: 8px 14px; font-size: 13px; }
  .lang-switch { display: inline-flex; height: 36px; padding: 0 12px; }
  .frost-link { height: 36px; padding: 0 11px; letter-spacing: 0.1em; }
  /* Menu des téléphones : tout tient sans déborder (FROST était coupé sous 402 px). */
  .nav { padding: 0 16px; }
  .nav-actions { gap: 8px; }
  .nav .brand { font-size: 16px; gap: 9px; }
  .answer { flex-direction: column; align-items: flex-start; padding: 22px; }
  .honest { grid-template-columns: 1fr; padding: 22px; }
  .spark { display: none; }
  .stock-price { margin-left: auto; }
  .faq summary { font-size: 18px; }
  html, body { overflow-x: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ===== Bouton thème clair / sombre ===== */
.theme-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.theme-toggle:hover { color: var(--text); border-color: var(--hover-line); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
@media (max-width: 640px) { .theme-toggle { width: 36px; height: 36px; } }
/* Très petits téléphones : le logo seul, sans le nom, pour garder les boutons. */
/* Téléphones : le cadenas seul, pour que thème, langue, Mode d'emploi et FROST tiennent. */
@media (max-width: 439px) { .nav .brand { font-size: 0; gap: 0; } }

/* ===== Thème clair (« version blanche ») ===== */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f2f3f5;
  --line: #e4e6ea;
  --line-2: #d6d9df;
  --text: #0d1014;
  --muted: #535a66;
  --dim: #7a818c;
  --accent: #4a63e7;
  --accent-soft: rgba(74, 99, 231, 0.10);
  --ok: #15803d;
  --bad: #dc2626;
  --warn: #b45309;
  --on-accent: #ffffff;
  --nav-bg: rgba(247, 247, 248, 0.82);
  --nav-line: rgba(13, 16, 20, 0.08);
  --glass-1: #ffffff;
  --glass-2: #fbfbfc;
  --tint: rgba(13, 16, 20, 0.025);
  --tint-hover: rgba(13, 16, 20, 0.04);
  --grid-line: rgba(13, 16, 20, 0.055);
  --body-strong: #262b33;
  --pgp-text: #262b33;
  --panel-1: #ffffff;
  --panel-2: #fafbfc;
  --panel-shadow: 0 30px 70px -40px rgba(20, 30, 60, 0.28);
  --chip-bg: rgba(255, 255, 255, 0.85);
  --brand-grad: linear-gradient(145deg, #ffffff, #eceef2);
  --hover-line: #b9bec7;
  --warn-text: #7a4e0c;
  --warn-strong: #8a5300;
  --ok-soft-text: #2f7a4a;
  --logo-bg: #ffffff;
  --deep-bg: #eef0f3;
  --dot-line: #c0c5cd;
  --item-text: #4a515c;
  --item-strong: #0d1014;
  --code-text: #1b1f24;
  --code-bg: rgba(13, 16, 20, 0.06);
  --frost-hover: #2f48c9;
  --dialog-shadow: 0 40px 80px -30px rgba(20, 30, 60, 0.35), 0 0 0 1px rgba(13, 16, 20, 0.08);
}
:root[data-theme="light"] .brand-mark svg { stroke: var(--text); }
:root[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 45% 55% at 74% 46%, rgba(74, 99, 231, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 35% at 12% 8%, rgba(167, 139, 250, 0.08), transparent 70%);
}
:root[data-theme="light"] .badge-private { color: #92400e; border-color: rgba(180, 83, 9, 0.35); background: rgba(180, 83, 9, 0.07); }
:root[data-theme="light"] .problem-icon { background: rgba(220, 38, 38, 0.08); }
:root[data-theme="light"] .restored { background: rgba(21, 128, 61, 0.07); border-color: rgba(21, 128, 61, 0.25); }
:root[data-theme="light"] .note,
:root[data-theme="light"] .honest,
:root[data-theme="light"] .todo-box { background: rgba(180, 83, 9, 0.06); border-color: rgba(180, 83, 9, 0.22); }
:root[data-theme="light"] .honest-icon { background: rgba(180, 83, 9, 0.12); }
:root[data-theme="light"] .answer { border-color: rgba(74, 99, 231, 0.3); background: linear-gradient(90deg, rgba(74, 99, 231, 0.09), rgba(74, 99, 231, 0.02)); }
:root[data-theme="light"] .compare-col.next { border-color: rgba(74, 99, 231, 0.35); background: linear-gradient(180deg, rgba(74, 99, 231, 0.07), rgba(74, 99, 231, 0.015)); }
:root[data-theme="light"] .frost-feature { background: radial-gradient(ellipse 60% 70% at 78% 50%, rgba(74, 99, 231, 0.08), transparent 70%), linear-gradient(180deg, var(--deep-bg), var(--bg)); }
:root[data-theme="light"] .card:hover { border-color: var(--line-2); }
:root[data-theme="light"] .lock-floor { background: radial-gradient(ellipse at center, rgba(74, 99, 231, 0.22), rgba(74, 99, 231, 0) 70%); }
/* Pages FROST : leur barre et leur titre animé ont un style propre. */
:root[data-theme="light"] .frost-stage .slash { box-shadow: 0 0 0.3em rgba(74, 99, 231, 0.4); background: linear-gradient(180deg, #8ea0ff, var(--accent)); }
:root[data-theme="light"] .frost-link[aria-current="page"] { color: #ffffff; }
:root[data-theme="light"] .nav { background: var(--nav-bg); border-bottom-color: var(--nav-line); }
:root[data-theme="light"] .brand-mark { background: var(--brand-grad); border-color: var(--line-2); }
:root[data-theme="light"] .badge-private { color: #92400e; }

/* ===== Mode d'emploi (guide.html, how-it-works.html) ===== */
.guide-link { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--body-strong); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.guide-link:hover { color: var(--text); border-color: var(--hover-line); background: var(--tint-hover); }
.guide-link[aria-current="page"] { color: var(--text); border-color: rgba(124, 147, 255, 0.45); background: var(--accent-soft); }
.guide-hero { position: relative; padding: 150px var(--gutter) 40px; overflow: hidden; }
.guide-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 60% at 82% 30%, rgba(124, 147, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 35% 40% at 8% 0%, rgba(167, 139, 250, 0.07), transparent 70%);
}
.guide-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 80% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 70% at 80% 30%, #000 20%, transparent 75%);
}
/* Plus large que les autres pages : sur un écran de 1920 px, la vidéo fait
   exactement 1024 px (fichier 1024 × 640 affiché pixel pour pixel). */
.guide-inner { position: relative; max-width: 1400px; margin: 0 auto; }
.guide-eyebrow { margin-top: 36px; }
.guide-hero h1 { max-width: 820px; }
.guide-platform { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 15px; line-height: 1.4; }
.guide-platform svg { color: var(--accent); flex: none; }
.guide-platform strong { color: var(--text); font-weight: 600; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.guide-toc a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--tint); color: var(--body-strong); font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.guide-toc a:hover { color: var(--text); border-color: var(--hover-line); background: var(--tint-hover); }
.guide-toc .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.guide-demo { margin-top: 20px; font-size: 14.5px; color: var(--dim); }
/* Accueil, section 09 : lien vers le mode d'emploi. */
.guide-cta { margin-top: 30px; display: flex; justify-content: center; }

.guide-cat { padding: 90px var(--gutter) 20px; scroll-margin-top: 72px; }
.guide-cat-head { display: flex; align-items: baseline; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.guide-cat-head .num { font-family: var(--font-mono); font-size: 15px; color: var(--accent); }
.guide-cat-head h2 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); }
.guide-cat-head p { margin-left: auto; max-width: 400px; text-align: right; color: var(--muted); font-size: 16px; }

.howto { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1026px); justify-content: space-between; gap: clamp(28px, 3vw, 44px); align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.howto h3 { font-size: 28px; letter-spacing: -0.02em; }
.howto-sub { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.howto-steps { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.howto-steps button {
  width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; text-align: left;
  border: 1px solid transparent; border-radius: 14px; background: none; color: var(--muted);
  font: inherit; font-size: 16.5px; line-height: 1.55; cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.howto-steps button:hover { background: var(--tint-hover); color: var(--body-strong); }
.howto-steps .n {
  flex: none; width: 28px; height: 28px; margin-top: -1px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 9px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--muted);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.howto-steps b { color: var(--body-strong); font-weight: 600; }
.howto-steps li.done .n { color: var(--accent); border-color: rgba(124, 147, 255, 0.45); }
.howto-steps li.active button { background: var(--accent-soft); border-color: rgba(124, 147, 255, 0.35); color: var(--text); }
.howto-steps li.active .n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.howto-steps li.active b { color: var(--text); }

.howto-video { margin: 0; }
/* Fenêtre Windows de l'app (barre de titre aux couleurs du thème Bleu). */
.app-window { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #08090c; box-shadow: var(--panel-shadow), 0 0 0 1px rgba(0, 0, 0, 0.2); }
.app-titlebar { height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 0 0 13px; background: #08090c; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #9aa1ad; font-size: 12.5px; letter-spacing: 0.01em; user-select: none; }
.app-ico { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; background: linear-gradient(145deg, #6d84ff, #4a63e7); }
.app-ctrl { margin-left: auto; display: flex; height: 100%; }
.app-ctrl i { width: 46px; height: 100%; position: relative; }
.app-ctrl .min::before { content: ""; position: absolute; left: 18px; top: 16px; width: 10px; height: 1px; background: #9aa1ad; }
.app-ctrl .max::before { content: ""; position: absolute; left: 18px; top: 12px; width: 8px; height: 8px; border: 1px solid #9aa1ad; }
.app-ctrl .close::before, .app-ctrl .close::after { content: ""; position: absolute; left: 17px; top: 16px; width: 12px; height: 1px; background: #9aa1ad; transform: rotate(45deg); }
.app-ctrl .close::after { transform: rotate(-45deg); }
.app-window video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #08090c; }
.howto-bar { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.howto-play { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--tint); color: var(--text); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.howto-play:hover { border-color: var(--hover-line); background: var(--tint-hover); }
.howto-play .i-pause, .howto.playing .howto-play .i-play { display: none; }
.howto.playing .howto-play .i-pause { display: block; }
.howto-progress { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.howto-progress .fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.howto-progress .tick { position: absolute; top: -3px; width: 2px; height: 10px; margin-left: -1px; border-radius: 2px; background: var(--line-2); }
.howto-demo { flex: none; font-size: 13px; color: var(--dim); white-space: nowrap; }

/* Fonctions pas encore filmées. */
.howto-soon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 32px 0 20px; }
.howto-soon { padding: 20px 22px; border: 1px dashed var(--line-2); border-radius: 16px; background: var(--tint); }
.howto-soon h3 { font-size: 17.5px; letter-spacing: -0.01em; color: var(--body-strong); }
.howto-soon span { display: block; margin-top: 6px; font-size: 14px; color: var(--dim); }

/* Étapes sous la vidéo dès que les deux colonnes seraient trop serrées. */
@media (max-width: 1180px) {
  .howto { grid-template-columns: 1fr; padding: 44px 0; }
  .howto-video { order: -1; }
  .guide-cat-head { flex-wrap: wrap; }
  .guide-cat-head p { margin-left: 0; width: 100%; text-align: left; }
}
/* Bouton masqué tant que la barre manque de place (lien gardé en section 09 et en pied de page). */
/* Téléphones : « Mode d'emploi » en icône (livre ouvert) au format du bouton thème ; le texte reste lu par les lecteurs d'écran. */
@media (max-width: 767px) {
  .guide-link { width: 40px; padding: 0; justify-content: center; font-size: 0; }
  .guide-link::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / contain no-repeat; }
}
@media (max-width: 640px) { .guide-link { width: 36px; height: 36px; } }
@media (max-width: 640px) {
  .guide-hero { padding-top: 120px; }
  .guide-cat { padding-top: 64px; }
  .howto h3 { font-size: 24px; }
  .howto-steps button { padding: 12px; font-size: 16px; }
  .howto-demo { display: none; }
  .app-titlebar { height: 28px; font-size: 11.5px; }
  .app-ctrl i { width: 34px; }
  .app-ctrl .min::before, .app-ctrl .max::before { left: 12px; }
  .app-ctrl .min::before { top: 13px; }
  .app-ctrl .max::before { top: 9px; }
  .app-ctrl .close::before, .app-ctrl .close::after { left: 11px; top: 13px; }
}
:root[data-theme="light"] .guide-hero::before {
  background:
    radial-gradient(ellipse 45% 60% at 82% 30%, rgba(74, 99, 231, 0.1), transparent 70%),
    radial-gradient(ellipse 35% 40% at 8% 0%, rgba(167, 139, 250, 0.08), transparent 70%);
}
:root[data-theme="light"] .howto-steps li.done .n,
:root[data-theme="light"] .guide-link[aria-current="page"] { border-color: rgba(74, 99, 231, 0.4); }
:root[data-theme="light"] .howto-steps li.active button { border-color: rgba(74, 99, 231, 0.3); }
:root[data-theme="light"] .app-window { border-color: #c9ced6; }

/* Mode d'emploi : sommaire. Sur grand écran, dans la marge DROITE, épuré :
   une fine ligne verticale, les grands titres en petit, la partie en cours
   marquée d'un trait de couleur sur la ligne (pas de boîte : la colonne vidéo
   garde ses 1024 px, image nette au pixel près). Sinon, un bouton
   « Sommaire » en bas à droite ouvre le même contenu en panneau. */
.guide-side {
  position: fixed; z-index: 35; top: 50%; right: 28px; width: 200px;
  transform: translate(10px, -50%); opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
/* Visible seulement une fois qu'on a commencé à descendre (classe posée par
   site.js au-delà de l'en-tête). */
.guide-scrolled .guide-side { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.guide-side-title { margin: 0 0 14px 18px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.guide-side ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.guide-side .side-cat > a {
  position: relative; display: flex; gap: 10px; align-items: baseline;
  padding: 7px 0 7px 18px; color: var(--dim); font-size: 13.5px; font-weight: 500; line-height: 1.35;
  transition: color 0.2s;
}
.guide-side .side-cat > a .num { font-family: var(--font-mono); font-size: 11px; color: var(--dim); transition: color 0.2s; }
.guide-side .side-cat > a::before {
  content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleY(0); transition: transform 0.25s ease;
}
.guide-side .side-cat > a:hover { color: var(--text); }
.guide-side .side-cat > a.current { color: var(--text); font-weight: 600; }
.guide-side .side-cat > a.current .num { color: var(--accent); }
.guide-side .side-cat > a.current::before { transform: scaleY(1); }
.guide-side-toggle { display: none; }
@media (max-width: 1879px) {
  .guide-side-toggle {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 36; right: 16px; bottom: 16px;
    height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--text); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--panel-shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }
  .guide-scrolled .guide-side-toggle { opacity: 1; visibility: visible; transform: none; }
  .guide-side, .guide-scrolled .guide-side {
    top: auto; bottom: 70px; right: 16px; width: min(280px, calc(100vw - 32px));
    padding: 18px 20px 16px; border: 1px solid var(--line-2); border-radius: 16px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--panel-shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .guide-side .side-cat > a { font-size: 14.5px; padding: 9px 0 9px 18px; }
  .guide-side.open { opacity: 1; visibility: visible; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .guide-side, .guide-side .side-cat > a::before { transition: none; } }

/* ===== Page FROST : style Zcash (doré, comme « Privacy is normal ») =====
   Variables redéfinies sur <body class="frost-page"> : tout ce qui suit
   l'accent (numéros, icônes, étapes, badges, bouton du téléphone) passe au
   doré ; les bleus écrits en dur sont repris ici. */
.frost-page {
  --accent: #f4b728;
  --accent-soft: rgba(244, 183, 40, 0.12);
  --frost-hover: #ffd36e;
  --on-accent: #0b0903;
  --gold-1: #f4b728;
  --gold-2: #ffd36e;
}
/* Retour à l'accueil, en haut à gauche de l'en-tête (comme sur les pages
   Sécurité et Mode d'emploi). */
.frost-back { position: absolute; z-index: 2; top: 100px; left: var(--gutter); animation: frost-fade 0.6s ease 0.2s both; }
@media (max-width: 640px) { .frost-back { top: 84px; } }
/* Section 03 : titre long (trois idées), colonne élargie pour qu'il tienne en trois lignes. */
.frost-page #frost-how .section-head { max-width: 1000px; }
.frost-page #frost-how .section-head h2 { max-width: none; }
/* « Comprendre » centré : l'animation d'apparition des pages FROST finissait
   sur transform: none, qui annulait le translateX(-50%) du centrage. */
.frost-page .frost-stage .scroll-hint { animation-name: frost-hint-fade; }
@keyframes frost-hint-fade { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* Point de navigation actif en doré. */
.frost-page .dot.active { background: var(--accent); border-color: var(--accent); }
.frost-page .gold { background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.frost-page .frost-stage {
  background:
    radial-gradient(ellipse 52% 42% at 50% 54%, rgba(244, 183, 40, 0.11), transparent 70%),
    radial-gradient(ellipse 38% 34% at 88% 12%, rgba(244, 183, 40, 0.05), transparent 70%);
}
.frost-page .slash { background: linear-gradient(180deg, #ffe39a, #f4b728); box-shadow: 0 0 0.35em rgba(244, 183, 40, 0.55); }
.frost-page .frost-credit strong { color: var(--gold-1); }
.frost-page .frost-soon { border-color: rgba(244, 183, 40, 0.45); }
.frost-page .frost-link { border-color: rgba(244, 183, 40, 0.45); }
.frost-page .frost-link:hover, .frost-page .frost-link[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.frost-page .section, .frost-page .feature, .frost-page .status { border-top: 1px solid var(--line); }
.frost-page #frost-idea { background: radial-gradient(ellipse 55% 60% at 85% 20%, rgba(244, 183, 40, 0.06), transparent 70%), var(--bg); }
.frost-page #frost-why { background: radial-gradient(ellipse 50% 60% at 18% 50%, rgba(244, 183, 40, 0.06), transparent 70%), var(--bg); }
.frost-page #frost-status { background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(244, 183, 40, 0.07), transparent 70%), var(--bg); }
.frost-page .compare-col.next { border-color: rgba(244, 183, 40, 0.4); background: linear-gradient(180deg, rgba(244, 183, 40, 0.09), rgba(244, 183, 40, 0.02)); }
.frost-page .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4b728' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.frost-page .step-num { background: var(--accent); color: var(--on-accent); }
.frost-page .phone { --accent: #f4b728; --on-accent: #0b0903; border-color: rgba(244, 183, 40, 0.28); }
.frost-page .btn-primary { background: var(--accent); color: var(--on-accent); }
.frost-page .btn-primary:hover { background: var(--gold-2); }
:root[data-theme="light"] .frost-page { --accent: #b87800; --accent-soft: rgba(184, 120, 0, 0.10); --frost-hover: #8a5a00; --on-accent: #ffffff; --gold-1: #b87800; --gold-2: #d99a00; }
:root[data-theme="light"] .frost-page .frost-stage {
  background:
    radial-gradient(ellipse 52% 42% at 50% 54%, rgba(201, 138, 0, 0.10), transparent 70%),
    radial-gradient(ellipse 38% 34% at 88% 12%, rgba(201, 138, 0, 0.05), transparent 70%);
}
:root[data-theme="light"] .frost-page .frost-stage .slash { background: linear-gradient(180deg, #e2b450, #b87800); box-shadow: 0 0 0.3em rgba(184, 120, 0, 0.35); }
:root[data-theme="light"] .frost-page .frost-soon,
:root[data-theme="light"] .frost-page .frost-link { border-color: rgba(184, 120, 0, 0.4); }
:root[data-theme="light"] .frost-page .frost-link[aria-current="page"] { color: #ffffff; }
:root[data-theme="light"] .frost-page #frost-idea { background: radial-gradient(ellipse 55% 60% at 85% 20%, rgba(201, 138, 0, 0.07), transparent 70%), var(--bg); }
:root[data-theme="light"] .frost-page #frost-why { background: radial-gradient(ellipse 50% 60% at 18% 50%, rgba(201, 138, 0, 0.07), transparent 70%), var(--bg); }
:root[data-theme="light"] .frost-page #frost-status { background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(201, 138, 0, 0.08), transparent 70%), var(--bg); }
:root[data-theme="light"] .frost-page .compare-col.next { border-color: rgba(184, 120, 0, 0.35); background: linear-gradient(180deg, rgba(184, 120, 0, 0.07), rgba(184, 120, 0, 0.015)); }
:root[data-theme="light"] .frost-page .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b87800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
:root[data-theme="light"] .frost-page .btn-primary:hover { background: #8a5a00; }

/* ===== Livre blanc FROST (frost-livre-blanc.html / frost-white-paper.html) ===== */
.frost-page .frost-link[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
:root[data-theme="light"] .frost-page .frost-link[aria-current="true"] { color: #ffffff; }
.paper-hero h1 { max-width: 900px; }
.paper-meta { margin-top: 18px; font-size: 15px; color: var(--dim); font-family: var(--font-mono); letter-spacing: 0.01em; }
.paper-points { padding-top: 70px; padding-bottom: 40px; }
.paper-honest { margin-top: 48px; grid-template-columns: auto 1fr; }
.paper-doc { padding-top: 40px; }
.paper-frame { display: block; width: 100%; height: min(88vh, 1200px); border: 1px solid var(--line-2); border-radius: 18px; background: #ffffff; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6); }
@media (max-width: 767px) { .paper-doc { display: none; } }
@media (max-width: 640px) { .paper-honest { grid-template-columns: 1fr; } }
.paper-hero .guide-inner { max-width: var(--maxw); }
.paper-hero .eyebrow .num { text-transform: none; }
.frost-page .paper-hero::before {
  background:
    radial-gradient(ellipse 45% 60% at 82% 30%, rgba(244, 183, 40, 0.12), transparent 70%),
    radial-gradient(ellipse 35% 40% at 8% 0%, rgba(255, 214, 102, 0.06), transparent 70%);
}
:root[data-theme="light"] .frost-page .paper-hero::before {
  background:
    radial-gradient(ellipse 45% 60% at 82% 30%, rgba(201, 138, 0, 0.10), transparent 70%),
    radial-gradient(ellipse 35% 40% at 8% 0%, rgba(201, 138, 0, 0.05), transparent 70%);
}

/* Code source sur GitHub (logo seul, au format du bouton thème), à la place de l'ancien badge « En développement » (l'avertissement reste dans la section Projet et le pied de page). */
.gh-link { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.gh-link:hover { color: var(--text); border-color: var(--hover-line); }
.gh-link svg { flex: none; }

/* Téléphones : masqué comme l'ancien badge, faute de place ; le lien reste dans la section Projet et le pied de page. */
@media (max-width: 640px) { .gh-link { display: none; } }
