/* client-dashboard.css — Extracted from dashboard/client_dashboard.html */

    /* ===== Glassmorphism Cards ===== */
    .dash-card {
        background: rgba(255,255,255,0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 16px;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        overflow: hidden;
        position: relative;
    }
    .dash-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    }
    .dash-card .accent-strip {
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 4px;
    }
    .accent-blue    { background: linear-gradient(90deg, #667eea, #764ba2); }
    .accent-green   { background: linear-gradient(90deg, #43e97b, #38f9d7); }
    .accent-orange  { background: linear-gradient(90deg, #f093fb, #f5576c); }
    .accent-purple  { background: linear-gradient(90deg, #a18cd1, #fbc2eb); }
    .accent-cyan    { background: linear-gradient(90deg, #4facfe, #00f2fe); }
    .accent-gold    { background: linear-gradient(90deg, #f6d365, #fda085); }
    .accent-teal    { background: linear-gradient(90deg, #0d9488, #2dd4bf); }

    /* ===== Metric Counter ===== */
    .metric-value {
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1;
        background: linear-gradient(135deg, #1a1a2e, #16213e);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .metric-label {
        font-size: 0.82rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #6c757d;
    }
    .metric-suffix {
        font-size: 1rem;
        font-weight: 600;
        opacity: 0.6;
    }

    /* ===== Delta Badges ===== */
    .delta-up {
        background: linear-gradient(135deg, #d4edda, #c3e6cb);
        color: #155724;
        border-radius: 20px;
        padding: 3px 10px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    .delta-down {
        background: linear-gradient(135deg, #f8d7da, #f5c6cb);
        color: #721c24;
        border-radius: 20px;
        padding: 3px 10px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    .delta-neutral {
        background: linear-gradient(135deg, #e2e3e5, #d6d8db);
        color: #383d41;
        border-radius: 20px;
        padding: 3px 10px;
        font-size: 0.75rem;
        font-weight: 600;
    }
    .delta-first {
        background: linear-gradient(135deg, #cce5ff, #b8daff);
        color: #004085;
        border-radius: 20px;
        padding: 3px 10px;
        font-size: 0.75rem;
        font-weight: 600;
    }

    /* ===== Action Filter Buttons ===== */
    .action-filter-btn.active {
        background: #667eea !important;
        color: #fff !important;
        border-color: #667eea !important;
    }

    /* ===== CSS Donut Gauge ===== */
    .gauge-ring {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .gauge-ring::before {
        content: '';
        position: absolute;
        inset: 6px;
        border-radius: 50%;
        background: white;
    }
    .gauge-ring .gauge-value {
        position: relative;
        z-index: 1;
        font-size: 0.85rem;
        font-weight: 700;
    }

    /* ===== Section Headers ===== */
    .section-header {
        margin-top: 2.2rem;
        margin-bottom: 1.2rem;
        padding: 14px 20px;
        background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.05));
        border-left: 4px solid;
        border-image: linear-gradient(180deg, #667eea, #764ba2) 1;
        border-radius: 0 12px 12px 0;
    }
    .section-header:first-of-type {
        margin-top: 0;
    }
    .section-title {
        font-size: 1.1rem;
        font-weight: 800;
        color: #1a1a2e;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        letter-spacing: -0.2px;
    }
    .section-title i {
        font-size: 1.2rem;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        -webkit-text-fill-color: white;
        flex-shrink: 0;
    }
    .section-title .section-subtitle {
        font-size: 0.78rem;
        font-weight: 400;
        color: #6c757d;
        margin-left: 4px;
    }
    .section-divider {
        display: none;
    }

    /* ===== Dark mode — Dashboard ===== */
    body.dark-mode .section-header {
        background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.08));
    }
    body.dark-mode .section-title {
        color: #e8e8e8;
    }
    body.dark-mode .section-title .section-subtitle {
        color: #888;
    }
    body.dark-mode .dash-card {
        background: rgba(15,52,96,0.85);
        border-color: #2d3561;
    }
    body.dark-mode .dash-card:hover {
        box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    }
    body.dark-mode .metric-value {
        background: linear-gradient(135deg, #e8e8e8, #b8c4e8);
        -webkit-background-clip: text;
        background-clip: text;
    }
    body.dark-mode .metric-label {
        color: #888;
    }
    body.dark-mode .chart-card {
        background: rgba(15,52,96,0.9);
        border-color: #2d3561;
    }
    body.dark-mode .model-table thead th {
        background: linear-gradient(135deg, #16213e, #0f3460);
        color: #888;
        border-bottom-color: #2d3561;
    }
    body.dark-mode .model-table,
    body.dark-mode .model-table > :not(caption) > * > * {
        background-color: transparent;
        color: #e8e8e8;
        border-bottom-color: #2d3561;
    }
    body.dark-mode .model-table .bg-light {
        background-color: rgba(15, 52, 96, 0.5) !important;
        color: #999 !important;
    }
    body.dark-mode .model-table tbody td strong {
        color: #e8e8e8;
    }
    body.dark-mode .model-table tbody td .fw-bold {
        color: #e8e8e8 !important;
    }
    body.dark-mode .model-table tbody tr:hover {
        background: rgba(92,179,255,0.06);
    }
    body.dark-mode .geo-score-circle::before,
    body.dark-mode .score-circle::before {
        background: #0f3460;
    }
    body.dark-mode .geo-score-circle .score-text {
        background: linear-gradient(135deg, #8b9cf7, #b490d6);
        -webkit-background-clip: text;
        background-clip: text;
    }
    body.dark-mode .geo-cat-bar {
        background: #2d3561;
    }
    body.dark-mode .geo-check-item span,
    body.dark-mode .geo-rec-card .fw-bold {
        color: #e8e8e8 !important;
    }
    body.dark-mode .geo-rec-card .text-muted {
        color: #999 !important;
    }
    body.dark-mode .geo-rec-high { background: rgba(220,53,69,0.12); }
    body.dark-mode .geo-rec-medium { background: rgba(253,126,20,0.12); }
    body.dark-mode .geo-rec-low { background: rgba(13,110,253,0.12); }
    body.dark-mode .geo-grade-badge {
        filter: brightness(1.2);
    }
    body.dark-mode .progress-banner {
        background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.10));
        border-color: rgba(102,126,234,0.25);
    }
    body.dark-mode .action-status-select {
        background: #16213e;
        border-color: #2d3561;
        color: #e8e8e8;
    }

    /* ===== ApexCharts Dark Mode ===== */
    body.dark-mode .apexcharts-legend-text {
        color: #c0c4d8 !important;
    }
    body.dark-mode .apexcharts-tooltip,
    body.dark-mode .apexcharts-tooltip.apexcharts-theme-light {
        background: #1a1f3e !important;
        border-color: #2d3561 !important;
        color: #e8e8e8 !important;
    }
    body.dark-mode .apexcharts-tooltip .apexcharts-tooltip-title {
        background: #16213e !important;
        border-bottom-color: #2d3561 !important;
        color: #e8e8e8 !important;
    }
    body.dark-mode .apexcharts-tooltip .apexcharts-tooltip-series-group {
        background: transparent !important;
    }
    body.dark-mode .apexcharts-tooltip .apexcharts-tooltip-text,
    body.dark-mode .apexcharts-tooltip .apexcharts-tooltip-text-y-value,
    body.dark-mode .apexcharts-tooltip .apexcharts-tooltip-text-y-label,
    body.dark-mode .apexcharts-tooltip .apexcharts-tooltip-text-z-value,
    body.dark-mode .apexcharts-tooltip .apexcharts-tooltip-text-z-label {
        color: #c0c4d8 !important;
    }
    body.dark-mode .apexcharts-xaxis-label,
    body.dark-mode .apexcharts-yaxis-label {
        fill: #8a8fb5 !important;
    }
    body.dark-mode .apexcharts-radar-series polygon {
        fill: #0f3460 !important;
        stroke: #2d3561 !important;
    }
    body.dark-mode .apexcharts-grid line,
    body.dark-mode .apexcharts-gridline {
        stroke: #2d3561 !important;
    }
    body.dark-mode .apexcharts-xaxis line,
    body.dark-mode .apexcharts-yaxis line {
        stroke: #2d3561 !important;
    }

    /* ===== Delta badges: leave room for metric-help icon ===== */
    .dash-card .delta-up,
    .dash-card .delta-down,
    .dash-card .delta-neutral,
    .dash-card .delta-first {
        margin-right: 20px;
    }

    /* Dark mode : éclaircir le texte + fond plus subtil (pas flashy, juste lisible) */
    body.dark-mode .delta-up {
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.18), rgba(40, 167, 69, 0.28));
        color: #86efac;
    }
    body.dark-mode .delta-down {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.18), rgba(220, 53, 69, 0.28));
        color: #fca5a5;
    }
    body.dark-mode .delta-neutral {
        background: linear-gradient(135deg, rgba(108, 117, 125, 0.25), rgba(108, 117, 125, 0.35));
        color: #cbd5e1;
    }
    body.dark-mode .delta-first {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.28));
        color: #93c5fd;
    }

    /* ===== Metric Help Button ===== */
    .metric-help {
        position: absolute;
        top: 4px;
        right: 6px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: rgba(108, 117, 125, 0.1);
        border: none;
        color: #6c757d;
        font-size: 0.65rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        z-index: 2;
        padding: 0;
        line-height: 1;
    }
    .metric-help:hover {
        background: rgba(102, 126, 234, 0.15);
        color: #667eea;
    }
    body.dark-mode .metric-help {
        background: rgba(255,255,255,0.08);
        color: #8a8fb5;
    }
    body.dark-mode .metric-help:hover {
        background: rgba(102, 126, 234, 0.25);
        color: #a0b0ff;
    }
    body.dark-mode .popover {
        background: #1a1f3e;
        border-color: #2d3561;
    }
    body.dark-mode .popover-header {
        background: #16213e;
        color: #e8e8e8;
        border-bottom-color: #2d3561;
    }
    body.dark-mode .popover-body {
        color: #c0c4d8;
    }
    body.dark-mode .bs-popover-top > .popover-arrow::before { border-top-color: #2d3561; }
    body.dark-mode .bs-popover-top > .popover-arrow::after { border-top-color: #1a1f3e; }
    body.dark-mode .bs-popover-bottom > .popover-arrow::before { border-bottom-color: #2d3561; }
    body.dark-mode .bs-popover-bottom > .popover-arrow::after { border-bottom-color: #16213e; }
    body.dark-mode .bs-popover-start > .popover-arrow::before { border-left-color: #2d3561; }
    body.dark-mode .bs-popover-start > .popover-arrow::after { border-left-color: #1a1f3e; }
    body.dark-mode .bs-popover-end > .popover-arrow::before { border-right-color: #2d3561; }
    body.dark-mode .bs-popover-end > .popover-arrow::after { border-right-color: #1a1f3e; }

    /* ===== Natif vs Web Cards ===== */
    .score-circle {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        position: relative;
    }
    .score-circle-native {
        background: conic-gradient(
            #667eea var(--pct),
            #e9ecef var(--pct)
        );
    }
    .score-circle-web {
        background: conic-gradient(
            #43e97b var(--pct),
            #e9ecef var(--pct)
        );
    }
    .score-circle::before {
        content: '';
        position: absolute;
        inset: 10px;
        border-radius: 50%;
        background: white;
    }
    .score-circle .score-text {
        position: relative;
        z-index: 1;
        font-size: 1.6rem;
        font-weight: 800;
    }
    .score-circle .score-sub {
        position: relative;
        z-index: 1;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.6;
    }

    /* ===== Model Table Premium ===== */
    .model-table thead th {
        background: linear-gradient(135deg, #f8f9ff, #f0f1f6);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #6c757d;
        font-weight: 700;
        border-bottom: 2px solid #e9ecef;
        padding: 12px 16px;
    }
    .model-table tbody td {
        padding: 14px 16px;
        vertical-align: middle;
    }
    .model-table tbody tr {
        transition: background 0.2s;
    }
    .model-table tbody tr:hover {
        background: rgba(102,126,234,0.04);
    }
    .score-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: 700;
        font-size: 0.85rem;
    }
    .score-pill-success { background: #d4edda; color: #155724; }
    .score-pill-warning { background: #fff3cd; color: #856404; }
    .score-pill-danger  { background: #f8d7da; color: #721c24; }
    body.dark-mode .score-pill-success { background: rgba(40,167,69,0.25); color: #6fdc8c; }
    body.dark-mode .score-pill-warning { background: rgba(255,193,7,0.25); color: #ffd95a; }
    body.dark-mode .score-pill-danger  { background: rgba(220,53,69,0.25); color: #ff8a8a; }
    .mini-bar {
        height: 6px;
        border-radius: 3px;
        background: #e9ecef;
        overflow: hidden;
        min-width: 60px;
    }
    .mini-bar-fill {
        height: 100%;
        border-radius: 3px;
        transition: width 0.8s ease;
    }

    /* ===== Action Plan ===== */
    .priority-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
    }
    .priority-high { background: #dc3545; }
    .priority-medium { background: #ffc107; }
    .priority-low { background: #6c757d; }
    .action-status-select {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 4px 8px;
        font-size: 0.8rem;
        font-weight: 600;
        background: white;
        transition: border-color 0.2s;
        cursor: pointer;
    }
    .action-status-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
    }

    /* ===== Chart Card ===== */
    .chart-card {
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 16px;
        padding: 24px;
    }

    /* ===== Animations ===== */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .animate-in {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }
    .animate-delay-1 { animation-delay: 0.1s; }
    .animate-delay-2 { animation-delay: 0.2s; }
    .animate-delay-3 { animation-delay: 0.3s; }
    .animate-delay-4 { animation-delay: 0.4s; }
    .animate-delay-5 { animation-delay: 0.5s; }
    .animate-delay-6 { animation-delay: 0.6s; }

    /* ===== Progress Banner ===== */
    .progress-banner {
        background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.06));
        border: 1px solid rgba(102,126,234,0.15);
        border-radius: 16px;
        padding: 16px 24px;
        margin-bottom: 1rem;
    }
    .progress-banner .counter-box {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 14px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 700;
    }
    .counter-box.up { background: rgba(40,167,69,0.12); color: #155724; }
    .counter-box.down { background: rgba(220,53,69,0.12); color: #721c24; }
    .counter-box.neutral { background: rgba(108,117,125,0.12); color: #383d41; }
    body.dark-mode .counter-box.up { background: rgba(40,167,69,0.2); color: #6fdc8c; }
    body.dark-mode .counter-box.down { background: rgba(220,53,69,0.2); color: #ff8a8a; }
    body.dark-mode .counter-box.neutral { background: rgba(108,117,125,0.2); color: #c0c4d8; }
    .banner-highlight {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    /* ===== Sparklines ===== */
    .sparkline-container {
        opacity: 0.85;
    }

    /* ===== Model Deltas ===== */
    .model-delta {
        font-size: 0.7rem;
        font-weight: 600;
        margin-left: 4px;
    }
    .model-delta-new {
        font-size: 0.65rem;
        font-weight: 700;
        margin-left: 4px;
        padding: 1px 6px;
        border-radius: 8px;
        background: rgba(102,126,234,0.12);
        color: #667eea;
    }

    /* ===== Empty State ===== */
    .empty-state-icon {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: linear-gradient(135deg, #f0f1f6, #e2e3e5);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    .empty-state-icon i {
        font-size: 2.5rem;
        background: linear-gradient(135deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* ===== GEO Score Section ===== */
    .geo-score-circle {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        position: relative;
        background: conic-gradient(
            #667eea var(--geo-pct),
            #e9ecef var(--geo-pct)
        );
    }
    .geo-score-circle::before {
        content: '';
        position: absolute;
        inset: 10px;
        border-radius: 50%;
        background: white;
    }
    .geo-score-circle .score-text {
        position: relative;
        z-index: 1;
        font-size: 1.6rem;
        font-weight: 800;
        background: linear-gradient(135deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .geo-score-circle .score-sub {
        position: relative;
        z-index: 1;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.6;
    }
    .geo-cat-bar {
        height: 8px;
        border-radius: 4px;
        background: #e9ecef;
        overflow: hidden;
    }
    .geo-cat-fill {
        height: 100%;
        border-radius: 4px;
        transition: width 1s ease;
    }
    .geo-grade-badge {
        font-size: 2rem;
        font-weight: 900;
        line-height: 1;
    }
    .geo-check-item {
        font-size: 0.82rem;
        padding: 4px 0;
    }
    .geo-check-expandable {
        cursor: pointer;
        border-radius: 6px;
        padding: 5px 6px;
        margin: 0 -6px;
        transition: background 0.15s;
    }
    .geo-check-expandable:hover {
        background: rgba(102,126,234,0.06);
    }
    body.dark-mode .geo-check-expandable:hover {
        background: rgba(102,126,234,0.15);
    }
    .geo-rec-expandable {
        cursor: pointer;
        transition: box-shadow 0.15s;
    }
    .geo-rec-expandable:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .simple-chevron.expanded {
        transform: rotate(180deg);
    }
    .simple-detail-panel {
        display: none;
        padding: 8px 10px 10px 10px;
        margin: 0 -6px 6px -6px;
        border-radius: 0 0 8px 8px;
        background: rgba(102,126,234,0.04);
        border: 1px solid rgba(102,126,234,0.1);
        border-top: none;
        font-size: 0.76rem;
        animation: fadeInSimple 0.2s ease;
    }
    .simple-detail-panel.show { display: block; }
    body.dark-mode .simple-detail-panel {
        background: rgba(102,126,234,0.1);
        border-color: rgba(102,126,234,0.2);
    }
    .simple-detail-desc { color: #555; margin-bottom: 6px; line-height: 1.4; }
    body.dark-mode .simple-detail-desc { color: #bbb; }
    .simple-detail-actions { margin-bottom: 6px; }
    .simple-detail-actions strong { font-size: 0.74rem; color: #667eea; }
    .simple-detail-actions ul { margin: 3px 0 0 14px; padding: 0; }
    .simple-detail-actions li { padding: 1px 0; color: #555; }
    body.dark-mode .simple-detail-actions li { color: #bbb; }
    .simple-detail-measure {
        background: rgba(102,126,234,0.06);
        border-radius: 6px;
        padding: 6px 8px;
        margin-top: 4px;
        font-size: 0.74rem;
        color: #555;
    }
    .simple-detail-measure strong { font-size: 0.74rem; color: #667eea; }
    body.dark-mode .simple-detail-measure { background: rgba(102,126,234,0.12); color: #bbb; }
    @keyframes fadeInSimple { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
    .geo-rec-card {
        border-left: 4px solid;
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 8px;
    }
    .geo-rec-high { border-left-color: #dc3545; background: rgba(220,53,69,0.05); }
    .geo-rec-medium { border-left-color: #fd7e14; background: rgba(253,126,20,0.05); }
    .geo-rec-low { border-left-color: #0d6efd; background: rgba(13,110,253,0.05); }

    /* ===== GEO Checklist Toggle Header ===== */
    .geo-toggle-group .btn {
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 5px 14px;
        border: 1px solid #dee2e6;
        background: white;
        color: #6c757d;
        transition: all 0.2s;
    }
    .geo-toggle-group .btn.active {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border-color: transparent;
    }
    .geo-toggle-group .btn:hover:not(.active) {
        border-color: #667eea;
        color: #667eea;
    }
    body.dark-mode .geo-toggle-group .btn {
        background: #16213e;
        border-color: #2d3561;
        color: #8a8fb5;
    }
    body.dark-mode .geo-toggle-group .btn.active {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border-color: transparent;
    }

    /* ===== Print styles ===== */
    @media print {
        /* Hide nav, header, interactive elements */
        nav, header, footer, .sidebar, .breadcrumb-wrapper,
        .page-header, .geo-toggle-group, .btn-print-checklist, .btn-pdf-checklist,
        .section-header:has(.bi-list-check),
        .checklist-chevron, .simple-chevron,
        .btn-header-print, .btn-header-action, .btn-header-config, .btn-header-back,
        .btn-header-guide, .metric-help, .portal-navbar, .portal-footer,
        .halluc-actions, .halluc-btn, .action-status-select { display: none !important; }

        /* Show detail panels */
        .simple-detail-panel { display: block !important; }
        #geo-vue-simple { display: none !important; }
        #geo-vue-detaillee { display: block !important; }
        .checklist-detail { display: block !important; }

        /* Full width layout */
        .container { max-width: 100% !important; padding: 0 !important; }
        .col-lg-7, .col-lg-5, .col-lg-8, .col-xl-6 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

        /* Cards: no shadow, no blur, solid borders */
        .dash-card, .chart-card, .checklist-category-card, .pdf-config-card {
            box-shadow: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: 1px solid #ddd !important;
            break-inside: avoid;
            page-break-inside: avoid;
        }

        /* Tables: force full display */
        table { width: 100% !important; }
        .model-table { overflow: visible !important; }
        .model-table tbody tr { page-break-inside: avoid; }
        .table-responsive { overflow: visible !important; }

        /* Radar charts: force visible */
        #radarChart, #brandRadarChart, #evolutionChart {
            min-height: auto !important;
            page-break-inside: avoid;
        }
        .apexcharts-canvas { max-width: 100% !important; }

        /* Section headers: keep with content */
        .section-header { page-break-after: avoid !important; break-after: avoid !important; }

        /* Rows: no break inside */
        .row { page-break-inside: avoid; }

        /* KPI cards: 3 per row */
        .col-md-4 { width: 33.333% !important; flex: 0 0 33.333% !important; max-width: 33.333% !important; }
        .col-sm-6 { width: 50% !important; }

        /* Gauge rings: force display */
        .gauge-ring { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

        /* Backgrounds: force print */
        * { print-color-adjust: exact !important; -webkit-print-color-adjust: exact !important; }

        /* Scrollable areas: expand */
        [style*="max-height"] { max-height: none !important; overflow: visible !important; }
        [style*="overflow-y: auto"] { overflow: visible !important; max-height: none !important; }

        /* Checkboxes */
        .checklist-checkbox { -webkit-appearance: checkbox !important; appearance: checkbox !important; }

        /* Page margins */
        @page { margin: 1.5cm; }
    }

    /* Native/Web insight alerts — light & dark mode */
    .nw-insight {
        padding: 10px 16px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
        border: 1px solid transparent;
    }
    .nw-warning { background: linear-gradient(135deg, #fff3cd, #ffeaa7); color: #664d03; border-color: #ffecb5; }
    .nw-info    { background: linear-gradient(135deg, #cce5ff, #b8daff); color: #084298; border-color: #b6d4fe; }
    .nw-success { background: linear-gradient(135deg, #d4edda, #c3e6cb); color: #0f5132; border-color: #badbcc; }
    .nw-neutral { background: linear-gradient(135deg, #e2e3e5, #d6d8db); color: #41464b; border-color: #d3d6d8; }
    .nw-danger  { background: linear-gradient(135deg, #f8d7da, #f5c6cb); color: #842029; border-color: #f5c2c7; }

    body.dark-mode .nw-warning { background: linear-gradient(135deg, #4a3800, #5c4400); color: #ffd966; border-color: #6b5200; }
    body.dark-mode .nw-info    { background: linear-gradient(135deg, #0a2e5c, #0d3b76); color: #7abaff; border-color: #1a4d8f; }
    body.dark-mode .nw-success { background: linear-gradient(135deg, #0a3622, #0d4a2e); color: #6ee7a0; border-color: #15603d; }
    body.dark-mode .nw-neutral { background: linear-gradient(135deg, #2d3748, #374151); color: #cbd5e1; border-color: #4b5563; }
    body.dark-mode .nw-danger  { background: linear-gradient(135deg, #4a1520, #5c1a28); color: #fca5a5; border-color: #7f1d1d; }

    /* GEO detail cards (sitemap, robots, etc.) */
    .geo-detail-card {
        background: #f8f9fc;
        border: 1px solid #e8ecf1;
    }
    body.dark-mode .geo-detail-card {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    body.dark-mode .geo-detail-card .text-muted {
        color: #94a3b8 !important;
    }
    body.dark-mode .geo-detail-card .fw-bold {
        color: #f1f5f9;
    }
    body.dark-mode .geo-detail-card .badge.bg-info {
        background: #1e3a5f !important;
        color: #7abaff;
    }

    /* ===== GEO Section Breakdown ===== */
    .geo-section-icon {
        width: 38px; height: 38px; border-radius: 10px;
        display: inline-flex; align-items: center; justify-content: center;
        color: #fff; font-size: 1.15rem; flex-shrink: 0;
    }
    .geo-section-featured { border: 2px solid rgba(40,167,69,0.3); }
    .geo-section-featured .accent-strip { height: 5px; }
    .geo-score-ring {
        width: 56px; height: 56px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        position: relative; flex-shrink: 0;
    }
    .geo-score-ring::before {
        content: ''; position: absolute; inset: 5px;
        border-radius: 50%; background: #fff;
    }
    .geo-score-ring .score-val {
        position: relative; z-index: 1;
        font-size: .85rem; font-weight: 800; line-height: 1;
    }
    .geo-score-ring .score-val small { font-size: .6rem; font-weight: 600; opacity: .7; }
    .geo-cat-row { padding: 4px 0; border-radius: 6px; transition: background .15s; }
    .geo-cat-row:hover { background: rgba(0,0,0,.02); }
    .geo-cat-bar {
        height: 8px; border-radius: 4px;
        background: #e9ecef; overflow: hidden;
    }
    .geo-cat-bar-fill {
        height: 100%; border-radius: 4px;
        transition: width .6s ease;
    }
    .geo-cat-label {
        width: 180px; font-size: .82rem; flex-shrink: 0;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    body.dark-mode .geo-section-featured { border-color: rgba(40,167,69,0.4); }
    body.dark-mode .geo-cat-bar { background: rgba(255,255,255,.08); }
    body.dark-mode .geo-score-ring::before { background: #1a1a2e; }
    body.dark-mode .geo-cat-row:hover { background: rgba(255,255,255,.03); }

    /* AEO install-status badges */
    .install-status {
        display: inline-flex; align-items: center; gap: 4px;
        padding: 3px 10px; border-radius: 12px;
        font-size: 0.75rem; font-weight: 700; white-space: nowrap;
    }
    .install-status.active {
        background: rgba(40,167,69,0.12); color: #28a745;
    }
    .install-status.inactive {
        background: rgba(220,53,69,0.12); color: #dc3545;
    }
    .install-status.warning {
        background: rgba(255,193,7,0.15); color: #b8860b;
    }
    body.dark-mode .install-status.active { background: rgba(40,167,69,0.2); color: #6fdc8c; }
    body.dark-mode .install-status.inactive { background: rgba(220,53,69,0.2); color: #ff8a8a; }
    body.dark-mode .install-status.warning { background: rgba(255,193,7,0.2); color: #ffd95a; }

    /* Dark mode: badges subtle lisibles */
    body.dark-mode .badge.bg-secondary-subtle { background: rgba(255,255,255,0.12) !important; color: #c0c4d8 !important; }
    body.dark-mode .badge.bg-success-subtle { background: rgba(40,167,69,0.2) !important; color: #6fdc8c !important; }
    body.dark-mode .badge.bg-primary-subtle { background: rgba(102,126,234,0.2) !important; color: #a0b4ff !important; }
    body.dark-mode .badge.bg-warning-subtle { background: rgba(255,193,7,0.2) !important; color: #ffd95a !important; }
    body.dark-mode .badge.bg-info-subtle { background: rgba(13,202,240,0.15) !important; color: #6edff6 !important; }
    body.dark-mode .badge.bg-danger-subtle { background: rgba(220,53,69,0.2) !important; color: #ff8a8a !important; }

    /* Bouton refresh AEO */
    .aeo-refresh-btn {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 5px 14px; border-radius: 20px; border: none;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #fff; font-size: 0.72rem; font-weight: 600;
        cursor: pointer; transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(102,126,234,0.3);
    }
    .aeo-refresh-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    }
    .aeo-refresh-btn:active { transform: translateY(0); }
    .aeo-refresh-btn i { transition: transform 0.5s ease; }
    .aeo-refresh-btn.spinning i { animation: spin 1s linear infinite; }
    @keyframes spin { 100% { transform: rotate(360deg); } }
    body.dark-mode .aeo-refresh-btn {
        background: linear-gradient(135deg, #4a5fd7, #6b4e9e);
        box-shadow: 0 2px 8px rgba(74,95,215,0.4);
    }


/* Dashboard Tour */

.tour-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 10000; display: none;
    pointer-events: none;
}
.tour-tooltip {
    position: absolute; z-index: 10002; max-width: 380px; width: 90vw;
    background: #fff; border: 1px solid #dee2e6; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 20px; display: none;
}
.tour-tooltip h5 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: #333; }
.tour-tooltip p { margin: 0 0 16px; font-size: 0.875rem; color: #666; line-height: 1.5; }
.tour-tooltip .tour-footer { display: flex; justify-content: space-between; align-items: center; }
.tour-tooltip .tour-steps { font-size: 0.8rem; color: #999; }
.tour-tooltip .tour-btn {
    border: none; border-radius: 8px; padding: 6px 16px; font-size: 0.85rem;
    cursor: pointer; transition: opacity 0.2s;
}
.tour-tooltip .tour-btn:hover { opacity: 0.85; }
.tour-tooltip .tour-btn-skip { background: #f1f3f5; color: #666; }
.tour-tooltip .tour-btn-next { background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; margin-left: 8px; }
.tour-highlight {
    position: relative; z-index: 10001 !important;
    border-radius: 10px;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.6), 0 0 0 9999px rgba(0,0,0,0.5), 0 0 30px rgba(102,126,234,0.5);
}
body.dark-mode .tour-tooltip { background: #1e2235; border-color: #2d3561; }
body.dark-mode .tour-tooltip h5 { color: #e0e0e0; }
body.dark-mode .tour-tooltip p { color: #aaa; }
body.dark-mode .tour-tooltip .tour-steps { color: #777; }
body.dark-mode .tour-tooltip .tour-btn-skip { background: #2d3561; color: #aaa; }

/* SOV card — dark mode */
.sov-rank-badge { background: rgba(0,0,0,0.04); color: #94A3B8; }
.sov-comp-name { color: inherit; }
.sov-pct { color: #374151; }
.sov-bar-bg { background: rgba(0,0,0,0.04); }

body.dark-mode .sov-rank-badge { background: rgba(255,255,255,0.08); color: #94A3B8; }
body.dark-mode .sov-comp-name { color: #e0e0e0; }
body.dark-mode .sov-pct { color: #e0e0e0; }
body.dark-mode .sov-bar-bg { background: rgba(255,255,255,0.08); }
body.dark-mode .sov-brand-block { background: linear-gradient(135deg,rgba(139,92,246,0.15),rgba(168,85,247,0.08)) !important; border-color: rgba(139,92,246,0.25) !important; }

