/* ─────────────────────────────────────────────────────────────────────────
   Vigie Ops — feuille de style des pages « Tutoriels ».

   Même palette et même ton que landing.html (institutionnel, clair par
   défaut, tricolore discret) : les tutos sont la suite de la vitrine, pas
   un univers graphique séparé. Les jetons sont donc recopiés à l'identique
   depuis la landing plutôt qu'importés de variables.css, qui sert l'app.

   Les « captures » sont des maquettes HTML/CSS, pas des images : elles ne
   peuvent pas devenir périmées silencieusement quand l'app évolue, elles
   ne pèsent rien et elles restent lisibles hors-ligne.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --bg:        #F4F7FC;
  --bg-2:      #E9F0FA;
  --panel:     #FFFFFF;
  --panel-2:   #F1F5FC;
  --ink:       #14253F;
  --muted:     #50637E;
  --line:      rgba(20, 45, 80, 0.12);
  --line-2:    rgba(20, 45, 80, 0.07);
  --blue:      #0B57B0;
  --blue-press:#084A98;
  --blue-soft: rgba(11, 87, 176, 0.10);
  --red:       #D8243A;
  --red-soft:  rgba(216, 36, 58, 0.10);
  --ok:        #1E9E63;
  --ok-soft:   rgba(30, 158, 99, 0.12);
  --warn:      #B26A00;
  --warn-soft: rgba(230, 161, 0, 0.14);
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 18px 44px rgba(18, 44, 92, 0.12);
  --shadow-sm: 0 8px 22px rgba(18, 44, 92, 0.10);
  --maxw:      1080px;
  --readw:     920px;
}

:root[data-theme="dark"] {
  --bg:        #0D1B30;
  --bg-2:      #0A1627;
  --panel:     #132743;
  --panel-2:   #0F2138;
  --ink:       #EAF1FB;
  --muted:     #9EB2D2;
  --line:      rgba(150, 180, 225, 0.16);
  --line-2:    rgba(150, 180, 225, 0.10);
  --blue:      #5AA6FF;
  --blue-press:#418FF0;
  --blue-soft: rgba(90, 166, 255, 0.14);
  --red:       #FF5C6B;
  --red-soft:  rgba(255, 92, 107, 0.14);
  --ok:        #46C98C;
  --ok-soft:   rgba(70, 201, 140, 0.16);
  --warn:      #F0B84E;
  --warn-soft: rgba(240, 184, 78, 0.16);
  --shadow:    0 22px 52px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
/* `hidden` doit gagner : plus bas, .note et .mk-* posent un `display: flex`
   qui écraserait sans bruit la règle du navigateur — un encart masqué
   s'afficherait alors quand même (cf. « déjà installée »). */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.read { width: 100%; max-width: var(--readw); margin: 0 auto; }
.tricolor { height: 4px; background: linear-gradient(90deg, #1F4FB0 0 33.33%, #ffffff 33.33% 66.66%, var(--red) 66.66% 100%); }

/* ── topbar (identique à la landing) ── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.topbar-in { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 1.14rem; line-height: 1.1; display: block; }
.brand-sub { font-size: 0.8rem; color: var(--muted); display: block; margin-top: 2px; }
.spacer { flex: 1; }
.actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  border-radius: 12px; padding: 12px 20px; min-height: 44px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--panel); color: var(--ink);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); text-decoration: none; }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #06182F; }
.btn-primary:hover { background: var(--blue-press); border-color: var(--blue-press); }
.btn-icon { padding: 11px; width: 44px; }

/* ── fil d'ariane ── */
.crumb { font-size: 0.92rem; color: var(--muted); padding: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb a { color: var(--muted); font-weight: 600; }
.crumb a:hover { color: var(--blue); }
.crumb .sep { opacity: .5; }
.crumb b { color: var(--ink); font-weight: 700; }

/* ── en-tête de page ── */
.hero { padding: 14px 0 6px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-size: 0.84rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 6px 14px;
}
h1 {
  font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.14; letter-spacing: -0.015em; margin: 0 0 14px;
}
.lead { font-size: 1.16rem; color: var(--muted); margin: 0 0 20px; max-width: 34em; }
.lead strong { color: var(--ink); font-weight: 700; }

.meta-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}

/* ── blocs de contenu ── */
.section { padding: 30px 0 0; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px 26px;
}
.panel + .panel { margin-top: 18px; }

/* Titre de chapitre : barre bleue à gauche, numéro dans le texte.
   C'est le repère visuel principal — un agent doit pouvoir dire
   « je suis à l'étape 2 » d'un coup d'œil. */
h2 {
  font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 1.72rem);
  line-height: 1.2; letter-spacing: -0.015em;
  margin: 42px 0 16px; padding-left: 16px;
  border-left: 5px solid var(--blue); border-radius: 2px;
}
h2:first-child { margin-top: 0; }
h3 { font-weight: 700; font-size: 1.12rem; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.94rem; }

ul, ol { margin: 0 0 14px; padding-left: 24px; }
li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

kbd, .ui {
  font-family: inherit; font-size: 0.95em; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 7px; padding: 1px 7px; white-space: nowrap; color: var(--ink);
}

/* Pastille numérotée en ligne : renvoie vers un repère de la capture,
   comme les petits carrés bleus des tutos Beneylu. */
.ref {
  display: inline-grid; place-items: center; width: 21px; height: 21px;
  border-radius: 6px; background: var(--blue); color: #fff;
  font-size: 0.76rem; font-weight: 800; line-height: 1;
  vertical-align: 2px; margin: 0 2px;
}
:root[data-theme="dark"] .ref { color: #06182F; }

/* ── « en bref » ── */
.brief { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.brief-title { font-weight: 800; font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.brief ul { margin: 0; padding-left: 0; list-style: none; }
/* La coche est posée en absolu, PAS via `display: flex` sur le <li>.
   En flex, chaque <b> de la phrase devenait un élément flex à part : le
   texte se disloquait autour des passages en gras (« Choisir la ⟨14⟩ langue
   parmi… »). Le puce-en-absolu garde la phrase dans un seul flux inline. */
.brief li { position: relative; padding-left: 33px; }
.brief li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: 0.78rem;
}

/* ── encarts ── */
.note {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-left: 4px solid var(--blue);
  background: var(--panel); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 20px 0;
}
.note-ic { flex: none; font-size: 1.25rem; line-height: 1.3; }
.note-body { min-width: 0; }
.note-title { font-weight: 700; margin-bottom: 3px; }
.note p { font-size: 0.98rem; color: var(--muted); }
.note p strong { color: var(--ink); }
.note--tip { border-left-color: var(--ok); }
.note--warn { border-left-color: var(--warn); }
.note--legal { border-left-color: var(--red); }

/* ── étapes numérotées ── */
.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: st; }
.steps > li {
  position: relative; padding: 0 0 22px 52px; margin: 0; counter-increment: st;
}
.steps > li::before {
  content: counter(st);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 1rem;
}
:root[data-theme="dark"] .steps > li::before { color: #06182F; }
/* Trait de liaison : la séquence se lit comme un enchaînement, pas comme une liste. */
.steps > li::after {
  content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 6px;
  width: 2px; background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps .st-title { font-weight: 700; font-size: 1.06rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 1rem; margin-bottom: 8px; }
.steps p strong, .steps li strong { color: var(--ink); }

/* ── sélecteur d'appareil (Android / iPhone / Ordinateur) ── */
.osbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 26px; }
.osbtn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-family: var(--font); font-size: 1rem; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 999px; padding: 10px 18px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.osbtn[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
:root[data-theme="dark"] .osbtn[aria-selected="true"] { color: #06182F; }

/* ─────────────── maquettes d'écran ───────────────
   Un « téléphone » est un cadre sombre + un écran clair. L'intérieur reste
   volontairement en couleurs fixes (et non liées au thème) : c'est une
   capture, elle ne suit pas le mode sombre du lecteur. */
.phones {
  display: flex; flex-wrap: wrap; gap: 26px 30px;
  justify-content: center; align-items: flex-start;
  margin: 30px 0 6px;
}
.pfig { width: 236px; max-width: 100%; margin: 0; }
.phone {
  position: relative; width: 100%; aspect-ratio: 9 / 18.6;
  background: #101E33; border-radius: 30px; padding: 7px;
  box-shadow: 0 18px 40px rgba(12, 30, 62, 0.28), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
:root[data-theme="dark"] .phone { box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone::after { /* encoche */
  content: ""; position: absolute; top: 11px; left: 50%; translate: -50% 0;
  width: 46px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18);
}
/* Rouge fixe (et non le jeton de thème) sur les repères et surlignages :
   l'intérieur d'une maquette est une capture, il ne suit pas le mode sombre. */
.phone-num {
  position: absolute; top: -15px; left: 50%; translate: -50% 0; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  background: #D8243A; color: #fff; font-weight: 800; font-size: 0.98rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(216, 36, 58, .4);
}
.scr {
  height: 100%; border-radius: 24px; overflow: hidden;
  background: #fff; color: #14253F;
  display: flex; flex-direction: column;
  font-size: 10.5px; line-height: 1.35;
}
.pcap { margin-top: 12px; font-size: 0.94rem; color: var(--muted); text-align: center; }
.pcap b { color: var(--ink); font-weight: 700; }

/* barre d'état */
.scr-status {
  flex: none; height: 21px; background: #101E33; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 14px; font-size: 8.5px; font-weight: 600; letter-spacing: .02em;
}
.scr-status span:last-child { letter-spacing: .12em; opacity: .9; }

/* barre du navigateur (Chrome mobile) */
.scr-chrome {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; background: #101E33; color: #E8EEF8;
}
.scr-url {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.13); border-radius: 999px; padding: 3px 8px;
  font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scr-chrome i { font-style: normal; opacity: .82; font-size: 10px; flex: none; }

/* barre d'adresse Safari (claire) : sans l'URL, on ne voit pas qu'on est
   dans le navigateur — c'est justement le point du tuto iPhone. */
.scr-chrome--ios {
  background: #F2F3F6; color: #3B4A61; border-bottom: 1px solid #DFE3EA;
  justify-content: center;
}
.scr-chrome--ios .scr-url {
  flex: 0 1 auto; max-width: 76%; justify-content: center;
  background: rgba(20, 45, 80, .07);
}

/* barre Safari (en bas) */
.scr-safari {
  flex: none; display: flex; align-items: center; justify-content: space-around;
  padding: 7px 8px; background: #F2F3F6; color: #3B4A61;
  border-top: 1px solid #DFE3EA; font-size: 12px;
}

.scr-body { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.scr-dim::before { /* écran assombri derrière une boîte de dialogue */
  content: ""; position: absolute; inset: 0; background: rgba(9, 18, 34, .55); z-index: 2;
}

/* Surlignage rouge : « c'est ici qu'on appuie ».
   `outline` et non `box-shadow` : les briques surlignées (bandeau
   d'installation, icône d'accueil, panneaux) portent déjà leur propre
   box-shadow, qui écrasait le cadre rouge selon l'ordre des règles. */
.hl { position: relative; z-index: 4; outline: 2.5px solid #D8243A; outline-offset: 1px; }

/* ── briques d'interface réutilisées dans les maquettes ── */
.mk-appbar {
  flex: none; display: flex; align-items: center; gap: 5px;
  padding: 7px 9px; background: #EDF3FC; border-bottom: 1px solid #DCE6F5;
}
.mk-shield { flex: none; width: 17px; height: 17px; }
.mk-appname { font-weight: 800; font-size: 10px; color: #0B57B0; }
.mk-beta { font-size: 6.5px; font-weight: 800; color: #fff; background: #0B57B0; border-radius: 999px; padding: 1px 5px; }
.mk-appbar .mk-icons { margin-left: auto; display: flex; gap: 5px; font-size: 9.5px; }

.mk-search { flex: none; display: flex; gap: 5px; padding: 7px 8px; background: #EDF3FC; }
.mk-field {
  flex: 1; min-width: 0; background: #fff; border: 1px solid #D7E2F2; border-radius: 7px;
  padding: 5px 7px; font-size: 8.5px; color: #7C8CA5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mk-field.filled { color: #14253F; font-weight: 600; }
.mk-sqbtn { flex: none; width: 25px; height: 25px; border-radius: 7px; background: #0B57B0; color: #fff; display: grid; place-items: center; font-size: 10px; }

/* fond de carte schématique : lisible, sans prétendre être une vraie carte */
.mk-map {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 47.6%, #E6C86A 47.6% 48.9%, transparent 48.9%),
    linear-gradient(72deg, transparent 63.4%, #F0F2F5 63.4% 65.2%, transparent 65.2%),
    linear-gradient(18deg, transparent 29.5%, #F0F2F5 29.5% 30.8%, transparent 30.8%),
    radial-gradient(60% 40% at 82% 88%, #AFD6EA 0 42%, transparent 44%),
    linear-gradient(160deg, #EEF3E8 0%, #E8EEE2 100%);
}
.mk-pin {
  position: absolute; width: 13px; height: 13px; border-radius: 50% 50% 50% 2px;
  rotate: -45deg; background: #0B57B0; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.mk-route { position: absolute; inset: 0; }

.mk-ctrl {
  position: absolute; top: 7px; right: 6px; display: flex; flex-direction: column;
  gap: 4px; z-index: 3;
}
.mk-ctrl-g { background: #fff; border-radius: 8px; box-shadow: 0 2px 7px rgba(16,30,51,.2); overflow: hidden; }
.mk-ctrl-b {
  width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 10px; color: #3F5670; position: relative;
}
.mk-ctrl-b + .mk-ctrl-b { border-top: 1px solid #EDF1F6; }
.mk-ctrl-b.on { background: #E3EDFA; color: #0B57B0; }
.mk-badge {
  position: absolute; top: -2px; right: -2px; min-width: 10px; height: 10px;
  border-radius: 999px; background: #0B57B0; color: #fff;
  font-size: 6px; font-weight: 800; display: grid; place-items: center; padding: 0 2px;
}

.mk-tabbar {
  flex: none; display: flex; background: #fff; border-top: 1px solid #E3E9F2;
  padding: 4px 2px 5px;
}
.mk-tab { flex: 1; text-align: center; font-size: 6.6px; color: #7C8CA5; font-weight: 600; }
.mk-tab i { display: block; font-style: normal; font-size: 11px; margin-bottom: 1px; }
.mk-tab.on { color: #0B57B0; }

/* cartes / panneaux dans l'écran */
.mk-sheet {
  position: absolute; left: 6px; right: 6px; z-index: 3;
  background: #fff; border: 1px solid #DDE6F3; border-radius: 11px;
  box-shadow: 0 8px 22px rgba(16,30,51,.18); padding: 8px 9px;
}
.mk-card { background: #F6F9FE; border: 1px solid #E1E9F5; border-radius: 8px; padding: 6px 7px; }
.mk-card + .mk-card { margin-top: 5px; }
.mk-h { font-weight: 800; font-size: 9.5px; margin-bottom: 3px; }
.mk-sub { color: #6B7C95; font-size: 8px; }
.mk-kicker { font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7C8CA5; }
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 7px; padding: 5px 8px; font-size: 8.5px; font-weight: 700;
  background: #EEF3FB; color: #14253F; border: 1px solid #DCE6F5;
}
.mk-btn.pri { background: #0B57B0; border-color: #0B57B0; color: #fff; }
.mk-btn.dan { background: #fff; border-color: #F0C2C8; color: #D8243A; }
/* En-tête de section repliée : l'app en empile plusieurs sous celle qu'on
   utilise. Les faire figurer évite des maquettes à moitié vides, qui
   laisseraient croire que l'écran s'arrête là. */
.mk-sec {
  display: flex; align-items: center; gap: 5px; margin-top: 4px;
  background: #fff; border: 1px solid #E1E9F5; border-radius: 8px;
  padding: 6px 7px; font-size: 8.5px; font-weight: 700;
}
.mk-sec .ch { margin-left: auto; color: #7C8CA5; font-weight: 800; }
.mk-row { display: flex; gap: 4px; flex-wrap: wrap; }
.mk-chip { border-radius: 999px; padding: 3px 7px; font-size: 7.5px; font-weight: 700; background: #EEF3FB; border: 1px solid #DCE6F5; color: #3F5670; }
.mk-chip.on { background: #0B57B0; border-color: #0B57B0; color: #fff; }
.mk-pill { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; font-size: 8px; font-weight: 800; color: #fff; }
.mk-natinf { font-weight: 800; font-size: 9px; color: #0B57B0; }
.mk-tagged { display: inline-block; font-size: 7px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: #E3EDFA; color: #0B57B0; }

/* bandeau d'installation reproduit à l'identique de l'app */
.mk-install {
  position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #DDE6F3; border-radius: 11px;
  box-shadow: 0 8px 22px rgba(16,30,51,.2); padding: 8px 9px;
}
.mk-install .ic { font-size: 15px; }
.mk-install .tx { flex: 1; min-width: 0; }
.mk-install .tx b { display: block; font-size: 9px; }
.mk-install .tx span { color: #6B7C95; font-size: 7.5px; }

/* boîte de dialogue native du navigateur */
.mk-dialog {
  position: absolute; left: 9px; right: 9px; top: 50%; translate: 0 -50%; z-index: 5;
  background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.35); padding: 11px 12px;
}
.mk-dialog h4 { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; }
.mk-dialog .app { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.mk-dialog .app b { display: block; font-size: 9.5px; }
.mk-dialog .app span { font-size: 8px; color: #6B7C95; }
.mk-dialog .acts { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.mk-dialog .acts .g { font-size: 9px; font-weight: 700; color: #5C6B82; padding: 4px 6px; }
.mk-dialog .acts .b { font-size: 9px; font-weight: 800; color: #0B57B0; padding: 4px 7px; border-radius: 6px; }

/* feuille de partage iOS */
.mk-share {
  position: absolute; left: 5px; right: 5px; bottom: 5px; z-index: 5;
  background: #F2F3F6; border-radius: 13px; box-shadow: 0 -8px 26px rgba(0,0,0,.25); padding: 9px;
}
.mk-share-hd { display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 9px; padding: 7px; margin-bottom: 8px; }
.mk-share-hd b { display: block; font-size: 9px; }
.mk-share-hd span { font-size: 7.5px; color: #6B7C95; }
.mk-share-list { background: #fff; border-radius: 9px; overflow: hidden; }
.mk-share-it { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; font-size: 9px; }
.mk-share-it + .mk-share-it { border-top: 1px solid #ECEEF2; }
.mk-share-it i { font-style: normal; font-size: 11px; opacity: .75; }

/* écran d'accueil du téléphone : notre icône en premier, puis des pastilles
   neutres — sans elles, l'écran ne se lit pas comme un écran d'accueil. */
.mk-home {
  position: absolute; inset: 0; padding: 15px 12px;
  background: linear-gradient(160deg, #F6D9DE 0%, #DCE4F5 46%, #BFD3EA 100%);
  display: flex; flex-direction: column; align-items: center; gap: 11px;
}
.mk-home-row { display: flex; justify-content: center; gap: 11px; width: 100%; }
.mk-app { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 40px; }
.mk-home .ic {
  width: 40px; height: 40px; border-radius: 11px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 3px 10px rgba(20,40,80,.22);
}
.mk-home .ic svg { width: 26px; height: 26px; }
.mk-home .lb { font-size: 7.5px; font-weight: 700; color: #14253F; text-align: center; text-shadow: 0 1px 2px rgba(255,255,255,.7); }
.mk-ghost {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255, 255, 255, .45); box-shadow: 0 2px 7px rgba(20, 40, 80, .10);
}

/* barre d'adresse d'ordinateur */
.deskfig { max-width: 620px; margin: 30px auto 6px; }
.desk {
  border-radius: 14px; overflow: hidden; background: #101E33;
  box-shadow: 0 18px 40px rgba(12, 30, 62, .26); padding: 8px 8px 0;
}
.desk-tabs { display: flex; align-items: center; gap: 6px; padding: 0 4px 7px; }
.desk-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28); }
.desk-tab { background: rgba(255,255,255,.14); color: #E8EEF8; font-size: 10px; border-radius: 7px 7px 0 0; padding: 4px 12px; }
.desk-bar { display: flex; align-items: center; gap: 8px; background: #17293F; padding: 7px 10px; }
.desk-url {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.13); color: #E8EEF8; border-radius: 999px; padding: 5px 11px; font-size: 11px;
}
.desk-url .ins { margin-left: auto; }
.desk-page { background: #F4F7FC; color: #14253F; padding: 22px 18px; text-align: center; }
.desk-page b { display: block; font-size: 14px; margin-bottom: 4px; }
.desk-page span { font-size: 11px; color: #6B7C95; }

/* ── extrait de roadbook (tuto Missions) ──
   Un vrai tableau HTML plutôt qu'une image : lisible au lecteur d'écran,
   et il défile horizontalement dans son propre cadre sans jamais faire
   glisser la page entière. */
.rbfig { margin: 26px 0 6px; }
.rb-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.rb { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.9rem; }
.rb th {
  background: var(--panel-2); text-align: left; white-space: nowrap;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800;
  color: var(--muted); padding: 10px 11px; border-bottom: 1px solid var(--line);
}
.rb td { padding: 10px 11px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.rb tbody tr:last-child td { border-bottom: 0; }
.rb .code {
  display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: .78rem;
}
:root[data-theme="dark"] .rb .code { color: #06182F; }
.rb .role { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: .05em; color: var(--muted); margin-top: 3px; }
.rb .sub { display: block; color: var(--muted); font-size: 0.82rem; }
.rb .grp td { background: var(--blue-soft); font-weight: 800; }
.rb tfoot td { background: var(--panel-2); font-weight: 800; }

/* ── grille de cartes (page d'accueil des tutos) ── */
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.tcard {
  display: flex; flex-direction: column; gap: 7px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: inherit; text-decoration: none;
  transition: transform .14s ease, box-shadow .18s ease, border-color .15s ease;
}
.tcard:hover {
  transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none;
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
}
.tcard-ic { width: 50px; height: 50px; border-radius: 15px; background: var(--blue-soft); display: grid; place-items: center; font-size: 25px; margin-bottom: 6px; }
.tcard h3 { margin: 0; font-size: 1.16rem; font-weight: 700; }
.tcard p { margin: 0; color: var(--muted); font-size: 0.99rem; }
.tcard .go { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 0.97rem; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; }
.tcard .go::after { content: "→"; transition: transform .15s ease; }
.tcard:hover .go::after { transform: translateX(4px); }
.tcard .tmeta { font-size: 0.86rem; color: var(--muted); font-weight: 600; }

/* carte mise en avant */
.feature {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 30px; color: inherit; text-decoration: none;
}
.feature:hover { text-decoration: none; border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); }
.feature h2 { margin: 0 0 10px; border-left: 0; padding-left: 0; }
.feature-mini { display: flex; gap: 10px; justify-content: center; }
.feature-mini .phone { width: 74px; aspect-ratio: 9/18.6; border-radius: 13px; padding: 3px; }
.feature-mini .phone::after { display: none; }
.feature-mini .scr { border-radius: 11px; }

/* ── FAQ ── */
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
.faq + .faq { margin-top: 10px; }
.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 700; list-style: none;
  display: flex; align-items: center; gap: 10px; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-weight: 800; color: var(--blue); font-size: 1.25rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 0.99rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ── navigation entre tutos ── */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pager a {
  border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-sm);
  padding: 15px 18px; color: inherit; text-decoration: none; min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pager a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); box-shadow: var(--shadow-sm); }
.pager .dir { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.pager .tt { font-weight: 700; }
.pager .next { text-align: right; }
.pager .empty { visibility: hidden; }

/* ── pied de page ── */
.cta-band {
  margin-top: 30px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; text-align: center;
}
.cta-band h2 { border-left: 0; padding-left: 0; margin: 0 0 8px; font-size: 1.3rem; }
.cta-band p { color: var(--muted); margin: 0 auto 18px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

footer { margin-top: 34px; border-top: 1px solid var(--line-2); }
.foot-in { padding: 24px 0 40px; color: var(--muted); font-size: 0.92rem; display: grid; gap: 7px; text-align: center; }

#toast {
  position: fixed; left: 50%; bottom: 26px; translate: -50% 0;
  max-width: min(460px, calc(100vw - 32px));
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-left: 4px solid var(--blue); border-radius: 12px; box-shadow: var(--shadow);
  padding: 15px 18px; font-size: 1rem; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, translate .25s ease; z-index: 90;
}
#toast.show { opacity: 1; translate: -50% -8px; }
#toast.warning { border-left-color: var(--warn); }
#toast.error { border-left-color: var(--red); }

/* ── responsive ── */
@media (max-width: 880px) {
  body { font-size: 16px; }
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .brand-sub { display: none; }
  .actions .lbl { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 14px; }
  .panel { padding: 20px 18px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .pager .empty { display: none; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1.02rem; }
  .actions .hide-sm { display: none; }
  .steps > li { padding-left: 44px; }
  .steps > li::before { width: 30px; height: 30px; border-radius: 10px; font-size: .94rem; }
  .steps > li::after { left: 14.5px; top: 36px; }
  .pfig { width: min(232px, 74vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

@media print {
  .topbar, .pager, .cta-band, #toast, .actions { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .panel { box-shadow: none; break-inside: avoid; }
  /* À l'impression on veut les trois appareils, pas seulement l'onglet ouvert.
     Deux attributs battent le `[hidden]` global, tous deux en !important. */
  [data-ospanel][hidden] { display: block !important; }
  .osbar { display: none !important; }
}
