/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.filter-group{
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.filters-container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.filter-select select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.wha {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 15;
}

body {
    color: rgb(16, 141, 72);
    line-height: 1.6;
}

a {
    text-decoration: none;
     color: rgb(16, 141, 72);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: white;
 
    padding: 5px 0;
    font-size: 14px;
    text-align: center;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

/* CSS */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 120px;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 25px;
    font-weight: 900;
     color: rgb(16, 141, 72);
    font-family: Arial Black, Impact, sans-serif;
    letter-spacing: -2px;
    line-height: 1;
}

.logo-sub {
    font-size: 10px;
    font-weight: bold;
     color: rgb(16, 141, 72);
    font-family: Arial Black, Impact, sans-serif;
    text-transform: uppercase;
    align-self: flex-end;
    margin-left: 50px;
    letter-spacing: 2px;
}

.navbar-search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.navbar-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 800;
     color: rgb(16, 141, 72);
    letter-spacing: 0.5px;
    transition: color 0.3s, transform 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #4f9cff;
    transform: translateY(-2px);
}

.cart-icon {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-actions i {
    font-size: 20px;
    cursor: pointer;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 5px 15px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px;
    outline: none;
    width: 200px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: 15px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Bannière principale */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    color: white;
    max-width: 600px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-left: 10%;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.slide-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #000000;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: rgb(16, 141, 72);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slider-dot.active {
    background-color: white;
}

/* Catégories */
.categories {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-img {
    height: 180px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-img i {
    font-size: 60px;
    color: #777;
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Produits */
.products {
    margin: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: rgb(16, 141, 72);
    margin: 10px auto 0;
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 4.2em;
    transition: max-height 0.3s ease;
}

.product-description.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: rgb(16, 141, 72);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 0;
    display: block;
    text-align: left;
    margin-top: 5px;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.read-more-btn i {
    margin-left: 5px;
    font-size: 12px;
}

.product-detail-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-detail-category {
    color: #777;
    font-size: 16px;
    margin-bottom: 15px;
    display: block;
}

.product-detail-price {
    font-size: 28px;
    font-weight: bold;
    color: rgb(16, 141, 72);
    margin-bottom: 20px;
}

.product-detail-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 16px;
}

.product-detail-badge {
    display: inline-block;
    background-color: rgb(16, 141, 72);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    cursor: pointer;
}

.product-image img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgb(16, 141, 72);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: #777;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: rgb(16, 141, 72);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 576px) {
    .gallery-container {
        width: 95%;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .gallery-thumbnails {
        gap: 5px;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 50px;
    }
}

.product-actions {
    display: flex;
    gap: 10px;
}

.add-to-cart {
    flex: 2;
    padding: 12px;
    background-color: rgb(16, 141, 72);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background-color: rgb(16, 141, 72);
}

.buy-now {
    flex: 1;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.buy-now:hover {
    background-color: #555;
}

/* Panier */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-title {
    font-size: 20px;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #777;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: rgb(16, 141, 72);
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 40px;
    height: 30px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
}

.remove-item {
    color: rgb(16, 141, 72);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-btn, .generate-quote {
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.checkout-btn {
    background-color: rgb(16, 141, 72);
    color: white;
}

.checkout-btn:hover {
    background-color: rgb(16, 141, 72);
}

.generate-quote {
    background-color: #333;
    color: white;
}

.generate-quote:hover {
    background-color: #555;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Notification Panier */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background:rgb(16, 141, 72);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1003;
    max-width: 350px;
    display: none;
    animation: slideInRight 0.3s ease-out;
}

.cart-notification.active {
    display: block;
}

.cart-notification-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.cart-notification-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cart-notification-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
}

.cart-notification-btn.whatsapp {
    background: #25D366;
    color: white;
}

.cart-notification-btn.download {
    background: #333;
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Devis */
.quote-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none;
}

.quote-modal.active {
    display: block;
}

.quote-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-title {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
    color: #000000;
}

.quote-logo {
    height: 40px;
    margin-right: 15px;
    vertical-align: middle;
}

.close-quote {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #777;
}

.quote-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.quote-info {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #000000;
    border-radius: 4px;
}

.quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    color: #000000;
}

.quote-table th, .quote-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.quote-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.quote-total {
    text-align: right;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.quote-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.print-quote, .download-quote {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.print-quote {
    background-color: rgb(16, 141, 72);
    color: white;
}

.print-quote:hover {
    background-color: rgb(16, 141, 72);
}

.download-quote {
    background-color: #333;
    color: white;
}

.download-quote:hover {
    background-color: #555;
}

/* Lightbox Gallery avec description - Version améliorée et responsive */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    padding: 10px;
    box-sizing: border-box;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.gallery-content {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

/* Section image */
.gallery-image-section {
    flex: 1.2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    position: relative;
    min-height: 50%;
}

.media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
   
}

.gallery-video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 10px;
    box-sizing: border-box;
}

.gallery-prev, .gallery-next {
    color: #333;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 50%;
    margin: 0 5px;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    z-index: 5;
}

.gallery-prev:hover, .gallery-next:hover {
    background:rgb(16, 141, 72);
    color: white;
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 5px;
    max-width: 100%;
    overflow-x: auto;
}

.gallery-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
    flex-shrink: 0;
}

.video-thumbnail {
    position: relative;
    background-size: cover;
    background-position: center;
}

.video-thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(16, 141, 72);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.media-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background:  rgb(16, 141, 72);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.gallery-thumbnail:hover, .gallery-thumbnail.active {
    opacity: 1;
    border-color:  rgb(16, 141, 72);
    transform: scale(1.05);
}

/* Section détails */
.gallery-details {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: white;
    display: flex;
    flex-direction: column;
}

.gallery-details::-webkit-scrollbar {
    width: 6px;
}

.gallery-details::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-details::-webkit-scrollbar-thumb {
    background:  rgb(16, 141, 72);
    border-radius: 10px;
}

.gallery-details::-webkit-scrollbar-thumb:hover {
    background: rgb(16, 141, 72);
}

.product-detail-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.2;
}

.product-detail-category {
    color: #777;
    font-size: 16px;
    margin-bottom: 15px;
    display: block;
}

.product-detail-price {
    font-size: 28px;
    font-weight: bold;
    color: rgb(16, 141, 72);
    margin-bottom: 20px;
}

.product-detail-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 16px;
    overflow-wrap: break-word;
}

.product-detail-badge {
    display: inline-block;
    background-color:  rgb(16, 141, 72);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    align-self: flex-start;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    flex-wrap: wrap;
}

.gallery-add-cart, .gallery-buy-now {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gallery-add-cart {
    background-color: rgb(16, 141, 72);
    color: white;
}

.gallery-add-cart:hover {
    background-color: rgb(16, 141, 72);
}

.gallery-buy-now {
    background-color: #333;
    color: white;
}

.gallery-buy-now:hover {
    background-color: #555;
}

.gallery-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-close:hover {
    background: rgb(16, 141, 72);
    color: white;
    transform: scale(1.1);
}

/* Media Queries pour la responsivité */
@media (max-width: 1024px) {
    .gallery-container {
        width: 98%;
        height: 85vh;
    }
    
    .gallery-content {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .gallery-image-section {
        flex: none;
        height: 50%;
        min-height: 300px;
        padding: 15px;
    }
    
    .gallery-details {
        flex: none;
        height: auto;
        max-height: 50%;
        padding: 20px;
    }
    
    .gallery-nav {
        padding: 0 5px;
    }
    
    .gallery-prev, .gallery-next {
        padding: 10px 14px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-lightbox {
        padding: 5px;
    }
    
    .gallery-container {
        height: 95vh;
        width: 100%;
        border-radius: 0;
        max-height: none;
    }
    
    .gallery-image-section {
        min-height: 250px;
        padding: 10px;
    }
    
    .gallery-details {
        padding: 15px;
    }
    
    .product-detail-title {
        font-size: 20px;
    }
    
    .product-detail-price {
        font-size: 24px;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .gallery-add-cart, .gallery-buy-now {
        width: 100%;
    }
    
    .gallery-thumbnails {
        gap: 5px;
    }
    
    .gallery-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .gallery-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .cart-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .cart-notification-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gallery-image-section {
        min-height: 200px;
    }
    
    .gallery-details {
        padding: 12px;
    }
    
    .product-detail-title {
        font-size: 18px;
    }
    
    .product-detail-price {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .product-detail-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .gallery-prev, .gallery-next {
        padding: 8px 12px;
        font-size: 18px;
    }
    
    .gallery-thumbnail {
        width: 35px;
        height: 35px;
    }
    
    .gallery-add-cart, .gallery-buy-now {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Support pour les très grands écrans */
@media (min-width: 1600px) {
    .gallery-container {
        max-width: 1400px;
        max-height: 900px;
    }
    
    .gallery-details {
        padding: 35px;
    }
    
    .product-detail-title {
        font-size: 28px;
    }
    
    .product-detail-description {
        font-size: 18px;
    }
}

/* Animation d'ouverture */
@keyframes galleryFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-container {
    animation: galleryFadeIn 0.3s ease-out;
}

/* Support pour le mode paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .gallery-container {
        height: 98vh;
        max-height: none;
    }
    
    .gallery-image-section {
        min-height: 200px;
    }
    
    .gallery-details {
        max-height: 60%;
    }
}

/* Message aucun résultat */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

/* Filtres */
.filters {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: none;
}

/* Styles pour les résultats de recherche */
.search-results {
    padding: 20px 0;
}

.search-section {
    margin-bottom: 30px;
}

.search-section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid  rgb(16, 141, 72);
    padding-bottom: 5px;
}

footer {
    background-color: rgb(34, 34, 34);
    color: rgb(255, 255, 255);
    padding: 60px 0px 20px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 40px;
    gap: 40px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 40px;
    height: 2px;
    background-color:  rgb(16, 141, 72);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgb(153, 153, 153);
    border-top: 1px solid rgb(68, 68, 68);
}

/* Media Queries pour le responsive design */

/* Pour les écrans de 948px et moins */
@media (max-width: 948px) {
    .header-main {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .logo {
        order: 1;
        margin-right: auto;
    }
    
    .hamburger {
        display: flex;
        order: 2;
        margin-left: 15px;
    }
    
    .cart-icon {
        order: 3;
        margin-left: 15px;
    }
    
    .nav-menu {
        order: 4;
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
        gap: 10px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .navbar-search {
        order: 5;
        max-width: 100%;
        margin: 15px 0 0 0;
    }
    
    .slide-content {
        margin-left: 5%;
        padding: 30px;
        max-width: 90%;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
}

/* Pour les écrans de 788px et moins */
@media (max-width: 788px) {
    .header-main {
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-sub {
        font-size: 9px;
        margin-left: 30px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 25px;
    }
    
    .cart-sidebar {
        width: 320px;
    }
}

/* Pour les écrans de 750px et moins */
@media (max-width: 750px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Pour les écrans de 548px et moins */
@media (max-width: 548px) {
    .header-main {
        gap: 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-sub {
        font-size: 8px;
        margin-left: 25px;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .slide-content {
        padding: 15px;
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
    
    .slide-content h2 {
        font-size: 1.4rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .quote-modal {
        width: 95%;
        padding: 10px;
    }
    
    .quote-actions {
        flex-direction: column;
    }
    
    .gallery-thumbnails {
        gap: 5px;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* Pour les écrans de 450px et moins */
@media (max-width: 450px) {
    .hero-slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-footer {
        flex: 1;
        overflow-y: auto;
    }
}

/* Pour les écrans de 448px et moins */
@media (max-width: 448px) {
    .top-bar {
        font-size: 12px;
        padding: 3px 0;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-sub {
        font-size: 7px;
        margin-left: 20px;
        letter-spacing: 1px;
    }
    
    .cart-icon {
        font-size: 20px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
}

/* Pour les écrans de 350px et moins */
@media (max-width: 350px) {
    .hero-slider {
        height: 250px;
    }
    
    .slide-content {
        padding: 10px;
    }
    
    .slide-content h2 {
        font-size: 1.2rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* Pour les écrans de 300px et moins */
@media (max-width: 300px) {
    .logo-text {
        font-size: 16px;
    }
    
    .logo-sub {
        display: none;
    }
    
    .hero-slider {
        height: 200px;
    }
    
    .slide-content h2 {
        font-size: 1.1rem;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 18px;
    }
}

/* Correction pour le panier - permettre le scroll complet */
.cart-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-footer {
    flex-shrink: 0;
}




.protection-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
}

.protection-message {
    background: #ff4444;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255,0,0,0.5);
}

.anti-select {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}