:root {
    --primary: #ff6600;
    --secondary: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #dddddd;
    --dark-gray: #666666;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-color: var(--light-gray);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.top-bar {
    background-color: var(--secondary);
    padding: 8px 0;
    color: var(--white);
    font-size: 14px;
    text-align: center;
}

/* Header reorganization for desktop */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    flex: 0 0 auto;
    margin-right: 20px;
}

.logo span {
    color: var(--secondary);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    height: 100%;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
}

.action-item {
    margin-left: 20px;
    text-decoration: none;
    color: var(--secondary);
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -12px;
    right: -12px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 4px;
    box-sizing: border-box;
    font-weight: 600;
}

/* Cart Icon - More visible */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon i {
    font-size: 20px;
    margin-right: 6px;
}

/* Navigation */
nav {
    background-color: var(--primary);
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.main-menu a:hover, .main-menu a[aria-current="page"] {
    background-color: rgba(0,0,0,0.1);
}

/* Correction to ensure menu toggle is hidden on desktop */
nav .container .menu-toggle {
    display: none !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 400px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/panneau-solaire.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: #e05a00;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Featured Products */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--secondary);
}

/* Improved product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: rgba(0,0,0,0);
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 20px 20px 15px;
}

.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.product-card:hover .product-image-container {
    background-color: #f5f5f5;
}

.product-image {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-badge.new {
    background-color: #28a745;
    color: white;
}

.product-badge.sale {
    background-color: #dc3545;
    color: white;
}

.product-badge.bestseller {
    background-color: #007bff;
    color: white;
}

.product-badge.featured {
    background-color: var(--primary);
    color: white;
}

.product-out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.product-out-of-stock-message {
    background-color: #dc3545;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transform: rotate(-10deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}

.product-price-block {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-price-original {
    font-size: 14px;
    color: var(--dark-gray);
    text-decoration: line-through;
}

.product-stock-status {
    font-size: 13px;
    margin-top: 5px;
}

.product-stock-status.in-stock {
    color: #28a745;
}

.product-stock-status.out-of-stock {
    color: #dc3545;
}

.product-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--dark-gray);
}

.product-rating {
    align-items: center;
}

.product-rating .stars {
    color: #ffc107;
    font-size: 12px;
    margin-right: 5px;
}

.product-rating .rating-count {
    color: var(--dark-gray);
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px 20px 20px;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
    transition: background-color 0.3s ease;
}

.product-card:hover .product-card-actions {
    background-color: #f5f5f5;
}

.product-card-actions .btn {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.product-card-actions .btn-sm {
    background-color: #f0f0f0;
    color: var(--secondary);
}

.product-card-actions .btn-sm:hover {
    background-color: #e0e0e0;
    color: var(--secondary);
}

.product-card-actions .btn-add-cart {
    background-color: var(--primary);
    color: white;
}

.product-card-actions .btn-add-cart:hover {
    background-color: #e05900;
    transform: translateY(-2px);
}

.product-card-actions .btn i {
    margin-right: 5px;
}

.product-card-actions .btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* Add to cart animation */
@keyframes cardHover {
    0% {
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        transform: translateY(0);
    }
    100% {
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        transform: translateY(-8px);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-card-link {
        padding: 15px 15px 10px;
    }
    
    .product-image-container {
        height: 160px;
    }
    
    .product-title {
        font-size: 14px;
        min-height: 40px;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-card-actions {
        padding: 10px 15px 15px;
    }
    
    .product-card-actions .btn {
        padding: 6px 8px;
        font-size: 12px;
    }
}

.features {
    background-color: var(--white);
    padding: 60px 0;
    margin: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Applications Section */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.application-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.application-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
};

.application-title {
    font-size: 20px;
    margin: 15px 20px;
    color: var(--secondary);
}

.application-description {
    padding: 0 20px 20px;
    color: var(--dark-gray);
}

/* Testimonials */
.testimonials {
    background-color: var(--light-gray);
    padding: 60px 0;
    margin: 40px 0;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto 30px;
}

.testimonial-slide {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 16px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary);
    text-align: right;
}

/* Blog Preview */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.blog-preview-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.blog-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-preview-content {
    padding: 20px;
}

.blog-preview-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.blog-preview-excerpt {
    color: var (--dark-gray);
    margin-bottom: 15px;
}

.blog-preview-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Newsletter */
.newsletter {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0;
    margin: 40px 0 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.newsletter-description {
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}

.newsletter-privacy {
    font-size: 12px;
    opacity: 0.8;
}

.newsletter-privacy a {
    color: var(--white);
}

/* Product Page */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.product-gallery {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
}

.product-main-image {
    width: 100%;
    margin-bottom: 20px;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.product-thumbnail {
    border: 2px solid transparent;
    cursor: pointer;
}

.product-thumbnail.active {
    border-color: var(--primary);
}

.product-details {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
}

.product-details h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.product-details-price {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.product-options {
    margin-bottom: 30px;
}

.option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.option-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    margin-bottom: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border: 1px solid var(--medium-gray);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 1px solid var(--medium-gray);
    border-left: none;
    border-right: none;
    text-align: center;
}

.product-actions {
    display: flex;
    gap: 15px;
}

.btn-add-to-cart {
    flex: 1;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-to-cart:hover {
    background-color: #e05900;
}

.btn-add-to-cart:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
}

.btn-add-to-cart i {
    margin-right: 8px;
}

.product-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.meta-item {
    margin-bottom: 10px;
}

.meta-label {
    font-weight: 600;
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Styles pour les méthodes de paiement */
.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 25px;
    width: auto;
    /* Suppression du filtre qui rend les images blanches */
    /* filter: brightness(0) invert(1); */
    opacity: 0.9;
    transition: opacity 0.3s;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    background-color: var(--white);
    margin-bottom: 30px;
}

.breadcrumbs-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: var(--dark-gray);
}

.breadcrumbs-link {
    color: var(--dark-gray);
    text-decoration: none;
}

.breadcrumbs-link:hover {
    color: var(--primary);
}

.breadcrumbs-current {
    color: var(--secondary);
    font-weight: 600;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
}

.cookie-content {
    text-align: center;
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-btn.accept {
    background-color: var(--primary);
    color: var(--white);
}

.cookie-btn.decline {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

/* Fixes for index.php */
.no-products {
    grid-column: 1 / -1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

/* Add fixed image heights to ensure consistency */
.product-card img, 
.application-card img, 
.blog-preview-card img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Fix for blog preview titles */
.blog-preview-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary);
    line-height: 1.3;
}


/* Debug border for quick troubleshooting */
.debug-border {
    border: 2px solid red;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: relative;
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
    }
    
    .search-bar {
        width: 100%;
        margin: 15px 0;
    }
    
    .main-menu {
        flex-direction: column;
        display: none;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav .container .menu-toggle {
        display: block !important;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-button {
        border-radius: 4px;
        padding: 12px 0;
    }
    
    .cart-count {
        top: -12px;
        right: -12px;
        min-width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .action-item {
        font-size: 14px;
        margin-left: 15px;
    }
    
    .cart-icon i {
        font-size: 18px;
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification {
    background-color: white;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    animation: slidein 0.3s ease-in-out;
    position: relative;
    transition: opacity 0.3s, transform 0.3s;
}

.notification-success {
    border-left: 4px solid green;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-hide {
    opacity: 0;
    transform: translateX(100%);
}

@keyframes slidein {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Product added to cart animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Product tabs improvement */
.product-tabs {
    margin: 40px 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Improved stock indicators */
.stock-icon.in-stock {
    background-color: #28a745;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.stock-icon.out-of-stock {
    background-color: #dc3545;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.stock-text {
    font-weight: 600;
}

/* Product Card Improvements for Add to Cart */
.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-link {
    flex: 1;
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-actions {
    display: flex;
    justify-content: space-between;
}

.product-card-actions .btn {
    flex: 1;
    text-align: center;
    margin: 0 5px;
}

.product-card-actions .btn-add-cart {
    background-color: var(--primary);
    color: white;
}

.product-card-actions .btn-add-cart:hover {
    background-color: #e05900;
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Category filter styles for produits.php */
.products-filter {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.products-filter-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary);
    font-weight: 600;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--secondary);
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 8px;
}

.filter-checkbox {
    margin-right: 8px;
}

.products-grid-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.products-results {
    flex: 1;
}

.products-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-count {
    font-size: 14px;
    color: var(--dark-gray);
}

.products-sort {
    display: flex;
    align-items: center;
}

.sort-label {
    margin-right: 10px;
    font-size: 14px;
}

.sort-select {
    padding: 8px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .products-grid-container {
        grid-template-columns: 1fr;
    }
    
    .products-filter {
        margin-bottom: 20px;
    }
}

/* Cart Page Styles */
.cart-empty {
    background-color: var(--white);
    padding: 50px 30px;
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.cart-empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.cart-empty h2 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.cart-empty p {
    margin-bottom: 25px;
    color: var(--dark-gray);
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.cart-items {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    text-align: left;
    padding: 15px 10px;
    border-bottom: 2px solid var(--medium-gray);
    color: var(--secondary);
    font-weight: 600;
}

.cart-table td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--medium-gray);
    vertical-align: middle;
}

.cart-product-info {
    display: flex;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 15px;
    background-color: var(--light-gray);
    padding: 5px;
    border-radius: 4px;
}

.cart-product-title {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--secondary);
}

.cart-product-ref {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 3px;
}

.cart-product-variant {
    font-size: 14px;
    color: var(--primary);
}

.cart-price {
    font-weight: 600;
    color: var(--secondary);
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cart-quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid var(--medium-gray);
}

.cart-quantity-decrease,
.cart-quantity-increase {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border: 1px solid var(--medium-gray);
    cursor: pointer;
    user-select: none;
}

.cart-quantity-decrease:hover,
.cart-quantity-increase:hover {
    background-color: var(--medium-gray);
}

.btn-update {
    background-color: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

.cart-total {
    font-weight: 600;
    color: var(--primary);
}

.btn-remove {
    background-color: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-continue-shopping {
    background-color: var(--light-gray);
    color: var(--secondary);
}

.btn-clear-cart {
    background-color: #dc3545;
    color: white;
}

.cart-summary {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 30px;
    align-self: flex-start;
}

.cart-summary h2 {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 15px;
    color: var(--secondary);
}

.cart-totals {
    margin-bottom: 30px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-grand-total {
    font-weight: 700;
    font-size: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
    margin-top: 15px;
}

.cart-free-shipping-message {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-shipping-message {
    background-color: var(--light-gray);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.cart-free-shipping-message,
.cart-shipping-message {
    background-color: var(--light-gray);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.cart-free-shipping-message {
    color: #28a745;
}

.cart-shipping-message {
    border-left: 4px solid var(--primary);
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    text-align: center;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cart-payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.cart-summary-guarantees {
    margin-top: 20px;
}

.cart-guarantee-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.cart-guarantee-item i {
    margin-right: 10px;
    color: var(--primary);
}

/* Responsive Cart */
@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-table {
        display: block;
        overflow-x: auto;
    }
    
    .cart-product-info {
        min-width: 200px;
    }
}

/* Homepage categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
}

.category-title {
    font-size: 20px;
    margin-bottom: 5px;
}

.category-count {
    font-size: 14px;
    opacity: 0.8;
}

/* Product badges */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.new {
    background-color: #28a745;
    color: white;
}

.product-badge.sale {
    background-color: #dc3545;
    color: white;
}

.product-badge.featured {
    background-color: var(--primary);
    color: white;
}

/* Blog preview date */
.blog-preview-date {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.blog-placeholder {
    padding: 50px 30px;
    text-align: center;
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Improved homepage */
.hero-subtitle {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-hero-primary {
    background-color: var(--primary);
    color: white;
    font-size: 18px;
    padding: 14px 32px;
}

.btn-hero-secondary {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    font-size: 18px;
    padding: 14px 32px;
}

.btn-hero-secondary:hover {
    background-color: white;
    color: var(--secondary);
}

/* Highlights Section */
.highlights {
    background-color: var(--secondary);
    color: white;
    padding: 20px 0;
    margin-bottom: 40px;
}

.highlights-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.highlight-icon {
    font-size: 24px;
    margin-right: 10px;
    color: var(--primary);
}

.highlight-text {
    font-size: 16px;
    font-weight: 500;
}

/* Featured Products Section */
.section-featured-products {
    margin-bottom: 60px;
}

.section-featured-products .section-title {
    margin-bottom: 30px;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--light-gray);
    padding: 60px 0;
    margin: 60px 0;
}

.why-choose-us-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.why-choose-us-content h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--secondary);
}

.why-choose-us .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.why-choose-us .feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.why-choose-us .feature-item:hover {
    transform: translateY(-10px);
}

.why-choose-us .feature-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.why-choose-us .feature-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Testimonials Compact */
.testimonials-compact {
    padding: 60px 0;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--secondary);
}

.testimonial-author-job {
    font-size: 14px;
    color: var(--dark-gray);
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary);
    color: white;
    padding: 60px 0;
    margin: 60px 0 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    background-color: white;
    color: var(--primary);
    font-size: 18px;
    padding: 14px 32px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cta:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .highlights-grid {
        flex-direction: column;
    }
    
    .highlight-item {
        padding: 10px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-text {
        font-size: 16px;
    }
}

/* Responsive Navigation Styles */
@media (max-width: 992px) {
    /* Header responsive styling */
    .header-main {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .logo {
        order: 1;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .header-actions {
        order: 2;
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 5px;
    }
    
    /* Navigation mobile styles */
    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        flex-direction: column;
        display: none;
        margin: 0;
        padding: 0;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .main-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-menu li:last-child {
        border-bottom: none;
    }
    
    .main-menu a {
        padding: 15px 20px;
        width: 100%;
    }
    
    /* Product grid responsive */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    /* Make images responsive */
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    /* Improved hero section responsive */
    .hero {
        height: auto !important;
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Highlights section responsive */
    .highlights-grid {
        flex-direction: column;
    }
    
    .highlight-item {
        margin-bottom: 10px;
        justify-content: center;
    }
    
    /* Features grid responsive */
    .features-grid, .why-choose-us .features-grid, .applications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Testimonials responsive */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter form responsive */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-button {
        width: 100%;
        border-radius: 4px;
    }
    
    /* Product page responsive */
    .product-container {
        grid-template-columns: 1fr;
    }
    
    /* Cart page responsive */
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        overflow-x: auto;
        display: block;
    }
    
    .cart-table th, .cart-table td {
        padding: 10px 5px;
    }
    
    .cart-product-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-product-image {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* CTA Banner responsive */
    .cta-banner {
        padding: 40px 0;
    }
    
    .cta-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    /* Smaller screens optimization */
    .container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .header-actions {
        font-size: 14px;
    }
    
    .action-item {
        margin-left: 10px;
    }
    
    .breadcrumbs {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    /* Adjust product grid for very small screens */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    /* Adjust grid layouts for mobile */
    .application-card, .blog-preview-card {
        max-width: 100%;
    }
    
    .blog-preview-grid, .applications-grid {
        grid-template-columns: 1fr;
    }
    
    /* Better notification display on mobile */
    .notification-container {
        width: 100%;
        max-width: 100%;
        right: 0;
        left: 0;
        top: 10px;
        color: green;
    }
    
    .notification {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Admin Access Panel on Account Page */
.admin-access-panel {
    background: linear-gradient(135deg, #333333, #555555);
    color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-wrap: wrap;
}

.admin-access-content {
    flex: 1;
    min-width: 300px;
    padding: 25px;
}

.admin-access-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.admin-access-content h2 i {
    margin-right: 10px;
    color: var(--primary);
}

.admin-access-content p {
    margin-bottom: 20px;
    font-size: 16px;
    opacity: 0.9;
}

.admin-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-admin {
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.btn-admin i {
    margin-right: 8px;
}

.btn-admin:hover {
    background-color: #e05900;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.admin-access-stats {
    background-color: rgba(0,0,0,0.2);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    min-width: 150px;
}

.admin-stat-item {
    text-align: center;
}

.admin-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.admin-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Account Page Styles */
.account-section {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.account-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--secondary);
}

.account-content {
    padding: 25px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
}

.info-label {
    width: 160px;
    font-weight: 600;
    color: var(--secondary);
}

.info-value {
    flex: 1;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.orders-table th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--secondary);
}

.order-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.tva-note {
    display: inline-block;
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-left: 5px;
    margin-top: -10px;
    margin-bottom: 8px;
    font-weight: normal;
}

.status-pending {
    color: #856404;
}

.status-processing {
    color: #004085;
}

.status-shipped {
    color: #155724;
}

.status-delivered {
    color: #155724;
}

.status-canceled {
    background-color: #f5c6cb;
    color: #721c24;
}

.btn-view-order {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.btn-edit,
.btn-add {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-edit i,
.btn-add i {
    margin-right: 8px;
}

.btn-edit:hover,
.btn-add:hover {
    background-color: var(--primary);
    color: white;
}

.no-orders {
    text-align: center;
    padding: 30px 0;
}

.no-orders p {
    margin-bottom: 20px;
    color: var (--dark-gray);
}

/* Responsive account page */
@media (max-width: 768px) {
    .admin-access-panel {
        flex-direction: column;
    }
    
    .admin-access-stats {
        flex-direction: row;
    }
    
    .account-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .account-header h2 {
        margin-bottom: 15px;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .orders-table {
        display: block;
        overflow-x: auto;
    }
}

/* Styles pour la page de checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin: 30px 0;
}

.checkout-section {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.checkout-section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

/* Form styles */
.error {
    border-color: #dc3545 !important;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive checkout page */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkout-terms {
        font-size: 12px;
    }
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: -350px;
    width: 320px;
    background-color: white;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    display: flex;
    z-index: 1000;
    transition: right 0.3s ease-in-out;
}



.cart-notification.visible {
    right: 20px;
}

.cart-notification-icon {
    margin-right: 15px;
    font-size: 24px;
    color: #28a745; /* Keep green for notification icon only */
}

.cart-notification-content {
    flex: 1;
}

.cart-notification-content h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 16px;
}

.cart-notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cart-notification-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
    text-align: center;
    flex: 1;
}

.cart-notification-btn:hover {
    background-color: #e0e0e0;
}

.cart-notification-btn.checkout {
    background-color: #28a745; /* Keep green for checkout button in notification */
    color: white;
}

.cart-notification-btn.checkout:hover {
    background-color: #218838; /* Darker green for hover */
}

.cart-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
}

.cart-notification-close:hover {
    color: #333;
}

/* WhatsApp Contact Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.whatsapp-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 1.5s infinite;
    text-decoration: none;
}

.whatsapp-button a:hover {
    background-color: #20BA5C;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-button i {
    font-size: 32px;
}

/* Pulsing animation for increased visibility */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button i {
        font-size: 28px;
    }
}

/* Badge de support ultra-réactif */
.support-badge {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    background-color: white;
    color: var(--secondary);
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    max-width: 220px;
    transform: translateY(20px);
    opacity: 0;
    animation: badge-slide-in 0.5s forwards 1s, pulse-badge 2s infinite 1.5s;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--light-gray);
}

.support-badge:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.support-badge-icon {
    background-color: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
}

.support-badge-text span {
    color: var(--primary);
    font-weight: 700;
}

.support-badge:hover .support-badge-text span {
    color: white;
}

.support-badge-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.support-badge:hover .support-badge-close {
    opacity: 1;
    transform: scale(1);
}

@keyframes badge-slide-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive support badge */
@media (max-width: 576px) {
    .support-badge {
        bottom: 80px;
        right: 15px;
        padding: 8px 12px;
        font-size: 12px;
        max-width: 180px;
    }
    
    .support-badge-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 8px;
    }
}


/* Mobile notification badges for wishlist and cart */
@media (max-width: 768px) {
    .header-actions .action-item {
        position: relative;
    }
    
    .header-actions .wishlist-count,
    .header-actions .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: var(--primary);
        color: white;
        font-size: 10px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
    
    /* Make sure the icons are visible and positioned correctly */
    .header-actions .action-item i {
        position: relative;
    }
    
    /* Increase touch target size for better mobile usability */
    .header-actions .action-item {
        padding: 10px;
        min-width: 40px;
        display: flex;
        justify-content: center;
    }
}

/* For main menu with dashboard option */
@media (max-width: 768px) {
    .main-menu .dashboard-link {
        display: flex;
        align-items: center;
        background-color: rgba(255, 102, 0, 0.1);
        border-radius: 4px;
        margin-bottom: 5px;
    }
    
    .main-menu .dashboard-link i {
        margin-right: 10px;
    }
    
    .main-menu .dashboard-link.logged-in {
        background-color: rgba(40, 167, 69, 0.1);
    }
    
    .main-menu .user-name-display {
        
        font-weight: bold;
        font-size: 0.9em;
        display: block;
        color: #ffb380;
        padding-left: 10px;
    
    }
}

/* User account display styles for responsive design */
.desktop-account-label {
    display: inline;
}

.mobile-account-label {
    display: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .desktop-account-label {
        display: none;
    }
    
    .mobile-account-label {
        display: inline-block;
        text-align: left;
        line-height: 1.4; /* Add spacing between lines */
    }
    
    .mobile-account-title {
        display: block;
        font-size: 14px;
    }
    
    .mobile-account-name {
        display: block;
        font-size: 13px;
        opacity: 0.85;
    }
}

.admin-impersonation-banner {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.admin-impersonation-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.impersonation-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.impersonation-info i {
    font-size: 18px;
}

.stop-impersonation-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stop-impersonation-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

/* Adjust body padding when impersonation banner is shown */
body.has-impersonation-banner {
    padding-top: 50px;
}

.user-action-btn.impersonate {
    background-color: #ff6b35;
    color: white;
}

.user-action-btn.impersonate:hover {
    background-color: #e55a2b;
}

/* Google Translate Widget Styling */
.translate-widget {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.translate-widget i {
    color: #666;
    font-size: 16px;
}

#google_translate_element {
    position: relative;
}

/* Hide Google Translate branding and adjust styling */
.goog-te-gadget {
    font-family: inherit !important;
    font-size: 0 !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #666 !important;
    text-decoration: none !important;
}

.goog-te-gadget-simple:hover {
    text-decoration: underline !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #666 !important;
    font-size: 12px !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: #666 !important;
}

.goog-te-gadget-simple .goog-te-menu-value:before {
    content: "";
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .translate-widget {
        padding: 10px;
        min-width: 40px;
        justify-content: center;
    }
    
    .translate-widget i {
        display: none;
    }
    
    #google_translate_element {
        font-size: 11px;
    }
}

/* Hide Google Translate banner */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Mobile adjustments for translate widget */
@media (max-width: 768px) {
    .translate-widget {
        padding: 10px;
        min-width: 40px;
        justify-content: center;
    }
    
    .translate-widget i {
        display: none;
    }
    
    #google_translate_element {
        font-size: 11px;
    }
}

/* Hide Google Translate banner */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.language-dropdown {
    position: relative;
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    text-decoration: none;
}

/* SVG flag styling */
.language-flag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 15px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.language-flag svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.language-text {
    font-weight: 500;
    white-space: nowrap;
    vertical-align: middle;
    font-family: 'Roboto', sans-serif !important;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-item:last-child {
    border-bottom: none;
}

.language-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.language-item.active {
    background-color: var(--primary);
    color: white;
}

.language-item.active:hover {
    background-color: var(--primary);
    color: white;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 5px;
    }
    
    .language-trigger {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .language-text {
        display: none;
    }
}

/* Enhanced contact page styles */
.contact-container {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 30px;
        margin: 30px 0 50px;
    }
    
    .contact-info, .contact-form-container {
        height: 100%;
    }
    
    .contact-card, .contact-form-card {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        height: 100%;
    }
    
    .contact-card {
        display: flex;
        flex-direction: column;
    }
    
    .contact-card-header {
        padding: 25px;
        background-color: var(--primary);
        color: white;
        border-radius: 8px 8px 0 0;
    }
    
    .contact-card-header h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .contact-card-body {
        padding: 25px;
        flex: 1;
    }
    
    .contact-item {
        display: flex;
        margin-bottom: 25px;
    }
    
    .contact-icon {
        flex: 0 0 40px;
        height: 40px;
        background-color: var(--light-gray);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 18px;
        margin-right: 15px;
    }
    
    .contact-text h4 {
        font-size: 18px;
        margin-bottom: 5px;
        color: var(--secondary);
    }
    
    .contact-text p {
        margin: 0;
        color: var(--dark-gray);
        line-height: 1.4;
    }
    
    .contact-text a {
        text-decoration: none;
    }
    
    .contact-text a:hover {
        text-decoration: underline;
    }
    
    .contact-note {
        font-size: 14px;
        margin-top: 5px !important;
        color: var(--dark-gray);
    }
    
    .contact-card-footer {
        padding: 20px 25px;
        background-color: var(--light-gray);
        border-radius: 0 0 8px 8px;
    }
    
    .contact-card-footer h4 {
        font-size: 18px;
        margin-bottom: 15px;
        color: var(--secondary);
    }
    
    .contact-social {
        display: flex;
        gap: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        transition: all 0.3s;
    }
    
    .social-link.facebook {
        background-color: #3b5998;
        text-decoration: none;
    }
    
    .social-link.instagram {
        background-color: #e1306c;
    }
    
    .social-link.youtube {
        background-color: #ff0000;
    }
    
    .social-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .contact-form-card {
        padding: 30px;
    }
    
    .contact-form-card h3 {
        font-size: 22px;
        margin-bottom: 25px;
        color: var(--secondary);
    }
    
    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .form-group {
        display: flex;
        flex-direction: column;
    }
    
    .form-group label {
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--secondary);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        border: 1px solid var(--medium-gray);
        border-radius: 4px;
        font-size: 16px;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
    }
    
    .checkbox-container {
        display: flex;
        align-items: flex-start;
        position: relative;
        padding-left: 30px;
        cursor: pointer;
        font-size: 15px;
        user-select: none;
        line-height: 1.4;
    }
    
    /* Ajout d'un style spécifique pour garantir l'espacement correct */
    .checkbox-container a {
        color: var(--primary);
        text-decoration: none;
        margin-left: 4px; /* Assure un espace avant le lien */
    }
    
    .checkbox-container a::before {
        content: " "; /* Ajoute un espace avant le lien */
        white-space: pre; /* Préserve l'espace */
    }
    
    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }
    
    .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 20px;
        width: 20px;
        background-color: var(--light-gray);
        border: 1px solid var(--medium-gray);
        border-radius: 3px;
    }
    
    .checkbox-container:hover input ~ .checkmark {
        background-color: #ccc;
    }
    
    .checkbox-container input:checked ~ .checkmark {
        background-color: var(--primary);
        border-color: var(--primary);
    }
    
    .checkmark:after {
        content: "";
        position: absolute;
        display: none;
    }
    
    .checkbox-container input:checked ~ .checkmark:after {
        display: block;
    }
    
    .checkbox-container .checkmark:after {
        left: 7px;
        top: 3px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
    
    .checkbox-container a {
        color: var(--primary);
        text-decoration: none;
    }
    
    .checkbox-container a:hover {
        text-decoration: underline;
    }
    
    .form-note {
        font-size: 14px;
        color: var(--dark-gray);
        margin-top: 10px;
    }
    
    .website-field {
        display: none !important;
    }
    
    .alert {
        padding: 15px;
        border-radius: 4px;
        margin-bottom: 20px;
    }
    
    .alert-success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
    
    .alert-error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
    
    .map-section, .faq-preview {
        margin: 50px 0;
    }
    
    .map-section h3, .faq-preview h3 {
        font-size: 24px;
        margin-bottom: 20px;
        color: var(--secondary);
    }
    
    .map-container {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    .faq-items {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .faq-item {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    .faq-question {
        padding: 20px;
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: var(--secondary);
        background-color: var(--light-gray);
        position: relative;
        cursor: pointer;
    }
    
    .faq-question::after {
        content: "+";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: var(--primary);
    }
    
    .faq-answer {
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .faq-item.active .faq-question::after {
        content: "-";
    }
    
    .faq-item.active .faq-answer {
        padding: 20px;
        max-height: 200px;
    }
    
    .faq-more {
        text-align: center;
    }
    
    /* WhatsApp specific styles */
    .whatsapp-icon {
        background-color: #25D366 !important;
        color: white !important;
    }
    
    .btn-whatsapp {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background-color: #25D366;
        color: white;
        padding: 8px 16px;
        border-radius: 4px;
        margin-top: 10px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s;
    }
    
    .btn-whatsapp:hover {
        background-color: #20ba5c;
        transform: translateY(-2px);
    }
    
    .social-link.whatsapp {
        background-color: #25D366;
        text-decoration: none;
    }
    
    .whatsapp-contact-banner {
        background-color: #f0f8f1;
        border-radius: 8px;
        margin: 40px 0;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    .whatsapp-banner-content {
        display: flex;
        align-items: center;
        padding: 30px;
    }
    
    .whatsapp-banner-icon {
        flex: 0 0 60px;
        width: 60px; /* Add explicit width to match height */
        height: 60px;
        background-color: #25D366;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 30px;
        margin-right: 20px;
    }
    
    .whatsapp-banner-text {
        flex: 1;
    }
    
    .whatsapp-banner-text h3 {
        font-size: 22px;
        margin-bottom: 5px;
        color: var(--secondary);
    }
    
    .whatsapp-banner-text p {
        margin: 0;
        color: var(--dark-gray);
    }
    
    .btn-whatsapp-large {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background-color: #25D366;
        color: white;
        padding: 12px 24px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s;
    }
    
    .btn-whatsapp-large:hover {
        background-color: #20ba5c;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }
    
    @media (max-width: 992px) {
        .contact-container {
            grid-template-columns: 1fr;
        }
        
        .whatsapp-banner-content {
            flex-direction: column;
            text-align: center;
            padding: 20px;
        }
        
        .whatsapp-banner-icon {
            margin-right: 0;
            margin-bottom: 15px;
            flex: 0 0 60px;
            min-width: 60px; /* Ensure minimum width */
            min-height: 60px; /* Ensure minimum height */
        }
        
        .whatsapp-banner-text {
            margin-bottom: 15px;
        }
    }
    
    @media (max-width: 768px) {
        .form-row {
            grid-template-columns: 1fr;
            gap: 15px;
        }
    }
    
    /* Enhanced WhatsApp styles */
    .highlight-contact {
        background-color: #f0f8f1;
        border-left: 4px solid #25D366;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 30px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    }
    
    .highlight-contact .contact-text h4 {
        color: #075E54;
        font-weight: 600;
    }
