/* ════════════════════════════════════════════════════════════════════
   GoldUnion · Playbook International — Design System
   Repris des rapports backend/reports/ pour cohérence visuelle
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --gold: #D4A843;
    --gold-light: #F5E6B8;
    --gold-dark: #8B6914;
    --dark: #1A1A2E;
    --dark-card: #16213E;
    --dark-surface: #1E2A47;
    --dark-sidebar: #131326;
    --text: #E8E8EC;
    --text-muted: #9CA3AF;
    --green: #22C55E;
    --red: #EF4444;
    --orange: #F59E0B;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --sidebar-width: 280px;
    --content-max: 1024px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

code, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.88em; }

/* Inline code (hors blocs <pre>) — distinctif sur fond sombre */
:not(pre) > code {
    background: rgba(212, 168, 67, 0.08);
    color: var(--gold-light);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.85em;
    border: 1px solid rgba(212, 168, 67, 0.18);
    font-weight: 500;
    white-space: nowrap;
}

/* Liens dans le contenu principal — gold avec underline subtil */
main a:not(.tag):not(.btn) {
    color: var(--gold-light);
    text-decoration: none;
    border-bottom: 1px dashed rgba(212, 168, 67, 0.45);
    padding-bottom: 1px;
    font-weight: 600;
    transition: color 0.15s, border-color 0.15s, border-style 0.15s;
}
main a:not(.tag):not(.btn):hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
    border-bottom-style: solid;
}
/* Sortie : liens externes prennent un petit indicateur */
main a[href^="http"]:not(.tag):not(.btn)::after {
    content: ' \2197';
    font-size: 0.8em;
    color: var(--gold);
    opacity: 0.7;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--dark-sidebar);
    border-right: 1px solid rgba(212, 168, 67, 0.12);
    padding: 28px 0;
    overflow-y: auto;
    z-index: 100;
}
.sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(212, 168, 67, 0.12);
    margin-bottom: 22px;
    position: relative;
}
.sidebar-brand::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 24px;
    width: 32px;
    height: 1px;
    background: var(--gold);
}
.sidebar-logo {
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.sidebar-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    font-weight: 600;
}

.nav-section { padding: 14px 0; }
.nav-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0 24px 8px;
}
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, padding-left 0.15s;
    position: relative;
}
.sidebar nav a:hover {
    background: rgba(212, 168, 67, 0.06);
    color: var(--gold-light);
    padding-left: 28px;
}
.sidebar nav a.active {
    background: linear-gradient(90deg, rgba(212, 168, 67, 0.16), rgba(212, 168, 67, 0.02) 80%);
    color: var(--gold-light);
    border-left-color: var(--gold);
    font-weight: 700;
}
.sidebar nav a.active::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}
.sidebar nav a .flag {
    font-size: 1.1rem;
    line-height: 1;
}
.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Burger menu (mobile) */
.burger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    background: var(--dark-card);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--gold-light);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ── Layout principal ────────────────────────────────────────────── */
.layout-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* ── Header ──────────────────────────────────────────────────────── */
header.page-header {
    background:
        radial-gradient(ellipse 600px 200px at 90% 0%, rgba(212, 168, 67, 0.12), transparent 60%),
        radial-gradient(ellipse 500px 180px at 10% 100%, rgba(139, 92, 246, 0.06), transparent 60%),
        linear-gradient(135deg, var(--dark) 0%, var(--dark-card) 50%, #1a1a30 100%);
    border-bottom: 2px solid var(--gold);
    padding: 48px 0 36px;
    position: relative;
    overflow: hidden;
}
header.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
}
header.page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
.header-left h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.header-left .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 6px;
}
.header-right {
    text-align: right;
    flex-shrink: 0;
}
.header-right .country-flag { font-size: 2.4rem; line-height: 1; }
.header-right .date {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 6px;
}

main.container { padding-top: 8px; padding-bottom: 40px; flex: 1; }

/* ── KPI Cards ───────────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.kpi-card {
    background: linear-gradient(180deg, var(--dark-card) 0%, rgba(22, 33, 62, 0.5) 100%);
    border: 1px solid rgba(212, 168, 67, 0.15);
    border-radius: 14px;
    padding: 22px 22px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, rgba(212, 168, 67, 0.08), transparent 70%);
    pointer-events: none;
}
.kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 168, 67, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.kpi-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
}
.kpi-card .value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--gold-light);
    margin: 8px 0 4px;
    letter-spacing: -0.5px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.kpi-card .value.mono {
    font-size: 1.15rem;
    letter-spacing: 0;
    font-weight: 700;
    word-break: break-all;
}
.kpi-card .detail { font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; }
.kpi-card .trend { font-size: 0.78rem; font-weight: 700; margin-top: 6px; }
.trend-up { color: var(--green); }
.trend-down { color: var(--red); }

/* ── Sections ────────────────────────────────────────────────────── */
section { margin: 56px 0; }
section:first-of-type { margin-top: 32px; }
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212, 168, 67, 0.12);
    flex-wrap: wrap;
}
.section-header .icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.icon-store { background: rgba(139, 92, 246, 0.15); }
.icon-ecom { background: rgba(59, 130, 246, 0.15); }
.icon-market { background: rgba(212, 168, 67, 0.15); }
.icon-action { background: rgba(239, 68, 68, 0.15); }
.icon-pmax { background: rgba(34, 197, 94, 0.15); }
.icon-gear { background: rgba(156, 163, 175, 0.15); }
.icon-flag { background: rgba(212, 168, 67, 0.15); }

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.section-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--gold-light); }
.section-header .badge {
    font-size: 0.68rem;
    padding: 4px 11px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-left: auto;
    align-self: center;
}
.badge-purple { background: rgba(139, 92, 246, 0.2); color: #A78BFA; }
.badge-blue { background: rgba(59, 130, 246, 0.2); color: #93C5FD; }
.badge-gold { background: rgba(212, 168, 67, 0.2); color: var(--gold-light); }
.badge-red { background: rgba(239, 68, 68, 0.2); color: #FCA5A5; }
.badge-green { background: rgba(34, 197, 94, 0.2); color: #86EFAC; }
.badge-orange { background: rgba(245, 158, 11, 0.2); color: #FCD34D; }
.badge-muted { background: rgba(156, 163, 175, 0.18); color: var(--text-muted); }

h3.inline-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 32px 0 14px;
    padding-left: 14px;
    position: relative;
    letter-spacing: -0.1px;
}
h3.inline-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}
h4.inline-subtitle {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 8px;
}

p { font-size: 0.94rem; color: var(--text); margin: 10px 0; line-height: 1.65; }
p.lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}
p.lead strong { color: var(--text); }

/* ── Tables ──────────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(212, 168, 67, 0.1);
    margin: 14px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
thead th {
    background: var(--dark-surface);
    padding: 12px 14px;
    text-align: right;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
thead th:first-child { text-align: left; border-radius: 12px 0 0 0; }
thead th:last-child { border-radius: 0 12px 0 0; }
tbody td {
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--gold-light);
}
tbody tr {
    transition: background 0.15s ease;
}
tbody tr:hover { background: rgba(212, 168, 67, 0.06); }
tbody tr:last-child td { border-bottom: none; }
.cell-green { color: var(--green); }
.cell-red { color: var(--red); }
.cell-orange { color: var(--orange); }
.cell-muted { color: var(--text-muted); font-style: italic; font-size: 0.8rem; }
table.left-aligned tbody td,
table.left-aligned thead th { text-align: left; }

/* ── Alert boxes ─────────────────────────────────────────────────── */
.alert-box {
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.alert-warning { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.25); }
.alert-danger { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); }
.alert-success { background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.25); }
.alert-info { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.25); }
.alert-gold { background: rgba(212, 168, 67, 0.08); border: 1px solid rgba(212, 168, 67, 0.3); }
.alert-box .alert-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1.2;
}
.alert-box .alert-content { flex: 1; min-width: 0; }
.alert-box .alert-title {
    font-weight: 700;
    font-size: 0.96rem;
    margin-bottom: 6px;
    color: var(--text);
}
.alert-box .alert-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.alert-box .alert-text strong { color: var(--text); }
.alert-box .alert-text ul, .alert-box .alert-text ol {
    margin: 8px 0;
    padding-left: 22px;
}
.alert-box .alert-text li { padding: 3px 0; }

/* ── Step cards (action plans, process) ──────────────────────────── */
.steps {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
.step {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 18px 22px 18px 24px;
    border-left: 4px solid var(--gold);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: flex-start;
    transition: transform 0.15s ease, border-left-color 0.15s ease;
}
.step:hover {
    transform: translateX(3px);
}
.step.step-warn { border-left-color: var(--orange); }
.step.step-danger { border-left-color: var(--red); }
.step.step-info { border-left-color: var(--blue); }
.step.step-success { border-left-color: var(--green); }
.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.15);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid rgba(212, 168, 67, 0.25);
    flex-shrink: 0;
}
.step.step-warn .step-number { background: rgba(245,158,11,0.15); color: var(--orange); border-color: rgba(245,158,11,0.3); }
.step.step-danger .step-number { background: rgba(239,68,68,0.15); color: var(--red); border-color: rgba(239,68,68,0.3); }
.step.step-info .step-number { background: rgba(59,130,246,0.15); color: var(--blue); border-color: rgba(59,130,246,0.3); }
.step.step-success .step-number { background: rgba(34,197,94,0.15); color: var(--green); border-color: rgba(34,197,94,0.3); }
.step-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step-body p { font-size: 0.88rem; color: var(--text-muted); margin: 4px 0; }
.step-body ul { padding-left: 22px; margin: 6px 0; }
.step-body li { font-size: 0.86rem; color: var(--text-muted); padding: 3px 0; }
.step-body li strong { color: var(--text); }
.step-body code {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--gold-light);
}

/* ── Cards génériques ────────────────────────────────────────────── */
.card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 22px;
    margin: 16px 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
    border-color: rgba(212, 168, 67, 0.2);
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gold-light); margin-bottom: 8px; }
.card h4 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 12px 0 6px; }
.card p { font-size: 0.88rem; color: var(--text-muted); }
.card ul, .card ol { padding-left: 22px; margin: 8px 0; }
.card li { font-size: 0.88rem; color: var(--text-muted); padding: 3px 0; }
.card li strong { color: var(--text); }

.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Métadonnées en ligne (key-value list) ───────────────────────── */
.meta-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 12px 28px;
    margin: 14px 0;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.18);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.meta-list dt {
    color: var(--text-muted);
    font-weight: 600;
    padding-top: 1px;
}
.meta-list dd { color: var(--text); font-weight: 500; line-height: 1.5; }
.meta-list dd code { color: var(--gold-light); }

/* ── Code block ──────────────────────────────────────────────────── */
pre {
    background: #0B0B1A;
    border: 1px solid rgba(212, 168, 67, 0.12);
    border-radius: 10px;
    padding: 18px 20px 18px 22px;
    overflow-x: auto;
    margin: 14px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #E8E8EC;
    position: relative;
    box-shadow: inset 4px 0 0 rgba(212, 168, 67, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
}
pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
    white-space: pre;
    font-size: inherit;
}

/* ── 12-month performance chart (CSS bar) ───────────────────────── */
.perf-chart {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 26px 22px 18px;
    margin: 18px 0;
    position: relative;
    overflow: hidden;
}
.perf-chart::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}
.perf-chart-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.perf-chart-title .scale {
    color: var(--gold-light);
    font-size: 0.88rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}
.perf-bars {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
    align-items: end;
    height: 200px;
    padding-top: 30px;
    position: relative;
}
.perf-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}
.perf-bar {
    width: 100%;
    max-width: 44px;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    position: relative;
    transition: filter 0.15s ease, transform 0.15s ease;
    min-height: 2px;
}
.perf-bar.spend {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
}
.perf-bar.conv {
    background: linear-gradient(180deg, #86EFAC, var(--green));
}
.perf-bar.cpa {
    background: linear-gradient(180deg, #C4B5FD, var(--purple));
}
.perf-bar:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}
.perf-bar-value {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--gold-light);
    white-space: nowrap;
    line-height: 1;
}
.perf-bar-month {
    margin-top: 8px;
    font-size: 0.66rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.perf-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.perf-summary-cell {
    text-align: center;
}
.perf-summary-cell .label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}
.perf-summary-cell .value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-top: 4px;
    letter-spacing: -0.3px;
}
.perf-summary-cell .sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Campaign strategy block (per-campaign anatomy) */
.strategy-card {
    background: linear-gradient(180deg, var(--dark-card) 0%, rgba(22, 33, 62, 0.6) 100%);
    border: 1px solid rgba(212, 168, 67, 0.18);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}
.strategy-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}
.strategy-card .strategy-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.strategy-card h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: -0.1px;
}
.strategy-card .strategy-type {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}
.strategy-card .strategy-mission {
    font-size: 0.94rem;
    color: var(--text);
    margin: 10px 0 14px;
    line-height: 1.6;
}
.strategy-card .strategy-mission strong { color: var(--gold-light); }
.strategy-card .strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.strategy-card .strategy-grid-cell .label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}
.strategy-card .strategy-grid-cell .content {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}
.strategy-card .strategy-grid-cell .content strong { color: var(--gold-light); }

/* ── Tags / chips ────────────────────────────────────────────────── */
.tag {
    display: inline-block;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    margin: 2px 2px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.tag-gold { background: rgba(212, 168, 67, 0.12); color: var(--gold-light); border-color: rgba(212, 168, 67, 0.3); }
.tag-status-enabled { background: rgba(34, 197, 94, 0.15); color: #86EFAC; border-color: rgba(34, 197, 94, 0.3); }
.tag-status-paused { background: rgba(156, 163, 175, 0.18); color: var(--text-muted); border-color: rgba(156, 163, 175, 0.3); }

/* ── Glossaire ───────────────────────────────────────────────────── */
.glossary-grid { display: grid; gap: 12px; }
.glossary-item {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 18px;
}
.glossary-term {
    font-weight: 700;
    color: var(--gold-light);
    font-size: 0.98rem;
}
.glossary-acronym {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 8px;
}
.glossary-def { font-size: 0.86rem; color: var(--text-muted); margin-top: 6px; }
.glossary-def strong { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────────── */
footer.page-footer {
    border-top: 1px solid rgba(212, 168, 67, 0.12);
    padding: 36px 0;
    margin-top: 80px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    background: linear-gradient(180deg, transparent, rgba(212, 168, 67, 0.025));
    position: relative;
}
footer.page-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--gold);
}
footer.page-footer strong {
    color: var(--gold-light);
    letter-spacing: 0.3px;
}

/* ── Utilitaires ─────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-light); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease-out;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-brand { padding-left: 76px; }
    .sidebar-brand::after { left: 76px; }
    .layout-main { margin-left: 0; }
    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    .container { padding: 0 18px; }
    header.page-header { padding-top: 80px; }
    header.page-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-right { text-align: left; display: flex; gap: 12px; align-items: center; }
    .header-right .date { margin-top: 0; }
    .kpi-grid { grid-template-columns: 1fr; }
    .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
    .step { grid-template-columns: 1fr; padding: 18px 20px; }
    .step-number { margin-bottom: 4px; }
    .header-left h1 { font-size: 1.6rem; }
    .meta-list { grid-template-columns: 1fr; gap: 4px 0; padding: 16px 18px; }
    .meta-list dt { padding-top: 8px; }
    .meta-list dt:first-of-type { padding-top: 0; }
    section { margin: 40px 0; }
    .section-header .badge { margin-left: 0; }
    .perf-bars { height: 160px; gap: 3px; padding-top: 24px; }
    .perf-bar-value { font-size: 0.58rem; top: -18px; transform: translateX(-50%) rotate(-45deg); }
    .perf-bar-month { font-size: 0.58rem; margin-top: 6px; }
    .perf-summary { grid-template-columns: 1fr; gap: 10px; }
    .perf-summary-cell { text-align: left; padding-left: 14px; border-left: 2px solid var(--gold); }
    .strategy-card .strategy-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Reviews recap: établissement table, filters, synthesis ───────────── */
.table-wrapper th, .table-wrapper td { text-align: left; }
.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 10px 0 6px; }
.controls input, .controls select {
    background: var(--dark-surface); border: 1px solid rgba(212,168,67,.22);
    color: var(--text); border-radius: 8px; padding: 9px 12px; font-size: .9rem; font-family: inherit;
}
.controls input:focus, .controls select:focus { outline: none; border-color: var(--gold); }
.controls input { min-width: 220px; }
.controls .count { color: var(--text-muted); font-size: .82rem; margin-left: auto; }
.controls .count #f-count { color: var(--gold-light); font-weight: 700; }
td.etab .city { font-weight: 700; color: var(--gold-light); text-decoration: none; }
td.etab .city:hover { color: var(--gold); }
td.etab .street { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
a.avis { color: var(--gold-light); font-weight: 700; text-decoration: none; white-space: nowrap; }
a.avis:hover { color: var(--gold); }
.ext { opacity: .55; font-size: .82em; }
/* Suppress the shared stylesheet's auto-underline + auto-arrow on these links
   (we render our own single .ext arrow). !important beats the higher-specificity
   `main a[href^="http"]:not(.tag):not(.btn)::after` rule in the shared sheet. */
td.etab a.city, td a.avis { border-bottom: none !important; }
td.etab a.city::after, td a.avis::after { content: none !important; }
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort]:hover { color: var(--gold-light); }
th[data-sort]::after { content: " \2195"; opacity: .35; }
th[data-sort].sort-asc::after { content: " \2191"; opacity: 1; color: var(--gold); }
th[data-sort].sort-desc::after { content: " \2193"; opacity: 1; color: var(--gold); }
.synth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.synth-card h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 10px; }
.chip { display: inline-block; margin: 3px 5px 3px 0; padding: 5px 12px; border-radius: 20px;
    font-size: .82rem; font-weight: 600; }
.chip-good { background: rgba(34,197,94,.14); color: #86EFAC; border: 1px solid rgba(34,197,94,.28); }
.chip-bad { background: rgba(245,158,11,.14); color: #FCD34D; border: 1px solid rgba(245,158,11,.28); }
.verbatim { font-style: italic; color: var(--text); border-left: 2px solid var(--gold);
    padding-left: 13px; margin: 9px 0; font-size: .9rem; }
@media (max-width: 768px) {
    .synth-grid { grid-template-columns: 1fr; }
    .controls .count { margin-left: 0; width: 100%; }
}
