
/* =========================================
   SOLAIRE PARTAGÉ — MOBILE APP NAVIGATION
   ========================================= */

.client-mobile-nav {
    display: none;
}

@media (max-width: 991.98px) {

    /* Hide desktop navigation on mobile */
    .client-main-nav {
        display: none !important;
    }

    /* Leave room for the fixed bottom navigation */
    .client-container {
        padding-bottom: 110px;
    }

    .client-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;

        display: flex;
        justify-content: space-around;
        align-items: stretch;

        background: #ffffff;
        border-top: 1px solid #e5e7eb;

        padding: 8px 4px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));

        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    }

    .mobile-nav-item {
        flex: 1;
        min-width: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;

        text-decoration: none;
        color: #64748b;

        font-size: 10px;
        font-weight: 500;

        padding: 5px 1px;
    }

    .mobile-nav-icon {
        font-size: 24px;
        line-height: 1.2;
    }

    .mobile-nav-item.active {
        color: #16803c;
        font-weight: 700;
    }

    .mobile-nav-item:focus-visible {
        outline: 2px solid #16803c;
        outline-offset: -2px;
        border-radius: 8px;
    }

    /* Make cards comfortable on smaller screens */
    .client-dashboard-card {
        border-radius: 16px;
    }

    .client-container {
        padding-top: 20px;
    }

    /* Compact site header */
    .header-top {
        padding: 12px 16px;
    }

    .header-top h1 {
        font-size: 1.3rem;
    }

    .header-logo {
        max-width: 64px;
        height: auto;
    }
}
/* =========================================
   ESPACE CLIENT
   ========================================= */

.client-container {
    max-width: 1320px;
}


/* Main client navigation */

.client-main-nav {
    background-color: #007bff;
}

.client-main-nav .nav-link {
    color: white;
    font-weight: 600;
}

.client-main-nav .nav-link:hover,
.client-main-nav .nav-link:focus {
    color: #dbeafe;
}
/* =========================================
   SOLAR PRODUCTION GAUGE
   ========================================= */

.solar-gauge {
    width: min(100%, 360px);
    margin: 0 auto;
}

.solar-gauge svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.production-card {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .solar-gauge {
        max-width: 320px;
    }
}

/* Dashboard */

.client-welcome {
    margin-bottom: 2rem;
}

.client-welcome h2 {
    margin-bottom: 0.25rem;
}


/* Dashboard cards */

.client-dashboard-card {
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: white;
}

.client-dashboard-card .card-body {
    padding: 1.25rem;
}

.client-dashboard-card h5 {
    color: #007bff;
}


/* Production counter */

.production-card {
    text-align: center;
}

.production-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #007bff;
}

.production-unit {
    font-size: 1rem;
    color: #6c757d;
}


/* PRM */

.prm-card {
    border-left: 4px solid #007bff;
}

.prm-reference {
    font-weight: 600;
    word-break: break-word;
}


/* Mobile */

@media (max-width: 768px) {

    .client-container {
        padding: 1rem;
    }

    .header-top h1 {
        font-size: 1.5rem;
    }

    .header-logo {
        max-width: 75px;
        height: auto;
    }

    .production-value {
        font-size: 1.8rem;
    }

    .client-dashboard-card {
        margin-bottom: 0.75rem;
    }

    .client-main-nav {
        margin-bottom: 1rem;
    }

    .client-main-nav .navbar-nav {
        padding-top: 0.75rem;
    }

    .client-main-nav .nav-link {
        padding: 0.7rem 0;
    }
}
/* =========================================
   CLIENT LIGHT / DARK THEME
   ========================================= */

.client-theme-control {
    margin-left: auto;
    width: 145px;
}

.client-theme-control select {
    border-radius: 10px;
    cursor: pointer;
}

/* Light theme */
[data-bs-theme="light"] {
    --client-card-bg: #ffffff;
    --client-page-bg: #f5f7f9;
    --client-text: #1f2937;
}

/* Dark theme */
[data-bs-theme="dark"] {
    --client-card-bg: #202936;
    --client-page-bg: #111827;
    --client-text: #f1f5f9;
}

body {
    background-color: var(--client-page-bg);
    color: var(--client-text);
}

.client-dashboard-card,
.prm-card {
    background-color: var(--client-card-bg);
    color: var(--client-text);
}

@media (max-width: 575.98px) {
    .client-theme-control {
        width: 125px;
    }

    .client-theme-control select {
        font-size: 12px;
    }
}
/* =========================================
   DARK THEME — CLIENT PORTAL FIXES
   ========================================= */

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .page-wrapper,
[data-bs-theme="dark"] .client-container {
    background-color: #111827;
    color: #f1f5f9;
}

/* Headings and text */
[data-bs-theme="dark"] .client-welcome h2,
[data-bs-theme="dark"] .client-dashboard-card h5,
[data-bs-theme="dark"] .prm-card h5 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .text-muted {
    color: #aeb9c8 !important;
}

/* Dashboard cards */
[data-bs-theme="dark"] .client-dashboard-card,
[data-bs-theme="dark"] .prm-card {
    background-color: #202936;
    color: #f1f5f9;
    border-color: #334155;
}

/* Mobile navigation */
@media (max-width: 991.98px) {

    [data-bs-theme="dark"] .client-mobile-nav {
        background-color: #202936;
        border-top-color: #334155;
    }

    [data-bs-theme="dark"] .mobile-nav-item {
        color: #aeb9c8;
    }

    [data-bs-theme="dark"] .mobile-nav-item.active {
        color: #75d69a;
    }

    /* Keep content clear of fixed navigation */
    .client-container {
        padding-bottom: 120px;
    }

    .page-wrapper {
        padding-bottom: 75px;
    }
}
@media (max-width: 575.98px) {

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
    }

    .header-top h1 {
        font-size: 1.1rem;
        margin: 0;
        flex: 1;
        min-width: 0;
    }

    .client-theme-control {
        width: 125px;
        flex-shrink: 0;
        margin-left: 0;
    }
}
/* Solar gauge needle — light and dark */

.solar-needle {
    stroke: #b7791f;
    transition: stroke 0.2s ease;
}

.solar-needle-pivot {
    fill: #b7791f;
}

[data-bs-theme="dark"] .solar-needle {
    stroke: #f4c76b;
}

[data-bs-theme="dark"] .solar-needle-pivot {
    fill: #f4c76b;
}
.mobile-nav-icon {
    font-size: 22px;
    line-height: 1;
}

.mobile-nav-item {
    min-height: 52px;
    gap: 5px;
}