:root {
    --primary-color: #2178d0;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2178d0;
    --text-color: #333;
    --text-light: #7f8c8d;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--secondary-color);
}

.top-bar span {
    margin: 0 15px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

nav {
    background-color: rgb(248, 245, 245);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 60px;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-brand {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icons span {
    margin: 0 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.icons span:hover {
    color: var(--secondary-color);
}

.icons span.cart-count::after {
    content: attr(data-count);
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    color: var(--secondary-color);
}
/* Navigation Bar */
.nav-bar {
    background-color: var(--primary-color);
    padding: 15px 0;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s;
}

.nav-bar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-bar a:hover {
    color: var(--secondary-color);
}

.nav-bar a:hover::after {
    width: 100%;
}

/* Nouveaux styles pour la boutique */
.shop-container {
    display: flex;
    min-height: calc(100vh - 300px);
}

.filter-section {
    width: 250px;
    padding: 20px;
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 150px;
    align-self: flex-start;
    height: calc(100vh - 150px);
    overflow-y: auto;
}

.product-container {
    flex: 1;
    padding: 30px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-options {
    display: none;
}

.filter-options.show {
    display: block;
}

.filter-option {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.filter-option input {
    margin-right: 10px;
}

.price-range {
    width: 100%;
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    background-color: #ffffff;
}

.product-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    background-color: #ffffff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 2px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 40px;
}

.product-price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.product-stock {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.in-stock {
    color: #27ae60;
}

.low-stock {
    color: #f39c12;
}

.out-of-stock {
    color: var(--secondary-color);
}

.add-to-cart-button {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-button:hover {
    background: var(--accent-color);
}

.add-to-cart-button i {
    font-size: 0.9rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-rating {
    color: #f1c40f;
}

.product-sku {
    font-family: monospace;
}

.quick-view {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    transition: all 0.3s;
}

.product-card:hover .quick-view {
    opacity: 1;
    bottom: 100px;
}

.quick-view-btn {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.quick-view-btn:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Modal Quick View */
.quick-view-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.quick-view-content {
    background: white;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: auto;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-quick-view {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Cart Modal (amélioré) */

.cart-modal {
    width: 100%; /* Augmente la largeur */
    height: 100%; /* Augmente la hauteur */
    max-height: 90%; /* Limite la hauteur */
    overflow-y: auto; /* Permet le défilement si nécessaire */
    position: fixed;
    top: 2%;
    /* left: 10%; */
    background-color: #ffffff;
    z-index: 1050;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}


.cart-header {
    padding: 20px;
    border-bottom: 1px solid #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #ffffff;
    gap: 15px;
}
.cart-item-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    /* background: #f8f9fa; */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}
.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-info h5 {
    margin: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-info p {
    margin: 3px 0 0;
    font-weight: bold;
    color: #333;
}
.cart-item-info small {
    font-size: 12px;
    color: #6c757d;
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-item-quantity button {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
}
.quantity-value {
    min-width: 20px;
    text-align: center;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
}
.cart-item-total {
    font-weight: bold;
    min-width: 90px;
    text-align: right;
}

.cart-item-actions button {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
}

@media (max-width: 576px) {
    .cart-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    .cart-item-info {
        flex: 1 0 calc(100% - 130px);
    }
    .cart-item-quantity {
        order: 1;
    }
    .cart-item-actions {
        margin-left: auto;
    }
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-value {
    width: 40px;
    text-align: center;
}

.remove-item {
    color: var(--secondary-color);
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: #c0392b;
}

/* Confirmation Message */
.confirmation-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    animation: slideIn 0.3s, slideOut 0.3s 2.7s;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Responsive */
@media (max-width: 992px) {
    .shop-container {
        flex-direction: column;
    }

    .filter-section {
        width: 100%;
        position: static;
        height: auto;
        margin-bottom: 20px;
    }

    .product-container {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .quick-view {
        display: none;
    }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact li {
    margin-bottom: 15px;
    list-style: none;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 15px;
    color: white;
    font-size: 1.1rem;
    margin-top: 3px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
}















/* Header Styles */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--secondary-color);
}

.top-bar span {
    margin: 0 15px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

nav {
    background-color: rgb(248, 245, 245);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img {
    height: 60px;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-brand {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s;
}

.search-bar input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    color: var(--secondary-color);
}

.icons span {
    margin: 0 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.icons span:hover {
    color: var(--secondary-color);
}

.icons span.cart-count::after {
    content: attr(data-count);
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Navigation Bar */
.nav-bar {
    background-color: var(--primary-color);
    padding: 15px 0;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s;
}

.nav-bar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-bar a:hover {
    color: var(--secondary-color);
}

.nav-bar a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1002;
    border-radius: 5px;
    padding: 10px 0;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #333;
    padding: 10px 20px;
    display: block;
    transition: all 0.2s;
    margin: 0;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
    padding-left: 25px;
}

/* Assure que la vidéo est en dessous */
.video1 {
    position: relative;
    z-index: 1;
}

/* Styles existants conservés */
.top-bar {
    background-color: #2178d0;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 2px solid #e74c3c;
}














/* Styles pour le modal de paiement */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}

.payment-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-payment {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-payment:hover {
    color: black;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    width: 150px;
}

.payment-option:hover {
    border-color: #4CAF50;
}

.payment-option.active {
    border-color: #4CAF50;
    background-color: #f8fff8;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.payment-option img {
    width: 80px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

.payment-option span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
        align-items: center;
    }

    .payment-option {
        width: 80%;
    }
}