/* ============================================
   VARIABLES DE COULEURS - CHARTE GRAPHIQUE
   ============================================ */
:root {
    /* Couleurs Principales - Charte */
    --color-blue-primary: #1e3a8a;
    --color-blue-secondary: #1e40af;
    --color-blue-accent: #3b82f6;
    
    /* Variations de bleu */
    --color-blue-900: #1e3a8a;
    --color-blue-800: #1e40af;
    --color-blue-700: #2563eb;
    --color-blue-600: #3b82f6;
    --color-blue-500: #60a5fa;
    --color-blue-400: #93c5fd;
    --color-blue-100: #dbeafe;
    --color-blue-50: #eff6ff;
    
    /* Couleurs neutres */
    --color-white: #ffffff;
    --color-gray-900: #111827;
    --color-gray-800: #1f2937;
    --color-gray-700: #374151;
    --color-gray-600: #4b5563;
    --color-gray-500: #6b7280;
    --color-gray-400: #9ca3af;
    --color-gray-300: #d1d5db;
    --color-gray-200: #e5e7eb;
    --color-gray-100: #f3f4f6;
    --color-gray-50: #f9fafb;
    
    /* Couleurs d'accent supplémentaires */
    --color-yellow-400: #facc15;
    --color-yellow-500: #eab308;
    --color-green-100: #dcfce7;
    --color-green-600: #059669;
    --color-purple-100: #ede9fe;
    --color-purple-600: #9333ea;
    --color-red-600: #dc2626;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

/* Styles pour les variantes de produits */
.color-options-row {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.color-option.active {
    border-color: #1e3a8a;
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(30, 58, 138, 0.3);
}

.color-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

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

/* ============================================
   LAYOUT PRINCIPAL - RESPONSIVE
   ============================================ */
.main-content-container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .main-content-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .main-content-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .main-content-container {
        padding: 0 10px;
    }
}





.btn-primary {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: scale(1.05);
}

.banner-image img {
    max-width: 400px;
    position: relative;
    right: 10%;
    border-radius: 5%;
    box-shadow: 8px 8px 8px 8px rgba(0, 0, 0, 0.2);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.5);
    transition: all 0.5s ease;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #3d82f6 0%, #1e40af 100%);
    padding: 0px 0px;
    display: flex;
    position: relative;
    margin: 100px auto;
    max-height: 450px;
    max-width: 1200px;
    border-radius: 20px;
}

.hero-banner input[type="radio"] {
    display: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 600%;             /* 6 fois 100% */
    height: 100%;
    position: relative;
    transition: all 0.5s ease;
}

.slide {
    width: 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    position: relative;
}

#slide4clone:checked ~ .carousel-container .slides {
    transform: translateX(0);
}

#slide1:checked ~ .carousel-container .slides {
    transform: translateX(-16.67%);
}

#slide2:checked ~ .carousel-container .slides {
    transform: translateX(-33.33%);
}

#slide3:checked ~ .carousel-container .slides {
    transform: translateX(-50%);
}

#slide4:checked ~ .carousel-container .slides {
    transform: translateX(-66.67%);
}

#slide1clone:checked ~ .carousel-container .slides {
    transform: translateX(-83.33%);
}

.banner-content {
    position: relative;
    left: 5%;
}

.banner-content h1 {
    color: white;
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: #1e3a8a 2px 2px 2px;
}

.banner-content h1:hover {
    transform: translateY(-5%);
}
.left-arrow {
    cursor: pointer;
    position: absolute;
    font-size: 35px;
    top: 50%;
    left: 1%;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
}

.left-arrow:hover {
    transform: translateX(-5px);
}

.right-arrow {
    cursor: pointer;
    position: absolute;
    font-size: 35px;
    top: 50%;
    right: 1%;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
}

.right-arrow:hover {
    transform: translateX(5px);
}

#slide4clone:checked ~ .carousel-container .slides .slide .right-arrow[for="slide1"],
#slide4clone:checked ~ .carousel-container .slides .slide .left-arrow[for="slide3"] {
    display: flex;
}

#slide1:checked ~ .carousel-container .slides .slide .right-arrow[for="slide2"],
#slide1:checked ~ .carousel-container .slides .slide .left-arrow[for="slide4clone"] {
    display: flex;
}

#slide2:checked ~ .carousel-container .slides .slide .right-arrow[for="slide3"],
#slide2:checked ~ .carousel-container .slides .slide .left-arrow[for="slide1"] {
    display: flex;
}

#slide3:checked ~ .carousel-container .slides .slide .right-arrow[for="slide4"],
#slide3:checked ~ .carousel-container .slides .slide .left-arrow[for="slide2"] {
    display: flex;
}

#slide4:checked ~ .carousel-container .slides .slide .right-arrow[for="slide1clone"],
#slide4:checked ~ .carousel-container .slides .slide .left-arrow[for="slide3"] {
    display: flex;
}

#slide1clone:checked ~ .carousel-container .slides .slide .right-arrow[for="slide2"],
#slide1clone:checked ~ .carousel-container .slides .slide .left-arrow[for="slide4"] {
    display: flex;
}
@media screen and (max-width: 600px) {


    .banner-content h1 {
        font-size: 20px;
        line-height: 1.4;
    }

    .banner-image img {
        max-width: 200px;
    }
    .container {
        padding: 0 10px;
    }

    .hero-banner {
        max-width: 95%;
        margin: 15px auto;
        padding: 15px 8px;
        border-radius: 10px;
    }

    .slide {
        padding: 10px;
    }
    .left-arrow,
    .right-arrow {
        font-size: 25px;
    }

    .banner-dots {
        bottom: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    #slide1:checked ~ .banner-dots label[for="slide1"],
    #slide2:checked ~ .banner-dots label[for="slide2"],
    #slide3:checked ~ .banner-dots label[for="slide3"],
    #slide4:checked ~ .banner-dots label[for="slide4"] {
        width: 30px;
    }
}
/* ============================================
   BARRE DE FILTRES
   ============================================ */
.product-filters-bar {
    display: flex;
    gap: 0.85rem;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 10px 0 20px 0;
    margin-bottom: 30px;
    justify-content: center;
    overflow: visible;
    position: relative;
  
}


.filter-all-button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #1e40af;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
    flex-shrink: 0;
}

.filter-all-button:hover {
    background-color: #1e3a8a;
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
    transform: translateY(-1px);
}

.primary-filter {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #1e40af;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
    flex-shrink: 0;
}

.primary-filter:hover {
    background-color: #1e3a8a;
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
    transform: translateY(-1px);
}

.icon-margin-right {
    margin-right: 0.5rem;
}

.tag-buttons-group {
    display: flex;
    gap: 0.85rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 250px;
    margin-bottom: -220px;
    padding-top: 10px;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
    position: relative;
   
}

.tag-buttons-group::-webkit-scrollbar {
    display: none;
}

.tag-button {
    flex-shrink: 0;
}

/* ============================================
   DROPDOWN FILTERS
   ============================================ */
.product-filter-item {
    position: relative;
    display: inline-block;
 
    flex-shrink: 0;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
   
}

.filter-checkbox,
.filter-radio-input {
    display: none;
}

.tag-button,
.filter-button-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.tag-button:hover,
.filter-button-label:hover {
    background-color: #f9fafb;
    border-color: #3b82f6;
    color: #1e40af;
    transform: translateY(-1px);
}

.tag-button.selected-tag {
    background-color: var(--color-blue-secondary);
    border-color: var(--color-blue-secondary);
    color: var(--color-white);
}

.filter-arrow-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.filter-checkbox:checked + .tag-button,
.filter-radio-input:checked + .filter-button-label .filter-arrow-icon {
    transform: rotate(180deg);
}

.filter-checkbox:checked + .tag-button,
.filter-radio-input:checked + .filter-button-label {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-checkbox:checked + .tag-button.selected-tag,
.filter-radio-input:checked + .filter-button-label.selected-tag {
    background-color: var(--color-blue-secondary);
    color: var(--color-white);
}
.filter-options-list {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background-color: white;
    min-width: 220px;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    max-height: 200px;
    overflow-x: visible;
    overflow-y: auto;
}

.filter-checkbox:checked ~ .dropdown-content,
.filter-radio-input:checked ~ .filter-options-list {
    display: block;
    animation: filterFadeIn 0.3s ease;
}

.filter-dropdown:focus-within .dropdown-content,
.product-filter-item:focus-within .filter-options-list {
    display: block;
    animation: filterFadeIn 0.25s ease;
}

@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a,
.filter-options-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    height: 40px;
    background-color: white;
    position: relative;
    z-index: 10001;
}

.dropdown-content a:hover,
.filter-options-list a:hover {
    background-color: #eff6ff;
    color: #1e3a8a;
    border-left-color: #1e40af;
    padding-left: 1.25rem;
}

.dropdown-content a i,
.filter-options-list a i {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dropdown-content a:not(:last-child),
.filter-options-list a:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}


/* ============================================
   SECTION PRODUITS
   ============================================ */
.products {
    padding: 40px 0;
}

.products h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

.products-section {
    margin-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    color: var(--color-gray-500);
    margin-bottom: 2.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gradient-blue-purple {
    background: linear-gradient(135deg, var(--color-blue-secondary), var(--color-purple-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   GRILLE PRODUITS - RESPONSIVE
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* ============================================
   CARD PRODUIT
   ============================================ */
.product-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.1s;
    animation: fadeIn 0.5s ease;
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.product-frame {
    overflow: hidden;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    border: 2px solid #f5f5f5;
}

.product-image-wrapper {
    overflow: hidden;
    width: 100%;
    height: 200px;
    background-color: var(--color-white);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.product-image:hover {
    transform: scale(1.2);
    filter: grayscale(20%);
}

.product-info {
    padding: 0;
    text-align: left;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.product-title-card {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.product-rating {
    color: #FFD700;
    margin-bottom: 15px;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars-list {
    display: flex;
    gap: 0.25rem;
    color: #FFD700;
    font-size: 0.875rem;
}

.rating-text {
    color: var(--color-gray-500);
    font-size: 0.75rem;
}

.price-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.btn-outline {
    padding: 15px;
    background: white;
    border: 2px solid #1e3a8a;
    border-radius: 50%;
    cursor: pointer;
    color: #1e3a8a;
    font-weight: 600;
}

.btn-outline:hover {
    background: #1e3a8a;
    color: white;
}

.add-to-cart-btn {
    padding: 15px;
    background: white;
    border: 2px solid #1e3a8a;
    border-radius: 50%;
    cursor: pointer;
    color: #1e3a8a;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #1e3a8a;
    color: white;
}

.product-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.25rem;
    color: var(--color-white);
    z-index: 10;
}

.tag-best-seller {
    background-color: var(--color-green-600);
}

.tag-new {
    background-color: var(--color-purple-600);
}

.tag-premium {
    background: linear-gradient(135deg, var(--color-blue-secondary), var(--color-purple-600));
}

.tag-promo {
    background-color: var(--color-red-600);
}

.tag-right {
    left: auto;
    right: 0.75rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn, .page-num {
    padding: 8px 15px;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:disabled, .page-num:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    padding: 8px 15px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 5px;
}

.page-btn:hover, .page-num:hover {
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    background: #3d82f6;
}

.page-num-active {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

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

.thick-line {
    background: #1e3a8a;
    width: 40%;
    height: 5px;
    margin: 20px;
}

.thin-line {
    background: #1e3a8a;
    width: 60%;
    height: 1px;
    margin: 20px;
}

/* ============================================
   PAGE DÉTAILS PRODUIT
   ============================================ */
.product-detail-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 700px;
}

.product-detail-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 100px;
}

@media (min-width: 992px) {
    .product-detail-flex {
        flex-direction: row;
    }
    
    .product-detail-left {
        width: 45%;
    }
    
    .product-detail-right {
        width: 55%;
    }
}

.product-detail-left,
.product-detail-right {
    width: 100%;
}

.image-gallery-box {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-base);
    margin-bottom: 1.5rem;
}

.main-product-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-50);
    border: 2px solid var(--color-gray-200);
}

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

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

.thumbnail-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 5rem;
    height: 5rem;
    border: 2px solid var(--color-gray-300);
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--color-gray-50);
}

.thumbnail:hover {
    border-color: var(--color-blue-accent);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--color-blue-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-box {
    background-color: var(--color-white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-base);
    margin-bottom: 1.5rem;
}

.new-tag-wrapper {
    margin-bottom: 1rem;
}

.new-tag {
    display: inline-block;
    background-color: var(--color-blue-100);
    color: var(--color-blue-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-detail-flex .product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.product-subtitle {
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.price-info {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.main-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-blue-primary);
    display: inline-block;
}

.tax-info {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-left: 0.5rem;
    font-weight: 500;
}

.color-selection-area {
    margin-bottom: 2rem;
}

.color-selection-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.color-options-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.color-option {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 3px solid var(--color-gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-option.active {
    border-color: var(--color-blue-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
    transform: scale(1.15);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.selected-color-text {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    display: block;
}

.selected-color-text #selected-color {
    font-weight: 600;
    color: var(--color-gray-900);
}

.quantity-cart-area {
    margin-bottom: 2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

.quantity-buttons-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--color-white);
}

.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-700);
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.quantity-btn:hover {
    background-color: var(--color-blue-50);
    color: var(--color-blue-primary);
}

.quantity-btn:active {
    background-color: var(--color-blue-100);
}

.quantity-buttons-wrapper button:first-child {
    border-right: 1px solid var(--color-gray-300);
}

.quantity-buttons-wrapper button:last-child {
    border-left: 1px solid var(--color-gray-300);
}

.quantity-display {
    min-width: 3rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-gray-900);
    padding: 0 0.5rem;
}

.action-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .action-buttons-row {
        flex-direction: row;
    }
}

.action-buttons-row button {
    flex: 1;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.9375rem;
}

.btn-buy {
    background-color: var(--color-white);
    border-color: var(--color-blue-primary);
    color: var(--color-blue-primary);
}

.btn-buy:hover {
    background-color: var(--color-blue-50);
    border-color: var(--color-blue-secondary);
    color: var(--color-blue-secondary);
    transform: translateY(-2px);
}

.btn-buy:active {
    background-color: var(--color-blue-100);
    transform: translateY(0);
}

.btn-add {
    background-color: var(--color-blue-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-add:hover {
    background-color: var(--color-blue-secondary);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
    transform: translateY(-2px);
}

.btn-add:active {
    transform: translateY(0);
}

.icon-margin {
    margin-right: 0.5rem;
}

/* ============================================
   BARRES DE PROGRESSION / PAGINATION
   ============================================ */

.progress-bar-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.75rem;
}

.progress-bar-row hr {
    height: 0.25rem;
    border: 0;
    border-radius: 9999px;
}

.progress-bar-segment-1 {
    width: 33.333333%;
    max-width: 24rem;
    background-color: var(--color-blue-900);
}

.progress-bar-segment-2 {
    width: 25%;
    max-width: 20rem;
    background-color: var(--color-gray-300);
}

.progress-bar-segment-3 {
    width: 16.666667%;
    max-width: 6.25rem;
    background-color: var(--color-gray-300);
}

/* ============================================
   RESPONSIVE - HERO BANNER
   ============================================ */

@media screen and (max-width: 1200px) {
    .hero-banner {
        max-width: 1000px;
    }
}

@media screen and (max-width: 1024px) {
    .hero-banner {
        max-width: 900px;
        padding: 40px 20px;
    }

    .banner-image img {
        max-width: 300px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .hero-banner {
        max-width: 750px;
    }

    .slide {
        padding: 30px 40px;
    }
}

@media screen and (max-width: 768px) {
    .hero-banner {
        max-width: 95%;
        padding: 30px 15px;
    }

    .slide {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

 

    .left-arrow,
    .right-arrow {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        padding: 15px;
    }

    .product-frame,
    .product-image,
    .product-image-wrapper {
        height: 150px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .pagination {
        gap: 5px;
    }

    .page-btn, .page-num, .page-num-active {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .product-detail-container {
        padding: 1.5rem 1rem;
    }

    .image-gallery-box,
    .product-info-box {
        padding: 1.5rem;
    }

    .product-detail-flex .product-title {
        font-size: 1.5rem;
    }

    .main-price {
        font-size: 1.875rem;
    }

    .main-product-image {
        height: 300px;
    }

    .thumbnail {
        width: 4rem;
        height: 4rem;
    }

    .color-option {
        width: 2.5rem;
        height: 2.5rem;
    }

    .action-buttons-row button {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media screen and (max-width: 600px) {
    .hero-banner {
        max-width: 95%;
        margin: 20px auto;
        padding: 20px 10px;
        border-radius: 15px;
    }

    .slide {
        padding: 15px;
    }

    .banner-content h1 {
        font-size: 20px;
        line-height: 1.4;
    }

    .banner-image img {
        max-width: 200px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .banner-content h1 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner-image img {
        max-width: 180px;
    }

    .left-arrow,
    .right-arrow {
        font-size: 25px;
    }

    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        padding: 15px;
    }

    .product-frame,
    .product-image,
    .product-image-wrapper {
        height: 200px;
    }

    .btn-outline,
    .add-to-cart-btn {
        padding: 12px;
    }

    .pagination {
        flex-wrap: wrap;
    }
    
    .product-detail-container {
        padding: 1rem;
    }

    .image-gallery-box,
    .product-info-box {
        padding: 1.25rem;
    }

    .product-detail-flex .product-title {
        font-size: 1.25rem;
    }

    .product-subtitle {
        font-size: 0.875rem;
    }

    .main-price {
        font-size: 1.5rem;
    }

    .main-product-image {
        height: 250px;
    }

    .thumbnail-row {
        gap: 0.5rem;
    }

    .thumbnail {
        width: 3.5rem;
        height: 3.5rem;
    }

    .color-options-row {
        gap: 0.5rem;
    }

    .color-option {
        width: 2.25rem;
        height: 2.25rem;
    }

    .color-option.active::after {
        font-size: 1rem;
    }

    .action-buttons-row {
        gap: 0.75rem;
    }

    .action-buttons-row button {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .quantity-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .rating-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-bottom: 1rem;
    }

    .stars-list {
        font-size: 1rem;
    }
}

@media screen and (max-width: 360px) {
    .product-detail-flex .product-title {
        font-size: 1.125rem;
    }

    .main-product-image {
        height: 220px;
    }

    .thumbnail {
        width: 3rem;
        height: 3rem;
    }

    .color-option {
        width: 2rem;
        height: 2rem;
    }
}

/* ============================================
   STYLES POUR LE CHARGEMENT DYNAMIQUE
   ============================================ */

/* Loader */
.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loader .spinner {
    margin-bottom: 20px;
}

.loader .fa-spinner {
    color: var(--color-blue-600);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages d'erreur et d'information */
.error,
.no-products,
.category-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.error i,
.no-products i {
    margin-bottom: 20px;
    display: block;
}

.error h3,
.no-products h3 {
    color: var(--color-gray-700);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.error p,
.no-products p {
    color: var(--color-gray-500);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Bouton réessayer */
.retry-btn {
    background-color: var(--color-blue-600);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.retry-btn:hover {
    background-color: var(--color-blue-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Style spécifique pour les erreurs de catégorie */
.category-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.category-error h3 {
    color: #c53030;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-error h4 {
    color: #4a5568;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.categories-list {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
    max-height: 300px;
    overflow-y: auto;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.2s;
}

.category-item:hover {
    background-color: #f7fafc;
}

.category-item:last-child {
    border-bottom: none;
}

.category-name {
    font-weight: 600;
    color: #2d3748;
}

.category-id {
    color: #718096;
    font-size: 0.875rem;
    background: #edf2f7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.suggestion {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    border: 1px solid #81e6d9;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #234e52;
}

.suggestion i {
    color: #38b2ac;
}

/* Notification */
.universal-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #059669;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

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

.universal-notification.error {
    background: #dc2626;
}

.universal-notification.info {
    background: #3b82f6;
}

/* Responsive pour les notifications */
@media (max-width: 768px) {
    .universal-notification {
        left: 20px;
        right: 20px;
        min-width: auto;
        transform: translateY(-100%);
    }
    
    .universal-notification.show {
        transform: translateY(0);
    }
}

/* État de stock */
.product-stock {
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-stock.in-stock {
    background-color: #dcfce7;
    color: #059669;
}

.product-stock.out-of-stock {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Prix avec ancien prix */
.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

/* Animation pour l'apparition des produits */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* assets/css/products_casque.css */
/* Style des cartes produit */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.product-image-link {
    display: block;
    height: 100%;
}

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

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

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.tag-promo {
    background: #ef4444;
}

.tag-best-seller {
    background: #f59e0b;
}

.tag-new {
    background: #10b981;
}

.product-info {
    padding: 1.25rem;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 0.75rem;
}

.product-title-link:hover .product-title-card {
    color: #1e40af;
}

.product-brand {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.25rem 0;
}

.product-title-card {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    transition: color 0.2s;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars-list {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.875rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.add-to-cart-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1.125rem;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: #1e3a8a;
    color: white;
    transform: scale(1.1);
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #9ca3af;
    color: #9ca3af;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.product-stock.in-stock {
    background-color: #dcfce7;
    color: #059669;
}

.product-stock.out-of-stock {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

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

/* Ajouter à products_casque.css */
.product-image-link, 
.product-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.2s;
}

.product-image-link:hover {
    opacity: 0.9;
}

.product-title-link:hover .product-title-card {
    color: #1e40af;
}

/* Style pour les boutons add-to-cart */
.add-to-cart-btn {
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart-btn:not(:disabled):hover {
    background: #1e3a8a;
    color: white;
    transform: scale(1.1);
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}