@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600;700&display=swap');

/* Perfect'0 Master Stylesheet - v3.0 (New Charter) */

:root {
    /* Palette Principale */
    --primary-color: #004B8D;
    /* Bleu Océan */
    --primary-light: #1FA3FF;
    /* Bleu Azur / Clair */
    --accent-color: #FFD200;
    /* Jaune Doré */

    /* Palette Secondaire */
    --bg-light: #F5F7FA;
    /* Gris très clair (fond) */
    --text-dark: #333333;
    /* Gris foncé (textes) */
    --text-light: #FFFFFF;
    /* Blanc pur */

    /* UI Variables */
    --shadow: 0 4px 10px rgba(0, 75, 141, 0.08);
    /* Ombre douce bleutée */
    --shadow-hover: 0 8px 20px rgba(0, 75, 141, 0.15);
    --border-subtle: #E6F2FF;
    /* Bordure fine bleue */
    --radius: 10px;
    /* Arrondi global */

    /* Legacy mappings for compatibility */
    --primary-dark: #003366;
    --accent-dark: #e6bd00;
    --black: #004B8D;
    /* Remplace le noir par le bleu océan pour les titres/logos */
    --white: #FFFFFF;
    --gray-light: var(--bg-light);
    --gray-dark: var(--text-dark);
    --danger: #dc3545;
    --success: #28a745;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    /* Police courante */
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    /* Police titres */
    font-weight: 700;
    color: var(--primary-color);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Global SVG Safety */
svg {
    width: 24px;
    height: 24px;
}

/* Header (Visible on Desktop / Mobile) - New Style: Light Blue #1FA3FF */
header {
    background-color: var(--primary-light);
    color: var(--text-light);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(31, 163, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    /* Logo text if any */
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links a {
    color: white;
    /* White text on blue bg */
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    /* Yellow on hover */
    font-weight: 700;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    /* Bleu Océan */
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    /* 10px */
    cursor: pointer;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 75, 141, 0.2);
}

.btn:hover {
    background: #003a70;
    /* Slightly darker ocean blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 75, 141, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: #f9fbfd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    /* Zoom effect */
}

.product-badge-volume {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(255, 210, 0, 0.4);
    z-index: 5;
    text-transform: uppercase;
}

.product-details {
    padding: 1.5rem;
    text-align: center;
    /* Center align for a cleaner "Professional" look */
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
    display: block;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.alert-danger {
    background-color: #ffeeef;
    color: #cc0000;
    border: 1px solid #ffcccc;
}

.alert-success {
    background-color: #e6fff0;
    color: #006622;
    border: 1px solid #ccffdd;
}

/* Authentication Page Styles */
.auth-body {
    background-color: #1FA3FF;
    /* Fallback color */
    background-image: url('../assets/water-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

.auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31, 163, 255, 0.2);
    /* Tint bleu par-dessus l'image */
    z-index: 0;
}

.auth-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-family: 'Montserrat', sans-serif;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(0, 75, 141, 0.05);
    /* Reduced opacity */
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    letter-spacing: -5px;
    display: block;
}

/* Hide watermark on small screens to prevent "dancing" and repaint issues */
@media (max-width: 768px) {
    .auth-watermark {
        display: none;
    }
}

.auth-form {
    position: relative;
    max-width: 420px;
    margin: 3rem auto 2rem;
    /* Even smaller top margin */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    /* Reduced blur for performance */
    padding: 2.2rem;
    border-radius: 16px;
    /* Slightly smoother radius */
    box-shadow: 0 20px 40px rgba(0, 75, 141, 0.12);
    border: 1px solid rgba(255, 255, 255, 1);
    z-index: 10;
}

/* Auth Specific Container Tweaks to move "up" */
.auth-body .container {
    margin-top: 1rem;
    /* Moved up */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 80vh;
}

/* Hide header on auth pages to save space and move form up */
.auth-body header {
    display: none;
}

/* Circular Badge for "Perfect'o" - Arc Version */
.form-badge {
    width: 110px;
    height: 110px;
    background: var(--white);
    border-radius: 50%;
    margin: -80px auto 15px;
    position: relative;
    border: 1px solid #e1eef9;
    box-shadow: 0 8px 25px rgba(0, 75, 141, 0.15);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-badge:hover {
    transform: scale(1.05) translateY(-5px);
}

@media (max-width: 480px) {
    .form-badge {
        width: 90px;
        height: 90px;
        margin: -65px auto 10px;
    }

    .badge-center {
        width: 50px;
        height: 50px;
    }

    .badge-text {
        font-size: 7.5px;
    }
}

.badge-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.badge-text {
    fill: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.badge-center {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 8px;
}

.badge-center img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Password Toggle Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 45px;
    /* Space for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #8898aa;
    z-index: 5;
    background: none;
    border: none;
    padding: 8px;
    /* Bigger touch target for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle svg {
    width: 22px;
    height: 22px;
}

/* Product Info Banner */
.product-info-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 75, 141, 0.15);
    gap: 1rem;
}

@media (max-width: 600px) {
    .product-info-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .banner-right {
        text-align: center !important;
        margin-top: 0.5rem;
    }

    .banner-title {
        font-size: 1.1rem !important;
    }
}

.product-info-banner::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.banner-left {
    z-index: 1;
    flex: 1;
}

.banner-right {
    text-align: right;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-volume {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.banner-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.9;
    display: block;
    margin-bottom: -2px;
}

.banner-price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

/* Ensure container is above overlay */
.auth-body .container {
    position: relative;
    z-index: 5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #dcebf7;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #fdfdfd;
}

.form-control:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 163, 255, 0.1);
}

/* Footer */
footer {
    background-color: #00284d;
    /* Darker Ocean Blue */
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: auto;
    border-top: 4px solid var(--accent-color);
}

/* MOBILE BOTTOM NAV - BASE (Hidden on Desktop) */
.bottom-nav,
.admin-bottom-nav {
    display: none !important;
}

/* Search Bar Styles */
.search-container {
    padding: 15px 1rem;
    background: var(--white);
    position: sticky;
    top: 60px;
    /* Adjusted for header */
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid #f0f0f0;
}

.search-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid #eef2f5;
    border-radius: 30px;
    font-size: 0.95rem;
    background: #f8fbff;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 4px 12px rgba(31, 163, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 1024px) {

    body,
    html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .admin-layout {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
        display: block;
        /* Stack on mobile */
    }

    .admin-content {
        padding: 15px;
        padding-bottom: 100px;
        width: 100%;
        box-sizing: border-box;
    }

    header {
        display: block !important;
        padding: 10px 0;
        background: var(--primary-light);
        width: 100%;
        border-bottom: none;
    }

    header nav {
        justify-content: center !important;
        width: 100%;
    }

    .logo img {
        height: 40px !important;
    }

    .nav-links {
        display: none;
    }

    .mobile-admin-logo {
        display: flex;
        justify-content: center;
        background: white;
        padding: 15px;
        margin: -15px -15px 20px -15px;
        border-bottom: 1px solid #eee;
    }

    .mobile-admin-logo img {
        height: 45px;
        width: auto;
    }

    .container {
        padding-bottom: 120px;
        margin-top: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Full-Width Navigation - Forced on Mobile */
    .bottom-nav,
    .admin-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0px;
        left: 0;
        width: 100%;
        max-width: none;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
        padding: 10px 0;
        border-radius: 0;
        z-index: 99999;
        justify-content: space-around;
        border-top: 1px solid #f0f0f0;
        backdrop-filter: blur(10px);
    }

    /* Compact Grid and Cards */
    .product-image {
        height: 150px;
    }

    .product-details {
        padding: 1rem;
    }

    .product-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-price {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .bottom-nav a,
    .admin-bottom-nav a {
        text-decoration: none;
        color: #8898aa;
        font-size: 0.7rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        transition: all 0.3s;
        flex: 1;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
    }

    .bottom-nav a.active,
    .admin-bottom-nav a.active {
        color: var(--primary-color);
        font-weight: 700;
    }

    .bottom-nav a.active svg,
    .admin-bottom-nav a.active svg {
        fill: var(--primary-color);
        filter: drop-shadow(0 2px 4px rgba(0, 75, 141, 0.3));
    }

    .bottom-nav a svg,
    .admin-bottom-nav a svg {
        width: 24px !important;
        height: 24px !important;
        fill: currentColor;
        transition: all 0.3s;
    }

    /* Admin specific on mobile */
    .admin-sidebar {
        display: none !important;
    }

    .admin-content {
        flex: 1;
        padding: 15px !important;
    }

    .admin-stats-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 2rem;
        padding: 0 !important;
    }

    .stat-card {
        padding: 1rem !important;
        min-height: 140px !important;
    }

    .stat-card .value {
        font-size: 1.4rem !important;
    }

    /* --- TABLE STRUCTURE REFACTORED (v2.5) --- */

    /* Default stacked view (for tables WITHOUT .no-stack) */
    .admin-table:not(.no-stack) thead {
        display: none !important;
    }

    .admin-table:not(.no-stack),
    .admin-table:not(.no-stack) tbody,
    .admin-table:not(.no-stack) tr,
    .admin-table:not(.no-stack) td {
        display: block !important;
        width: 100% !important;
    }

    .admin-table:not(.no-stack) tr {
        background: white !important;
        margin-bottom: 1rem !important;
        padding: 1.25rem !important;
        border-radius: 12px !important;
        box-shadow: var(--shadow) !important;
        border: 1px solid var(--border-subtle) !important;
    }

    .admin-table:not(.no-stack) td {
        display: flex !important;
        justify-content: space-between !important;
        padding: 0.8rem 0 !important;
        border-bottom: 1px dashed #eee !important;
    }

    .admin-table:not(.no-stack) td:last-child {
        border-bottom: none !important;
    }

    .admin-table:not(.no-stack) td::before {
        content: attr(data-label) !important;
        font-weight: 700 !important;
        color: #8898aa !important;
        font-size: 0.85rem !important;
    }

    /* Force HORIZONTAL view (for tables WITH .no-stack) */
    .admin-table.no-stack {
        display: table !important;
        width: 100% !important;
        min-width: 900px !important;
        border-collapse: collapse !important;
        background: white !important;
        margin: 0 !important;
    }

    .admin-table.no-stack thead {
        display: table-header-group !important;
    }

    .admin-table.no-stack tr {
        display: table-row !important;
        background: transparent !important;
        border-bottom: 1px solid #eee !important;
    }

    .admin-table.no-stack th,
    .admin-table.no-stack td {
        display: table-cell !important;
        padding: 0.85rem 1rem !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
        text-align: left !important;
        font-size: 0.9rem !important;
    }

    .admin-table.no-stack th {
        background: #fdfdfd !important;
        font-weight: 700 !important;
        color: #333 !important;
        border-bottom: 2px solid #eee !important;
        text-transform: uppercase !important;
        font-size: 0.75rem !important;
    }

    .admin-table.no-stack td::before {
        content: none !important;
    }

    /* Professional scroll container - Modern & Seamless (v2.7) */
    .table-responsive {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        background: white !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 2rem !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .admin-table.no-stack {
        min-width: 850px !important;
        border: none !important;
    }

    .admin-table.no-stack tr {
        border-bottom: 1px solid #f5f5f5 !important;
    }

    .admin-table.no-stack th {
        background: #fdfdfd !important;
        border-top: 1px solid #eee !important;
        border-bottom: 1px solid #eee !important;
    }

    /* Custom scrollbar for professional look */
    .table-responsive::-webkit-scrollbar {
        height: 6px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #ccc;
    }
}

/* ADMIN PANEL (Desktop) */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 270px;
    background-color: #00284d;
    /* Deep Ocean Blue */
    color: var(--white);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
}

.admin-sidebar .logo {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 3rem;
    justify-content: flex-start;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .logo img {
    height: 40px;
}

.admin-sidebar a {
    color: #a0aec0;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--primary-light);
    /* Active state azure */
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(31, 163, 255, 0.3);
}

.admin-content {
    flex: 1;
    padding: 2.5rem;
    background-color: var(--bg-light);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.admin-table th {
    background: #f8fbff;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    padding: 1.5rem;
    border-bottom: 2px solid #eef2f7;
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    /* More padding */
    text-align: left;
    border-bottom: 1px solid #f4f4f4;
    color: var(--text-dark);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: #fcfcfc;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-subtle);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-hover);
}

.stat-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Couleurs fidèles à la nouvelle charte */
.stat-card.clients {
    border-bottom: 4px solid var(--primary-color);
}

.stat-card.clients .icon-box {
    background: rgba(0, 75, 141, 0.1);
    color: var(--primary-color);
}

.stat-card.commandes {
    border-bottom: 4px solid var(--accent-color);
}

.stat-card.commandes .icon-box {
    background: rgba(255, 210, 0, 0.15);
    color: #b39200;
}

.stat-card.revenus {
    border-bottom: 4px solid var(--primary-light);
}

.stat-card.revenus .icon-box {
    background: rgba(31, 163, 255, 0.1);
    color: var(--primary-light);
}

.stat-card.en-attente {
    border-bottom: 4px solid #718096;
}

.stat-card.en-attente .icon-box {
    background: #edf2f7;
    color: #4a5568;
}

.stat-card .label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #8898aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 5px 0;
    font-family: 'Montserrat', sans-serif;
}

.stat-card .sub-info {
    font-size: 0.8rem;
    color: #a0aec0;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-en-attente,
.status-en_attente {
    background: #edf2f7;
    color: #4a5568;
}

.status-payee {
    background: rgba(31, 163, 255, 0.15);
    color: var(--primary-color);
}

.status-livree {
    background: rgba(255, 210, 0, 0.15);
    color: #8a7000;
}

.status-annulee,
.status-refusee {
    background: #fff5f5;
    color: #c53030;
}