/* ==========================================================================
   components.css — myOptions Refonte 2026
   Composants réutilisables du design system v2.
   À charger entre base.css et les contextes (header.css, forms.css).

   Ordre cascade : tokens → base → components → contextuels
   Référence : 01-Charte/Composants/Composants-critiques-v2.md
   ========================================================================== */


/* ==========================================================================
   1. BOUTONS — 3 tiers (parti-pris v2)
   - Primary  : pill ink-900 fill, texte blanc
   - Secondary: pill --btn-secondary-bg + texte --btn-secondary-fg (bleu depuis le 01/10/2026, cf. tokens.css)
   - Tertiary : text-only avec underline (à migrer vers chevron permanent)
   ========================================================================== */

.mo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--weight-medium);
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease),
              color var(--duration-base) var(--ease);
}
.mo-btn:focus-visible {
  outline: 2px solid var(--ink-900);
  outline-offset: 3px;
}

.mo-btn--primary {
  background-color: var(--ink-900);
  color: #FFFFFF;
  border-color: var(--ink-900);
}
.mo-btn--primary:hover,
.mo-btn--primary:focus-visible {
  background-color: var(--ink-900);
  border-color: var(--ink-900);
  color: #FFFFFF;
}

.mo-btn--secondary {
  background-color: var(--btn-secondary-bg);  /* pattern v4 : fond couleur adoucie + texte foncé */
  color: var(--btn-secondary-fg);
  border-color: transparent;
  border-radius: 999px;                  /* pill, comme primary (différenciation par couleur, pas géométrie) */
  transition:
    background-color var(--duration-base) var(--ease),
    border-color var(--duration-base) var(--ease),
    color var(--duration-base) var(--ease),
    box-shadow var(--duration-base) var(--ease),
    font-weight var(--duration-base) var(--ease);
}
.mo-btn--secondary:hover,
.mo-btn--secondary:focus-visible {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  box-shadow: inset 0 0 0 1px var(--btn-secondary-fg);  /* +1px d'épaisseur sans layout shift */
  font-weight: var(--weight-semibold);   /* graisse 500 → 600 */
}

.mo-btn--tertiary {
  background-color: transparent;
  color: var(--ink-body);
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--ink-900);
  border-radius: 0;
}
.mo-btn--tertiary:hover,
.mo-btn--tertiary:focus-visible {
  border-bottom-color: var(--bronze-600);
  color: var(--ink-900);
}


/* ==========================================================================
   1bis. UTILITAIRES TYPOGRAPHIQUES — eyebrow
   Classe utilitaire transverse pour les eyebrows (chapeaux uppercase
   au-dessus d'un titre, d'une section ou d'une card). Pattern visuel répété
   sur l'ensemble de l'app — mutualisé ici pour éviter la duplication BEM.

   Usage : composer avec la classe BEM locale, p.ex.
     <p class="mo-eyebrow mo-porteur-section__eyebrow">Vos dossiers</p>
   La classe BEM reste utile pour les overrides locaux (margin, couleur
   spécifique, alignement).

   Base : bronze-600 / 11px / weight 500 / letter-spacing 0.18em / uppercase.
   Modifiers : --sm (10px + 0.16em) · --tight (0.14em) · --bold (600)
              · --lilas (lilas-dark)
   ========================================================================== */

.mo-eyebrow {
  font-family: var(--font-primary, sans-serif);
  font-size: var(--font-eyebrow, 11px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-600, #9A835C);
  margin: 0;
}

.mo-eyebrow--sm {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.mo-eyebrow--tight {
  letter-spacing: 0.14em;
}

.mo-eyebrow--bold {
  font-weight: 600;
}

.mo-eyebrow--lilas {
  color: var(--lilas-dark, #5C4F75);
}

.mo-eyebrow--bronze-700 {
  color: var(--bronze-700, #7E6B49);
}


/* ==========================================================================
   1ter. PATTERN BRONZE SABLE — card identitaire/éditoriale signature
   Encart chaud, signature visuelle myOptions, utilisé pour :
     - encart de finalisation UBO (mo-ubo-finalize)
     - card contact / interlocuteurs (mo-porteur-interlocuteurs)
     - encart pédagogique standalone dans un form (mo-alert--field-hint--standalone)

   Usage : composer avec une classe BEM locale qui porte le layout interne et
   les overrides spécifiques (padding, margin, font-size, sous-éléments).

   <div class="mo-bronze-card mo-porteur-interlocuteurs">…</div>

   Propriétés factorisées : background bronze translucide ultra-light + border
   bronze-200 + radius md + color bronze-700 par défaut.
   ========================================================================== */

.mo-bronze-card {
  background: var(--bronze-card-bg, rgba(168, 124, 61, 0.06));
  border: 1px solid var(--bronze-200, #E8D9B8);
  border-radius: var(--radius-md, 8px);
  color: var(--bronze-700, #6E4F1F);
}


/* ==========================================================================
   1quater. CHIP — signal d'état compact (phase, statut, étape)
   Pill discrète, eyebrow-style mais avec un fond doux assorti à la sémantique
   de l'état. Pattern banque privée moderne (Memo Bank / Hedg / Qonto).
   Réutilisable pour : phase de dossier, statut KYC, étape d'instruction lead,
   indicateur de version, etc.

   Variantes phase dossier (sprint 7) :
     --construction · --instruction · --collecte · --remboursement · --solde
   ========================================================================== */

.mo-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full, 9999px);
  font-family: var(--font-primary, sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--ink-100, #DDE1E6);
  color: var(--ink-body, #424A55);
}

/* Variantes par phase de dossier porteur — alignées sur les valeurs renvoyées
   par la view dashboard() (cf. porteur_dossiers). */
.mo-chip--construction {
  background: var(--bronze-200, #E8D9B8);
  color: var(--bronze-700, #6E4F1F);
}
.mo-chip--instruction {
  background: var(--bronze-card-bg, rgba(168, 124, 61, 0.06));
  color: var(--bronze-700, #6E4F1F);
}
.mo-chip--collecte {
  background: var(--celadon-50, #EAF3EE);
  color: var(--celadon-dark, #5C8A75);
}
.mo-chip--fin_collecte {
  background: var(--celadon-50);
  color: var(--celadon-700);
}
.mo-chip--remboursement {
  background: var(--bleuet-50, #E8EEF8);
  color: var(--bleuet-dark, #2D4A78);
}
.mo-chip--solde {
  background: var(--ink-100, #DDE1E6);
  color: var(--ink-body, #424A55);
}
/* Variantes leads (sprint 23/05/2026) — alignées sur les states OperationLead
   non encore convertis : refused / archived / proposition / contractualise.
   Couleurs cohérentes avec la palette v4 (terracotta refus, bronze proposition,
   céladon contrat signé, neutre archivé). */
.mo-chip--refused {
  background: var(--terracotta-50, #FAEBE5);
  color: var(--terracotta-dark, #A04A2E);
}
.mo-chip--archived {
  background: var(--ink-100, #DDE1E6);
  color: var(--ink-body, #424A55);
}
.mo-chip--proposition {
  background: var(--bronze-200, #E8D9B8);
  color: var(--bronze-700, #6E4F1F);
}
.mo-chip--contractualise {
  background: var(--celadon-50, #EAF3EE);
  color: var(--celadon-dark, #5C8A75);
}

/* Variante inactive — solution / option non commercialisée actuellement.
   Très discrète : font-size 10px, padding réduit, opacity 0.6, le contenu textuel
   passe au second plan sans masquer l'item principal. */
.mo-chip--inactive {
  background: transparent;
  color: var(--ink-body, #424A55);
  border: 1px solid var(--ink-200, #D6D9DD);
  font-size: 10px;
  padding: 2px 8px;
  opacity: 0.6;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}


/* ==========================================================================
   2. BREADCRUMB · spec D1 (chevrons)
   Validée 2026-04-27. Réutilisable sur toutes les pages publiques + connectées.
   ========================================================================== */

.mo-breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  margin: 0 0 16px;
  font-family: var(--font-primary);
  font-size: 12px;
  line-height: 1;
  font-weight: var(--weight-regular);     /* 400 par défaut, override le legacy 700 */
  text-transform: uppercase;              /* éditorial sobre, posture haut de bilan */
  letter-spacing: 0.08em;
}
.mo-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.mo-breadcrumb li + li::before {
  content: "›";
  color: var(--ink-300);
  font-size: 11px;
  line-height: 1;
}
.mo-breadcrumb a {
  color: var(--ink-500);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease);
}
.mo-breadcrumb a:hover,
.mo-breadcrumb a:focus-visible {
  color: var(--ink-900);
  outline: none;
}
/* Page courante : non cliquable, ink-900 medium */
.mo-breadcrumb [aria-current="page"],
.mo-breadcrumb li:last-child:not(:has(a)) {
  color: var(--ink-900);
  font-weight: var(--weight-medium);
}
/* Tronquer chemin > 3 niveaux en mobile (… cliquable) — à activer quand markup le permet */
@media (max-width: 639px) {
  .mo-breadcrumb {
    margin-bottom: 12px;
    font-size: 12px;
  }
}


/* ==========================================================================
   3. HERO HOME · split 8/4 contenu/stats + image full-bleed
   Validé 2026-04-28. Doc : 01-Charte/Composants/Composants-critiques-v2.md
   Architecture : container 1216 max pour le contenu · image en
   width: calc(100% - 30px) pour déborder du container avec radius 8.
   ========================================================================== */

.mo-hero-home {
  padding: 56px 0 24px;
  background-color: var(--neutre-50);
}

/* Container interne — split 8/4 sur grille 12, gap 72px (respiration entre colonnes) */
.mo-hero-home__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 72px;
  align-items: center;
}

/* ----- Colonne gauche · contenu éditorial ----- */

/* Eyebrow pill : lien vers /projects, pattern fond couleur adoucie + texte foncé */
.mo-hero-home__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--lilas-light);
  color: var(--lilas-dark);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 24px;
  transition: box-shadow var(--duration-base) var(--ease),
              font-weight var(--duration-base) var(--ease);
}
.mo-hero-home__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--lilas-dark);
  flex-shrink: 0;
}
.mo-hero-home__eyebrow::after {
  content: "→";
  font-size: 12px;
  margin-left: 2px;
  transition: transform var(--duration-base) var(--ease);
}
.mo-hero-home__eyebrow:hover,
.mo-hero-home__eyebrow:focus-visible {
  box-shadow: inset 0 0 0 1px var(--lilas-dark);
  outline: none;
}
.mo-hero-home__eyebrow:hover::after,
.mo-hero-home__eyebrow:focus-visible::after {
  transform: translateX(3px);
}

/* H1 hero — pas de césure de mots, équilibrage des lignes */
.mo-hero-home__title {
  font-family: var(--font-secondary);
  font-size: var(--font-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: var(--weight-medium);
  color: var(--ink-900);
  margin: 0 0 22px;
  hyphens: none;                 /* pas de tiret de césure auto */
  word-break: keep-all;          /* pas de coupure arbitraire des mots latins */
  overflow-wrap: normal;
  text-wrap: balance;            /* répartition équilibrée sur les navigateurs récents */
}

/* Lead body */
.mo-hero-home__lead {
  font-family: var(--font-primary);
  font-size: var(--font-body);
  line-height: var(--lh-body);
  color: var(--ink-body);
  max-width: 60ch;
  margin: 0 0 12px;
}

/* Mention PSFP en bronze-600 */
.mo-hero-home__psfp {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--bronze-600);
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}

/* CTAs */
.mo-hero-home__ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* Chevron sur le primary CTA (translate +3px sur hover) */
.mo-btn__arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform var(--duration-base) var(--ease);
}
.mo-btn--primary:hover .mo-btn__arrow,
.mo-btn--primary:focus-visible .mo-btn__arrow {
  transform: translateX(3px);
}

/* ----- Colonne droite · stats sur aplat subtil neutre-100 ----- */
.mo-hero-home__stats {
  display: flex;
  flex-direction: column;
  background-color: var(--neutre-100);   /* aplat -0.7% vs page neutre-50 */
  border-radius: 12px;
  padding: 32px 28px;
}
.mo-stat {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 0.5px solid rgba(28, 31, 36, 0.12);
}
.mo-stat:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.mo-stat__label {
  display: block;
  font-family: var(--font-primary);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: var(--weight-medium);
  margin-bottom: 12px;
}
.mo-stat__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mo-stat__prefix {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: var(--ink-500);
}
.mo-stat__num {
  font-family: var(--font-secondary);
  font-size: 56px;
  font-weight: var(--weight-medium);
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -0.03em;
}
.mo-stat__unit {
  font-family: var(--font-secondary);
  font-size: 28px;
  font-weight: var(--weight-medium);
  color: var(--ink-900);
  line-height: 1;
}
.mo-stat__detail {
  display: block;
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 10px;
  line-height: 1.4;
}

/* ----- Bloc 2 · image full-bleed (15px viewport margins, radius 8) ----- */
.mo-hero-home__media {
  margin: 32px 15px 0;
  border-radius: 8px;
  max-height: 483px;
  overflow: hidden;
  background-color: var(--lilas-light); /* placeholder pendant chargement */
}
.mo-hero-home__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.mo-hero-home__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 483px;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   5. PAGES LÉGALES · .mo-legal
   Gabarit commun des documents (notice de risque, CGU, mentions légales,
   données personnelles, cookies, réclamation). Refonte 2026-10-01 d'après le
   handoff « Pages légales v4 » (Refonte options/03-Chantiers/Handoff-pages-legales).
   En-tête 7/4 + encart, sommaire collant (legal-toc.js), sections numérotées en
   Stack Sans (plus de Fraunces), blocs notice (L'essentiel, chiffres clés,
   documents liés) et bandeau d'aide. Tokens uniquement ; font-family explicite
   partout (le legacy fait fuiter du serif).
   ========================================================================== */

.mo-legal {
  padding: var(--space-12) 0 var(--space-20);
  background: var(--neutre-50);
  min-height: 60vh;
}
.mo-legal h1, .mo-legal h2, .mo-legal h3 { hyphens: manual; }

.mo-legal__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
}

/* ---------- En-tête ---------- */
.mo-legal__header {
  margin: var(--space-8) 0 var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--neutre-200);
}
.mo-legal__header-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-20);
  align-items: end;
}
.mo-legal__eyebrow {
  font-family: var(--font-primary);
  font-size: var(--font-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--bronze-700);
  margin: 0 0 var(--space-4);
}
.mo-legal__title {
  font-family: var(--font-secondary);
  font-size: var(--font-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: var(--weight-medium);
  color: var(--ink-900);
  margin: 0 0 var(--space-6);
  text-wrap: balance;
}
/* Chapô : taille body (réduit le 01/10/2026, au lieu des 18 px du handoff). */
.mo-legal__lead {
  font-family: var(--font-primary);
  font-size: var(--font-body);
  line-height: var(--lh-body);
  color: var(--ink-body);
  margin: 0 0 var(--space-4);
  max-width: 62ch;
}
.mo-legal__lead:last-child { margin-bottom: 0; }
.mo-legal__lead--secondary {
  font-size: var(--font-body);
  line-height: var(--lh-body);
  color: var(--ink-500);
}

/* Encart de droite : repères (liste) ou version (carte) */
.mo-legal__meta { display: flex; flex-direction: column; }
.mo-legal__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--ink-100);
  font-family: var(--font-primary);
  font-size: var(--font-caption);
  line-height: var(--lh-caption);
}
.mo-legal__meta-row dt, .mo-legal__meta-row > :first-child { color: var(--ink-500); margin: 0; }
.mo-legal__meta-row dd, .mo-legal__meta-row > :last-child { color: var(--ink-900); font-weight: var(--weight-medium); margin: 0; text-align: right; }
.mo-legal__meta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.mo-legal__meta--card {
  background: var(--cream-50);
  border: 1px solid var(--ink-900-08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6) var(--space-8);
}
.mo-legal__meta--card .mo-legal__meta-row:last-of-type { border-bottom: 0; }
.mo-legal__version {
  display: flex; align-items: center; gap: var(--space-3);
  padding-bottom: var(--space-3);
  font-family: var(--font-secondary);
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  color: var(--ink-900);
}
.mo-legal__chip {
  display: inline-flex; align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--celadon-50);
  color: var(--celadon-700);
  font-family: var(--font-primary);
  font-size: var(--font-caption);
  font-weight: var(--weight-semibold);
}

/* ---------- Corps : sommaire + article ---------- */
.mo-legal__layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--space-24);
  align-items: start;
}

/* Sommaire (details/summary : replié sous 1024 px, ouvert et figé au-dessus) */
.mo-legal__toc {
  position: sticky;
  top: calc(var(--space-16) + var(--space-6));   /* header public 64 px + 24 px */
  align-self: start;
}
.mo-legal__toc-title {
  font-family: var(--font-primary);
  font-size: var(--font-caption);
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--bronze-700);
  margin: 0 0 var(--space-3);
  list-style: none;
}
.mo-legal__toc-title::-webkit-details-marker { display: none; }
@media (min-width: 1024px) {
  .mo-legal__toc-title { pointer-events: none; }
}
.mo-legal__toc-list { list-style: none; margin: 0; padding: 0; }
.mo-legal__toc-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--neutre-200);
  font-family: var(--font-primary);
  font-size: var(--font-body);
  line-height: 1.4;
  color: var(--ink-body);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease);
}
.mo-legal__toc--dense .mo-legal__toc-link { font-size: var(--font-caption); }
.mo-legal__toc-num { font-family: var(--font-secondary); font-weight: var(--weight-medium); color: var(--bronze-600); }
.mo-legal__toc-link:hover { color: var(--ink-900); }
.mo-legal__toc-link.is-active { color: var(--ink-900); font-weight: var(--weight-semibold); }

/* Colonne de lecture quand l'article est enveloppé (CGU : article + versions + aide). */
.mo-legal__layout > div { min-width: 0; max-width: 720px; }

.mo-legal__article {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- Sections ---------- */
.mo-legal__section {
  display: block;
  padding: var(--space-12) 0;
  scroll-margin-top: calc(var(--space-16) + var(--space-6));
}
.mo-legal__section + .mo-legal__section { border-top: 1px solid var(--neutre-200); }
.mo-legal__article > .mo-legal__section:first-child,
.mo-legal__essentiel + .mo-legal__section { padding-top: 0; }

.mo-legal__section-num {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--font-body);
  font-weight: var(--weight-medium);
  color: var(--bronze-600);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.mo-legal__section-title {
  font-family: var(--font-secondary);
  font-size: var(--font-h3);           /* réduit le 01/10/2026 (H2 30 px → H3 22 px) */
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  font-weight: var(--weight-medium);
  color: var(--ink-900);
  margin: 0 0 var(--space-5);
}
.mo-legal__section-body {
  font-family: var(--font-primary);
  font-size: var(--font-body);
  line-height: var(--lh-body);
  color: var(--ink-body);
}
.mo-legal__section-body :is(p, li, ul, ol, dt, dd, span, strong, em, a, td, th) { font-family: var(--font-primary); }

/* Intertitres dans une section légale — hiérarchie unique (01/10/2026), qui
   neutralise les classes legacy du texte des CGU (.h5 en capitales, .inside
   en 20 px, h6 sans style) :
   h2 article (22) > h4 sous-partie (Headline 600) > h5 (Text 600)
   > h6 (Text 500, gris). Pas de capitales. */
.mo-legal__subsection-title,
.mo-legal__section-body h4,
.mo-legal__section-body h5,
.mo-legal__section-body h6 {
  font-size: var(--font-body);
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-900);
  margin: var(--space-6) 0 var(--space-2);
  padding: 0;
}
.mo-legal__subsection-title,
.mo-legal__section-body h4 { font-family: var(--font-secondary); font-weight: var(--weight-semibold); color: var(--bleuet-dark); margin-top: var(--space-8); }
.mo-legal__section-body h5 { font-family: var(--font-primary); font-weight: var(--weight-semibold); }
.mo-legal__section-body h6 { font-family: var(--font-primary); font-weight: var(--weight-medium); color: var(--ink-500); margin-top: var(--space-4); }
.mo-legal__section-body > :is(.mo-legal__subsection-title, h4, h5, h6):first-child { margin-top: 0; }

.mo-legal__section-body p { margin: 0 0 var(--space-4); }
.mo-legal__section-body p:last-child { margin-bottom: 0; }

.mo-legal__section-body ul,
.mo-legal__section-body ol { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
/* Puces uniformes (01/10/2026) : une puce ronde ink-500 pour toutes les
   listes à puces, quelle que soit leur place dans le texte ; cerclée au
   2e niveau. Les listes ordonnées (procédures, « étape 2 » citée dans le
   texte) gardent un numéro dans la même colonne. */
.mo-legal__section-body li { list-style: none; position: relative; padding-left: var(--space-5); margin-bottom: var(--space-2); }
.mo-legal__section-body ul > li::before {
  content: ""; position: absolute; left: 2px; top: calc((1lh - 6px) / 2);
  width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--ink-500);
}
.mo-legal__section-body li ul { margin: var(--space-2) 0 var(--space-2); }
.mo-legal__section-body li ul > li::before { background: transparent; border: 1px solid var(--ink-500); }
.mo-legal__section-body ol { counter-reset: mo-legal-step; }
.mo-legal__section-body ol > li { counter-increment: mo-legal-step; }
.mo-legal__section-body ol > li::before {
  content: counter(mo-legal-step) "."; position: absolute; left: 0; top: 0;
  font-weight: var(--weight-medium); color: var(--ink-500); font-variant-numeric: tabular-nums;
}

.mo-legal__section-body a {
  color: var(--ink-900);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border-bottom: 1px solid var(--bronze-200);
  transition: border-color var(--duration-base) var(--ease);
}
.mo-legal__section-body a:hover,
.mo-legal__section-body a:focus-visible { border-bottom-color: var(--ink-900); outline: none; }

/* ---------- Blocs notice ---------- */
/* « L'essentiel » : décliné de l'encart des repères de la home (encre, lignes
   séparées, accent bleuet) — demandé le 01/10/2026. */
.mo-legal__essentiel {
  background: var(--ink-800);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-12);
}
.mo-legal__essentiel .mo-legal__eyebrow { color: var(--bleuet); margin-bottom: var(--space-2); }
.mo-legal__essentiel-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8);
}
.mo-legal__essentiel-list li {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding: var(--space-3) 0;
  font-family: var(--font-primary); font-size: var(--font-body); line-height: 1.5; color: var(--cream-50);
}
/* Trait entre les lignes : à partir de la 2e ligne de la grille (2 colonnes). */
.mo-legal__essentiel-list li:nth-child(n+3) { border-top: 1px solid var(--ink-700); }
.mo-legal__essentiel-list li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: var(--radius-full);
  background: var(--bleuet); transform: translateY(-2px);
}

.mo-legal__keyfact {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--neutre-100);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin: 0 0 var(--space-5);
}
.mo-legal__keyfact-num {
  flex-shrink: 0;
  font-family: var(--font-secondary); font-size: var(--font-h3); line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3); font-weight: var(--weight-medium); color: var(--ink-900);
}
.mo-legal__keyfact-text { font-family: var(--font-primary); font-size: var(--font-body); line-height: 1.5; color: var(--ink-body); }

/* Définitions (CGU art. 02, version de secours du template) */
.mo-legal__defs {
  margin: 0 0 var(--space-4);
  background: var(--cream-50);
  border: 1px solid var(--ink-900-08);
  border-radius: var(--radius-lg);
  padding: var(--space-1) var(--space-8);
}
.mo-legal__defs > div {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--neutre-200);
}
.mo-legal__defs > div:last-child { border-bottom: 0; }
.mo-legal__defs dt { font-family: var(--font-primary); font-size: var(--font-body); font-weight: var(--weight-semibold); color: var(--ink-900); }
.mo-legal__defs dd { margin: 0; font-family: var(--font-primary); font-size: var(--font-body); color: var(--ink-body); }
.mo-legal__defs dd ul { margin: var(--space-2) 0 0; }
.mo-legal__defs dd li { list-style: none; position: relative; padding-left: var(--space-5); margin-bottom: var(--space-2); }
.mo-legal__defs dd li::before {
  content: ""; position: absolute; left: 2px; top: calc((1lh - 6px) / 2);
  width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--ink-500);
}

/* ---------- Bas d'article ---------- */
.mo-legal__archive { margin-top: var(--space-12); }
.mo-legal__archive-title {
  font-family: var(--font-secondary); font-size: var(--font-h3); line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3); font-weight: var(--weight-medium); color: var(--ink-900);
  margin: 0 0 var(--space-3);
}
.mo-legal__archive-list { list-style: none; margin: 0; padding: 0; }
.mo-legal__archive-list .mo-legal__meta-row { font-size: var(--font-body); }
.mo-legal__archive-list .mo-legal__meta-row > :first-child { color: var(--ink-900); font-weight: var(--weight-medium); }
.mo-legal__archive-list .mo-legal__meta-row > :last-child { color: var(--ink-500); font-weight: var(--weight-regular); }
.mo-legal__archive-list a { color: var(--ink-900); text-decoration: underline; text-underline-offset: 3px; }
.mo-legal__archive-list .mo-legal__chip { margin-left: var(--space-2); }
.mo-legal__related {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4);
  margin-top: var(--space-12);
}
.mo-legal__related-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  background: var(--cream-50);
  border: 1px solid var(--ink-900-08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  transition: box-shadow var(--duration-base) var(--ease);
}
.mo-legal__related-card:hover { box-shadow: var(--shadow-card); }
.mo-legal__related-label { font-family: var(--font-primary); font-size: var(--font-caption); color: var(--ink-500); }
.mo-legal__related-title { font-family: var(--font-primary); font-size: var(--font-body); font-weight: var(--weight-medium); color: var(--ink-900); }

.mo-legal__help {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6);
  margin-top: var(--space-12);
  background: var(--neutre-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  font-family: var(--font-primary); font-size: var(--font-body); color: var(--ink-body);
}
.mo-legal__help-links { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.mo-legal__help a {
  font-family: var(--font-primary); font-weight: var(--weight-medium); color: var(--ink-900);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .mo-legal__header-grid,
  .mo-legal__layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .mo-legal__toc { position: static; }
  .mo-legal__toc-title { cursor: pointer; margin: 0; padding: var(--space-3) 0; }
  .mo-legal__toc[open] .mo-legal__toc-title { margin-bottom: var(--space-2); }
  .mo-legal__toc-title::after { content: " +"; }
  .mo-legal__toc[open] .mo-legal__toc-title::after { content: " −"; }
  .mo-legal__article { max-width: none; }
}
@media (max-width: 767px) {
  .mo-legal { padding: var(--space-8) 0 var(--space-12); }
  .mo-legal__header { margin: var(--space-6) 0 var(--space-10); padding-bottom: var(--space-8); }
  .mo-legal__section { padding: var(--space-10) 0; }
  .mo-legal__related,
  .mo-legal__essentiel-list { grid-template-columns: minmax(0, 1fr); }
  .mo-legal__essentiel-list li + li { border-top: 1px solid var(--ink-700); }
  .mo-legal__defs > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .mo-legal__essentiel, .mo-legal__help { padding: var(--space-5); }
}


/* ==========================================================================
   4. ASIDE CONTACT · widget-aside-contact.html
   "Notre équipe est joignable" — eyebrow + h2 + 4 blocs (tél/chat/contact/social).
   Réutilisé sur login, signup, contact, dashboard_signup, password_reset, etc.
   Validé 2026-04-28 : tailles réduites (h2 et tél à 18px, plus posé).
   ========================================================================== */

.mo-aside-contact {
  font-family: var(--font-primary);
  color: var(--ink-body);
  padding-top: 12px;
}

.mo-aside-contact__eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-600);
  font-weight: var(--weight-medium);
  margin-bottom: 10px;
}

.mo-aside-contact__title {
  font-family: var(--font-secondary);
  font-size: 18px;            /* réduit de 22 → 18 (validé Lucile 28/04) */
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: var(--weight-medium);
  color: var(--ink-900);
  margin: 0 0 24px;
}

.mo-aside-contact__block {
  padding: 16px 0;
  border-top: 0.5px solid rgba(28, 31, 36, 0.10);
}
.mo-aside-contact__block:first-of-type {
  border-top: none;
  padding-top: 0;
}
.mo-aside-contact__block--last {
  padding-bottom: 0;
}

.mo-aside-contact__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: var(--weight-medium);
  margin: 0 0 6px;
}

.mo-aside-contact__phone {
  display: block;
  font-family: var(--font-secondary);
  font-size: 18px;            /* réduit de 22 → 18 (cohérent avec h2) */
  font-weight: var(--weight-medium);
  color: var(--ink-900);
  text-decoration: none;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
  transition: color var(--duration-base) var(--ease);
}
.mo-aside-contact__phone:hover,
.mo-aside-contact__phone:focus-visible {
  color: var(--ink-body);
  outline: none;
}

.mo-aside-contact__hours {
  font-size: 12px;
  color: var(--ink-500);
  margin: 0;
}

.mo-aside-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease);
}
.mo-aside-contact__arrow {
  display: inline-block;
  font-size: 13px;
  transition: transform var(--duration-base) var(--ease);
}
.mo-aside-contact__link:hover .mo-aside-contact__arrow,
.mo-aside-contact__link:focus-visible .mo-aside-contact__arrow {
  transform: translateX(3px);
}

.mo-aside-contact__social {
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.mo-aside-contact__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--duration-base) var(--ease);
}
.mo-aside-contact__social a:hover,
.mo-aside-contact__social a:focus-visible {
  opacity: 1;
  outline: none;
}

@media (max-width: 768px) {
  .mo-aside-contact {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 0.5px solid rgba(28, 31, 36, 0.10);
  }
  .mo-aside-contact__title,
  .mo-aside-contact__phone {
    font-size: 17px;
  }
}


/* ----- Responsive mobile (hero home) ----- */
@media (max-width: 768px) {
  .mo-hero-home {
    padding: 32px 0 16px;
  }
  .mo-hero-home__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .mo-hero-home__title {
    margin-bottom: 16px;
  }
  .mo-hero-home__lead {
    margin-bottom: 8px;
  }
  .mo-hero-home__psfp {
    margin-bottom: 22px;
  }
  .mo-hero-home__ctas {
    flex-direction: column;
    gap: 8px;
  }
  .mo-hero-home__ctas .mo-btn {
    width: 100%;
  }
  /* Stats en 2 colonnes sur mobile — gain de verticalité, lecture parallèle */
  .mo-hero-home__stats {
    padding: 24px 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .mo-stat {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;        /* la box neutre-100 fait office de container */
  }
  .mo-stat__num {
    font-size: 36px;
  }
  .mo-stat__unit {
    font-size: 20px;
  }
  .mo-stat__label {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .mo-stat__detail {
    font-size: 11px;
    margin-top: 6px;
  }
  .mo-hero-home__media {
    margin-top: 24px;
    max-height: none;
  }
}


/* ============================================================
   STEPPER (timeline pedagogique onboarding)
   3 etats : --done / --active / --future
   ============================================================ */
.mo-stepper {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  max-width: 580px;
}
.mo-stepper__step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 20px;
  position: relative;
  padding: 0 0 36px;
}
.mo-stepper__step:last-child { padding-bottom: 0; }
.mo-stepper__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: -4px;
  width: 1px;
  background: var(--ink-100, #E5E7EB);
}
.mo-stepper__bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--neutre-50);
  /* Chiffres en Stack Sans (la feuille legacy rabat les span sur la police système). */
  font-family: var(--font-primary);
  font-variant-numeric: tabular-nums;
}
.mo-stepper__bullet > span { font-family: inherit; }
.mo-stepper__step--done .mo-stepper__bullet {
  background: var(--ink-900);
  color: var(--bronze-200, #C8A769);
}
.mo-stepper__step--active .mo-stepper__bullet {
  background: var(--neutre-50);
  border: 2px solid var(--ink-900);
  position: relative;
}
.mo-stepper__step--active .mo-stepper__bullet::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-900);
}
.mo-stepper__step--future .mo-stepper__bullet {
  background: var(--neutre-50);
  border: 1px solid var(--ink-300, #B8BCC4);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
}
.mo-stepper__content { padding-top: 2px; }
.mo-stepper__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-600, #8B7240);
  margin: 0 0 4px;
}
.mo-stepper__eyebrow--active { color: var(--ink-900); }
.mo-stepper__step--future .mo-stepper__eyebrow { color: var(--ink-500); }
.mo-stepper__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.mo-stepper__step--future .mo-stepper__title {
  font-weight: 400;
  color: var(--ink-500);
}
.mo-stepper__text {
  font-size: 14px;
  color: var(--ink-body);
  line-height: 1.6;
  margin: 0 0 8px;
}
.mo-stepper__step--future .mo-stepper__text { color: var(--ink-500); }
.mo-stepper__hint {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0 0 16px;
}
.mo-stepper__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 0;
}
.mo-stepper__action-link {
  font-size: 12px;
  color: var(--ink-body);
  text-decoration: underline;
  text-decoration-color: var(--ink-300);
  text-underline-offset: 3px;
}
.mo-stepper__action-link:hover { text-decoration-color: var(--ink-900); color: var(--ink-900); }

/* Compte créé (handoff « Tunnel financeur particulier », 21/10/2026) :
   colonne 1fr (760 max) | aide 380, ronds de 32 reliés par un filet bronze,
   étape en cours dans une carte blanche. */
.mo-user-created { background: var(--neutre-100); padding: 72px 0 88px; }
.mo-user-created .mo-auth__inner { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; }
.mo-user-created .mo-auth__main { max-width: 760px; gap: 40px; }
.mo-user-created__steps { max-width: none; margin: 0; }
.mo-user-created__steps .mo-stepper__step { grid-template-columns: 32px minmax(0, 1fr); padding-bottom: 28px; }
.mo-user-created__steps .mo-stepper__step:last-child { padding-bottom: 0; }
.mo-user-created__steps .mo-stepper__step:not(:last-child)::before { left: 15.5px; top: 36px; bottom: 0; background: var(--bronze-200); }
.mo-user-created__steps .mo-stepper__bullet { width: 32px; height: 32px; font-size: 13px; font-weight: 600; }
.mo-user-created__steps .mo-stepper__step--done .mo-stepper__bullet { color: var(--neutre-50); }
.mo-user-created__steps .mo-stepper__step--active .mo-stepper__bullet { border: 0; background: var(--bronze-700); }
.mo-user-created__steps .mo-stepper__step--future .mo-stepper__bullet { border: 0; background: var(--surface-card); box-shadow: inset 0 0 0 1px var(--ink-200); }
.mo-user-created__steps .mo-stepper__eyebrow { font-weight: 600; letter-spacing: 0.14em; color: var(--bronze-700); }
.mo-user-created__steps .mo-stepper__eyebrow--active { color: var(--ink-900); }
.mo-user-created__steps .mo-stepper__step--future .mo-stepper__title { font-weight: 500; color: var(--ink-900); }
.mo-user-created__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 32px;
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: 0 1px 0 var(--cream-200);
}
.mo-user-created__card-head { display: flex; align-items: flex-start; gap: 18px; }
.mo-user-created__card-head .mo-stepper__eyebrow { margin: 0 0 6px; }
.mo-user-created__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--bronze-100);
  color: var(--bronze-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mo-user-created__card-title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink-900);
  text-wrap: balance;
}
.mo-user-created__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-body); }
.mo-user-created__email {
  font-weight: 600;
  color: var(--ink-900);
  background: var(--cream-100);
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.mo-user-created__hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--neutre-100);
  color: var(--bronze-700);
}
.mo-user-created__hint svg { flex: none; margin-top: 1px; }
.mo-user-created__hint p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-body); }
.mo-user-created__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 4px; }
.mo-user-created__resend,
.mo-user-created__resend:hover,
.mo-user-created__resend:focus-visible {
  min-height: 48px;
  padding: 0 24px;
  background: var(--surface-card);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--ink-900);
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 600;
}
.mo-user-created__resend:hover { background: var(--neutre-100); }
.mo-user-created__link,
.mo-user-created__link:hover {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--bronze-200);
}
.mo-user-created__link:hover { text-decoration-color: var(--ink-900); }
@media (max-width: 880px) {
  .mo-user-created { padding: 48px 0 72px; }
  .mo-user-created .mo-auth__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mo-user-created__card { padding: 24px; }
  .mo-user-created__actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .mo-user-created__resend { width: 100%; }
  .mo-user-created__link { align-self: center; }
  .mo-user-created__email { white-space: normal; word-break: break-all; background: none; padding: 0; }
}

/* ============================================================
   MESSAGE (encart W3 céladon — confirmation success/info/error)
   ============================================================ */
.mo-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 0 3px 3px 0;
  margin: 0 0 24px;
}
.mo-message__body { min-width: 0; }
.mo-message__text { margin: 0; max-width: none; font-size: 13px; line-height: 1.55; color: var(--ink-body); }
.mo-message--success {
  background: var(--celadon-50);
  border-left: 3px solid var(--celadon-dark, #2E5E50);
}
.mo-message--info {
  background: var(--bleuet-50);
  border-left: 3px solid var(--lilas-dark, #5C4F75);
}
.mo-message--error,
.mo-message--danger {
  background: var(--terracotta-50);
  border-left: 3px solid var(--terracotta-dark, #B5413B);
}

/* ============================================================
   MESSAGES global wrapper (top de page sous header)
   ============================================================ */
.mo-messages {
  background: transparent;
  padding: 16px 0 0;
}
.mo-messages__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mo-message {
  position: relative;
}
.mo-message__close {
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: currentColor;
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-base, 180ms) var(--ease, ease);
}
.mo-message__close:hover { opacity: 1; }
/* Variant warning (en plus de success/info/error/danger deja definis) */
.mo-message--warning {
  background: var(--bronze-100, #F0E6D1);
  border-left: 3px solid var(--bronze-600, #8B7240);
}
/* Variant debug (alias de info) */
.mo-message--debug {
  background: var(--neutre-100);
  border-left: 3px solid var(--ink-500);
}

/* Alias pour MESSAGE_TAGS Django legacy (alert-success / alert-info / etc.) */
.mo-message--alert-success {
  background: var(--celadon-50);
  border-left: 3px solid var(--celadon-dark, #2E5E50);
}
.mo-message--alert-info {
  background: var(--bleuet-50);
  border-left: 3px solid var(--lilas-dark, #5C4F75);
}
.mo-message--alert-warning {
  background: var(--bronze-100, #F0E6D1);
  border-left: 3px solid var(--bronze-600, #8B7240);
}
.mo-message--alert-danger,
.mo-message--alert-error {
  background: var(--terracotta-50);
  border-left: 3px solid var(--terracotta-dark, #B5413B);
}

/* ============================================================
   Override 28/04 : .mo-message en BANDEAU pleine largeur,
   contenu (icone+texte+close) aligne sur container via inner.
   ============================================================ */
.mo-messages { padding: 0; }
.mo-message {
  display: block;
  font-family: var(--font-primary);
  padding: 0;
  margin: 0;
  border-left: 0;
  border-radius: 0;
}
.mo-message + .mo-message { border-top: 1px solid rgba(0,0,0,0.05); }
/* Barre « Vous êtes connecté en tant que … » (connexion déléguée, base.html). */
.mo-imperso-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px var(--page-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  justify-content: space-between;
}
/* Mode connecté (21/10/2026) : bandeaux sur l'axe 1440 de l'en-tête et du
   sous-menu (header.css, .mo-header--admin / --porteur). Front non connecté :
   1280 inchangé. Classes posées sur <html> par base.html : #admin-ui,
   .mo-porteur-ui, .mo-investor-ui (connecté ni admin ni porteur). */
:is(#admin-ui, .mo-porteur-ui, .mo-investor-ui) :is(.mo-message__inner, .mo-imperso-bar__inner) {
  max-width: var(--container-wide);
}
/* Financeurs connectés : en-tête, sous-menu et pages sur 1440, comme l'admin
   et le porteur (porteur : porteur-compte-workspace.css). */
.mo-investor-ui .mo-header--connected .navbar,
.mo-investor-ui .mo-subnav__inner,
.mo-investor-ui :is(.mo-mon-projet__inner, .mo-resource__inner, .mo-dashboard__inner,
  .mo-payin__inner, .mo-payout__inner, .mo-fisc-legacy, .mo-fin-legacy-sep) {
  max-width: var(--container-wide);
}
.mo-message__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px var(--page-gutter);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Action link inline dans un .mo-message (ex: bouton "Renvoyer email" dans erreur login) */
.mo-message__action {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 5px 12px;
  background: var(--ink-900);
  color: var(--neutre-50, #F8F6F0) !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity var(--duration-base, 180ms) var(--ease, ease);
}
.mo-message__action:hover { opacity: 0.85; text-decoration: none; }
/* Boutons envoyés en POST dans un .mo-message (ex. Oui / Non de la lettre d'information, 20/10/2026) */
.mo-message__form { display: inline; margin: 0; }
button.mo-message__action { border: 0; cursor: pointer; font-family: inherit; line-height: inherit; }
/* Sur fond terracotta (erreur), bouton ink-900 reste lisible. Pas d override. */

/* Override 28/04 fin de soiree : couleurs des messages + action en lien flecheme */
.mo-message__text { color: inherit; }
.mo-message--alert-success, .mo-message--success { color: var(--celadon-700); }
.mo-message--alert-info, .mo-message--info { color: var(--bleuet-dark); }
.mo-message--alert-warning, .mo-message--warning { color: var(--bronze-700); }
.mo-message--alert-danger, .mo-message--alert-error,
.mo-message--danger, .mo-message--error { color: var(--terracotta-600); }

/* Action : lien gras flecheme, plus de pill noire */
.mo-message__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 0;
  background: transparent;
  color: inherit !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  border-radius: 0;
  white-space: nowrap;
  transition: text-decoration-color var(--duration-base, 180ms) var(--ease, ease);
}
.mo-message__action::after { content: " \2192"; font-weight: 600; transition: transform var(--duration-base, 180ms) var(--ease, ease); }
.mo-message__action:hover { text-decoration-thickness: 2px; }
.mo-message__action:hover::after { transform: translateX(2px); }
/* 21/10/2026 : flèche hors du soulignement (avant : soulignée à part, avec
   un trou) — en ligne, le pseudo-élément inline-block n'hérite pas du trait. */
.mo-message__action { display: inline; }
.mo-message__action::after { display: inline-block; margin-left: 6px; text-decoration: none; }
/* Actions en POST sous le texte (Oui / Non de la lettre d'information) : une
   ligne à elles, alignées sur le texte (sans la marge du lien en fin de phrase). */
.mo-message__body:has(> .mo-message__form) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
}
.mo-message__body:has(> .mo-message__form) > .mo-message__text { flex-basis: 100%; margin: 0; }
.mo-message__body > .mo-message__form .mo-message__action,
.mo-message__body:has(> .mo-message__form) > .mo-message__action { margin-left: 0; }

/* Override 28/04 v2 : texte messages en ink-900 ; le lien d'action garde la teinte du variant.
   09/10/2026 — fonds et teintes alignés sur la charte (paliers -50 / AA), pictos retirés. */
.mo-message__text { color: var(--ink-900); }
/* 22/10/2026 : réussite en texte céladon foncé sur fond céladon (5,2:1, AA). */
:is(.mo-message--alert-success, .mo-message--success) .mo-message__text { color: var(--celadon-700); }
.mo-message--alert-success .mo-message__action, .mo-message--success .mo-message__action { color: var(--celadon-700) !important; }
.mo-message--alert-info .mo-message__action, .mo-message--info .mo-message__action { color: var(--bleuet-dark) !important; }
.mo-message--alert-warning .mo-message__action, .mo-message--warning .mo-message__action { color: var(--bronze-700) !important; }
.mo-message--alert-danger .mo-message__action, .mo-message--alert-error .mo-message__action,
.mo-message--danger .mo-message__action, .mo-message--error .mo-message__action { color: var(--terracotta-600) !important; }

/* Override 28/04 v3 : alignement vertical icone+texte parfait sur message single-ligne */
.mo-message__inner { align-items: center; }

/* ============================================================
   DASHBOARD layout (espace connecté) — fond gris-bleu, stepper
   sidebar persistant + cards form. Cf. /dashboard/signup/*
   ============================================================ */
.mo-dashboard {
  background: var(--dash-bg, #E8ECF1);
  padding: 32px 0 64px;
  min-height: 70vh;
}
.mo-dashboard__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}
/* Wrapper header dashboard — refonte 2026-06-09. Le pattern dominant des  */
/* pages dashboard est H1 + sous-titre éditorial. Plutôt que de poser le   */
/* margin-bottom sur le title (cas sans subtitle) OU le subtitle (cas      */
/* avec subtitle), on consolide les 2 cas dans un wrapper qui porte le    */
/* margin-bottom unique et un gap interne entre title et subtitle.        */
/* Usage : <header class="mo-dashboard__header"><h1/><p subtitle/></header>*/
.mo-dashboard__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 48px;
}
.mo-dashboard__header .mo-dashboard__title,
.mo-dashboard__header .mo-dashboard__subtitle {
  margin: 0;
}

.mo-dashboard__title {
  font-family: var(--font-secondary, sans-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.018em;
  line-height: 1.18;
  margin: 0 0 12px;
}
.mo-dashboard__subtitle {
  font-family: var(--font-primary, sans-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-body, #424A55);
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 0 48px;
}
.mo-dashboard__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
/* ============================================================
   Stepper mobile compact (option B) — eyebrow "Etape X sur N"
   + titre etape courante + barre progression bronze-600.
   Cache en desktop ; remplace le stepper sidebar en mobile.
   IMPORTANT : declarer ces regles AVANT le @media (max-width: 880px)
   pour que la cascade applique correctement display: block en mobile.
   ============================================================ */
.mo-stepper-mobile {
  display: none;
  margin: 0 0 24px;
  padding: 0;
}
.mo-stepper-mobile__eyebrow {
  font-family: var(--font-primary, sans-serif);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500, #5F5E5A);
  font-weight: 500;
  margin: 0 0 6px;
}
.mo-stepper-mobile__title {
  font-family: var(--font-primary, sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900, #1C1F24);
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}
.mo-stepper-mobile__bar {
  height: 4px;
  background: var(--ink-100, #E5E7EB);
  border-radius: 99em;
  overflow: hidden;
}
.mo-stepper-mobile__bar-fill {
  height: 100%;
  background: var(--bronze-600, #9A835C);
  transition: width var(--duration-base, 200ms) var(--ease, ease);
}

@media (max-width: 880px) {
  .mo-dashboard__layout { grid-template-columns: 1fr; gap: 24px; }
  /* min-width: 0 sur grid items — empeche le contenu (form, select large) de forcer
     le track 1fr a deborder du container et de pousser la card hors du gutter mobile */
  .mo-dashboard__layout > * { min-width: 0; }
  .mo-dashboard__main { min-width: 0; max-width: 100%; }
  /* Cards : padding mobile reduit + width 100% du parent (deja box-border) */
  .mo-dashboard-card { padding: 22px 20px; max-width: 100%; }
  /* Mobile : on masque le stepper sidebar detaille au profit du stepper-mobile compact */
  .mo-stepper--side { display: none; }
  .mo-stepper-mobile { display: block; }
}

/* Stepper variant sidebar persistant pour dashboard (5 etapes verticales).
   top: 160px — laisse passer la navbar (~140px) sans la couvrir au scroll. */
.mo-stepper--side { margin: 0; max-width: 100%; position: sticky; top: 160px; }
.mo-stepper--side .mo-stepper__step { padding: 0 0 24px; }
.mo-stepper--side .mo-stepper__title { font-size: 13px; }
.mo-stepper--side .mo-stepper__text { font-size: 12px; line-height: 1.4; margin: 0; }
/* Bullet actif charte : fond bronze-600 (ocre), chiffre cream */
.mo-stepper__step--active .mo-stepper__bullet {
  background: var(--bronze-600, #9A835C);
  border: 0;
  color: var(--neutre-50, #F8F6F0);
  font-size: 12px;
  font-weight: 500;
}
.mo-stepper__step--active .mo-stepper__bullet::after { display: none; }
.mo-stepper__step--active .mo-stepper__bullet > span { color: var(--neutre-50, #F8F6F0); }

/* Mode --pending (refonte 2026-06-09) : étape obligatoire mais différée par */
/* l'utilisateur (ex : « Compléter plus tard » sur KYC). Bullet terracotta,  */
/* eyebrow « À compléter » terracotta. Distingué de --active (en cours) et   */
/* --future (à venir, optionnelle dans la séquence courante).                */
.mo-stepper__step--pending .mo-stepper__bullet {
  background: var(--terracotta-dark, #D86A6A);
  border: 0;
  color: var(--neutre-50, #F8F6F0);
  font-size: 12px;
  font-weight: 500;
}
.mo-stepper__step--pending .mo-stepper__bullet::after { display: none; }
.mo-stepper__step--pending .mo-stepper__bullet > span { color: var(--neutre-50, #F8F6F0); }
.mo-stepper__step--pending .mo-stepper__eyebrow { color: var(--terracotta-dark, #D86A6A); }
.mo-stepper__step--pending .mo-stepper__title { color: var(--ink-900); font-weight: 500; }

/* Card section dashboard (Identite, Coordonnees, Declarations...) */
.mo-dashboard-card {
  background: white;
  border: 0.5px solid var(--ink-100);
  border-radius: 6px;
  padding: 26px 28px;
  margin: 0 0 18px;
}
/* Refonte 2026-05-06 — typos card upgradées pour wait_for_validation et écrans
   de statut. Eyebrow uppercase fin (cohérent avec la convention pages hero),
   titre en Stack Sans Headline 22px (entre body 14px et hero 32px), lead à 15px. */
.mo-dashboard-card__eyebrow {
  font-family: var(--font-primary, sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 10px;
}
.mo-dashboard-card__title {
  font-family: var(--font-secondary, sans-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 18px;
}
/* Paragraphe principal de la card — texte lisible en taille body, ink-body pour
   contraste plus doux que le titre. À utiliser pour les écrans informatifs
   (ex: wait_for_validation, écrans de statut) plutôt que .mo-form__help (helper text). */
.mo-dashboard-card__lead {
  font-family: var(--font-primary, sans-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-body, #424A55);
  margin: 0 0 18px;
  max-width: none;
}

/* Bouton variant pill (CTA primary forms charte v2) */
.mo-button--pill { border-radius: 99em; padding-left: 28px; padding-right: 28px; }
.mo-button--pill::after { content: " \2192"; font-weight: 500; margin-left: 4px; }

/* Form actions row (footer dashboard form : pill droite, lien retour optionnel a gauche) */
.mo-form__actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin: 32px 0 0;
}
.mo-form__actions-row--with-back { justify-content: space-between; }
.mo-form__actions-row--center { justify-content: center; }
/* Un <form> imbriqué dans la rangée d'actions (ex. bouton POST « Dissocier »
   à côté d'un lien GET) doit se comporter comme un simple item flex, sans
   marge ni saut de ligne. */
.mo-form__actions-row form { margin: 0; display: inline-flex; }

/* Mobile : stack vertical, pill principal en haut (CTA), lien retour en bas centré.
   column-reverse parce que le HTML a "Précédent" first puis "Suivant" — on inverse pour que le CTA primaire soit en haut. */
@media (max-width: 600px) {
  .mo-form__actions-row,
  .mo-form__actions-row--with-back {
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }
  .mo-form__actions-row .mo-button {
    width: 100%;
    justify-content: center;
  }
  .mo-form__actions-row .mo-button-link {
    text-align: center;
    width: 100%;
  }
}
.mo-form__actions-row a {
  font-size: 13px;
  color: var(--ink-body);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease);
}
.mo-form__actions-row a:hover { color: var(--ink-900); }

/* (05/10/2026) Les champs des cartes suivent désormais le système « Doux » de forms.css :
   l'ancien fond transparent du pattern trait bas est retiré. */

/* Toggle pill pattern pour radio simple inline (Mme/M., natural/legal) */
/* Override .mo-form__radio-row dans une card : devient un toggle segmented */
.mo-dashboard-card .mo-form__radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 0;
  align-items: stretch;
}
.mo-dashboard-card .mo-form__radio-row__option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 18px;
  min-height: 56px;
  align-self: stretch;
  background: var(--neutre-50);
  border: 1px solid var(--ink-300);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  cursor: pointer;
  line-height: 1.25;
  transition: background-color var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease), color var(--duration-base) var(--ease);
}
.mo-dashboard-card .mo-form__radio-row__option:hover { border-color: var(--ink-500); }
.mo-dashboard-card .mo-form__radio-row__option:has(input[type="radio"]:checked) {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--neutre-50);
}
.mo-dashboard-card .mo-form__radio-dot { display: none; }

/* =============================================================================
   Widget KYC dashboard — refonte 4 mai 2026
   =============================================================================
   Affiche l'état de vérification d'identité (5 états) sur /dashboard/ et
   /dashboard/account/. Pattern v2 : card sobre avec accent border-left
   coloré selon l'état (neutre / info / success / warning / danger).

   Template : templates/widget_kyc_status.html
   Doc      : Refonte options/08-Tech-fixes/Chantier-email-transactionnel-KYC.md

   Variantes via classe modifier :
     --neutral  : pièce non transmise (call-to-action initial)
     --info     : en examen MangoPay (bleuet)
     --success  : validée (céladon)
     --warning  : périmée (bronze)
     --danger   : refusée (terracotta) + motif visible
   ============================================================================= */
.mo-kyc-widget {
  position: relative;
  background: white;
  border: 0.5px solid var(--ink-100);
  border-left-width: 3px;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 0 0 18px;
}
.mo-kyc-widget--neutral { border-left-color: var(--ink-300, #B0B6BD); }
.mo-kyc-widget--info    { border-left-color: var(--bleuet-dark, #2D4A78); }
.mo-kyc-widget--success { border-left-color: var(--celadon-dark, #2E5E50); }
.mo-kyc-widget--warning { border-left-color: var(--bronze-600, #8B7240); }
.mo-kyc-widget--danger  { border-left-color: var(--terracotta-dark, #B5413B); }

.mo-kyc-widget__eyebrow {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  margin: 0 0 6px;
  font-weight: 500;
  text-transform: uppercase;
}

.mo-kyc-widget__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.mo-kyc-widget__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* Refonte 2026-05-12 — pill KYC alignée sur mo-dashboard-card__completion :
   fond clair (--<color>-50), texte/border en dark, border-radius 999px,
   padding et font-size légèrement plus généreux pour une lecture facile en
   contexte head-meta de card collapsible. */
.mo-kyc-widget__pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary, sans-serif);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 0.5px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.mo-kyc-widget__pill--neutral {
  background: transparent;
  color: var(--ink-500, #6E7682);
  border-color: var(--ink-200, #D5D8DC);
}
.mo-kyc-widget__pill--info {
  background: var(--bleuet-50, #EEF2FA);
  color: var(--bleuet-dark, #2D4A78);
  border-color: var(--bleuet-dark, #2D4A78);
}
.mo-kyc-widget__pill--success {
  background: var(--celadon-50, #EAF3EE);
  color: var(--celadon-dark, #5C8A75);
  border-color: var(--celadon-dark, #5C8A75);
}
.mo-kyc-widget__pill--warning {
  background: #F5EFE4;
  color: #7A6B45;
  border-color: var(--bronze-600, #9A835C);
}
.mo-kyc-widget__pill--danger {
  background: #FCEAEA;
  color: #A53A3A;
  border-color: var(--terracotta-dark, #D86A6A);
}

.mo-kyc-widget__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body, #424A55);
  margin: 0 0 12px;
}

.mo-kyc-widget__reason {
  font-size: 13px;
  padding: 10px 12px;
  background: var(--terracotta-light, #F4DCD2);
  color: var(--terracotta-dark, #B5413B);
  border-radius: 4px;
  margin: 0 0 14px;
  line-height: 1.45;
}
.mo-kyc-widget__reason-label {
  font-weight: 500;
}

.mo-kyc-widget__cta {
  display: inline-block;
  padding: 9px 18px;
  background: var(--ink-900);
  color: var(--neutre-50, #FAFAF8);
  border: 1px solid var(--ink-900);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--duration-base, 0.18s) var(--ease, ease), border-color var(--duration-base, 0.18s) var(--ease, ease);
}
.mo-kyc-widget__cta:hover {
  background: var(--ink-700, #2A3038);
  border-color: var(--ink-700, #2A3038);
  color: var(--neutre-50, #FAFAF8);
  text-decoration: none;
}

.mo-kyc-widget__dismiss {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--ink-500, #5A626B);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  transition: background-color var(--duration-base, 0.18s) var(--ease, ease), color var(--duration-base, 0.18s) var(--ease, ease);
}
.mo-kyc-widget__dismiss:hover {
  background: var(--ink-100, #E6E8EB);
  color: var(--ink-900, #1A1F26);
}
.mo-kyc-widget__dismiss:focus-visible {
  outline: 2px solid var(--bleuet-dark, #2D4A78);
  outline-offset: 2px;
}

/* Responsive : passage à 1 colonne si la card est dans un grid étroit
   (la card s'adapte naturellement au container parent). */
@media (max-width: 480px) {
  .mo-kyc-widget { padding: 16px 18px; }
  .mo-kyc-widget__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .mo-kyc-widget__cta {
    display: block;
    text-align: center;
    width: 100%;
  }
}

/* =============================================================================
   Espace compte v2 — refonte 4 mai 2026
   =============================================================================
   Layout 2 colonnes (sidebar v2 + main) sur fond bleute --dash-bg coherent
   avec le tunnel signup. Status bar 3 cards en haut du main.

   Templates : dashboard_account.html, widget_account_sidebar.html,
   widget_account_status_bar.html

   Couvre is_investor (PP) en priorite. PM (is_company_user / is_company_investor)
   conservee mais sans status bar tant qu'elle n'est pas refondue.
   ============================================================================= */

.mo-account__main {
  min-width: 0;
}

/* Sur les pages compte, le subtitle hereditee de mo-dashboard a un margin
   bottom 48px qui creait trop d'air avant la status bar. On le reduit. */
.mo-account .mo-dashboard__subtitle {
  margin-bottom: 24px;
}

/* Refonte 2026-05-04 : force la font-family sur le wrapper compte. Les pages
   dashboard heritaient parfois d'une font legacy (form-control jQuery + cascade
   .dashboard) qui ecrasait le body. On force ici Stack Sans Text comme base. */
.mo-account {
  font-family: var(--font-primary, sans-serif);
}

/* Collapsible details/summary — utilise sur le questionnaire averti pour
   permettre de modifier les reponses sans noyer le user dans un long form
   quand son statut est deja valide. */
.mo-account__collapse {
  margin: 24px 0 0;
}
.mo-account__collapse > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-family: var(--font-primary, sans-serif);
  font-size: 13px;
  color: var(--ink-body, #424A55);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--ink-300, #B0B6BD);
  transition: color var(--duration-base, 0.18s) var(--ease, ease);
}
.mo-account__collapse > summary::-webkit-details-marker { display: none; }
.mo-account__collapse > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-500, #5A626B);
  border-bottom: 1.5px solid var(--ink-500, #5A626B);
  transform: rotate(45deg);
  transition: transform var(--duration-base, 0.18s) var(--ease, ease);
}
.mo-account__collapse[open] > summary::after {
  transform: rotate(-135deg);
}
.mo-account__collapse > summary:hover {
  color: var(--ink-900);
}
.mo-account__collapse-content {
  margin-top: 16px;
}

/* ---- Sidebar v2 (refonte 2026-05-04) ------------------------------------- */
.mo-account-sidebar {
  background: white;
  border: 0.5px solid var(--ink-100, #E6E8EB);
  border-radius: 6px;
  padding: 18px 0 12px;
  position: sticky;
  top: 160px;
}

/* Toggle bar (mobile uniquement, masque en desktop) */
.mo-account-sidebar__toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  border: none;
  font-family: var(--font-primary, sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.02em;
}

.mo-account-sidebar__toggle-current {
  font-weight: 400;
  color: var(--ink-500, #5A626B);
  font-size: 12px;
  margin-left: 8px;
}

.mo-account-sidebar__toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-700, #424A55);
  border-bottom: 1.5px solid var(--ink-700, #424A55);
  transform: rotate(45deg);
  transition: transform var(--duration-base, 0.18s) var(--ease, ease);
  flex-shrink: 0;
  margin-left: 8px;
}

.mo-account-sidebar[data-open="true"] .mo-account-sidebar__toggle-icon {
  transform: rotate(-135deg);
}

.mo-account-sidebar__group-label {
  font-family: var(--font-primary, sans-serif);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-500, #5A626B);
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 20px 6px;
  margin: 0;
}

.mo-account-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.mo-account-sidebar__list:last-child {
  margin-bottom: 0;
}

.mo-account-sidebar__list li + li {
  margin-top: 0;
}

.mo-account-sidebar__item {
  display: block;
  padding: 9px 20px 9px 18px;
  font-family: var(--font-primary, sans-serif);
  font-size: 13px;
  color: var(--ink-body, #424A55);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color var(--duration-base, 0.18s) var(--ease, ease), background-color var(--duration-base, 0.18s) var(--ease, ease), border-color var(--duration-base, 0.18s) var(--ease, ease);
  line-height: 1.4;
}

.mo-account-sidebar__item:hover {
  color: var(--ink-900);
  background: var(--neutre-50, #FAFAF8);
  text-decoration: none;
}

.mo-account-sidebar__item.is-active {
  color: var(--ink-900);
  font-weight: 500;
  border-left-color: var(--ink-900);
  background: var(--neutre-50, #FAFAF8);
}

/* ---- Status bar 3 cards (refonte 2026-05-04 — version compacte) ---------- */
/* Refonte 2026-05-04 (v2) : version plus compacte. Les eyebrows/values
   prenaient trop d'espace vertical et creaient une zone visuelle dominante.
   Layout final : ligne 1 = label uppercase à gauche + pill à droite ;
   ligne 2 = value (ink-900 medium) ; ligne 3 = hint (optionnel, plus petit). */
.mo-account-status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.mo-account-status-card {
  background: white;
  border: 0.5px solid var(--ink-100, #E6E8EB);
  border-radius: 6px;
  padding: 11px 14px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--duration-base, 0.18s) var(--ease, ease);
}

/* Refonte 2026-06-09 — Suppression du filet latéral (border-left 3px). */
/* Le signal d'état passe désormais par un dot 6px devant l'eyebrow,    */
/* pattern banque privée moderne (Memo Bank, Qonto, Hedg). Card        */
/* uniforme cream-200 + dot coloré scannable d'un coup d'œil + pill   */
/* à droite pour le détail. Validé Lucile 2026-06-09.                  */
.mo-account-status-card--neutral,
.mo-account-status-card--info,
.mo-account-status-card--success,
.mo-account-status-card--warning,
.mo-account-status-card--danger {
  border-left: 0.5px solid var(--ink-100, #E6E8EB);
}

.mo-account-status-card--link:hover {
  border-color: var(--ink-300, #B0B6BD);
  text-decoration: none;
}

/* Header de la card : label à gauche + pill à droite, sur une ligne */
.mo-account-status-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px;
}

.mo-account-status-card__label {
  font-family: var(--font-primary, sans-serif);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-500, #5A626B);
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}

.mo-account-status-card__main {
  margin: 0 0 3px;
}

.mo-account-status-card__value {
  font-family: var(--font-secondary, sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* Refonte 2026-06-09 — Pill neutre + dot d'état dans le pill.        */
/* Un seul repère coloré (le dot) pour ne pas saturer l'œil avec     */
/* deux signaux concurrents (pill ET dot). Le pill devient un        */
/* conteneur neutre cream-100 + texte ink-700 quel que soit l'état.  */
/* Le dot 6px porte la couleur de l'état.                            */
.mo-account-status-card__pill {
  font-family: var(--font-primary, sans-serif);
  font-size: 10px;
  padding: 2px 8px 2px 7px;
  border-radius: 99em;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--cream-100, #F4F1EB);
  color: var(--ink-700, #424A55);
}
.mo-account-status-card__pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-300, #B0B6BD);
  flex-shrink: 0;
}
.mo-account-status-card__pill--info::before    { background: var(--bleuet-dark, #2D4A78); }
.mo-account-status-card__pill--success::before { background: var(--celadon-dark, #2E5E50); }
.mo-account-status-card__pill--warning::before { background: var(--bronze-600, #8B7240); }
.mo-account-status-card__pill--danger::before  { background: var(--terracotta-dark, #B5413B); }

.mo-account-status-card__hint {
  font-family: var(--font-primary, sans-serif);
  font-size: 11px;
  color: var(--ink-500, #5A626B);
  line-height: 1.4;
  margin: 0;
}

a.mo-account-status-card:hover .mo-account-status-card__hint {
  color: var(--ink-900);
}

/* ---- Responsive : sidebar collapsible + status bar 1 col en mobile ------- */
@media (max-width: 880px) {
  .mo-account-sidebar {
    position: static;
    margin-bottom: 20px;
    padding: 0;
  }
  .mo-account-sidebar__toggle {
    display: flex;
  }
  .mo-account-sidebar__content {
    display: none;
    padding: 6px 0 12px;
    border-top: 0.5px solid var(--ink-100, #E6E8EB);
  }
  .mo-account-sidebar[data-open="true"] .mo-account-sidebar__content {
    display: block;
  }
  .mo-account-status-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }
}

/* Bandeau cookies (tarteaucitron, fixé en bas) : tant qu'il est affiché, on
   réserve sa hauteur en bas de page pour qu'il ne recouvre pas le contenu
   ni les boutons (ex. « Ouvrir le chat »). 05/10/2026. */
body:has(#tarteaucitronAlertBig:not([style*="none"])) {
  padding-bottom: 96px;
}
@media (max-width: 640px) {
  body:has(#tarteaucitronAlertBig:not([style*="none"])) {
    padding-bottom: 200px;
  }
}
