  :root {
    --depart:#64748b; --bourse:#3b82f6; --immo:#14b8a6; --oblig:#22c55e;
    --formation:#a855f7; --crise:#ef4444; --imprevu:#f97316; --chance:#eab308;
    --impot:#dc2626;
    /* Thème Wall Street chic : bleu nuit profond + or + vert dollar */
    --bg:#0f1420; --carte:#1a2030; --texte:#eef2f8; --doux:#94a3b8;
    --bord:#2a3344; --or:#d4af37; --vert-dollar:#3fa66a;
    --bg2:#161c2a;
  }

  * { box-sizing:border-box; margin:0; padding:0; }
  body {
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    background:
      radial-gradient(1200px 600px at 50% -10%, rgba(212,175,55,0.06), transparent 60%),
      linear-gradient(180deg, #0f1420 0%, #0c111b 100%);
    background-attachment:fixed;
    color:var(--texte); line-height:1.5; padding:16px; min-height:100vh;
  }
  h1 { font-size:24px; font-weight:800; letter-spacing:-0.5px; font-family:Georgia,'Times New Roman',serif; }
  h1 span { color:var(--or); }
  .sous { color:var(--doux); font-size:13px; margin-bottom:16px; }

  .jeu { display:grid; grid-template-columns: 330px minmax(0,1fr) 350px; gap:20px; max-width:1600px; margin:0 auto; align-items:start; }
  .panneau-gauche { order:0; }
  .carte-moi { border:1.5px solid var(--or); box-shadow:0 0 0 1px rgba(212,175,55,0.15), 0 6px 20px rgba(0,0,0,0.3); }
  @media (max-width:1100px){
    .jeu { grid-template-columns:1fr; }
    .panneau-gauche { order:2; }
  }

  
  /* Bandeau marché horizontal (téléscripteur) */
  .bandeau-marche {
    max-width:1500px; margin:0 auto 16px; overflow:hidden;
    background:linear-gradient(180deg,var(--carte),var(--bg2));
    border:1px solid var(--bord); border-radius:12px; padding:8px 0;
    box-shadow:0 4px 20px rgba(0,0,0,0.25); position:relative;
  }
  /* dégradés de fondu sur les bords pour un effet propre */
  .bandeau-marche::before, .bandeau-marche::after {
    content:""; position:absolute; top:0; bottom:0; width:40px; z-index:2; pointer-events:none;
  }
  .bandeau-marche::before { left:0; background:linear-gradient(90deg,var(--carte),transparent); }
  .bandeau-marche::after { right:0; background:linear-gradient(270deg,var(--bg2),transparent); }
  .bm-piste {
    display:flex; gap:0; flex-wrap:nowrap; width:max-content;
    animation: defilerMarche 40s linear infinite;
  }
  .bandeau-marche:hover .bm-piste { animation-play-state:paused; }  /* pause au survol */
  @keyframes defilerMarche {
    from { transform:translateX(0); }
    to   { transform:translateX(-50%); }   /* -50% car le contenu est dupliqué 2x */
  }
  .bm-item { display:flex; align-items:center; gap:7px; padding:5px 14px; border-right:1px solid var(--bord); white-space:nowrap; flex-shrink:0; }
  .bm-nom { font-size:11px; font-weight:600; color:var(--texte); }
  .bm-prix { font-size:12px; font-weight:700; }
  .bm-fleche { font-size:10px; }
  .bm-immo { background:rgba(212,175,55,0.08); border-radius:8px; }

  /* POINT 3 : case achetée par un joueur (bordure + teinte de sa couleur) */
  .case.case-possedee {
    box-shadow: inset 0 0 0 2.5px var(--coul-proprio), 0 2px 8px rgba(0,0,0,0.3) !important;
  }
  .case.case-possedee::after {
    background: linear-gradient(135deg, transparent 60%, color-mix(in srgb, var(--coul-proprio) 45%, transparent)) !important;
  }
  .case-proprio-badge {
    position:absolute; top:0; left:0; width:0; height:0; z-index:3;
    border-top:16px solid var(--coul-proprio-badge, currentColor);
    border-right:16px solid transparent;
    border-top-left-radius:6px;
    filter:drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  }
  @media (max-width:900px){ .jeu{ grid-template-columns:1fr; } }

  /* Plateau 8x8 : cases sur le pourtour */
  .plateau {
    display:grid; grid-template-columns:repeat(9,1fr); grid-template-rows:repeat(9,1fr);
    gap:4px; aspect-ratio:1; background:var(--carte); padding:10px;
    border-radius:14px; border:1px solid var(--bord);
    max-height:calc(100vh - 170px); max-width:calc(100vh - 170px);
    margin:0 auto; width:100%;
  }
  .case {
    border-radius:8px; padding:5px; font-size:9.5px; color:#fff; position:relative;
    display:flex; flex-direction:column; justify-content:space-between; min-height:0;
    overflow:hidden;
    box-shadow:0 2px 5px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
    transition:transform .12s ease, box-shadow .12s ease;
  }
  
  /* voile de relief : éclairé en haut, ombré en bas, par-dessus la couleur */
  .case::after {
    content:""; position:absolute; inset:0; pointer-events:none; border-radius:8px;
    background:linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 30%, rgba(0,0,0,0.10) 75%, rgba(0,0,0,0.22) 100%);
  }
  .case:hover {
    transform:translateY(-2px) scale(1.015);
    box-shadow:0 6px 14px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
    z-index:5;
  }
  .case .nom, .case .icone, .case .info, .case .pions { position:relative; z-index:2; }
  .case .nom { font-weight:600; line-height:1.15; text-shadow:0 1px 2px rgba(0,0,0,0.25); }
  .case .icone { display:flex; align-items:center; justify-content:center; flex:1; opacity:0.95; }
  .case .icone svg { width:46%; max-width:34px; height:auto; filter:drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
  .case .info { font-size:8px; opacity:0.9; }
  .case.depart{background:var(--depart);} .case.bourse{background:var(--bourse);}
  .case.immobilier{background:var(--immo);} .case.obligations{background:var(--oblig);}
  .case.formation{background:var(--formation);} .case.crise{background:var(--crise);}
  .case.imprevu{background:var(--imprevu);} .case.chance{background:var(--chance);}
  .case.impot{background:var(--impot);}
  /* cases spéciales (coins) : liseré doré discret */
  .case.depart { box-shadow:0 2px 5px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.18), inset 0 0 0 1.5px rgba(212,175,55,0.5); }
  .case .pions { position:absolute; bottom:3px; right:3px; display:flex; gap:2px; flex-wrap:wrap; }
  .pion { width:11px; height:11px; border-radius:50%; border:1.5px solid #fff; box-shadow:0 1px 3px rgba(0,0,0,0.4); }
  .centre {
    grid-column:2/9; grid-row:2/9; position:relative; overflow:hidden;
    background:
      radial-gradient(120% 120% at 50% 0%, rgba(212,175,55,0.12), transparent 55%),
      linear-gradient(135deg,#1b2233,#10151f);
    border-radius:10px; display:flex; flex-direction:column; align-items:center;
    justify-content:center; color:#fff; text-align:center; padding:16px;
    border:1px solid rgba(212,175,55,0.25);
    box-shadow:inset 0 0 60px rgba(212,175,55,0.06);
  }
  .centre .marque-diagonale {
    position:absolute; top:50%; left:50%;
    transform:translate(-50%,-50%) rotate(-45deg);
    display:flex; flex-direction:column; align-items:center; gap:10px;
    white-space:nowrap; pointer-events:none;
  }
  .centre .marque-diagonale .mq {
    font-size:54px; font-weight:800; letter-spacing:-1px;
    font-family:Georgia,'Times New Roman',serif;
    color:#fff; opacity:0.96; text-shadow:0 2px 16px rgba(0,0,0,0.6);
  }
  .centre .marque-diagonale .or-txt{ color:var(--or); }
  .centre .marque-diagonale .trait-or {
    width:62%; height:2px; background:linear-gradient(90deg,transparent,var(--or),transparent); opacity:0.7;
  }
  /* REMARQUE 1 : logo en filigrane discret derrière le panneau de tour */
  .centre .marque-filigrane { opacity:0.13; z-index:1; }
  .centre .marque-filigrane .mq { font-size:46px; text-shadow:none; }
  /* panneau "tour en cours" au centre du plateau */
  .centre-tour {
    position:relative; z-index:4; width:86%; max-width:340px;
    background:rgba(16,21,31,0.82); backdrop-filter:blur(3px);
    border:1px solid rgba(212,175,55,0.3); border-radius:14px;
    padding:16px 18px; box-shadow:0 8px 30px rgba(0,0,0,0.4);
  }
  .centre-titre {
    font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px;
    color:var(--or); margin-bottom:8px;
  }
  .centre-tour .msg { font-size:13.5px; line-height:1.45; margin-bottom:10px; color:#eef1f6; }
  .centre-tour #boutons-tour button, .centre-tour #actions button { width:100%; margin-top:6px; }
  .centre-tour .actions { display:flex; flex-direction:column; gap:0; }
  /* texte vertical le long des bords du centre (branding) */
  .bord-vertical {
    position:absolute; top:50%; transform:translateY(-50%);
    writing-mode:vertical-rl; font-family:Georgia,'Times New Roman',serif;
    font-size:28px; font-weight:800; letter-spacing:2px;
    color:rgba(255,255,255,0.15); z-index:1; pointer-events:none; white-space:nowrap;
    text-shadow:0 2px 12px rgba(0,0,0,0.4);
  }
  .bord-vertical .or-txt { color:rgba(212,175,55,0.35); }
  .bord-gauche { left:14px; }
  .bord-droite { right:14px; transform:translateY(-50%) rotate(180deg); }
  /* POINT 2 : gros chiffre du dé en "ghost" sur le plateau */
  #de-ghost {
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(0.4);
    font-size:150px; font-weight:900; font-family:Georgia,serif;
    color:rgba(255,255,255,0.16); z-index:5; pointer-events:none; opacity:0;
    text-shadow:0 4px 30px rgba(0,0,0,0.4);
  }
  #de-ghost.actif { animation: deGhost 1.1s ease-out forwards; }
  @keyframes deGhost {
    0%   { opacity:0; transform:translate(-50%,-50%) scale(0.4); }
    25%  { opacity:1; transform:translate(-50%,-50%) scale(1.15); }
    70%  { opacity:1; transform:translate(-50%,-50%) scale(1.0); }
    100% { opacity:0; transform:translate(-50%,-50%) scale(1.05); }
  }
  @keyframes apparaitreNouvelle {
    0%   { opacity:0; transform:translateY(-8px); }
    100% { opacity:1; transform:translateY(0); }
  }
  /* pion qui "saute" en passant sur une case pendant le déplacement */
  .case.case-survol-pion { animation: caseSurvol 0.28s ease-out; }
  @keyframes caseSurvol {
    0% { transform:none; } 50% { transform:translateY(-4px) scale(1.03); box-shadow:0 6px 16px rgba(212,175,55,0.4); } 100% { transform:none; }
  }
  .pion.pion-saut { animation: pionSaut 0.28s ease-out; }
  @keyframes pionSaut {
    0% { transform:none; } 50% { transform:translateY(-6px) scale(1.3); } 100% { transform:none; }
  }

  /* Panneau latéral */
  .panneau { display:flex; flex-direction:column; gap:14px; }
  .carte { background:linear-gradient(180deg,var(--carte),var(--bg2)); border:1px solid var(--bord); border-radius:12px; padding:14px; box-shadow:0 4px 20px rgba(0,0,0,0.25); }
  .carte h2 { font-size:13px; text-transform:uppercase; letter-spacing:0.5px; color:var(--or); margin-bottom:10px; }

  .joueur { padding:14px; border-radius:14px; border:1px solid var(--bord); margin-bottom:10px; background:linear-gradient(180deg,rgba(28,37,54,0.5),rgba(20,27,40,0.5)); }
  .joueur.actif { border:1.5px solid rgba(212,175,55,0.5); box-shadow:0 6px 24px rgba(0,0,0,0.3); background:linear-gradient(180deg,#1a2336,#141b29); }
  .joueur.libre { border-color:var(--oblig); }

  .jtete { display:flex; align-items:center; gap:11px; margin-bottom:13px; }
  .javatar { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; color:#fff; flex-shrink:0; }
  .jident { flex:1; min-width:0; }
  .jnom { font-size:17px; font-weight:700; color:var(--texte); line-height:1.2; }
  .jmetier { font-size:11.5px; color:var(--doux); }
  .jbadge { font-size:10.5px; font-weight:600; padding:4px 10px; border-radius:20px; white-space:nowrap; }
  .jbadge.actif-b { background:rgba(212,175,55,0.15); border:1px solid rgba(212,175,55,0.4); color:#e9c34a; }
  .jbadge.libre-b { background:rgba(15,110,86,0.2); border:1px solid var(--oblig); color:#5dcaa5; }
  .jbadge.crise-b { background:rgba(226,75,74,0.15); border:1px solid rgba(226,75,74,0.4); color:#f09595; }

  .jprog { background:rgba(7,10,18,0.4); border-radius:12px; padding:12px; margin-bottom:12px; }
  .jprog-tete { display:flex; justify-content:space-between; align-items:center; margin-bottom:7px; }
  .jprog-label { font-size:11.5px; color:var(--doux); }
  .jprog-pct { font-size:15px; font-weight:700; color:var(--or); }
  .jprog.libre .jprog-pct { color:var(--oblig); }
  .jprog-barre { height:9px; background:rgba(255,255,255,0.08); border-radius:5px; overflow:hidden; }
  .jprog-barre > div { height:100%; background:linear-gradient(90deg,#1d9e75,#e9c34a); border-radius:5px; transition:width .5s ease; }
  .jprog.libre .jprog-barre > div { background:linear-gradient(90deg,#16a34a,#0d9488); }
  .jprog-detail { font-size:10.5px; color:var(--doux); margin-top:6px; }

  .jstats { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .jstat { border-radius:10px; padding:9px 10px; border:1px solid; }
  .jstat-l { font-size:10.5px; margin-bottom:2px; }
  .jstat-v { font-size:15px; font-weight:700; color:var(--texte); }
  .jstat-v small { font-size:10px; color:var(--doux); font-weight:400; }
  .jstat.vert { background:rgba(29,158,117,0.1); border-color:rgba(29,158,117,0.25); }
  .jstat.vert .jstat-l { color:#5dcaa5; }
  .jstat.bleu { background:rgba(55,138,221,0.1); border-color:rgba(55,138,221,0.25); }
  .jstat.bleu .jstat-l { color:#85b7eb; }
  .jstat.or { background:rgba(212,175,55,0.1); border-color:rgba(212,175,55,0.25); }
  .jstat.or .jstat-l { color:#e9c34a; }
  .jstat.rouge { background:rgba(226,75,74,0.1); border-color:rgba(226,75,74,0.25); }
  .jstat.rouge .jstat-l { color:#f09595; }
  .jstat.rouge .jstat-v { color:#f09595; }
  .jstat.neutre { background:rgba(255,255,255,0.03); border-color:rgba(255,255,255,0.08); }
  .jstat.neutre .jstat-l { color:var(--doux); }

  .vert{color:var(--oblig);} .rouge{color:var(--crise);}

  button {
    font-family:inherit; font-size:13px; font-weight:600; border:none; border-radius:9px;
    padding:11px 14px; cursor:pointer; background:var(--bourse); color:#fff; width:100%;
    transition:opacity .15s; touch-action:manipulation; -webkit-tap-highlight-color:transparent;
  }
  button:hover{ opacity:0.9; } button:disabled{ opacity:0.4; cursor:not-allowed; }
  button.sec{ background:#243047; color:var(--texte); border:1px solid var(--bord); }
  .actions button { margin-bottom:7px; text-align:left; }
  .msg { font-size:12.5px; padding:9px 11px; border-radius:8px; background:var(--bg2); margin-bottom:10px; min-height:20px; }
  .journal { font-size:11px; color:var(--doux); max-height:150px; overflow-y:auto; }
  .journal div { padding:3px 0; border-bottom:1px solid var(--bord); }

  /* écran d'accueil */
  .overlay-aide { position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:250; display:flex; align-items:center; justify-content:center; padding:20px; }

  .apropos-section { text-align:left; background:var(--bg2); border:1px solid var(--bord); border-radius:12px; padding:14px 16px; margin-top:14px; }
  .apropos-section h3 { margin:0 0 6px; font-size:15px; color:var(--or); }
  .apropos-section p { margin:0; font-size:13.5px; color:var(--doux); line-height:1.6; }
  .apropos-pied { display:flex; flex-direction:column; gap:6px; align-items:center; margin-top:18px; padding-top:14px; border-top:1px solid rgba(212,175,55,0.2); }
  .apropos-pied span:first-child { font-size:13px; color:var(--texte); }
  .apropos-version { font-size:11px; color:var(--doux); letter-spacing:1px; }
  .aide-boite { background:var(--carte); color:var(--texte); border:1px solid var(--bord); border-radius:16px; max-width:620px; width:100%; max-height:88vh; overflow-y:auto; padding:28px; position:relative; box-shadow:0 20px 60px rgba(0,0,0,0.5); }
  .aide-fermer { position:absolute; top:14px; right:14px; background:var(--bord); border:none; width:34px; height:34px; border-radius:50%; font-size:16px; cursor:pointer; color:var(--texte); padding:0; }
  .aide-section { margin-bottom:16px; }
  .aide-section h3 { font-size:16px; margin:0 0 4px; color:var(--or); }
  .aide-section p { font-size:13.5px; color:var(--doux); margin:4px 0; line-height:1.55; }
  .aide-acc { margin-bottom:8px; border:1px solid var(--bord); border-radius:10px; overflow:hidden; background:var(--bg2); }
  .aide-acc summary { font-size:14.5px; font-weight:600; color:var(--texte); padding:13px 16px; cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; transition:background .12s; }
  .aide-acc summary::-webkit-details-marker { display:none; }
  .aide-acc summary::after { content:"▸"; color:var(--or); font-size:14px; transition:transform .2s; }
  .aide-acc[open] summary::after { transform:rotate(90deg); }
  .aide-acc summary:hover { background:rgba(212,175,55,0.06); }
  .aide-acc-corps { padding:0 16px 14px; }
  .aide-acc-corps p { font-size:13.5px; color:var(--doux); margin:8px 0; line-height:1.6; }
  .aide-acc-corps b { color:var(--texte); }
  .btn-aide { background:transparent; border:1px solid var(--bord); color:var(--doux); padding:7px 12px; border-radius:8px; cursor:pointer; font-size:13px; }
  .accueil { max-width:560px; margin:0 auto; min-height:90vh; display:flex; flex-direction:column; justify-content:center; }
  .accueil .carte { padding:26px; }
  .jinput { display:flex; gap:8px; margin-bottom:8px; }
  input, select, textarea { background:var(--carte); color:var(--texte); }
  .jinput input, .jinput select { flex:1; padding:9px; border:1px solid var(--bord); border-radius:8px; font-size:13px; font-family:inherit; background:var(--carte); color:var(--texte); }
  input::placeholder { color:var(--doux); }
  .cache{ display:none !important; }

  /* ===== MENU PRINCIPAL CAPITALISTE ===== */
  .menu-cap {
    position:fixed; inset:0; z-index:150; overflow-y:auto;
    background: radial-gradient(120% 90% at 50% 0%, #1a2336 0%, #0d1320 45%, #070a12 100%);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding:40px 20px 120px;
  }
  .menu-skyline { position:absolute; bottom:0; left:0; width:100%; height:auto; max-height:38vh; opacity:0.22; pointer-events:none; display:block; }
  .menu-entete { position:relative; padding:0 20px clamp(20px,4vh,38px); display:flex; flex-direction:column; align-items:center; gap:4px; }
  .menu-embleme-ligne { display:flex; align-items:center; gap:14px; margin-bottom:4px; }
  .menu-trait { width:clamp(40px,8vw,64px); height:1px; background:linear-gradient(90deg,transparent,#d4af37,transparent); }
  .menu-cercle { width:clamp(48px,7vw,58px); height:clamp(48px,7vw,58px); border:2px solid #d4af37; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:Georgia,serif; font-size:clamp(24px,4vw,30px); font-weight:800; color:#d4af37; }
  .menu-logo { font-family:Georgia,'Times New Roman',serif; font-size:clamp(42px,7vw,64px); font-weight:800; color:#fff; letter-spacing:-1.5px; text-shadow:0 2px 20px rgba(0,0,0,0.7); line-height:1.1; }
  .menu-logo span { background:linear-gradient(135deg,#f0d97a,#d4af37,#b8941f); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
  .menu-slogan { font-size:clamp(13px,1.6vw,16px); color:#9aa4b4; font-style:italic; letter-spacing:1px; }
  .menu-editeur { font-size:clamp(10px,1.2vw,12px); color:#6b7689; letter-spacing:3px; margin-top:8px; }
  .menu-boutons { position:relative; padding:0; display:flex; flex-direction:column; gap:clamp(10px,1.5vh,14px); width:100%; max-width:clamp(420px,42vw,560px); }
  .menu-btn { background:rgba(28,37,54,0.85); border:1px solid rgba(212,175,55,0.25); border-radius:14px; padding:clamp(15px,2vh,20px) clamp(18px,2vw,26px); display:flex; align-items:center; gap:16px; cursor:pointer; transition:transform .12s, border-color .12s; }
  .menu-btn:hover { transform:translateY(-2px); border-color:rgba(212,175,55,0.6); }
  .menu-btn-or { background:linear-gradient(135deg,#e9c34a,#d4af37,#a8821a); border:none; box-shadow:0 6px 28px rgba(212,175,55,0.32); }
  .menu-btn-ico { width:clamp(40px,4vw,48px); height:clamp(40px,4vw,48px); background:rgba(0,0,0,0.18); border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:clamp(20px,2.5vw,24px); flex-shrink:0; }
  .menu-btn-ico.or { background:rgba(212,175,55,0.12); }
  .menu-btn-txt { flex:1; display:flex; flex-direction:column; gap:1px; }
  .menu-btn-txt b { font-size:clamp(16px,2vw,19px); font-weight:600; color:#1a1206; }
  .menu-btn-txt small { font-size:clamp(11.5px,1.4vw,13px); color:#5c4a14; }
  .menu-btn:not(.menu-btn-or) .menu-btn-txt b { color:#f0f3f8; font-weight:500; }
  .menu-btn:not(.menu-btn-or) .menu-btn-txt small { color:#9aa4b4; }
  .menu-btn-fl { font-size:clamp(24px,3vw,30px); color:#1a1206; font-weight:300; }
  .menu-btn-fl.gris { color:#6b7689; }
  .menu-duo { display:flex; gap:clamp(10px,1.5vw,14px); margin-top:2px; }
  .menu-btn-petit { flex:1; background:rgba(20,27,40,0.55); border:1px solid rgba(255,255,255,0.07); border-radius:11px; padding:clamp(11px,1.5vh,15px); display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; font-size:clamp(12.5px,1.5vw,14px); color:#aab3c2; transition:border-color .12s; }
  .menu-btn-petit:hover { border-color:rgba(212,175,55,0.4); }
  .menu-pied { position:fixed; bottom:0; left:0; width:100%; border-top:1px solid rgba(212,175,55,0.15); padding:13px; text-align:center; font-size:clamp(11px,1.3vw,13px); color:#8a93a3; letter-spacing:0.5px; background:rgba(7,10,18,0.7); z-index:2; }

  /* ===== ÉCRAN DE CONFIGURATION (harmonisé avec le menu) ===== */
  .config-cap {
    position:fixed; inset:0; z-index:140; overflow-y:auto;
    background: radial-gradient(120% 90% at 50% 0%, #1a2336 0%, #0d1320 45%, #070a12 100%);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding:40px 20px; max-width:none;
  }
  .config-entete { text-align:center; display:flex; flex-direction:column; align-items:center; gap:4px; margin-bottom:clamp(16px,3vh,28px); }
  .config-carte {
    width:100%; max-width:clamp(420px,46vw,560px);
    background:rgba(22,29,43,0.92); border:1px solid rgba(212,175,55,0.28);
    box-shadow:0 10px 40px rgba(0,0,0,0.4);
  }
  /* Écrans Créer / Rejoindre embellis */
  .carte-online { max-width:440px; text-align:center; padding-top:8px; }
  .online-icone {
    width:72px; height:72px; margin:4px auto 10px; border-radius:20px;
    display:flex; align-items:center; justify-content:center; font-size:36px;
    background:radial-gradient(circle at 30% 25%, rgba(212,175,55,0.28), rgba(212,175,55,0.06));
    border:1px solid rgba(212,175,55,0.35); box-shadow:0 6px 24px rgba(212,175,55,0.18);
  }
  .online-etapes {
    display:flex; flex-direction:column; gap:8px; margin:16px 0;
    background:rgba(0,0,0,0.18); border-radius:12px; padding:12px 14px; text-align:left;
  }
  .online-etape { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--texte); }
  .oe-num {
    width:22px; height:22px; flex-shrink:0; border-radius:50%; background:var(--or); color:#1a1206;
    font-weight:800; font-size:12px; display:flex; align-items:center; justify-content:center;
  }
  .online-label {
    display:block; text-align:left; font-size:12px; font-weight:600; color:var(--doux);
    margin:12px 0 5px 2px; text-transform:uppercase; letter-spacing:0.5px;
  }
  .online-input {
    width:100%; padding:13px 15px; font-size:15px; border-radius:12px;
    background:rgba(0,0,0,0.25); border:1.5px solid var(--bord); color:var(--texte);
    transition:border-color 0.2s, box-shadow 0.2s; box-sizing:border-box; font-family:inherit;
  }
  .online-input:focus {
    outline:none; border-color:var(--or); box-shadow:0 0 0 3px rgba(212,175,55,0.15);
  }
  .online-input::placeholder { color:#5a6478; }
  .online-code {
    text-transform:uppercase; letter-spacing:6px; font-weight:800; font-size:22px;
    text-align:center; color:var(--or); margin-bottom:6px;
  }
  .carte-online .btn-or-cap { margin-top:14px; }
  .btn-or-cap {
    width:100%; background:linear-gradient(135deg,#e9c34a,#d4af37,#a8821a) !important;
    color:#1a1206 !important; font-weight:700; font-size:clamp(15px,1.8vw,17px);
    border:none; box-shadow:0 6px 24px rgba(212,175,55,0.3); letter-spacing:0.3px;
  }
  .btn-or-cap:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(212,175,55,0.45); }
  .rep-quest { transition:border-color .12s, transform .1s, background .12s; }
  .rep-quest:hover { border-color:rgba(212,175,55,0.6) !important; transform:translateX(3px); background:rgba(212,175,55,0.07) !important; }

  /* ===== ÉCRAN DE FIN SPECTACULAIRE ===== */
  #fin-confettis { position:fixed; inset:0; pointer-events:none; z-index:1; overflow:hidden; }
  .confetti { position:absolute; top:-20px; width:8px; height:8px; opacity:0.9; animation:tomber linear forwards; }
  @keyframes tomber {
    0% { transform:translateY(-20px) rotate(0deg); opacity:1; }
    100% { transform:translateY(105vh) rotate(720deg); opacity:0.4; }
  }
  .fin-banniere {
    text-align:center; padding:28px 20px 22px; margin-bottom:18px;
    background:linear-gradient(180deg, rgba(212,175,55,0.18), rgba(212,175,55,0.04));
    border:1.5px solid rgba(212,175,55,0.5); border-radius:20px;
    box-shadow:0 10px 40px rgba(212,175,55,0.15);
  }
  .fin-trophee { font-size:clamp(48px,9vw,72px); line-height:1; animation:trophee-pop .6s ease; }
  @keyframes trophee-pop { 0%{transform:scale(0) rotate(-30deg);} 70%{transform:scale(1.2) rotate(10deg);} 100%{transform:scale(1) rotate(0);} }
  .fin-felicitations { font-size:13px; letter-spacing:6px; color:var(--or); font-weight:700; margin-top:8px; }
  .fin-gagnant-nom {
    font-family:Georgia,serif; font-size:clamp(32px,6vw,48px); font-weight:800; margin:4px 0;
    background:linear-gradient(135deg,#f0d97a,#d4af37,#a8821a); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  }
  .fin-gagnant-titre { font-size:clamp(16px,2.4vw,20px); font-weight:700; color:var(--texte); }
  .fin-gagnant-desc { font-size:13px; color:var(--doux); font-style:italic; margin:6px auto 0; max-width:420px; }
  .fin-gagnant-stats { display:flex; justify-content:center; margin-top:14px; }
  .fin-gstat { background:rgba(7,10,18,0.4); border:1px solid rgba(212,175,55,0.3); border-radius:12px; padding:10px 22px; display:flex; flex-direction:column; gap:2px; }
  .fin-gstat span { font-size:11px; color:var(--doux); }
  .fin-gstat b { font-size:18px; color:var(--or); }

  .fin-ligne { padding:13px 14px; border:1px solid var(--bord); border-radius:12px; margin-bottom:10px; background:var(--bg2); }
  .fin-ligne.gagnant { border-color:rgba(212,175,55,0.5); background:linear-gradient(180deg,rgba(212,175,55,0.08),transparent); }
  .fin-ligne-tete { display:flex; align-items:center; gap:12px; }
  .fin-medaille { font-size:24px; min-width:30px; text-align:center; }
  .fin-coach { margin-top:8px; }
  .fin-coach summary { font-size:11px; font-weight:700; color:var(--doux); text-transform:uppercase; letter-spacing:.5px; cursor:pointer; }
  @media (max-width:560px) {
    .menu-duo { flex-direction:column; }
    .menu-btn-txt small { display:block; }
  }

  /* ===== SPLASH SCREEN DE LANCEMENT ===== */
  .splash {
    position:fixed; inset:0; z-index:200;
    background:
      radial-gradient(900px 500px at 50% 30%, rgba(212,175,55,0.10), transparent 60%),
      linear-gradient(180deg,#0f1420,#0a0e16);
    display:flex; align-items:center; justify-content:center; overflow:hidden;
  }
  .splash-dlab {
    position:absolute; text-align:center;
    animation: dlabCycle 2.8s ease forwards;
  }
  .dlab-label { font-size:14px; color:var(--doux); letter-spacing:3px; text-transform:uppercase; margin-bottom:8px; opacity:0.8; }
  .dlab-nom { font-size:32px; font-weight:800; letter-spacing:1px; color:#fff; font-family:Georgia,serif; }
  .dlab-nom span { color:var(--or); }
  @keyframes dlabCycle {
    0% { opacity:0; transform:scale(0.94); }
    20% { opacity:1; transform:scale(1); }
    75% { opacity:1; transform:scale(1); }
    100% { opacity:0; transform:scale(1.02); }
  }
  .splash-logo {
    text-align:center; opacity:0;
    animation: logoIn 1.2s ease 2.7s forwards;
  }
  @keyframes logoIn {
    0% { opacity:0; transform:translateY(16px); }
    100% { opacity:1; transform:translateY(0); }
  }
  .splash-embleme { margin-bottom:18px; filter:drop-shadow(0 4px 16px rgba(212,175,55,0.5)); animation: floaty 3s ease-in-out infinite 3.5s; }
  @keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-7px);} }
  .splash-marque { font-size:64px; font-weight:800; letter-spacing:-1.5px; font-family:Georgia,'Times New Roman',serif; color:#fff; text-shadow:0 2px 20px rgba(0,0,0,0.6); }
  .splash-marque span { color:var(--or); }
  .splash-slogan { font-size:16px; color:#cbd5e1; font-style:italic; margin-top:10px; letter-spacing:0.5px; }
  .splash-btn {
    margin-top:32px; width:auto; padding:13px 40px; font-size:15px; font-weight:700;
    background:linear-gradient(135deg,var(--or),#b8941f); color:#0f1420; border-radius:30px;
    box-shadow:0 6px 24px rgba(212,175,55,0.35); letter-spacing:0.5px;
    transition:transform .15s, box-shadow .15s;
  }
  .splash-btn:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(212,175,55,0.5); opacity:1; }
  .splash-credit { position:absolute; bottom:24px; left:0; right:0; text-align:center; font-size:11px; color:var(--doux); letter-spacing:1px; opacity:0; animation: logoIn 1s ease 3.2s forwards; }
  /* Bouton de langue FR/EN */
  .btn-langue {
    position:absolute; top:18px; right:18px; z-index:100;
    background:rgba(28,37,54,0.9); border:1.5px solid rgba(212,175,55,0.4);
    color:var(--or); font-weight:800; font-size:13px; letter-spacing:1px;
    width:46px; height:36px; border-radius:10px; cursor:pointer;
    transition:transform .12s, border-color .12s, background .12s;
  }
  .btn-langue:hover { transform:translateY(-1px); border-color:var(--or); background:rgba(212,175,55,0.15); }

  /* ===================== v2 : plateau sobre, pions à formes, illumination du tour ===================== */
  :root { --coul-actif:#ffffff; }
  .plateau { background:#0a0e19; border-color:#232b40; }

  /* cases : tuile sombre + bande de couleur + icône teintée (les couleurs vives sont réservées aux joueurs) */
  .case.depart{--f:#d4af37;} .case.bourse{--f:var(--bourse);} .case.immobilier{--f:var(--immo);}
  .case.obligations{--f:#84cc16;} .case.formation{--f:#a78bfa;} .case.crise{--f:#ef4444;}
  .case.imprevu{--f:#f97316;} .case.chance{--f:#facc15;} .case.impot{--f:#9ca3af;}
  .case.depart,.case.bourse,.case.immobilier,.case.obligations,.case.formation,
  .case.crise,.case.imprevu,.case.chance,.case.impot {
    background:#1a2138; border-top:5px solid var(--f); color:#e6eaf5; font-size:10px;
  }
  .case::after { background:none; }
  .case .nom { font-size:10px; font-weight:600; letter-spacing:-0.1px; text-shadow:none; }
  .case .icone svg { filter:none; }
  .case .icone svg[stroke="white"], .case .icone svg [stroke="white"] { stroke:var(--f); }
  .case .icone svg[fill="white"],   .case .icone svg [fill="white"]   { fill:var(--f); }
  .case:hover { box-shadow:0 6px 14px rgba(0,0,0,0.5); }

  /* pions : formes SVG distinctes, contour sombre */
  .pion { width:20px; height:20px; border:none; border-radius:0; box-shadow:none; background:none; }
  .pion svg { display:block; width:100%; height:100%; }
  .case .pions { bottom:2px; right:2px; }
  .javatar { background:none !important; width:44px; height:44px; }
  .javatar svg { display:block; width:100%; height:100%; }

  /* illumination : la couleur du joueur actif */
  .carte-moi { border:2px solid var(--or); }
  .carte-moi.lit { border-color:var(--coul-actif);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--coul-actif) 30%, transparent), 0 6px 20px rgba(0,0,0,0.35); }
  .carte-moi.lit h2 { display:inline-block; background:var(--coul-actif); color:#14182a; padding:4px 12px; border-radius:8px; }
  .joueur.actif { border:2px solid var(--coul-j, var(--or));
    box-shadow:0 0 0 3px color-mix(in srgb, var(--coul-j, var(--or)) 28%, transparent), 0 6px 24px rgba(0,0,0,0.3); }
  .carte-moi .joueur.actif { border:1px solid var(--bord); box-shadow:none; }
  .jbadge.actif-b { background:var(--coul-j, var(--or)); border-color:var(--coul-j, var(--or)); color:#14182a; }
  .centre-tour { border:2px solid var(--coul-actif);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--coul-actif) 28%, transparent), 0 8px 30px rgba(0,0,0,0.4); }
  .centre-titre { color:var(--coul-actif); display:flex; align-items:center; gap:8px; justify-content:center; }
  .centre-titre svg { width:20px; height:20px; flex:none; }
  .case.case-active { background:var(--coul-actif); color:#14182a; z-index:4;
    box-shadow:0 0 0 3px color-mix(in srgb, var(--coul-actif) 45%, transparent) !important; }
  .case.case-active .nom { color:#14182a; }
  .case.case-active .pion { width:24px; height:24px; }
  .case.case-active .pion svg * { stroke-width:3.4; }
  .case.case-active .icone svg[stroke="white"], .case.case-active .icone svg [stroke="white"] { stroke:#14182a; }
  .case.case-active .icone svg[fill="white"],   .case.case-active .icone svg [fill="white"]   { fill:#14182a; }

  /* ===================== v3 : écran simplifié, panneaux épurés, centre lisible ===================== */
  body { padding:12px 16px; background:#0c101b; }
  .ico { vertical-align:-2px; flex:none; }
  .h2-ico { display:flex; align-items:center; gap:7px; }
  .barre-haut { max-width:1600px; margin:0 auto 8px; display:flex; align-items:center; gap:14px; }
  .barre-haut h1 { font-size:22px; display:flex; align-items:center; gap:9px; white-space:nowrap; }
  .barre-haut .espace { flex:1; }
  #info-tour { margin:0; font-size:13px; color:var(--texte); background:#1a2138; border:1px solid var(--bord); padding:4px 12px; border-radius:999px; white-space:nowrap; }
  #info-tour .sous { display:inline; margin:0; }
  .btn-aide { width:auto; display:inline-flex; align-items:center; gap:6px; padding:6px 12px; font-weight:500; }
  .btn-aide:hover { opacity:1; border-color:var(--doux); color:var(--texte); }
  .plateau { position:relative; max-height:calc(100vh - 110px); max-width:calc(100vh - 110px); }
  .plateau { container-type:inline-size; }
  .case, .case .nom { font-size:clamp(8.5px,1.5cqw,11px); }
  .carte { background:var(--carte); box-shadow:none; }
  .centre { background:#0f1426; box-shadow:none; border-color:#2a3150; }

  .bandeau-marche { position:relative; overflow:visible; max-width:1600px; margin:0 auto 10px; padding:0;
    background:var(--carte); border:1px solid var(--bord); box-shadow:none; border-radius:10px; }
  .bandeau-marche::before, .bandeau-marche::after { display:none; }
  .bm-ligne { display:flex; align-items:center; gap:18px; padding:6px 14px; font-size:12.5px; flex-wrap:wrap; }
  .bm-titre { display:flex; align-items:center; gap:6px; font-size:11px; letter-spacing:.8px; text-transform:uppercase; color:var(--doux); }
  .bm-chip { color:var(--doux); } .bm-chip b { color:var(--texte); font-weight:600; }
  .bm-toggle { width:auto; margin-left:auto; background:transparent; border:1px solid var(--bord); color:var(--doux); padding:4px 10px; font-size:12px; font-weight:500; }
  .bm-toggle:hover { color:var(--texte); border-color:var(--doux); opacity:1; }
  .bm-detail { position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:60; background:#111729; border:1px solid var(--bord); border-radius:10px;
    padding:10px; display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:6px; box-shadow:0 12px 30px rgba(0,0,0,.5); }
  .bm-detail[hidden] { display:none; }
  .bm-carte { display:flex; align-items:center; gap:8px; padding:7px 10px; border:1px solid var(--bord); border-radius:8px; font-size:12px; flex-wrap:wrap; }
  .bm-carte .bm-nom { font-weight:600; } .bm-carte .bm-prix { color:var(--doux); margin-left:auto; }
  .bm-tag { flex-basis:100%; font-size:11px; color:var(--doux); }
  .hausse { color:#4ade80; } .baisse { color:#f87171; } .stable { color:var(--doux); }

  .joueur { background:#151b2c; border:1px solid var(--bord); padding:14px; margin-bottom:0; }
  .jobj { background:rgba(7,10,18,.45); border-radius:12px; padding:12px 14px; margin-bottom:10px; }
  .jobj-ligne { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:9px; }
  .jobj-label { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--doux); }
  .jobj-pct { font-size:26px; font-weight:700; color:var(--or); line-height:1; font-variant-numeric:tabular-nums; }
  .jobj.libre .jobj-pct { color:var(--oblig); }
  .jprog-barre.grosse { height:14px; border-radius:7px; }
  .jobj-detail { font-size:12px; color:var(--doux); margin-top:8px; }
  .jobj-detail b { color:var(--texte); font-weight:600; }
  .jcles { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
  .jcle { position:relative; background:rgba(255,255,255,.04); border:1px solid var(--bord); border-radius:10px; padding:10px 12px; }
  .jcle-l { display:flex; align-items:center; gap:5px; font-size:11.5px; color:var(--doux); margin-bottom:3px; }
  .jcle-v { font-size:19px; font-weight:700; color:var(--texte); font-variant-numeric:tabular-nums; }
  .jcle.passif .jcle-v { color:#4ade80; }
  .jcle-v small { font-size:11px; font-weight:400; color:var(--doux); margin-left:2px; }
  .jligne { display:flex; justify-content:space-between; font-size:12px; color:var(--doux); padding:2px 2px 0; }
  .jligne b { color:var(--texte); font-weight:600; }
  .jligne .dette b { color:#f87171; }
  .jdet { margin-top:10px; border-top:1px solid var(--bord); padding-top:8px; }
  .jdet summary { cursor:pointer; font-size:12px; color:var(--doux); list-style:none; display:flex; align-items:center; gap:6px; }
  .jdet summary::before { content:"›"; display:inline-block; transition:transform .15s; font-size:15px; line-height:1; }
  .jdet[open] summary::before { transform:rotate(90deg); }
  .delta-flottant { position:absolute; right:10px; bottom:8px; font-size:13px; font-weight:700; pointer-events:none; animation:deltaMonte 1.3s ease-out forwards; }
  .delta-flottant.gain { color:#4ade80; } .delta-flottant.perte { color:#f87171; }
  @keyframes deltaMonte { 0%{opacity:0;transform:translateY(6px);} 20%{opacity:1;} 100%{opacity:0;transform:translateY(-16px);} }
  .joueur.flash-gain { animation:flashGain .9s ease-out; } .joueur.flash-perte { animation:flashPerte .9s ease-out; }
  @keyframes flashGain  { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.7);}  100%{box-shadow:0 0 0 14px rgba(74,222,128,0);} }
  @keyframes flashPerte { 0%{box-shadow:0 0 0 0 rgba(248,113,113,.7);} 100%{box-shadow:0 0 0 14px rgba(248,113,113,0);} }
  .plateau.secousse { animation:secousse .6s ease-in-out; }
  @keyframes secousse { 0%,100%{transform:none;} 15%{transform:translate(-6px,2px);} 30%{transform:translate(5px,-3px);} 45%{transform:translate(-4px,3px);} 60%{transform:translate(3px,-2px);} 80%{transform:translate(-2px,1px);} }
  .voile-crise { position:absolute; inset:0; z-index:20; pointer-events:none; border-radius:14px; background:rgba(229,72,77,.25); animation:voileCrise .9s ease-out forwards; }
  @keyframes voileCrise { 0%{opacity:0;} 25%{opacity:1;} 100%{opacity:0;} }
  @media (prefers-reduced-motion: reduce) { .plateau.secousse,.voile-crise,.joueur.flash-gain,.joueur.flash-perte,.delta-flottant { animation:none; } }

  .centre-tour { max-width:460px; padding:20px 22px; }
  .centre-tour .msg { font-size:15px; line-height:1.5; background:none; padding:0; min-height:0; margin-bottom:14px; }
  .bilan-titre { font-size:12px; color:var(--doux); text-transform:uppercase; letter-spacing:.8px; }
  .bilan-net { font-size:34px; font-weight:700; margin:2px 0 4px; font-variant-numeric:tabular-nums; }
  .bilan-net.gain { color:#4ade80; } .bilan-net.perte { color:#f87171; }
  .bilan-det { font-size:12.5px; color:var(--doux); }
  .res-ligne { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:8px; }
  .de-puce { display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center; border-radius:9px; background:#f4f1e8; color:#14182a; font-size:22px; font-weight:700; }
  .res-case { font-size:20px; font-weight:700; }
  .res-ev { font-size:14px; line-height:1.45; color:#e6eaf5; }
  .centre-tour #boutons-tour button { background:var(--coul-actif); color:#14182a; font-size:15px; padding:13px 16px; }
  .centre-tour #actions button { background:#1b2340; border:2px solid var(--coul-actif); color:var(--texte); font-weight:500; }
  .centre-tour #actions button.sec { background:transparent; border:1px solid var(--bord); color:var(--doux); }
  .centre-tour #actions button:disabled { border-color:var(--bord); }
  #explication { font-size:12px; color:var(--doux); font-style:italic; margin:6px 0 10px; }
  #explication:empty { display:none; }

  /* ===== v5 : marque en horizontal + dessins du jeu au centre ===== */
  .centre-deco { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }
  .centre-marque { position:absolute; top:4.5%; left:0; right:0; z-index:2; pointer-events:none; display:flex; align-items:center; justify-content:center; gap:8px;
    font-family:Georgia,'Times New Roman',serif; font-weight:800; font-size:clamp(15px,3.2cqw,26px); color:#fff; letter-spacing:-.3px; }
  .centre-marque svg { width:.9em; height:.9em; color:#d4af37; flex:none; }
  .centre-editeur { position:absolute; bottom:3%; left:0; right:0; z-index:2; pointer-events:none; text-align:center;
    font-family:Georgia,'Times New Roman',serif; font-size:clamp(10px,1.7cqw,13px); font-weight:700; letter-spacing:.32em; color:#fff; }
  .centre-editeur span { color:#d4af37; }
  @container (max-width: 460px) { .centre-deco .ic { display:none; } .centre-marque { font-size:14px; } }

  /* ===== v6 : la carte du tour ne dépasse plus du centre ; les décors s'effacent s'il n'y a pas la place ===== */
  .centre-tour { max-height:100%; overflow-y:auto; scrollbar-width:thin; padding:16px 18px; background:rgba(16,21,31,0.92); }
  .centre-tour .msg { margin-bottom:8px; }
  .centre-tour .res-ligne { margin-bottom:4px; }
  .centre-tour #explication { margin:4px 0 6px; line-height:1.4; }
  .centre-tour #bandeau-nouvelle { margin:6px 0 !important; padding:8px 11px !important; }
  .centre-tour #boutons-tour button, .centre-tour #actions button { margin-top:5px; padding-top:9px; padding-bottom:9px; }
  .centre-marque, .centre-editeur, .centre-deco .deco-haut, .centre-deco .deco-bas { transition:opacity .2s; }
  .centre.sans-marque .centre-marque { opacity:0; }
  .centre.sans-deco-haut .centre-deco .deco-haut { opacity:0; }
  .centre.sans-editeur .centre-editeur { opacity:0; }
  .centre.sans-deco-bas .centre-deco .deco-bas { opacity:0; }
  .centre.serre #explication { display:none; }
  .centre.serre .centre-tour { padding:12px 14px; }
  .centre.serre .centre-tour #actions button, .centre.serre .centre-tour #boutons-tour button { padding-top:7px; padding-bottom:7px; font-size:13px; }
  .centre.serre .de-puce { width:34px; height:34px; font-size:18px; } .centre.serre .res-case { font-size:17px; }

  /* le mot du profil (Stable / Équilibré / Volatil) est coloré, seulement dans le panneau « Voir le marché »
     (le plateau lui-même n'est pas touché) */
  .bm-tag.pf-stable    { color:#4ade80; font-weight:600; }
  .bm-tag.pf-equilibre { color:#facc15; font-weight:600; }
  .bm-tag.pf-volatile  { color:#f87171; font-weight:600; }

  /* ===== v14 : compte / solo / questionnaire / aide — habillage plus soigné ===== */

  /* liste des joueurs (solo) : rangée numérotée + bouton de suppression */
  .jinput { display:flex; align-items:center; gap:8px; }
  .jinput-num { flex:none; width:26px; height:26px; border-radius:50%; background:var(--bg2); border:1px solid var(--bord);
    color:var(--doux); font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
  .jinput-retirer { width:auto; flex:none; background:transparent; border:1px solid var(--bord); color:var(--doux);
    padding:0; width:26px; height:26px; border-radius:50%; font-size:13px; line-height:1; }
  .jinput-retirer:hover { border-color:var(--crise); color:var(--crise); opacity:1; }

  /* panneau IA (solo) */
  .ia-panneau { margin:6px 0 16px; padding:14px; background:var(--bg2); border:1px solid var(--bord); border-radius:12px; }
  .ia-entete { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; margin-bottom:10px; }
  .ia-ico { width:26px; height:26px; border-radius:8px; background:rgba(212,175,55,0.12); display:flex; align-items:center; justify-content:center; font-size:14px; }
  .ia-ligne { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12.5px; margin-bottom:8px; }
  .ia-ligne:last-child { margin-bottom:0; }
  .online-select { width:auto; min-width:120px; padding:8px 10px; font-size:13px; }

  /* questionnaire : en-tête joueur, barre de progression, cartes de réponse A/B/C/D */
  .q-entete { display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
  .q-joueur-badge { width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#e9c34a,#a8821a);
    color:#1a1206; font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; flex:none; }
  .q-joueur-nom { font-size:15px; font-weight:700; color:var(--texte); }
  .q-joueur-sous { font-size:12px; color:var(--doux); }
  .q-barre-piste { height:6px; border-radius:3px; background:var(--bg2); overflow:hidden; margin-bottom:6px; }
  .q-barre-remplie { height:100%; background:linear-gradient(90deg,#1d9e75,#e9c34a); border-radius:3px; transition:width .3s ease; }
  .q-progression { font-size:11.5px; color:var(--doux); margin-bottom:16px; }
  #q-question { font-size:clamp(16px,2.2vw,20px); font-weight:600; margin-bottom:16px; line-height:1.4; }
  .rep-quest { display:flex; align-items:center; gap:12px; text-align:left; background:var(--bg2);
    border:1.5px solid var(--bord); border-radius:11px; padding:13px 15px; margin-bottom:9px; font-size:13.5px;
    color:var(--texte); transition:border-color .12s, background .12s, transform .1s; }
  .rep-quest:hover { border-color:var(--or); background:rgba(212,175,55,0.07); transform:translateX(2px); opacity:1; }
  .rep-lettre { flex:none; width:26px; height:26px; border-radius:50%; border:1.5px solid var(--bord);
    display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:var(--doux); }
  .rep-quest:hover .rep-lettre { border-color:var(--or); color:var(--or); }
  .rep-texte { flex:1; line-height:1.4; }

  /* aide : résumé en 4 étapes avant le détail par section */
  .aide-en-bref { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:6px; }
  .aide-etape { display:flex; gap:10px; background:var(--bg2); border:1px solid var(--bord); border-radius:11px; padding:12px 13px; }
  .aide-etape-num { flex:none; width:24px; height:24px; border-radius:50%; background:var(--or); color:#1a1206;
    font-weight:800; font-size:12px; display:flex; align-items:center; justify-content:center; }
  .aide-etape b { font-size:12.5px; color:var(--texte); }
  .aide-etape div { font-size:11.5px; color:var(--doux); line-height:1.5; }
  @media (max-width:560px) { .aide-en-bref { grid-template-columns:1fr; } }

  /* légères retouches : menu (hover plus net) et bulle du tutoriel (icône dans un badge) */
  .menu-btn { cursor:pointer; }
  #bulle-tuto { display:flex !important; } #bulle-tuto.cache { display:none !important; }
  #bulle-tuto > div { width:100%; }
  #bulle-tuto .bulle-ico { width:34px; height:34px; border-radius:50%; background:rgba(212,175,55,0.14);
    display:flex; align-items:center; justify-content:center; font-size:16px; flex:none; }

  /* ===== v15 : lancement — scintillement doré discret, en fond ===== */
  .splash-particules { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
  .splash-particules::before, .splash-particules::after {
    content:""; position:absolute; inset:-20%; background-repeat:repeat;
    background-image:
      radial-gradient(1.5px 1.5px at 10% 20%, rgba(212,175,55,.55), transparent),
      radial-gradient(1.5px 1.5px at 32% 68%, rgba(212,175,55,.4), transparent),
      radial-gradient(1px 1px at 55% 15%, rgba(212,175,55,.5), transparent),
      radial-gradient(1.5px 1.5px at 72% 45%, rgba(212,175,55,.35), transparent),
      radial-gradient(1px 1px at 88% 78%, rgba(212,175,55,.5), transparent),
      radial-gradient(1.5px 1.5px at 20% 88%, rgba(212,175,55,.3), transparent),
      radial-gradient(1px 1px at 45% 38%, rgba(212,175,55,.45), transparent);
    background-size:340px 340px; animation:deriveEtoiles 40s linear infinite;
  }
  .splash-particules::after { background-position:80px 120px; animation-duration:65s; animation-direction:reverse; opacity:.6; }
  @keyframes deriveEtoiles { from{transform:translateY(0);} to{transform:translateY(-340px);} }
  @media (prefers-reduced-motion: reduce) { .splash-particules::before, .splash-particules::after { animation:none; } }

  /* menu / jouer solo / à propos : la boussole remplace l'ancien rond "W" */
  .menu-cercle { display:flex; align-items:center; justify-content:center; }

/* FONDS D'URGENCE : tuile sous Liquidités / Revenu passif */
.jcle.fonds { grid-column: 1 / -1; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.jcle.fonds .jcle-l { margin-bottom:0; }
.jcle.fonds .jcle-v { font-size:17px; }
.jcle.fonds.cliquable { cursor:pointer; border-color:rgba(240,180,60,.55); background:rgba(240,180,60,.07); }
.jcle.fonds.cliquable:hover { background:rgba(240,180,60,.16); }
.jcle-h { font-size:10.5px; color:var(--doux); }
.jcle.fonds.cliquable .jcle-h { color:#f1d08a; }
