/* ============================================================
   MUNKY — DESIGN SYSTEM V5
   90 % noir / gris / blanc · 10 % violet (#A78BFA) réservé aux accents et à Premium.
   Le checker a sa propre copie figée (css/checker.css) : rien ici ne le modifie.
   ============================================================ */
/* Polices chargées par <link> dans chaque page (évite la chaîne CSS → @import) */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Fonds */
  --bg: #0b0b12;
  --bg-2: #100f18;
  --surface: rgba(24, 22, 38, 0.62);
  --surface-solid: #181626;
  --surface-2: #1c1a2b;
  --surface-3: #222033;
  --elevated: #211d32;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.18);

  /* Texte */
  --text: #f5f3ff;
  --text-dim: #a6a1b8;
  --text-dimmer: rgba(166, 161, 184, 0.74);
  --text-faint: rgba(166, 161, 184, 0.5);
  --white: #f5f3ff;
  --ink: #0b0b12;

  /* Accent violet (10 %) */
  --accent: #a78bfa;
  --accent-hover: #bda7ff;
  --accent-2: #c4b5fd;
  --accent-deep: #7c3aed;
  --accent-ink: #140e26;
  --accent-soft: rgba(167, 139, 250, 0.12);
  --accent-line: rgba(167, 139, 250, 0.32);
  --accent-grad: linear-gradient(180deg, #bba6ff 0%, #a78bfa 55%, #977af3 100%);

  /* Premium (noms historiques --gold conservés pour les pages existantes) */
  --gold: #ddd6fe;
  --gold-2: #ffffff;
  --gold-deep: #8f88a8;
  --gold-soft: rgba(196, 181, 253, 0.08);
  --gold-line: rgba(196, 181, 253, 0.26);
  --gold-grad: linear-gradient(180deg, #cbbcff 0%, #a78bfa 100%);

  /* Sémantique */
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --yellow: #fbbf24;
  --orange: #fb923c;
  --blue: #a78bfa;
  --blue-hover: #bda7ff;
  --purple: #c4b5fd;

  /* Formes & mouvement */
  --r-sm: 10px;
  --r: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-full: 999px;
  --h-sm: 34px;
  --h: 42px;
  --h-lg: 52px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.15s ease;
  --t: 0.22s var(--ease);
  --focus: 0 0 0 3px rgba(167, 139, 250, 0.45);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -14px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 32px 80px -24px rgba(0, 0, 0, 0.9);

  --font: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

html { color-scheme: dark; scroll-behavior: smooth; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
/* Rien ne doit élargir la page sur téléphone (sinon le navigateur dézoome et la barre du bas sort de l'écran) */
html, body { overflow-x: clip; }
html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
}

/* Fond : noir profond, une lueur violette discrète en haut, grain très léger. Statique (aucun coût). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .03 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(900px 460px at 50% -160px, rgba(167, 139, 250, 0.13), transparent 70%),
    radial-gradient(700px 420px at 100% -80px, rgba(255, 255, 255, 0.035), transparent 70%),
    var(--bg);
}
/* Trame de points très fine, visible seulement en haut de page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 45% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 45% at 50% 0%, #000 20%, transparent 100%);
}

::selection { background: rgba(167, 139, 250, 0.35); color: #fff; }
a { color: inherit; }
img, svg { flex-shrink: 0; }

/* === LAYOUT === */
.app-content { max-width: 1240px; margin: 0 auto; padding: 28px 32px 96px; position: relative; z-index: 1; }
.app-content-narrow { max-width: 820px; margin: 0 auto; padding: 28px 32px 96px; position: relative; z-index: 1; }
@media (max-width: 768px) {
  .app-content, .app-content-narrow { padding: 18px 16px 120px; }
}

/* === RETOUR === */
.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 14px 0 11px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  color: var(--text-dim); font-size: 12px; font-weight: 600;
  text-decoration: none; margin-bottom: 24px;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.back-btn svg { transition: transform var(--t); }
.back-btn:hover { color: #fff; border-color: var(--line-3); background: rgba(255, 255, 255, 0.04); }
.back-btn:hover svg { transform: translateX(-2px); }

/* === SURFACES === */
.glass-card, .panel {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 50%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 50px -34px rgba(0, 0, 0, 0.95);
}
.glass-card { overflow: hidden; transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.glass-card:hover, a.panel:hover {
  border-color: var(--line-3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -30px rgba(167, 139, 250, 0.28);
}
.surface-elevated { background: var(--elevated); border: 1px solid var(--line-2); border-radius: var(--r-md); }

/* === BOUTONS ===
   .btn-primary : blanc (action principale) · .btn-gold : violet (Premium / Upgrade) · .btn-ghost : contour
   .btn-lg + <span class="arr"> : grand bouton avec flèche dans un rond · .is-loading : spinner */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 20px; border-radius: var(--r-full); border: 1px solid transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none; isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform .2s var(--ease), box-shadow .25s ease, opacity var(--t-fast);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.97); transition-duration: .08s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn-primary {
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 0 #fff inset, 0 8px 22px -12px rgba(255, 255, 255, 0.45);
}
.btn-primary:hover:not(:disabled) { background: #fff; box-shadow: 0 1px 0 #fff inset, 0 0 0 4px rgba(167, 139, 250, 0.16), 0 14px 30px -12px rgba(167, 139, 250, 0.55); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); border-color: var(--line-3); }
.btn-danger { background: var(--red-soft); color: #fca5a5; border-color: rgba(248, 113, 113, 0.28); }
.btn-danger:hover:not(:disabled) { background: rgba(248, 113, 113, 0.2); border-color: rgba(248, 113, 113, 0.45); }
/* Premium / Upgrade : le violet, avec un reflet qui traverse une seule fois au survol */
.btn-gold, .btn-accent {
  background: var(--accent-grad); color: var(--accent-ink); font-weight: 650; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 26px -12px rgba(167, 139, 250, 0.85);
}
.btn-gold::after, .btn-accent::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg);
}
.btn-gold:hover:not(:disabled), .btn-accent:hover:not(:disabled) { background: linear-gradient(180deg, #cdbdff, var(--accent-hover)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 0 0 4px rgba(167, 139, 250, 0.16), 0 16px 34px -12px rgba(167, 139, 250, 1); }
.btn-gold:hover:not(:disabled)::after, .btn-accent:hover:not(:disabled)::after { animation: shine .9s var(--ease) 1; }
.btn-sm { min-height: var(--h-sm); padding: 0 14px; font-size: 12.5px; }
.btn-lg { min-height: var(--h-lg); padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
/* Flèche dans un rond (grands boutons d'appel à l'action) */
.btn .arr { width: 30px; height: 30px; margin-right: -14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; transition: transform .3s var(--ease); }
.btn-ghost .arr { background: rgba(255, 255, 255, 0.1); }
.btn-gold .arr { background: rgba(20, 14, 38, 0.9); color: var(--accent-2); }
.btn .arr svg { width: 14px; height: 14px; }
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn-sm .arr { width: 22px; height: 22px; margin-right: -8px; }

/* Spinner : <button class="btn btn-primary is-loading"> */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; z-index: 1;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff;
  animation: mkSpin .7s linear infinite;
}
.btn-primary.is-loading::before, .btn-gold.is-loading::before { border-color: rgba(11, 11, 18, 0.2); border-top-color: var(--ink); }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: var(--accent); animation: mkSpin .7s linear infinite; vertical-align: middle; }
@keyframes mkSpin { to { transform: rotate(360deg); } }
@keyframes shine { 0% { left: -60%; } 100% { left: 130%; } }

/* === BADGES === */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
}
.badge-green { background: var(--green-soft); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.28); }
.badge-red { background: var(--red-soft); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.26); }
.badge-orange { background: rgba(251, 191, 36, 0.1); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.26); }
.badge-blue { background: var(--accent-soft); color: var(--accent-2); border: 1px solid var(--accent-line); }
.badge-gold { background: var(--gold-soft); color: #fff; border: 1px solid var(--gold-line); }

/* Texte en dégradé : argent (text-gold) et violet discret (text-accent) */
.text-gold { background: linear-gradient(180deg, #ffffff 30%, #cfc7ea); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-accent { background: linear-gradient(120deg, #f5f3ff 0%, #c4b5fd 55%, #a78bfa 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-dim-grad { background: linear-gradient(180deg, rgba(245, 243, 255, 0.92), rgba(245, 243, 255, 0.45)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* === CHAMPS === */
.input, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="url"], input[type="search"], textarea, select {
  width: 100%;
  min-height: var(--h);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--r);
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
textarea { min-height: 0; }
.input:hover, input:hover, textarea:hover, select:hover { border-color: var(--line-3); }
.input:focus, input:focus, textarea:focus, select:focus {
  border-color: rgba(167, 139, 250, 0.55);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}
input::placeholder, textarea::placeholder { color: rgba(166, 161, 184, 0.45); }
textarea { font-family: var(--mono); font-size: 12.5px; resize: vertical; line-height: 1.6; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a6a1b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
select option { background: var(--surface-solid); color: var(--text); }
input[type="range"], input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); min-height: 0; }
.is-invalid, input.is-invalid, textarea.is-invalid { border-color: rgba(248, 113, 113, 0.55) !important; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1) !important; }
.field-error { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: #fca5a5; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }

/* === TOOLTIP : <span data-tip="Texte court"> === */
[data-tip] { position: relative; }
[data-tip]::after, [data-tip]::before { position: absolute; left: 50%; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .12s ease, transform .12s ease; }
[data-tip]::after {
  content: attr(data-tip); bottom: calc(100% + 9px); transform: translate(-50%, 4px); white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 500; letter-spacing: 0; line-height: 1.3; font-family: var(--font);
  color: var(--ink); background: var(--white); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
}
[data-tip]::before { content: ''; bottom: calc(100% + 4px); width: 8px; height: 8px; margin-left: -4px; background: var(--white); transform: translateY(4px) rotate(45deg); }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
[data-tip]:hover::before, [data-tip]:focus-visible::before { opacity: 1; transform: translateY(0) rotate(45deg); }

/* === MENU FLOTTANT générique (.mk-menu) === */
.mk-menu {
  min-width: 200px; padding: 6px; border-radius: 14px;
  background: rgba(24, 22, 38, 0.96);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: mkMenuIn .16s var(--ease) both;
}
.mk-menu > * { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 9px; border: none; background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; text-decoration: none; }
.mk-menu > *:hover { background: rgba(255, 255, 255, 0.06); }
.mk-menu > .on { background: rgba(255, 255, 255, 0.08); color: #fff; }
@keyframes mkMenuIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* === BARRES DE DÉFILEMENT === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.45); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }

/* === UTILITAIRES === */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.text-dim { color: var(--text-dim); }
.text-dimmer { color: var(--text-dimmer); }
.text-center { text-align: center; }
.mono { font-family: var(--mono); }

/* === TYPOGRAPHIE === */
/* Petit libellé monospace avec un trait violet (au lieu d'une pastille) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dimmer);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; flex-shrink: 0; background: var(--accent); }
.page-title {
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 680; letter-spacing: -0.05em; line-height: 1.02; margin-bottom: 10px;
  background: linear-gradient(180deg, #fff 40%, rgba(245, 243, 255, 0.66)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-subtitle { font-size: 15px; color: var(--text-dim); max-width: 580px; line-height: 1.6; }
.section-title { font-size: 18px; font-weight: 650; letter-spacing: -0.025em; color: var(--text); margin-bottom: 16px; }
.mk-divider { height: 1px; margin: 56px auto; max-width: 720px; background: linear-gradient(90deg, transparent, var(--line-3), transparent); }

/* === ÉTAT VIDE === */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 20px; color: var(--text-dim); }
.empty-state .es-ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); margin-bottom: 6px; }
.empty-state .es-ic svg { width: 24px; height: 24px; }
.empty-state b { color: var(--text); font-size: 15px; font-weight: 650; }

/* === UPSELL PREMIUM (réutilisable) === */
.upsell {
  position: relative;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: radial-gradient(420px 160px at 0% 0%, rgba(167, 139, 250, 0.1), transparent 70%), var(--surface);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.upsell::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--accent); }
.upsell-icon {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-2); border: 1px solid var(--accent-line);
}
.upsell-icon svg { width: 22px; height: 22px; }
.upsell-body { flex: 1; min-width: 200px; }
.upsell-title { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; color: #fff; }
.upsell-text { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

/* Anciennes topbars intégrées aux pages : remplacées par la nav globale */
.app-topbar { display: none !important; }

/* ============================================================
   MOUVEMENT — léger, toujours coupé si « réduire les animations »
   ============================================================ */
@keyframes mkEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.app-content > *, .app-content-narrow > * { animation: mkEnter .6s var(--ease) both; }
.app-content > *:nth-child(2), .app-content-narrow > *:nth-child(2) { animation-delay: .04s; }
.app-content > *:nth-child(3), .app-content-narrow > *:nth-child(3) { animation-delay: .08s; }
.app-content > *:nth-child(4), .app-content-narrow > *:nth-child(4) { animation-delay: .12s; }
.app-content > *:nth-child(n+5), .app-content-narrow > *:nth-child(n+5) { animation-delay: .16s; }

/* Apparition au scroll (classe posée par mobile-bubble.js) */
.mk-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mk-reveal.mk-in { opacity: 1; transform: none; }

/* Lueur qui suit la souris sur les surfaces (souris uniquement) */
.mk-spot { --mx: 50%; --my: 50%; }
.mk-spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.045), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.mk-spot:hover::after { opacity: 1; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn:focus-visible { outline: none; }

/* Skeleton de chargement */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.085), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: mkShimmer 1.4s linear infinite; border-radius: 8px; color: transparent !important; }
@keyframes mkShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mk-reveal { opacity: 1; transform: none; }
}

/* Transition douce entre les pages du site (navigateurs récents ; les autres changent de page normalement).
   La barre de navigation (view-transition-name: mk-nav) reste en place pendant le fondu. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: mkVtOut .14s ease both; }
  ::view-transition-new(root) { animation: mkVtIn .26s var(--ease) both; }
}
@keyframes mkVtOut { to { opacity: 0; } }
@keyframes mkVtIn { from { opacity: 0; } }

/* ============================================================
   BANNIÈRES DE PROFIL (Premium) — presets + image perso
   ============================================================ */
.mk-bn { position: absolute; inset: 0; overflow: hidden; background-color: #13121e; background-size: cover; background-position: center; pointer-events: none; }
.mk-bn[data-p] { background-size: 140% 140%; background-position: 30% 30%; } /* statique : une dérive animée redessinait chaque bannière à chaque image */
.mk-bn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 11, 18, 0.55)); }
.mk-bn[data-p="aurora"] { background-image: radial-gradient(45% 90% at 15% 15%, rgba(52,211,153,0.75), transparent 70%), radial-gradient(40% 80% at 60% 0%, rgba(139,123,255,0.8), transparent 70%), radial-gradient(35% 80% at 92% 80%, rgba(56,189,248,0.6), transparent 70%), linear-gradient(135deg, #04201c, #100c26 60%, #05161f); }
.mk-bn[data-p="galaxy"] { background-image: radial-gradient(1.5px 1.5px at 12% 30%, #fff, transparent), radial-gradient(1px 1px at 28% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 46% 20%, #fff, transparent), radial-gradient(1px 1px at 64% 58%, #fff, transparent), radial-gradient(1.5px 1.5px at 82% 26%, #fff, transparent), radial-gradient(1px 1px at 90% 75%, #fff, transparent), radial-gradient(40% 90% at 30% 40%, rgba(168,85,247,0.7), transparent 70%), radial-gradient(35% 80% at 75% 60%, rgba(236,72,153,0.55), transparent 70%), linear-gradient(135deg, #0b0620, #1a0b2e 55%, #060612); }
.mk-bn[data-p="gold"] { background-image: radial-gradient(45% 100% at 20% 10%, rgba(255,230,166,0.85), transparent 70%), radial-gradient(40% 90% at 85% 70%, rgba(217,164,65,0.7), transparent 70%), linear-gradient(120deg, transparent 35%, rgba(255,241,196,0.18) 50%, transparent 65%), linear-gradient(135deg, #3a2608, #1a1205 60%, #0e0a04); }
.mk-bn[data-p="neon"] { background-image: radial-gradient(40% 90% at 15% 30%, rgba(236,72,153,0.8), transparent 70%), radial-gradient(40% 90% at 85% 60%, rgba(34,211,238,0.75), transparent 70%), repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 40px), linear-gradient(135deg, #12041f, #050b1d); }
.mk-bn[data-p="sunset"] { background-image: radial-gradient(50% 100% at 25% 100%, rgba(251,146,60,0.9), transparent 70%), radial-gradient(45% 90% at 70% 60%, rgba(236,72,153,0.7), transparent 70%), radial-gradient(50% 80% at 90% 0%, rgba(139,92,246,0.7), transparent 70%), linear-gradient(180deg, #1d0b2e, #3a0f22); }
.mk-bn[data-p="ocean"] { background-image: radial-gradient(45% 90% at 20% 20%, rgba(56,189,248,0.75), transparent 70%), radial-gradient(45% 90% at 80% 80%, rgba(37,99,235,0.75), transparent 70%), radial-gradient(30% 60% at 55% 40%, rgba(45,212,191,0.45), transparent 70%), linear-gradient(135deg, #031426, #06102a); }
.mk-bn[data-p="ember"] { background-image: radial-gradient(45% 100% at 20% 100%, rgba(239,68,68,0.85), transparent 70%), radial-gradient(40% 80% at 70% 90%, rgba(251,146,60,0.75), transparent 70%), radial-gradient(1.5px 1.5px at 30% 30%, #fdba74, transparent), radial-gradient(1.5px 1.5px at 60% 20%, #fdba74, transparent), radial-gradient(1px 1px at 85% 40%, #fdba74, transparent), linear-gradient(180deg, #0f0606, #2a0a06); }
.mk-bn[data-p="mint"] { background-image: radial-gradient(45% 100% at 25% 20%, rgba(110,231,183,0.75), transparent 70%), radial-gradient(40% 90% at 80% 75%, rgba(20,184,166,0.65), transparent 70%), linear-gradient(135deg, #04201a, #061512); }
.mk-bn[data-p="sakura"] { background-image: radial-gradient(45% 100% at 20% 25%, rgba(251,207,232,0.75), transparent 70%), radial-gradient(40% 90% at 80% 70%, rgba(244,114,182,0.7), transparent 70%), radial-gradient(30% 60% at 55% 0%, rgba(196,181,253,0.5), transparent 70%), linear-gradient(135deg, #2a0e1f, #160a1c); }
.mk-bn[data-p="void"] { background-image: radial-gradient(50% 120% at 50% 120%, rgba(139,123,255,0.65), transparent 70%), repeating-linear-gradient(0deg, rgba(139,123,255,0.12) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(139,123,255,0.12) 0 1px, transparent 1px 28px), linear-gradient(180deg, #030306, #0b0820); }
/* Bandeau en haut d'une carte : fondu vers le panneau pour que le pseudo reste lisible */
.mk-bn.fade::after { background: linear-gradient(180deg, transparent 35%, rgba(24, 22, 38, 0.75) 80%, #181626); }
