  <style>
    /* ============================================================
       VARIABLES & RESET
    ============================================================ */
    :root {
      --bg:       #0d0d14;
      --bg2:      #14141f;
      --surface:  #1c1c2a;
      --border:   rgba(255,255,255,0.08);
      --text:     #e8e8f0;
      --muted:    #7a7a99;
      --accent:   #9B3CBD;
      --accent2:  #4BB8D4;
      --danger:   #E94B4B;
      --success:  #6BBF59;
      --ff-title: 'Syne', sans-serif;
      --ff-body:  'DM Sans', sans-serif;
      --radius:   12px;
      --gap:      16px;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--ff-body); overflow-x: hidden; }

    /* ============================================================
       FOND ÉTOILÉ ANIMÉ
       Pseudo-élément ::before sur body pour les particules
    ============================================================ */
    body::before {
      content: '';
      position: fixed; inset: 0; z-index: 0;
      background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(155,60,189,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 10%, rgba(75,184,212,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 70%, rgba(245,213,71,0.2) 0%, transparent 100%);
      pointer-events: none;
    }

    /* ============================================================
       LAYOUT PRINCIPAL
    ============================================================ */
    #app { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 1rem 1rem 3rem; }

    /* ============================================================
       EN-TÊTE
    ============================================================ */
    #header {
      width: 100%; max-width: 700px;
      display: flex; align-items: center; justify-content: space-between;
      padding: .5rem 0 1rem;
    }
    #logo { font-family: var(--ff-title); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
    #logo span { color: var(--accent); }

    /* Zone utilisateur (pseudo connecté ou bouton connexion) */
    #user-zone { display: flex; align-items: center; gap: 10px; }
    .user-badge {
      display: flex; align-items: center; gap: 8px;
      padding: 5px 12px; border-radius: 20px;
      background: var(--surface); border: 1px solid var(--border);
      font-size: .8rem;
    }
    .user-dot { width: 8px; height: 8px; border-radius: 50%; }

    /* ============================================================
       BOUTONS GÉNÉRIQUES
    ============================================================ */
    .btn {
      font-family: var(--ff-body); font-size: .82rem; font-weight: 500;
      padding: 7px 16px; border-radius: 8px; border: none;
      cursor: pointer; transition: opacity .15s, transform .1s;
    }
    .btn:active { transform: scale(.97); }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-ghost   { background: transparent; color: var(--muted); border: 1px solid var(--border); }
    .btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
    .btn-danger  { background: var(--danger); color: #fff; }

    /* ============================================================
       FIL D'ARIANE
    ============================================================ */
    #breadcrumb {
      display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
      width: 100%; max-width: 700px; margin-bottom: .75rem; min-height: 24px;
    }
    .bc-item {
      font-size: .72rem; color: var(--muted); cursor: pointer;
      padding: 2px 10px; border-radius: 20px;
      border: 1px solid var(--border); background: var(--surface);
      transition: all .15s; font-family: var(--ff-body);
    }
    .bc-item:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
    .bc-sep { font-size: .72rem; color: rgba(255,255,255,.2); }

    /* ============================================================
       CANVAS WRAP + BOUTON CENTRAL
    ============================================================ */
    #canvas-wrap { position: relative; width: 580px; height: 580px; max-width: 100%; }
    canvas#wheel { display: block; cursor: pointer; width: 100%; height: 100%; }

    #center-btn {
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 94px; height: 94px; border-radius: 50%;
      background: radial-gradient(circle at 40% 35%, #c060f0, #6b1fa0);
      border: 2px solid rgba(255,255,255,.2);
      cursor: pointer; display: flex; align-items: center;
      justify-content: center; flex-direction: column; gap: 2px;
      transition: transform .2s; box-shadow: 0 0 32px rgba(155,60,189,.4);
    }
    #center-btn:hover { transform: translate(-50%,-50%) scale(1.06); }
    #center-name {
      font-family: var(--ff-title); font-size: .68rem; font-weight: 600;
      color: #fff; text-align: center; line-height: 1.3; padding: 0 8px;
      word-break: break-word;
    }

    /* ============================================================
       HINT BAS DE ROUE
    ============================================================ */
    #hint { font-size: .72rem; color: var(--muted); margin-top: .4rem; text-align: center; }

    /* ============================================================
       OVERLAY MODAL (fond sombre)
       Toutes les modales partagent cet overlay.
    ============================================================ */
    .overlay {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.7); z-index: 300;
      align-items: center; justify-content: center;
      backdrop-filter: blur(4px);
    }
    .overlay.open { display: flex; }

    /* ============================================================
       MODALE GÉNÉRIQUE
    ============================================================ */
    .modal {
      background: var(--bg2); border-radius: var(--radius);
      border: 1px solid var(--border); padding: 1.5rem;
      width: min(480px, 94vw); max-height: 90vh; overflow-y: auto;
      display: flex; flex-direction: column; gap: 1rem;
    }
    .modal h3 {
      font-family: var(--ff-title); font-weight: 600; font-size: 1rem;
      color: var(--text);
    }
    .field { display: flex; flex-direction: column; gap: 4px; }
    .field label { font-size: .75rem; color: var(--muted); }
    .field input, .field textarea, .field select {
      background: var(--surface); border: 1px solid var(--border);
      color: var(--text); font-family: var(--ff-body); font-size: .85rem;
      padding: 8px 12px; border-radius: 8px; outline: none;
      transition: border-color .15s;
    }
    .field input:focus, .field textarea:focus { border-color: var(--accent); }
    .field textarea { resize: vertical; min-height: 80px; }

    /* Onglets type de contribution */
    .contrib-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
    .ctab {
      font-size: .75rem; padding: 4px 12px; border-radius: 20px;
      border: 1px solid var(--border); background: var(--surface);
      color: var(--muted); cursor: pointer; font-family: var(--ff-body);
      transition: all .15s;
    }
    .ctab.active {
      background: rgba(155,60,189,.3); color: #d9a0ff;
      border-color: rgba(155,60,189,.5);
    }

    /* Zone de dessin (canvas libre) */
    #draw-canvas {
      border: 1px solid var(--border); border-radius: 8px;
      cursor: crosshair; touch-action: none;
      background: #fff;
    }
    #draw-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .draw-color {
      width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
      border: 2px solid transparent; transition: border-color .1s;
    }
    .draw-color.sel { border-color: #fff; }

    /* Liste des contributions existantes dans un segment */
    #contrib-list { display: flex; flex-direction: column; gap: 8px; max-height: 180px; overflow-y: auto; }
    .contrib-item {
      background: var(--surface); border-radius: 8px; padding: 8px 10px;
      border: 1px solid var(--border); font-size: .78rem;
    }
    .contrib-meta { color: var(--muted); font-size: .7rem; margin-bottom: 3px; display: flex; justify-content: space-between; }
    .contrib-content { color: var(--text); word-break: break-all; }
    .contrib-pending { color: #F5D547; font-size: .68rem; }

    /* Actions de la modale */
    .modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

    /* ============================================================
       MODALE CONNEXION
    ============================================================ */
    #login-modal .modal { max-width: 360px; }

    /* ============================================================
       TOAST (notification temporaire)
    ============================================================ */
    #toast {
      position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
      background: var(--surface); border: 1px solid var(--border);
      color: var(--text); font-size: .82rem; padding: 10px 20px;
      border-radius: 20px; z-index: 999; opacity: 0;
      transition: opacity .3s; pointer-events: none;
      font-family: var(--ff-body);
    }
    #toast.show { opacity: 1; }

    /* ============================================================
       COMPTEUR DE CONTRIBUTIONS (badge sur segment)
       Dessiné sur canvas, pas en HTML
    ============================================================ */

    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 620px) {
      #canvas-wrap { width: 340px; height: 340px; }
      #center-btn  { width: 66px; height: 66px; }
      #center-name { font-size: .58rem; }
    }
  </style>