/* SimplComIA — design system « Dark Glass » (refonte du 8 octobre 2026, recommandations ui-ux-pro-max)
   Bleu nuit profond et halos aurora, panneaux de verre translucides, dégradé violet → cyan pour l'action,
   rouge réservé au danger. Contrastes vérifiés : texte 17:1, texte secondaire ≥ 8:1, boutons ≥ 5,9:1. */
:root {
  --ink: #070b1e;
  --ink-2: #111735;
  --ink-3: #1c2350;
  --paper: #eef1ff;
  --paper-2: #d9def5;
  --text: #eef1ff;
  --fog: #a7b0d6;
  --signal: #ff5b5b;
  --signal-deep: #3a0f1a;
  --amber: #ffb547;
  --scan: #8b7bff;
  --cyan: #22d3ee;
  --ok: #4ade80;
  --line: rgba(167, 176, 214, 0.16);

  /* Verre */
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  --glass-strong: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-blur: blur(18px) saturate(140%);
  --shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --grad: linear-gradient(120deg, #8b7bff 0%, #5aa8ff 50%, #22d3ee 100%);
  --glow: 0 10px 34px -8px rgba(110, 140, 255, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* 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: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'DM Sans', '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: 18px;
  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: clamp(1.6rem, 3vw, 2.1rem); 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); }

.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; } }

/* Résultats verrouillés avant achat */
.locked-card { display: grid; gap: 0.9rem; justify-items: start; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); background: repeating-linear-gradient(-45deg, rgba(156, 165, 207, 0.05) 0 12px, transparent 12px 24px); }
.locked-icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--fog); }
.locked-icon .ico { width: 1.35rem; height: 1.35rem; }

/* Fenêtre de résultat après validation du lien */
.welcome {
  --a: var(--signal);
  width: min(40rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  padding: clamp(1.75rem, 5vw, 3rem); border: 0; border-radius: var(--radius); color: var(--text);
  background: linear-gradient(140deg, rgba(255, 91, 58, 0.3), var(--signal-deep) 62%), var(--ink);
  box-shadow: inset 0 0 0 2px var(--a), 0 30px 120px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.welcome[open] { display: grid; gap: 1.1rem; justify-items: center; animation: welcome-in 0.35s cubic-bezier(0.2, 0.7, 0.3, 1); }
.welcome::backdrop { background: rgba(8, 10, 30, 0.78); backdrop-filter: blur(4px); }
.welcome-medium { --a: var(--orange); background: linear-gradient(140deg, rgba(255, 138, 61, 0.26), #3a200f 62%), var(--ink); }
.welcome-low { --a: var(--amber); background: linear-gradient(140deg, rgba(255, 178, 62, 0.22), #33270f 62%), var(--ink); }
.welcome-clean { --a: var(--scan); background: linear-gradient(140deg, rgba(142, 124, 255, 0.22), var(--ink) 62%); }
.welcome-eyebrow { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); }
.welcome-icon { width: 4.5rem; height: 4.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--a); color: var(--ink); font: 900 2.4rem/1 var(--display); animation: alert-ping 1.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite; }
.welcome h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900; font-variation-settings: 'wdth' 64; color: #fff; line-height: 1.05; }
.welcome .alert-chip { justify-self: center; }
.welcome-text { font-size: var(--s1); line-height: 1.45; max-width: 32rem; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 0.5rem; }
.welcome-actions .btn:first-child { background: var(--a); color: var(--ink); padding-inline: 2rem; }
.welcome-actions .btn:first-child:hover { background: #fff; }
@keyframes welcome-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .welcome[open], .welcome-icon { animation: none; } }

/* Administration */
.admin { display: grid; gap: 2.5rem; padding-bottom: 4rem; }
.admin-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: end; }
.admin-h2 { font-size: var(--s1); margin-bottom: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.kpi { display: grid; gap: 0.35rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.kpi-label { font-size: 0.85rem; color: var(--fog); }
.kpi strong { font-family: var(--display); font-size: var(--s3); font-variation-settings: 'wdth' 62; line-height: 1; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th, .admin-table td { padding: 0.6rem 0.75rem; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { color: var(--fog); font-weight: 700; font-size: 0.85rem; }
.admin-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.chart { display: grid; gap: 0.5rem; margin: 0; padding: 1.1rem 1.25rem; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--fog); }
.chart figcaption strong { color: var(--text); font-family: var(--display); font-size: var(--s1); }
.chart svg { width: 100%; height: auto; display: block; }
.chart-bar { fill: var(--scan); }
.chart-hit { fill: transparent; }
.chart-hit:hover { fill: rgba(156, 165, 207, 0.1); }
.chart-axis { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--fog); font: 11px var(--body); }
.chart-tip { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 50; padding: 0.4rem 0.65rem; border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 0.85rem; font-weight: 700; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2.5rem; }

/* Surveillance (abonnement) */
.watch-card { display: grid; gap: 1rem; justify-items: start; max-width: 36rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); }
.watch-price { font-family: var(--display); font-size: var(--s3); font-weight: 900; font-variation-settings: 'wdth' 62; line-height: 1; }
.watch-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.watch-features li { position: relative; padding-inline-start: 1.6rem; }
.watch-features li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--scan); font-weight: 700; }
.watch-status { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: var(--s1); }
.watch-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: watch-pulse 2s infinite; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.side-badge.watch-badge { background: #4ade80; color: var(--ink); }
@keyframes watch-pulse { 70% { box-shadow: 0 0 0 0.6rem rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .watch-dot { animation: none; } }

/* Lettres d'effacement */
.order-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.letters { display: grid; gap: 0.9rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.letters textarea { width: 100%; resize: vertical; font: inherit; color: inherit; background: transparent; border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0.75rem 0.9rem; }
.letters textarea:focus { outline: 2px solid var(--scan); outline-offset: 1px; }
.letter-list { margin: 0; padding: 0; list-style: none; display: grid; }
.letter-list li { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.letter-list li > div:first-child { display: grid; gap: 0.2rem; min-width: 0; flex: 1 1 16rem; }
.letter-list a { color: inherit; }
.letter-buttons { display: flex; gap: 0.5rem; }
.small-btn { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* Bandeau d'alerte (chiffres réels des fuites) au centre de l'en-tête */
.top .wrap:has(.live) { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 1.5rem; height: auto; min-height: 4.75rem; padding-block: 0.9rem; }
.top .wrap:has(.live) nav { justify-self: end; }
.live {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; align-items: center;
  padding: 0.7rem 1.2rem 0.7rem 0.85rem; border-radius: 12px; line-height: 1.35; text-align: start;
  background: linear-gradient(140deg, rgba(255, 91, 58, 0.3), var(--signal-deep) 70%);
  box-shadow: inset 0 0 0 2px var(--signal), 0 10px 40px rgba(255, 91, 58, 0.25);
  animation: alert-glow 2.4s ease-in-out infinite;
}
.live[hidden] { display: none; }
.live-icon { grid-row: span 2; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--signal); color: var(--ink); font: 900 1.25rem/1 var(--display); animation: alert-ping 1.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite; }
.live-total { color: #fff; font-weight: 700; font-size: 1.15rem; }
.live-latest { color: #ffe4dd; font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .live, .live-icon { animation: none; } }
/* Petits écrans : l'alerte passe sous le logo, sur toute la largeur. */
@media (max-width: 860px) {
  .top .wrap:has(.live) { grid-template-columns: 1fr auto; row-gap: 0.75rem; }
  .live { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .live-total { font-size: 1rem; }
  .live-latest { font-size: 0.85rem; }
  /* L'en-tête est plus haut : le contenu de l'accueil descend d'autant. */
  .hero { padding-top: 11rem; place-items: start center; }
}

/* Tarifs */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; align-items: start; }
.offer { display: grid; gap: 0.8rem; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); }
.offer-sub { box-shadow: inset 0 0 0 2px var(--scan); background: linear-gradient(160deg, rgba(142, 124, 255, 0.14), transparent 60%); }
.offer h3 { font-family: var(--display); font-size: var(--s2, 1.6rem); font-weight: 900; font-variation-settings: 'wdth' 70; }
.offer-price { font-family: var(--display); font-size: var(--s3); font-weight: 900; font-variation-settings: 'wdth' 62; line-height: 1; }
.offer-price span { font-family: var(--body); font-size: 1rem; font-weight: 400; color: var(--fog); }
.offer-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.offer-features li { position: relative; padding-inline-start: 1.6rem; }
.offer-features li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--scan); font-weight: 700; }
.offer-options-title { font-weight: 700; margin-top: 0.4rem; }
.offer-option { display: flex; gap: 0.75rem; justify-content: space-between; align-items: center; padding: 0.8rem 0.9rem; border-radius: 10px; background: rgba(156, 165, 207, 0.07); }
.offer-option p { margin-top: 0.2rem; }
.offer-cta { justify-self: start; background: var(--scan); color: var(--ink); }
.offer-cta:hover { background: #fff; }

/* Vue Tarifs : sans globe, le contenu prend toute la largeur à côté du menu */
.dash-layout.wide .globe-side { display: none; }
@media (min-width: 1181px) { .dash-layout.wide { grid-template-columns: 15rem minmax(0, 1fr); } }
@media (min-width: 961px) and (max-width: 1180px) { .dash-layout.wide .dash-main { grid-row: 1 / span 2; } }

/* Bandeau « version disponible dans votre langue » */
.lang-hint { position: fixed; z-index: 30; inset-inline: 0; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); margin-inline: auto; width: max-content; max-width: calc(100% - 2rem); display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0.55rem 0.55rem 1.1rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.95rem; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }
.lang-hint[hidden] { display: none; }
.lang-hint a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.lang-hint button { appearance: none; border: 0; cursor: pointer; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(13, 18, 51, 0.08); color: var(--ink); font-size: 1.2rem; line-height: 1; }
.lang-hint button:hover { background: rgba(13, 18, 51, 0.16); }
@media (max-width: 480px) { .lang-hint { gap: 0.6rem; padding: 0.45rem 0.45rem 0.45rem 0.9rem; font-size: 0.85rem; } .lang-hint button { width: 1.75rem; height: 1.75rem; flex: none; } }

/* Pied de page : guides populaires (maillage interne) */
.footer-popular { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.footer-popular strong { color: var(--text); font-weight: 700; }
.footer-popular a { color: var(--fog); }
.footer-popular a:hover { color: var(--text); }

/* =====================================================================================================
   REFONTE « DARK GLASS » — couche de composants (8 octobre 2026)
   Placée en fin de fichier : elle remplace l'apparence des composants existants sans toucher au HTML.
   ===================================================================================================== */

/* ---------- Fond : halos aurora + grille fine, fixés derrière tout le contenu ---------- */
body { background: var(--ink); font-synthesis: none; text-rendering: optimizeLegibility; position: relative; isolation: isolate; }
body::before, body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
  background:
    radial-gradient(42rem 32rem at 12% -6%, rgba(139, 123, 255, 0.22), transparent 62%),
    radial-gradient(38rem 30rem at 96% 12%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(46rem 30rem at 60% 108%, rgba(255, 91, 91, 0.10), transparent 62%);
  animation: aurora 26s ease-in-out infinite alternate;
}
body::after {
  background-image: linear-gradient(rgba(167, 176, 214, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 176, 214, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
@keyframes aurora { to { transform: translate3d(2%, 3%, 0) scale(1.06); filter: hue-rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
::selection { background: rgba(139, 123, 255, 0.45); color: #fff; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h1 { letter-spacing: -0.035em; }
h3 { letter-spacing: -0.01em; }
.brand { font-weight: 700; letter-spacing: -0.04em; background: linear-gradient(100deg, #fff 30%, #b9b0ff 70%, #7fe6f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 700; line-height: 0.98; background: linear-gradient(180deg, #fff 35%, #c6cbf0); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(110, 140, 255, 0.25)); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ---------- Verre : surfaces partagées ---------- */
.side, .panel, .order, .cta, .offer, .watch-card, .kpi, .chart, .locked-card, .center-card, .globe-card,
.summary, .guide-list a, .related, .letter-list, .stat {
  border-radius: var(--radius);
}
.side, .panel, .order, .cta, .offer, .watch-card, .kpi, .chart, .locked-card, .center-card, .guide-list a {
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.globe-card { background: radial-gradient(circle at 50% 42%, rgba(139, 123, 255, 0.2), transparent 62%), var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.center-card { padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- Boutons : dégradé violet → cyan, texte foncé (contraste 5,9:1 à 10,8:1) ---------- */
.btn {
  position: relative; font-family: var(--body); font-weight: 700; letter-spacing: 0.005em;
  background: var(--grad); background-size: 160% 100%; background-position: 0% 50%; color: var(--ink);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-position 0.4s var(--ease), color 0.2s;
}
.btn:hover { background: var(--grad); background-size: 160% 100%; background-position: 100% 50%; color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(110, 140, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[disabled]:hover { transform: none; box-shadow: none; filter: grayscale(0.6); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn.danger { background: rgba(255, 91, 91, 0.06); color: #ffa1a1; box-shadow: inset 0 0 0 1px rgba(255, 91, 91, 0.4); }
.btn.danger:hover { background: rgba(255, 91, 91, 0.14); color: #ffc4c4; }

/* ---------- Champs ---------- */
input[type='email'], input[type='text'], .letters textarea {
  background: rgba(7, 11, 30, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type='email']:focus, input[type='text']:focus, .letters textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18); }
.check input, .choice input, .breach input { accent-color: var(--cyan); }

/* ---------- Accueil ---------- */
.hero::after { background: radial-gradient(ellipse 38rem 24rem at 50% 50%, rgba(7, 11, 30, 0.78) 0%, rgba(7, 11, 30, 0.35) 60%, transparent 100%); }
#shield, #scene { transition: transform 0.6s var(--ease); will-change: transform; }
.scan-form {
  padding: 0.6rem; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 123, 255, 0.08); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.scan-row input { height: 3.75rem; border-radius: 15px; background: rgba(7, 11, 30, 0.6); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 1.0625rem; }
.scan-row input::placeholder { color: #8d96c0; }
.scan-row input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18); }
.scan-row .btn, .scan-row .btn:hover { height: 3.75rem; border-radius: 15px; color: var(--ink); }
.scan-form .notice, .scan-form #turnstile { padding-inline: 0.4rem; }
.scan-form .notice:not(:empty) { padding-bottom: 0.3rem; }
.sent { background: rgba(255, 255, 255, 0.95); }
.privacy { color: var(--fog); }
.privacy .ico { color: var(--cyan); }

/* ---------- En-tête et alerte fuites ---------- */
.top { background: linear-gradient(180deg, rgba(7, 11, 30, 0.7), transparent); }
.top nav a { transition: color 0.2s; }
.live {
  background: linear-gradient(140deg, rgba(255, 91, 91, 0.22), rgba(58, 15, 26, 0.75) 70%);
  border: 1px solid rgba(255, 91, 91, 0.7); box-shadow: 0 0 0 1px rgba(255, 91, 91, 0.15), 0 14px 44px -10px rgba(255, 91, 91, 0.45);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-radius: 16px;
}
.live-icon { font-family: var(--display); font-weight: 700; color: #fff; background: var(--signal); }
.lang-menu ul { background: rgba(17, 23, 53, 0.92); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.lang-menu a { color: var(--text) !important; }
.lang-menu a:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Pages internes, guides ---------- */
.prose h1 { background: linear-gradient(180deg, #fff 40%, #c6cbf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose h2 { padding-top: 0.5rem; }
.prose li::marker { color: var(--cyan); }
.prose a { color: #9fe9f7; text-decoration-color: rgba(34, 211, 238, 0.5); }
.prose a:hover { color: #fff; text-decoration-color: var(--cyan); }
.guide-list { gap: 1rem; }
.guide-list a { padding: 1.4rem 1.5rem; border-top: 1px solid var(--glass-border); transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s; }
.guide-list a:hover { border-color: rgba(139, 123, 255, 0.55); box-shadow: var(--shadow), 0 0 40px -12px rgba(139, 123, 255, 0.55); }
.cta { padding: clamp(1.5rem, 4vw, 2.5rem); border-inline-start: 1px solid var(--glass-border); background: radial-gradient(28rem 14rem at 0% 0%, rgba(139, 123, 255, 0.22), transparent 70%), var(--glass); }
.related ul li a { color: var(--text); }
.crumbs a { color: var(--fog); }

/* ---------- Espace client ---------- */
.side-link { border-radius: 12px; transition: background-color 0.2s, color 0.2s; }
.side-link:hover { background: rgba(255, 255, 255, 0.06); }
.side-link[aria-current='page'] { background: var(--grad); color: var(--ink); box-shadow: var(--glow); }
.side-link[aria-current='page'] .side-badge { background: var(--ink); color: #fff; }
.summary { padding: clamp(1.25rem, 3vw, 2rem); background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.summary h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
.stats { border-top: 0; gap: 0.75rem; }
.stat { padding: 1rem 1.1rem; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03); }
.stat.danger { border-color: rgba(255, 91, 91, 0.35); background: rgba(255, 91, 91, 0.06); }
.breaches { border-top: 0; display: grid; gap: 0.6rem; }
.breach { border: 1px solid var(--glass-border); border-inline-start-width: 3px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); padding-inline: 1rem; transition: background-color 0.2s; }
.breach:hover { background: rgba(255, 255, 255, 0.06); }
.breach:has(input:checked) { background: rgba(139, 123, 255, 0.1); border-color: rgba(139, 123, 255, 0.45); }
.chip { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.06); }
.choice label { border-radius: 14px; transition: box-shadow 0.2s, background-color 0.2s; }
.choice label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--cyan); background: rgba(34, 211, 238, 0.07); }
.mandate-text { background: rgba(7, 11, 30, 0.5); border: 1px solid var(--glass-border); }
.alert { border-radius: 22px; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.welcome { border-radius: 26px; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.welcome::backdrop { background: rgba(5, 8, 22, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.welcome-clean { --a: var(--cyan); }
.offer { transition: border-color 0.25s, box-shadow 0.25s; }
.offer-sub { border: 1px solid transparent; background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, var(--grad) border-box; box-shadow: var(--shadow), 0 0 60px -20px rgba(34, 211, 238, 0.45); }
.offer-features li::before, .watch-features li::before { color: var(--cyan); }
.offer-option { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border); border-radius: 14px; }
.offer-cta, .offer-cta:hover { background: var(--grad); color: var(--ink); }
.actbar, .toast, .lang-hint { border: 1px solid rgba(255, 255, 255, 0.5); }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); background-size: 200% 100%; }
.chart-bar { fill: var(--scan); }
.footer { background: linear-gradient(180deg, transparent, rgba(7, 11, 30, 0.6)); border-top-color: var(--glass-border); }

/* ---------- Effets 3D (public/fx.js) : inclinaison et reflet au survol, apparition en cascade ---------- */
.tilt { transform-style: preserve-3d; transition: transform 0.45s var(--ease), box-shadow 0.3s, border-color 0.3s; will-change: transform; position: relative; }
.tilt.is-tilting { transition: transform 0.08s linear, box-shadow 0.3s, border-color 0.3s; }
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(22rem circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.13), transparent 45%);
}
.tilt.is-tilting::after { opacity: 1; }
.fx .reveal { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.985); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: var(--d, 0ms); }
.fx .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tilt, .tilt.is-tilting { transform: none !important; transition: none; }
  .fx .reveal { opacity: 1; transform: none; transition: none; }
  #shield, #scene { transform: none !important; }
}
.footer a { text-decoration: none; color: var(--fog); transition: color 0.2s; }
.footer a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); }
@media (max-width: 1180px) { .globe-card { min-height: 0; } }

/* Bandeau de consentement aux cookies : « Refuser » et « Accepter » à égalité (CNIL) */
.consent {
  position: fixed; z-index: 70; inset-inline: 1rem auto; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: min(28rem, calc(100% - 2rem));
  display: grid; gap: 0.8rem; padding: 1.25rem 1.35rem; border-radius: 20px; color: var(--text);
  background: rgba(17, 23, 53, 0.92); border: 1px solid var(--glass-border); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.1rem; }
.consent p { font-size: 0.9rem; color: var(--fog); max-width: none; }
.consent p a { color: #9fe9f7; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.consent-actions .btn { padding-block: 0.75rem; }
.footer .linkish { color: var(--fog); font-size: inherit; text-decoration: none; }
.footer .linkish:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); }
/* Petits écrans : le bandeau de langue attend que le choix cookies soit fait (ils se superposeraient) */
@media (max-width: 900px) { body:has(.consent:not([hidden])) .lang-hint { display: none; } }

/* Note de transparence (accueil) : ce que le site affiche, et ce qu'il ne détient pas. */
.footer-note { max-width: 72ch; margin-bottom: 1.5rem; font-size: 0.85rem; line-height: 1.55; color: var(--fog); }

/* Retour vers le site principal SimplComIA (service servi sous /fuites) */
.top nav .back-main { color: var(--text); padding: 0.4rem 0.85rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.top nav .back-main:hover { box-shadow: inset 0 0 0 1px var(--text); }
@media (max-width: 560px) {
  .top nav .back-main { font-size: 0; padding: 0.35rem 0.7rem; }
  .top nav .back-main::before { content: '⌂'; font-size: 1.05rem; line-height: 1; }
}
@media (max-width: 360px) {
  .top nav { gap: 0.6rem; }
}

/* Connexion par la plateforme SimplComIA : bouton seul, sans champ email */
.scan-row.platform { justify-content: center; }
.scan-row.platform .btn { flex: 1 1 auto; }

/* Encadré « Ce que dit la loi » des guides (références Légifrance / EUR-Lex) */
.law { max-width: 44rem; margin-top: 3rem; padding: 1.75rem 2rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 0.9rem; }
.law h2 { font-size: var(--s1); }
.law ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: 0.6rem; color: var(--fog); }
.law li::marker { color: var(--signal); }
.law a { color: var(--text); font-weight: 600; }
.law .small { font-size: 0.85rem; }

/* Accueil : guides essentiels sous le formulaire */
.home-guides { padding-block: 3rem 1rem; }
.home-guides > h2 { font-size: var(--s2); }
.home-guides .guide-list { margin-top: 1.5rem; }
.guide-list h3 { font-size: var(--s1); font-variation-settings: 'wdth' 80; }
.home-guides-all { margin-top: 1.75rem; }

/* Questions fréquentes des guides (3 décembre 2026) */
.guide-faq { max-width: 44rem; margin-top: 3rem; display: grid; gap: 0.75rem; }
.guide-faq h2 { font-size: var(--s1); }
.guide-faq details { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--glass, var(--ink-2)); border: 1px solid var(--glass-border, transparent); }
.guide-faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.guide-faq details p { margin: 0.75rem 0 0; color: var(--fog); }
