/* MultiValue+ — section « Combien valent tes réseaux ? » de la home
   (#multivalue) et ses surcouches (feuille à panneaux, toast).

   Gabarits : templates/home/_multivalue.html (section, sous .zh-page) et
   templates/home/_multivalue_modals.html (racine .zmv-layer, HORS de
   .zh-page). Le CONTRAT D'ÉTATS en tête de ces deux gabarits fait foi : ce
   fichier ne stylise que les états qui y sont listés (data-state, data-status,
   data-kind, data-panel, data-valued, aria-checked, aria-disabled, aria-busy,
   aria-invalid, disabled, hidden, --zmv-fill, --zmv-c).

   Tout est préfixé .zmv-. Consommateurs (même tag sur chacun) :
   home/home.html et wallstreet/home.html (section dans la page, DÉPLACÉE dans
   la popup du « + » le temps de l'ouverture), ticket/home.html,
   multipost/home.html, multishop/home.html et public/artist_public_stub.html
   (profils créateurs ; section rendue dans la popup seulement). La popup
   (coquille .zmvp, z-index 1450) vit dans landing-multivalue-popup.css et sa
   variante sombre des profils dans landing-multivalue-pp-theme.css : AUCUNE
   règle .zmvp ici. L'attribut `hidden` doit toujours gagner sur un `display`
   posé ici. Rien au-dessus de z-index 3 dans la section (footer fixe 90, FAB
   chat 100) ; popup 1450 < feuille 1500 < toast 1600 (sous la modale
   d'authentification, 9999, et la modale légale).
   Points de rupture : 900 px (grille en 1 colonne), 768 px (padding imposé
   par la home, cibles tactiles), 600 px (feuille en bas d'écran), 430 px
   (cartes compactes). Tout :hover vit sous @media (hover: hover).

   Satellite .zmv-part (carte « pote » rendue hors de la section, zmv_part
   « friend » du gabarit) : mêmes jetons, même garde [hidden], même focus et
   même mouvement réduit que la section ; variante héro (« main ») : en-tête
   masqué visuellement par .zmv-head--sr.

   Maquette : « ZIC Landing Page v4.html », MultiValueSection (l.2513-2680).
   Écarts voulus : curseurs stylés (portage de .mv-how-range de l'admin),
   cibles tactiles de 44 px, champs à 16 px sur mobile, montant dimensionné
   sur la largeur de sa carte (longs montants en FCFA). */

/* ─── Tokens ─────────────────────────────────────────────────────────────── */

.zmv,
.zmv-part,
.zmv-layer {
  --zmv-green: #16a34a;
  --zmv-green-dark: #15803d;
  --zmv-green-deep: #0f7a38;
  --zmv-red: #e11d48;
  --zmv-amber: #b45309;
  --zmv-danger: #b91c1c;
  /* Texte / muted : tokens de la home ; ligne : token v4 de #paiements. */
  --zmv-ink: var(--zh-text, #1a0a3d);
  --zmv-muted: var(--zh-muted, #6b54a8);
  --zmv-line: #e7e2f5;
  --zmv-soft: #fafafc;
  --zmv-track: #e6e2f1;
  --zmv-off: #b9b4cc;
  --zmv-display: "Space Grotesk", sans-serif;
  --zmv-body: "DM Sans", sans-serif;
  --zmv-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Couleur de marque du réseau : posée en style par le gabarit (chips,
     lignes de liste, lignes du barème) ; vert MultiValue+ par défaut. */
  --zmv-c: var(--zmv-green);
}

/* `hidden` gagne TOUJOURS (piège du dépôt : un display posé plus bas
   l'écraserait) : tout le contrat d'états repose sur cet attribut. */
.zmv [hidden],
.zmv-part [hidden],
.zmv-layer [hidden] {
  display: none !important;
}

/* Texte réservé aux lecteurs d'écran (légende du tableau, label « pote »). */
.zmv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes zmv-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes zmv-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@keyframes zmv-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@keyframes zmv-unveil {
  to {
    opacity: 1;
  }
}
@keyframes zmv-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes zmv-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes zmv-rise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

/* ─── Coque de la section (v4 l.2513-2515) ───────────────────────────────── */

.zmv {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 96px 36px;
  background: linear-gradient(165deg, #f6fbf7 0%, #eff6f1 45%, #f4f1fc 100%);
  color: var(--zmv-ink);
  font-family: var(--zmv-body);
  scroll-margin-top: 62px; /* nav fixe de la home */
}
.zmv-orb {
  position: absolute;
  top: -140px;
  right: -120px;
  z-index: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.14), transparent 70%);
  pointer-events: none;
}
.zmv-in {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.zmv-ic {
  display: block;
  flex-shrink: 0;
}

/* ─── En-tête (v4 l.2516-2524) ───────────────────────────────────────────── */

.zmv-head {
  text-align: center;
  margin-bottom: 46px;
}
/* La pastille ronde vient de .zh-chip-ic (landing-home.css, macro icon_badge). */
.zmv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px 5px 6px;
  border-radius: 100px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.32);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--zmv-green-dark);
}
/* ≤ 768 px, la home impose la taille des h2 de section (clamp 24-32 px). */
.zmv-title {
  margin-top: 20px;
  font-family: var(--zmv-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -1.8px;
  line-height: 1.06;
  color: var(--zmv-ink);
}
.zmv-sub {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--zmv-muted);
}
/* Variante héro (zmv_part « main ») : en-tête réservé aux lecteurs d'écran.
   Le h2 reste dans l'arbre (cible du focus au retour de connexion) ; double
   classe pour passer devant les marges de .zmv-head des points de rupture. */
.zmv-head.zmv-head--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ─── Bandeaux (état de /me, retour de connexion) ────────────────────────── */

.zmv-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 11px 14px 11px 16px;
  border: 1px solid var(--zmv-line);
  border-radius: 14px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--zmv-ink);
}
.zmv-banner[data-kind="info"] {
  background: #f3f0ff;
  border-color: #d9cffb;
  color: #3b1d8a;
}
.zmv-banner[data-kind="warn"] {
  background: #fffbeb;
  border-color: #fcd98a;
  color: #7c2d12;
}
.zmv-banner[data-kind="success"] {
  background: #ecfdf3;
  border-color: #a7e3bd;
  color: #14532d;
}
/* Bandeau de compte : accroche à gauche, il reste jusqu'à sa fermeture. */
.zmv-banner--account {
  border-left-width: 4px;
}
.zmv-banner--account[data-kind="success"] {
  border-left-color: var(--zmv-green);
}
.zmv-banner-text {
  flex: 1 1 220px;
  min-width: 0;
  font-weight: 600;
}
.zmv-banner-btn,
.zmv-banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 14px;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  background: transparent;
  color: inherit;
  font-family: var(--zmv-body);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.zmv-banner-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* ─── Grille principale (v4 l.2526) ──────────────────────────────────────── */

.zmv-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 420px);
  gap: 26px;
  align-items: start;
}
/* min-width: 0 : un enfant de grille ne s'élargit jamais au-delà de sa piste
   (tableau du barème, longs montants). */
.zmv-grid > * {
  min-width: 0;
}
.zmv-card {
  padding: 26px 28px;
  border: 1px solid var(--zmv-line);
  border-radius: 20px;
  background: #fff;
}
.zmv-card--sim {
  box-shadow: 0 18px 44px -30px rgba(31, 19, 64, 0.28);
}
.zmv-label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--zmv-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--zmv-muted);
}
.zmv-help {
  font-size: 12px;
  line-height: 1.5;
  color: var(--zmv-muted);
}

/* ─── Chips réseau (role=radio ; v4 l.2530-2539 et 2616-2626) ────────────── */

.zmv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zmv-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--zmv-line);
  border-radius: 100px;
  background: #fff;
  color: var(--zmv-muted);
  font-family: var(--zmv-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.zmv-chip-txt {
  white-space: nowrap;
}
/* Chip coché : fond et bordure à la couleur du réseau (TikTok : #111). */
.zmv-chip[aria-checked="true"] {
  border-color: var(--zmv-c);
  background: var(--zmv-c);
  color: #fff;
}
/* « Tout » (mode connecté) : vert MultiValue+, pas de couleur de réseau. */
.zmv-chip--all {
  --zmv-c: var(--zmv-green-dark);
  font-weight: 700;
}
/* Réseau non valorisé : grisé, non sélectionnable (le JS ignore le clic). */
.zmv-chip[aria-disabled="true"] {
  border-style: dashed;
  background: #f6f5fa;
  color: var(--zmv-off);
  cursor: not-allowed;
}
.zmv-chip--sm {
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--zmv-ink);
}
.zmv-chips-note {
  margin-top: 8px;
}
/* Aides sous les curseurs (« Valeurs lues… », « Publie au moins… ») : la zone
   tactile du curseur laisse déjà 19 px sous sa piste. */
.zmv-field ~ .zmv-help {
  margin: -6px 0 14px;
}

/* ─── Curseurs (portage de .mv-how-range, admin-multivalue-method.css) ───── */

.zmv-field {
  margin-top: 6px;
}
/* Premier curseur : la légende des chips (souvent masquée) le précède. */
.zmv-chips-note + .zmv-field {
  margin-top: 24px;
}
.zmv-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.zmv-field-head .zmv-label {
  margin-bottom: 0;
}
.zmv-out {
  min-width: 0;
  font-family: var(--zmv-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--zmv-ink);
}
/* Piste fine de 6 px, poignée de 24 px, zone tactile de 44 px (hauteur de
   l'input). Le remplissage suit --zmv-fill (posée en style par le gabarit
   puis par le JS) ; Firefox le fait seul avec ::-moz-range-progress. La
   poignée fait exactement 24 px de large : la fin du remplissage tombe
   toujours dessous, même aux extrémités. */
.zmv-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.zmv-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--zmv-green) var(--zmv-fill, 0%),
    var(--zmv-track) var(--zmv-fill, 0%)
  );
}
.zmv-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--zmv-green);
  box-shadow: 0 2px 8px rgba(15, 122, 56, 0.45);
}
.zmv-range::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: var(--zmv-track);
}
.zmv-range::-moz-range-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--zmv-green);
}
.zmv-range::-moz-range-thumb {
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--zmv-green);
  box-shadow: 0 2px 8px rgba(15, 122, 56, 0.45);
}
.zmv-range:focus {
  outline: none;
}
.zmv-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--zmv-ink);
}
.zmv-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--zmv-ink);
}
/* Désactivé : plus de curseur de saisie, piste et poignée neutres. opacity :
   WebKit iOS rend tout input:disabled à 40 % ; sans cette remise à 1, les
   jauges vertes du mode connecté seraient plus pâles que le simulateur éteint. */
.zmv-range:disabled {
  opacity: 1;
  cursor: default;
  touch-action: auto;
}
.zmv-range:disabled::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    var(--zmv-off) var(--zmv-fill, 0%),
    var(--zmv-track) var(--zmv-fill, 0%)
  );
}
.zmv-range:disabled::-webkit-slider-thumb {
  background: var(--zmv-off);
  box-shadow: none;
}
.zmv-range:disabled::-moz-range-progress {
  background: var(--zmv-off);
}
.zmv-range:disabled::-moz-range-thumb {
  background: var(--zmv-off);
  box-shadow: none;
}
/* Simulateur éteint (invité sans barème, erreur de /me) : franchement atténué. */
.zmv[data-state="guest"] .zmv-range:disabled,
.zmv[data-state="error"] .zmv-range:disabled {
  opacity: 0.55;
}
/* Connecté : simples jauges vertes lues sur les comptes (le texte fait foi),
   poignée réduite à un repère. */
.zmv[data-state="loading"] .zmv-range:disabled::-webkit-slider-runnable-track,
.zmv[data-state="real"] .zmv-range:disabled::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    var(--zmv-green) var(--zmv-fill, 0%),
    var(--zmv-track) var(--zmv-fill, 0%)
  );
}
.zmv[data-state="loading"] .zmv-range:disabled::-webkit-slider-thumb,
.zmv[data-state="real"] .zmv-range:disabled::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border-width: 2px;
  background: var(--zmv-green);
}
.zmv[data-state="loading"] .zmv-range:disabled::-moz-range-progress,
.zmv[data-state="real"] .zmv-range:disabled::-moz-range-progress {
  background: var(--zmv-green);
}
.zmv[data-state="loading"] .zmv-range:disabled::-moz-range-thumb,
.zmv[data-state="real"] .zmv-range:disabled::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-width: 2px;
  background: var(--zmv-green);
}

/* ─── Carte de valeur (v4 l.2553-2566) ───────────────────────────────────── */

/* container-type : le montant se dimensionne sur la largeur de la carte
   (unité cqi), pas sur celle de la fenêtre. */
.zmv-value {
  container-type: inline-size;
  margin-top: 8px;
  padding: 22px;
  border: 1px solid rgba(22, 163, 74, 0.5);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--zmv-green), var(--zmv-green-deep));
  color: #fff;
  text-align: center;
  transition: opacity 0.25s ease;
}
.zmv-value-label {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.zmv-value-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
}
/* 2ᵉ font-size : 12,4cqi laisse tenir un montant à 8 chiffres en FCFA
   (« 15 114 240 FCFA ») sur une ligne ; au-delà, overflow-wrap coupe plutôt
   que de déborder. 1ʳᵉ font-size : repli SEUL actif sans unité cqi (iOS ≤ 15),
   calé sur la fenêtre pour le même montant — 28 px à 320 px (carte de
   224 px), 36 px au plus (colonne de 279 px entre 901 et 1024 px). Le montant
   ne contient que des insécables : trop grand, il serait coupé en plein
   nombre. */
.zmv-amount {
  max-width: 100%;
  font-family: var(--zmv-display);
  font-weight: 700;
  font-size: clamp(28px, 8.4vw, 36px);
  font-size: clamp(28px, 12.4cqi, 62px);
  letter-spacing: -0.042em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  color: #fff;
}
.zmv-unit {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.zmv-value-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.zmv-monthly,
.zmv-badge {
  padding: 5px 13px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.zmv-formula {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--zmv-mono);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  color: #fff;
}
/* /me en cours : le montant respire ; /me en erreur : carte neutralisée. */
.zmv[data-state="loading"] .zmv-amount {
  animation: zmv-pulse 1.3s ease-in-out infinite;
}
.zmv[data-state="real"] .zmv-value {
  box-shadow: 0 16px 34px -22px rgba(15, 122, 56, 0.9);
}
.zmv[data-state="error"] .zmv-value {
  border-color: #cfcadf;
  background: linear-gradient(150deg, #7b7594, #57516f);
}
/* Anti-flash d'un connecté, BORNÉ : tant que le script n'a pas posé
   data-ready, la carte (qui porte encore le montant simulé du SSR) est
   atténuée ; l'animation la rend de toute façon au bout de 4 s, même si le
   script ne démarre jamais. */
.zmv[data-auth="1"]:not([data-ready]) .zmv-value {
  opacity: 0.3;
  animation: zmv-unveil 0.3s ease 4s forwards;
}

/* ─── « Connecte tes réseaux » (v4 l.2568-2589) ──────────────────────────── */

.zmv-connect {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--zmv-line);
  border-radius: 14px;
  background: var(--zmv-soft);
}
.zmv-connect-title {
  font-family: var(--zmv-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zmv-ink);
}
.zmv-connect-sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--zmv-muted);
}
.zmv-nets {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
  list-style: none;
}
.zmv-net {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--zmv-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.18s ease;
}
.zmv-net-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--zmv-c);
  color: #fff;
}
.zmv-net-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.zmv-net-name {
  overflow: hidden;
  font-family: var(--zmv-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--zmv-ink);
}
.zmv-net-desc,
.zmv-net-meta {
  font-size: 11.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: var(--zmv-muted);
}
.zmv-net-meta {
  font-weight: 700;
  color: var(--zmv-green-dark);
}
.zmv-net-unlock {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--zmv-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Bouton de ligne : pilule bordée à la couleur du réseau (v4 l.2581). */
.zmv-net-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  min-height: 32px;
  padding: 7px 13px;
  border: 1.5px solid var(--zmv-line);
  border-radius: 99px;
  background: #fff;
  color: var(--zmv-ink);
  font-family: var(--zmv-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
/* « Connecter » */
.zmv-net[data-status="not_connected"] .zmv-net-btn {
  border-color: var(--zmv-c);
  color: var(--zmv-c);
}
/* « ✓ Connecté » : plein vert, ligne bordée à la couleur du réseau. */
.zmv-net[data-status="connected"],
.zmv-net[data-status="computing"] {
  border-color: var(--zmv-c);
}
.zmv-net[data-status="estimated"] {
  border-color: rgba(22, 163, 74, 0.45);
}
.zmv-net[data-status="connected"] .zmv-net-btn,
.zmv-net[data-status="estimated"] .zmv-net-btn {
  border-color: var(--zmv-green-dark);
  background: var(--zmv-green-dark);
  color: #fff;
  cursor: default;
}
.zmv-net[data-status="estimated"] .zmv-net-meta {
  color: var(--zmv-muted);
}
/* « Connecté · calcul en cours » : bouton en retrait, point animé. */
.zmv-net[data-status="computing"] .zmv-net-btn {
  border-color: transparent;
  background: rgba(22, 163, 74, 0.12);
  color: var(--zmv-green-dark);
  cursor: default;
}
.zmv-net[data-status="computing"] .zmv-net-meta::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
  animation: zmv-pulse 1.1s ease-in-out infinite;
}
/* « Terminer » (sélection de Page à finir) et « Reconnecter » : ambre. */
.zmv-net[data-status="pending"],
.zmv-net[data-status="revoked"] {
  border-color: #f2c66d;
  background: #fffdf6;
}
.zmv-net[data-status="pending"] .zmv-net-meta,
.zmv-net[data-status="revoked"] .zmv-net-meta {
  color: var(--zmv-amber);
}
.zmv-net[data-status="pending"] .zmv-net-btn {
  border-color: var(--zmv-amber);
  background: var(--zmv-amber);
  color: #fff;
}
.zmv-net[data-status="revoked"] .zmv-net-btn {
  border-color: var(--zmv-amber);
  background: #fff;
  color: var(--zmv-amber);
}
/* Connecté mais pas encore valorisé (hors du filtre) : ligne en retrait. */
.zmv-net[data-status="not_valued"] {
  background: var(--zmv-soft);
}
.zmv-net[data-status="not_valued"] .zmv-net-ico {
  background: var(--zmv-off);
}
.zmv-net[data-status="not_valued"] .zmv-net-name,
.zmv-net[data-status="not_valued"] .zmv-net-meta {
  color: var(--zmv-muted);
}
.zmv-net[data-status="not_valued"] .zmv-net-btn {
  border-color: var(--zmv-line);
  background: #f6f5fa;
  color: var(--zmv-muted);
  cursor: default;
}

/* Mention D2 (invité), discrète. MASQUÉE dès le SSR pour un connecté. */
.zmv-consent {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--zmv-muted);
}
.zmv[data-auth="1"] .zmv-consent {
  display: none;
}
.zmv-consent-login {
  display: block;
  margin-top: 2px;
}
.zmv-legal {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Lien d'action (bouton ou ancre) dans un texte. */
.zmv-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--zmv-green-dark);
  font-family: var(--zmv-body);
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.zmv-connected-foot {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--zmv-green-dark);
}
.zmv-detail {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--zmv-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Boutons ────────────────────────────────────────────────────────────── */

.zmv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: var(--zmv-ink);
  font-family: var(--zmv-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.zmv-btn--red {
  background: var(--zmv-red);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(225, 29, 72, 0.6);
}
.zmv-btn--green {
  background: var(--zmv-green-dark);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(15, 122, 56, 0.7);
}
.zmv-btn--white {
  padding: 11px 18px;
  background: #fff;
  color: var(--zmv-green-deep);
  font-size: 13.5px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.35);
}
.zmv-btn--ghost {
  padding: 10px 16px;
  border: 1.5px solid var(--zmv-line);
  background: #fff;
  color: var(--zmv-ink);
  font-size: 13px;
}
/* « Go → » : angle du champ voisin, pas une pilule (v4 l.2630). */
.zmv-btn--go {
  flex-shrink: 0;
  padding: 13px 20px;
  border-radius: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}
.zmv-btn:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}
/* Appel en cours : plus de second clic, petit indicateur tournant. */
.zmv-btn[aria-busy="true"],
.zmv-net-btn[aria-busy="true"],
.zmv-page[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
  pointer-events: none;
}
.zmv-btn[aria-busy="true"]::after,
.zmv-net-btn[aria-busy="true"]::after,
.zmv-page[aria-busy="true"]::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: zmv-spin 0.7s linear infinite;
}

/* ─── Colonne latérale : partage, barème public ──────────────────────────── */

.zmv-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zmv-card--share,
.zmv-card--scale {
  padding: 18px 20px;
  border-radius: 16px;
}
.zmv-share-label {
  margin-bottom: 10px;
  line-height: 1.5;
}
.zmv-share-text {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: var(--zmv-ink);
}
.zmv-card--share .zmv-btn {
  width: 100%;
  margin-top: 12px;
}
.zmv-scale-line {
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  color: var(--zmv-muted);
}
.zmv-scale-link {
  font-weight: 700;
  white-space: nowrap;
  color: var(--zmv-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Ancre #multivalue-scale (CTA « Voir le barème » du héro) : nav + marge. */
.zmv-card--scale {
  scroll-margin-top: 78px;
}
.zmv-card-title {
  font-family: var(--zmv-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--zmv-ink);
}
.zmv-scale-lead {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--zmv-muted);
}
.zmv-scale-off {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #fcd98a;
  border-radius: 10px;
  background: #fffbeb;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #7c2d12;
}
/* Conteneur défilable : les valeurs ne se coupent pas (nowrap) ; si le
   tableau ne tient pas (petit téléphone), c'est lui qui défile, pas la page. */
.zmv-scale-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--zmv-line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.zmv-scale-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--zmv-ink);
}
.zmv-scale-table th,
.zmv-scale-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--zmv-line);
  text-align: right;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.zmv-scale-table th:first-child {
  text-align: left;
}
.zmv-scale-table thead th {
  background: var(--zmv-soft);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  vertical-align: bottom;
  color: var(--zmv-muted);
}
.zmv-scale-table tbody th {
  font-weight: 700;
}
.zmv-scale-table tbody td {
  font-weight: 600;
  white-space: nowrap;
}
.zmv-scale-table tbody tr:last-child th,
.zmv-scale-table tbody tr:last-child td {
  border-bottom: 0;
}
.zmv-scale-net {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.zmv-scale-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zmv-c);
}
.zmv-scale-badge {
  display: inline-block;
  margin: 3px 0 0 6px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #f1eff7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--zmv-muted);
}
/* Réseau non valorisé : valeurs « — » et pastille éteintes ; le nom reste
   lisible (--zmv-off ne fait que 2:1 sur blanc, et c'est lui qui dit à quel
   réseau s'applique le badge). */
.zmv-scale-table tr[data-valued="0"] td {
  color: var(--zmv-off);
}
.zmv-scale-table tr[data-valued="0"] .zmv-scale-net {
  color: var(--zmv-muted);
}
.zmv-scale-table tr[data-valued="0"] .zmv-scale-dot {
  background: var(--zmv-off);
}
.zmv-scale-note,
.zmv-scale-formula,
.zmv-scale-eng,
.zmv-scale-not,
.zmv-scale-version {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--zmv-muted);
}
.zmv-scale-formula {
  padding: 10px 12px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 10px;
  background: #f3faf5;
  font-family: var(--zmv-mono);
  font-size: 11.5px;
  overflow-wrap: anywhere;
  color: #14532d;
}
.zmv-scale-version {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ─── « Et ton pote » (v4 l.2609-2661) ───────────────────────────────────── */

/* Satellite (zmv_part « friend ») : la carte vit hors de la section, qui
   portait sa police et son encre ; plus de marge de séparation au-dessus. */
.zmv-part {
  color: var(--zmv-ink);
  font-family: var(--zmv-body);
}
.zmv-part > .zmv-friend {
  margin-top: 0;
}

.zmv-friend {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 340px);
  gap: 24px;
  align-items: center;
  margin-top: 34px;
}
.zmv-friend > * {
  min-width: 0;
}
.zmv-friend-title {
  font-family: var(--zmv-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--zmv-ink);
}
.zmv-friend-sub {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--zmv-muted);
}
.zmv-chips--friend {
  gap: 7px;
  margin-top: 14px;
}
.zmv-friend-form {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}
.zmv-input {
  display: block;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--zmv-line);
  border-radius: 11px;
  background: var(--zmv-soft);
  color: var(--zmv-ink);
  font-family: var(--zmv-body);
  font-size: 14.5px;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.zmv-input::placeholder {
  color: #9a8fc0;
  opacity: 1;
}
.zmv-input:placeholder-shown {
  text-overflow: ellipsis;
}
.zmv-input:focus {
  outline: 2px solid transparent;
  border-color: var(--zmv-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.zmv-input[aria-invalid="true"] {
  border-color: #dc2626;
  background: #fff7f7;
}
.zmv-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}
.zmv-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.zmv-friend-help {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--zmv-muted);
}
.zmv-friend-err,
.zmv-form-err {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--zmv-danger);
}
.zmv-friend-err {
  margin-top: 8px;
}
.zmv-friend-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
}

/* Carte résultat : grise à vide, squelette pendant la lecture, verte une
   fois l'estimation prête, message en cas d'erreur. */
.zmv-friend-result {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 150px;
  padding: 22px 20px;
  border: 1px solid var(--zmv-line);
  border-radius: 16px;
  background: var(--zmv-soft);
  color: var(--zmv-muted);
  text-align: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.zmv-friend-label {
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.zmv-friend-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 8px;
  max-width: 100%;
}
.zmv-friend-amount {
  max-width: 100%;
  font-family: var(--zmv-display);
  font-weight: 800;
  font-size: clamp(26px, 8vw, 32px); /* repli sans unité cqi, cf. .zmv-amount */
  font-size: clamp(26px, 12.4cqi, 38px);
  letter-spacing: -0.042em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.zmv-friend-unit {
  font-size: 12.5px;
  font-weight: 700;
}
/* Reprend le pseudo saisi pendant la lecture : plafonné à la carte (sinon sa
   largeur serait celle du mot le plus long, colonne flex centrée). */
.zmv-friend-meta {
  max-width: 100%;
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.zmv-friend-note {
  font-size: 11px;
  line-height: 1.5;
}
.zmv-friend-cmp {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}
.zmv-friend-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-family: var(--zmv-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.zmv-friend-share,
.zmv-friend-retry {
  margin-top: 5px;
}
.zmv-friend-result[data-state="empty"] .zmv-friend-amount {
  opacity: 0.55;
}
/* Lecture : le montant devient une barre de squelette. */
.zmv-friend-result[data-state="reading"] .zmv-friend-amount {
  min-width: 150px;
  border-radius: 10px;
  background: linear-gradient(90deg, #eceaf4 25%, #f8f7fc 50%, #eceaf4 75%);
  background-size: 200% 100%;
  color: transparent;
  animation: zmv-shimmer 1.3s linear infinite;
}
.zmv-friend-result[data-state="reading"] .zmv-friend-label {
  color: var(--zmv-green-dark);
}
.zmv-friend-result[data-state="done"] {
  border-color: rgba(22, 163, 74, 0.5);
  background: linear-gradient(150deg, var(--zmv-green), var(--zmv-green-deep));
  color: rgba(255, 255, 255, 0.9);
}
.zmv-friend-result[data-state="done"] .zmv-friend-amount,
.zmv-friend-result[data-state="done"] .zmv-friend-cmp {
  color: #fff;
}
.zmv-friend-result[data-state="error"] {
  border-color: #f5c2c2;
  background: #fff8f8;
}
.zmv-friend-result[data-state="error"] .zmv-friend-label {
  color: var(--zmv-danger);
}
.zmv-friend-result[data-state="error"] .zmv-friend-amount {
  opacity: 0.35;
}
.zmv-spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(22, 163, 74, 0.22);
  border-top-color: var(--zmv-green);
  border-radius: 50%;
  animation: zmv-spin 0.8s linear infinite;
}

/* ─── Réassurance (v4 l.2663-2678) ───────────────────────────────────────── */

.zmv-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.zmv-perk {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--zmv-line);
  border-radius: 15px;
  background: #fff;
}
.zmv-perk-ico {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}
.zmv-perk-title {
  font-family: var(--zmv-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--zmv-ink);
}
.zmv-perk-text {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--zmv-muted);
}

/* ─── Surcouches : feuille à panneaux (z 1500) ───────────────────────────── */

/* Verrou de défilement posé par le JS sur <html> pendant l'ouverture. */
html.zmv-lock {
  overflow: hidden;
}
.zmv-layer {
  font-family: var(--zmv-body);
  color: var(--zmv-ink);
}
.zmv-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(15, 7, 34, 0.58);
  animation: zmv-fade 0.18s ease;
}
.zmv-sheet {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 26px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px -30px rgba(15, 7, 34, 0.65);
  animation: zmv-pop 0.22s ease;
}
.zmv-sheet:focus {
  outline: none;
}
.zmv-sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--zmv-muted);
  cursor: pointer;
}
.zmv-sheet-title {
  padding-right: 34px;
  font-family: var(--zmv-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: var(--zmv-ink);
}
.zmv-sheet-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--zmv-muted);
}
.zmv-panel {
  margin-top: 18px;
}
/* Panneau actif = data-panel de la feuille. Le JS bascule déjà `hidden` ;
   ces règles garantissent qu'un seul panneau s'affiche. */
.zmv-overlay[data-panel="select"] .zmv-panel:not([data-zmv-panel="select"]),
.zmv-overlay[data-panel="bluesky"] .zmv-panel:not([data-zmv-panel="bluesky"]),
.zmv-overlay[data-panel="share"] .zmv-panel:not([data-zmv-panel="share"]),
.zmv-overlay[data-panel="quota"] .zmv-panel:not([data-zmv-panel="quota"]),
.zmv-overlay[data-panel="busy"] .zmv-panel:not([data-zmv-panel="busy"]) {
  display: none;
}
/* Partage et attente : feuilles courtes, plus étroites ; attente centrée. */
.zmv-overlay[data-panel="share"] .zmv-sheet,
.zmv-overlay[data-panel="busy"] .zmv-sheet {
  max-width: 380px;
}
.zmv-overlay[data-panel="busy"] .zmv-sheet-title {
  padding-right: 0;
  text-align: center;
}

/* Choix de la Page / chaîne */
.zmv-select-state {
  font-size: 13px;
  line-height: 1.55;
  color: var(--zmv-muted);
}
.zmv-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.zmv-select-list:empty {
  display: none;
}
.zmv-page-item {
  min-width: 0;
}
.zmv-page {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--zmv-line);
  border-radius: 12px;
  background: #fff;
  color: var(--zmv-ink);
  font-family: var(--zmv-body);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
/* Envoi d'un choix : le JS pose `disabled` sur TOUTES les Pages et aria-busy
   sur celle qui part. Les autres s'atténuent (la couleur d'encre ci-dessus
   masque le gris natif d'un bouton désactivé) ; celle qui part reste pleine,
   bordée de vert, avec l'indicateur tournant poussé à droite. */
.zmv-page:disabled:not([aria-busy="true"]) {
  opacity: 0.5;
  cursor: not-allowed;
}
.zmv-page[aria-busy="true"] {
  opacity: 1;
  border-color: var(--zmv-green);
  background: #f3faf5;
}
.zmv-page[aria-busy="true"]::after {
  margin-left: auto;
  color: var(--zmv-green-dark);
}
.zmv-page-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.12);
  font-family: var(--zmv-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--zmv-green-dark);
}
.zmv-page-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.zmv-page-name {
  overflow: hidden;
  font-family: var(--zmv-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* « @pseudo · N abonnés » : un pseudo insécable de 50 caractères se coupe au
   lieu de faire défiler la feuille horizontalement. */
.zmv-page-meta {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: var(--zmv-muted);
}
.zmv-panel > .zmv-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
}

/* Bluesky : identifiant + mot de passe d'application */
.zmv-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zmv-form-field {
  display: flex;
  flex-direction: column;
}
.zmv-form-field .zmv-label {
  margin-bottom: 6px;
}
.zmv-form-field .zmv-input {
  flex: none;
}
.zmv-form-help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--zmv-muted);
}
.zmv-consent--sheet {
  margin-top: 0;
}
.zmv-form-err {
  padding: 9px 12px;
  border-radius: 10px;
  background: #fef2f2;
}
.zmv-form .zmv-btn {
  width: 100%;
}

/* Partage : replis du partage natif */
.zmv-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zmv-share-link {
  display: flex;
  flex: 1 1 96px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 10px;
  border: 1px solid var(--zmv-line);
  border-radius: 12px;
  background: var(--zmv-soft);
  color: var(--zmv-ink);
  font-family: var(--zmv-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

/* Quota de comptes sociaux */
.zmv-quota-included {
  margin-bottom: 6px;
  font-family: var(--zmv-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zmv-ink);
}
.zmv-quota-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--zmv-muted);
}
.zmv-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.zmv-panel-actions .zmv-btn {
  width: 100%;
}

/* Attente de la redirection vers le réseau */
.zmv-busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 6px 0 4px;
  text-align: center;
}
.zmv-busy-hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--zmv-muted);
}

/* ─── Toast (z 1600) ─────────────────────────────────────────────────────── */

/* Bureau : en bas à gauche, au-dessus du footer fixe (67 px) ; le FAB chat
   tient la droite et le « + » (92 px, centré) dépasse du footer jusqu'à
   107 px du bas, plus haut que le bas du toast. La largeur s'arrête donc
   AVANT lui : bord droit = 24 + 50vw - 82 = 50vw - 58, bord gauche du « + »
   = 50vw - 46 (12 px d'écart, 7 px avec la gouttière de scrollbar). Les
   420 px de la maquette reviennent dès ~1004 px de large. */
.zmv-toast {
  position: fixed;
  left: 24px;
  bottom: 84px;
  z-index: 1600;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(50vw - 82px));
  padding: 10px 8px 10px 16px;
  border-radius: 14px;
  background: #1f1340;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 18px 44px -18px rgba(15, 7, 34, 0.7);
  animation: zmv-pop 0.22s ease;
}
.zmv-toast[data-kind="info"] {
  background: #1f1340;
}
.zmv-toast[data-kind="success"] {
  background: var(--zmv-green-deep);
}
.zmv-toast[data-kind="error"] {
  background: #be123c;
}
.zmv-toast-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.zmv-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

/* ─── Focus clavier ──────────────────────────────────────────────────────── */

/* Anneau à l'encre (le violet global de mobile.css se perd sur le vert). */
.zmv :focus-visible,
.zmv-part :focus-visible,
.zmv-layer :focus-visible {
  outline: 2px solid var(--zmv-ink);
  outline-offset: 2px;
}
/* Curseur et champ portent leur propre anneau ; la feuille ne reçoit le
   focus que pour le garder à l'ouverture (tabindex -1). */
.zmv-range:focus-visible,
.zmv-input:focus-visible,
.zmv-sheet:focus-visible {
  outline: 2px solid transparent;
}
.zmv-friend-result[data-state="done"] :focus-visible,
.zmv-toast :focus-visible {
  outline-color: #fff;
}

/* ─── Survol (pointeurs qui survolent seulement) ─────────────────────────── */

@media (hover: hover) {
  .zmv-chip:hover {
    border-color: var(--zmv-c);
    color: var(--zmv-ink);
  }
  .zmv-chip[aria-checked="true"]:hover {
    color: #fff;
  }
  .zmv-chip[aria-disabled="true"]:hover {
    border-color: var(--zmv-line);
    color: var(--zmv-off);
  }
  .zmv-btn:hover {
    transform: translateY(-2px);
  }
  .zmv-btn--go:hover {
    transform: none;
    background: #be123c;
  }
  .zmv-btn--ghost:hover {
    border-color: var(--zmv-ink);
  }
  .zmv-btn:disabled:hover {
    transform: none;
  }
  .zmv-net[data-status="not_connected"] .zmv-net-btn:hover {
    background: var(--zmv-c);
    color: #fff;
  }
  .zmv-net[data-status="revoked"] .zmv-net-btn:hover {
    background: var(--zmv-amber);
    color: #fff;
  }
  .zmv-net[data-status="pending"] .zmv-net-btn:hover {
    background: #92400e;
    border-color: #92400e;
  }
  .zmv-banner-btn:hover,
  .zmv-banner-link:hover {
    background: rgba(255, 255, 255, 0.7);
  }
  .zmv-banner-close:hover {
    background: rgba(31, 19, 64, 0.08);
  }
  .zmv-sheet-close:hover {
    background: #f1eff7;
    color: var(--zmv-ink);
  }
  .zmv-toast-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  .zmv-page:not(:disabled):hover,
  .zmv-share-link:hover {
    border-color: var(--zmv-green);
    background: #f3faf5;
  }
  .zmv-link:hover,
  .zmv-legal:hover,
  .zmv-detail:hover,
  .zmv-scale-link:hover,
  .zmv-net-unlock:hover {
    text-decoration-thickness: 2px;
  }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

/* Tablette : grille principale en 1 colonne (.rz-2 de la maquette), liste des
   réseaux en 2 colonnes tant qu'une ligne garde 270 px, « pote » en 2 colonnes. */
@media (max-width: 900px) {
  .zmv {
    padding: 72px 24px;
  }
  .zmv-head {
    margin-bottom: 36px;
  }
  .zmv-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .zmv-nets {
    grid-template-columns: repeat(auto-fit, minmax(max(270px, calc(50% - 4px)), 1fr));
  }
  .zmv-friend {
    grid-template-columns: minmax(0, 1.3fr) minmax(200px, 1fr);
    gap: 20px;
    margin-top: 22px;
  }
}

/* ≤ 768 px : la home impose 48 px / 16 px de padding à toute section de
   .zh-page (!important) et la taille du h2 ; on s'en accommode. Toast en
   pleine largeur, au-dessus du footer fixe et du bouton « + » (sommet ≈ 99 px). */
@media (max-width: 768px) {
  .zmv-orb {
    top: -120px;
    right: -150px;
    width: 340px;
    height: 340px;
  }
  .zmv-head {
    margin-bottom: 28px;
  }
  .zmv-sub {
    font-size: 15px;
  }
  .zmv-card {
    padding: 22px 20px;
  }
  .zmv-card--share,
  .zmv-card--scale {
    padding: 18px 18px;
  }
  .zmv-toast {
    left: 12px;
    right: 12px;
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}

/* Tactile : cibles de 44 px, champs à 16 px (pas de zoom iOS à la saisie).
   Vaut aussi pour une tablette large à pointeur grossier. */
@media (max-width: 768px), (pointer: coarse) {
  .zmv-chip,
  .zmv-net-btn,
  .zmv-btn,
  .zmv-banner-btn,
  .zmv-banner-link,
  .zmv-page,
  .zmv-share-link {
    min-height: 44px;
  }
  .zmv-banner-close,
  .zmv-toast-close {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  /* min-width : « Log in » ne fait que 36 px de large en anglais. */
  .zmv-link,
  .zmv-detail,
  .zmv-net-unlock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  /* « Voir le barème » : lien court en fin de phrase. Il garde sa taille de
     texte ; le padding (annulé par une marge négative égale) porte la zone
     tactile à ~48 px sans déplacer ni la ligne ni le texte. */
  .zmv-scale-link {
    display: inline-block;
    padding: 15px 6px;
    margin: -15px -6px;
  }
  .zmv-input {
    font-size: 16px;
  }
  .zmv-net-btn {
    padding: 7px 15px;
    font-size: 12.5px;
  }
}

/* Mobile : tout en 1 colonne, feuille en bas d'écran, barème défilable. */
@media (max-width: 600px) {
  .zmv-nets,
  .zmv-friend,
  .zmv-perks {
    grid-template-columns: minmax(0, 1fr);
  }
  .zmv-friend {
    gap: 16px;
  }
  .zmv-friend-result {
    min-height: 132px;
  }
  .zmv-scale-table th,
  .zmv-scale-table td {
    padding: 9px 8px;
  }
  /* Dernière colonne (en-tête long, valeurs courtes) : largeur figée, sinon
     elle prend la place des autres ou se coupe à chaque mot. */
  .zmv-scale-table thead th:last-child {
    width: 86px;
    min-width: 86px;
  }
  /* Badge « Non valorisé » sous le nom : la 1ʳᵉ colonne reste étroite. */
  .zmv-scale-badge {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 4px 0 0;
  }
  .zmv-overlay {
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }
  .zmv-overlay[data-panel] .zmv-sheet {
    max-width: none;
  }
  .zmv-sheet {
    max-width: none;
    max-height: 88vh;
    max-height: min(88dvh, 640px);
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    animation: zmv-rise 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* Petits téléphones : cartes compactes, chips qui passent à la ligne. */
@media (max-width: 430px) {
  .zmv-card {
    padding: 20px 16px;
  }
  .zmv-card--share,
  .zmv-card--scale {
    padding: 18px 14px;
  }
  /* Le tableau tient sans défiler tant que « 25 % des abonnés » peut passer
     sur deux lignes ; en dernier recours, .zmv-scale-wrap défile. */
  .zmv-scale-table {
    font-size: 12px;
  }
  .zmv-scale-table th,
  .zmv-scale-table td {
    padding: 9px 7px;
  }
  .zmv-scale-table thead th {
    font-size: 10px;
    letter-spacing: 0.2px;
  }
  .zmv-scale-table thead th:last-child {
    width: 76px;
    min-width: 76px;
  }
  .zmv-scale-table tbody td {
    white-space: normal;
  }
  .zmv-chips {
    gap: 7px;
  }
  .zmv-chip {
    gap: 6px;
    padding: 8px 12px;
  }
  .zmv-out {
    font-size: 17px;
  }
  .zmv-value {
    padding: 20px 14px;
  }
  .zmv-formula {
    padding: 10px 12px;
    font-size: 11.5px;
  }
  .zmv-connect {
    padding: 14px 12px;
  }
  .zmv-net {
    gap: 10px;
    padding: 9px 10px;
  }
  .zmv-friend-form {
    gap: 8px;
  }
  .zmv-input {
    padding: 13px 14px;
  }
  /* Le zoom iOS dépend de la taille du champ (16 px), pas de son placeholder. */
  .zmv-input::placeholder {
    font-size: 14px;
  }
  .zmv-btn--go {
    padding: 13px 16px;
  }
  .zmv-friend-result {
    padding: 20px 14px;
  }
  .zmv-perk {
    padding: 18px 16px;
  }
}

/* Mouvement réduit : ni animation ni transition décorative ; l'anti-flash
   est coupé (la carte de valeur reste pleinement visible). */
@media (prefers-reduced-motion: reduce) {
  .zmv *,
  .zmv *::before,
  .zmv *::after,
  .zmv-part *,
  .zmv-part *::before,
  .zmv-part *::after,
  .zmv-layer *,
  .zmv-layer *::before,
  .zmv-layer *::after {
    animation: none !important;
    transition: none !important;
  }
  .zmv[data-auth="1"]:not([data-ready]) .zmv-value {
    opacity: 1;
  }
}
