        *,
        *::before,
        *::after {
            margin: 0;
            box-sizing: border-box;
        }

        body {
            touch-action: pan-y;
            padding: 0;
        }

        :root {
    --page-side-padding: 20px;

            /* Palette de marque — source unique, importée sur toutes les pages
               via base.css. Les noms historiques (*-fuchsia, *-profond, *-pur)
               restent en alias pour ne rien casser des CSS existantes, mais ne
               doivent plus être utilisés dans du code neuf — préférer
               --rose/--noir/--blanc. --rouge-passion (accent bordeaux des
               dégradés de marque) et --rouge (rouge sémantique "danger") sont
               deux couleurs distinctes, ne pas les fusionner. */
            --rose: #FF3EB5;
            --noir: #0B0B0B;
            --charbon: #141414;
            --gris-charbon: #1a1a1a;
            --gris-sombre: #121212;
            --blanc: #FFFFFF;
            --gris-perle: #B6B6B6;
            --rouge-passion: #E30049;

            --rose-fuchsia: var(--rose);
            --noir-profond: var(--noir);
            --blanc-pur: var(--blanc);

            /* Surfaces translucides (cartes, inputs, boutons secondaires) —
               à utiliser à la place d'un gris plein pour rester cohérent avec
               le rendu "sombre transparent" de référence (/hub/dashboard/services). */
            --surface: rgba(255, 255, 255, 0.04);
            --border: rgba(255, 255, 255, 0.07);
            --muted: rgba(255, 255, 255, 0.35);

            /* Couleurs sémantiques (statuts, badges) — un seul vert/orange/rouge/bleu/violet
               pour tout le site, plutôt qu'une teinte différente par page. */
            --vert: #22C55E;
            --orange: #F59E0B;
            --rouge: #EF4444;
            --bleu: #3B82F6;
            --violet: #8B5CF6;

            /* Accent "premium" (chat premium, pourboires, étoile premium) —
               volontairement distinct de --orange (sémantique warning/pending). */
            --gold: #f5a623;
        }

        /* Masquer l'attribution Leaflet sur les cartes */
        .leaflet-control-attribution { display: none !important; }

        /* Import Design System - Buttons */
        @import url('buttons.css');

        /* Import Design System - Typography */
        @import url('typography.css');

        /* Import Design System - Scrollbar */
        @import url('scrollbar.css');

        html, body {
            font-family: var(--font-primary);
            background-color: var(--noir-profond);
            color: var(--blanc-pur);
            overflow-x: hidden;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch;
            height: auto;
            min-height: 100vh;
            padding: 0;
            margin: 0;
        }

        body {
            touch-action: pan-y;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
                    }

        /* Les enfants directs de body (flex column) doivent pouvoir rétrécir
           sous la largeur intrinsèque de leur contenu (titres, tableaux...),
           sinon ils débordent sur mobile malgré overflow-x:hidden — bug
           classique de flexbox où min-width vaut "auto" par défaut. */
        body > * {
            min-width: 0;
        }
        
        /* Particules */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .particle {
            position: absolute;
            width: 3px;
            height: 3px;
            background: var(--rose-fuchsia);
            border-radius: 50%;
            animation: float linear infinite;
            opacity: 0.3;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 0.3;
            }
            90% {
                opacity: 0.3;
            }
            100% {
                transform: translateY(-100px) translateX(100px);
                opacity: 0;
            }
        }

/* Mobile menu icon */
.mobile-menu-toggle {
    width: 42px;
    height: 36px;
    position: relative;
    padding: 0;
}

.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--blanc-pur);
    border-radius: 2px;
}

.mobile-menu-toggle::before {
    top: 9px;
    box-shadow: 0 8px 0 var(--blanc-pur);
}

.mobile-menu-toggle::after {
    bottom: 9px;
}

/* ============================================
   VIDEO ICON — composant partagé (map, chat, content, public profile)
   ============================================ */
.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 62, 181, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(255, 62, 181, 0.15), 0 2px 8px rgba(0,0,0,0.5);
}

.video-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent var(--rose-fuchsia);
  margin-left: 3px;
}

@media (max-width: 768px) {
  .video-icon {
    width: 32px;
    height: 32px;
  }
  .video-icon::after {
    border-width: 5px 0 5px 9px;
    margin-left: 2px;
  }
}

/* ============================================
   UNIFIED PAGE CONTAINER LAYOUT
   All main page containers share the same width/centering.
   Reference: /hub/map page layout (max-width: 1800px)
   ============================================ */
.dashboard-container,
.content-container,
.map-section {
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-side-padding);
    padding-right: var(--page-side-padding);
    padding-top: 110px;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* ── Global: masquer les spinners natifs des inputs number ── */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Spinners custom partagés ── */
.num-spinners {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 38px;
  border-left: 1px solid rgba(255, 62, 181, 0.2);
  border-radius: 0 10px 10px 0;
  overflow: hidden;
  z-index: 2;
}
.num-spin {
  flex: 1;
  background: rgba(255, 62, 181, 0.08);
  border: none;
  color: var(--rose-fuchsia, #FF3EB5);
  cursor: pointer;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}
.num-spin:first-child {
  border-bottom: 1px solid rgba(255, 62, 181, 0.2);
}
.num-spin:hover {
  background: rgba(255, 62, 181, 0.25);
  color: #fff;
}
.num-spin:active {
  background: rgba(255, 62, 181, 0.45);
}

/* ── Chat unread bubble (header nav) ─────────────────────────────────────── */
.nav-link-chat,
.nav-link-orders,
.nav-link-content,
.nav-link-collabs {
  position: relative;
}
.chat-unread-bubble {
  position: absolute;
  top: -8px;
  right: -12px;
  background: linear-gradient(135deg, var(--rose-fuchsia), var(--rouge-passion));
  color: #fff;
  /* 999px et non 50 % : avec le padding, 50 % déformait la bulle en ovale
     dès deux chiffres ; une pilule reste un cercle à un chiffre. */
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 6px rgba(227, 0, 73, 0.5);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  animation: bubble-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@media (max-width: 992px) {
  .chat-unread-bubble {
    top: 13px;
    right: 8px;
  }
}
@keyframes bubble-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
/* Le display:flex ci-dessus l'emporte sur le [hidden] du navigateur :
   on le rétablit ici (0-2-0) pour que el.hidden masque bien la bulle. */
.chat-unread-bubble[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .chat-unread-bubble { animation: none; }
}
