/* --- VARIABLES ET STYLES GÉNÉRAUX --- */
:root {
    --blanc-casse: #fcfbfb;
    --bleu-vif: #0097f0;
    --jaune-dore: #dfb215;
    --rouge-intense: #cd000c;
    --blanc-pur: #fdffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--blanc-casse);
}

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

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



/* Style pour le menu utilisateur */
.user-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
}

.user-menu-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.user-menu-items {
    padding: 10px 0;
}

.user-menu-items a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-menu-items a:hover {
    background: #f8f9fa;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanc-pur);
    margin-top: 70px;
}

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

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

.cta-button {
    display: inline-block;
    background-color: var(--jaune-dore);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0990f;
}

/* --- ABOUT SECTION --- */
.about-section {
    display: flex;
    align-items: center;
    padding: 80px 0;
    background-color: var(--blanc-pur);
}

.about-image {
    flex: 1;
    padding: 20px;
}

.about-image img {
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 1;
    padding: 20px;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--bleu-vif);
}

.about-text {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* --- PRODUCTS SECTION --- */
.featured-section {
    padding: 80px 0;
    background-color: var(--blanc-casse);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--bleu-vif);
}

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

.product-card {
    background-color: var(--blanc-pur);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

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

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

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

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-price {
    font-weight: bold;
    color: var(--bleu-vif);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.add-to-cart {
    background-color: var(--jaune-dore);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #c0990f;
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--blanc-pur);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-form {
    background-color: var(--blanc-casse);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--bleu-vif);
}

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

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--bleu-vif);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0080d0;
}

.contact-info {
    padding: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--bleu-vif);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--bleu-vif);
}

.contact-details h4 {
    margin-bottom: 5px;
    color: #333;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* --- MODALS --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--blanc-pur);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: var(--rouge-intense);
}

.link {
    color: var(--bleu-vif);
    cursor: pointer;
    text-decoration: underline;
}

/* --- ORDER SUCCESS MODAL --- */
.order-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1003;
    align-items: center;
    justify-content: center;
}

.order-success-content {
    background-color: var(--blanc-pur);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.order-success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.order-success-title {
    color: var(--bleu-vif);
    margin-bottom: 15px;
}

.order-success-message {
    margin-bottom: 25px;
    line-height: 1.6;
}

.order-success-btn {
    background-color: var(--jaune-dore);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.order-success-btn:hover {
    background-color: #c0990f;
}

/* --- NOTIFICATION --- */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1004;
    max-width: 350px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.info {
    background-color: var(--bleu-vif);
}

.notification.success {
    background-color: #27ae60;
}

.notification.error {
    background-color: var(--rouge-intense);
}

/* --- FOOTER AMÉLIORÉ --- */
.footer {
    background: linear-gradient(135deg, var(--bleu-vif) 0%, #0066a6 100%);
    color: white;
    padding: 60px 0 25px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--jaune-dore), var(--rouge-intense), var(--bleu-vif));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-description {
    line-height: 1.7;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.footer-heading {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--jaune-dore);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.footer-column:hover .footer-heading::after {
    width: 80px;
}

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

.footer-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(8px);
}

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

.footer-links a:hover {
    color: var(--jaune-dore);
}

.footer-links i {
    margin-right: 12px;
    width: 18px;
    color: var(--jaune-dore);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link::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-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(223, 178, 21, 0.4);
    background: var(--jaune-dore);
}

.footer-bottom {
    text-align: center;
    padding: 30px 0 15px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--jaune-dore), transparent);
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 10px;
    outline: none;
    transition: all 0.3s ease;
}

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

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px var(--jaune-dore);
}

.newsletter-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: var(--jaune-dore);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(223, 178, 21, 0.4);
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.payment-method {
    width: 40px;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        padding: 10px 8px;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .about-section {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--blanc-pur);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
        gap: 0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        justify-content: center;
        padding: 12px;
        font-size: 1.1rem;
    }
    
    .admin-button-right {
        display: none;
    }
    
    .admin-button-mobile {
        display: block !important;
        margin-top: 15px;
        width: 100%;
    }
    
    .admin-button-mobile button {
        width: 100%;
        justify-content: center;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .nav-links i {
        margin-right: 12px;
        width: 20px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 50px 0 20px;
        margin-top: 60px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links li {
        justify-content: center;
    }

    .footer-links li:hover {
        transform: none;
    }
    
    .orders-table {
        font-size: 14px;
    }
    
    .orders-table th, .orders-table td {
        padding: 10px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
    }
    
    .order-item-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .modal-content {
        width: 90%;
        margin: 0 5%;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-logo {
        font-size: 2.2rem;
    }
    
    .footer-heading {
        font-size: 1.2rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-right: 15px;
    }
}

/* Classe utilitaire pour le bouton admin en version mobile */
.admin-button-mobile {
    display: none;
}

/* ... (le reste de votre CSS existant) ... */