/* Variables CSS pour les couleurs du logo Bon Plan */
:root {
    --primary-green: #22c55e;
    --dark-green: #16a34a;
    --light-green: #4ade80;
    --background-green: #dcfce7;
    --gradient-green-start: #22c55e;
    --gradient-green-end: #16a34a;
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --red-500: #ef4444;
    --blue-500: #3b82f6;
    --yellow-500: #f59e0b;
    --purple-500: #8b5cf6;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--gradient-green-start), var(--gradient-green-end));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 40px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bouton menu burger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.burger-line {
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Animation du menu burger */
.mobile-menu-toggle.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.login-logo-image {
    height: 80px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    display: block;
}

.footer-logo-image {
    height: 30px;
    width: auto;
    border-radius: 6px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-content {
    text-align: center;
}

.logo-icons {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.cart-icon, .hand-icon {
    font-size: 14px;
    color: var(--primary-green);
}

.logo-text {
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
}

.bon-text {
    color: var(--black);
    font-weight: 900;
}

.plan-text {
    color: var(--primary-green);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(34, 197, 94, 0.3);
}

.footer-tagline {
    font-size: 8px;
    color: var(--primary-green);
    font-weight: 600;
    margin-top: 2px;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1rem;
}

/* User info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 500;
}

.logout-btn {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--white);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

/* Page de connexion */
.login-body {
    background: linear-gradient(135deg, var(--gradient-green-start), var(--gradient-green-end));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background animé */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header de connexion */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-green);
    margin: 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.login-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Formulaire */
.login-form {
    margin-bottom: 1.5rem;
}

.form-title {
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-title i {
    color: var(--primary-green);
}

/* Groupes d'input */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
}

.form-input:focus + .input-label,
.form-input:not(:placeholder-shown) + .input-label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.875rem;
    color: var(--primary-green);
    background: var(--white);
    padding: 0 0.5rem;
}

.input-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

/* Toggle password */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-green);
    background: rgba(34, 197, 94, 0.1);
}

/* Bouton de connexion */
.login-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gradient-green-start), var(--gradient-green-end));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(3px);
}

/* Messages d'erreur */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-500);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--red-500);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-message i {
    font-size: 1.2rem;
}

/* Informations des comptes */
.login-info {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--dark-green);
}

.info-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.account-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
}

.account-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.1);
}

.account-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.account-details {
    flex: 1;
}

.account-details strong {
    color: var(--gray-800);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.account-details p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9rem;
}

.password-hint {
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer de connexion */
.login-footer {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    z-index: 1;
}

.login-footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .account-list {
        gap: 0.75rem;
    }
    
    .account-item {
        padding: 0.75rem;
    }
    
    .account-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .form-input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .input-icon {
        left: 0.875rem;
    }
    
    .input-label {
        left: 2.5rem;
    }
    
    .password-toggle {
        right: 0.875rem;
    }
}

/* Formulaires */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-green-start), var(--gradient-green-end));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: var(--gray-500);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--gray-600);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--red-500);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.page-header h1 {
    color: var(--gray-800);
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header h1 i {
    color: var(--primary-green);
}

.page-header p {
    color: var(--gray-600);
    margin: 0;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-icon i {
    font-size: 2rem;
}

.stat-card.revenue .stat-icon {
    background: rgba(34, 197, 94, 0.1);
}

.stat-card.expenses .stat-icon {
    background: rgba(239, 68, 68, 0.1);
}

.stat-card.marketing .stat-icon {
    background: rgba(59, 130, 246, 0.1);
}

.stat-card.profit .stat-icon {
    background: rgba(245, 158, 11, 0.1);
}

.stat-content h3 {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-800);
}

.stat-value.positive {
    color: var(--primary-green);
}

.stat-value.negative {
    color: var(--red-500);
}

/* Tableaux */
.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--gray-100);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.data-table tr:hover {
    background-color: var(--gray-50);
}

/* Badges */
.category-badge, .channel-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--background-green);
    color: var(--dark-green);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.channel-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-500);
}

/* Stock indicators */
.stock.high {
    color: var(--primary-green);
    font-weight: bold;
}

.stock.medium {
    color: var(--yellow-500);
    font-weight: bold;
}

.stock.low {
    color: var(--red-500);
    font-weight: bold;
}

/* Profit indicators */
.profit.positive {
    color: var(--primary-green);
    font-weight: bold;
}

.profit.negative {
    color: var(--red-500);
    font-weight: bold;
}

/* Filtres */
.filters {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.filters select {
    min-width: 200px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--gray-800);
}

.close {
    color: var(--gray-400);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--gray-600);
}

.modal form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Messages */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-500);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--red-500);
    margin: 1rem 0;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-green);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    margin: 1rem 0;
}

.no-data {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: 2rem;
}

.readonly {
    color: var(--gray-400);
    font-style: italic;
}

/* Graphiques */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.chart-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-container h2 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-container h2 i {
    color: var(--primary-green);
}

/* Produits récents */
.recent-products {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.recent-products h2 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recent-products h2 i {
    color: var(--primary-green);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.product-card h4 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.product-card p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Statistiques détaillées */
.detailed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-detail {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-detail h3 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-detail h3 i {
    color: var(--primary-green);
}

.stat-detail p {
    margin: 0.5rem 0;
    color: var(--gray-600);
}

/* Rapports */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.report-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.report-section h3 {
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.report-section h3 i {
    color: var(--primary-green);
}

/* Titres des sections avec icônes */
h2 i, h3 i {
    color: var(--primary-green);
}

/* Styles pour les icônes Font Awesome */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Section des bénéfices */
.benefits-analysis {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-green);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-green-start), var(--gradient-green-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content {
    flex: 1;
}

.benefit-content h4 {
    color: var(--gray-800);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.benefit-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    margin: 0 0 0.25rem 0;
}

.benefit-description {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0;
}

.benefit-breakdown {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.benefit-breakdown h4 {
    color: var(--gray-800);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefit-breakdown h4 i {
    color: var(--primary-green);
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 3px solid var(--gray-300);
}

.breakdown-item.breakdown-total {
    background: var(--background-green);
    border-left-color: var(--primary-green);
    font-weight: 600;
}

.breakdown-label {
    color: var(--gray-700);
    font-weight: 500;
}

.breakdown-value {
    color: var(--gray-800);
    font-weight: 600;
}

.breakdown-total .breakdown-label {
    color: var(--dark-green);
}

.breakdown-total .breakdown-value {
    color: var(--primary-green);
    font-size: 1.1rem;
}

/* Responsive pour les bénéfices */
@media (max-width: 768px) {
    .benefit-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .benefit-value {
        font-size: 1.3rem;
    }
    
    .benefit-breakdown {
        padding: 1rem;
    }
}

/* Page d'erreur */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-content h1 {
    font-size: 4rem;
    color: var(--red-500);
    margin-bottom: 1rem;
}

.error-content h2 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.error-details {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: left;
}

.error-details pre {
    color: var(--red-500);
    font-size: 0.875rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 0.25rem 0;
    color: var(--gray-400);
}

/* Styles pour le menu mobile ouvert */
body.menu-open {
    overflow: hidden;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .header-container {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
        justify-content: space-between;
    }
    
    /* Afficher le bouton burger sur mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--gradient-green-start), var(--gradient-green-end));
        padding: 5rem 1rem 1rem 1rem;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        text-decoration: none;
        color: var(--white);
        font-weight: 500;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }
    
    .nav-link i {
        font-size: 1.2rem;
        width: 20px;
        text-align: center;
    }
    
    .nav-link span {
        font-size: 1rem;
        font-weight: 500;
    }
    
    .user-info {
        position: fixed;
        bottom: 2rem;
        left: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.1);
        padding: 1rem;
        border-radius: 8px;
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    /* Overlay pour fermer le menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Tableaux responsives */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Formulaires responsives */
    .modal {
        padding: 1rem;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Graphiques responsives */
    .chart-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .chart-container canvas {
        max-height: 300px;
    }
    
    /* Sections de rapports */
    .report-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile (480px et moins) */
@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .header-container {
        padding: 0.75rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
        text-align: center;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-content h3 {
        font-size: 0.9rem;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .modal {
        margin: 0.5rem;
        padding: 0.5rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .data-table {
        min-width: 500px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.375rem;
        font-size: 0.8rem;
    }
    
    .chart-container {
        padding: 0.75rem;
    }
    
    .chart-container canvas {
        max-height: 250px;
    }
    
    .nav {
        width: 100%;
        left: -100%;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .nav-link i {
        font-size: 1rem;
        width: 18px;
    }
    
    .nav-link span {
        font-size: 0.9rem;
    }
    
    .user-info {
        bottom: 1rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.75rem;
    }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
    .container {
        padding: 0.25rem;
    }
    
    .header-container {
        padding: 0.5rem;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 1.1rem;
    }
    
    .modal {
        margin: 0.25rem;
        padding: 0.25rem;
    }
    
    .modal-content {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .data-table {
        min-width: 400px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    .nav-list {
        grid-template-columns: 1fr;
    }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header-container {
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .modal {
        max-height: 80vh;
    }
}

/* Amélioration des modales pour mobile */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
        margin: 0;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 1rem;
        border-top: 1px solid var(--gray-200);
        gap: 0.75rem;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 0;
    }
}

/* Amélioration des formulaires pour mobile */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Amélioration des graphiques pour mobile */
@media (max-width: 768px) {
    .chart-container {
        margin: 1rem 0;
        padding: 1rem;
        background: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .chart-container h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .chart-container canvas {
        max-height: 250px;
        width: 100% !important;
        height: auto !important;
    }
}

/* Amélioration des sections de rapports pour mobile */
@media (max-width: 768px) {
    .report-section {
        margin: 1rem 0;
        padding: 1rem;
        background: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .report-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .report-item {
        padding: 1rem;
        background: var(--gray-50);
        border-radius: 8px;
        text-align: center;
    }
    
    .report-item h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .report-item p {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--primary-green);
    }
}

/* Amélioration des tableaux pour mobile - Version cartes */
@media (max-width: 768px) {
    .table-container {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    
    /* Alternative: cartes au lieu de tableaux sur mobile */
    .data-table-mobile {
        display: block;
    }
    
    .data-table-mobile .table-card {
        background: var(--white);
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-left: 4px solid var(--primary-green);
    }
    
    .table-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .table-card-title {
        font-weight: 600;
        color: var(--gray-800);
        font-size: 1.1rem;
    }
    
    .table-card-actions {
        display: flex;
        gap: 0.5rem;
    }
    
    .table-card-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .table-card-item {
        display: flex;
        flex-direction: column;
    }
    
    .table-card-label {
        font-size: 0.8rem;
        color: var(--gray-600);
        font-weight: 500;
        margin-bottom: 0.25rem;
    }
    
    .table-card-value {
        font-size: 0.9rem;
        color: var(--gray-800);
        font-weight: 600;
    }
    
    .table-card-value.price {
        color: var(--primary-green);
        font-weight: 700;
    }
    
    .table-card-value.quantity {
        color: var(--blue-500);
        font-weight: 600;
    }
    
    .table-card-value.category {
        background: var(--background-green);
        color: var(--dark-green);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .table-card-value.status {
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.8rem;
        text-align: center;
        font-weight: 600;
    }
    
    .table-card-value.status.in-stock {
        background: rgba(34, 197, 94, 0.1);
        color: var(--primary-green);
    }
    
    .table-card-value.status.low-stock {
        background: rgba(245, 158, 11, 0.1);
        color: var(--yellow-600);
    }
    
    .table-card-value.status.out-of-stock {
        background: rgba(239, 68, 68, 0.1);
        color: var(--red-500);
    }
}

/* Amélioration des boutons d'action sur mobile */
@media (max-width: 768px) {
    .action-buttons {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .action-buttons .btn {
        flex: 1;
        min-width: 0;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .action-buttons .btn i {
        margin-right: 0.25rem;
    }
    
    .action-buttons .btn.btn-sm {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Amélioration des filtres et recherches sur mobile */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        width: 100%;
        padding: 0.75rem;
    }
    
    .search-box {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .search-box input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
    
    .search-box .search-icon {
        left: 1rem;
    }
}

/* Amélioration des statistiques sur mobile */
@media (max-width: 768px) {
    .stats-grid {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        text-align: center;
    }
    
    .stat-card .stat-icon {
        margin: 0 auto 0.75rem auto;
    }
    
    .stat-card .stat-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-card .stat-change {
        font-size: 0.8rem;
    }
}

/* Amélioration des graphiques sur mobile */
@media (max-width: 768px) {
    .chart-container {
        margin: 1rem 0;
        padding: 1rem;
        background: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .chart-container h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .chart-container canvas {
        max-height: 250px;
        width: 100% !important;
        height: auto !important;
    }
    
    .chart-legend {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .chart-legend-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .chart-legend-color {
        width: 12px;
        height: 12px;
        border-radius: 2px;
    }
}
