:root {
    --night-blue: #0F172A; /* Bleu nuit */
    --white: #FFFFFF;
    --blue-main: #3B82F6; /* Bleu principal */
    --blue-light: #60A5FA; /* Bleu clair */
    --accent-green: #10B981; /* Vert d'accent */
    --text-dark: #1E293B;
    --text-light: #F8FAFC;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* Pour que le footer reste toujours en bas de l'écran */
html, body {
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
    background-repeat: no-repeat;
}
#app {
    flex: 1 0 auto; /* Prend toute la place disponible */
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Changement ici : 'to bottom' pour une séparation horizontale (haut/bas) */
    background: linear-gradient(to bottom, var(--night-blue) 60%, var(--white) 40%);
    color: var(--text-light); /* Texte par défaut en blanc (sur la partie haute bleue) */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    color: var(--white);
}
/* Liens de navigation */
.nav-links {
    display: flex;          /* Active Flexbox pour mettre sur une ligne */
    align-items: center;    /* Centre verticalement les liens et les icônes */
    gap: 25px;              /* Espace moyen et uniforme entre chaque élément */
}

.nav-links a { 
    color: var(--white); 
    text-decoration: none; 
    transition: color 0.3s; 
    /* Supprimé : margin-left: 20px; (remplacé par le gap ci-dessus) */
}

.nav-links a:hover { 
    color: var(--accent-green); 
}
/* Logo de la marque */
.logo { 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1.5rem; 
    display: flex; /* Pour bien aligner les deux mots */
    gap: 5px;
}

/* EDIVET en Bleu vif */
.logo .logo-blue {
    color: var(--blue-main); /* #3B82F6 */
}

/* COLLECTION en Blanc */
.logo .logo-white {
    color: var(--white); /* #FFFFFF */
}

/* Conteneur de l'app */
#app { padding: 50px; }

/* Sections */
.hero-section {
    display: flex;
    min-height: 80vh;
    align-items: center;
}
.hero-text { width: 50%; padding-right: 50px; }
/* Conteneur de l'image du Hero */
.hero-image {
    width: 50%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden; /* Important pour que l'image respecte les bords arrondis */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Ombre élégante */
}

/* L'image elle-même */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre sans déformer l'image */
    display: block;
    transition: transform 0.5s ease; /* Petit effet de zoom au survol */
}

/* Effet de zoom stylé quand la souris passe sur l'image */
.hero-image:hover .hero-img {
    transform: scale(1.05);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-green); /* Bouton vert rappel */
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.btn:hover { background-color: #059669; }

/* Cartes produits (Boutique) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
/* Cartes produits (Tuiles blanches opaques) */
.product-card {
    background: #FFFFFF; /* Fond blanc opaque */
    color: var(--text-dark); /* Texte principal en bleu nuit foncé */
    border: 1px solid #E2E8F0; /* Léger contour gris très clair */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Ombre douce pour décoller la carte du fond */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Effet au survol de la carte */
.product-card:hover {
    transform: translateY(-5px); /* La carte se soulève légèrement */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-green); /* Rappel vert au survol */
}

/* Nom du produit */
.product-card h3 { 
    color: var(--night-blue); /* Texte en bleu nuit foncé */
    margin-bottom: 10px; 
}

/* === Conteneur et style de l'image produit === */

.product-image-container {
    height: 250px; /* Hauteur fixe pour harmoniser la grille */
    background: var(--night-blue); /* Fond bleu nuit pendant le chargement de l'image */
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden; /* Empêche l'image de déborder de la carte */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Couvre toute la zone sans déformer l'image */
    transition: transform 0.4s ease; /* Effet fluide au survol */
    opacity: 0.95;
}

/* Effet de zoom moderne au survol de la carte */
.product-card:hover .product-image {
    transform: scale(1.05); /* Léger zoom */
    opacity: 1;
}

/* Liseré vert subtil qui apparaît au survol de l'image */
.product-image-container:hover {
    border-color: var(--accent-green);
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-main); /* Variation de bleu */
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Conteneur Tailles */
.sizes-container {
    margin: 15px 0;
    min-height: 40px;
}

.size-label {
    font-size: 0.85rem;
    color: #64748B; /* Gris bleuté pour ne pas agresser l'œil sur fond blanc */
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.sizes-list {
    display: flex;
    gap: 8px;
}

/* Conteneur Tailles */
.sizes-container {
    margin: 15px 0;
    min-height: 40px;
}

.size-label {
    font-size: 0.85rem;
    color: #64748B; /* Gris bleuté pour ne pas agresser l'œil sur fond blanc */
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

/* Boutons de taille */
.size-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #CBD5E1; /* Bordure gris clair */
    background: transparent;
    color: var(--night-blue); /* Texte bleu nuit */
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.size-btn:hover:not(.disabled) {
    background: #F1F5F9; /* Fond gris très clair au survol */
    border-color: var(--blue-main);
}

/* Taille sélectionnée (Rappel vert) */
.size-btn.selected {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--white); /* Le texte devient blanc sur le vert */
}

/* Taille en rupture de stock */
.size-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: #CBD5E1;
    background: #F8FAFC;
}

/* Bas de la carte produit */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-green); /* Le prix en vert pour attirer l'œil */
}

/* Bouton d'ajout plus petit pour les cartes */
.add-to-cart-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ==========================================
/* === HEADER, ICÔNES & PANIER === */
/* ========================================== */

/* Boutons d'icônes (Panier, Compte) */
.nav-icon-btn {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Supprimé : margin-left: 15px; (remplacé par le gap du parent) */
    transition: color 0.3s;
    padding: 0; /* Pour un alignement parfait avec le texte */
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-green);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* === Overlay Général (Fond sombre) === */
.modal-overlay, .cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8); /* Fond sombre bleu nuit */
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.hidden { display: none !important; }

/* === Fenêtre Flottante (Quick View) === */
.floating-modal {
    background: var(--white);
    color: var(--text-dark);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
}

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

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--night-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.modal-close-btn:hover { transform: rotate(90deg); background: var(--accent-green); }

/* Layout de la Quick View */
.qv-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}
.qv-title {
    grid-column: 1 / -1;
    color: var(--night-blue);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.qv-left { display: flex; flex-direction: column; gap: 15px; }
.qv-main-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid #eee;
}
.qv-thumbnails { display: flex; gap: 10px; }
.qv-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}
.qv-thumb:hover, .qv-thumb.active { border-color: var(--blue-main); }

.qv-right { display: flex; flex-direction: column; gap: 10px; }
.qv-right h2 { color: var(--night-blue); margin: 0; }
.qv-right p { margin: 0; color: #555; line-height: 1.5; font-size: 0.95rem; }
.qv-price { font-size: 1.5rem; font-weight: bold; color: var(--accent-green); margin: 10px 0; }

.qv-similar {
    grid-column: 1 / -1;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 10px;
}
.qv-similar h4 { color: var(--night-blue); margin-bottom: 15px; }
.similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.similar-product { cursor: pointer; text-align: center; }
.similar-product img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
.similar-product p { font-size: 0.8rem; color: var(--text-dark); margin-top: 5px; }

/* === Panier Coulissant (Cart) === */
.cart-overlay { justify-content: flex-end; }
.cart-panel {
    background: var(--night-blue);
    width: 400px;
    height: 100vh;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    animation: slideInRight 0.4s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 { color: var(--white); margin: 0; }
.cart-close-btn { background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.cart-item-info h4 { margin: 0 0 5px 0; color: var(--white); font-size: 0.9rem; }
.cart-item-info p { margin: 0; color: var(--blue-light); font-size: 0.8rem; }
.cart-item-info .price { color: var(--accent-green); font-weight: bold; margin-top: 5px; display: block; }

.cart-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.cart-total { color: var(--white); font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; text-align: right; }
.checkout-btn { width: 100%; }

/* ==========================================
/* === RESPONSIVE (Mobiles & Tablettes) === */
/* ========================================== */

/* --- Pour les tablettes et petits écrans (max-width: 768px) --- */
@media screen and (max-width: 768px) {
    
    /* Navigation */
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        gap: 15px; /* Réduit l'espace entre Accueil, Boutique, Panier, Compte */
    }
    .logo {
        font-size: 1.1rem;
    }

    /* Hero (Page d'accueil) : On empile le texte et l'image */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }
    .hero-text, .hero-image {
        width: 100%;
        padding-right: 0;
    }
    .hero-image {
        height: 250px;
        margin-top: 30px;
    }
    /* Deuxième Hero Section : s'empile en colonne */
    .hero-section-2 {
        flex-direction: column;
        min-height: auto; /* La hauteur s'adapte au contenu */
        gap: 20px;
    }
    .hero-block-1, .hero-block-2 {
        width: 100%;
    }
    /* L'image visuelle de droite devient un bloc horizontal plus petit sur tablette */
    .hero-block-2 {
        height: 200px; 
        order: -1; /* Optionnel: place l'image au-dessus des BestSellers sur tablette */
    }
    .bs-product img {
        height: 120px;
    }

    /* Grille produits : Passe de 3 colonnes à 2 colonnes */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-image-container {
        height: 180px; /* Images un peu plus petites */
    }

    /* Fenêtre flottante (Quick View) */
    .floating-modal {
        width: 95%;
        max-height: 85vh;
    }
    .qv-container {
        grid-template-columns: 1fr; /* Empile photo et infos au lieu de les mettre côte à côte */
        padding: 20px;
    }
    .qv-main-image {
        height: 300px;
    }
    .similar-grid {
        grid-template-columns: repeat(2, 1fr); /* Produits similaires sur 2 colonnes */
    }

    /* Panier coulissant : Prend toute la largeur sur tablette */
    .cart-panel {
        width: 100%;
        max-width: 400px;
    }
}

/* --- Pour les téléphones mobiles (max-width: 480px) --- */
/* --- Pour les téléphones mobiles (max-width: 600px) --- */
@media screen and (max-width: 600px) {

    .social-links {
        justify-content: center;
    }
    .newsletter-form {
        flex-direction: column; /* Le bouton OK passe en dessous de l'email */
    }
    .newsletter-form button {
        padding: 12px;
    }
    
    /* Navigation : on réduit encore la taille */
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .nav-icon-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Grille produits : Passe à 1 seule colonne pour une meilleure lisibilité */
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cartes produits centrées sur mobile */
    .product-card {
        text-align: center;
    }
    .card-footer {
        flex-direction: column;
        gap: 15px;
    }

    /* Hero */
    #app {
        padding: 20px;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
}

/* ==========================================
/* === HEADER STICKY & ACCUEIL ATTRACTIF === */
/* ========================================== */

/* Header Sticky */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.95); /* Bleu nuit légèrement transparent */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* === Slideshow === */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
}
.slide {
    display: none;
    width: 100%;
    height: 100%;
}
.slide.active {
    display: block;
    animation: fadeEffect 1s ease;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes fadeEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Miniatures du Slideshow (Coin bas-droit) */
.slide-thumbnails {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}
.slide-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
}
.slide-thumb:hover { transform: scale(1.05); border-color: var(--white); }
.slide-thumb.active { border-color: var(--accent-green); transform: scale(1.1); }

/* === Deuxième Hero Section (Bestsellers & Bloc Visuel) === */
.hero-section-2 {
    display: flex;
    gap: 30px;
    align-items: stretch; /* Pour que les deux blocs aient la même hauteur */
    min-height: 400px;
}
.hero-block-1, .hero-block-2 {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}
.hero-block-1 {
    background: #FFFFFF; /* Carte à fond blanc opaque */
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hero-block-2 {
    /* Bloc 2 visuel pour combler l'espace */
    background-image: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-block-2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4); /* Voile bleu nuit pour l'esthétique */
}

/* Carte BestSellers */
.bestsellers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 10px;
}
.bestsellers-header h3 {
    color: var(--night-blue);
    margin: 0;
    font-size: 1.5rem;
}
.bestsellers-header .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}
.bs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 4 produits 2 par 2 */
    gap: 20px;
}
.bs-product {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}
.bs-product:hover { transform: translateY(-5px); }
.bs-product img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}
.bs-product p {
    margin: 8px 0 0 0;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 0.9rem;
}
.bs-product .price {
    color: var(--accent-green);
    font-size: 0.9rem;
}

/* ==========================================
/* === PIED DE PAGE (FOOTER) & RESPONSIVE === */
/* ========================================== */

.footer-container {
    flex-shrink: 0;
    background: var(--night-blue);
    color: var(--blue-light);
    padding: 50px 20px 20px 20px; /* Padding latéral réduit pour la sécurité */
    border-top: 4px solid var(--accent-green);
    width: 100%;
    box-sizing: border-box;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-green);
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: var(--blue-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-col ul li a:hover { color: var(--accent-green); padding-left: 5px; }

.footer-brand .logo { margin-bottom: 15px; display: inline-block; }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a {
    color: var(--blue-light);
    border: 1px solid rgba(255,255,255,0.2);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.social-links a:hover { background: var(--accent-green); border-color: var(--accent-green); color: var(--white); transform: translateY(-3px); }

.newsletter-form { display: flex; margin-top: 15px; border: 1px solid rgba(255,255,255,0.2); border-radius: 5px; overflow: hidden; }
.newsletter-form input {
    flex: 1; background: rgba(255,255,255,0.05); border: none;
    padding: 12px 15px; color: var(--white); outline: none; font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
    background: var(--accent-green); color: var(--white); border: none;
    padding: 0 20px; cursor: pointer; font-weight: bold; transition: background 0.3s;
}
.newsletter-form button:hover { background: #059669; }

.footer-bottom {
    text-align: center; border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px; padding-top: 20px;
    font-size: 0.8rem; color: rgba(255,255,255,0.5);
}

/* --- RESPONSIVE FOOTER --- */

/* Tablettes (max-width: 768px) */
@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* Passe à 2 colonnes */
        gap: 30px;
    }
}

/* Téléphones (max-width: 600px) */
@media screen and (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Passe à 1 seule colonne empilée */
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%); /* Centre la petite barre verte sous les titres */
    }
    .social-links {
        justify-content: center; /* Centre les icônes sociales */
    }
    .newsletter-form {
        flex-direction: column; /* Le bouton OK passe en dessous de l'input */
        border: none;
    }
    .newsletter-form input {
        width: 100%;
        margin-bottom: 10px;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 5px;
    }
    .newsletter-form button {
        padding: 12px;
        width: 100%;
        border-radius: 5px;
    }
}

/* ==========================================
/* === ANIMATION DE CHARGEMENT (SPINNER) === */
/* ========================================== */

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Prend une bonne partie de l'écran pour centrer le loader */
    gap: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(59, 130, 246, 0.2); /* Cercle bleu clair transparent */
    border-top-color: var(--accent-green); /* La partie qui tourne est verte */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Vitesse de rotation fluide */
}

.loader-text {
    color: var(--blue-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === Authentification & Comte === */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}
.auth-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    border-top: 5px solid var(--accent-green);
}
.auth-card h2 {
    color: var(--night-blue);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}
.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.auth-card input {
    padding: 12px 15px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}
.auth-card input:focus {
    border-color: var(--blue-main);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.auth-card .btn {
    width: 100%;
    margin-top: 10px;
}
.auth-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    min-height: 20px;
}
.account-menu h3 {
    color: var(--night-blue);
    margin-bottom: 10px;
}

/* ==========================================
/* === SECTION 3 & 4 (TÉMOIGNAGES & ARRIVAGE) === */
/* ========================================== */

.section-title {
    color: var(--night-blue);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5); /* Lisible sur fond bleu et blanc */
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

/* Conteneurs de défilement (Scrollable sans barre) */
.hero-section-3, .hero-section-4 {
    margin: 80px 0;
    width: 100%;
    overflow: hidden;
}

.testimonial-track, .arrival-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 50px;
    scroll-behavior: smooth;
}

/* Astuce pour masquer la barre de défilement sur tous les navigateurs */
.testimonial-track::-webkit-scrollbar, .arrival-track::-webkit-scrollbar {
    display: none;
}
.testimonial-track, .arrival-track {
    -ms-overflow-style: none;  /* IE et Edge */
    scrollbar-width: none;    /* Firefox */
}

/* === Cartes Témoignages === */
.testimonial-card {
    min-width: 320px;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.t-header {
    display: flex;
    align-items: center;
    gap: 15px;
}
.t-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
}
.t-header h4 {
    margin: 0;
    color: var(--night-blue);
    font-size: 1.1rem;
}
.t-stars {
    color: #F59E0B; /* Couleur étoile (jaune/orange) */
    font-size: 0.9rem;
}
.testimonial-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}
.t-date {
    margin-top: auto;
    text-align: right;
    font-size: 0.8rem;
    color: #94A3B8;
    font-weight: bold;
}

/* === Cartes Arrivage (Défilement Auto) === */
.arrival-card {
    min-width: 220px;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.arrival-card:hover {
    transform: scale(1.03);
}
.arrival-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.arrival-info {
    padding: 15px;
    text-align: center;
}
.arrival-info h4 {
    margin: 0 0 5px 0;
    color: var(--night-blue);
    font-size: 1rem;
}
.arrival-info .price {
    color: var(--accent-green);
    font-weight: bold;
}

/* Animation de défilement infini pour l'arrivage */
@keyframes scrollArrivals {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); /* Décale de la moitié du contenu total */ }
}

.arrival-track {
    width: max-content; /* Prend la largeur de tout son contenu */
    animation: scrollArrivals 30s linear infinite; /* 30 secondes pour un défilement lent */
}

/* Pause du défilement au survol de la souris */
.arrival-track:hover {
    animation-play-state: paused;
}

/* === Sélecteur de Quantité (Modale) === */
.quantity-selector {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    background: var(--night-blue);
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s;
}

.qty-btn:hover {
    background: var(--accent-green);
    transform: scale(1.05);
}

#qty-input {
    width: 60px;
    text-align: center;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    height: 35px;
    font-size: 1rem;
    color: var(--night-blue);
    outline: none;
    font-weight: bold;
}

#qty-input::-webkit-inner-spin-button, 
#qty-input::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* ==========================================
/* === TUNNEL DE COMMANDE (CHECKOUT) === */
/* ========================================== */

.checkout-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.checkout-header h2 { color: var(--night-blue); text-shadow: 0 2px 4px rgba(255,255,255,0.5); }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin-top: 30px; }
.checkout-card {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.checkout-card h3 { color: var(--night-blue); margin-top: 0; margin-bottom: 20px; border-bottom: 2px solid var(--accent-green); padding-bottom: 10px; display: inline-block; }

.checkout-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.checkout-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; }
.checkout-item h4 { margin: 0; color: var(--night-blue); font-size: 1rem; }
.checkout-item p { margin: 0; font-size: 0.85rem; color: #64748B; }
.checkout-item .price { margin-left: auto; color: var(--night-blue); font-weight: bold; }

.checkout-subtotal { text-align: right; font-weight: bold; color: var(--night-blue); margin-top: 10px; font-size: 1.1rem; }

/* Options de Livraison */
.shipping-option {
    display: flex; align-items: center; gap: 15px;
    padding: 15px; border: 1px solid #E2E8F0; border-radius: 8px;
    margin-bottom: 10px; cursor: pointer; transition: all 0.3s;
}
.shipping-option:hover { border-color: var(--blue-main); background: #F8FAFC; }
.shipping-option input { accent-color: var(--accent-green); width: 20px; height: 20px; }
.shipping-option span { flex: 1; color: var(--night-blue); font-weight: 500; }
.shipping-option .ship-price { color: var(--accent-green); font-weight: bold; }

/* Formulaire Adresse */
#checkout-form { display: flex; flex-direction: column; gap: 15px; }
#checkout-form input, .form-row input {
    padding: 12px 15px; border: 1px solid #CBD5E1; border-radius: 6px;
    font-size: 1rem; outline: none; transition: border-color 0.3s;
}
#checkout-form input:focus { border-color: var(--blue-main); }
.form-row { display: flex; gap: 15px; }
.form-row input { flex: 1; }

.checkout-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 20px; padding-top: 15px; border-top: 2px dashed #eee;
    font-size: 1.1rem; color: var(--night-blue); font-weight: bold;
}

/* Page de Succès */
.success-container {
    text-align: center; background: #FFFFFF; padding: 50px;
    border-radius: 12px; max-width: 600px; margin: 50px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.success-icon {
    width: 80px; height: 80px; background: var(--accent-green); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 20px auto;
    animation: popIn 0.5s ease;
}
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
.success-container h2 { color: var(--night-blue); margin-bottom: 15px; }

/* Responsive Checkout */
@media screen and (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 600px) {
    .form-row { flex-direction: column; gap: 15px; }
}