/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */
:root {
    --color-dark: #333333;
    --color-darker: #1a1a1a;
    --color-cream: #fffaf5;
    --color-gold: #F39200;
    --color-gold-hover: #e08600;
    --color-white: #ffffff;
    --color-accent: #D4AF37;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.3s ease-in-out;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 15px 30px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}
h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.5rem; font-weight: 400; color: #4b5563; }

.accent-font {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.gold-text { color: var(--color-gold); }
.text-light { color: var(--color-white); }
.bg-dark { background-color: var(--color-dark); }
.bg-cream { background-color: var(--color-cream); }
.center { text-align: center; }

.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.p-2 { padding: 2rem; } .p-3 { padding: 3rem; }
.full-width { width: 100%; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 6rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.split-layout { display: flex; align-items: center; gap: 4rem; }
.split-layout > * { flex: 1; }
.split-layout.reverse { flex-direction: row-reverse; }

/* ==========================================================================
   IMAGE HANDLING GLOBAL
   ========================================================================== */
.img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f8fafc;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-strong);
    width: 100%;
    aspect-ratio: 2 / 3;
}
.img-wrapper img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}
.img-wrapper:hover img { transform: scale(1.07); }

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-portrait { aspect-ratio: 4 / 5; }
.aspect-landscape { aspect-ratio: 16 / 9; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    border-radius: 9999px;
    box-shadow: var(--shadow-soft);
}
.btn.small { padding: 8px 24px; font-size: 0.9rem; }

.btn-primary, .gold-btn { background-color: var(--color-gold); color: var(--color-white); }
.btn-primary:hover, .gold-btn:hover { background-color: var(--color-gold-hover); transform: scale(1.05); box-shadow: var(--shadow-strong); }

.btn-outline { border: 2px solid var(--color-dark); color: var(--color-dark); background: transparent; }
.btn-outline:hover { background-color: var(--color-dark); color: var(--color-white); }
.text-light .btn-outline { border-color: var(--color-white); color: var(--color-white); }
.text-light .btn-outline:hover { background-color: var(--color-white); color: var(--color-dark); }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: var(--transition); background: transparent; }
.header.scrolled { background-color: rgba(255, 255, 255, 0.95); padding: 1rem 0; box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); }
.header.scrolled .logo, .header.scrolled .nav-menu a { color: var(--color-dark); }
body:not(.bg-cream) .header:not(.scrolled) .logo, body:not(.bg-cream) .header:not(.scrolled) .nav-menu a { color: var(--color-white); }
.bg-cream .header:not(.scrolled) .logo, .bg-cream .header:not(.scrolled) .nav-menu a { color: var(--color-dark); }

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-menu ul { list-style: none; display: flex; gap: 2rem; }
.nav-menu a { text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); font-weight: 600; }
.nav-menu a:hover, .nav-menu a.active { color: var(--color-gold) !important; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger span { display: block; width: 25px; height: 2px; background-color: var(--color-gold); transition: var(--transition); }

/* ==========================================================================
   LOGO WiLAU BIO
   ========================================================================== */
.logo-wrapper { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-title { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; line-height: 1; color: var(--color-gold); }
.logo-subtitle { font-family: var(--font-body); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: #6b7280; font-weight: 600; margin-top: 3px; }

/* ==========================================================================
   HERO & PAGE BANNER
   ========================================================================== */
.hero, .page-banner { position: relative; display: flex; align-items: center; min-height: 100vh; background-color: var(--color-dark); overflow: hidden; }
.page-banner { min-height: 50vh; justify-content: center; background-size: cover; background-position: center; }

.hero-content {
    width: 50%;
    max-width: 50%;
    padding: 0 5%;
    z-index: 2;
}
.hero-content h1, .hero-content p { color: var(--color-white); }
.hero-buttons { display: flex; gap: 1rem; margin-top: 2rem; }
.hero-image { position: absolute; right: 0; top: 0; width: 50%; height: 100%; border-radius: 0; }

/* ==========================================================================
   PRODUCT CARDS & BLOG CARDS
   ========================================================================== */
.product-card, .blog-card.full-shadow {
    background: var(--color-white);
    padding-bottom: 1rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-card:hover, .blog-card.full-shadow:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.product-card .img-wrapper,
.blog-card.full-shadow .img-wrapper {
    border-radius: 0;
    box-shadow: none;
}

.product-info {
    padding: 1.2rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .img-wrapper,
.premium-card .img-wrapper {
    height: auto !important;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
}

.product-card .img-wrapper img,
.premium-card .img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;   /* Flacon entier sur PC */
    transition: transform 0.4s ease;
}

.product-card:hover .img-wrapper img,
.premium-card:hover .img-wrapper img {
    transform: scale(1.05);
}

/* ==========================================================================
   DESCRIPTIONS, PRIX & CATÉGORIES (PC)
   ========================================================================== */
.product-description {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    font-size: 0.78rem; 
    line-height: 1.3;
    color: #6b7280;
    margin: 4px 0 6px 0;
    text-align: center;
}

.product-price { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--color-gold); 
    margin: 0.2rem 0 0.8rem;      
}

.product-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; display: block; margin-bottom: 0.5rem; }

/* ==========================================================================
   GRILLES ET FILTRES
   ========================================================================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

#products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

#products-grid .product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.filter-btn {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-dark);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--color-gold);
    color: var(--color-white);
}

/* ==========================================================================
   PREMIUM CARDS (ACCUEIL BEST-SELLERS PC)
   ========================================================================== */
.premium-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    border: 1px solid #f3f4f6;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.premium-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-strong); }
.premium-card.best-seller { border: 2px solid var(--color-gold); transform: scale(1.05); z-index: 2; }
.premium-card.best-seller:hover { transform: scale(1.05) translateY(-10px); }

.badge-best-seller {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: var(--color-white);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(243, 146, 0, 0.3);
    z-index: 10;
}
.premium-card h3 { color: var(--color-gold); text-transform: uppercase; font-size: 1.5rem; margin: 1.5rem 0 0.5rem; letter-spacing: -0.5px; }

/* Correction Accueil PC : Calibrage propre des 2 cartes best-sellers */
.home-products .premium-card {
    max-width: 380px;
    margin: 0 auto;
    padding: 1.5rem;
}
.home-products .premium-card .img-wrapper {
    height: 320px !important;
    aspect-ratio: unset !important;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
}
.home-products .premium-card .img-wrapper img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}
.premium-card .desc-mobile-hide {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    color: #4b5563 !important;
    margin: 0.8rem 0 !important;
    display: block !important;
    overflow: visible !important;
    text-align: center;
    flex-grow: 1;
}

/* ==========================================================================
   SECTION TEMOIGNAGES PC (RÉDUCTION DE LA ZONE NOIRE)
   ========================================================================== */
.testimonials {
    padding: 4rem 0 !important; /* Resserre la section noire verticalement */
}

@media (min-width: 993px) {
    .testimonials .container {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr; /* Texte à gauche, smartphone à droite */
        align-items: center;
        gap: 4rem;
    }
    .testimonials .section-header {
        text-align: left;
        margin-bottom: 0;
    }
}

.testimonial-slider-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.testimonial-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.testimonial-track {
    display: flex;
    gap: 0px !important; /* Rapprochement parfait */
    transition: transform 0.7s cubic-bezier(0.45, 0, 0.55, 1);
    will-change: transform;
}
.testimonial-slide { width: 100%; flex-shrink: 0; }
.testimonial-slide img {
    width: 100%;
    height: 480px !important;
    object-fit: contain !important; /* Discussion entière sans découpe */
    border-radius: 20px;
    border: 3px solid var(--color-gold);
    box-shadow: var(--shadow-strong);
    pointer-events: none;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(243, 146, 0, 0.9);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.slider-arrow:hover { background: var(--color-gold); transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { left: -45px; }
.slider-arrow.next { right: -45px; }

/* ==========================================================================
   AUTRES SECTIONS ET FORMULAIRES
   ========================================================================== */
.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}
.value-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-10px); }

.cta-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("assets/images/wilau img 1.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #ffffff;
    text-align: center;
}
.cta-section p { color: #ffffff !important; }

.premium-form .form-group { margin-bottom: 1.5rem; text-align: left; }
.premium-form label { display: block; margin-bottom: 0.5rem; font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--color-dark); }
.premium-form input, .premium-form select, .premium-form textarea { width: 100%; padding: 15px 20px; border: 1px solid #e5e7eb; border-radius: 1rem; background: #f9fafb; font-family: var(--font-body); transition: var(--transition); }
.premium-form input:focus, .premium-form textarea:focus { border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.2); outline: none; background: var(--color-white); }

.footer { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-pro { padding: 5rem 0 0 0; background-color: var(--color-darker); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col p { color: #9ca3af; font-size: 0.9rem; }
.footer-title { color: var(--color-white); font-size: 1.2rem; margin-bottom: 1.5rem; font-family: var(--font-heading); position: relative; padding-bottom: 0.5rem; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: var(--color-gold); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-col ul a, .footer-col ul li { color: #9ca3af; text-decoration: none; transition: var(--transition); }
.footer-col ul a:hover { color: var(--color-gold); padding-left: 5px; }
.newsletter-form { display: flex; margin-top: 1rem; }
.newsletter-form input { flex: 1; padding: 12px 15px; border: none; border-radius: 5px 0 0 5px; outline: none; }
.newsletter-form button { padding: 12px 20px; border: none; border-radius: 0 5px 5px 0; background-color: var(--color-gold); color: #fff; cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.5rem 0; background-color: #111; color: #6b7280; font-size: 0.8rem; text-align: center; }

.social-links { display: flex; justify-content: center; gap: 1.5rem; margin: 1.5rem 0; }
.social-links a {
    color: var(--color-white);
    font-size: 1.5rem;
    transition: var(--transition);
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    text-align: center;
}
.social-links a:hover { color: var(--color-dark); background-color: var(--color-gold); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(243, 146, 0, 0.4); }

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-strong);
    z-index: 9999;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #1ebe57; animation: none; }
.whatsapp-float i { color: #fff; font-size: 35px; }

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }/* ==========================================================================
   SECTION TEMOIGNAGES PC (RECADRAGE ET ALIGNEMENT PARFAIT)
   ========================================================================== */
.testimonials {
    padding: 4rem 0 !important; 
}

@media (min-width: 993px) {
    .testimonials .container {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr; /* Texte à gauche, slider à droite */
        align-items: center;
        gap: 4rem;
    }
    .testimonials .section-header {
        text-align: left;
        margin-bottom: 0;
    }
}

/* Conteneur principal fixe pour bloquer la vue sur PC */
.testimonial-slider-container {
    position: relative !important;
    width: 100% !important;
    max-width: 300px !important; /* Force la largeur de la fenêtre visible sur PC */
    margin: 0 auto !important;
    display: flex;
    align-items: center;
}

.testimonial-slider {
    width: 100% !important;
    max-width: 300px !important; /* Fenêtre d'affichage stricte */
    overflow: hidden !important; /* Coupe absolument tout ce qui déborde */
    position: relative;
}

.testimonial-track {
    display: flex !important;
    gap: 20px !important; /* Reste synchronisé avec le (+ 20) du fichier main.js */
}

/* Redimensionnement strict de chaque slide sur PC */
.testimonial-slide { 
    width: 300px !important; /* Largeur fixe incontournable pour le calcul JS */
    min-width: 300px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
}

.testimonial-slide img {
    width: 100% !important;
    height: 520px !important; /* Hauteur premium et ultra lisible sur PC */
    object-fit: contain !important; /* Conserve l'intégralité du texte WhatsApp sans coupure */
    border-radius: 20px;
    border: 3px solid var(--color-gold);
    box-shadow: var(--shadow-strong);
    pointer-events: none;
}

/* Positionnement parfait des flèches à l'extérieur du bloc sur PC */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(243, 146, 0, 0.9);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.slider-arrow:hover { background: var(--color-gold); transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev { left: -55px !important; }
.slider-arrow.next { right: -55px !important; }