/* ============================================================
   Maticrypto Theme — Design System Tokens + Header/Footer
   Surcharge Bootstrap · v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --brand-deep:        #123c4d;
  --brand-deep-700:    #0d2c39;
  --brand-deep-500:    #1a536a;
  --brand-deep-300:    #4a7e91;
  --brand-deep-100:    #d7e3e8;
  --brand-deep-50:     #eef4f6;

  --brand-mint:        #1ee399;
  --brand-mint-700:    #14b87b;
  --brand-mint-300:    #7af0c3;
  --brand-mint-100:    #d3f9ea;
  --brand-mint-50:     #ecfcf5;

  --brand-gradient:    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-mint) 100%);

  --bg-0:              #ffffff;
  --bg-1:              #f7f9fa;
  --bg-2:              #eef2f4;
  --bg-3:              #e2e8eb;

  --fg-1:              #0a1d24;
  --fg-2:              #3d5763;
  --fg-3:              #7a8c94;
  --fg-disabled:       #b8c4c9;

  --border:            #e2e8eb;
  --border-strong:     #c8d2d6;

  --success:           #1ee399;
  --success-bg:        #ecfcf5;
  --success-fg:        #0e7a4d;
  --danger:            #ff4d6a;
  --danger-bg:         #ffeef1;
  --warning:           #ffb547;
  --warning-bg:        #fff6e6;

  --font-display:      'Sora', system-ui, sans-serif;
  --font-body:         'Manrope', system-ui, sans-serif;
  --font-mono:         'JetBrains Mono', monospace;

  /* ── Type scale (issue de colors_and_type.css du design system) ── */
  --text-xs:           0.75rem;     /* 12 */
  --text-sm:           0.875rem;    /* 14 */
  --text-base:         1rem;        /* 16 */
  --text-md:           1.125rem;    /* 18 */
  --text-lg:           1.25rem;     /* 20 */
  --text-xl:           1.5rem;      /* 24 */
  --text-2xl:          1.875rem;    /* 30 */
  --text-3xl:          2.25rem;     /* 36 */
  --text-4xl:          3rem;        /* 48 */
  --text-5xl:          3.75rem;     /* 60 */
  --text-6xl:          4.5rem;      /* 72 */

  /* ── Poids ── */
  --weight-light:      300;
  --weight-regular:    400;
  --weight-medium:     500;
  --weight-semibold:   600;
  --weight-bold:       700;
  --weight-black:      800;

  /* ── Line-heights ── */
  --lh-tight:          1.1;
  --lh-snug:           1.25;
  --lh-normal:         1.5;
  --lh-relaxed:        1.65;

  /* ── Letter-spacing ── */
  --tracking-tight:    -0.02em;
  --tracking-normal:   0;
  --tracking-caps:     0.08em;

  --radius-sm:         8px;
  --radius-md:         12px;
  --radius-lg:         16px;
  --radius-pill:       999px;

  --shadow-sm:   0 2px 6px rgba(10,29,36,.06), 0 1px 2px rgba(10,29,36,.04);
  --shadow-md:   0 8px 20px rgba(10,29,36,.08), 0 2px 6px rgba(10,29,36,.05);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-base:    200ms;
  --dur-slow:    400ms;

  /* navbar height — utile pour offset sticky */
  --nav-h: 70px;
}

/* ═══════════════════════════════════════════════════════════
   THEME DARK — surcharge des tokens
   Activée par classe `theme-dark` sur <html> (via JS).
   Toutes les vues qui utilisent var(--bg-0), var(--fg-1), etc.
   basculent automatiquement.
   ═══════════════════════════════════════════════════════════ */
html.theme-dark {
  /* Fonds : du deep ink (page) au teal moyen (cards élevées) */
  --bg-0:              #0a1d24;
  --bg-1:              #0e2832;
  --bg-2:              #143847;
  --bg-3:              #1f4453;

  /* Textes : inversés */
  --fg-1:              #f7f9fa;
  --fg-2:              #b8c4c9;
  --fg-3:              #7a8c94;
  --fg-disabled:       #4a5e68;

  /* Bordures plus chaudes */
  --border:            #1f4453;
  --border-strong:     #2c5667;

  /* Variantes de status — fonds atténués pour rester lisibles en dark */
  --success-bg:        rgba(30,227,153,.12);
  --success-fg:        #3ff0aa;
  --danger-bg:         rgba(255,77,106,.14);
  --warning-bg:        rgba(255,181,71,.14);

  /* Surcharges des nuances "ultra claires" qui ne marcheraient pas en dark */
  --brand-deep-50:     rgba(255,255,255,.04);
  --brand-deep-100:    rgba(255,255,255,.07);
  --brand-mint-50:     rgba(30,227,153,.10);
  --brand-mint-100:    rgba(30,227,153,.16);

  /* Shadows : plus marquées sur fond sombre */
  --shadow-sm:   0 2px 6px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.20);
  --shadow-md:   0 8px 20px rgba(0,0,0,.40), 0 2px 6px rgba(0,0,0,.20);
}

/* Color-scheme : indique au navigateur le thème pour les form controls
   natifs (datepicker, scrollbar, etc.) */
html.theme-dark { color-scheme: dark; }
:root          { color-scheme: light; }

/* body.section-bg a un background: #F3F3F3 !important codé en dur dans main.css.
   On l'écrase ici (light ET dark) pour qu'il s'aligne avec le bg du dashboard
   (.user-dashboard-body utilise --bg-1) et éviter la bande de couleur
   différente visible en haut/autour du contenu. */
body.section-bg {
    background: var(--bg-1,#f7f9fa) !important;
}
html.theme-dark body.section-bg {
    background: var(--bg-1,#0e2832) !important;
}

/* ═══════════════════════════════════════════════════════════
   THEME DARK — surcharges des composants
   Beaucoup de composants utilisent #fff en dur (sidebar, cards,
   modals, inputs…). On les remappe sur var(--bg-0) ou var(--bg-1)
   pour qu'ils basculent automatiquement.
   ═══════════════════════════════════════════════════════════ */

/* Structure générale : sidebar, topbar, profil */
html.theme-dark .mc-sidebar.user-sidebar,
html.theme-dark .mc-dash-topbar.user-navbar {
    background: var(--bg-0) !important;
    border-color: var(--border) !important;
}
html.theme-dark .mc-sidebar-profile {
    background: var(--bg-0);
    border-top-color: var(--border);
}

/* Sidebar tools (langue + dark mode toggle) : la zone "blanche" en bas */
html.theme-dark .mc-sidebar-tools {
    background: var(--bg-0);
    border-top-color: var(--border);
}
html.theme-dark .mc-sidebar-tool {
    background: var(--bg-1);
    border-color: var(--border);
    color: var(--fg-1);
}
html.theme-dark .mc-sidebar-tool:hover {
    background: rgba(30,227,153,.12);
    border-color: var(--brand-mint, #1ee399);
    color: var(--brand-mint, #1ee399);
}

/* Hover menu sidebar : surlignement mint translucide + texte mint
   (en light : reste deep teal sur fond clair, déjà OK) */
html.theme-dark .mc-sidebar-nav ul li a:hover,
html.theme-dark .sidebar-menu-list li a:hover {
    background: rgba(30,227,153,.10) !important;
    color: var(--brand-mint, #1ee399) !important;
}
html.theme-dark .mc-sidebar-nav ul li a:hover .mc-nav-icon {
    background: rgba(30,227,153,.18);
    color: var(--brand-mint, #1ee399);
}
/* Item actif en dark : fond mint + texte deep teal (cohérence avec le logo vert) */
html.theme-dark .mc-sidebar-nav ul li a.mc-nav-active,
html.theme-dark .sidebar-menu-list > li.mm-active > a,
html.theme-dark .sidebar-menu-list > li.mm-active > a:hover {
    background: var(--brand-mint, #1ee399) !important;
    color: var(--brand-deep, #123c4d) !important;
}
html.theme-dark .mc-sidebar-nav ul li a.mc-nav-active .mc-nav-icon {
    background: rgba(18,60,77,.14);
    color: var(--brand-deep, #123c4d);
}
/* Badges sur l'item actif en dark : inverser pour rester lisibles sur mint */
html.theme-dark .mc-sidebar-nav ul li a.mc-nav-active .mc-nav-badge--new {
    background: var(--brand-deep, #123c4d) !important;
    color: #ffffff !important;
}
html.theme-dark .mc-sidebar-nav ul li a.mc-nav-active .mc-nav-badge--soon {
    background: rgba(255,255,255,.85) !important;
    color: var(--brand-deep, #123c4d) !important;
}

/* Logo : bascule light/dark via CSS pur (pas de JS) */
.mc-sidebar-logo .mc-sidebar-logo-dark { display: none; }
html.theme-dark .mc-sidebar-logo .mc-sidebar-logo-light { display: none; }
html.theme-dark .mc-sidebar-logo .mc-sidebar-logo-dark  { display: block; }

/* ═══════════════════════════════════════════════════════════
   Select2 — dark mode overrides
   (utilisé sur withdraw, exchange, admin, etc. → mis dans le theme global)
   ═══════════════════════════════════════════════════════════ */
html.theme-dark .select2-container--default .select2-selection--single,
html.theme-dark .select2-container--default .select2-selection--multiple {
    background: var(--bg-1) !important;
    border-color: var(--border) !important;
}
html.theme-dark .select2-container--default .select2-selection--single .select2-selection__rendered,
html.theme-dark .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--fg-1) !important;
}
html.theme-dark .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--fg-3) !important;
}
html.theme-dark .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--fg-3) transparent transparent transparent !important;
}
html.theme-dark .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--fg-3) transparent !important;
}
/* Le dropdown qui s'ouvre */
html.theme-dark .select2-dropdown {
    background: var(--bg-0) !important;
    border-color: var(--border) !important;
}
html.theme-dark .select2-search--dropdown .select2-search__field {
    background: var(--bg-1) !important;
    border-color: var(--border) !important;
    color: var(--fg-1) !important;
}
html.theme-dark .select2-results__option {
    color: var(--fg-1) !important;
}
html.theme-dark .select2-container--default .select2-results__option--highlighted[aria-selected],
html.theme-dark .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(30,227,153,.14) !important;
    color: var(--brand-mint, #1ee399) !important;
}
html.theme-dark .select2-container--default .select2-results__option[aria-selected=true],
html.theme-dark .select2-container--default .select2-results__option--selected {
    background: var(--bg-2) !important;
    color: var(--fg-1) !important;
}

/* Texte par défaut des items menu en dark : plus clair que le fg-2 par défaut */
html.theme-dark .mc-sidebar-nav ul li a,
html.theme-dark .sidebar-menu-list li a { color: var(--fg-2) !important; }

/* Dropdown menu langues : fond sombre */
html.theme-dark .mc-sidebar-lang-menu { background: var(--bg-1); border-color: var(--border); }
html.theme-dark .mc-sidebar-lang-menu .dropdown-item { color: var(--fg-1); }
html.theme-dark .mc-sidebar-lang-menu .dropdown-item:hover { background: var(--bg-2); }

/* Bouton "Ajouter une adresse" dans le dropdown destinations enregistrées :
   var(--brand-mint-50) est presque transparent en dark → texte deep teal invisible.
   On force fond mint vif + texte deep foncé pour contraste maximal. */
html.theme-dark .mc-extra-saved-add {
    background: var(--brand-mint, #1ee399) !important;
    color: var(--brand-deep-700, #0d2c39) !important;
}
html.theme-dark .mc-extra-saved-add:hover {
    background: var(--brand-mint-700, #14b87b) !important;
    color: #ffffff !important;
}
html.theme-dark .mc-extra-saved-add-plus {
    color: var(--brand-deep-700, #0d2c39) !important;
}

/* Badge "DÉFAUT" sur une destination enregistrée — même problème de contraste */
html.theme-dark .mc-extra-saved-item .mc-extra-saved-default-tag {
    background: var(--brand-mint, #1ee399) !important;
    color: var(--brand-deep-700, #0d2c39) !important;
}

/* Cards génériques (dashboard, kyc, buy-sell, payment, etc.) */
html.theme-dark .mc-dash-card,
html.theme-dark .mc-card-box,
html.theme-dark .mc-calc-card,
html.theme-dark .mc-stepper-body,
html.theme-dark .mc-kyc-gate-card,
html.theme-dark .mc-verify-card,
html.theme-dark .mc-cp-card,
html.theme-dark .card,
html.theme-dark .custom--card {
    background: var(--bg-0);
    border-color: var(--border);
    color: var(--fg-1);
}

/* Tabs actifs (buy-sell, etc.) */
html.theme-dark .mc-calc-tabs { background: var(--bg-2); }
html.theme-dark .mc-calc-tab.active {
    background: var(--bg-0);
    color: var(--fg-1);
    border-color: var(--brand-mint, #1ee399);
    box-shadow: 0 1px 6px rgba(0,0,0,.4), 0 0 0 3px rgba(30,227,153,.22);
}

/* Modals : fond sombre */
html.theme-dark .modal-content,
html.theme-dark .mc-curr-modal,
html.theme-dark .mc-confirm-content,
html.theme-dark .mc-kyc-zoom-modal .modal-content {
    background: var(--bg-0);
    color: var(--fg-1);
    border-color: var(--border);
}
html.theme-dark .mc-curr-modal-search-wrap { background: var(--bg-1); }
html.theme-dark .modal-header,
html.theme-dark .modal-footer { border-color: var(--border); }
html.theme-dark .btn-close { filter: invert(1) brightness(2); }

/* Inputs / Selects / Textareas */
html.theme-dark .mc-field-input,
html.theme-dark .mc-field-select,
html.theme-dark .form-control,
html.theme-dark .form-select,
html.theme-dark .form--control {
    background: var(--bg-1);
    color: var(--fg-1);
    border-color: var(--border);
}
html.theme-dark .mc-field-input::placeholder,
html.theme-dark .form-control::placeholder {
    color: var(--fg-disabled);
}
html.theme-dark .mc-extra-input-wrap {
    background: var(--bg-1);
    border-color: var(--border);
}
html.theme-dark .mc-extra-input { background: transparent; color: var(--fg-1); }

/* Boutons "ghost"/secondaires qui utilisent #fff en dur */
html.theme-dark .mc-card-act,
html.theme-dark .mc-photo-action,
html.theme-dark .mc-help-cta-btn,
html.theme-dark .mc-confirm-btn--ghost,
html.theme-dark .mc-photo-change,
html.theme-dark .mc-calc-swap-btn {
    background: var(--bg-0);
    border-color: var(--border);
    color: var(--fg-1);
}

/* Pills devises (achat/vente) */
html.theme-dark .mc-calc-pill {
    background: var(--bg-1);
    border-color: var(--border);
    color: var(--fg-1);
}
html.theme-dark .mc-calc-pill-inner { color: var(--fg-1); }

/* Listes / items modaux */
html.theme-dark .mc-curr-item:hover { background: var(--bg-1); }
html.theme-dark .mc-curr-item--active { background: rgba(30,227,153,.10) !important; }
html.theme-dark .mc-curr-item-name { color: var(--fg-1); }
html.theme-dark .list-group-item {
    background: transparent;
    color: var(--fg-1);
    border-color: var(--border);
}

/* Photos KYC : zones drop/upload */
html.theme-dark .mc-photo-drop { background: var(--bg-1); border-color: var(--border-strong); }
html.theme-dark .mc-photo-drop.is-dragging,
html.theme-dark .mc-photo-drop:hover {
    background: rgba(30,227,153,.08);
    border-color: var(--brand-mint);
}
html.theme-dark .mc-photo-drop.has-image { background: var(--bg-0); border-color: var(--brand-deep-500, #1a536a); }

/* Submit buttons primary (mint) restent mint mais texte legèrement plus contrasté */
html.theme-dark .mc-btn-primary,
html.theme-dark .mc-calc-submit-btn { color: var(--brand-deep, #123c4d); }

/* Hover du bouton ghost en dark : par défaut bg --bg-2 + color --brand-deep
   donne un texte teal foncé sur fond sombre = invisible. On passe sur un
   fond mint atténué + texte/border mint pour rester lisible. */
html.theme-dark .mc-btn-ghost:hover {
    background: var(--brand-mint-100, rgba(30,227,153,.16));
    color: var(--brand-mint, #1ee399);
    border-color: var(--brand-mint, #1ee399);
}

/* Bannières d'alerte (success/danger/warning/info) — fonds atténués mint/red/orange/blue */
html.theme-dark .mc-alert--danger  { background: rgba(255,77,106,.10); border-color: rgba(255,77,106,.32); }
html.theme-dark .mc-alert--warning { background: rgba(255,181,71,.10); border-color: rgba(255,181,71,.32); }
html.theme-dark .mc-alert--info    { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.30); }
html.theme-dark .mc-alert-body strong { color: var(--fg-1); }
html.theme-dark .mc-alert-body span   { color: var(--fg-2); }

/* Texte muted / Bootstrap helpers */
html.theme-dark .text-muted { color: var(--fg-3) !important; }
html.theme-dark .text-dark  { color: var(--fg-1) !important; }
html.theme-dark hr { border-color: var(--border); }

/* Dropdown menus */
html.theme-dark .dropdown-menu {
    background: var(--bg-1);
    border-color: var(--border);
    color: var(--fg-1);
}
html.theme-dark .dropdown-item { color: var(--fg-1); }
html.theme-dark .dropdown-item:hover,
html.theme-dark .dropdown-item:focus { background: var(--bg-2); color: var(--fg-1); }
html.theme-dark .dropdown-divider { border-color: var(--border); }

/* ── Reset global typo ───────────────────────────────────── */
body {
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  color: var(--fg-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
}

/* Texte courant — couleur primaire par défaut */
p,
.body-md,
.body-sm {
  color: var(--fg-1);
}

/* ── Utilitaires typographiques ──────────────────────────── */

/* Texte secondaire avec contraste acceptable (ex: labels, descriptions courtes) */
.body-muted {
  color: var(--fg-2) !important;
  font-weight: 500;        /* poids maintenu — règle : jamais poids faible + couleur faible */
}

/* Texte vraiment désaccentué (ex: timestamp, note légère) */
.body-subtle {
  color: var(--fg-3) !important;
  font-weight: 500;        /* idem */
  font-size: 0.78rem;
}

/* ============================================================
   HEADER
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   Header flottant pill-style (overlay glassmorphism)
   Appliqué globalement sur toutes les pages publiques
   ══════════════════════════════════════════════════════════════ */
.mc-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1240px;
  height: auto;
  z-index: 1000;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  box-shadow:
      0 10px 30px rgba(10,29,36,.08),
      0 2px 8px rgba(10,29,36,.04),
      inset 0 1px 0 rgba(255,255,255,.6);
  transition: top .25s ease, box-shadow .25s ease, background .25s ease;
}

.mc-header.scrolled {
  top: 10px;
  background: rgba(255,255,255,.88);
  box-shadow:
      0 12px 36px rgba(10,29,36,.12),
      0 4px 12px rgba(10,29,36,.06);
}

html.theme-dark .mc-header {
  background: rgba(14,40,50,.7);
  border-color: rgba(255,255,255,.08);
  box-shadow:
      0 10px 30px rgba(0,0,0,.4),
      0 2px 8px rgba(0,0,0,.2),
      inset 0 1px 0 rgba(255,255,255,.08);
}
html.theme-dark .mc-header.scrolled {
  background: rgba(14,40,50,.82);
}

.mc-header .mc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding: 8px 22px;
  max-width: none;
  margin: 0 auto;
}

/* Padding global pour ne pas être masqué par le header fixed.
   Appliqué SEULEMENT quand le header pill flottant est présent dans la page
   (pas sur le dashboard utilisateur qui a sa propre sidebar). */
body:has(> .mc-header) { padding-top: 96px; }
body.home-landing { padding-top: 0; }

/* ══════════════════════════════════════════════════════════════
   Carte virtuelle (visual) — partagé entre user/card et popup welcome
   ══════════════════════════════════════════════════════════════ */
.mc-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 20px;
  overflow: hidden;
  padding: 22px 24px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(10,29,36,.30), 0 8px 16px rgba(10,29,36,.16);
  display: flex; flex-direction: column;
  transition: background-color 320ms var(--ease-out, ease), background-image 320ms var(--ease-out, ease);
}
.mc-card-visual--navy {
  background-color: #0a2a3a;
  background-image:
    radial-gradient(ellipse 85% 70% at 80% 20%, rgba(30,227,153,.12) 0%, transparent 65%),
    linear-gradient(135deg, #0a2a3a 0%, #123c4d 55%, #1a536a 100%);
}
.mc-card-visual--forest {
  background-color: #062a1c;
  background-image:
    radial-gradient(ellipse 70% 60% at 78% 30%, rgba(30,227,153,.22) 0%, transparent 60%),
    linear-gradient(135deg, #062a1c 0%, #0e3e2d 50%, #0e6a47 100%);
}
.mc-card-visual-watermark {
  position: absolute;
  right: -30px; top: 58%;
  transform: translateY(-50%);
  width: 320px; height: 320px;
  pointer-events: none; z-index: 1;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.08;
}
.mc-card-visual-top,
.mc-card-visual-number,
.mc-card-visual-foot { position: relative; z-index: 2; }
.mc-card-visual-top {
  display: flex; justify-content: space-between; align-items: center;
}
.mc-card-visual-wordmark {
  height: 28px; width: auto; display: block;
  filter: brightness(0) invert(1);
  user-select: none; -webkit-user-drag: none;
}
.mc-card-visual-visa {
  font-family: var(--font-display, 'Sora', sans-serif);
  font-weight: 900; font-style: italic;
  font-size: 1.5rem; letter-spacing: -0.03em; color: #fff;
}
.mc-card-visual-number {
  margin-top: auto; margin-bottom: 14px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: 0.08em; color: #fff;
}
.mc-card-visual-number > span { display: inline-block; }
.mc-card-visual-last4 { color: #fff; letter-spacing: 0.1em; }
.mc-card-visual-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px;
}
.mc-card-visual-foot-right { text-align: right; }
.mc-card-visual-foot-label {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 4px;
}
.mc-card-visual-foot-value {
  font-family: var(--font-display, 'Sora', sans-serif);
  font-size: 0.96rem; font-weight: 700;
  color: #fff; letter-spacing: 0.04em;
}

/* Mobile : on bascule le header en mode CLASSIQUE (full-width, no pill)
   La pill flottante reste pour desktop uniquement. */
@media (max-width: 768px) {
  .mc-header {
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    background: var(--bg-0, #ffffff) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 1px 0 var(--border, rgba(0,0,0,.08)),
                0 4px 12px rgba(10,29,36,.06) !important;
  }
  html.theme-dark .mc-header {
    background: var(--bg-0, #0a2030) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.06),
                0 4px 12px rgba(0,0,0,.4) !important;
  }
  .mc-header.scrolled {
    top: 0 !important;
    background: var(--bg-0, #ffffff) !important;
  }
  html.theme-dark .mc-header.scrolled {
    background: var(--bg-0, #0a2030) !important;
  }
  .mc-header .mc-nav { padding: 10px 18px !important; }
  .mc-header .mc-logo img { height: 36px; }
  body:has(> .mc-header) { padding-top: 64px; }
}

/* Logo */
.mc-header .mc-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* Nav links */
.mc-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mc-nav-links a {
  display: block;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur-base), background var(--dur-base);
  white-space: nowrap;
}

.mc-nav-links a:hover {
  color: var(--brand-deep);
  background: var(--bg-2);
}

.mc-nav-links a.active {
  color: var(--brand-deep);
  background: var(--brand-deep-50);
  font-weight: 600;
}

/* CTA zone */
.mc-nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language selector */
.mc-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a6470' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  transition: border-color var(--dur-base);
}

.mc-lang-select:focus { outline: none; border-color: var(--brand-deep); }
.mc-lang-select option { background: #fff; color: var(--fg-1); }

/* Buttons */
.mc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base),
              transform 80ms,
              box-shadow var(--dur-base);
  white-space: nowrap;
}

.mc-btn:active { transform: scale(.97); }

.mc-btn-ghost {
  background: transparent;
  color: var(--fg-1);
  border: 1.5px solid var(--border-strong);
}

.mc-btn-ghost:hover {
  background: var(--bg-2);
  color: var(--brand-deep);
  border-color: var(--brand-deep-300);
  text-decoration: none;
}

.mc-btn-primary {
  background: var(--brand-mint);
  color: var(--brand-deep-700);
}

.mc-btn-primary:hover {
  background: var(--brand-mint-700);
  color: var(--brand-deep-700);
  box-shadow: 0 0 0 4px rgba(30,227,153,.2);
  text-decoration: none;
}

/* ── Hamburger (mobile) ──────────────────────────────────── */
.mc-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.mc-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg-1);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base);
}

.mc-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mc-hamburger.open span:nth-child(2) { opacity: 0; }
.mc-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu drawer ──────────────────────────────────── */
.mc-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-deep-700);
  overflow-y: auto;
  z-index: 999;
  padding: 16px 24px 40px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur-slow) var(--ease-out);
}

.mc-mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mc-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.mc-mobile-menu ul li a {
  display: block;
  padding: 13px 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--dur-base);
}

.mc-mobile-menu ul li a:hover,
.mc-mobile-menu ul li a.active { color: var(--brand-mint); }

.mc-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.mc-mobile-cta .mc-btn {
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.95rem;
}

/* Ghost button sur fond sombre (menu mobile) */
.mc-mobile-cta .mc-btn-ghost {
  color: rgba(255,255,255,.85) !important;
  border-color: rgba(255,255,255,.25) !important;
  background: transparent !important;
}

.mc-mobile-cta .mc-btn-ghost:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.5) !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .mc-nav-links,
  .mc-nav-cta { display: none; }
  .mc-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .mc-header .mc-nav { padding: 0 16px; }
}


/* ============================================================
   HERO — Split layout
   ============================================================ */

.mc-hero {
  display: flex;
  min-height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

/* ── Côté gauche ──────────────────────────────────────────── */
.mc-hero-left {
  flex: 1;
  background: var(--bg-1);
  display: flex;
  align-items: center;
}

.mc-hero-left-inner {
  padding: 72px 56px 72px 64px;
  max-width: 580px;
  width: 100%;
}

/* Badge */
.mc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-mint-50);
  color: var(--success-fg);
  border: 1px solid var(--brand-mint-100);
  border-radius: var(--radius-pill);
  padding: 5px 14px 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.mc-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-mint);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(30,227,153,.2);
  animation: mc-pulse 2s ease-in-out infinite;
}

@keyframes mc-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(30,227,153,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(30,227,153,.05); }
}

/* Titre */
.mc-hero-heading {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  color: var(--fg-1);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  word-break: normal !important;
}

.mc-text-gradient {
  /* Dégradé deep teal → mint pour les mots-clés highlight */
  background: linear-gradient(130deg, var(--brand-deep) 0%, var(--brand-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sous-titre */
.mc-hero-sub {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

/* CTAs */
.mc-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.mc-btn-lg {
  padding: 13px 26px !important;
  font-size: 0.95rem !important;
}

.mc-btn-ghost-dark {
  color: var(--fg-1) !important;
  border-color: rgba(10,29,36,.25) !important;
  background: transparent !important;
}

.mc-btn-ghost-dark:hover {
  background: rgba(10,29,36,.06) !important;
  border-color: rgba(10,29,36,.4) !important;
  color: var(--fg-1) !important;
  text-decoration: none !important;
}

/* Stats row */
.mc-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.mc-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mc-stat-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-1);
  line-height: 1.2;
}

.mc-stat-mono {
  font-family: var(--font-mono) !important;
  font-size: 0.8rem !important;
  color: var(--brand-deep) !important;
  letter-spacing: 0.02em;
}

.mc-stat-label {
  font-size: 0.72rem;
  color: var(--fg-3);
  line-height: 1.35;
}

.mc-stat-sep {
  width: 1px;
  height: 34px;
  background: var(--border-strong);
  flex-shrink: 0;
  align-self: center;
}

/* ── Côté droit ───────────────────────────────────────────── */
.mc-hero-right {
  width: 50%;
  background: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
}

/* Cercles décoratifs en arrière-plan */
.mc-hero-right::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,227,153,.12) 0%, transparent 65%);
  pointer-events: none;
}

.mc-hero-right::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,227,153,.07) 0%, transparent 65%);
  pointer-events: none;
}

.mc-hero-phone-wrap {
  position: relative;
  z-index: 1;
}

/* ── Phone frame ──────────────────────────────────────────── */
.mc-phone-frame {
  width: 240px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,.35),
              inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}

.mc-phone-notch {
  width: 60px;
  height: 5px;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-pill);
  margin: 0 auto 10px;
}

.mc-phone-screen {
  background: var(--brand-deep-700);
  border-radius: 26px;
  padding: 16px;
  overflow: hidden;
}

/* Status bar */
.mc-phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mc-phone-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}

.mc-phone-signals {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.mc-phone-signals span {
  width: 3px;
  background: rgba(255,255,255,.45);
  border-radius: 1px;
}
.mc-phone-signals span:nth-child(1) { height: 4px; }
.mc-phone-signals span:nth-child(2) { height: 6px; }
.mc-phone-signals span:nth-child(3) { height: 8px; }
.mc-phone-signals span:nth-child(4) { height: 10px; background: var(--brand-mint); }

/* Balance */
.mc-phone-balance {
  text-align: center;
  margin-bottom: 20px;
}

.mc-phone-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  opacity: 1;
  font-family: var(--font-body);
}

.mc-phone-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
  opacity: 1;
  letter-spacing: -0.02em;
}

.mc-phone-currency {
  font-size: 0.8rem;
  color: var(--brand-mint);
  font-weight: 700;
  margin-bottom: 3px;
  opacity: 1;
  letter-spacing: 0.05em;
}

.mc-phone-usd {
  font-size: 0.68rem;
  color: rgba(255,255,255,.4);
  font-family: var(--font-mono);
  opacity: 1;
}

/* Boutons achat/vente */
.mc-phone-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.mc-phone-btn {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-base);
  opacity: 1;
}

.mc-phone-btn--buy {
  background: var(--brand-mint);
  color: var(--brand-deep-700);
}

.mc-phone-btn--buy:hover { background: var(--brand-mint-700); }

.mc-phone-btn--sell {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.12);
}

.mc-phone-btn--sell:hover { background: rgba(255,255,255,.15); }

/* Liste mini actifs */
.mc-phone-assets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-phone-asset {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.06);
}

.mc-asset-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mc-asset-name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  width: 28px;
  flex-shrink: 0;
}

.mc-asset-price {
  flex: 1;
  font-size: 0.6rem;
  color: rgba(255,255,255,.4);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-asset-change {
  font-size: 0.6rem;
  font-weight: 600;
  flex-shrink: 0;
}

.mc-positive { color: var(--brand-mint); }
.mc-negative { color: var(--danger); }
.mc-neutral  { color: rgba(255,255,255,.35); }

/* ── Cartes flottantes ────────────────────────────────────── */
.mc-phone-card {
  position: absolute;
  background: rgba(255,255,255,.95);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  white-space: nowrap;
  z-index: 2;
  animation: mc-float 4s ease-in-out infinite;
}

.mc-phone-card--rate {
  top: -20px;
  right: -56px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  animation-delay: 0s;
}

.mc-phone-card--tx {
  bottom: 20px;
  left: -64px;
  animation-delay: 2s;
}

.mc-phone-card-label {
  font-size: 0.62rem;
  color: var(--fg-3);
  font-weight: 500;
  opacity: 1;
}

.mc-phone-card-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg-1);
  font-family: var(--font-mono);
  opacity: 1;
}

.mc-phone-card-change {
  font-size: 0.68rem;
  font-weight: 700;
}

.mc-phone-card i {
  font-size: 1.1rem;
}

@keyframes mc-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ── Responsive hero ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .mc-hero-left-inner { padding: 56px 40px; }
  .mc-phone-card--rate { right: -30px; }
  .mc-phone-card--tx { left: -30px; }
}

@media (max-width: 991px) {
  .mc-hero { flex-direction: column; min-height: auto; }

  .mc-hero-left { width: 100%; }
  .mc-hero-left-inner { padding: 56px 24px; max-width: 100%; }

  .mc-hero-right {
    width: 100%;
    padding: 56px 24px;
    min-height: 420px;
  }

  .mc-hero-heading { font-size: 2rem; }

  .mc-phone-card--rate { top: -10px; right: -10px; }
  .mc-phone-card--tx  { bottom: 10px; left: -10px; }
}

@media (max-width: 480px) {
  .mc-hero-left-inner { padding: 40px 20px; }
  .mc-hero-heading { font-size: 1.7rem; }
  .mc-stat-sep { display: none; }
  .mc-hero-stats { gap: 18px; }
  .mc-phone-card { display: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.mc-footer {
  background: #0a1d24;
  color: rgba(255,255,255,.65);
  font-family: var(--font-body);
}

/* Upper zone */
.mc-footer-upper {
  display: grid;
  grid-template-columns: 280px repeat(4, 1fr);
  gap: 40px;
  padding: 64px 0 48px;
}

/* Brand col */
.mc-footer-brand {}

.mc-footer-brand .mc-footer-logo img {
  height: 38px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

.mc-footer-brand .mc-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-footer-brand .mc-footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--dur-base);
}

.mc-footer-brand .mc-footer-contact a:hover { color: var(--brand-mint); }

.mc-footer-brand .mc-footer-contact a i {
  width: 18px;
  text-align: center;
  color: var(--brand-mint);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Link cols */
.mc-footer-col h5 {
  font-family: var(--font-display) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.35) !important;
  margin-bottom: 16px;
}

.mc-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--dur-base);
  line-height: 1.5;
}

.mc-footer-col ul li a:hover { color: var(--brand-mint); }

/* Divider */
.mc-footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 0;
}

/* Bottom bar */
.mc-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.mc-footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
}

.mc-footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mc-footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}

.mc-footer-socials a:hover {
  background: rgba(30,227,153,.12);
  color: var(--brand-mint);
  border-color: rgba(30,227,153,.3);
}

/* ── Mobile accordion (footer) ───────────────────────────── */
.mc-footer-accordion {
  display: none;
}

.mc-footer-accordion-item {
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.mc-footer-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  cursor: pointer;
}

.mc-footer-accordion-trigger i {
  font-size: 1rem;
  color: rgba(255,255,255,.4);
  transition: transform var(--dur-base) var(--ease-out);
}

.mc-footer-accordion-trigger.open i { transform: rotate(180deg); }

.mc-footer-accordion-body {
  display: none;
  padding-bottom: 12px;
}

.mc-footer-accordion-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-footer-accordion-body ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  display: block;
  padding: 3px 0;
}

.mc-footer-accordion-body ul li a:hover { color: var(--brand-mint); }

/* ── Responsive footer ───────────────────────────────────── */
@media (max-width: 1100px) {
  .mc-footer-upper {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .mc-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .mc-footer-upper { display: none; }
  .mc-footer-accordion { display: block; padding: 32px 0 8px; }

  .mc-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ── Cookie bar ──────────────────────────────────────────── */
.cookies-card {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px 24px;
  z-index: 9999;
  transition: opacity var(--dur-slow);
}

.cookies-card.hide { opacity: 0; pointer-events: none; }
.cookies-card.d-none { display: none !important; }

.cookies-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-mint-50);
  color: var(--brand-mint-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 12px;
}

.cookies-card__content {
  font-size: 0.875rem;
  color: var(--fg-2);
  text-align: center;
  margin-bottom: 16px;
}

.cookies-card__content a { color: var(--brand-mint-700); }

.cookies-card .btn.policy {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--brand-mint);
  color: var(--brand-deep-700);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--dur-base);
}

.cookies-card .btn.policy:hover { background: var(--brand-mint-700); }


/* ============================================================
   NEUTRALISATION DES CONFLITS CSS HÉRITÉS
   (main.css · footer.css · header.css chargés avant ce fichier)
   ============================================================ */

/* ── main.css : header { word-break: break-all; z-index: 99 } ── */
header.mc-header,
header.mc-header * {
  word-break: normal;
  word-spacing: normal;
}

header.mc-header {
  word-break: normal !important;
  z-index: 1000 !important;
  background: #ffffff !important;
}

header.mc-header.scrolled {
  background: rgba(255,255,255,.97) !important;
}

/* ── footer.css : footer { padding: 5rem 0 0; background: #0F172A } ── */
footer.mc-footer {
  padding: 0 !important;
  background-color: #0a1d24 !important;
}

/* ── footer.css : footer p { opacity: .7; margin: 0 } ── */
footer.mc-footer p,
footer.mc-footer li,
footer.mc-footer a,
footer.mc-footer h4,
footer.mc-footer h5,
footer.mc-footer span,
footer.mc-footer button {
  opacity: 1;
}

/* ── footer.css : footer h4 { display: flex; justify-content: space-between } ── */
footer.mc-footer h5 {
  display: block !important;
  justify-content: unset !important;
}

/* ── footer.css : footer ul { list-style: none; padding-left: 0 } ── */
/* (déjà cohérent avec notre design, mais on force le padding) */
footer.mc-footer ul {
  padding-left: 0;
}

/* ── footer.css : footer ul li { margin-bottom: 1rem } ── */
/* Nos .mc-footer-col ul utilisent gap: 8px, pas margin-bottom */
footer.mc-footer .mc-footer-col ul li,
footer.mc-footer .mc-footer-accordion-body ul li {
  margin-bottom: 0;
}

/* ── footer.css : footer a { color: #94A3B8 } ──
   Nos sélecteurs ont une spécificité supérieure mais on sécurise */
footer.mc-footer .mc-footer-brand .mc-footer-contact a { color: rgba(255,255,255,.6); }
footer.mc-footer .mc-footer-col ul li a { color: rgba(255,255,255,.6); }
footer.mc-footer .mc-footer-accordion-body ul li a { color: rgba(255,255,255,.5); }
footer.mc-footer .mc-footer-copy { color: rgba(255,255,255,.35); opacity: 1; }
footer.mc-footer .mc-footer-socials a { color: rgba(255,255,255,.55); }

/* ── header.css : body { font-family: Sora } — déjà géré via var(--font-body) ── */
/* ── header.css : .dropdown .dropdown-menu { display: none } ── */
/* ── header.css : .dropdown:hover > .dropdown-menu { display: block } ── */
/* Nos menus n'utilisent pas Bootstrap dropdown donc pas de conflit ── */

/* ── Sécurisation mise en page flex header ── */
header.mc-header .mc-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

header.mc-header .mc-nav-links {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
}

@media (max-width: 991px) {
  header.mc-header .mc-nav-links,
  header.mc-header .mc-nav-cta {
    display: none !important;
  }
  header.mc-header .mc-hamburger {
    display: flex !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   Auth pages — shared (login · password reset · register)
   ═══════════════════════════════════════════════════════════════ */

.mc-auth-wrap {
  display: flex;
  min-height: calc(100vh - var(--nav-h, 70px));
  background: var(--bg-1, #f7f9fa);
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.mc-auth-form-inner {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border, #e2e8eb);
  padding: 40px;
  box-shadow: 0 4px 24px rgba(10,29,36,.06);
}

.mc-auth-form-header { margin-bottom: 28px; }

.mc-auth-title {
  font-family: var(--font-display, 'Sora', sans-serif) !important;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fg-1, #0a1d24);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.mc-auth-subtitle {
  font-size: 0.875rem;
  color: var(--fg-3, #7a8c94);
  margin: 0;
}

.mc-auth-subtitle a {
  color: var(--brand-deep, #123c4d);
  font-weight: 600;
  text-decoration: none;
}

.mc-auth-subtitle a:hover { color: var(--brand-mint, #1ee399); }

/* Fields */
.mc-auth-form { display: flex; flex-direction: column; gap: 18px; }
.mc-field     { display: flex; flex-direction: column; gap: 6px; }

.mc-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mc-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-1, #0a1d24);
}

.mc-field-forgot {
  font-size: 0.78rem;
  color: var(--fg-3, #7a8c94);
  text-decoration: none;
  transition: color 200ms;
}
.mc-field-forgot:hover { color: var(--brand-deep, #123c4d); }

.mc-field-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.9rem;
  color: var(--fg-1, #0a1d24);
  background: var(--bg-1, #f7f9fa);
  border: 1.5px solid var(--border, #e2e8eb);
  border-radius: var(--radius-md, 12px);
  transition: border-color 200ms, box-shadow 200ms;
  outline: none;
  box-sizing: border-box;
}
.mc-field-input::placeholder { color: var(--fg-disabled, #b8c4c9); }
.mc-field-input:focus {
  border-color: var(--brand-deep, #123c4d);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18,60,77,.08);
}

.mc-field-input-wrap { position: relative; }
.mc-field-input-wrap .mc-field-input { padding-right: 44px; }

.mc-field-eye {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--fg-3, #7a8c94);
  cursor: pointer; font-size: 0.85rem;
  transition: color 200ms;
}
.mc-field-eye:hover { color: var(--brand-deep, #123c4d); }

/* Password strength hints */
.mc-field-hints {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.mc-field-hint {
  font-size: 0.75rem;
  color: var(--fg-3, #7a8c94);
  display: flex;
  align-items: center;
  gap: 5px;
}
.mc-field-hint::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-strong, #c8d4d9);
  flex-shrink: 0;
}
.mc-field-hint.error  { color: #e53e3e; }
.mc-field-hint.error::before  { background: #e53e3e; }
.mc-field-hint.success { color: var(--brand-mint-700, #14b87b); }
.mc-field-hint.success::before { background: var(--brand-mint-700, #14b87b); }

/* Submit */
.mc-btn-submit {
  width: 100% !important;
  justify-content: center;
  padding: 13px 20px !important;
  font-size: 0.95rem !important;
  margin-top: 4px;
  border-radius: var(--radius-pill, 999px) !important;
}

/* Back link */
.mc-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--fg-3, #7a8c94);
  text-decoration: none;
  transition: color 200ms;
  margin-top: 4px;
  justify-content: center;
}
.mc-auth-back:hover { color: var(--brand-deep, #123c4d); }

/* OTP / code verification */
.mc-otp-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0;
}
.mc-otp-input {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: var(--fg-1, #0a1d24);
  background: var(--bg-1, #f7f9fa);
  border: 1.5px solid var(--border, #e2e8eb);
  border-radius: var(--radius-md, 12px);
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}
.mc-otp-input:focus {
  border-color: var(--brand-deep, #123c4d);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18,60,77,.08);
}

/* Divider social */
.mc-auth-divider {
  position: relative;
  text-align: center;
  margin: 4px 0;
}
.mc-auth-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border, #e2e8eb);
}
.mc-auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 12px;
  font-size: 0.75rem;
  color: var(--fg-3, #7a8c94);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Social buttons */
.mc-social-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mc-social-btn {
  flex: 1; min-width: 100px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 10px 14px;
  border-radius: var(--radius-md, 12px);
  font-size: 0.82rem; font-weight: 600;
  font-family: var(--font-body, 'Manrope', sans-serif);
  text-decoration: none;
  border: 1.5px solid var(--border, #e2e8eb);
  color: var(--fg-1, #0a1d24);
  background: #fff;
  transition: background 200ms, border-color 200ms;
}
.mc-social-btn:hover { background: var(--bg-1, #f7f9fa); text-decoration: none; color: var(--fg-1); }
.mc-social-btn--fb     i { color: #395498; }
.mc-social-btn--google i { color: #D64937; }
.mc-social-btn--li     i { color: #0077B5; }

/* Responsive */
@media (max-width: 480px) {
  .mc-auth-wrap { padding: 32px 16px; align-items: flex-start; padding-top: 40px; }
  .mc-auth-form-inner { padding: 28px 20px; }
}


/* ═══════════════════════════════════════════════════════════════
   Dashboard layout — Sidebar blanc + Topbar
   ═══════════════════════════════════════════════════════════════ */

:root { --sidebar-w: 255px; --topbar-h: 64px; }

/* Sidebar */
.mc-sidebar.user-sidebar {
  background: #ffffff !important; border-right: 1px solid var(--border,#e2e8eb) !important;
  box-shadow: 2px 0 16px rgba(10,29,36,.06) !important; width: var(--sidebar-w) !important;
  display: flex !important; flex-direction: column !important; overflow: hidden !important;
}
.mc-sidebar-logo { height: 64px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--border,#e2e8eb); flex-shrink: 0; }
.mc-sidebar-logo img { height: 85px; width: auto; }
.mc-sidebar-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--fg-3); font-size: 1.1rem; cursor: pointer; }
.mc-sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 12px 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.mc-sidebar-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mc-sidebar-nav ul li a, .sidebar-menu-list li a {
  display: flex !important; align-items: center !important; gap: 10px !important;
  padding: 10px 12px !important; border-radius: 10px !important;
  font-size: 0.875rem !important; font-weight: 500 !important;
  font-family: var(--font-body,'Manrope',sans-serif) !important;
  color: var(--fg-2,#3a5260) !important; text-decoration: none !important;
  transition: background 150ms, color 150ms !important; white-space: nowrap !important;
}
.mc-sidebar-nav ul li a:hover, .sidebar-menu-list li a:hover {
  background: var(--brand-deep-50,#eef4f6) !important; color: var(--brand-deep,#123c4d) !important;
}
.mc-sidebar-nav ul li a.mc-nav-active,
.sidebar-menu-list > li.mm-active > a,
.sidebar-menu-list > li.mm-active > a:hover {
  background: var(--brand-deep,#123c4d) !important; color: #ffffff !important;
}
.mc-nav-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.85rem; flex-shrink: 0; background: transparent; transition: background 150ms; }
.mc-sidebar-nav ul li a:hover .mc-nav-icon { background: rgba(18,60,77,.08); }
.mc-sidebar-nav ul li a.mc-nav-active .mc-nav-icon { background: rgba(255,255,255,.15); }

/* ── Badges sidebar (Nouveau / Bientôt) ────────────────── */
.mc-nav-badge {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-family: var(--font-body,'Manrope',sans-serif) !important;
  font-size: 0.62rem !important;
  font-weight: var(--weight-bold,700) !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.mc-nav-badge--new {
  background: var(--brand-mint,#1ee399) !important;
  color: var(--brand-deep,#123c4d) !important;
}
.mc-nav-badge--soon {
  background: var(--bg-2,#eef2f4) !important;
  color: var(--fg-3,#7a8c94) !important;
}
/* Sur item actif (deep teal background) → badges adaptés */
.mc-sidebar-nav ul li a.mc-nav-active .mc-nav-badge--new {
  background: var(--brand-mint,#1ee399) !important;
  color: var(--brand-deep,#123c4d) !important;
}
.mc-sidebar-nav ul li a.mc-nav-active .mc-nav-badge--soon {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
}

/* Limits */
.mc-sidebar-limits { padding: 12px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
.mc-sidebar-limits-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); margin: 0 0 8px; }
.mc-sidebar-limit-bar { margin-bottom: 8px; }
.mc-sidebar-limit-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--fg-3); margin-bottom: 4px; }
.mc-progress { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.mc-progress-fill { height: 100%; border-radius: 99px; transition: width 600ms ease; }
.mc-progress-fill--green { background: var(--brand-mint,#1ee399); }
.mc-progress-fill--blue { background: #3b82f6; }

/* Profile bas sidebar */
/* ── Outils sidebar (langue + dark mode) ─────────────── */
.mc-sidebar-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--border,#e2e8eb);
  flex-shrink: 0;
  background: #fff;
}
.mc-sidebar-tool {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  width: 100%; height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--bg-1,#f7f9fa);
  border: 1px solid var(--border,#e2e8eb);
  color: var(--fg-2,#3a5260);
  font-family: var(--font-body,'Manrope',sans-serif);
  font-size: 0.74rem;
  font-weight: var(--weight-semibold,600);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
  text-decoration: none;
  white-space: nowrap;
}
.mc-sidebar-tool i { font-size: 0.85rem; line-height: 1; }
.mc-sidebar-tool:hover {
  background: var(--brand-deep-50,#eef4f6);
  color: var(--brand-deep,#123c4d);
  border-color: var(--brand-deep,#123c4d);
}
.mc-sidebar-tool.dropdown-toggle::after { display: none; }

/* Dropdown langues (dropup au-dessus) */
.mc-sidebar-lang-menu {
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--border,#e2e8eb);
  box-shadow: 0 8px 24px rgba(10,29,36,.08);
  border-radius: 12px;
}
.mc-sidebar-lang-menu .dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-body,'Manrope',sans-serif);
  font-size: 0.82rem;
  font-weight: var(--weight-medium,500);
  color: var(--fg-1,#0a1d24);
  text-decoration: none;
}
.mc-sidebar-lang-menu .mc-sidebar-lang-code {
  background: var(--bg-2,#eef2f4);
  color: var(--fg-2,#3a5260);
  padding: 3px 7px;
  border-radius: 6px;
  font-family: var(--font-display,'Sora',sans-serif);
  font-size: 0.66rem;
  font-weight: var(--weight-bold,700);
  letter-spacing: 0.04em;
  line-height: 1;
}
.mc-sidebar-lang-menu .dropdown-item:hover {
  background: var(--brand-deep-50,#eef4f6);
  color: var(--brand-deep,#123c4d);
}
.mc-sidebar-lang-menu .dropdown-item.is-active {
  background: var(--brand-mint-50,#ecfcf5);
  color: var(--brand-deep,#123c4d);
}
.mc-sidebar-lang-menu .dropdown-item.is-active .mc-sidebar-lang-code {
  background: var(--brand-mint,#1ee399);
  color: var(--brand-deep,#123c4d);
}
.mc-sidebar-lang-menu .dropdown-item.is-active i {
  color: var(--brand-mint-700,#14b87b);
}

.mc-sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border,#e2e8eb); flex-shrink: 0; background: #fff; }
.mc-sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-deep,#123c4d); color: #fff; font-size: 0.78rem; font-weight: 700; font-family: var(--font-display,'Sora',sans-serif); display: flex; align-items: center; justify-content: center; flex-shrink: 0; letter-spacing: .02em; }
.mc-sidebar-profile-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mc-sidebar-profile-name { font-size: 0.82rem; font-weight: 700; color: var(--fg-1,#0a1d24); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sidebar-profile-email { font-size: 0.7rem; color: var(--fg-3,#7a8c94); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sidebar-profile-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mc-sidebar-profile-actions a { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--fg-3); font-size: 0.8rem; text-decoration: none; transition: background 150ms, color 150ms; }
.mc-sidebar-profile-actions a:hover { background: var(--bg-1); color: var(--fg-1); }

/* Top bar */
.mc-dash-topbar.user-navbar {
  display: none !important;
}
@media (max-width: 991px) {
  .mc-dash-topbar.user-navbar {
    display: flex !important;
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
    height: var(--topbar-h) !important; background: #ffffff !important;
    border-bottom: 1px solid var(--border,#e2e8eb) !important;
    box-shadow: 0 1px 8px rgba(10,29,36,.04) !important;
    align-items: center !important; justify-content: space-between !important;
    padding: 0 16px !important; z-index: 998 !important;
  }
}
.mc-topbar-hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.mc-topbar-hamburger span { display: block; width: 22px; height: 2px; background: var(--fg-1); border-radius: 2px; }
.mc-topbar-title { font-family: var(--font-body,'Manrope',sans-serif); font-size: 0.9rem; color: var(--fg-3); }
.mc-topbar-title strong { color: var(--fg-1); }
.mc-topbar-right { display: flex !important; align-items: center !important; gap: 8px !important; }
.mc-topbar-lang { font-size: 0.82rem; border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; background: var(--bg-1); color: var(--fg-2); cursor: pointer; outline: none; }
.mc-topbar-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; font-family: var(--font-body,'Manrope',sans-serif); text-decoration: none; border: none; cursor: pointer; transition: background 150ms; white-space: nowrap; }
.mc-topbar-btn--ghost { background: var(--bg-1); color: var(--fg-2); border: 1px solid var(--border); }
.mc-topbar-btn--ghost:hover { background: var(--bg-2,#e6edf1); color: var(--fg-1); text-decoration: none; }
.mc-topbar-btn--primary { background: var(--brand-deep,#123c4d); color: #fff; }
.mc-topbar-btn--primary:hover { background: var(--brand-deep-700,#0d2c39); color: #fff; }
.mc-topbar-avatar { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mc-topbar-dropdown { border: 1px solid var(--border) !important; border-radius: var(--radius-lg,16px) !important; box-shadow: 0 8px 32px rgba(10,29,36,.12) !important; padding: 8px !important; min-width: 190px !important; }
.mc-topbar-dropdown .dropdown-item { border-radius: 8px !important; padding: 9px 12px !important; font-size: 0.83rem !important; color: var(--fg-1) !important; display: flex !important; align-items: center !important; gap: 10px !important; }
.mc-topbar-dropdown .dropdown-item i { color: var(--fg-3); width: 14px; text-align: center; }
.mc-topbar-dropdown .dropdown-item:hover { background: var(--bg-1) !important; }
.mc-dropdown-logout { color: #dc2626 !important; }
.mc-dropdown-logout i { color: #dc2626 !important; }
.mc-topbar-dropdown .dropdown-divider { margin: 6px 8px !important; }

/* Dashboard body */
.user-dashboard-body { padding: 0 0 0 var(--sidebar-w) !important; min-height: 100vh; background: var(--bg-1,#f7f9fa); }

/* Overlay mobile */
.mc-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(10,29,36,.4); z-index: 998; backdrop-filter: blur(2px); }
.mc-sidebar-overlay.active { display: block; }

/* Responsive */
@media (max-width: 991px) {
  .mc-dash-topbar.user-navbar { left: 0 !important; }
  .user-dashboard-body { padding: 0 !important; }
  .mc-sidebar.user-sidebar { left: calc(-1 * var(--sidebar-w)) !important; transition: left 300ms ease !important; z-index: 999 !important; top: 0 !important; }
  .mc-sidebar.user-sidebar.active { left: 0 !important; }
}

/* Hamburger mobile flottant (remplace topbar) */
.mc-fab-hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border,#e2e8eb);
  box-shadow: 0 2px 10px rgba(10,29,36,.10);
  align-items: center;
  justify-content: center;
  color: var(--fg-1,#0a1d24);
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 991px) {
  .mc-fab-hamburger { display: flex; }
  /* Espace en haut du contenu sur mobile pour ne pas etre sous le bouton */
  .user-dashboard-body { padding-top: 64px !important; }
}

/* Topbar logo centré (mobile) */
.mc-topbar-logo img { height: 28px; width: auto; }
.mc-topbar-btn--avatar { background: none; border: none; padding: 0; cursor: pointer; }
.mc-topbar-avatar-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-deep,#123c4d); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  font-family: var(--font-display,"Sora",sans-serif);
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .02em;
}
/* Sélecteur de langue dans dropdown profil topbar
   Préfixé avec `li` pour battre `li .language` (main.css L6015)
   qui force un fond navy #000c28 !important. */
li .mc-topbar-lang-inline,
.dropdown-menu .mc-topbar-lang-inline {
  display: block !important;
  width: calc(100% - 24px) !important;
  margin: 6px 12px !important;
  font-size: 0.9375rem !important;  /* 15px - lisible */
  font-family: var(--font-body, 'Manrope', sans-serif) !important;
  font-weight: 500 !important;
  border: 1px solid #d6dde0 !important;
  border-radius: 8px !important;
  padding: 8px 32px 8px 12px !important;
  background-color: #ffffff !important;
  color: #0a1d24 !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  text-align: center !important;
  text-align-last: center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%230a1d24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 10px 6px !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}
li .mc-topbar-lang-inline:hover,
li .mc-topbar-lang-inline:focus,
.dropdown-menu .mc-topbar-lang-inline:hover,
.dropdown-menu .mc-topbar-lang-inline:focus {
  border-color: #1ee399 !important;
  box-shadow: 0 0 0 3px rgba(30,227,153,.12) !important;
  background-color: #ffffff !important;
}
li .mc-topbar-lang-inline option,
.dropdown-menu .mc-topbar-lang-inline option {
  background-color: #ffffff !important;
  color: #0a1d24 !important;
  text-align: center !important;
}
/* Dark mode : fond foncé cohérent avec le dropdown parent */
html.theme-dark li .mc-topbar-lang-inline,
html.theme-dark .dropdown-menu .mc-topbar-lang-inline {
  background-color: #16323e !important;
  color: #e6ecef !important;
  border-color: rgba(255,255,255,.06) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23b8c4c9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>") !important;
}
html.theme-dark li .mc-topbar-lang-inline:hover,
html.theme-dark li .mc-topbar-lang-inline:focus,
html.theme-dark .dropdown-menu .mc-topbar-lang-inline:hover,
html.theme-dark .dropdown-menu .mc-topbar-lang-inline:focus {
  background-color: #16323e !important;
  border-color: rgba(30,227,153,.5) !important;
  box-shadow: 0 0 0 3px rgba(30,227,153,.08) !important;
}
html.theme-dark li .mc-topbar-lang-inline option,
html.theme-dark .dropdown-menu .mc-topbar-lang-inline option {
  background-color: #16323e !important;
  color: #e6ecef !important;
}
/* Supprime le mc-fab-hamburger sur mobile (remplacé par topbar) */
.mc-fab-hamburger { display: none !important; }






/* ── Sidebar mobile : pleine hauteur, aucun vide ──────────────*/
@media (max-width: 991px) {
  .mc-sidebar.user-sidebar {
    top: 0 !important;
    height: 100vh !important;
    z-index: 1000 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  /* Cache logo (topbar fait office de header) → nav démarre dès le haut */
  .mc-sidebar .mc-sidebar-logo {
    display: none !important;
    height: 0 !important;
  }
  /* Petit padding en haut du nav pour respirer */
  .mc-sidebar-nav {
    padding-top: 16px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   Dashboard pages — styles communs (toutes les pages master)
   ═══════════════════════════════════════════════════════════════ */

.mc-dash { padding: 28px 28px 48px; display: flex; flex-direction: column; gap: 20px; }

/* Header de page */
.mc-dash-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.mc-dash-title {
  font-family: var(--font-display,"Sora",sans-serif) !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: var(--fg-1,#0a1d24) !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 3px !important;
  line-height: 1.2 !important;
}
.mc-dash-subtitle { font-size: 0.83rem !important; color: var(--fg-3,#7a8c94) !important; margin: 0 !important; font-weight: 500 !important; }
.mc-dash-header-actions { display: flex; gap: 8px; }

/* Cards */
.mc-dash-card { background: #fff; border: 1px solid var(--border,#e2e8eb); border-radius: var(--radius-lg,16px); overflow: hidden; box-shadow: 0 1px 6px rgba(10,29,36,.04); }
.mc-dash-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.mc-dash-card-title {
  font-family: var(--font-display,"Sora",sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--fg-1,#0a1d24) !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
}
.mc-dash-card-link { font-size: 0.78rem; font-weight: 600; color: var(--brand-deep,#123c4d); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.mc-dash-card-link:hover { color: var(--brand-mint,#1ee399); }

/* Boutons taille petite */
.mc-btn-sm { padding: 7px 14px !important; font-size: 0.82rem !important; border-radius: var(--radius-pill,999px) !important; }
.mc-btn-block { width: 100%; justify-content: center; }

/* Table partagée */
.mc-table-wrap { overflow-x: auto; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.mc-table thead th { padding: 10px 16px; font-size: 0.72rem; font-weight: 700; color: var(--fg-3,#7a8c94); text-transform: uppercase; letter-spacing: .05em; background: var(--bg-1,#f7f9fa); border-bottom: 1px solid var(--border,#e2e8eb); white-space: nowrap; }
.mc-table tbody tr { border-bottom: 1px solid var(--border,#e2e8eb); transition: background 150ms; }
.mc-table tbody tr:last-child { border-bottom: none; }
.mc-table tbody tr:hover { background: var(--bg-1,#f7f9fa); }
.mc-table tbody td { padding: 12px 16px; color: var(--fg-1,#0a1d24); vertical-align: middle; }
.mc-table-id { font-family: var(--font-mono,"JetBrains Mono",monospace); font-size: 0.78rem; background: var(--bg-1); padding: 3px 8px; border-radius: 6px; color: var(--fg-2,#3a5260); }
.mc-table-empty { text-align: center !important; padding: 48px 16px !important; color: var(--fg-3); }
.mc-table-empty i { font-size: 2rem; display: block; margin-bottom: 8px; opacity: .4; }

/* Alertes */
.mc-alert { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--radius-lg,16px); border: 1.5px solid; flex-wrap: wrap; }
.mc-alert--danger  { background: #fff5f5; border-color: #fed7d7; }
.mc-alert--warning { background: #fffbeb; border-color: #fde68a; }
.mc-alert-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.mc-alert--danger  .mc-alert-icon { background: #fed7d7; color: #c53030; }
.mc-alert--warning .mc-alert-icon { background: #fde68a; color: #92400e; }
.mc-alert-body { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.mc-alert-body strong { font-size: 0.83rem; font-weight: 700; color: var(--fg-1); }
.mc-alert-body span   { font-size: 0.78rem; color: var(--fg-3); }
.mc-alert-cta { font-size: 0.78rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mc-alert--danger  .mc-alert-cta { color: #c53030; }
.mc-alert--warning .mc-alert-cta { color: #92400e; }

/* Modal */
.mc-modal { border-radius: var(--radius-lg,16px) !important; border: 1px solid var(--border) !important; overflow: hidden; }
.mc-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.mc-modal-title { font-family: var(--font-display,"Sora",sans-serif) !important; font-size: 1rem !important; font-weight: 700 !important; color: var(--fg-1) !important; margin: 0 !important; }
.mc-modal-close { background: none; border: none; font-size: 1.1rem; color: var(--fg-3); cursor: pointer; padding: 4px; }
.mc-modal-body   { padding: 18px 20px; font-size: 0.88rem; color: var(--fg-2); }
.mc-modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.mc-modal-footer form { display: flex; gap: 8px; }

/* Pagination */
.mc-pagination { padding: 16px 20px; border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  .mc-dash { padding: 20px 16px 40px; }
  .mc-dash-header { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════
   iOS Safari : empêcher le zoom automatique sur focus des inputs
   ───────────────────────────────────────────────────────────────
   iOS zoome quand un input/select/textarea a font-size < 16px.
   On force 16px sur mobile pour TOUS les contrôles de formulaire.
   Le rendu visuel ne change pas significativement (1-2px sur les
   selects déjà à 14-15px), mais le zoom forcé disparaît.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input:not([type]),
  select,
  textarea,
  .form-control,
  .form-select {
    font-size: 16px !important;
  }

}

/* ══════════════════════════════════════════════════════════════
   Inputs montants buy/sell (envoyer/recevoir) — TAILLE UNIFIÉE
   ───────────────────────────────────────────────────────────────
   Règle HORS media query : applique en web ET en mobile la même
   taille (1.25rem = 20px) pour cohérence visuelle. 20px > 16px
   donc safe iOS (pas de zoom auto sur focus).
   Sélecteurs spécifiques + !important pour battre toute autre règle.
   ══════════════════════════════════════════════════════════════ */
input[name="sending_amount"],
input[name="receiving_amount"],
input[name="amount"],
input.amount-input,
.exchange-form .form-group input,
.exchange-form .form--control,
.exchange-form .form-control,
.exchange-form input[type="number"],
.form-group input.form--control[type="number"] {
  font-size: 1.25rem !important;   /* 20px partout, web + mobile */
  font-weight: 600 !important;
}
