/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --bg: #f1f5f9; --panel: #ffffff; --text: #0f172a; --muted: #475569;
    --blue: #2563eb; --green: #059669; --amber: #b45309;
    --red: #dc2626; --purple: #7c3aed; --border: #cbd5e1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: var(--bg); color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%;
    position: relative; overflow-x: hidden;
}

/* ============================================================
   FOND ABSTRAIT
   ============================================================ */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: float 30s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, #93c5fd, transparent 70%); top: -160px; left: -160px; }
.blob-2 { width: 600px; height: 600px; background: radial-gradient(circle, #c4b5fd, transparent 70%); bottom: -200px; right: -200px; animation-delay: -10s; }
.blob-3 { width: 420px; height: 420px; background: radial-gradient(circle, #6ee7b7, transparent 70%); top: 40%; left: 50%; animation-delay: -20s; opacity: 0.35; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 60px) scale(0.95); }
}
.grid-pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { position: absolute; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: 960px; margin: 0 auto; padding: 20px; position: relative; }

header.site { text-align: center; padding: 24px 12px 8px; }
header.site h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; }
header.site p.tag { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ============================================================
   NAV TABS
   ============================================================ */
nav.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
nav.tabs button {
    flex: 1 1 auto; min-width: 120px; padding: 10px 12px;
    background: rgba(255,255,255,0.85); color: var(--muted);
    border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; backdrop-filter: blur(6px);
    font-family: inherit;
}
nav.tabs button:hover { color: var(--blue); border-color: var(--blue); }
nav.tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
nav.tabs button.tab-game.active { background: var(--purple); border-color: var(--purple); }
nav.tabs button.tab-game:hover { color: var(--purple); border-color: var(--purple); }

/* ============================================================
   ÉCRANS
   ============================================================ */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   CARTES
   ============================================================ */
.card {
    background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
    border: 1px solid var(--border); border-radius: 14px;
    padding: 20px; margin-bottom: 18px;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 120px; height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M0,120 L120,0 L120,120 Z' fill='rgba(37,99,235,0.03)'/%3E%3C/svg%3E");
    pointer-events: none;
}
.card.card-thesis::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 80px; height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='rgba(37,99,235,0.08)' stroke-width='2'/%3E%3C/svg%3E");
    pointer-events: none;
}

h2.section { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
h3.sub { font-size: 16px; font-weight: 700; margin: 16px 0 8px; }
p { margin-bottom: 10px; }
p.muted { color: var(--muted); font-size: 15px; }

/* ============================================================
   THESIS
   ============================================================ */
.thesis {
    font-size: 17px; font-weight: 600; color: var(--blue);
    padding: 12px 14px; background: rgba(239,246,255,0.9);
    border-left: 4px solid var(--blue); border-radius: 8px; margin-bottom: 16px;
}

/* ============================================================
   GRID 2 & COL-BOX
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.col-box { background: rgba(248,250,252,0.7); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.col-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.4px; }
.col-box.economies h4 { color: var(--green); }
.col-box.charges h4 { color: var(--red); }

/* ============================================================
   ROW LINE
   ============================================================ */
.row-line { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed #e2e8f0; font-size: 14px; }
.row-line:last-child { border-bottom: none; }
.row-line .label { color: var(--muted); }
.row-line .value { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.row-line.total { font-weight: 700; border-top: 2px solid var(--border); padding-top: 10px; margin-top: 6px; }

/* ============================================================
   BADGE DEFICIT & BUDGET DELTA
   ============================================================ */
.badge-deficit {
    display: inline-block; padding: 10px 16px;
    background: rgba(254,242,242,0.9); color: var(--red);
    border: 1px solid #fecaca; border-radius: 10px;
    font-weight: 700; font-size: 16px; margin: 8px 0 14px;
}
.budget-delta { font-size: 11px; font-weight: 700; margin-left: 4px; }
.budget-delta.pos { color: var(--green); }
.budget-delta.neg { color: var(--red); }

/* ============================================================
   JAUGES CIRCULAIRES
   ============================================================ */
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.gauge { text-align: center; background: rgba(248,250,252,0.85); border: 1px solid var(--border); border-radius: 14px; padding: 12px 6px; transition: border-color 0.3s; }
.gauge.changed { border-color: var(--blue); }
.gauge-ring { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 6px; position: relative; background: conic-gradient(#cbd5e1 0deg, #cbd5e1 360deg); transition: background 0.4s ease; }
.gauge-ring::after { content: ""; position: absolute; inset: 8px; background: var(--panel); border-radius: 50%; }
.gauge-value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; z-index: 2; font-variant-numeric: tabular-nums; }
.gauge-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.gauge-note { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.gauge-delta { font-size: 12px; font-weight: 700; margin-top: 4px; min-height: 16px; }
.gauge-delta.up-pos { color: var(--green); }
.gauge-delta.up-neg { color: var(--red); }
.gauge.revenu .gauge-value { color: var(--green); }
.gauge.sanction .gauge-value { color: var(--red); }
.gauge.souffrance .gauge-value { color: var(--amber); }
.gauge.angle .gauge-value { color: var(--purple); }

/* ============================================================
   CURSEURS
   ============================================================ */
.slider-block { background: rgba(248,250,252,0.9); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.slider-title { font-weight: 700; font-size: 15px; }
.slider-value { font-weight: 700; color: var(--blue); font-size: 15px; font-variant-numeric: tabular-nums; }
.slider-pop { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.slider-desc { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.slider-effect { font-size: 14px; padding: 8px 10px; background: rgba(255,255,255,0.7); border-left: 3px solid var(--blue); border-radius: 6px; margin-top: 8px; }

input[type="range"] { width: 100%; height: 28px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: #e2e8f0; border-radius: 3px; }
input[type="range"]::-moz-range-track { height: 6px; background: #e2e8f0; border-radius: 3px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--blue); border-radius: 50%; margin-top: -7px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; background: var(--blue); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* ============================================================
   BOUTONS & TEMPS
   ============================================================ */
.time-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; align-items: center; }
.btn { padding: 10px 16px; border: 1px solid var(--border); background: rgba(255,255,255,0.9); color: var(--text); border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s; position: relative; overflow: hidden; font-family: inherit; }
.btn:hover { background: #f8fafc; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.primary:hover { background: #1d4ed8; }
.btn.flash::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, transparent 70%); animation: btnFlash 0.5s ease-out; pointer-events: none; }
@keyframes btnFlash { from { opacity: 1; transform: scale(0.8); } to { opacity: 0; transform: scale(1.4); } }

.month-counter { display: inline-block; padding: 8px 14px; background: rgba(241,245,249,0.9); border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background 0.3s; }
.month-counter.flash { background: #dbeafe; }

.time-feedback { margin-top: 14px; padding: 12px 14px; background: rgba(239,246,255,0.9); border-left: 4px solid var(--blue); border-radius: 8px; font-size: 14px; line-height: 1.6; min-height: 20px; }
.time-feedback strong { color: var(--blue); }
.time-feedback .delta-up { color: var(--red); font-weight: 700; }
.time-feedback .delta-down { color: var(--green); font-weight: 700; }

/* ============================================================
   AUDIT TABLE
   ============================================================ */
.audit-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.audit-table th, .audit-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.audit-table th { background: rgba(248,250,252,0.9); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; color: var(--muted); }
.audit-table td.num { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================================================
   BARRE VIOLENCE
   ============================================================ */
.bar-wrap { background: #e2e8f0; height: 14px; border-radius: 7px; overflow: hidden; margin: 10px 0 6px; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--amber), var(--red)); transition: width 0.4s ease; border-radius: 7px; }
.bar-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* ============================================================
   SCÉNARIOS
   ============================================================ */
.scenario { background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.scenario.s2 { border-left-color: var(--amber); }
.scenario.s3 { border-left-color: var(--green); }
.scenario.s4 { border-left-color: var(--purple); }
.scenario.s5 { border-left-color: var(--red); }
.scenario h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.scenario .verdict { margin-top: 10px; padding: 8px 10px; background: rgba(248,250,252,0.9); border-radius: 6px; font-size: 14px; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site { margin-top: 30px; padding: 18px 14px; text-align: center; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); line-height: 1.5; background: rgba(255,255,255,0.5); border-radius: 12px; }
footer.site strong { color: var(--text); }

/* ============================================================
   JEU v6 — INTRO
   ============================================================ */
.game-intro { background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(254,242,242,0.9) 100%); border: 2px solid #fecaca; }
.game-intro h2 { color: #991b1b; }
.game-subtitle {
    font-size: 13px; font-weight: 700; color: var(--purple);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 12px; padding: 6px 12px;
    background: rgba(124, 58, 237, 0.1);
    border-left: 3px solid var(--purple); border-radius: 6px;
    display: inline-block;
}

/* ============================================================
   JEU v6 — VUE & TOPBAR
   ============================================================ */
.game-view { display: flex; flex-direction: column; gap: 12px; animation: fadeIn 0.4s ease; }

.game-topbar {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #93c5fd; border-radius: 12px;
    padding: 12px 16px; flex-wrap: wrap;
}
.game-turn {
    font-weight: 700; color: var(--purple); font-size: 16px;
    white-space: nowrap; margin: 0;
}
.game-budget-mini { flex: 1; min-width: 180px; }
.game-budget-mini .mini-label {
    font-size: 13px; font-weight: 700; color: var(--blue);
    font-variant-numeric: tabular-nums; margin-bottom: 4px;
}
.mini-bar { height: 10px; background: #cbd5e1; border-radius: 5px; overflow: hidden; }
.mini-bar-fill {
    height: 100%; background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.5s, background 0.3s; border-radius: 5px;
}
.game-mini-stats {
    display: flex; gap: 12px; font-size: 13px; font-weight: 700;
    font-variant-numeric: tabular-nums; align-items: center; flex-wrap: wrap;
}
.game-mini-stats .pos { color: var(--green); }
.game-mini-stats .neg { color: var(--red); }
.game-mini-stats .roi { color: var(--muted); }

/* ============================================================
   JEU v6 — SCÈNE CENTRALE
   ============================================================ */
.game-stage {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #fcd34d; border-radius: 14px;
    padding: 16px; display: flex; flex-direction: column;
    gap: 12px; min-height: 340px;
    position: relative; overflow: hidden;
}
.game-play-area {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-height: 200px;
}

/* ============================================================
   JEU v6 — DÉ
   ============================================================ */
.game-dice-zone {
    display: flex; justify-content: center; align-items: center; padding: 20px;
}
.game-dice-btn {
    background: linear-gradient(135deg, #fef3c7, #fcd34d);
    border: 3px solid #f59e0b; border-radius: 20px;
    padding: 24px 48px; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    font-family: inherit; color: var(--text);
}
.game-dice-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}
.game-dice-btn:disabled { opacity: 0.6; cursor: wait; }
.game-dice-btn .dice-emoji {
    font-size: 56px; line-height: 1; display: block;
    transition: transform 0.3s;
}
.game-dice-btn .dice-emoji.rolling {
    animation: diceRoll 0.3s linear infinite;
}
@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.15); }
    50% { transform: rotate(15deg) scale(0.95); }
    75% { transform: rotate(-10deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); }
}
.game-dice-btn .dice-label {
    font-size: 14px; font-weight: 700; color: #92400e;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* ============================================================
   JEU v6 — CARTES TIRÉES (2 côte à côte)
   ============================================================ */
.game-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.game-drawn-card {
    background: #fff; border-radius: 14px; padding: 14px 12px;
    border: 3px solid #f59e0b; width: 100%;
    text-align: center;
    animation: drawIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    position: relative; z-index: 2;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.3s;
}
.game-drawn-card.card-projects { border-color: #059669; }
.game-drawn-card:hover:not(.card-disabled):not(.card-chosen):not(.card-faded) {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.game-drawn-card.card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.4);
}
.game-drawn-card.card-chosen {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px var(--green), 0 12px 32px rgba(5,150,105,0.45);
    z-index: 10;
}
.game-drawn-card.card-faded {
    opacity: 0.15;
    filter: grayscale(1);
    transform: scale(0.9);
    pointer-events: none;
}

@keyframes drawIn {
    from { opacity: 0; transform: translateY(-30px) rotate(-3deg) scale(0.9); }
    to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

.game-drawn-card .dc-avatar { font-size: 36px; line-height: 1; margin-bottom: 6px; }
.game-drawn-card .dc-name {
    font-weight: 800; font-size: 15px; margin-bottom: 4px;
}
.game-drawn-card .dc-fortune,
.game-drawn-card .dc-sector {
    font-size: 11px; color: var(--muted); margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600;
}
.game-drawn-card .dc-cost {
    font-size: 13px; margin-bottom: 8px; padding: 6px;
    background: rgba(254, 242, 242, 0.8); border-radius: 8px;
    color: var(--red);
}
.game-drawn-card .dc-cost strong { font-size: 15px; }
.game-drawn-card .dc-promise {
    font-size: 12px; color: var(--muted); font-style: italic;
    margin-bottom: 10px; line-height: 1.4;
}
.game-drawn-card .dc-warning {
    font-size: 11px; color: var(--red); font-weight: 700;
    background: #fee2e2; border-radius: 6px; padding: 5px 8px;
    margin-bottom: 8px;
}
.game-drawn-card .dc-warning.dc-positive {
    background: #f0fdf4;
    color: var(--green);
}
.game-drawn-card .dc-accept {
    background: var(--green); border-color: var(--green); color: #fff;
    width: 100%; font-weight: 700;
    margin-top: 4px;
}
.game-drawn-card .dc-accept:hover { background: #047857; border-color: #047857; }
.game-drawn-card .dc-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    font-style: italic;
}

/* ============================================================
   JEU v6 — PAILLETTES
   ============================================================ */
.glitter-particle {
    position: absolute; top: -20px; pointer-events: none;
    animation: glitterFall linear forwards; z-index: 100;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
}
@keyframes glitterFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

/* ============================================================
   JEU v6 — CONSÉQUENCES
   ============================================================ */
.game-consequences {
    background: rgba(255,255,255,0.9); border-radius: 10px;
    padding: 10px 12px; font-size: 13px;
    min-height: 56px; max-height: 160px; overflow-y: auto;
}
.game-log-item {
    padding: 6px 10px; margin-bottom: 4px;
    background: #fff; border-left: 3px solid var(--red);
    border-radius: 6px; font-size: 13px;
    animation: slideIn 0.3s ease;
    display: flex; align-items: flex-start; gap: 8px;
}
.game-log-item .icon { font-size: 16px; flex-shrink: 0; }
.game-log-item.promise { border-left-color: var(--amber); background: #fffbeb; font-style: italic; }
.game-log-item.reality { border-left-color: var(--purple); background: #f5f3ff; font-weight: 600; }
.game-log-item.effect { border-left-color: var(--red); background: #fff; }
.game-log-item.event { border-left-color: var(--amber); background: #fef3c7; font-weight: 600; }
.game-log-item.refuse { border-left-color: var(--green); background: #f0fdf4; font-weight: 600; }
.game-log-item.project { border-left-color: var(--green); background: #f0fdf4; font-weight: 600; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   JEU v6 — RADIATIONS WARNING
   ============================================================ */
.rad-warn { color: var(--red) !important; font-weight: 800; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============================================================
   JEU v6 — FIN
   ============================================================ */
.card-end { background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(254,242,242,0.9)); border: 2px solid #fca5a5; }
.end-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; margin-bottom: 8px; background: #fff; border-radius: 8px; border-left: 4px solid var(--red); font-size: 15px; }
.end-stat strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.end-message { margin-top: 20px; padding: 16px; background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 2px solid #fca5a5; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; }
.end-verdict { margin-top: 14px; padding: 14px; background: #0f172a; color: #fff; border-radius: 12px; text-align: center; font-size: 15px; font-style: italic; }

/* ============================================================
   JEU — CARTES PROJETS (mode grille, si réutilisé)
   ============================================================ */
.game-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.game-project {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #86efac; border-radius: 12px;
    padding: 14px; text-align: center; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.3s;
    user-select: none; position: relative;
}
.game-project:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(5, 150, 105, 0.18); border-color: var(--green); }
.game-project.used { opacity: 0.35; pointer-events: none; filter: grayscale(1); border-style: dashed; }
.game-project .proj-icon { font-size: 36px; line-height: 1; margin-bottom: 6px; }
.game-project .proj-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; line-height: 1.3; }
.game-project .proj-sector { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 8px; }
.game-project .proj-cost { font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.game-project .proj-jobs { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.game-project .proj-destroyed { font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.game-project .proj-roi { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; display: inline-block; margin-top: 4px; }
.game-project .proj-roi.pos { color: var(--green); background: rgba(5, 150, 105, 0.1); }
.game-project .proj-roi.neg { color: var(--red); background: rgba(220, 38, 38, 0.1); }
.game-project.disabled, .game-target.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; filter: grayscale(0.6); }

/* ============================================================
   RESPONSIVE — 720px
   ============================================================ */
@media (max-width: 720px) {
    body { font-size: 16px; }
    .wrap { padding: 14px; }
    header.site h1 { font-size: 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .gauges { grid-template-columns: repeat(2, 1fr); }
    .gauge-ring { width: 76px; height: 76px; }
    nav.tabs button { font-size: 13px; padding: 8px 10px; min-width: 0; }
    .audit-table { font-size: 13px; }
    .audit-table th, .audit-table td { padding: 8px 6px; }
    .blob { filter: blur(60px); opacity: 0.4; }
    .game-topbar { flex-direction: column; align-items: stretch; }
    .game-mini-stats { justify-content: space-around; font-size: 12px; gap: 6px; }
    .game-stage { min-height: 300px; padding: 12px; }
    .game-dice-btn { padding: 16px 32px; }
    .game-dice-btn .dice-emoji { font-size: 44px; }
    .game-projects { grid-template-columns: 1fr 1fr; }
    .game-cards-row { grid-template-columns: 1fr; gap: 10px; }
    .game-cards-row .dc-avatar { font-size: 32px; }
    .game-cards-row .dc-name { font-size: 14px; }
    .game-drawn-card .dc-avatar { font-size: 32px; }
    .game-drawn-card .dc-name { font-size: 14px; }
}

/* ============================================================
   RESPONSIVE — 380px
   ============================================================ */
@media (max-width: 380px) {
    .gauges { grid-template-columns: 1fr 1fr; gap: 8px; }
    .gauge { padding: 8px 4px; }
    .gauge-ring { width: 68px; height: 68px; }
    .gauge-value { font-size: 14px; }
    .game-projects { grid-template-columns: 1fr; }
    .game-mini-stats { font-size: 11px; gap: 4px; }
    .game-dice-btn { padding: 12px 24px; }
    .game-dice-btn .dice-emoji { font-size: 36px; }
}