/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* Variables CSS */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #767d6c;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
}

/* Loader Animation Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 200px;
    text-align: center;
    position: relative;
}

.loader-logo {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}

.loader-logo img {
    max-width: 150px;
    height: auto;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.loader-progress {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    animation: progress 2s ease-in-out infinite;
}

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

@keyframes progress {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 100%; }
}

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

/* Hide loader when loaded */
body.loaded .loader-container {
    opacity: 0;
    visibility: hidden;
}

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    padding-top: 56px; /* Pour la navbar fixe */
    scroll-behavior: smooth;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Pour la version textuelle */
.navbar-brand small {
    display: block;
    font-size: 0.6rem;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section */
/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: url('../assets/newback.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative; /* Place le contenu au-dessus du pseudo-élément */
    height: 100%;
    z-index: 1; /* Assure que le contenu est au-dessus de l'overlay */
}

/* service international */

/* Améliorations visuelles */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
}

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

.card-img-top {
    object-fit: cover;
    object-position: center;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Adaptation responsive */
@media (max-width: 768px) {
    .ratio-16x9 {
        --bs-aspect-ratio: 75%; /* Ratio plus carré sur mobile */
    }
}
 

/* Boutique Section */
#boutique {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

#boutique::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
     
    opacity: 0.03;
    pointer-events: none;
}

.product-grid {
    position: relative;
    z-index: 1;
}

.product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: white;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    background: var(--primary-color);
    color: white;
}

.product-badge.bestseller {
    background: #ff5722;
}

.product-badge[data-badge="Édition Limitée"] {
    background: linear-gradient(45deg, #ff8a00, #e52e71);
}

.product-image-container {
    height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.product-image {
    width: 70%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.product-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-details {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.product-rating {
    color: #f39c12;
    font-size: 0.9rem;
}

/* Filtres */
.filter-btn {
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Modal Produit */
#productModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

#productModal .modal-header {
    padding: 1rem 1.5rem;
}

.btn-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    position: relative;
    border: 2px solid transparent;
}

.btn-color:hover::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid #ddd;
    border-radius: 50%;
}

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

.quantity-control button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
}

.product-features li {
    padding: 5px 0;
}

@media (max-width: 768px) {
    .product-image-container {
        height: 200px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    #productModal .modal-dialog {
        margin: 10px;
    }
    
    #productModal .row {
        flex-direction: column;
    }
}

/* Styles pour les options sélectionnées */
.storage-option.active, .color-option.active {
    border: 2px solid var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.1);
}

.btn-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 0;
    position: relative;
    border: 2px solid #ddd;
}

.btn-color.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
}

/* Bouton ajouter au panier dans le modal */
.btn-add-to-cart {
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}


/* Cart Modal */
#cart-items-container {
    min-height: 150px;
}

/* Ajoutez ceci à votre fichier style.css */
.cart-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

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

.remove-item {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Form */
#contactForm .form-control {
    padding: 10px 15px;
    border-radius: 0;
}

#contactForm .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 100px 0;
    }
    
    .section-title:after {
        width: 60px;
    }
}

/* Style pour le carousel */
#annonces {
    background-color: #f8f9fa;
}

.carousel {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-img {
    height: 500px;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.caption-content {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0.5rem;
    max-width: 600px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    border: 2px solid white;
    background: transparent;
}

.carousel-indicators .active {
    background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-img {
        height: 400px;
    }
    
    .caption-content {
        padding: 1.5rem !important;
    }
    
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-img {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
}