:root {
    /* Colors - Inspired by BAVIA/BELLOA Luxury Minimalist aesthetic */
    --primary: #111111;
    /* Sophisticated Black */
    --secondary: #E8E0D5;
    /* Luxury Beige */
    --accent: #B04D3F;
    /* Keep a touch of Terracotta for heritage */
    --bg-light: #FDFBF9;
    /* Soft Off-white */
    --white: #FFFFFF;
    --border: #EEEEEE;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    /* Switched to Bold Sans-Serif */
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 120px 5%;
    --container-width: 1400px;

    /* Transitions */
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Loader Animation --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader-inner {
    text-align: center;
}

.loader-logo-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 15px;
    color: var(--primary);
    display: block;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: loaderTextFade 0.8s forwards 0.3s;
    text-transform: uppercase;
}

.loader-line {
    width: 0;
    height: 1px;
    background: var(--primary);
    margin: 0 auto;
    animation: loaderLineGrow 1.5s forwards 0.5s;
}

#loader.loaded {
    transform: translateY(-100%);
}

@keyframes loaderTextFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderLineGrow {
    to {
        width: 100%;
    }
}

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

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

body {
    background-color: var(--bg-light);
    color: var(--primary);
    font-family: var(--font-body);
    line-height: 1.5;
    letter-spacing: -0.01em;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

section,
main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /* Critical for animations/poking elements */
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .loader-logo-text {
        font-size: 2rem !important;
        letter-spacing: 8px !important;
    }
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

header.scrolled {
    padding: 20px 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.logo {
    grid-column: 2;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--primary);
    text-transform: uppercase;
}

.nav-links {
    grid-column: 1;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-icons {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-icons {
    display: flex;
    gap: 20px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 100px 5%;
    /* Adjusted for fixed header */
    text-align: center;
    background: var(--white);
    overflow: hidden;
    /* Contain the background image */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    /* Luxury veil overlay */
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-tagline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--primary);
    margin-bottom: 30px;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.2s;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 0.9;
    margin-bottom: 40px;
    color: var(--primary);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.4s;
}

.hero-p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--primary);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.6s;
    line-height: 1.4;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.8s;
}

.btn {
    padding: 20px 45px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

.btn::after {
    content: '↳';
    font-size: 1.2rem;
}

.hero-image {
    display: none;
    /* Removing huge floating image for cleaner centered look */
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.6;
}

/* --- Products Section --- */
.products {
    padding: var(--section-padding);
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.product-card {
    display: block;
    background: var(--white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    padding-bottom: 10px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.product-img {
    width: 100%;
    aspect-ratio: 0.85;
    margin-bottom: 25px;
    overflow: hidden;
    background: #F2F2F2;
    position: relative;
}

.product-img::after {
    content: 'VOIR LES DÉTAILS';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .product-img::after {
    transform: translateY(0);
}

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

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

.product-info {
    text-align: left;
}

.product-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-size: 1.1rem;
    margin: 0 0 10px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.product-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.product-card:hover .product-name::after {
    width: 100%;
}

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

/* --- Heritage Section --- */
.heritage {
    padding: 80px 10%;
    background: var(--secondary);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 80px;
}

.heritage-img {
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 0.7;
}

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

.heritage-content {
    padding: 50px;
}

.heritage h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1;
}

.heritage p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* --- Blog Section --- */
.blog {
    padding: var(--section-padding);
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-card {
    transition: var(--transition);
}

.blog-img {
    aspect-ratio: 1.5;
    background: #F2F2F2;
    margin-bottom: 25px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.blog-card p {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

/* --- Benefits --- */
.benefits {
    padding: 60px 5%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.benefits .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 40px;
    flex-wrap: wrap;
}

.benefit-item {
    flex: 1;
    min-width: 200px;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.benefit-item h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.benefit-item p {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- Heritage --- */
.heritage-tagline {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
    font-size: 0.8rem;
}

/* --- Newsletter --- */
.newsletter {
    padding: var(--section-padding);
    text-align: center;
    background: var(--secondary);
    color: var(--primary);
}

.newsletter h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.7;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 20px 30px;
    border: 1px solid var(--primary);
    border-right: none;
    background: transparent;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.newsletter input:focus {
    outline: none;
    background: var(--white);
}

.newsletter .btn {
    padding: 20px 40px;
}

/* --- Footer --- */
footer {
    padding: 100px 5% 40px;
    background: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
}

.footer-col h4 {
    margin-bottom: 30px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.footer-col ul li {
    margin-bottom: 15px;
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* --- Animations --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- Effortless Beauty Section --- */
.about-beauty {
    padding: var(--section-padding);
    background: var(--white);
}

.about-beauty h2 {
    font-size: 5rem;
    margin-bottom: 80px;
    line-height: 1.1;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-align: center;
}

.about-beauty-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.2fr;
    gap: 80px;
    align-items: end;
}

.about-beauty-left {
    text-align: left;
}

.about-beauty-left p {
    font-size: 1.1rem;
    margin-bottom: 60px;
    opacity: 0.8;
    max-width: 300px;
}

.about-beauty-left .side-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.about-beauty-center img {
    width: 100%;
    aspect-ratio: 0.75;
    object-fit: cover;
}

.about-beauty-right {
    text-align: left;
    padding-bottom: 60px;
}

.about-beauty-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.7;
}

/* --- Transparency Section --- */
.transparency {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.transparency-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 120px;
    align-items: center;
}

.transparency-content h2 {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.1;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.transparency-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.6;
}

.transparency-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 20px;
}

.collage-item-3 {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.transparency-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Decorative Dots --- */
.dot-marker-top {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 30px;
}

.dot-marker-left {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -80px;
    top: 25px;
}

.transparency-content {
    position: relative;
}

/* --- Mobile Specific Fixes & Utilities --- */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 20px;
    }

    .hero {
        padding: 80px 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .hero h1 {
        font-size: clamp(3rem, 8vw, 5rem);
    }

    .heritage {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .heritage-content {
        padding: 0;
    }

    .about-beauty-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-beauty-left p,
    .about-beauty-right p {
        max-width: 100%;
    }

    .about-beauty-right {
        padding-bottom: 0;
    }

    .about-beauty-center {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    header {
        grid-template-columns: 1fr auto 1fr;
        padding: 15px 20px;
    }

    .logo {
        grid-column: 2;
        text-align: center;
        font-size: 1.4rem;
        letter-spacing: 4px;
    }

    #menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        grid-column: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-icons {
        grid-column: 3;
        justify-content: flex-end;
        display: flex;
        gap: 15px;
    }

    /* Mobile Navigation Overlay */
    header .nav-links {
        position: fixed;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 2000;
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.5s;
        transform: translateX(-100%);
        visibility: hidden;
        display: flex;
        padding: 0;
        margin: 0;
        grid-column: auto;
        /* Avoid grid interference */
    }

    header .nav-links.mobile-active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-close {
        position: absolute;
        top: 25px;
        right: 25px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--primary);
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 2001;
    }

    .nav-close:hover {
        transform: rotate(90deg);
        opacity: 0.7;
    }

    header .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 0.7rem;
        letter-spacing: 4px;
        margin-bottom: 15px;
    }

    .hero-p {
        font-size: 0.95rem;
        padding: 0 20px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .about-beauty h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .transparency-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .transparency-content h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .transparency-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .transparency-collage {
        grid-template-columns: 1fr;
        /* Stack images for cleaner mobile layout */
        grid-template-rows: auto;
        gap: 20px;
    }

    .collage-item {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 300px;
    }

    .dot-marker-left {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .newsletter h2 {
        font-size: 2rem;
    }

    .newsletter form {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter input {
        border-right: 1px solid var(--primary);
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blog-card {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-background img {
        object-position: 60% center;
        /* Shifted left for better framing */
    }

    .hero-background::after {
        background: rgba(255, 255, 255, 0.6);
        /* More contrast for mobile readability */
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 30px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .blog-img {
        aspect-ratio: 1.2;
    }
}