:root {
    --primary-orange: #F57C00;
    --primary-orange-dark: #E65100;
    --primary-orange-light: #FF9800;
    --primary-blue: #1976D2;
    --primary-green: #2E7D32;
    --primary-red: #D32F2F;
    --gray-dark: #1e2a3a;
    --gray-medium: #4a5568;
    --gray-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    background: var(--gray-light);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

/* Style pour le logo (image + texte) */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    background: rgba(255,255,255,0.15);
    border-radius: 60px;
    padding: 4px;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
    color: black;
}

.logo-text p {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 500;
    margin: 0;
    color: black;
}

/* Responsive pour tablette */
@media (max-width: 992px) {
    .logo-img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text p {
        font-size: 0.65rem;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.6rem;
    }
    
    /* Optionnel : réduire l'espacement sur mobile */
    .logo {
        gap: 8px;
    }
}

/* Pour très petits écrans (moins de 480px) */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        display: block;
    }
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.btn-register {
    background: var(--primary-orange);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 30px;
}

.btn-register:hover {
    background: var(--primary-orange-dark);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-orange);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary-orange-light), var(--primary-orange-dark));
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 60px 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.search-track {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-track input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.search-track button {
    padding: 15px 30px;
    background: var(--white);
    color: var(--primary-orange);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--white);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    margin: 0 auto;
    border-radius: 2px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.product-stock {
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.stock-low {
    color: var(--primary-red);
}

.stock-ok {
    color: var(--primary-green);
}

/* Dashboard Cards */
.dashboard-container {
    padding: 100px 0 60px;
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: var(--primary-orange);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(245,124,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--primary-orange);
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray-medium);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h3 {
    font-size: 1.1rem;
}

.card-content {
    padding: 20px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    font-weight: 600;
    background: var(--gray-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-warning {
    background: #fff3e0;
    color: #ff9800;
}

.badge-info {
    background: #e3f2fd;
    color: #2196f3;
}

.badge-primary {
    background: #e8f5e9;
    color: #4caf50;
}

.badge-success {
    background: #e8f5e9;
    color: var(--primary-green);
}

.badge-danger {
    background: #ffebee;
    color: var(--primary-red);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--gray-light), var(--white));
}

.auth-card {
    max-width: 500px;
    width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

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

.auth-header i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-track {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
}


/* ==================== FOOTER STYLES ==================== */

footer {
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a24 100%);
    color: var(--white);
    padding-top: 60px;
    position: relative;
    margin-top: auto;
}

/* Effet de vague en haut du footer */
footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, transparent 50%, var(--gray-light) 50%);
    background-size: 30px 30px;
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Logo du footer */
.footer-logo {
    animation: fadeInUp 0.6s ease;
}

.footer-logo i {
    font-size: 2.2rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo i:hover {
    transform: scale(1.1);
}

.footer-logo h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-logo h3 span {
    color: var(--primary-orange);
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Sections du footer */
.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--primary-orange);
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.footer-links:hover h4::after,
.footer-contact:hover h4::after {
    width: 60px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
}

.footer-links li:nth-child(1) { animation-delay: 0.1s; }
.footer-links li:nth-child(2) { animation-delay: 0.2s; }
.footer-links li:nth-child(3) { animation-delay: 0.3s; }
.footer-links li:nth-child(4) { animation-delay: 0.4s; }

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-links a i {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Contact section */
.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease forwards;
}

.footer-contact p:nth-child(1) { animation-delay: 0.1s; }
.footer-contact p:nth-child(2) { animation-delay: 0.2s; }
.footer-contact p:nth-child(3) { animation-delay: 0.3s; }
.footer-contact p:nth-child(4) { animation-delay: 0.4s; }

.footer-contact p:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-contact i {
    width: 32px;
    height: 32px;
    background: rgba(245, 124, 0, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-contact p:hover i {
    background: var(--primary-orange);
    color: var(--white);
    transform: scale(1.1);
}

/* Social Links */
.social-links {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    margin: 0 8px;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(245, 124, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
}

.footer-payment {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-payment i,
.footer-payment span {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: default;
}

.footer-payment i:hover,
.footer-payment span:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

/* Newsletter Section (optionnel) */
.footer-newsletter {
    margin-top: 20px;
}

.footer-newsletter h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--primary-orange);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-orange);
    border: none;
    border-radius: 50px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.newsletter-form button:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 124, 0, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(245, 124, 0, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    footer {
        padding-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }
    
    .footer-logo i {
        font-size: 2rem;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-contact p:hover {
        transform: translateX(0);
    }
    
    .social-links {
        padding: 20px 0;
    }
    
    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin: 0 6px;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-payment {
        gap: 15px;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 30px;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem;
    }
    
    .footer-logo p {
        font-size: 0.85rem;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1rem;
    }
    
    .footer-links a,
    .footer-contact p {
        font-size: 0.85rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-payment i,
    .footer-payment span {
        font-size: 1.1rem;
    }
}

/* Support pour les écrans très larges */
@media (min-width: 1400px) {
    .footer-content {
        gap: 60px;
    }
}

/* Réduction des animations pour les personnes sensibles */
@media (prefers-reduced-motion: reduce) {
    .footer-links li,
    .footer-contact p,
    .footer-logo,
    .footer-links a i,
    .social-links a::before,
    .back-to-top {
        animation: none;
        transition: none;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .social-links a:hover {
        transform: none;
    }
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 0.9rem;
    font-weight: 500;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--primary-green);
    background: linear-gradient(135deg, white, #f0f9f0);
}

.notification-success i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.notification-error {
    border-left: 4px solid var(--primary-red);
    background: linear-gradient(135deg, white, #fff0f0);
}

.notification-error i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        transform: translateY(100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }


.logo-img {
                height: 45px;
            }
            .logo-text h1 {
                font-size: 1.2rem;
            }
}
