/* 
   Style pour Luxa Vel - E-commerce Luxe 2026
*/

:root {
    /* Color Palette */
    --bg-primary: #F7F5F2; /* Crème très léger */
    --text-main: #141414; /* Noir profond / Anthracite */
    --text-muted: #666666;
    --accent: #B89955; /* Or subtil */
    --accent-hover: #9E8348;
    
    /* Glassmorphism */
    --glass-bg: rgba(247, 245, 242, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Transitions & Easings */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Buttons & Inputs
   ========================================= */

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--text-main);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(184, 153, 85, 0.2);
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-primary);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    color: var(--accent);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 2px;
}

.link-arrow i {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.link-arrow:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.link-arrow:hover i {
    transform: translateX(4px);
}


/* =========================================
   Animations (Fade In Up)
   ========================================= */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   Navbar (Glassmorphism)
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 2rem 0;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
}

/* =========================================
   Search Bar (Navbar)
   ========================================= */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 50px;
    transition: var(--transition-smooth);
    padding: 2px;
}

.search-input-wrapper {
    width: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.search-container.active .search-input-wrapper {
    width: 250px;
    margin-right: 0.5rem;
    padding-left: 1rem;
}

.search-container.active .search-form {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    padding: 0.5rem 0;
}

.search-input::placeholder {
    color: #A0A0A0;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-container.active {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-primary);
        z-index: 10;
        padding: 0 5%;
        justify-content: center;
    }

    .search-container.active .search-form {
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .search-container.active .search-input-wrapper {
        width: 100%;
    }
    
    .search-container.active .search-input {
        font-size: 1.1rem;
    }
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    padding-top: 100px;
    gap: 4rem;
}

.hero-content {
    max-width: 500px;
}

.eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-image {
    position: relative;
    height: 80vh;
    border-radius: 20px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: float 6s ease-in-out infinite;
}

.floating-card p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.floating-card span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   Floating WhatsApp Button
   ========================================= */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* =========================================
   Featured Products (Collection)
   ========================================= */

.collection {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.product-card {
    group: product;
}

.product-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #EFECE7;
    aspect-ratio: 4/5;
    margin-bottom: 1.5rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

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

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

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.product-info .notes {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.price {
    font-size: 1.1rem;
    font-weight: 500;
}

/* =========================================
   Badges (Promo, New, Discount)
   ========================================= */

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    display: inline-block;
    line-height: 1;
}

.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    line-height: 1;
}

.status-badge.promo { background: #e74c3c; color: #fff; }
.status-badge.new { background: #ffffff; color: #141414; border: 1px solid rgba(0,0,0,0.1); }
.status-badge.exclusive { background: #141414; color: #fff; }
.status-badge.bestseller { background: #B89955; color: #fff; }

@media (max-width: 768px) {
    .discount-badge {
        top: 8px;
        right: 8px;
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
        border-radius: 3px;
    }
    .status-badge {
        top: 8px;
        left: 8px;
        font-size: 0.55rem;
        padding: 0.25rem 0.5rem;
        border-radius: 3px;
    }
}

/* =========================================
   About Section
   ========================================= */

.about {
    padding: 8rem 5%;
    background-color: #EFECE7;
}

.about-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
}

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

.about-content h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin-bottom: 2rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-content .link-arrow {
    margin-top: 1rem;
}

/* =========================================
   Footer
   ========================================= */

.footer {
    background-color: var(--text-main);
    color: var(--bg-primary);
    padding: 6rem 5% 2rem;
}

.footer h2, .footer h4 {
    color: var(--bg-primary);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #A0A0A0;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #A0A0A0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--bg-primary);
}

.footer-newsletter h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-newsletter p {
    color: #A0A0A0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--bg-primary);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form .btn-primary {
    background-color: var(--bg-primary);
    color: var(--text-main);
}

.newsletter-form .btn-primary:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #A0A0A0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #A0A0A0;
}

.social-links a:hover {
    color: var(--accent);
}

/* Developer Credit */
.dev-credit {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #A0A0A0;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.dev-credit:hover {
    color: var(--bg-primary);
}

.dev-credit strong {
    color: var(--accent);
    font-weight: 600;
    transition: var(--transition-fast);
}

.dev-credit:hover strong {
    color: #d4b678;
}

.dev-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dev-credit:hover .dev-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(184, 153, 85, 0.5);
}

/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero-image {
        height: 40vh;
        margin-top: 1rem;
        border-radius: 12px;
    }
    .hero-image img {
        border-radius: 12px;
    }
    .floating-card {
        padding: 0.8rem 1rem;
        bottom: -20px;
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
        box-sizing: border-box;
        border-radius: 8px;
    }
    .floating-card p {
        font-size: 1rem;
    }
    .floating-card span {
        font-size: 0.75rem;
    }
    .collection {
        padding: 3rem 5%;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .about {
        padding: 4rem 5%;
    }
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
    }
    .about-image {
        height: 400px;
    }
    .about-content h2 {
        font-size: 2.2rem;
    }
    .footer {
        padding: 3rem 5% 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }
    .footer-bottom > div {
        justify-content: center;
    }
    .dev-credit {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 0;
        border-bottom: 1px solid var(--glass-border);
    }
    .logo {
        font-size: 1.5rem;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--glass-shadow);
        
        max-height: 0;
        overflow: hidden;
        padding: 0 5%;
        opacity: 0;
        transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    }
    .nav-links.active {
        max-height: 300px;
        padding: 1.5rem 5%;
        opacity: 1;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-links a {
        font-size: 0.85rem;
        font-weight: 500;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-image {
        margin-bottom: 0.8rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .product-info .notes {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .price-action .price {
        font-size: 0.95rem;
    }
    
    .price-action .icon-btn {
        width: 30px;
        height: 30px;
    }
    
    .price-action .icon-btn i {
        width: 14px;
        height: 14px;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-image {
        order: -1;
        height: 300px;
    }
    .about-content h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        word-break: keep-all;
        hyphens: none;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .dev-credit {
        justify-content: center;
        font-size: 0.8rem;
    }
    .dev-avatar {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    /* Sur très petit écran, social links + dev-credit en colonne */
    .footer-bottom > div[style] {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-bottom {
        gap: 1rem;
        padding-top: 1.5rem;
    }
    .dev-credit {
        font-size: 0.78rem;
    }
}
