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

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100%;
}

html {
    min-height: 100%;
}

#__next {
    height: 100%;
}

/* Styles pour les éléments code */
code {
    font-family: Inter, sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue';
    padding: 0.1rem 0.4rem;
    font-size: 90%;
    color: #d400ff;
    border-radius: 0.1335rem;
}

code:not([class*="language-"]):after,
code:not([class*="language-"]):before {
    content: "`";
}

code[class*="language-"] {
    padding: 0;
}

/* Styles d'impression */
@media print {
    body {
        margin-top: 20px;
    }
    
    table, td, th {
        border: 1px solid #000;
        border-collapse: collapse;
    }
    
    tr td {
        white-space: nowrap;
    }
    
    *, tr td {
        page-break-inside: avoid;
    }
    
    * {
        -moz-column-break-inside: avoid;
        break-inside: avoid;
    }
    
    *, .pageBreak {
        display: block;
    }
    
    .pageBreak {
        size: auto;
        page-break-after: always;
    }
    
    a {
        display: none;
    }
}

/* Page de connexion */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-full {
    width: 100%;
}

/* Alertes */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Header principal */
.main-header {
    background-color: white;
    color: #333;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
}

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

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

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

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-green {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-green:hover {
    background-color: #45a049;
}

.btn-blue {
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.btn-blue:hover {
    background-color: #2980b9;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.cart-icon {
    font-size: 16px;
}

.cart-count {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-icon {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.user-icon:hover {
    background-color: #f8f9fa;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.user-dropdown a:hover {
    background-color: #f8f9fa;
}

.user-info {
    border-bottom: 1px solid #e1e5e9;
}

.user-info strong {
    display: block;
    font-weight: 600;
    color: #333;
}

.user-info small {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 2px;
}

.logout-btn {
    color: #dc3545 !important;
    font-weight: 500;
}

.logout-btn:hover {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

/* Navigation */
.main-nav {
    background-color: #5265f6;
    padding: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    flex-wrap: nowrap;
}

.main-nav li {
    margin: 0;
    flex-shrink: 0;
}

.main-nav a {
    display: block;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #3d4fd4;
}

/* Menu déroulant élégant */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #5265f6;
    border-left-color: #5265f6;
    transform: translateX(5px);
}

.dropdown-menu a:active {
    background-color: #e9ecef;
}

/* Responsive pour le menu déroulant */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        margin-top: 5px;
        border-radius: 0;
    }
    
    .dropdown-menu a {
        padding: 8px 16px;
        border-left: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .dropdown-menu a:hover {
        transform: none;
    }
}

/* Contenu principal */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Bannière principale */
.banner-carousel {
    position: relative;
    margin-bottom: 30px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #999;
    transform: scale(1.2);
}

.dot.active {
    background: #d400ff;
    transform: scale(1.3);
}

/* Blocs de résumé */
.summary-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.summary-card h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.summary-content p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.amount-display {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 10px;
}

.orders-card {
    background: linear-gradient(135deg, #FFF4D1, #FFE082);
    display: flex;
    align-items: center;
    gap: 15px;
}

.orders-icon {
    font-size: 32px;
}

.orders-content {
    flex: 1;
}

.orders-number {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.orders-content h3 {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Sections produits */
.product-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    background: #3498db;
    color: white;
    padding: 15px 20px;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.section-content {
    padding: 20px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.product-table th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e9ecef;
}

.product-table td {
    padding: 8px 10px;
    font-size: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.product-table tr:last-child td {
    border-bottom: none;
}

.actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #f8f9fa;
}

.see-more-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.see-more-btn:hover {
    background: #45a049;
}

/* Section des commandes */
.orders-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.orders-section .section-header {
    background: #3498db;
    color: white;
    padding: 15px 20px;
}

.orders-section .section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.orders-table-container {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.orders-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e9ecef;
}

.orders-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f4;
}

.orders-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.orders-table tbody tr:hover {
    background: #f1f3f4;
}

/* Statuts */
.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-in-delivery {
    background: #fff3cd;
    color: #856404;
}

.bl-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.bl-link:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Styles pour les réclamations */
.complaint-form-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.complaint-form {
    max-width: 600px;
}

.complaint-form .form-group {
    margin-bottom: 20px;
}

.complaint-form select,
.complaint-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.complaint-form select:focus,
.complaint-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.complaint-form textarea {
    resize: vertical;
    min-height: 100px;
}

.complaints-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.complaints-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.complaints-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e9ecef;
}

.complaints-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f4;
}

.complaints-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.complaints-table tbody tr:hover {
    background: #f1f3f4;
}

.priority {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-normal {
    background: #d1ecf1;
    color: #0c5460;
}

.priority-urgent {
    background: #fff3cd;
    color: #856404;
}

.priority-critique {
    background: #f8d7da;
    color: #721c24;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.info-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.info-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Styles pour les pages de modules */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-container h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
}

.complaints-list-section,
.complaint-info-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.complaints-list-section h3,
.complaint-info-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Styles pour le contact */
.contact-form-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.contact-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.contact-card h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.contact-card p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.contact-card p strong {
    color: #2c3e50;
}

.contact-history-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-history-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.contacts-table-container {
    overflow-x: auto;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contacts-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e9ecef;
}

.contacts-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f4;
}

.contacts-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.contacts-table tbody tr:hover {
    background: #f1f3f4;
}

/* Styles pour les filtres de produits */
.filters-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filters-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
}

.filters-form {
    width: 100%;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.filters-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.filter-group input::placeholder {
    color: #95a5a6;
    font-style: italic;
}

/* Wrapper pour les inputs avec bouton de suppression */
.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input-wrapper input {
    flex: 1;
    padding-right: 30px; /* Espace pour le bouton X */
}

.clear-filter-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s;
}

.clear-filter-btn:hover {
    color: #e74c3c;
    background-color: #f8f9fa;
}

/* Effet sur le bouton Filtrer quand les filtres changent */
.filter-changed {
    background-color: #f39c12 !important;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

@keyframes pulse {
    0% {
        background-color: #d400ff;
    }
    50% {
        background-color: #f39c12;
    }
    100% {
        background-color: #d400ff;
    }
}

.filter-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-btn:hover {
    background: #229954;
}

.filter-icon {
    font-size: 16px;
}

.reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: white;
    color: #27ae60;
    border: 1px solid #27ae60;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: #27ae60;
    color: white;
}

/* Tableau des produits */
.products-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.products-table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.products-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #dee2e6;
    white-space: nowrap;
}

.products-table th:last-child {
    border-right: none;
}

.products-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    vertical-align: middle;
}

.products-table td:last-child {
    border-right: none;
}

.products-table tbody tr:hover {
    background-color: #f8f9fa;
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

/* Actions dans le tableau */
.products-table .action-btn {
    padding: 4px 8px;
    margin: 0 2px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

/* Alignement des prix à droite */
.products-table .price-right {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
}

/* Cellule d'action sur une seule ligne */
.products-table td:last-child {
    white-space: nowrap;
    text-align: center;
}

/* Styles spécifiques aux promotions */
.promotion-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promotion-short {
    font-weight: 600;
    color: #e74c3c;
    font-size: 12px;
}

.promotion-long {
    color: #666;
    font-size: 11px;
    line-height: 1.2;
}

/* Ligne de promotion */
.promotion-row {
    background-color: #fff3cd !important;
    border-left: 4px solid #e74c3c;
}

.promotion-row:hover {
    background-color: #ffeaa7 !important;
}

/* Statut promotion */
.stock.promotion {
    background-color: #e74c3c;
    color: white;
}

.stock.promotion .stock-icon {
    color: white;
}

.products-table .view-btn {
    background-color: #17a2b8;
    color: white;
}

.products-table .view-btn:hover {
    background-color: #138496;
}

.products-table .cart-btn {
    background-color: #28a745;
    color: white;
}

.products-table .cart-btn:hover {
    background-color: #218838;
}

.products-table .equivalent-btn {
    background-color: #6f42c1;
    color: white;
}

/* Styles pour les liens d'action */
.products-table .action-btn {
    text-decoration: none;
    display: inline-block;
}

.products-table .action-btn:hover {
    text-decoration: none;
}

.products-table .equivalent-btn:hover {
    background-color: #5a32a3;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.pagination .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}


/* Indicateurs de statut */
.status-indicators {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 20px;
}

.status-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.status-item.unavailable .status-icon {
    color: #e74c3c;
}

.status-item.repartition .status-icon {
    color: #f39c12;
}

.status-item.available .status-icon {
    color: #27ae60;
}

.status-item.promotion .status-icon {
    color: #27ae60;
}

/* Indicateurs de statut dans le tableau */
.stock {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.stock-icon {
    font-size: 14px;
}

.stock-text {
    font-size: 12px;
}

.stock.unavailable {
    background-color: #fdf2f2;
    color: #e74c3c;
}

.stock.repartition {
    background-color: #fef9e7;
    color: #f39c12;
}

.stock.available {
    background-color: #f0f9ff;
    color: #27ae60;
}

.stock.promotion {
    background-color: #f0fff4;
    color: #27ae60;
}

/* Couleurs de ligne selon le statut */
.unavailable-row {
    background-color: #ffebee;
}

.unavailable-row:hover {
    background-color: #ffcdd2;
}

.repartition-row {
    background-color: #fff3e0;
}

.repartition-row:hover {
    background-color: #ffe0b2;
}

.promotion-row {
    background-color: #e8f5e8;
}

.promotion-row:hover {
    background-color: #c8e6c9;
}

/* Messages discrets */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
}

.results-info {
    display: inline-block;
}

.results-count {
    font-size: 12px;
    color: #666;
    opacity: 0.7;
}

.filters-applied {
    font-size: 11px;
    color: #888;
    opacity: 0.6;
    font-style: italic;
    margin-left: 8px;
}

/* Contrôles de pagination */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-controls label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.pagination-controls select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.pagination .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Amélioration de l'affichage des produits (fallback) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.product-card h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    margin-top: 10px;
}

.product-card .stock {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.product-card .stock.available {
    background: #d4edda;
    color: #155724;
}

.product-card .stock.unavailable {
    background: #f8d7da;
    color: #721c24;
}

.product-card .stock.repartition {
    background: #fff3cd;
    color: #856404;
}

/* Sections des produits */
.products-header {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.products-header p {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.products-header .filters-applied {
    font-size: 14px;
    color: #27ae60;
    font-style: italic;
    margin-top: 5px;
}

#loading-indicator {
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #3498db;
}

#loading-indicator p {
    margin: 0;
    color: #3498db;
    font-weight: 600;
}

.product-info {
    margin: 15px 0;
}

.product-info p {
    margin: 3px 0;
    font-size: 13px;
    color: #666;
}

.product-pricing {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.product-pricing .price {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    margin: 0;
}

.product-pricing p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.product-status {
    margin: 15px 0;
}

.product-status p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.product-actions .action-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.product-actions .view-btn {
    background: #3498db;
    color: white;
}

.product-actions .view-btn:hover {
    background: #2980b9;
}

.product-actions .cart-btn {
    background: #27ae60;
    color: white;
}

.product-actions .cart-btn:hover {
    background: #229954;
}

/* Style pour centrer le texte */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
    .product-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-blocks {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .summary-blocks {
        grid-template-columns: 1fr;
    }
    
    .product-sections {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .carousel-slides {
        gap: 10px;
    }
    
    .slide {
        flex: 0 0 120px;
        height: 80px;
    }
    
    .orders-table {
        font-size: 12px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px;
    }
}

/* Styles pour le carrousel cliquable */
.banner-carousel {
    cursor: pointer;
}

.banner-carousel .slide {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.banner-carousel .slide:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Effet de défilement avancé */
.carousel-slides {
    will-change: transform;
}

.slide {
    transition: all 0.3s ease;
}

.slide img {
    transition: filter 0.3s ease;
}

.slide:hover img {
    filter: brightness(1.05) contrast(1.02);
}

/* Animation des dots */
.dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.dot:hover {
    transform: scale(1.2);
    background: #d400ff;
}

.dot.active {
    background: #d400ff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(212, 0, 255, 0.3);
}

/* Boutons de navigation du carrousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    font-weight: bold;
    color: #d400ff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: #d400ff;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 0, 255, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-prev {
    transform: translateX(-10px);
    opacity: 0;
}

.carousel-next {
    transform: translateX(10px);
    opacity: 0;
}

.banner-carousel:hover .carousel-prev,
.banner-carousel:hover .carousel-next {
    opacity: 1;
    transform: translateX(0);
}

/* Styles Swiper personnalisés */
.banner-carousel .swiper {
    width: 85%;
    height: 240px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

.banner-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* Boutons de navigation Swiper - Plus discrets */
.banner-carousel .swiper-button-next,
.banner-carousel .swiper-button-prev {
    color: hsl(300, 1%, 17%);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin-top: -17px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    font-size: 16px;
}

.banner-carousel .swiper-button-next:hover,
.banner-carousel .swiper-button-prev:hover {
    background: hsl(300, 1%, 17%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(212, 0, 255, 0.2);
    opacity: 1;
}

/* Masquer les boutons par défaut, les afficher au survol */
.banner-carousel .swiper-button-next,
.banner-carousel .swiper-button-prev {
    opacity: 0;
    transform: scale(0.8);
}

.banner-carousel:hover .swiper-button-next,
.banner-carousel:hover .swiper-button-prev {
    opacity: 0.6;
    transform: scale(1);
}

/* Pagination Swiper - Plus discrète */
.banner-carousel .swiper-pagination {
    bottom: 10px !important;
}

.banner-carousel .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.6;
    width: 8px;
    height: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 3px;
}

.banner-carousel .swiper-pagination-bullet-active {
    background: #d400ff;
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 6px rgba(212, 0, 255, 0.4);
}

/* Styles pour le profil utilisateur */
.user-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 2px;
}

/* Styles pour le menu utilisateur comme dans la capture */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.user-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 20px;
    color: #333;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-details strong {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.user-details small {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* Style pour le bouton de déconnexion avec icône */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333 !important;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.logout-icon {
    font-size: 16px;
    color: #666;
}

.logout-btn:hover {
    color: #000 !important;
}

.logout-btn:hover .logout-icon {
    color: #333;
}

/* Styles pour les statuts des commandes */
.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-livré {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-annulé {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-en-cours {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-en-attente {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Style pour le bouton PDF */
.pdf-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 4px;
    transition: background-color 0.3s;
}

.pdf-btn:hover {
    background: #c82333;
}

/* Styles pour les filtres */
.filters-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.clear-filter-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    line-height: 1;
    transition: color 0.3s ease;
}

.clear-filter-btn:hover {
    color: #666;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    justify-content: flex-end !important;
    width: 100%;
    text-align: right;
}

.filter-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Force l'alignement à droite des boutons de filtre */
.filters-section .filter-actions {
    justify-content: flex-end !important;
    text-align: right !important;
    margin-left: auto;
}

.reset-btn {
    background: white;
    border: 1px solid #ddd;
    color: #666;
}

.reset-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Effet de changement de filtre */
.filter-changed {
    background: #FF9800 !important;
    color: white !important;
    border-color: #F57C00 !important;
}

@keyframes pulse {
    0% { 
        background: #FF9800; 
        transform: scale(1);
    }
    50% { 
        background: #F57C00; 
        transform: scale(1.05);
    }
    100% { 
        background: #FF9800; 
        transform: scale(1);
    }
}

/* Ligne indépendante pour les boutons de filtre */
.filters-actions-row {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.filters-actions-row .filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

/* Réduction de la largeur des filtres de date */
.filter-group input[type="date"] {
    width: 130px;
    max-width: 130px;
}

.filter-group select {
    width: 160px;
    max-width: 160px;
}

/* Ajustement des champs texte pour une ligne */
.filter-group input[type="text"] {
    width: 140px;
    max-width: 140px;
}

/* Responsive pour les filtres sur une ligne */
@media (max-width: 1200px) {
    .filters-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .filters-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .filters-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
