/* SimplComIA — identité « fuite de données »
   Encre indigo profond, papier froid pour ce que l'on remplit, rouge signal pour ce qui a fuité. */
:root {
  --ink: #0d1233;
  --ink-2: #161c4a;
  --ink-3: #222a63;
  --paper: #edeff7;
  --paper-2: #d9dcea;
  --text: #edeff7;
  --fog: #9ca5cf;
  --signal: #ff5b3a;
  --signal-deep: #3a0f16;
  --amber: #ffb23e;
  --scan: #8e7cff;
  --line: rgba(156, 165, 207, 0.2);

  /* Anciens noms conservés pour les scripts et gabarits existants */
  --night: var(--ink);
  --night-2: var(--ink-2);
  --night-3: var(--ink-3);
  --porcelain: var(--text);
  --mist: var(--fog);
  --violet: var(--scan);
  --danger: var(--signal);
  --orange: #ff8a3d;

  --display: 'Anybody', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;

  /* Échelle 1.25, corps légèrement grand : lisible par tous */
  --s-1: 0.85rem;
  --s0: 1.0625rem;
  --s1: 1.33rem;
  --s2: 1.66rem;
  --s3: 2.2rem;
  --s4: clamp(2.6rem, 6vw, 5.4rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 36rem;
  --radius: 14px;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--s0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; font-variation-settings: 'wdth' 72; }
h1 { font-size: var(--s4); letter-spacing: -0.01em; }
h2 { font-size: var(--s3); }
h3 { font-size: var(--s1); font-weight: 700; font-variation-settings: 'wdth' 85; line-height: 1.2; }
p { margin: 0; max-width: var(--measure); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--paper); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--scan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--fog); }
.small { font-size: var(--s-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.h1-page { font-size: var(--s3); }


/* ---------- En-tête ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.75rem; }
.brand { font-family: var(--display); font-weight: 900; font-size: 1.4rem; text-decoration: none; font-variation-settings: 'wdth' 62; letter-spacing: 0.01em; }
.top nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2rem); font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--fog); }
.top nav a:hover { color: var(--text); }
.top nav .nav-account { color: var(--text); padding: 0.45rem 0.95rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 760px) { .top nav > a:not(.nav-account) { display: none; } }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; color: var(--fog); display: flex; align-items: center; gap: 0.35rem; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ''; width: 0.4rem; height: 0.4rem; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: translateY(-0.15rem) rotate(45deg); }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 0.6rem); margin: 0; padding: 0.4rem; list-style: none; min-width: 9rem; border-radius: var(--radius); background: var(--paper); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); z-index: 60; }
.lang-menu a { display: block; padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--ink) !important; text-decoration: none; }
.lang-menu a:hover { background: var(--paper-2); }
.lang-menu a[aria-current='true'] { font-weight: 700; }

/* ---------- Boutons et champs ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem/1 var(--body); padding: 0.95rem 1.5rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color 0.15s, transform 0.15s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fog); }
.btn.danger { background: transparent; color: #ff9b8a; box-shadow: inset 0 0 0 1.5px rgba(255, 155, 138, 0.45); }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.95rem; color: var(--fog); }
input[type='email'], input[type='text'] {
  width: 100%; font: 1.0625rem var(--body); color: var(--text); background: var(--ink); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 0.85rem 1rem;
}
input::placeholder { color: rgba(156, 165, 207, 0.6); }
input:focus { outline: none; border-color: var(--scan); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--fog); cursor: pointer; }
.check input { accent-color: var(--scan); width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none; }
.notice { font-size: 0.95rem; min-height: 1.5em; }
.notice.error { color: #ff9b8a; }
.notice.ok { color: var(--text); }

/* ---------- Accueil : un seul bloc, centré sur le globe ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: 6.5rem var(--gutter) 4rem; text-align: center;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
#shield { display: none; }
/* Grand écran : trois zones, le bouclier IA à gauche, le bloc au centre, le globe à droite */
@media (min-width: 1200px) {
  /* Chaque animation occupe la bande libre de son côté, jusqu'au bord du bloc central */
  #shield, #scene { position: absolute; display: block; inset-block: 0; width: calc(50% - 20rem); height: 100%; z-index: -2; }
  #shield { inset-inline-start: 0; }
  #scene { inset-inline-start: auto; inset-inline-end: 0; }
  .hero::after { display: none; }
}
/* Halo sombre derrière le texte : le globe reste visible autour, jamais sous les mots */
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 40rem 22rem at 50% 48%, rgba(13, 18, 51, 0.82) 0%, rgba(13, 18, 51, 0.45) 55%, transparent 100%); }
.hero-copy { width: min(100%, 46rem); display: grid; gap: 1.4rem; justify-items: center; }
.hero-copy h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; font-variation-settings: 'wdth' 66; line-height: 1; text-wrap: balance; }
.hero-lead { font-size: var(--s1); color: var(--text); max-width: 32ch; }

.scan-form { width: min(100%, 38rem); display: grid; gap: 0.9rem; margin-top: 0.6rem; }
.scan-row { display: flex; gap: 0.75rem; }
.scan-row input {
  flex: 1; min-width: 0; height: 3.6rem; padding-inline: 1.1rem; border-radius: 12px; border: 0;
  background: var(--paper); color: var(--ink); font-size: 1.0625rem;
}
.scan-row input::placeholder { color: #6a7194; }
.scan-row input:focus { box-shadow: 0 0 0 3px var(--scan); }
.scan-row .btn { flex: none; height: 3.6rem; border-radius: 12px; padding-inline: 1.6rem; background: var(--scan); color: #fff; }
.scan-row .btn:hover { background: #a294ff; color: #fff; }
#turnstile { display: flex; justify-content: center; }
#turnstile:empty { display: none; }
.scan-form .notice:empty { display: none; }
.sent { display: none; gap: 0.35rem; padding: 1.25rem 1.5rem; border-radius: 12px; background: var(--paper); color: var(--ink); text-align: start; }
.sent strong { font-family: var(--display); font-size: var(--s1); font-variation-settings: 'wdth' 80; }
.sent p { color: #4b5279; max-width: none; }
.scan-form.is-sent .sent { display: grid; }
.scan-form.is-sent .scan-row, .scan-form.is-sent #turnstile, .scan-form.is-sent .notice { display: none; }
.privacy { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 36rem; font-size: 0.85rem; color: var(--fog); text-align: start; }
.privacy .ico { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; color: var(--text); }
@media (max-width: 560px) {
  .scan-row { flex-direction: column; }
  .scan-row .btn { width: 100%; }
}

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.9rem; color: var(--fog); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ---------- Pages internes ---------- */
.page { min-height: 100svh; padding-top: 7rem; padding-bottom: 4rem; }
.center-card { max-width: 30rem; margin: 10vh auto 0; display: grid; gap: 1.25rem; text-align: start; }
.prose { max-width: 44rem; display: grid; gap: 1rem; }
.prose h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); text-wrap: balance; }
.prose h2 { font-size: var(--s2); margin-top: 1.5rem; }
.prose h3 { margin-top: 0.5rem; }
.prose p { max-width: none; color: var(--fog); }
.prose .lead { font-size: var(--s1); line-height: 1.45; }
.prose ul, .prose ol { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 0.5rem; color: var(--fog); }
.prose li::marker { color: var(--signal); }
.prose strong { color: var(--text); }
.prose a { color: var(--text); }
.crumbs { font-size: 0.9rem; color: var(--fog); margin-bottom: 2rem; }
.crumbs a { color: var(--fog); }
.letter { display: grid; gap: 0.75rem; padding: 1.5rem; border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.letter p { color: var(--ink); }
.cta { max-width: 44rem; margin-top: 4rem; padding: 2rem; border-radius: var(--radius); background: var(--ink-2); display: grid; gap: 1rem; border-inline-start: 4px solid var(--signal); }
.cta h2 { font-size: var(--s2); }
.related { max-width: 44rem; margin-top: 4rem; display: grid; gap: 1rem; }
.related h2 { font-size: var(--s1); }
.related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.guide-list { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.guide-list a { display: grid; gap: 0.5rem; height: 100%; padding-block: 1.4rem; border-top: 1px solid var(--line); text-decoration: none; }
.guide-list a:hover { color: inherit; border-top-color: var(--text); }
.guide-list h2 { font-size: var(--s1); font-variation-settings: 'wdth' 80; }
.guide-list p { font-size: 0.95rem; }

/* ---------- Espace client ---------- */
.dash-page { padding-top: 6.5rem; max-width: 100rem; }
/* Menu à gauche, résultats au centre, globe à droite : tout sur la même vue */
.dash-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr) minmax(18rem, 26rem); gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: start; }
.dash-main { min-width: 0; display: grid; gap: 2rem; container-type: inline-size; }
.view { display: grid; gap: 1.5rem; }
.view > h2, .view-head h2 { font-size: var(--s2); }
.view-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: end; }
.view-head > div { display: grid; gap: 0.5rem; }

.side { position: sticky; top: calc(1.5rem + env(safe-area-inset-top, 0px)); display: grid; gap: 1rem; padding: 1.1rem; border-radius: var(--radius); background: var(--ink-2); }
.side-user { display: grid; gap: 0.15rem; padding: 0.25rem 0.5rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.side-user strong { overflow-wrap: anywhere; }
.side-nav { display: grid; gap: 0.15rem; }
.side-nav hr { border: 0; border-top: 1px solid var(--line); margin: 0.6rem 0; width: 100%; }
.side-link {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.75rem; border-radius: 10px; width: 100%;
  color: var(--fog); text-decoration: none; font: inherit; font-size: 0.975rem; background: none; border: 0; cursor: pointer; text-align: start;
}
.side-link:hover { color: var(--text); background: rgba(156, 165, 207, 0.08); }
.side-link[aria-current='page'] { color: var(--ink); background: var(--paper); font-weight: 700; }
.side-link span:first-of-type { flex: 1; }
.ico { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-badge { min-width: 1.6rem; padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-align: center; background: var(--signal); color: #fff; }
.side-badge.muted-badge { background: rgba(156, 165, 207, 0.2); color: var(--text); }
.side-link[aria-current='page'] .side-badge.muted-badge { background: var(--paper-2); color: var(--ink); }
.globe-side { position: sticky; top: calc(1.5rem + env(safe-area-inset-top, 0px)); }
.globe-card { position: relative; height: calc(100svh - 3rem); min-height: 26rem; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(142, 124, 255, 0.14), transparent 62%), var(--ink-2); }
.globe-card canvas { display: block; width: 100%; height: 100%; }
.globe-caption { position: absolute; inset-inline: 1rem; bottom: 0.9rem; font-size: 0.85rem; color: var(--fog); text-align: center; max-width: none; }
.summary { display: grid; gap: 0.75rem; }
.summary h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); max-width: 22ch; font-variation-settings: 'wdth' 66; }
.summary:not(.clean) .count { color: var(--signal); }
.summary.clean .count { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 1rem; border-top: 1px solid var(--line); }
.stat { display: grid; gap: 0.2rem; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.stat strong { font-family: var(--display); font-size: var(--s3); font-variation-settings: 'wdth' 62; line-height: 1; }
.stat .stat-date { font-size: var(--s1); font-variation-settings: 'wdth' 80; }
.stat span { font-size: 0.85rem; color: var(--fog); }
.stat.danger strong { color: var(--signal); }
@container (min-width: 600px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#view-overview .view-head { margin-top: 1rem; scroll-margin-top: 1.5rem; }

/* Écran moyen : le globe passe en bandeau au-dessus des résultats */
@media (max-width: 1180px) {
  .dash-layout { grid-template-columns: 14rem minmax(0, 1fr); }
  .globe-side { grid-column: 2; grid-row: 1; position: static; }
  .globe-side .globe-card { height: auto; }
  .globe-side canvas { aspect-ratio: 16 / 7; height: auto; }
  .dash-main { grid-column: 2; grid-row: 2; }
  .side { grid-row: 1 / span 2; }
}
@media (max-width: 960px) {
  .dash-layout { grid-template-columns: 1fr; }
  .side { grid-row: auto; }
  .globe-side, .dash-main { grid-column: 1; grid-row: auto; }
  .side { order: -1; z-index: 40; padding: 0.4rem; background: rgba(22, 28, 74, 0.94); backdrop-filter: blur(10px); }
  .side-user { display: none; }
  .side-nav { display: flex; overflow-x: auto; gap: 0.25rem; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav hr { display: none; }
  .side-link { width: auto; white-space: nowrap; padding: 0.55rem 0.8rem; }
}

/* Bandeau d'alerte : impossible à manquer */
.alert {
  --a: var(--signal);
  position: relative; display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); padding-top: clamp(1.9rem, 3.5vw, 2.6rem);
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 91, 58, 0.3), var(--signal-deep) 58%);
  box-shadow: inset 0 0 0 2px var(--a), 0 18px 60px rgba(255, 91, 58, 0.22);
  animation: alert-glow 2.4s ease-in-out infinite;
}
.alert::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; background: repeating-linear-gradient(-45deg, var(--a) 0 14px, var(--ink) 14px 28px); }
.alert-medium { --a: var(--orange); background: linear-gradient(140deg, rgba(255, 138, 61, 0.26), #3a200f 58%); box-shadow: inset 0 0 0 2px var(--a), 0 18px 60px rgba(255, 138, 61, 0.18); }
.alert-low { --a: var(--amber); background: linear-gradient(140deg, rgba(255, 178, 62, 0.22), #33270f 58%); box-shadow: inset 0 0 0 2px var(--a), 0 18px 60px rgba(255, 178, 62, 0.16); }
.alert-head { display: flex; gap: 1rem; align-items: center; }
.alert-icon { flex: none; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--a); color: var(--ink); font: 900 1.8rem/1 var(--display); animation: alert-ping 1.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite; }
.alert-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.45rem; }
.alert-badge { padding: 0.15rem 0.7rem; border-radius: 6px; background: var(--a); color: var(--ink); font-weight: 700; font-size: 0.9rem; animation: alert-blink 1.1s steps(2, start) infinite; }
.alert-chip { padding: 0.15rem 0.7rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--a); font-size: 0.9rem; font-weight: 700; }
.alert-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; font-variation-settings: 'wdth' 64; color: #fff; }
.alert-text { color: #ffe4dd; font-size: var(--s1); line-height: 1.45; max-width: 44rem; }
.alert-risks { display: grid; gap: 0.6rem; padding: 1rem 1.25rem; border-radius: 10px; background: rgba(13, 18, 51, 0.55); }
.alert-risks h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--a); }
.alert-risks ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.alert-risks li { position: relative; padding-inline-start: 1.6rem; }
.alert-risks li::before { content: '✕'; position: absolute; inset-inline-start: 0; color: var(--a); font-weight: 700; }
.alert-cta { justify-self: start; background: var(--a); color: var(--ink); font-size: 1.0625rem; padding-inline: 1.75rem; }
.alert-cta:hover { background: #fff; }
@keyframes alert-glow { 50% { box-shadow: inset 0 0 0 2px var(--a), 0 0 0 6px rgba(255, 91, 58, 0.12), 0 18px 70px rgba(255, 91, 58, 0.36); } }
@keyframes alert-ping { 0% { box-shadow: 0 0 0 0 var(--a); } 80%, 100% { box-shadow: 0 0 0 1.1rem transparent; } }
@keyframes alert-blink { to { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .alert, .alert-icon, .alert-badge { animation: none; } }

/* Liste des fuites */
.breaches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.breach { border-bottom: 1px solid var(--line); border-inline-start: 3px solid transparent; padding-inline-start: 1rem; }
.breach.sev-high { border-inline-start-color: var(--signal); }
.breach.sev-medium { border-inline-start-color: var(--orange); }
.breach.sev-low { border-inline-start-color: rgba(156, 165, 207, 0.4); }
.breach label { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; padding: 1.2rem 0; cursor: pointer; align-items: start; }
.breach input { accent-color: var(--scan); width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; }
.breach h3 { font-size: var(--s1); }
.breach .meta { font-size: 0.9rem; color: var(--fog); margin-top: 0.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.chip { font-size: 0.85rem; padding: 0.2rem 0.65rem; border-radius: 6px; background: rgba(156, 165, 207, 0.13); }
.chip.hot { background: rgba(255, 91, 58, 0.18); color: #ffb3a3; }
.sev-tag { font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 6px; white-space: nowrap; }
.sev-tag.high { background: var(--signal); color: #fff; }
.sev-tag.medium { background: rgba(255, 138, 61, 0.2); color: var(--orange); }
.sev-tag.low { background: rgba(156, 165, 207, 0.14); color: var(--fog); }

/* Agir */
.panel { display: grid; gap: 1.25rem; padding: 1.75rem; border-radius: var(--radius); background: var(--ink-2); max-width: 36rem; }
.panel h2 { font-size: var(--s2); }
.choice { display: grid; gap: 0.6rem; }
.choice label { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; padding: 1rem; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.choice label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--paper); background: rgba(237, 239, 247, 0.06); }
.choice input { accent-color: var(--scan); margin-top: 0.3rem; }
.choice strong { display: block; }
.choice span { font-size: 0.9rem; color: var(--fog); }
.mandate { display: none; gap: 0.9rem; }
.panel[data-kind='gdpr'] .mandate { display: grid; }
.mandate-text { font-size: 0.85rem; color: var(--fog); padding: 0.9rem 1rem; border-radius: 10px; background: var(--ink); max-width: none; }

/* Mes actions */
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.order { padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--ink-2); display: grid; gap: 0.9rem; }
.order-head { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; }
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.95rem; }
.reqs li { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; align-items: center; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.status { font-size: 0.85rem; color: var(--fog); }
.status.ok { color: var(--text); }
.linkish { background: none; border: 0; color: var(--text); font: inherit; font-size: 0.9rem; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; }
.account { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.actbar {
  position: fixed; inset-inline: 50% auto; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 45;
  display: flex; align-items: center; gap: 1rem; padding-block: 0.55rem; padding-inline: 1.25rem 0.55rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); max-width: calc(100% - 2rem);
}
[dir='rtl'] .actbar { transform: translateX(50%); }
.actbar .btn { background: var(--ink); color: var(--paper); }
.toast {
  position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 1rem);
  background: var(--paper); color: var(--ink); padding: 0.9rem 1.4rem; border-radius: 999px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; max-width: calc(100% - 2rem); text-align: center; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { height: 5rem; border-radius: 10px; background: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)); background-size: 200% 100%; animation: sk 1.4s infinite linear; margin-bottom: 0.75rem; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
