/* Ardenvale Cyber : identité « indigo et corail ».
   Titres : Bricolage Grotesque ; texte : Atkinson Hyperlegible (lisibilité). Polices auto-hébergées, licence SIL OFL. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #16123a;          /* indigo nuit : texte, sections sombres */
  --ink-2: #3b3660;        /* texte secondaire */
  --muted: #5d5878;
  --bg: #f7f5ff;           /* fond de page, légèrement violet */
  --surface: #ffffff;
  --tint: #ece8ff;         /* zones teintées */
  --line: #e2dcfa;
  --violet: #5b3df5;       /* actions */
  --violet-dark: #4a2fe0;
  --coral: #ff9b7a;         /* accent signature */
  --coral-dark: #f5805c;
  --on-dark: #d9d5f0;      /* texte secondaire sur fond sombre */
  --ok: #0f7b4f; --okbg: #e1f5ea;
  --warn: #8a5300; --warnbg: #fdf0d9;
  --fail: #b42318; --failbg: #fde8e6;
  --unk: #5d5878; --unkbg: #efedf7;
  /* Séries des graphiques : ordre fixe, validé pour le daltonisme (thème clair) */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(22, 18, 58, .05), 0 8px 24px rgba(22, 18, 58, .06);
  --display: "Bricolage", "Atkinson", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-dark); }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 56px 0 10px; }
h3 { font-size: 20px; margin: 18px 0 6px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.section-lead { color: var(--ink-2); margin: 0 0 24px; max-width: 680px; font-size: 18px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin: 0 0 8px; }
.label { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hl { background: linear-gradient(transparent 58%, var(--coral) 58%, var(--coral) 92%, transparent 92%); padding: 0 .08em; }

/* ------------------------------------------------------------ en-tête (sombre, avec menu mobile) */
.top { background: var(--ink); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--display);
  font-weight: 800; font-size: 21px; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; }
.brand span { color: var(--coral); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a, .nav button { text-decoration: none; color: var(--on-dark); font: inherit; font-size: 15.5px; padding: 8px 12px;
  border-radius: 999px; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.nav a:hover, .nav button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav form { margin: 0; }
.nav a.btn { background: var(--coral); color: var(--ink); padding: 10px 18px; margin-left: 8px; }
.nav a.btn:hover { background: var(--coral-dark); color: var(--ink); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); min-height: 44px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--coral); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] .burger::after { top: 0; transform: rotate(-45deg); }
.nav-sheet { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 10px; display: grid; gap: 2px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.nav-sheet a, .nav-sheet button { display: block; width: 100%; text-align: left; color: #fff; text-decoration: none; font: inherit;
  padding: 13px 14px; border-radius: 12px; border: 0; background: none; cursor: pointer; }
.nav-sheet a:hover, .nav-sheet button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-sheet a.btn { background: var(--coral); color: var(--ink); text-align: center; margin-top: 6px; }
.nav-sheet form { margin: 0; }
@media (max-width: 980px) { .nav-desktop { display: none; } .nav-mobile { display: block; } }

/* ------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--violet); color: #fff;
  font-weight: 700; font-family: inherit; border: 0; border-radius: 999px; padding: 12px 22px; text-decoration: none; cursor: pointer;
  font-size: 16px; line-height: 1.25; min-height: 46px; transition: background .12s ease, transform .12s ease; }
.btn:hover { background: var(--violet-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--violet); box-shadow: inset 0 0 0 2px var(--violet); }
.btn.secondary:hover { background: var(--tint); color: var(--violet-dark); }
.btn.coral { background: var(--coral); color: var(--ink); }
.btn.coral:hover { background: var(--coral-dark); color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink:hover { background: #241e55; color: #fff; }
.btn.small { padding: 8px 16px; font-size: 15px; min-height: 40px; }
.btn.big { padding: 15px 28px; font-size: 17px; min-height: 54px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 22px 0 8px; }
@media (max-width: 520px) { .actions .btn.big { width: 100%; } }

/* ------------------------------------------------------------ blocs communs */
main { padding: 40px 0 80px; }
main.home { padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
@media (max-width: 520px) { .card { padding: 20px; border-radius: 16px; } }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid > .card { margin-bottom: 0; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 99px; background: var(--unkbg); color: var(--unk); white-space: nowrap; }
.badge.ok { background: var(--okbg); color: var(--ok); }
.badge.warn { background: var(--warnbg); color: var(--warn); }
.badge.fail { background: var(--failbg); color: var(--fail); }
.badge.accent { background: var(--coral); color: var(--ink); }
.eyebrow .badge { text-transform: none; letter-spacing: normal; margin-left: 6px; vertical-align: 1px; }
.check-row .badge { white-space: normal; }   /* un libellé long passe à la ligne au lieu de dépasser sur téléphone */
.flash { background: var(--warnbg); color: var(--warn); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.honest { border-left: 5px solid var(--violet); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--ink-2); font-size: 14px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
ul.clean { list-style: none; padding: 0; margin: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 6px 0 0; line-height: 1.05; }
.price small { font-family: "Atkinson", sans-serif; font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
code { background: var(--tint); border-radius: 6px; padding: 1px 6px; font-size: 14.5px; overflow-wrap: anywhere; }
.ticks { list-style: none; padding: 0; margin: 12px 0; }
.ticks li { position: relative; padding-left: 30px; margin: 9px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--coral); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 4.5px; border-left: 2.2px solid var(--ink);
  border-bottom: 2.2px solid var(--ink); transform: rotate(-45deg); }
.check-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--coral); flex: none; }
.check-dot::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--violet); }
.icon-tile .icon { width: 26px; height: 26px; }

/* ------------------------------------------------------------ accueil */
.sec { padding: 84px 0; }
.sec.tint { background: var(--tint); }
.sec.dark { background: var(--ink); color: #fff; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec h2 { margin-top: 0; }
@media (max-width: 720px) { .sec { padding: 60px 0; } }

.home-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; padding: 72px 0 88px; }
.home-hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 85% 30%, rgba(91, 61, 245, .55), transparent 70%),
              radial-gradient(500px 300px at 10% 100%, rgba(200, 245, 96, .12), transparent 70%),
              radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px; pointer-events: none; }
.home-hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.home-hero h1 { color: #fff; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; }
.home-hero h1 .hl { color: var(--ink); background: var(--coral); padding: 0 .12em; border-radius: 8px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.home-hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--on-dark); max-width: 560px; margin: 0; }
.home-hero .eyebrow { color: var(--coral); }
.hero-proof { margin: 26px 0 0; font-size: 14.5px; color: var(--on-dark); display: flex; gap: 12px; align-items: flex-start; max-width: 520px; }
.hero-proof strong { color: var(--coral); font-family: var(--display); font-size: 24px; line-height: 1; white-space: nowrap; }
.hero-proof a { color: var(--on-dark); }
@media (max-width: 900px) { .home-hero { padding: 48px 0 64px; } .home-hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Illustration : un vrai faux email, annoté */
.scam { position: relative; max-width: 470px; margin: 0 auto; width: 100%; }
.scam-mail { background: #fff; color: var(--ink); border-radius: 20px; padding: 22px 22px 24px; transform: rotate(-2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.scam-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.scam-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2dcfa; }
.scam-from { font-size: 14px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.scam-from b { color: var(--fail); font-weight: 700; }
.scam-subj { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.25; margin: 6px 0 10px; letter-spacing: -0.01em; }
.scam-body { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.scam-body mark { background: #ffe1dc; color: var(--fail); border-radius: 4px; padding: 0 3px; }
.scam-cta { display: inline-block; background: var(--violet); color: #fff; font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; }
.mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: var(--ink);
  font-style: normal; font-weight: 700; font-size: 12.5px; vertical-align: 1px; box-shadow: 0 0 0 2px var(--ink); }
.scam-flags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.flag { background: var(--coral); color: var(--ink); font-weight: 700; font-size: 14px; padding: 7px 14px 7px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.flag b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--coral); font-size: 12.5px; }
.scam-note { text-align: center; color: var(--on-dark); font-size: 14.5px; margin: 18px 0 0; }
@media (max-width: 600px) { .scam-mail { transform: none; } }

.steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.how-step .num { position: absolute; top: 22px; right: 24px; font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--tint); line-height: 1; }
.how-step h3 { margin: 16px 0 6px; }
.how-step p { margin: 0; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; }

.cert-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .cert-split { grid-template-columns: 1fr; gap: 40px; } .cert-split .cert-preview { order: 2; } }
.cert-preview { background: var(--surface); border-radius: 22px; padding: 28px 26px 24px; box-shadow: 0 24px 50px rgba(22, 18, 58, .14);
  position: relative; border-top: 8px solid var(--violet); max-width: 470px; width: 100%; margin: 0 auto; }
.cert-preview .tag { position: absolute; top: -18px; right: 20px; background: var(--coral); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.cert-preview .head { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; }
.cert-preview .head img { width: 30px; height: 30px; }
.cert-preview .title { font-family: var(--display); font-size: 23px; font-weight: 800; margin: 16px 0 2px; letter-spacing: -0.01em; line-height: 1.2; }
.cert-preview .who { font-size: 15px; color: var(--muted); margin: 0; }
.cert-preview .holder { font-family: var(--display); font-size: 27px; font-weight: 800; margin: 2px 0 14px; }
.cert-preview .verified { display: flex; align-items: center; gap: 10px; background: var(--okbg); color: var(--ok); border-radius: 12px; padding: 11px 13px; font-weight: 700; font-size: 15px; }
.cert-preview .verified .check-dot { background: var(--ok); }
.cert-preview .verified .check-dot::after { border-color: #fff; }
.cert-preview .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); margin-top: 14px; flex-wrap: wrap; }
.points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.points strong { display: block; font-size: 17.5px; }
.points .txt { color: var(--ink-2); font-size: 16px; }

.figures { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 28px; }
.figure { border-top: 3px solid var(--coral); padding-top: 18px; }
.figure .value { font-family: var(--display); font-size: clamp(40px, 5vw, 56px); font-weight: 800; color: var(--coral); line-height: 1; letter-spacing: -0.02em; }
.figure p { color: #fff; margin: 10px 0 6px; font-size: 17px; }
.figure small { color: var(--on-dark); font-size: 13px; }
.figure small a { color: var(--on-dark); }
.sec.dark .link-light { color: var(--coral); font-weight: 700; }

.plans { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan .when { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.plan .ticks { flex: 1; margin: 18px 0 22px; }
.plan .btn { width: 100%; }
.plan.featured { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 24px 50px rgba(91, 61, 245, .35); }
.plan.featured .label, .plan.featured .when { color: #e4defe; }
.plan.featured .price { color: #fff; }
.plan.featured .price small { color: #e4defe; }
.plans-note { text-align: center; margin: 22px 0 0; color: var(--ink-2); }
.currency-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 0; }
/* Tablette et ordinateur : trois colonnes égales (jamais 2 + 1) ; quatre offres : 2 + 2, puis 4 sur grand écran */
@media (min-width: 760px) { .steps, .figures, .plans { grid-template-columns: repeat(3, 1fr); }
  .plans.four, .plans.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .plans.four { grid-template-columns: repeat(4, 1fr); } .plans.four .plan { padding: 22px; }
  .plans.four .plan .price { font-size: 34px; } }
.plan-choice { display: grid; gap: 10px; }
.plan-choice .btn { width: 100%; white-space: normal; }
@media (min-width: 760px) and (max-width: 980px) { .plan { padding: 22px; } .plan .price { font-size: 34px; } }

.final-cta { background: var(--coral); padding: 64px 0; text-align: center; }
.final-cta h2 { margin: 0 0 8px; }
.final-cta p { color: var(--ink-2); font-size: 18px; margin: 0; }
.final-cta .actions { justify-content: center; }

/* Encadré de chiffres sourcés (pages internes) */
.stat { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; align-items: center; background: var(--ink); color: #fff; border: 0; }
.stat .value { font-family: var(--display); font-size: clamp(52px, 8vw, 72px); font-weight: 800; line-height: 1; color: var(--coral); }
.stat .what { font-size: 19px; margin: 0; color: #fff; }
.stat .src { grid-column: 1 / -1; font-size: 13.5px; color: var(--on-dark); margin: 0; }
.stat .src a { color: var(--on-dark); }
@media (max-width: 560px) { .stat { grid-template-columns: 1fr; } }
.cost .value { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1.1; margin: 8px 0 4px; color: var(--violet); }
.cost .detail { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; }
.cost .how { font-size: 15px; margin: 0 0 10px; }
.cost .src { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Page audit (présentation) : grille texte + aperçu */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 8px 0; }
.hero .lead { font-size: 19px; color: var(--ink-2); margin: 0; }
.hero-note { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 36px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }

/* ------------------------------------------------------------ tableau de bord */
.next { background: var(--violet); border: 0; color: #fff; box-shadow: 0 24px 50px rgba(91, 61, 245, .28); }
.next .label { color: #e4defe; }
.next h2 { margin: 6px 0 6px; font-size: clamp(24px, 3vw, 30px); color: #fff; }
.next p { margin: 0; color: #ece8ff; }
.next .btn { background: var(--coral); color: var(--ink); }
.next .btn:hover { background: var(--coral-dark); color: var(--ink); }
.next .muted { color: #e4defe; }
.next progress.bar { background: rgba(255, 255, 255, .25); }
.next progress.bar::-webkit-progress-bar { background: rgba(255, 255, 255, .25); }
.next progress.bar::-webkit-progress-value { background: var(--coral); }
.next progress.bar::-moz-progress-bar { background: var(--coral); }
.progress-line { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; flex-wrap: wrap; }
.progress-line progress { flex: 1; min-width: 160px; }
.modules { list-style: none; padding: 0; margin: 0; }
.modules li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.modules li:last-child { border-bottom: 0; }
.modules h3 { margin: 0; font-size: 17px; font-family: "Atkinson", sans-serif; letter-spacing: 0; }
.modules p { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }
.status { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--bg); color: var(--muted); border: 1.5px solid var(--line); }
.status.done { background: var(--coral); border-color: var(--coral); }
.status.done::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.status.current { background: var(--violet); border-color: var(--violet); color: #fff; }
@media (max-width: 520px) { .modules li { grid-template-columns: 34px 1fr; } .modules li > :last-child { grid-column: 2; justify-self: start; } }
.tools { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.tool { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: border-color .12s ease, transform .12s ease; }
.tool:hover { border-color: var(--violet); color: var(--ink); transform: translateY(-2px); }
.tool strong { display: block; font-size: 16.5px; }
.tool .txt { color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------ formulaires */
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; }
input:focus, textarea:focus, select:focus { border-color: var(--violet); }
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 6px; accent-color: var(--violet); width: 18px; height: 18px; flex: none; }
fieldset.options { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
fieldset.options legend { margin-bottom: 10px; }
.option { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px;
  font-weight: 400; margin: 0; cursor: pointer; background: #fff; min-height: 52px; }
.option:hover { border-color: var(--violet); }
.option:has(input:checked) { border-color: var(--violet); background: var(--tint); }
.option input { accent-color: var(--violet); width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------ leçons et quiz */
.lesson-body { font-size: 18px; }
.lesson-body .exercise { background: var(--tint); border-radius: 14px; padding: 16px 18px; margin-top: 22px; }
.question { margin-bottom: 18px; }
.question legend { font-weight: 700; margin-bottom: 8px; }
.question fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.choice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 400; margin: 6px 0; cursor: pointer; border: 1.5px solid var(--line); background: #fff; }
.choice:hover { border-color: var(--violet); }
.choice:has(input:checked) { border-color: var(--violet); background: var(--tint); }
.choice input { accent-color: var(--violet); margin-top: 5px; flex: none; }
.timer { position: sticky; top: 78px; z-index: 5; text-align: right; }
.timer span { background: var(--ink); color: var(--coral); padding: 7px 15px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ certificat */
.cert { background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 10px solid var(--violet); border-radius: 18px;
  padding: 44px 40px 32px; text-align: center; margin: 12px 0 28px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .cert { padding: 28px 18px 22px; } .cert .foot { justify-content: center; text-align: center; } }
.cert-logo { width: 56px; height: 56px; }
.cert .seal { color: var(--violet); letter-spacing: .18em; font-size: 13px; font-weight: 700; margin-top: 8px; }
.cert h1 { font-size: clamp(28px, 4vw, 38px); margin: 18px 0 4px; }
.cert .cert-name { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--ink-2); margin: 0 0 8px; }
.cert .name { font-family: var(--display); font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin: 10px 0 14px; border-bottom: 3px solid var(--coral); display: inline-block; padding: 0 24px 8px; }
.cert ul { text-align: left; display: inline-block; margin: 8px auto 16px; }
.cert .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 24px; text-align: left; font-size: 13.5px; flex-wrap: wrap; }
.cert img.qr { width: 110px; height: 110px; }
.cert-label { color: var(--muted); margin: 16px 0 0; }
.qr-box { text-align: center; font-size: 12px; }
.stamp { width: 96px; height: 96px; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; text-align: center; }

/* ------------------------------------------------------------ graphique (SVG généré côté serveur) */
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; padding: 0; margin: 8px 0 0; font-size: 14.5px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-alertes, .s-alertes { background: var(--series-1); fill: var(--series-1); }
.sw-attaques, .s-attaques { background: var(--series-2); fill: var(--series-2); }
.sw-donnees, .s-donnees { background: var(--series-3); fill: var(--series-3); }
svg.chart { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
svg.chart .gridline { stroke: #ece8f7; stroke-width: 1; }
svg.chart .baseline { stroke: #cfc9e8; stroke-width: 1; }
svg.chart text { fill: var(--muted); font-size: 12px; font-family: "Atkinson", sans-serif; }
svg.chart text.total { fill: var(--ink); font-weight: 700; font-size: 13px; }
svg.chart .col-bg { fill: transparent; }
svg.chart .col:hover .col-bg { fill: var(--bg); }
@media (max-width: 600px) {
  svg.chart text { font-size: 22px; }
  svg.chart text.total { font-size: 24px; }
  svg.chart text.x-alt { display: none; }
}
details.data { margin-top: 12px; }
details.data summary { cursor: pointer; color: var(--violet); font-size: 15px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.news-list a { font-weight: 700; text-decoration: none; color: var(--ink); }
.news-list a:hover { color: var(--violet); text-decoration: underline; }
.news-list p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.news-meta { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 2px; }

/* ------------------------------------------------------------ fiches pratiques */
.fiche-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.fiche-list a { display: block; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: border-color .12s ease, transform .12s ease; }
.fiche-list a:hover { border-color: var(--violet); transform: translateY(-2px); }
.fiche-list strong { display: block; font-size: 17px; }
.fiche-list span { font-size: 14px; color: var(--muted); }
ol.howto { counter-reset: howto; list-style: none; padding: 0; margin: 8px 0; }
ol.howto li { counter-increment: howto; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
ol.howto li:last-child { border-bottom: 0; }
ol.howto li::before { content: counter(howto); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--violet); color: #fff; font-weight: 700; font-size: 15px; }
.tip { background: var(--tint); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.office { background: #fff0ea; color: #6b2a14; border-radius: 14px; padding: 14px 16px; margin: 12px 0; }

/* ------------------------------------------------------------ pied de page */
footer.site { background: var(--ink); color: var(--on-dark); font-size: 14.5px; padding: 48px 0 40px; }
footer.site .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 { margin: 0 0 10px; font-size: 14px; color: #fff; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 6px 0; }
footer.site a { color: var(--on-dark); text-decoration: none; }
footer.site a:hover { color: var(--coral); text-decoration: underline; }
footer.site .brand { margin-bottom: 10px; }
footer.site .legal-note { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a9a3cc; font-size: 13.5px; }

/* ------------------------------------------------------------ impression */
@media print {
  .top, .lang-bar, footer.site, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .card { box-shadow: none; }
}

/* ------------------------------------------------------------ utilitaires (pas de style en ligne : la CSP les bloque) */
.mt0 { margin-top: 0; } .tight { margin-top: 4px; } .m0 { margin: 0; } .mb { margin-bottom: 16px; } .mt { margin-top: 16px; }
progress.bar { width: 100%; height: 10px; border: 0; border-radius: 99px; overflow: hidden; background: var(--tint); appearance: none; -webkit-appearance: none; }
progress.bar::-webkit-progress-bar { background: var(--tint); }
progress.bar::-webkit-progress-value { background: var(--violet); border-radius: 99px; }
progress.bar::-moz-progress-bar { background: var(--violet); border-radius: 99px; }
.check-row { border-top: 1px solid var(--line); padding: 12px 0; }
.check-row p { margin: 4px 0 0; }

/* Simulateur */
.sim-msg { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--violet); border-radius: 14px; padding: 14px 16px; margin: 18px 0 8px; }
.sim-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.sim-subject { font-weight: 700; margin-top: 6px; }
.sim-body { margin: 8px 0 0; overflow-wrap: anywhere; }
.choice-row { display: flex; gap: 8px; margin-bottom: 8px; }
.wrap-row { flex-wrap: wrap; }
.grid.tight { margin-top: 10px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.grid.tight .btn { text-align: center; }

/* Coach et jeu de rôle */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.bubble { max-width: 85%; border-radius: 18px; padding: 10px 14px; border: 1px solid var(--line); }
.bubble p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .who { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bubble.me { align-self: flex-end; background: var(--tint); border-color: #d8d0fb; }
.bubble.ai { align-self: flex-start; background: var(--surface); }
.small-print { font-size: 13.5px; margin-top: 24px; }

/* Test de niveau */
.scenario { background: var(--tint); border-left: 5px solid var(--violet); border-radius: 12px; padding: 12px 14px; }
.question-title { font-size: 22px; }
.lead-result { font-size: 19px; }
.domain-row { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr auto; gap: 12px; align-items: center; margin: 8px 0; }
@media (max-width: 520px) { .domain-row { grid-template-columns: 1fr auto; } .domain-row progress { grid-column: 1 / -1; } }

.kpis .price { font-size: 32px; }
.link-code { display: inline-block; word-break: break-all; font-size: 15px; }

/* ============================================================ ateliers pratiques : faux ordinateur */
.at-head h1 { margin-bottom: 6px; }
.at-bar { display: flex; gap: 12px; align-items: flex-start; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 18px; margin: 18px 0 14px; }
.at-bar .label { color: var(--coral); padding-top: 3px; white-space: nowrap; }
.at-task { margin: 0; font-size: 17.5px; font-weight: 700; }
.at-progress { width: 100%; margin: 0 0 14px; }
.at-nav { margin-top: 14px; }
.at-nav .btn[hidden] { display: none; }
.at-feedback { min-height: 28px; margin: 14px 0 0; font-weight: 700; border-radius: 12px; padding: 0; }
.at-feedback.ok { background: var(--okbg); color: var(--ok); padding: 12px 16px; }
.at-feedback.hint { background: var(--warnbg); color: var(--warn); padding: 12px 16px; }
.atelier.busy { cursor: progress; }
.step[hidden] { display: none !important; }
.atelier [data-go], .atelier [data-hint], .atelier [data-key] { cursor: pointer; }
.at-end { text-align: center; padding: 36px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.at-end .big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; margin: 0 auto 14px; }
.at-end .big-check::after { content: ""; width: 26px; height: 13px; border-left: 5px solid var(--ink); border-bottom: 5px solid var(--ink); transform: translateY(-3px) rotate(-45deg); }
.at-end .actions { justify-content: center; }
.at-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.at-card { display: grid; grid-template-columns: 52px 1fr; gap: 14px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); height: 100%; transition: border-color .12s ease, transform .12s ease; }
a.at-card:hover { border-color: var(--violet); color: var(--ink); transform: translateY(-2px); }
.at-card strong { display: block; font-size: 16.5px; }
.at-card .txt { color: var(--muted); font-size: 14.5px; display: block; margin-top: 2px; }
.at-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.at-card.locked { opacity: .7; }

/* Écran et bureau */
.screen { position: relative; border-radius: 18px; overflow: hidden; min-height: 420px; padding: 44px 18px 64px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; box-shadow: 0 20px 40px rgba(22, 18, 58, .18); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; }
.screen.os-win { background: linear-gradient(135deg, #0a3d91, #2f7fe0 60%, #6fb3ff); padding-top: 22px; }
.screen.os-mac { background: linear-gradient(140deg, #43307e, #b45a8a 55%, #f0a35e); }
.screen.os-ubu { background: linear-gradient(140deg, #2c0a24, #6e1a4f 55%, #e95420); padding-left: 70px; }
.screen.os-web { background: linear-gradient(140deg, #dcd6f7, #f4f1ff); padding: 18px; }
.screen.os-phone { background: linear-gradient(140deg, #1e1a47, #3b2f8f); padding: 22px; }
.os-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: rgba(20, 24, 40, .82); display: flex; align-items: center; gap: 14px; padding: 0 14px; color: #fff; font-size: 13px; }
.os-taskbar .start { width: 20px; height: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.os-taskbar .start i { background: #8fc6ff; border-radius: 1px; }
.os-taskbar .clock { margin-left: auto; opacity: .85; }
.os-menubar { position: absolute; left: 0; right: 0; top: 0; height: 28px; background: rgba(255, 255, 255, .55); display: flex; align-items: center; gap: 16px; padding: 0 14px; font-size: 13px; color: #1d1d1f; font-weight: 600; }
.os-menubar span:last-child { margin-left: auto; font-weight: 400; }
.os-dock { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 7px 10px; background: rgba(255, 255, 255, .35); border-radius: 16px; }
.os-dock i { width: 30px; height: 30px; border-radius: 8px; background: #fff; opacity: .85; }
.os-dock i:nth-child(2) { background: #6ac46a; } .os-dock i:nth-child(3) { background: #4ea0ff; } .os-dock i:nth-child(4) { background: #f6c443; }
.os-topbar { position: absolute; left: 0; right: 0; top: 0; height: 28px; background: #111; color: #eee; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 13px; }
.os-sidedock { position: absolute; left: 0; top: 28px; bottom: 0; width: 54px; background: rgba(0, 0, 0, .55); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }
.os-sidedock i { width: 34px; height: 34px; border-radius: 9px; background: #e95420; opacity: .9; }
.os-sidedock i:nth-child(2) { background: #3a8ee6; } .os-sidedock i:nth-child(3) { background: #f5f5f5; } .os-sidedock i:nth-child(4) { background: #7d7d7d; }

/* Fenêtres */
.win { width: 100%; max-width: 720px; background: #fff; color: #1f2430; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.win-title { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f3f4f7; border-bottom: 1px solid #e3e5ea; font-size: 13.5px; font-weight: 600; color: #333; }
.win-title .ctrl { margin-left: auto; display: flex; gap: 14px; color: #555; font-weight: 400; letter-spacing: 2px; }
.os-mac .win { border-radius: 12px; }
.os-mac .win-title { justify-content: center; position: relative; }
.os-mac .win-title .lights { position: absolute; left: 12px; display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.os-ubu .win-title { background: #2b2b2b; color: #eee; justify-content: center; position: relative; border-bottom: 0; }
.os-ubu .win-title .ctrl { position: absolute; right: 10px; color: #ddd; }
.win-body { display: grid; grid-template-columns: 190px 1fr; min-height: 260px; }
.win-body.single { grid-template-columns: 1fr; }
@media (max-width: 620px) { .win-body { grid-template-columns: 1fr; } .screen.os-ubu { padding-left: 18px; } .os-sidedock { display: none; } }
.side { background: #f7f8fa; border-right: 1px solid #eceef2; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.side .it, .list .it { padding: 9px 11px; border-radius: 7px; color: #2b3040; }
.side .it:hover, .list .it:hover { background: #e9edfb; }
.side .it.sel { background: #dfe6fb; font-weight: 600; }
.pane { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pane h4 { margin: 0; font-size: 18px; color: #1f2430; font-family: system-ui, sans-serif; }
.pane .muted-s { color: #6a7080; font-size: 14px; margin: 0; }
.list { display: flex; flex-direction: column; gap: 4px; }
.sbtn { display: inline-block; align-self: flex-start; background: #2c62e8; color: #fff; border-radius: 7px; padding: 8px 16px; font-weight: 600; border: 0; font: inherit; }
.sbtn.alt { background: #e9ecf3; color: #2b3040; }
.sbtn.danger { background: #d93a2b; }
.os-mac .sbtn { background: #1f7aff; border-radius: 8px; } .os-ubu .sbtn { background: #e95420; }
.row-set { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid #eceef2; border-radius: 8px; }
.toggle { width: 42px; height: 24px; border-radius: 99px; background: #c9ced8; position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.sim-input { width: 100%; padding: 9px 11px; border: 1px solid #cfd4de; border-radius: 7px; font: inherit; background: #fff; color: #1f2430; }
.sim-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sim-form .sim-input { flex: 1; min-width: 160px; }
.pill-ok { display: inline-block; background: #e3f6ea; color: #136c3b; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.pill-bad { display: inline-block; background: #fde7e4; color: #b42318; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 600; }

/* Navigateur */
.browser { width: 100%; max-width: 760px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(22, 18, 58, .2); color: #1f2430; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #eef0f5; border-bottom: 1px solid #e0e3ea; }
.browser-url { flex: 1; background: #fff; border-radius: 99px; padding: 6px 14px; font-size: 14px; color: #333; overflow-wrap: anywhere; border: 1px solid #dde1e8; }
.browser-url b { color: #111; }
.ext { width: 30px; height: 30px; border-radius: 8px; background: #175ddc; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.browser-page { padding: 22px; display: grid; gap: 12px; position: relative; min-height: 230px; }
.vault { position: absolute; right: 12px; top: 8px; width: min(300px, calc(100% - 24px)); background: #fff; border: 1px solid #d9dde6; border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18); padding: 14px; display: grid; gap: 10px; z-index: 2; }
.vault h5 { margin: 0; font-size: 15px; }
.bank-logo { font-weight: 800; font-size: 20px; color: #0c4a8a; }

/* Messagerie */
.mail { width: 100%; max-width: 820px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(22, 18, 58, .2); color: #1f2430; }
.mail-head { padding: 14px 18px; border-bottom: 1px solid #eceef2; display: grid; gap: 4px; }
.mail-head .from { font-size: 14px; color: #555; overflow-wrap: anywhere; }
.mail-head .subj { font-size: 18px; font-weight: 700; }
.mail-body { padding: 16px 18px; display: grid; gap: 10px; font-size: 15px; }
.mail-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid #eceef2; background: #fafbfc; }
.hot { border-radius: 5px; outline: 2px dashed transparent; outline-offset: 2px; }
.hot:hover { outline-color: #9db3f5; }
.raw { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; background: #f6f7f9; padding: 14px; border-radius: 8px; display: grid; gap: 4px; overflow-x: auto; }
.raw span { white-space: pre-wrap; overflow-wrap: anywhere; padding: 2px 4px; }

/* Téléphone */
.phone { width: 280px; max-width: 100%; background: #0e0c22; border-radius: 34px; padding: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.phone-screen { background: #f4f2ff; border-radius: 24px; padding: 22px 16px; min-height: 330px; display: flex; flex-direction: column; gap: 12px; color: #1f2430; text-align: center; }
.phone-screen .caller { font-size: 22px; font-weight: 700; margin: 10px 0 0; }
.phone-screen .code { font-family: ui-monospace, Menlo, monospace; font-size: 32px; letter-spacing: 6px; font-weight: 700; color: #2c62e8; }
.phone-btns { display: grid; gap: 8px; margin-top: auto; }
.call-btn { border-radius: 99px; padding: 11px; font-weight: 700; color: #fff; background: #2c62e8; }
.call-btn.red { background: #d93a2b; } .call-btn.green { background: #1f9d55; } .call-btn.grey { background: #8a8fa3; }

/* Clavier virtuel */
.keyboard { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 100%; max-width: 560px; background: rgba(255, 255, 255, .85); padding: 12px; border-radius: 14px; }
.keyboard .k { background: #fff; border: 1px solid #cfd4de; border-bottom-width: 3px; border-radius: 7px; padding: 10px 0; text-align: center; font-weight: 700; color: #1f2430; user-select: none; font-size: 14px; }
.keyboard .k.w2 { grid-column: span 2; } .keyboard .k.w4 { grid-column: span 4; }
.keyboard .k.pressed { background: var(--coral); border-color: #e0704f; }
.lockscreen { color: #fff; text-align: center; }
.lockscreen .time { font-size: 54px; font-weight: 700; line-height: 1; }

/* Terminal */
.term { width: 100%; max-width: 760px; background: #12101f; color: #e6e3ff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; }
.term-title { background: #2a2740; padding: 8px 12px; font-size: 12.5px; color: #bcb6e6; display: flex; gap: 7px; align-items: center; }
.term-out { padding: 12px 14px 4px; max-height: 300px; min-height: 160px; overflow-y: auto; display: grid; gap: 2px; }
.term-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-line.cmd { color: var(--coral); }
.term-line.err { color: #ff8f7f; }
.term-form { display: flex; gap: 8px; padding: 8px 14px 14px; align-items: center; }
.term-form span { color: var(--coral); white-space: nowrap; }
.term-form input { flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid #4a4570; color: #fff; font: inherit; padding: 6px 2px; border-radius: 0; }
.term-form input:focus { outline: none; border-bottom-color: var(--coral); }
.term-help { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.term-help code { background: var(--tint); }

/* Choix multiples sous forme de cartes (atelier) */
.choices { display: grid; gap: 10px; width: 100%; max-width: 620px; }
.choice-card { background: #fff; color: #1f2430; border-radius: 12px; padding: 14px 16px; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); border: 2px solid transparent; }
.choice-card:hover { border-color: var(--coral); }
.pick { border-radius: 4px; padding: 0 2px; background: #fff3c4; }
.pick.picked { background: #1f2430; color: #1f2430; }
.win-title .lights { display: none; }
.os-mac .win-title .lights { display: flex; }
.os-mac .win-title .ctrl { display: none; }
.term-title .lights { display: flex; gap: 6px; }
.term-title .lights i { width: 10px; height: 10px; }
.qr-fake { width: 132px; height: 132px; border: 8px solid #fff; outline: 1px solid #ddd; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 22px 22px; }
.ransom { background: #7a0f12; color: #fff; border-radius: 12px; padding: 22px; max-width: 620px; width: 100%; text-align: center; font-family: ui-monospace, Menlo, monospace; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.ransom h4 { color: #fff; font-size: 20px; margin: 0 0 8px; font-family: ui-monospace, Menlo, monospace; }
.chatbox { display: grid; gap: 10px; }
.chat-q { background: #eef1fb; border-radius: 12px; padding: 12px 14px; line-height: 1.7; }
.chat-a { background: #f6f7f9; border-radius: 12px; padding: 12px 14px; }
.plan-what { font-size: 14.5px; color: var(--ink-2); margin: 12px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.plan.featured .plan-what { background: rgba(255, 255, 255, .12); color: #f1eeff; }
.plan.featured .plan-what strong { color: #fff; }
.os-mac .win-title { padding-left: 64px; padding-right: 64px; }
@media (max-width: 600px) {
  .keyboard { grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 8px; }
  .keyboard .k { font-size: 12px; padding: 9px 0; }
  .keyboard .k.w4 { grid-column: span 3; }
  .screen { min-height: 0; padding-left: 12px; padding-right: 12px; }
}
.sw-tech, .s-tech { background: var(--series-4); fill: var(--series-4); }

/* ------------------------------------------------------------ actualité en images et alertes « Informe-toi » */
.news-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .12s ease, border-color .12s ease; }
.news-card:hover { transform: translateY(-2px); border-color: var(--violet); color: var(--ink); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--tint); }
.news-card .ph { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--ink); color: var(--coral); font-family: var(--display); font-weight: 800; font-size: 20px; padding: 16px; text-align: center; }
.news-card .body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.news-card strong { font-size: 17px; line-height: 1.3; }
.news-card .meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.alert-strip { display: grid; gap: 12px; }
.alert-card { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; background: #fff7e6; border: 1px solid #f6d58f;
  border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.alert-card:hover { border-color: var(--warn); color: var(--ink); }
.alert-card .sign { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--coral); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; }
.alert-card strong { display: block; font-size: 17px; }
.alert-card .txt { color: var(--ink-2); font-size: 15px; }
.alert-card .kind { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); }
.alert-banner { display: flex; gap: 12px; align-items: center; background: var(--coral); color: var(--ink); border-radius: 999px; padding: 8px 8px 8px 16px;
  text-decoration: none; font-weight: 700; font-size: 15px; margin: 0 0 22px; max-width: 100%; width: fit-content; }
.alert-banner:hover { color: var(--ink); background: var(--coral-dark); }
.alert-banner .tag { background: var(--ink); color: var(--coral); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; white-space: nowrap; }
.alert-banner .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo { list-style: none; padding: 0; margin: 8px 0; counter-reset: todo; }
.todo li { counter-increment: todo; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 8px 0; }
.todo li::before { content: counter(todo); width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: var(--ink); display: grid; place-items: center; font-weight: 700; }

/* ------------------------------------------------------------ examen surveillé */
.exam { user-select: none; -webkit-user-select: none; }
.exam-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.exam-timer { background: var(--ink); color: var(--coral); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 72px; text-align: center; }
.exam-timer.low { background: var(--fail); color: #fff; }
.exam-card { margin-top: 14px; }
.exam-card.veiled, form.veiled { filter: blur(8px); pointer-events: none; }
.exam-guard { position: fixed; inset: 0; z-index: 100; background: rgba(22, 18, 58, .88); display: grid; place-items: center; padding: 20px; }
.exam-guard[hidden] { display: none; }
.exam-guard-box { background: #fff; border-radius: var(--radius); padding: 28px; max-width: 480px; width: 100%; text-align: center; }
.exam-guard-box .btn { margin-top: 8px; }

/* ------------------------------------------------------------ croissance : ambassadeurs, affiches */
.qr-card { text-align: center; }
.qr-card img { display: block; margin: 0 auto 8px; }
.poster { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 48px 32px; text-align: center; box-shadow: var(--shadow); }
.poster-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 26px; }
.poster h1 { font-size: clamp(30px, 6vw, 48px); margin: 28px 0 12px; }
.poster-sub { font-size: 20px; color: var(--ink-2); max-width: 560px; margin: 0 auto 24px; }
.poster-qr { display: block; margin: 0 auto 10px; }
.poster-link { font-weight: 700; word-break: break-all; }
@media print { .poster { border: 0; box-shadow: none; } }

/* Champ piège pour les robots : invisible et hors du parcours clavier */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Choix de la langue : petite barre tout en haut de chaque page (au-dessus de l'en-tête, qui reste collé en haut) */
.lang-bar { background: #0e0b2e; }
.lang-bar-in { display: flex; justify-content: flex-end; align-items: center; min-height: 36px; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0; }
.lang-btn { background: none; border: 0; border-radius: 8px; color: var(--on-dark); font: inherit; font-size: 14px; line-height: 1;
  padding: 7px 10px; cursor: pointer; }
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.lang-btn[aria-pressed="true"] { color: #fff; background: rgba(255,255,255,.14); font-weight: 700; }
.lang-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 1px; }
.bridge { margin: 26px 0 0; font-size: 1.12rem; font-weight: 600; text-align: center; }
.bridge.left { text-align: left; margin-top: 8px; }

/* ------------------------------------------------------------ mini-vidéos de mise en situation (_video.html, video.js) */
.vid { margin: 0; }
.vid-stage { position: relative; background: linear-gradient(160deg, #1b1650, #2c2380 60%, #3b2f8f); border-radius: 16px; overflow: hidden; color: #fff; }
.vid-scene { padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.vid-scene:last-of-type { border-bottom: 0; }
.vid-visual { display: flex; align-items: center; justify-content: center; min-height: 210px; }
.vid-cap { margin: 0; text-align: center; font-size: 17px; line-height: 1.45; font-weight: 700; color: #fff; max-width: 560px; align-self: center; }
.vid figcaption { font-size: 14px; margin-top: 8px; }
.vid-js .vid-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.vid-js .vid-scene { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .35s ease; border-bottom: 0; justify-content: center; }
.vid-js .vid-scene.on { visibility: visible; opacity: 1; }
.vid-js .vid-cap { min-height: 3.2em; }
.vid-start { grid-area: 1 / 1; align-self: center; justify-self: center; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 99px; padding: 12px 22px 12px 14px; background: var(--coral); color: var(--ink); font: inherit; font-weight: 800;
  font-size: 17px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.vid-start:hover { background: var(--coral-dark); }
.vid-start:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.vid-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.vid-start-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.vid-start-ico::after { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.vid-again-txt, .vid.ended .vid-start-txt { display: none; }
.vid.ended .vid-again-txt { display: inline; }
.vid-js.poster .vid-scene.on .vid-visual { filter: brightness(.7); }
.vid-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.vid-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vid-btn:hover { border-color: var(--violet); color: var(--violet); }
.vid-toggle { background: var(--violet); border-color: var(--violet); color: #fff; }
.vid-toggle:hover { background: var(--violet-dark); color: #fff; }
.vid-toggle .ico { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.vid-toggle.is-playing .ico { width: 11px; height: 14px; border: 0; border-left: 4px solid currentColor; border-right: 4px solid currentColor; margin: 0; }
.vid-voice .ico { width: 18px; height: 14px; position: relative; }
.vid-voice .ico::before { content: ""; position: absolute; left: 0; top: 4px; width: 5px; height: 6px; background: currentColor; }
.vid-voice .ico::after { content: ""; position: absolute; left: 4px; top: 0; border-style: solid; border-width: 7px 8px 7px 0; border-color: transparent currentColor transparent transparent; }
.vid-voice.off { color: var(--muted); text-decoration: line-through; }
.vid-voice.off .ico { opacity: .45; }
.vid-prog { flex: 1; display: flex; gap: 4px; min-width: 40px; }
.vid-prog .seg { flex: 1; height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.vid-prog .seg i { display: block; height: 100%; width: 0; background: var(--violet); border-radius: 3px; }
.vid-count { font-size: 13px; color: var(--muted); min-width: 2.6em; text-align: center; font-variant-numeric: tabular-nums; }

/* scènes : état final par défaut (lisible sans JavaScript), animations seulement pendant la lecture */
.v-intro { display: grid; justify-items: center; gap: 8px; }
.v-clock { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 40px); letter-spacing: -.02em; }
.v-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--coral); color: var(--ink); font-family: var(--display); font-weight: 800;
  font-size: 30px; display: inline-flex; align-items: center; justify-content: center; }
.v-avatar.ok { background: #6fe0ad; }
.v-who { font-weight: 700; color: var(--on-dark); }
.v-phone { width: 230px; max-width: 100%; min-height: 230px; border-radius: 30px; background: #0e0b2e; border: 3px solid #4a4290; padding: 18px 12px 14px;
  display: flex; flex-direction: column; gap: 8px; }
.v-notch { width: 70px; height: 8px; border-radius: 6px; background: #2b2560; align-self: center; margin-bottom: 4px; }
.v-lock-time { text-align: center; font-family: var(--display); font-size: 34px; font-weight: 800; }
.v-notif { background: rgba(255,255,255,.94); color: var(--ink); border-radius: 14px; padding: 9px 11px; font-size: 13.5px; line-height: 1.35; display: grid; gap: 3px; }
.v-pill { justify-self: start; margin-top: 4px; background: var(--fail); color: #fff; border-radius: 99px; padding: 2px 10px; font-weight: 700; font-size: 12.5px; }
.v-sms-head { text-align: center; font-size: 13px; color: var(--on-dark); font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid #2b2560; }
.v-bubble { background: #ece8ff; color: var(--ink); border-radius: 14px 14px 14px 4px; padding: 7px 11px; font-size: 13.5px; line-height: 1.35; align-self: flex-start; max-width: 92%; }
.v-bubble.me { background: #d9ccff; border-radius: 14px 14px 4px 14px; align-self: flex-end; }
.v-caller { display: grid; justify-items: center; gap: 6px; text-align: center; margin-top: 14px; font-size: 13.5px; }
.v-caller strong { font-size: 20px; font-family: var(--display); }
.v-caller span:last-child { color: var(--on-dark); }
.v-call-btns { display: flex; justify-content: space-around; margin-top: auto; }
.v-dot { width: 44px; height: 44px; border-radius: 50%; }
.v-dot.red { background: #e5484d; } .v-dot.green { background: #2fbf71; }
.v-wave { display: flex; gap: 5px; align-items: center; justify-content: center; height: 52px; flex-wrap: wrap; }
.v-wave i { width: 6px; height: 34px; border-radius: 3px; background: var(--coral); }
.v-wave.ok i { background: #6fe0ad; height: 20px; }
.v-wave i:nth-child(2n) { height: 22px; } .v-wave i:nth-child(3n) { height: 44px; }
.v-clone-item { display: grid; justify-items: center; gap: 8px; width: 140px; }
.v-clone-item small { text-align: center; color: var(--on-dark); font-size: 13px; line-height: 1.3; }
.v-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 10px; }
.v-tile { position: relative; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 12px 10px 10px;
  display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 14px; }
.v-lock svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; }
.v-lock:not(.open) { display: none; }
.v-lock.open svg { stroke: #ff8f8f; }
.v-hacked { font-size: 12px; font-weight: 800; color: #ffb4b4; text-transform: uppercase; letter-spacing: .06em; }
.v-tile { border-color: #ff8f8f; background: rgba(229,72,77,.22); }
.v-win { width: 440px; max-width: 100%; background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.v-win-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #ece8ff; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.v-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c1f2; flex: none; }
.v-win-bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-win-body { padding: 14px 16px 16px; font-size: 15px; }
.v-win-body p { margin: 0 0 8px; }
.v-code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13.5px; overflow-wrap: anywhere; }
.v-win .v-code { background: var(--tint); border-radius: 8px; padding: 8px 10px; font-weight: 700; }
.v-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.v-btn { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 700; position: relative; }
.v-btn.pick { background: var(--violet); border-color: var(--violet); color: #fff; }
.v-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v-rows li { display: flex; gap: 10px; align-items: baseline; }
.v-rows li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fail); flex: none; transform: translateY(1px); }
.v-win.cloud .v-rows li::before { background: var(--warn); }
.v-win.chat .v-win-body { display: flex; flex-direction: column; }
.v-win.chat .v-bubble.me { font-size: 14.5px; max-width: 100%; border: 2px solid #e5484d; }
.v-win.chat.safe .v-bubble.me { border-color: #2fbf71; }
.v-mail { width: 440px; max-width: 100%; background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; font-size: 15px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.v-mail p { margin: 0 0 6px; overflow-wrap: anywhere; }
.v-from { font-size: 14px; }
.v-addr { color: var(--muted); }
.v-subj { font-weight: 800; font-family: var(--display); font-size: 17px; }
.v-zoom { display: grid; justify-items: center; gap: 12px; text-align: center; max-width: 440px; }
.v-zoom p { margin: 0; color: var(--on-dark); font-size: 15px; }
.v-lens { border: 6px solid #fff; border-radius: 999px; padding: 16px 22px; background: rgba(255,255,255,.08); }
.v-lens .v-code { font-size: clamp(15px, 4.4vw, 22px); font-weight: 800; color: #fff; }
.v-clone { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.v-thumb { width: 130px; height: 96px; border-radius: 12px; background: linear-gradient(140deg, #6b5cff, #ff9b7a); display: grid; place-items: center; }
.v-play-ico { width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.v-arrow { width: 40px; height: 4px; background: var(--on-dark); position: relative; border-radius: 2px; }
.v-arrow::after { content: ""; position: absolute; right: -4px; top: -6px; border-style: solid; border-width: 8px 0 8px 10px; border-color: transparent transparent transparent var(--on-dark); }
.v-clone .v-wave { width: 130px; height: 96px; flex-wrap: nowrap; }
.v-alarm { width: 440px; max-width: 100%; background: #b42318; border-radius: 12px; padding: 18px; text-align: center; box-shadow: 0 0 0 6px rgba(229,72,77,.35); }
.v-alarm strong { font-family: var(--display); font-size: 22px; display: block; margin-bottom: 8px; }
.v-alarm p { margin: 0 0 4px; }
.v-term { width: 480px; max-width: 100%; background: #0c0a1f; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.v-term .v-win-bar { background: #1f1a48; color: var(--on-dark); }
.v-term .v-win-bar i { background: #4a4290; }
.v-term .v-code { margin: 0; padding: 4px 14px; color: #c9f7dd; }
.v-term .v-code:first-of-type { padding-top: 12px; } .v-term .v-code:last-child { padding-bottom: 14px; }
.v-list { width: 460px; max-width: 100%; }
.v-list-title { font-family: var(--display); font-weight: 800; font-size: 22px; text-align: center; margin: 0 0 10px; }
.v-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v-list li { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.1); border-radius: 12px; padding: 9px 12px; font-size: 15.5px; line-height: 1.35; }
.v-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.v-list.reflexes .v-num { background: #6fe0ad; }

@keyframes v-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes v-drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
@keyframes v-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,155,122,.6); } 50% { box-shadow: 0 0 0 18px rgba(255,155,122,0); } }
@keyframes v-wave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes v-hack { from { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); } to { background: rgba(229,72,77,.22); border-color: #ff8f8f; } }
@keyframes v-swap-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes v-click { 0%, 60% { background: #fff; color: var(--ink); border-color: var(--line); } 70% { transform: scale(.94); } 100% { transform: none; } }
@keyframes v-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes v-lens { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.vid-js .on .v-intro > * { animation: v-pop .6s both; }
.vid-js .on .v-intro > :nth-child(2) { animation-delay: .25s; } .vid-js .on .v-intro > :nth-child(3) { animation-delay: .45s; }
.vid-js .on .v-phone, .vid-js .on .v-win, .vid-js .on .v-mail, .vid-js .on .v-term, .vid-js .on .v-alarm { animation: v-pop .55s both; }
.vid-js .on .v-notif { animation: v-drop .6s .6s both; }
.vid-js .on .v-bubble { animation: v-pop .45s both; }
.vid-js .on .v-sms-head + .v-bubble { animation-delay: .5s; } .vid-js .on .v-bubble + .v-bubble { animation-delay: 1.6s; }
.vid-js .on .v-win.chat .v-bubble { animation-delay: .5s; }
.vid-js .on .ringing .v-avatar { animation: v-ring 1.2s infinite; }
.vid-js .on .v-wave i { animation: v-wave .9s ease-in-out infinite; }
.vid-js .on .v-wave i:nth-child(2) { animation-delay: .1s; } .vid-js .on .v-wave i:nth-child(3) { animation-delay: .25s; }
.vid-js .on .v-wave i:nth-child(4) { animation-delay: .4s; } .vid-js .on .v-wave i:nth-child(5) { animation-delay: .15s; }
.vid-js .on .v-wave i:nth-child(6) { animation-delay: .3s; } .vid-js .on .v-wave i:nth-child(7) { animation-delay: .05s; }
.vid-js .on .v-tile { animation: v-hack .4s both; }
.vid-js .on .v-tile .v-lock.open, .vid-js .on .v-tile .v-hacked { animation: v-swap-in .4s both; }
.vid-js .on .v-tile:nth-child(1), .vid-js .on .v-tile:nth-child(1) > * { animation-delay: 1s; }
.vid-js .on .v-tile:nth-child(2), .vid-js .on .v-tile:nth-child(2) > * { animation-delay: 2s; }
.vid-js .on .v-tile:nth-child(3), .vid-js .on .v-tile:nth-child(3) > * { animation-delay: 3s; }
.vid-js .on .v-tile:nth-child(4), .vid-js .on .v-tile:nth-child(4) > * { animation-delay: 4s; }
.vid-js .on .v-btn.pick { animation: v-click 2.4s both; }
.vid-js .on .v-rows li, .vid-js .on .v-term .v-code, .vid-js .on .v-list li, .vid-js .on .v-alarm .v-code { animation: v-pop .45s both; }
.vid-js .on .v-rows li:nth-child(1), .vid-js .on .v-list li:nth-child(1) { animation-delay: .6s; }
.vid-js .on .v-rows li:nth-child(2), .vid-js .on .v-list li:nth-child(2) { animation-delay: 1.5s; }
.vid-js .on .v-rows li:nth-child(3), .vid-js .on .v-list li:nth-child(3) { animation-delay: 2.4s; }
.vid-js .on .v-term .v-code:nth-of-type(1), .vid-js .on .v-alarm .v-code:nth-of-type(1) { animation-delay: .5s; }
.vid-js .on .v-term .v-code:nth-of-type(2), .vid-js .on .v-alarm .v-code:nth-of-type(2) { animation-delay: 1.4s; }
.vid-js .on .v-term .v-code:nth-of-type(3), .vid-js .on .v-alarm .v-code:nth-of-type(3) { animation-delay: 2.3s; }
.vid-js .on .v-term .v-code:nth-of-type(4) { animation-delay: 3.2s; }
.vid-js .on .v-alarm { animation: v-pop .5s both, v-blink 1.4s 1s 3; }
.vid-js .on .v-lens { animation: v-lens .6s .2s both; }
.vid-js .on .v-zoom p { animation: v-fade .6s 1.2s both; }
.vid-js .on .v-clone > * { animation: v-pop .5s both; }
.vid-js .on .v-clone .v-wave i { animation: v-wave .9s ease-in-out infinite; }
.vid-js .on .v-clone > :nth-child(2) { animation-delay: .8s; } .vid-js .on .v-clone > :nth-child(3) { animation-delay: 1.4s; }
.vid-js .on .v-wave.ok i { animation-duration: .7s; }
.vid-js.still .vid-scene.on *, .vid-js.still .vid-scene.on .v-alarm { animation: none !important; }
.vid-js:not(.playing) .vid-scene.on * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .vid-js .vid-scene { transition: none; }
  .vid-js .on *, .vid-js .on .v-alarm { animation: none !important; }
}
@media (max-width: 520px) {
  .vid-scene { padding: 16px 12px 14px; gap: 10px; }
  .vid-visual { min-height: 180px; }
  .vid-cap { font-size: 15.5px; }
  .vid-btn { width: 36px; height: 36px; font-size: 20px; }
  .vid-bar { gap: 4px; }
  .v-win-body { padding: 12px; font-size: 14px; }
  .v-list li { font-size: 14px; padding: 8px 10px; }
  .v-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .v-clone { gap: 8px; flex-wrap: nowrap; }
  .v-clone-item { width: 104px; }
  .v-thumb, .v-clone .v-wave { width: 104px; height: 78px; }
  .v-arrow { width: 22px; }
}

/* ------------------------------------------------------------ « Vérifie que tu as compris » (fin de leçon) */
.lesson-check { border-left: 5px solid var(--coral); scroll-margin-top: 90px; }
.check-q { font-weight: 700; font-size: 18px; }
.check-form fieldset { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.check-choice { margin: 0; font-weight: 400; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; background: var(--surface); }
.check-choice:hover { border-color: var(--violet); }
.check-choice input { margin-top: 5px; flex: none; accent-color: var(--violet); width: 18px; height: 18px; }
.check-choice:has(input:checked) { border-color: var(--violet); background: var(--tint); }
.check-choices { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.check-choices li { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.check-choices li.right { border-color: var(--ok); background: var(--okbg); }
.check-choices li.wrong { border-color: var(--fail); background: var(--failbg); }
.check-choices .mark { flex: none; width: 18px; font-weight: 800; }
.check-choices li.right .mark { color: var(--ok); } .check-choices li.wrong .mark { color: var(--fail); }
.check-why { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--tint); }
.check-why.ok strong { color: var(--ok); } .check-why.ko strong { color: var(--fail); }
.small-txt { font-size: 14px; }
.module-time { margin: 10px 0 0; font-size: 15px; }
.vid [hidden] { display: none !important; }

/* ------------------------------------------------------------ badges du parcours (tableau de bord) */
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; align-items: start; }
.badges li { display: grid; justify-items: center; text-align: center; gap: 4px; }
.badges .hex { width: 64px; height: 72px; }
.badges .hex path { fill: var(--tint); stroke: var(--line); stroke-width: 2; }
.badges .hex text { font-family: var(--display); font-weight: 800; font-size: 26px; fill: var(--muted); }
.badges .hex .tick { fill: none; stroke: var(--muted); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.badges .got .hex path:first-child { fill: var(--violet); stroke: var(--coral); stroke-width: 4; }
.badges .got .hex text { fill: #fff; }
.badges .got.b-cert .hex path:first-child { fill: var(--ink); }
.badges .got .hex .tick { stroke: var(--coral); }
.badges .b-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.badges .b-state { font-size: 13px; color: var(--muted); }
.badges .got .b-state { color: var(--ok); font-weight: 700; }

/* ------------------------------------------------------------ examen : pièce à analyser (faux email, SMS, page web) */
.exam-doc { margin: 0 0 18px; }
.exam-doc-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.exam-doc-box { border: 1px solid var(--line); border-left: 5px solid var(--coral); border-radius: 14px; padding: 14px 16px; background: #fff;
  overflow-wrap: anywhere; user-select: none; }
.exam-doc-box p { margin: 0 0 6px; }
.exam-doc-box p:last-child { margin: 0; }
.exam-doc-box .d-addr { color: var(--muted); }
.exam-doc-box .d-subj { font-weight: 800; font-family: var(--display); font-size: 18px; }
.exam-doc-box.k-sms { background: var(--tint); border-radius: 18px 18px 18px 6px; max-width: 520px; }
.exam-doc-box.k-browser .d-url { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; background: var(--tint);
  border-radius: 99px; padding: 6px 14px; }
.exam-doc-box.k-browser .d-body { color: var(--warn); font-weight: 700; }
.bubble.debrief { border-left: 5px solid var(--coral); }
.preview-list { display: grid; gap: 6px; }
.preview-list li { padding-left: 18px; position: relative; }
.preview-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
