/* =========================================================================
   LA FRANCE EN AVANT — feuille de style
   Palette officielle La France Insoumise (charte 2027)
   ========================================================================= */
:root {
  --violet:  #7b13d6;
  --rouge:   #f91616;
  --bleu:    #3885f4;
  --rose:    #ed5fb1;
  --jaune:   #f9c900;
  --vert:    #2e9959;

  --grad: linear-gradient(115deg, var(--rouge) 0%, var(--violet) 100%);
  --grad-soft: linear-gradient(115deg, rgba(249,22,22,.18), rgba(123,19,214,.18));

  --bg:      #140e20;
  --bg2:     #0f0a1a;
  --panel:   #1d1530;
  --panel2:  #261b3e;
  --border:  #3a2c58;
  --text:    #f5eefc;
  --muted:   #a99cc4;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
/* overflow-x: clip sur html empêche le débordement horizontal SANS créer de
   conteneur de défilement (ce que ferait `hidden`, cassant position: sticky). */
html { overflow-x: clip; }
html, body { margin: 0; padding: 0; max-width: 100%; }
img, svg { max-width: 100%; }
body {
  font-family: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(123,19,214,.25), transparent 60%),
    radial-gradient(1000px 500px at 0% 0%, rgba(249,22,22,.18), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 900; letter-spacing: -.01em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
em.muted { font-style: normal; }

/* --- Topbar ------------------------------------------------------------ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px;
  background: linear-gradient(180deg, rgba(38,27,62,.92), rgba(29,21,48,.92));
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 30; backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  font-size: 2rem; line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(249,22,22,.5));
}
.logo-img {
  height: 40px; width: auto; border-radius: 8px; display: block;
  filter: drop-shadow(0 2px 6px rgba(123,19,214,.45));
}
.brand h1 {
  font-size: 1.35rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.title-row { display: flex; align-items: center; gap: 8px; }
.beta {
  font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; -webkit-text-fill-color: #fff; background: var(--violet);
  padding: 2px 7px; border-radius: 999px; line-height: 1.4; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(123,19,214,.4);
}
.rank {
  display: inline-block; font-size: .8rem; font-weight: 700;
  color: var(--jaune);
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.energy { display: flex; align-items: center; gap: 8px; }
.energy-bar { width: 90px; height: 9px; background: #2a2042; border-radius: 6px; overflow: hidden; }
.energy-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--jaune), #ffe169); transition: width .3s; }
.energy-text { font-size: .75rem; color: var(--muted); white-space: nowrap; }

/* --- Boutons ----------------------------------------------------------- */
.btn {
  font-family: inherit; font-weight: 800; cursor: pointer;
  border: none; border-radius: 10px; padding: 9px 14px;
  background: var(--grad); color: #fff; font-size: .9rem;
  transition: transform .08s, filter .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(123,19,214,.35);
}
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.4); box-shadow: none; }
.btn.big { padding: 13px 20px; font-size: 1rem; width: 100%; margin-top: 12px; }
.btn.small { padding: 6px 11px; font-size: .8rem; box-shadow: none; }
.btn.ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { border-color: var(--violet); }
/* Bouton destructeur (rouge vif) */
.btn.danger { background: #c81020; background-image: linear-gradient(180deg, #e0142a, #a30d1b); border: 1.5px solid #ff4d5e; color: #fff; box-shadow: 0 4px 14px rgba(200,16,32,.45); }
.btn.danger:hover:not(:disabled) { filter: brightness(1.12); }
.restart-btn { width: 100%; margin-top: 14px; }

/* --- Barre de ressources ---------------------------------------------- */
.resource-bar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 12px 16px; background: rgba(15,10,26,.6);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 63px; z-index: 25; backdrop-filter: blur(6px);
}
.res {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--panel); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 30px; min-width: 120px;
}
.res { white-space: nowrap; }
.res-icon { font-size: 1.05rem; }
.res-val { font-weight: 900; font-size: 1.02rem; white-space: nowrap; }
.res-rate { font-size: .72rem; color: var(--vert); font-weight: 700; }

.res { cursor: help; }

/* --- Tooltip ----------------------------------------------------------- */
.tooltip {
  display: none; position: fixed; z-index: 80; max-width: 260px;
  background: #0e0a18; border: 1.5px solid var(--violet); border-radius: 10px;
  padding: 10px 12px; box-shadow: var(--shadow); pointer-events: none;
  font-size: .85rem; line-height: 1.4;
}
.tooltip b { font-size: .92rem; }
.tip-howto { color: var(--vert); font-weight: 700; margin-top: 6px; font-size: .8rem; }

/* --- Aperçu de coût (solde avant → après) ----------------------------- */
.cost-preview { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.cost-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 3px 0; font-size: .88rem; }
.cost-line + .cost-line { border-top: 1px dashed var(--border); }
.cost-nums { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-nums .pos { color: var(--vert); }
.cost-nums .neg { color: var(--rouge); }
.cost-line.bad { opacity: .9; }
.after-hint { margin-top: 6px; text-align: center; }
.after-hint .neg { color: var(--rouge); font-weight: 800; }
.mini-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 0; }

/* --- Bannière quête ---------------------------------------------------- */
.quest-banner {
  display: none; align-items: center; justify-content: center; gap: 12px;
  padding: 8px 16px; margin: 0; font-size: .9rem; font-weight: 700;
  background: var(--grad-soft); border-bottom: 1px solid var(--border);
}

/* --- Barre nationale : répartition par parti --------------------------- */
.nation-bar { padding: 7px 16px 9px; background: rgba(15,10,26,.6); border-bottom: 1px solid var(--border); }
.nb-track {
  position: relative; display: flex; height: 18px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: #2a2440;
}
.nb-seg { height: 100%; min-width: 0; transition: width .4s ease; }
.nb-seg.lfi { background: var(--grad); box-shadow: 0 0 10px rgba(249,22,22,.55); position: relative; z-index: 1; }
@keyframes flashRN { 0%, 100% { filter: none; } 35% { filter: brightness(2.2) drop-shadow(0 0 7px #f91616); } }
.nb-seg.flash-rn { animation: flashRN .5s ease 3; position: relative; z-index: 2; }
.nb-50 { position: absolute; top: -2px; bottom: -2px; left: 50%; width: 2px; background: rgba(255,255,255,.5); z-index: 2; }
.nb-legend2 { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .72rem; font-weight: 700; margin-top: 5px; justify-content: center; }
.nb-item { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.nb-item.lfi { color: var(--text); }
.nb-item i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.nb-item b { color: var(--text); }

/* --- Encart objectif (persistant) ------------------------------------- */
.objective-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 8px 16px; cursor: pointer; flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(123,19,214,.14), transparent);
  border-bottom: 1px solid var(--border); font-size: .9rem; transition: background .15s;
}
.objective-bar:hover { background: linear-gradient(180deg, rgba(123,19,214,.26), transparent); }
.obj-target b { color: var(--jaune); }
.obj-prog { width: 160px; max-width: 38vw; height: 9px; background: #2a2042; border-radius: 6px; overflow: hidden; }
.obj-fill { display: block; height: 100%; background: var(--grad); transition: width .4s; }
.obj-count { font-weight: 800; font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--muted); }
.obj-go { font-weight: 900; color: var(--violet); }

/* --- Bloc fixé en haut (header + monnaies + barre nationale) ----------- */
.topfixed { position: sticky; top: 0; z-index: 30; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.topfixed .topbar { position: static; z-index: auto; }
.topfixed .resource-bar { position: static; top: auto; z-index: auto; }

/* --- Bulle flottante : objectif + quête (déplaçable, repliable) -------- */
.float-obj {
  position: fixed; z-index: 38; width: 250px; max-width: calc(100vw - 12px);
  background: var(--panel); border: 1.5px solid var(--violet); border-radius: 13px;
  box-shadow: var(--shadow); overflow: hidden;
}
.fo-head {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: grab;
  background: var(--grad-soft); border-bottom: 1px solid var(--border);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.fo-head:active { cursor: grabbing; }
.fo-grip { color: var(--muted); font-size: .9rem; }
.fo-title { flex: 1; font-weight: 800; font-size: .84rem; }
.fo-toggle { background: var(--panel2); border: 1px solid var(--border); color: var(--text); border-radius: 7px; width: 26px; height: 23px; cursor: pointer; font-weight: 800; line-height: 1; }
.fo-toggle:hover { border-color: var(--violet); }
.float-obj.collapsed .fo-body { display: none; }
.fo-body { padding: 2px; }
.float-obj .objective-bar, .float-obj .quest-banner {
  position: static; background: none; border: none; margin: 0; padding: 9px;
  flex-wrap: wrap; justify-content: flex-start; gap: 7px; font-size: .82rem;
}
.float-obj .objective-bar:hover { background: none; }
.float-obj .quest-banner { border-top: 1px dashed var(--border); }
.float-obj .obj-target { width: 100%; }
.float-obj .obj-prog { width: 100%; max-width: 100%; }

/* --- Onglets ----------------------------------------------------------- */
.tabs {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  padding: 12px 16px 4px;
}
.tab {
  font-family: inherit; font-weight: 800; font-size: .88rem; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--panel); color: var(--muted);
  padding: 9px 16px; border-radius: 30px; transition: all .15s;
}
.tab:hover { color: var(--text); border-color: var(--violet); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(249,22,22,.3); }

/* --- Vue / panneaux ---------------------------------------------------- */
.view { max-width: 980px; margin: 0 auto; padding: 18px 16px 60px; }
.panel-head { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.panel-head h2 { font-size: 1.4rem; }
.panel-head p { margin: 4px 0 0; flex-basis: 100%; }

/* --- Carte ------------------------------------------------------------- */
.map-host {
  position: relative;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  user-select: none; -webkit-user-select: none;
}
.france-svg {
  width: 100%; height: auto; display: block; touch-action: none; cursor: default;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.france-svg text, .city, .city-label { user-select: none; -webkit-user-select: none; }
.france-svg.zoomed { cursor: grab; }
.france-svg.zoomed:active { cursor: grabbing; }
/* Pas de transition pendant le glisser : le déplacement doit être instantané. */
.zoom-layer { will-change: transform; }

.map-hint {
  position: absolute; left: 10px; bottom: 8px; z-index: 5;
  font-size: .72rem; color: var(--muted); pointer-events: none;
  background: rgba(20,14,32,.6); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(3px);
}

.map-zoom-controls {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
}
.map-zoom-controls button {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  background: rgba(20,14,32,.82); border: 1.5px solid var(--border); color: var(--text);
  font-size: 1.15rem; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: border-color .15s, background .15s;
}
.map-zoom-controls button:hover { border-color: var(--violet); background: rgba(36,27,62,.92); }
.france-circo {
  fill: #2a1f44; stroke: #4a3a6e; stroke-width: .5; stroke-linejoin: round;
  filter: drop-shadow(0 0 22px rgba(123,19,214,.3));
}
.city { cursor: pointer; }
.city:focus { outline: none; }
.city:hover .city-dot, .city:focus .city-dot { filter: brightness(1.35); }
.city:hover .city-label, .city:focus .city-label { opacity: 1; }
.city-dot { fill: #b3a3d6; stroke: #140e20; stroke-width: 1.5; transition: fill .3s, filter .15s; }
.city-dot.rn { fill: var(--bleu); }
.city-dot.droite { fill: #8b9bc0; }
.city-dot.deployed { fill: var(--jaune); }
.city-dot.owned { fill: var(--rouge); }
.city-ring { stroke: var(--rouge); stroke-width: 2.5; transition: stroke-dashoffset .4s; opacity: .95; }
.city-label {
  fill: #efe7fb; font-size: 13px; font-weight: 800; pointer-events: none;
  paint-order: stroke; stroke: #140e20; stroke-width: 3px; stroke-linejoin: round;
  opacity: 0; transition: opacity .15s;
}
.city.major .city-label { opacity: 1; }
.city.readonly { cursor: default; }

/* --- Cartes (bâtiments) ------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .12s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--violet); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-icon { font-size: 2rem; }
.card-count { font-weight: 900; font-size: 1.1rem; color: var(--jaune); }
.card h3 { font-size: 1.05rem; }
.card-prod { font-size: .8rem; color: var(--vert); font-weight: 800; margin: 4px 0 8px; }
.card-prod em { color: var(--muted); font-weight: 600; font-style: normal; }
.card .btn { margin-top: auto; }

/* --- Détail ville (modale) -------------------------------------------- */
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.kv b { font-weight: 800; }
.city-state { margin: 12px 0; padding: 10px; border-radius: 10px; font-weight: 800; text-align: center; }
.city-state.owned { background: rgba(46,153,89,.18); color: #6ee2a0; }
.progress { height: 12px; background: #2a2042; border-radius: 8px; overflow: hidden; margin: 12px 0 6px; }
.progress-fill { height: 100%; background: var(--grad); transition: width .4s; }
/* Repère « majorité 51 % » sur la barre d'une ville */
.city-prog { position: relative; }
.prog-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: .85; box-shadow: 0 0 3px #000; }

/* --- Compétences ------------------------------------------------------- */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.skill-branch { background: var(--panel); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px; }
.skill-branch h3 { font-size: 1.05rem; margin-bottom: 10px; }
.skill-node { background: var(--panel2); border-radius: 10px; padding: 11px; margin-bottom: 10px; border-left: 3px solid var(--border); }
.skill-node.owned { border-left-color: var(--vert); }
.skill-node.locked { opacity: .55; }
.skill-name { font-weight: 800; font-size: .92rem; margin-bottom: 3px; }
.skill-badge { color: var(--vert); font-weight: 800; font-size: .82rem; margin-top: 6px; }
.skill-node .btn { margin-top: 8px; }

/* --- Le vrai programme LFI --------------------------------------------- */
.prog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.prog-sec {
  background: var(--panel); border: 1px solid var(--border);
  border-left: 4px solid var(--c); border-radius: var(--radius); padding: 16px;
}
.prog-theme { font-size: 1.1rem; color: var(--c); margin-bottom: 12px; }
.prog-point { padding: 9px 0; border-top: 1px dashed var(--border); }
.prog-point:first-of-type { border-top: none; }
.prog-t { font-weight: 800; font-size: .96rem; margin-bottom: 3px; }
.prog-t::before { content: "✓ "; color: var(--c); font-weight: 900; }
.prog-w { font-size: .85rem; line-height: 1.45; }
.prog-cta {
  text-align: center; margin: 24px auto 0; max-width: 620px; padding: 20px;
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.prog-cta .btn { display: inline-block; width: auto; margin: 8px 0; text-decoration: none; }

/* --- Boss -------------------------------------------------------------- */
.boss-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.boss-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--panel); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px; position: relative; overflow: hidden;
}
.boss-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, color-mix(in srgb, var(--boss) 22%, transparent), transparent 55%);
  pointer-events: none;
}
.boss-card.final { border-color: var(--bleu); border-width: 2px; }
.boss-card.beaten { opacity: .8; }
.boss-card.locked { opacity: .55; }
.boss-emoji { font-size: 2.6rem; position: relative; }
.boss-photo {
  position: relative; width: 64px; height: 64px; border-radius: 12px;
  object-fit: cover; object-position: top center; border: 2px solid var(--border);
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.boss-card.final .boss-photo { border-color: var(--bleu); }
.boss-card.beaten .boss-photo { filter: grayscale(.5); }
.boss-photo.big {
  display: block; width: 130px; height: 130px; margin: 0 auto 14px; border-radius: 16px;
  border-color: var(--violet);
}
.boss-info { position: relative; flex: 1; }
.boss-info h3 { font-size: 1.08rem; }
.boss-badge { font-weight: 800; font-size: .82rem; margin-top: 8px; }
.boss-badge.win { color: var(--vert); }
.boss-badge.lock { color: var(--muted); }
.boss-fight { margin-top: 10px; }

/* --- Boss : intro / résultat ------------------------------------------ */
.boss-intro { text-align: center; padding: 8px 4px; }
.boss-intro.phase .phase-label { font-weight: 900; font-size: 1.15rem; color: var(--jaune); margin-bottom: 14px; }
.boss-result { text-align: center; padding: 10px; }
.boss-result .big-emoji { font-size: 4rem; }
.boss-result.win h2 { color: var(--vert); }
.boss-result.lose h2 { color: var(--rose); }

/* --- Mini-jeu débat ---------------------------------------------------- */
.mg-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 8px; }
.mg-timer { color: var(--jaune); }
.poll-bar { position: relative; height: 22px; background: #2a2042; border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.poll-fill { height: 100%; width: 38%; background: var(--jaune); transition: width .3s, background .3s; }
.poll-target { position: absolute; top: -3px; bottom: -3px; width: 3px; background: #fff; box-shadow: 0 0 6px #fff; }
.poll-num { text-align: center; font-weight: 800; margin: 6px 0 14px; }
.mg-question { font-size: 1.1rem; font-weight: 800; text-align: center; margin: 12px 0; min-height: 2.4em; }
.mg-question.fake {
  background: rgba(249,22,22,.14); border: 1.5px solid var(--rouge); border-radius: 10px;
  padding: 10px 12px; color: #ffd9d9;
}
.mg-answers { display: flex; flex-direction: column; gap: 10px; }
.mg-answer {
  font-family: inherit; text-align: left; cursor: pointer;
  background: var(--panel2); border: 1.5px solid var(--border); color: var(--text);
  padding: 13px 15px; border-radius: 11px; font-size: .95rem; font-weight: 600;
  transition: all .12s;
}
.mg-answer:hover:not(:disabled) { border-color: var(--violet); transform: translateX(3px); }
.mg-answer.good { background: rgba(46,153,89,.3); border-color: var(--vert); }
.mg-answer.bad { background: rgba(249,22,22,.3); border-color: var(--rouge); }
.mg-answer:disabled { cursor: default; }

/* --- Mini-jeu fake news ------------------------------------------------ */
.fk-area {
  position: relative; height: 300px; margin-top: 10px;
  background: var(--bg2); border: 1.5px dashed var(--border); border-radius: 12px; overflow: hidden;
}
.fk-bubble {
  position: absolute; font-family: inherit; cursor: pointer;
  background: var(--bleu); color: #fff; border: none; font-weight: 800;
  padding: 9px 13px; border-radius: 10px; font-size: .82rem; max-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4); transition: transform .15s, opacity .15s;
}
.fk-bubble:hover { transform: scale(1.06); }
.fk-bubble.pop { transform: scale(1.5); opacity: 0; background: var(--vert); }
.fk-bubble.spread { transform: scale(1.8); opacity: 0; background: var(--rouge); }

/* --- Mini-jeu tir à la corde ------------------------------------------ */
.tug-bar { position: relative; height: 30px; background: var(--bleu); border-radius: 14px; overflow: hidden; margin: 6px 0; }
.tug-fill { height: 100%; width: 50%; background: var(--grad); transition: width .12s; }
.tug-mid { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,.7); }

/* --- Succès ------------------------------------------------------------ */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.ach {
  display: flex; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 13px;
  opacity: .6;
}
.ach.got { opacity: 1; border-color: var(--jaune); background: linear-gradient(115deg, rgba(249,201,0,.12), var(--panel)); }
.ach-icon { font-size: 1.9rem; }
.ach-body b { font-size: .95rem; }
.ach-rew { color: var(--vert); }
/* Barre de progression des succès chiffrés */
.ach-prog { margin: 6px 0 2px; }
.ach-prog-bar { height: 7px; background: rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; }
.ach-prog-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--jaune)); border-radius: 5px; transition: width .3s ease; }
.ach-prog-txt { font-size: .72rem; font-weight: 700; color: var(--muted); margin-top: 2px; }

/* --- Social ------------------------------------------------------------ */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* nouvelle dispo : amis en haut (pleine largeur), 2 classements côte à côte dessous */
.social-friends { margin-bottom: 14px; }
.social-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.share-cta { width: 100%; margin: 4px 0 18px; background: linear-gradient(100deg, var(--rouge), var(--violet));
  border: none; color: #fff; font-weight: 800; box-shadow: 0 6px 20px rgba(123,19,214,.3); }
.share-cta:hover { filter: brightness(1.08); }
/* modale de partage (aperçu image + actions) */
.share-modal { text-align: center; }
.share-img { width: 100%; max-width: 340px; border-radius: 16px; box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.share-hint { margin: 12px auto 16px; line-height: 1.5; max-width: 360px; }
.share-actions { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.share-actions .btn { width: 100%; text-decoration: none; }
.map-share-btn { background: linear-gradient(100deg, var(--rouge), var(--violet)); border: none; color: #fff; font-weight: 800; }
.map-share-btn:hover { filter: brightness(1.08); }
.social-col h3 { font-size: 1.05rem; margin-bottom: 12px; }
.row { display: flex; gap: 8px; margin-bottom: 14px; }
.row input, .auth input { flex: 1; }
input {
  font-family: inherit; font-size: .92rem; padding: 10px 12px;
  background: var(--panel2); border: 1.5px solid var(--border); border-radius: 10px; color: var(--text);
  width: 100%;
}
input:focus { outline: none; border-color: var(--violet); }
.friends-list, .leaderboard { display: flex; flex-direction: column; gap: 8px; }
.friend-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px;
  transition: border-color .15s;
}
.friend-row:hover { border-color: var(--violet); }
.friend-meta { display: flex; flex-direction: column; }
.friend-meta span { font-size: .76rem; }
.friend-stat { font-weight: 800; font-size: .82rem; color: var(--jaune); white-space: nowrap; }
.lb-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; }
.lb-row.me { border-color: var(--rouge); background: linear-gradient(115deg, rgba(249,22,22,.12), var(--panel2)); }
.lb-rank { font-weight: 900; text-align: center; }
.lb-name { display: flex; flex-direction: column; line-height: 1.2; }
.lb-name em { font-size: .72rem; }
.lb-voix { font-weight: 800; color: var(--rouge); white-space: nowrap; }
.friend-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.fs { background: var(--panel2); border: 1px solid var(--border); border-radius: 9px; padding: 7px 11px; font-weight: 700; font-size: .85rem; }
.empty { text-align: center; padding: 30px 10px; }
.empty .btn { width: auto; display: inline-block; margin-top: 14px; }

/* --- Auth -------------------------------------------------------------- */
.auth { display: flex; flex-direction: column; gap: 6px; }
.auth label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: 8px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.auth-tab { flex: 1; font-family: inherit; font-weight: 800; cursor: pointer; padding: 9px; border-radius: 9px;
  background: var(--panel2); border: 1.5px solid var(--border); color: var(--muted); }
.auth-tab.active { background: var(--grad); color: #fff; border-color: transparent; }
.auth-err { color: var(--rose); font-size: .82rem; font-weight: 700; min-height: 1.1em; margin-top: 6px; }
.auth-warning {
  margin-top: 12px; padding: 11px 13px; font-size: .82rem; line-height: 1.5;
  background: rgba(249,201,0,.1); border: 1.5px solid var(--jaune); border-radius: 10px;
}
.auth-warning b { color: var(--jaune); }

/* --- Événements -------------------------------------------------------- */
.event-text { font-size: 1.05rem; font-weight: 700; text-align: center; margin: 4px 0 16px; }
.event-choices { display: flex; flex-direction: column; gap: 10px; }
.event-choice { text-align: left; }

/* --- Hors-ligne -------------------------------------------------------- */
.off-gains { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 16px 0; }
.off-gain { background: var(--panel2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; font-size: 1.05rem; }
.howto { padding-left: 20px; line-height: 1.7; }
.howto li { margin-bottom: 4px; }

/* --- Toasts (en HAUT À DROITE : hors de la zone de jeu) ----------------- */
.toasts { position: fixed; top: 70px; right: 10px; left: auto; bottom: auto; transform: none; z-index: 210;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  width: auto; max-width: min(340px, 82vw); pointer-events: none; }
.toasts .toast { pointer-events: auto; }
.toast {
  background: var(--panel); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-weight: 700; font-size: .86rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(24px); transition: all .35s; width: auto; max-width: 100%; text-align: left;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.good { border-color: var(--vert); }
.toast.bad { border-color: var(--rouge); }
.toast.ach { border-color: var(--jaune); background: linear-gradient(115deg, rgba(249,201,0,.18), var(--panel)); }

/* --- Feuille de route -------------------------------------------------- */
.roadmap { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.rm-item {
  display: flex; align-items: center; gap: 12px; position: relative;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 13px;
}
.rm-item.done { opacity: .72; }
.rm-item.current { border-color: var(--jaune); background: linear-gradient(115deg, rgba(249,201,0,.12), var(--panel2)); }
.rm-item.future { opacity: .62; }
.rm-ic { font-size: 1.3rem; width: 34px; text-align: center; flex-shrink: 0; }
.rm-photo { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; object-position: top center; border: 1.5px solid var(--border); flex-shrink: 0; }
.rm-body { flex: 1; }
.rm-body b { font-size: .95rem; }
.rm-prog { height: 7px; background: #2a2042; border-radius: 5px; overflow: hidden; margin: 5px 0 2px; }
.rm-prog span { display: block; height: 100%; background: var(--grad); }
.rm-tag { font-size: .72rem; font-weight: 800; color: var(--jaune); white-space: nowrap; }
.rm-tag.done { color: var(--vert); }

/* --- Modales ----------------------------------------------------------- */
/* z-index 220 : au-dessus du landing (100), de l'overlay Express (200) et des toasts (210) */
.modal-root { display: none; position: fixed; inset: 0; z-index: 220; }
.modal-overlay { position: absolute; inset: 0; background: rgba(8,5,15,.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal {
  background: var(--panel); border: 1.5px solid var(--border); border-radius: 18px;
  width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow);
  animation: pop .22s ease;
}
.modal.wide { max-width: 620px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); }
.modal-head h2 { font-size: 1.2rem; }
.modal-close { background: var(--panel2); border: 1px solid var(--border); color: var(--text);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.modal-close:hover { border-color: var(--rouge); }
.modal-body { padding: 18px; }

/* --- Footer ------------------------------------------------------------ */
.foot { text-align: center; padding: 16px; border-top: 1px solid var(--border); margin-top: 20px; }

/* =======================================================================
   ANIMATIONS — "du vivant"
   ======================================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* Logo qui respire doucement */
  @keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
  .logo-img, .logo { animation: breathe 4.5s ease-in-out infinite; }

  /* Postes de campagne déployés : ils "travaillent" (pulsation) */
  @keyframes postePulse {
    0%, 100% { opacity: 1;   filter: drop-shadow(0 0 0 var(--jaune)); }
    50%      { opacity: .65; filter: drop-shadow(0 0 5px var(--jaune)); }
  }
  .city-dot.deployed { animation: postePulse 1.5s ease-in-out infinite; }

  /* Ville conquise : petit "pop" festif (joué une seule fois à la conquête) */
  .city-dot { transform-box: fill-box; transform-origin: center; }
  @keyframes conquerPop {
    0%   { transform: scale(.3); }
    55%  { transform: scale(1.7); }
    100% { transform: scale(1); }
  }
  .city-dot.owned {
    filter: drop-shadow(0 0 3px var(--rouge));
    animation: conquerPop .55s cubic-bezier(.3,1.4,.5,1);
  }

  /* Bastions RN encore à prendre : clignotement bleu inquiétant */
  @keyframes rnPulse {
    0%, 100% { filter: drop-shadow(0 0 0 var(--bleu)); }
    50%      { filter: drop-shadow(0 0 5px var(--bleu)); }
  }
  .city-dot.rn { animation: rnPulse 2.4s ease-in-out infinite; }

  /* Fondu doux au changement d'onglet */
  @keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .view.anim { animation: viewIn .26s ease; }

  /* Barres qui chatoient (énergie, objectif) */
  .energy-fill {
    background: linear-gradient(90deg, var(--jaune), #ffe169, var(--jaune));
    background-size: 200% 100%; animation: shimmer 2.8s linear infinite;
  }
  .obj-fill, .progress-fill {
    background-image: linear-gradient(115deg, var(--rouge), var(--violet), var(--rouge));
    background-size: 200% 100%; animation: shimmer 3.2s linear infinite;
  }
  @keyframes shimmer { to { background-position: -200% 0; } }

  /* Pétales de rose qui montent (victoire) */
  @keyframes petalRise {
    0%   { transform: translateY(0) rotate(0); opacity: 0; }
    15%  { opacity: 1; }
    100% { transform: translateY(-120px) rotate(220deg); opacity: 0; }
  }
  .petal { position: fixed; z-index: 70; font-size: 1.4rem; pointer-events: none; animation: petalRise 1.8s ease-out forwards; }

  /* Quête accomplie : la bannière pulse légèrement */
  @keyframes glowPulse { 0%,100% { box-shadow: inset 0 0 0 rgba(249,201,0,0); } 50% { box-shadow: inset 0 0 24px rgba(249,201,0,.25); } }
}

/* =======================================================================
   FX & OPPORTUNITÉS (styles de base — toujours actifs)
   ======================================================================= */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 75; overflow: hidden; }
.fx-float {
  position: fixed; transform: translate(-50%, 0); font-weight: 900; font-size: 1rem;
  color: #fff; text-shadow: 0 2px 6px #000, 0 0 2px #000; white-space: nowrap;
  animation: floatUp 1.15s ease-out forwards;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -48px) scale(1.05); }
}
.fx-burst { position: fixed; transform: translate(-50%, -50%); animation: burstOut .82s ease-out forwards; }
@keyframes burstOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.7); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); }
}
.petal { position: fixed; z-index: 70; pointer-events: none; }

/* Pastille d'opportunité sur la carte (SVG) */
.opp-marker { cursor: pointer; }
.opp-disc { fill: var(--oc); stroke: #140e20; stroke-width: 2; }
.opp-halo { fill: var(--oc); transform-box: fill-box; transform-origin: center; opacity: .35; animation: oppHalo 1.5s ease-out infinite; }
@keyframes oppHalo { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(1.5); opacity: 0; } }
.opp-ic { font-size: 14px; pointer-events: none; }
.opp-label { fill: #fff; font-size: 11px; font-weight: 800; pointer-events: none; paint-order: stroke; stroke: #140e20; stroke-width: 3px; stroke-linejoin: round; }
.opp-marker:hover .opp-disc, .opp-marker:focus .opp-disc { filter: brightness(1.25); }
.opp-marker.danger .opp-disc { animation: dangerBlink .6s steps(2, jump-none) infinite; }
@keyframes dangerBlink { 50% { filter: brightness(1.7); } }

/* Onde de conquête + ping radar (SVG, transform-scale = cross-browser) */
.shockwave { fill: none; stroke: var(--rouge); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: shock .9s ease-out forwards; }
@keyframes shock { from { transform: scale(1); opacity: .9; } to { transform: scale(11); opacity: 0; } }
.radar-ping { fill: none; stroke: var(--rouge); stroke-width: 2; opacity: .5; transform-box: fill-box; transform-origin: center; animation: radar 1.6s ease-out forwards; }
@keyframes radar { from { transform: scale(1); opacity: .5; } to { transform: scale(8); opacity: 0; } }

/* Badges d'opportunité en coin */
.opp-corner-host { position: fixed; top: 116px; right: 12px; z-index: 45; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; max-width: 90vw; }
.opp-corner {
  position: relative; display: flex; align-items: center; gap: 10px; max-width: 270px;
  cursor: pointer; font-family: inherit; text-align: left; color: var(--text);
  background: var(--panel); border: 2px solid var(--oc); border-radius: 12px;
  padding: 10px 13px; box-shadow: var(--shadow); overflow: hidden;
  animation: oppIn .35s cubic-bezier(.2,1.3,.5,1) both;
}
.opp-corner:hover { filter: brightness(1.08); transform: translateY(-1px); }
.opp-corner-ic { font-size: 1.6rem; animation: bob 1.5s ease-in-out infinite; }
.opp-corner-body { display: flex; flex-direction: column; min-width: 0; }
.opp-corner-body b { font-size: .92rem; }
.opp-corner-flav { font-size: .73rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opp-corner-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--oc); transform-origin: left; animation: countdown linear forwards; }
@keyframes countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.opp-out { animation: oppOut .25s ease forwards !important; }
@keyframes oppIn { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes oppOut { to { opacity: 0; transform: translateX(34px); } }
@keyframes bob { 50% { transform: translateY(-3px); } }

/* Objet qui traverse l'écran (tractage) */
.opp-moving-host { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.opp-truck {
  pointer-events: auto; position: absolute; left: -180px; display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-family: inherit; color: #fff; background: var(--oc); border: none;
  border-radius: 30px; padding: 8px 16px 8px 12px; font-weight: 800; white-space: nowrap;
  box-shadow: var(--shadow); animation: truckAcross linear forwards;
}
.opp-truck-ic { font-size: 1.4rem; }
.opp-truck:hover { filter: brightness(1.12); }
@keyframes truckAcross { from { left: -180px; } to { left: 100vw; } }

/* Pastille de notification sur les onglets */
.tab { position: relative; }
.tab-dot {
  position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--rouge); border: 2px solid var(--bg);
  animation: dotPulse 1.3s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,22,22,.6); }
  50% { box-shadow: 0 0 0 6px rgba(249,22,22,0); }
}

/* Bulle de survol des villes */
.tip-row { font-size: .82rem; margin-top: 3px; }
.tip-row .neg { color: var(--rose); }
.tip-ok { color: var(--vert); font-weight: 700; font-size: .82rem; margin: 4px 0; }

/* Intro de boss : la photo arrive en scène */
.boss-photo.big { animation: bossIn .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes bossIn { from { opacity: 0; transform: scale(.6) rotate(-6deg); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .opp-corner-host { top: 8px; right: 8px; }
  .opp-corner { max-width: 78vw; }
}

/* =======================================================================
   ONBOARDING (clarté / guidage)
   ======================================================================= */
#onb-spot {
  position: fixed; z-index: 40; border-radius: 12px; pointer-events: none; display: none;
  box-shadow: 0 0 0 9999px rgba(8,5,15,.62);
  border: 2.5px solid var(--jaune);
  transition: left .2s, top .2s, width .2s, height .2s;
}
#onb-bubble {
  position: fixed; z-index: 42; pointer-events: none; display: none; max-width: 260px;
  background: #0e0a18; border: 1.5px solid var(--jaune); color: var(--text);
  border-radius: 12px; padding: 11px 13px; font-size: .85rem; line-height: 1.45;
  box-shadow: var(--shadow); font-weight: 600;
}
.intro-tag { text-align: center; font-size: 1.05rem; margin-bottom: 16px; }
.intro-steps { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.intro-ic { background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 10px; text-align: center; flex: 1 1 28%; min-width: 92px; display: flex; flex-direction: column; gap: 3px; }
.intro-ic span { font-size: 1.8rem; }
.intro-ic b { font-size: .85rem; }
.intro-ic em { font-size: .72rem; color: var(--muted); font-style: normal; }
.intro-arr { display: flex; align-items: center; color: var(--violet); font-weight: 900; font-size: 1.3rem; }
.empty-hint {
  background: var(--grad-soft); border: 1.5px solid var(--jaune); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px; font-size: .9rem; line-height: 1.5;
}

/* =======================================================================
   PAGE D'ACCUEIL (compte obligatoire)
   ======================================================================= */
.landing {
  display: none; position: fixed; inset: 0; z-index: 100; overflow-y: auto;
  padding: 20px 16px; justify-content: center; align-items: flex-start;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(123,19,214,.28), transparent 60%),
    radial-gradient(1000px 500px at 0% 0%, rgba(249,22,22,.2), transparent 55%),
    var(--bg);
}
body.landing-open { overflow: hidden; }
.landing-inner { width: 100%; max-width: 440px; margin: auto; display: flex; flex-direction: column; gap: 16px; padding: 8px 0 50px; }
.landing-hero { text-align: center; }
.landing-logo { height: 66px; width: auto; border-radius: 13px; box-shadow: 0 4px 16px rgba(123,19,214,.45); }
.landing-hero h1 {
  font-size: 1.7rem; font-weight: 900; margin-top: 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: center; gap: 8px;
}
.landing-tag { color: var(--muted); margin: 10px 0 0; font-size: .95rem; line-height: 1.5; }
.landing-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow); }
.landing-card h2 { font-size: 1.15rem; margin-bottom: 6px; }
.landing-card label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: 8px; }
.landing-card .btn.big { margin-top: 14px; }
.landing-sep { text-align: center; color: var(--muted); font-weight: 800; letter-spacing: .05em; }
.landing-foot { margin-top: 2px; }
.landing-card.center { text-align: center; }

.profile-head { display: flex; align-items: center; gap: 13px; }
.profile-avatar { font-size: 2.8rem; font-weight: 900; line-height: 1; color: var(--rouge); filter: drop-shadow(0 2px 6px rgba(249,22,22,.5)); }
.profile-head h2 { font-size: 1.3rem; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.pstat { background: var(--panel2); border: 1px solid var(--border); border-radius: 11px; padding: 9px 12px; flex: 1 1 42%; }
.pstat-v { font-weight: 900; font-size: 1rem; }
.pstat-l { margin-top: 2px; }
.profile-card h3 { font-size: 1rem; margin: 6px 0 4px; }
.profile-ach { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 6px; }
.pa-chip { background: var(--panel2); border: 1.5px solid var(--jaune); border-radius: 20px; padding: 4px 11px; font-size: .76rem; font-weight: 700; }
.profile-card #lg-logout { margin-top: 10px; align-self: center; }

/* --- Responsive : tablette --------------------------------------------- */
@media (max-width: 920px) {
  .social-grid { grid-template-columns: 1fr; }
  .social-boards { grid-template-columns: 1fr; }
}

/* --- Responsive : téléphone -------------------------------------------- */
@media (max-width: 680px) {
  /* Header mobile : compact, rien ne se chevauche. */
  .topbar { padding: 6px 10px; gap: 6px; }
  .brand { min-width: 0; flex: 1 1 auto; gap: 7px; }
  .brand > div { min-width: 0; }
  .title-row { min-width: 0; }
  .brand h1 { font-size: .88rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .beta { display: none; }         /* badge bêta masqué dans le header (gardé sur l'accueil) */
  .logo-img { height: 30px; flex-shrink: 0; }
  .rank { display: none; }                 /* rang masqué (visible dans l'objectif / le profil) */
  .energy { display: none; }               /* énergie masquée sur mobile */
  .topbar-right { gap: 6px; flex-shrink: 0; }
  .music-ctrl input[type="range"], #music-vol { display: none !important; } /* slider volume masqué */
  .acct-name { display: none; }            /* bouton compte = icône seule */
  #music-next { display: none; }           /* « morceau suivant » masqué (place au titre) */
  #help-btn { display: none; }             /* aide = bouton flottant ? en bas à gauche (pas de doublon) */
  #account-btn, #music-btn { padding: 7px 9px; font-size: .9rem; }

  /* Barre de ressources : collée en haut au scroll, compacte, 3 par ligne */
  .resource-bar { position: sticky; top: 0; gap: 6px; padding: 8px 8px; }
  .res { min-width: 0; flex: 1 1 28%; padding: 5px 8px; border-radius: 12px; gap: 5px; }
  .res-icon { font-size: .92rem; }
  .res-val { font-size: .9rem; }
  .res-rate { font-size: .6rem; }

  /* Bannières */
  .quest-banner, .objective-bar { padding: 7px 12px; font-size: .82rem; gap: 8px; }
  .obj-prog { width: 110px; }

  /* Bulle « Objectif » : DANS LE FLUX sur mobile (sinon elle flotte sur le contenu) */
  .float-obj.docked {
    position: static; width: auto; max-width: 100%; margin: 0;
    border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
  }
  .float-obj.docked .fo-head { cursor: default; background: var(--grad-soft); }
  .float-obj.docked .fo-grip { display: none; }

  /* Onglets : une seule ligne qui défile horizontalement (plus de 3 lignes) */
  .tabs {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    padding: 10px 12px 4px; gap: 6px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 8px 13px; font-size: .82rem; scroll-snap-align: start; }

  /* Contenu */
  .view { padding: 14px 12px 84px; }
  .panel-head h2 { font-size: 1.2rem; }

  /* Modales : quasi pleine largeur, contenu qui ne déborde pas */
  .modal-overlay { padding: 10px; }
  .modal, .modal.wide { max-width: 100%; border-radius: 16px; }
  .modal-head { padding: 13px 14px; }
  .modal-body { padding: 14px; }
  .cost-nums { white-space: normal; text-align: right; }

  /* Tableaux/listes : éviter tout débordement horizontal */
  .lb-row { grid-template-columns: 30px 1fr auto; }
  .row { flex-wrap: wrap; }
  .row input { flex: 1 1 100%; }

  /* Boss : photo un peu plus petite */
  .boss-photo { width: 54px; height: 54px; }

  /* Mini-jeu fake news : zone moins haute sur petit écran */
  .fk-area { height: 240px; }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .res { flex: 1 1 44%; }
  .brand h1 { font-size: .92rem; }
}

/* =========================================================================
   REFONTE v2 — militants, IA adverse, DOM-TOM, porte-à-porte, difficulté
   ========================================================================= */
.neg { color: var(--rouge); font-weight: 800; }

/* --- Verrouillage du tutoriel : seul .onb-allow reste actif --- */
body.onb-locked #tabs .tab:not(.onb-allow),
body.onb-locked #view .buy:not(.onb-allow),
body.onb-locked #porte-btn,
body.onb-locked #account-btn,
body.onb-locked .map-zoom-controls {
  pointer-events: none !important; opacity: .4; filter: grayscale(.7); transition: opacity .2s;
}
body.onb-locked #view .city:not(.onb-allow) { opacity: .45; pointer-events: none; }
body.onb-locked .onb-allow { pointer-events: auto !important; opacity: 1 !important; filter: none !important; }

/* --- Pastille de ville sous attaque (IA adverse) --- */
.city-dot.under-attack {
  stroke: var(--bleu); stroke-width: 2.5;
  animation: cityAlert 1s ease-in-out infinite;
}
@keyframes cityAlert {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(27,58,140,0)); }
  50% { filter: drop-shadow(0 0 5px rgba(60,100,220,.95)); }
}

/* --- Cartouche Outre-mer (DOM-TOM) : encart propre, comme les vraies cartes --- */
.domtom-box {
  fill: rgba(20, 14, 32, .82);
  stroke: rgba(123, 19, 214, .55);
  stroke-width: 1.3;
}
.domtom-head { fill: rgba(123, 19, 214, .35); }
.domtom-title { fill: #fff; font-size: 12px; font-weight: 800; }
.domtom-sep { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.city-label.dom { font-size: 11px; fill: #e7e2f5; opacity: 1 !important; stroke-width: 2px; }

/* --- Actions ville (envoyer/rappeler militants, défendre) --- */
.city-actions { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.city-actions .btn { width: 100%; }
.mil-ctrl { background: rgba(123,19,214,.07); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.mil-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .85rem; font-weight: 700; }
.mil-ctrl input[type=range] { width: 100%; accent-color: var(--rouge); cursor: pointer; }
.bus-marker { font-size: 19px; pointer-events: none; filter: drop-shadow(0 1px 2px #000); }

/* --- Paliers de bâtiment (milestones) --- */
.card-milestone { font-size: .72rem; color: var(--muted); font-weight: 700; margin: -2px 0 6px; }
.card-milestone.on { color: var(--jaune); }
.card-count .ms { color: var(--jaune); font-style: normal; font-weight: 800; }

/* --- Bouton Porte-à-porte (hook de clic) --- */
.porte-btn {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 70; display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 8px 22px rgba(249, 22, 22, .4);
}
.porte-btn .pb-ico { font-size: 1.45rem; }
.porte-btn .pb-lab { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.porte-btn .pb-lab small { font-weight: 600; opacity: .85; font-size: .64rem; }
.porte-btn:hover { filter: brightness(1.08); }
.porte-btn:active { transform: translateX(-50%) scale(.96); }
.porte-btn.pulse { animation: portePulse .35s ease; }
@keyframes portePulse {
  0% { transform: translateX(-50%) scale(1); }
  45% { transform: translateX(-50%) scale(1.12); box-shadow: 0 10px 28px rgba(249, 201, 0, .6); }
  100% { transform: translateX(-50%) scale(1); }
}

/* --- Bouton ⚡ accélération (tuto) — bas-gauche pour ne pas gêner les toasts --- */
.accel-btn {
  position: fixed; left: 14px; bottom: 18px;
  z-index: 70; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: var(--panel); border: 1.5px solid var(--jaune); color: var(--jaune);
  font-weight: 800; font-size: .82rem; box-shadow: var(--shadow);
}
.accel-btn.on { background: var(--jaune); color: #2a1f00; }

/* --- Tooltip : récap des sources d'une ressource --- */
.tip-src { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
.tip-src .tip-row { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; }
.tip-src .tip-tot { border-top: 1px dashed var(--border); margin-top: 3px; padding-top: 3px; color: var(--vert); }
.tip-mini { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; }

body.landing-open .porte-btn, body.landing-open .accel-btn { display: none; }

/* --- Sélecteur de difficulté (accueil) --- */
.diff-picker { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 8px; }
.diff-opt {
  text-align: left; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  background: var(--panel); border: 1.5px solid var(--border); color: var(--text);
  display: flex; flex-direction: column; gap: 2px;
}
.diff-opt small { color: var(--muted); font-weight: 600; font-size: .72rem; }
.diff-opt.on { border-color: var(--rouge); background: rgba(249, 22, 22, .08); }
.diff-opt:hover { border-color: var(--violet); }

/* --- Mode Express : HUD chrono, encart, victoire --- */
/* Overlay plein écran du mini-jeu « Carte éclair » */
#express-game {
  position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle at 50% 35%, #1a1230, #0a0714);
  display: flex; flex-direction: column;
}
.eg-top {
  display: flex; align-items: center; gap: 16px; padding: 10px 16px;
  background: linear-gradient(90deg, var(--violet), var(--rouge)); color: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.4);
}
.eg-time b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.eg-barwrap { flex: 1; }
/* barre de course à deux camps : φ pousse depuis la gauche, RN depuis la droite */
.eg-race { position: relative; height: 16px; background: rgba(0,0,0,.32); border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.eg-side { position: absolute; top: 0; bottom: 0; width: 0; transition: width .1s linear; }
.eg-side.lfi { left: 0; background: linear-gradient(90deg, var(--rouge), #ff5b7e); }
.eg-side.rn { right: 0; background: linear-gradient(270deg, var(--bleu), #3b5bbf); }
.eg-side.rn.danger { animation: rnPulse .6s ease-in-out infinite; }
@keyframes rnPulse { 50% { filter: brightness(1.7); } }
.eg-mark { position: absolute; top: -3px; bottom: -3px; width: 3px; background: #fff; box-shadow: 0 0 5px #fff; z-index: 2; }
.eg-pct { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 800; margin-top: 3px; }
.eg-pct .lfi { color: #ff7a96; }
.eg-pct .rn { color: #7da0ff; }
.eg-pct .eg-goal { color: #fff; font-weight: 700; opacity: .85; }
.eg-top .eg-quit, .eg-top #eg-quit { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.45); color: #fff; }
.eg-hint { text-align: center; color: var(--muted); font-size: .85rem; padding: 6px; }
/* corps : panneau φ (gauche) — carte — panneau RN (droite) */
.eg-body { flex: 1; min-height: 0; display: flex; align-items: stretch; gap: 12px; padding: 6px 14px 14px; }
.eg-panel { flex: 0 0 200px; width: 200px; align-self: center; border: 2px solid; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; background: rgba(0,0,0,.22); }
.eg-panel.lfi { border-color: var(--rouge); box-shadow: 0 0 22px rgba(233,16,22,.12) inset; }
.eg-panel.rn { border-color: var(--bleu); box-shadow: 0 0 22px rgba(27,58,140,.16) inset; }
.eg-pname { font-weight: 800; font-size: 1.02rem; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.eg-panel.lfi .eg-pname { color: #ff7a96; }
.eg-panel.rn .eg-pname { color: #7da0ff; }
.eg-stat { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.eg-stat span { font-size: .8rem; color: var(--muted); }
.eg-stat { gap: 8px; }
.eg-stat span:first-child { white-space: nowrap; }
.eg-stat b { font-size: 1.15rem; font-weight: 800; color: #fff; text-align: right; }
.eg-stat b.eg-inc { color: #6ee7a8; font-size: .98rem; }
.eg-stat .eg-max { display: block; white-space: nowrap; font-size: .7rem; font-weight: 600; color: var(--muted); }
/* jauge : % de militants envoyé à chaque assaut */
.eg-fracrow { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.eg-fracrow span { font-size: .8rem; color: var(--muted); }
.eg-fracrow b { font-size: 1.2rem; font-weight: 800; color: #ffd24a; }
.eg-frac { width: 100%; accent-color: var(--rouge); cursor: pointer; margin: 2px 0; }
.eg-frachint { font-size: .72rem; color: var(--muted); text-align: right; }
.eg-map { flex: 1; min-width: 0; min-height: 0; position: relative; display: flex; justify-content: center; align-items: center; padding: 0 4px; }
/* canvas de territoire (rendu pixelisé, type OpenFront) */
#eg-canvas { width: 100%; max-width: 1100px; height: auto; cursor: crosshair; image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 8px; touch-action: none; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.eg-troops { min-width: 96px; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.15; }
.eg-troops .eg-tlabel { font-size: .68rem; font-weight: 700; opacity: .8; white-space: nowrap; }
.eg-troops .eg-tval { font-size: 1.05rem; font-weight: 800; }
.eg-troops .eg-inc { font-size: .74rem; font-weight: 700; color: #6ee7a8; }
.eg-troops.lfi .eg-tlabel, .eg-troops.lfi .eg-tval { color: #ff7a96; }
.eg-troops.rn .eg-tlabel, .eg-troops.rn .eg-tval { color: #7da0ff; }
.eg-aim { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid #fff; border-radius: 50%; pointer-events: none; animation: egAim .45s ease-out forwards; }
@keyframes egAim { from { opacity: .9; transform: scale(.5); } to { opacity: 0; transform: scale(2.2); } }
.eg-svg { width: 100%; height: 100%; max-width: 1100px; }
.eg-circo { fill: #221634; stroke: #3a2a55; stroke-width: 1; }
.eg-domlab { fill: var(--muted); font-size: 13px; font-weight: 800; }
.eg-city { cursor: pointer; }
.eg-base { fill: #4a3d68; stroke: #140e20; stroke-width: 1.2; }
.eg-fillcirc { pointer-events: none; }
.eg-fillcirc.lfi { fill: var(--rouge); }
.eg-fillcirc.rn { fill: var(--bleu); }
/* anneau de front : surbrillance des villes que tu peux rallier MAINTENANT */
.eg-front { stroke: var(--jaune); stroke-width: 0; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: center; }
.eg-city.pushable .eg-front { stroke-width: 2; opacity: 1; animation: frontPulse 1.1s ease-in-out infinite; }
@keyframes frontPulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
.eg-city.own-lfi .eg-base { stroke: #ff5b7e; stroke-width: 1.8; }
.eg-city.own-rn .eg-base { stroke: var(--bleu); stroke-width: 1.8; }
.eg-city.denied .eg-base { animation: denyShake .28s ease; }
@keyframes denyShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.eg-city:hover .eg-base { stroke: var(--jaune); stroke-width: 2.2; }
/* juice : combo, pulsation au clic, onde de choc, paliers */
.eg-combo { min-width: 64px; color: #fff; font-weight: 800; font-size: 1.05rem; }
.eg-combo.bump { animation: comboBump .25s ease; }
@keyframes comboBump { 0% { transform: scale(1); } 50% { transform: scale(1.45); } 100% { transform: scale(1); } }
.eg-city .eg-base, .eg-shock, .eg-cfloat { transform-box: fill-box; transform-origin: center; }
.eg-city.pulsing .eg-base { animation: dotPulse .16s ease; }
@keyframes dotPulse { 50% { transform: scale(1.5); } }
.eg-shock { fill: none; stroke: var(--rouge); stroke-width: 2.5; animation: shock .6s ease-out forwards; }
.eg-shock.rn { stroke: #f97316; }
@keyframes shock { from { r: 4; opacity: .85; } to { r: 42; opacity: 0; } }
.eg-cfloat { fill: var(--jaune); font-weight: 800; font-size: 15px; animation: cfloat .7s ease-out forwards; paint-order: stroke; stroke: #140e20; stroke-width: 3px; }
@keyframes cfloat { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-16px); } }
.eg-fill.flash { animation: barFlash .4s ease; }
@keyframes barFlash { 50% { filter: brightness(2.2); } }
.express-mini { font-size: 1rem; }
.express-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel); border: 1.5px solid var(--violet); border-radius: 12px;
  padding: 10px 14px; margin: 10px 0;
}
.profile-foot { display: flex; gap: 8px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.express-result { text-align: center; }
.express-result .big-emoji { font-size: 2.6rem; }
.express-result h2 { font-size: 2rem; margin: 4px 0; color: var(--jaune); }
#exp-board { margin: 12px 0; text-align: left; }

/* --- Quiz militant --- */
.quiz-mini { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; font-weight: 800;
  background: rgba(249,201,0,.18); border-color: var(--jaune); color: #fff; }
.quiz-mini b { font-weight: 800; font-variant-numeric: tabular-nums; }
.quiz-mini.ready { animation: quizReady 1.9s ease-in-out infinite; }
@keyframes quizReady { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,201,0,.55); } 60% { box-shadow: 0 0 0 7px rgba(249,201,0,0); } }
.quiz-mini.cooling { opacity: .6; font-weight: 700; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); animation: none; }
.quiz-q { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.quiz-answers { display: flex; flex-direction: column; gap: 8px; }
.quiz-a {
  text-align: left; padding: 11px 14px; border-radius: 10px; cursor: pointer;
  background: var(--panel); border: 1.5px solid var(--border); color: var(--text); font-weight: 700;
}
.quiz-a:hover { border-color: var(--violet); background: rgba(123,19,214,.1); }
.quiz-result { text-align: center; }
.quiz-result .big-emoji { font-size: 2.4rem; }
.quiz-rewards { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.quiz-rw { display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.quiz-rw small { font-weight: 600; opacity: .8; font-size: .7rem; }

/* --- Choix des 2 villes de départ --- */
.starter-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.starter-pick {
  min-width: 120px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  background: var(--panel); border: 2px solid var(--border); color: var(--text);
  display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.starter-pick small { color: var(--muted); font-weight: 600; font-size: .72rem; }
.starter-pick.on { border-color: var(--rouge); background: rgba(249, 22, 22, .1); }
.starter-pick:hover { border-color: var(--violet); }


/* Opposition = poing ROUGE (miroir du ✊ jaune des militants) : recoloration de l'emoji */
.poing-opp { filter: brightness(0) saturate(100%) invert(19%) sepia(96%) saturate(7000%) hue-rotate(356deg) brightness(98%) contrast(112%); }


/* Mini-modale de déverrouillage d'onglet (récap multi-onglets) */
.unlock-list { display:flex; flex-direction:column; gap:10px; margin:2px 0 16px; }
.unlock-item { display:flex; flex-direction:column; gap:5px; padding:10px 12px; background:rgba(255,255,255,.04); border:1px solid var(--line,#2a2f3a); border-radius:10px; }
.unlock-item .btn { align-self:flex-start; }


/* Note d avertissement dans une infobulle de ressource (ex. notoriete) */
.tip-warn { margin-top: 7px; padding: 6px 8px; border-radius: 7px; font-size: .78rem; color: #ffd27a; background: rgba(249,201,0,.10); border: 1px solid rgba(249,201,0,.30); }

/* Bouton d aide FLOTTANT + aide approfondie */
#help-float { position: fixed; left: 14px; bottom: 14px; z-index: 1400; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--jaune); background: rgba(18,14,30,.92); color: var(--jaune); font-size: 23px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.5); animation: helpFloatPulse 2.6s ease-in-out infinite; }
#help-float:hover { background: var(--jaune); color: #18122a; transform: scale(1.08); }
@keyframes helpFloatPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(249,201,0,.45), 0 4px 14px rgba(0,0,0,.5); } 50% { box-shadow: 0 0 0 9px rgba(249,201,0,0), 0 4px 14px rgba(0,0,0,.5); } }
.help-h { margin: 16px 0 4px; font-size: 1rem; color: var(--jaune); }
.help-h:first-of-type { margin-top: 4px; }
.help-intro { font-size: .96rem; margin-bottom: 6px; }


/* Sections de l onglet Succes (succes a paliers, groupes par theme) */
.ach-group { margin: 20px 2px 8px; font-size: 1rem; color: var(--jaune); border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.ach-group:first-of-type { margin-top: 8px; }

.board-btn { margin-top: 2px; }


/* Pied de page : disclaimer a gauche, credit + mentions legales a droite */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; text-align: left; }
.foot-right { margin-left: auto; }
.foot-legal { color: var(--jaune); text-decoration: none; border-bottom: 1px dotted currentColor; cursor: pointer; }
.foot-legal:hover { color: #ffe169; }

/* =======================================================================
   RESPONSIVE — Mode Express sur téléphone (placé APRÈS le CSS Express de
   base pour bien l'emporter). Carte en haut pleine largeur, les 2 panneaux
   compacts dessous (sinon 2 panneaux de 200px mangent tout → carte à 0px).
   ======================================================================= */
@media (max-width: 680px) {
  .eg-top { gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
  .eg-body { flex-wrap: wrap; gap: 8px; padding: 4px 8px 10px; align-items: stretch; }
  .eg-map { flex: 1 1 100%; order: 0; min-height: 230px; padding: 0; }
  #eg-canvas { max-width: 100%; }
  .eg-panel { flex: 1 1 46%; width: auto; order: 1; align-self: stretch; padding: 10px 11px; gap: 6px; }
  .eg-panel .eg-pname { font-size: .9rem; padding-bottom: 4px; }
  .eg-stat span { font-size: .7rem; }
  .eg-stat b { font-size: .98rem; }
  .eg-stat .eg-max { font-size: .62rem; }
  .eg-fracrow b { font-size: 1.05rem; }
  .eg-frachint { font-size: .66rem; }
}

/* Message de déconnexion sur la page de connexion (perte d'internet / session expirée) */
.auth-disco {
  background: linear-gradient(90deg, rgba(176,24,56,.22), rgba(123,16,32,.22));
  border: 1.5px solid var(--rouge); border-radius: 12px;
  padding: 12px 14px; text-align: center; font-weight: 700; font-size: .92rem; line-height: 1.45;
  color: #ffd7dd;
}

/* Badge bot (visible UNIQUEMENT par l'admin dans le classement) + badge admin (profil) */
.bot-tag { font-size: .7rem; font-weight: 700; color: #c7cedb; background: rgba(255,255,255,.09);
  padding: 1px 6px; border-radius: 8px; vertical-align: middle; white-space: nowrap; }
.admin-tag { font-size: .68rem; font-weight: 800; color: #18122a; background: var(--jaune);
  padding: 2px 8px; border-radius: 10px; vertical-align: middle; }
