@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-color: #ffffff;
    --fg-color: #000000;
    --accent-color: #ff0015;
    --secondary-bg: #f8f8f8;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --section-padding: 10rem 5%;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 2000px;
}

.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #111 100%);
    /* Transition simple d'opacité uniquement */
    transition: opacity 0.4s ease 0.2s;
    z-index: 1;
    /* Ombre portée qui évolue avec le mouvement */
    box-shadow: 20px 0 50px rgba(0,0,0,0.3);
    backface-visibility: hidden;
}

.preloader-dot {
    position: absolute;
    bottom: 5%;
    left: 5%;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 3;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    overflow: hidden;
}

.preloader-text {
    font-family: Didot, "Didot LT STD", "Hoefler Text", Garamond, serif;
    font-size: clamp(2.5rem, 12vw, 7rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5rem;
    /* On utilise la couleur d'accentuation ou blanc selon votre choix */
    color: #ffffff;
    white-space: nowrap;
    position: relative;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.preloader-text.active {
    transform: translateX(0);
    opacity: 1;
}

/* Preloader Exit State */
.preloader.loaded {
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s 1.5s; 
}

.preloader.loaded .preloader-bg {
    /* Le fond disparaît simplement pendant que le point explose */
    opacity: 0;
}

.preloader.dot-preparing .preloader-dot {
    /* Le point rouge gonfle quand le mot est en place */
    transform: scale(2.5);
}

.preloader.loaded .preloader-dot {
    /* Le point remplit l'écran puis disparaît en fondu */
    transform: scale(150);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.3s ease 0.4s;
}

.preloader.loaded .preloader-content {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

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

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

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

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #000;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Language Switcher */
.lang-switch {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    color: var(--fg-color);
}

.lang-switch:hover {
    background: var(--fg-color);
    color: var(--bg-color);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Hero Slideshow Style --- */
.hero-slideshow {
    height: 100vh;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.58));
    pointer-events: none;
}

.hero-carousel,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-carousel {
    z-index: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

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

.hero-content-overlay {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
    animation: heroFloat 6s ease-in-out infinite;
    will-change: transform;
}

.hero-content-overlay .h6 {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-content-overlay .h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #fff;
    margin-bottom: 2.5rem;
}

/* --- Rich Text Section --- */
.rich-text-section {
    padding: 6rem 5%;
    background: var(--bg-color);
    text-align: center;
}

.rich-text-section .h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.rich-text-section .prose p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    margin-bottom: 1.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Features Section --- */
.features-section {
    padding: 6rem 5%;
    background: rgb(243, 243, 243);
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item i {
    width: 28px;
    height: 28px;
    margin-bottom: 1.5rem;
    color: var(--fg-color);
    stroke-width: 1.5px;
}

.feature-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.85rem;
    opacity: 0.6;
    max-width: 240px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.container-xs {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Nouveautés Section --- */
.nouveautes-section {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('public/images/nouv.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.nouveautes-content .h6 {
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.link-underline {
    display: inline-block;
    margin-top: 2rem;
    border-bottom: 1px solid var(--fg-color);
    padding-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* --- Media Grid (Prestige Layout) --- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
    padding: 0 5% 10rem;
}

.media-grid-item {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.media-grid-item.large {
    grid-column: span 8;
    grid-row: span 2;
}

.media-grid-item.small {
    grid-column: span 4;
}

.media-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-grid-item:hover img {
    transform: scale(1.08);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.5s ease;
}

.media-grid-item:hover .media-overlay {
    background: rgba(0,0,0,0.3);
}

.media-overlay h3 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Enhanced Scrolling Banner --- */
.marquee-group {
    margin: 0;
    background: #ffffff;
}

.scrolling-banner.border-top { border-top: 1px solid #e8e8e8; }
.scrolling-banner.border-bottom { border-bottom: 1px solid #e8e8e8; }

.scrolling-banner.reverse .banner-track {
    animation-direction: reverse;
    color: rgba(0,0,0,0.3); /* Effet estompé comme sur le site source */
    background: #fff;
}

@media (max-width: 968px) {
    .media-grid {
        display: flex;
        flex-direction: column;
    }
    .media-grid-item.large, .media-grid-item.small {
        height: 400px;
    }

}

/* --- CTA Buttons Fix --- */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--fg-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
    background: transparent;
    color: var(--fg-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
    overflow: hidden;
    text-align: center;
}

.cta-button.secondary {
    border-color: #ffffff;
    color: #ffffff;
}

.cta-button.secondary::after {
    background: #ffffff;
}

.cta-button.secondary:hover {
    color: #000000 !important;
}

.cta-button:hover {
    color: var(--bg-color);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--fg-color);
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover::after {
    left: 0;
}

/* --- Scrolling Banner --- */
.scrolling-banner {
    min-height: 150px;
    background: #f7f7f7;
    color: rgba(0, 0, 0, 0.28);
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
}

.scrolling-banner.reverse {
    min-height: 105px;
    background: #ffffff;
}

.scrolling-banner.reverse .banner-track {
    color: rgba(0, 0, 0, 0.28);
    background: transparent;
}

.banner-track {
    display: flex;
    width: max-content;
    animation: scroll-banner 60s linear infinite;
    will-change: transform;
}

.banner-track span {
    font-family: var(--font-body);
    text-transform: uppercase;
    line-height: 1;
    color: inherit;
    padding-right: 6rem;
}

.scrolling-banner:not(.reverse) .banner-track span {
    font-size: clamp(3rem, 5.5vw, 5.25rem);
    font-weight: 500;
    letter-spacing: 0.18em;
}

.scrolling-banner.reverse .banner-track span {
    font-size: clamp(1.45rem, 2.7vw, 2.35rem);
    font-weight: 500;
    letter-spacing: 0.2em;
}

@keyframes scroll-banner {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 968px) {
    .scrolling-banner {
        min-height: 115px;
    }

    .scrolling-banner.reverse {
        min-height: 85px;
    }

    .scrolling-banner:not(.reverse) .banner-track span {
        font-size: clamp(2.25rem, 11vw, 3.3rem);
        letter-spacing: 0.12em;
    }

    .scrolling-banner.reverse .banner-track span {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        letter-spacing: 0.14em;
    }
}

/* --- Horizontal Selection --- */
.horizontal-selection {
    padding: 8rem 0;
    background: var(--secondary-bg);
}

.horizontal-scroll-wrapper {
    padding: 0 5%;
    position: relative;
}

.horizontal-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.scroll-controls {
    position: absolute;
    top: 50%;
    left: max(1rem, 2.5%);
    right: max(1rem, 2.5%);
    z-index: 8;
    display: flex;
    justify-content: space-between;
    gap: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.horizontal-selection:hover .scroll-controls,
.horizontal-selection:focus-within .scroll-controls {
    opacity: 1;
    visibility: visible;
}

.scroll-arrow {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--fg-color);
    pointer-events: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.scroll-arrow:hover {
    background: var(--fg-color);
    color: #fff;
    border-color: var(--fg-color);
    transform: scale(1.1);
}

.horizontal-scroll-container .product-card {
    min-width: 260px;
    scroll-snap-align: center;
}

/* --- Heritage Section --- */
.heritage-section {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('public/images/1.jpg') center/cover fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.heritage-overlay h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* --- Quote Section --- */
.quote-section {
    padding: 6rem 5%;
    background: var(--bg-color);
    text-align: center;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.2;
}

.quote-author {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 8rem 5%;
    background: rgb(255, 0, 0);
    color: #000000;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.newsletter-section .subtitle,
.newsletter-section p {
    color: rgba(0, 0, 0, 0.9);
}

.newsletter-section .h1 {
    color: #000000;
}

.newsletter-section .cta-button {
    border-color: #000000;
    color: #000000;
}

.newsletter-section .cta-button::after {
    background: #000000;
}

.newsletter-section .cta-button:hover {
    color: var(--accent-color);
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    margin-top: 3rem;
    gap: 1rem;
    flex-direction: column;
}

.newsletter-input {
    flex: 1;
    padding: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    font-family: var(--font-body);
    outline: none;
    text-align: center;
}

.newsletter-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* --- Boutique Section --- */
.boutique {
    padding: 8rem 5%;
    background: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

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

.section-title .accent-line {
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem 1.5rem;
    align-items: start;
}

.product-card {
    position: relative;
    overflow: visible;
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.product-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    background: #f6f5f2;
}

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

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

.product-info {
    padding: 1.25rem 0.2rem 0;
    text-align: center;
}

.product-category {
    display: none;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.2rem;
}

.product-name {
    font-family: var(--font-body);
    font-size: 0.72rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    overflow-wrap: anywhere;
}

.product-price {
    font-size: 0.78rem;
    line-height: 1.4;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.62);
    letter-spacing: 0.2em;
}

.quick-add-btn {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 5;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: var(--transition);
}

.product-card:hover .quick-add-btn,
.product-card:focus-within .quick-add-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.quick-add-btn:hover {
    background: var(--fg-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.add-to-cart-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: 1.2rem;
    background: var(--fg-color);
    color: var(--bg-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    z-index: 5;
}

.product-card:hover .add-to-cart-overlay {
    bottom: 0;
}

/* --- Cart Drawer --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.05);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 600;
}

.cart-footer {
    padding: 2rem;
    background: var(--secondary-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--fg-color);
    color: var(--bg-color);
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--accent-color);
    color: white;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* --- Atelier Section --- */
.atelier {
    padding: var(--section-padding);
}

.atelier-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8rem;
    align-items: center;
}

.atelier-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.atelier-text p {
    font-size: 1.15rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    max-width: 550px;
}

.atelier-image {
    position: relative;
    overflow: hidden;
}

.atelier-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: var(--transition);
}

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

/* --- Collections Section --- */
.collections {
    padding: var(--section-padding);
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.collection-item {
    position: relative;
    height: 650px;
    overflow: hidden;
    cursor: pointer;
    background: var(--secondary-bg);
}

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

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    transition: var(--transition);
}

.collection-item:hover img {
    transform: scale(1.1);
}

.collection-item:hover .collection-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.collection-overlay h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.collection-overlay span {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border-bottom: 1px solid white;
}

/* --- Contact Section --- */
.contact {
    padding: var(--section-padding);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.social-links a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 2.5rem;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--fg-color);
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

/* --- Footer --- */
footer {
    padding: 8rem 5% 4rem;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    text-align: center; /* Centre tout le contenu texte par défaut */
}

.footer-content {
    display: flex;
    justify-content: center; /* Centre les sections principales du pied de page */
    flex-wrap: wrap; /* Permet aux sections de s'enrouler sur les petits écrans */
    gap: 4rem; /* Ajoute un espacement entre les sections centrées */
    margin-bottom: 5rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    display: block;
    margin: 0 auto; /* Centre l'image du logo */
}

.footer-links {
    display: flex;
    gap: 8rem;
    justify-content: center; /* Centre les colonnes à l'intérieur de footer-links */
}

.footer-col h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--fg-color);
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
    justify-content: center; /* Centre les icônes sociales */
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1.5px solid #000000 !important; /* Bordure un peu plus épaisse */
    border-radius: 50%;
    color: #000000 !important;
    background: transparent;
    transition: all 0.3s ease;
}

.footer-socials a svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke: #000000 !important; /* Force le noir sur le trait */
    stroke-width: 2.5px !important; /* Traits plus épais pour le luxe */
    fill: none !important;
}

.footer-socials a:hover {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    transform: translateY(-3px);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0.4;
    filter: grayscale(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- Product Modal --- */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.product-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 860px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
}

.modal-product-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: flex-start;
}

.modal-images-section {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}

.main-modal-image {
    width: 100%;
    max-width: 100%;
    height: min(58vh, 460px);
    aspect-ratio: 4 / 5;
    background: #f7f7f7;
    overflow: hidden;
}

.main-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    display: block;
}

.modal-thumbnails {
    display: flex;
    gap: 0.65rem;
    align-self: stretch;
}

.modal-thumbnails img {
    width: 58px;
    height: 72px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.modal-thumbnails img.active,
.modal-thumbnails img:hover {
    opacity: 1;
}

.modal-details-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details-section h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.12;
}

.modal-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0.9rem 0;
}

.modal-description {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.modal-purchase-options {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 0;
}

.modal-option-label {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.modal-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.modal-size-option {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid #cfcfcf;
    background: transparent;
    color: var(--fg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-size-option.active {
    border-color: var(--fg-color);
}

.modal-quantity-picker {
    width: 168px;
    height: 48px;
    border: 1px solid #d8d8d8;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.modal-quantity-picker button,
.modal-quantity-picker span {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--fg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.modal-quantity-picker button {
    cursor: pointer;
    transition: var(--transition);
}

.modal-quantity-picker button:hover {
    background: #f3f3f3;
}

.modal-details-section .cta-button {
    padding: 0.9rem 1.2rem;
    font-size: 0.72rem;
    letter-spacing: 2px;
}

/* --- Filter Bar --- */
.filter-bar {
    background: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    flex: 1;
    position: relative;
}

#shopSearch {
    width: 100%;
    height: 3.5rem; /* Hauteur fixe pour un centrage parfait du curseur */
    padding: 0 1rem 0 3rem; /* On enlève le padding haut/bas pour laisser la hauteur gérer le centrage */
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: normal; /* Normalise la hauteur de ligne pour le curseur */
    transition: var(--transition);
    background: #ffffff;
    display: block;
}

.search-container i, 
.search-container svg {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    width: 18px;
    height: 18px;
    z-index: 2; /* Force l'icône au-dessus de l'input */
    pointer-events: none; /* Permet de cliquer à travers l'icône */
}

#shopSearch:focus {
    border-color: var(--fg-color);
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.filter-controls {
    display: flex;
    gap: 1.5rem;
}

.filter-controls select {
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    background: transparent;
    color: var(--fg-color);
    cursor: pointer;
}

.filter-mobile-btn {
    display: none; /* Caché par défaut sur PC */
}

/* --- Filter Modal --- */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.filter-modal.show {
    opacity: 1;
    visibility: visible;
}

.filter-modal .modal-content {
    max-width: 450px;
    text-align: center;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

/* Split Text Reveal */
.split-text {
    overflow: hidden;
    display: block;
}

.split-child {
    display: block;
    transform: translateY(110%);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.reveal.visible,
.split-text.visible .split-child {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/* Staggered delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}


/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 6.5rem; /* Remonté pour laisser la place au bouton boutique */
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-color);
    color: var(--fg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--fg-color);
    color: var(--bg-color);
    border-color: var(--fg-color);
}

/* Sur la page boutique, le bouton boutique est absent : on descend le bouton retour en haut à sa place */
.shop-page .back-to-top {
    bottom: 2rem;
}

/* --- Footer --- */
footer {
    padding: 8rem 5% 4rem;
    }
    

/* Fixed Shop Button */
.fixed-shop-button {
    position: fixed;
    bottom: 2rem; /* Placé tout en bas */
    right: 2rem;
    background: var(--accent-color);
    color: white;
    width: 48px;
    height: 48px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: black;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255, 0, 21, 0.3);
    z-index: 1500; /* Above most other elements but below modals */
    transition: var(--transition);
}

.fixed-shop-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fixed-shop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 21, 0.4);
}

.fixed-shop-button svg {
    width: 20px;
    height: 20px;
    stroke: rgb(0, 0, 0);
    stroke-width: 2;
}

@media (max-width: 768px) {
    .fixed-shop-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px; /* Augmenté de 44px à 56px */
        height: 56px; /* Augmenté de 44px à 56px */
        font-size: 0.9rem;
    }

    .back-to-top {
        bottom: 6rem; /* Ajusté pour laisser la place au bouton plus grand en dessous */
        right: 1.5rem;
        width: 56px; /* Augmenté de 44px à 56px */
        height: 56px; /* Augmenté de 44px à 56px */
    }

    .shop-page .back-to-top {
        bottom: 1.5rem;
    }

    .fixed-shop-button svg {
        width: 24px; /* Icône plus grande pour la lisibilité */
        height: 24px;
    }

    .back-to-top i {
        transform: scale(1.2); /* Agrandit l'icône de la flèche */
    }
}

/* --- Footer --- */
footer {
    padding: 8rem 5% 4rem;
}
/* Responsive adjustments */
@media (max-width: 968px) {

    :root {
        --section-padding: 5rem 6%;
    }

    .nouveautes-section {
        background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('public/images/hh.jpg') center/cover no-repeat;
        height: 70vh; /* Ajustement optionnel de la hauteur pour mobile */
    }

    .rich-text-section {
        padding: 5rem 6%;
    }

    .rich-text-grid {
        grid-template-columns: 1fr;
    }

    .atelier-content,
    .contact-container,
    .collection-grid,
    .footer-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

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

    .heritage-section h2 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none; /* Cache les liens sur mobile car ils surchargent le header sans menu burger */
    }

    .cart-drawer {
        width: 100%;
    }

    .modal-content {
        padding: 1rem 0.85rem;
        width: 95%;
        margin: 10px auto;
    }

    .modal-product-container {
        grid-template-columns: 1fr;
        gap: 1rem; /* Espace réduit entre l'image et le texte */
    }

    .main-modal-image {
        height: min(36vh, 320px);
    }

    .main-modal-image img {
        object-fit: contain;
    }

    .modal-thumbnails img {
        width: 42px;
        height: 54px;
    }

    .modal-details-section h2 {
        font-size: 1.3rem;
    }

    .modal-price {
        font-size: 1.05rem;
        margin: 0.45rem 0;
    }

    .modal-description {
        font-size: 0.78rem;
        line-height: 1.35;
        margin-bottom: 0.75rem;
    }

    .modal-purchase-options {
        gap: 0.85rem;
        margin-top: 0.75rem;
    }

    .modal-size-option {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .modal-quantity-picker {
        width: 100%;
        max-width: 168px;
        height: 46px;
    }

    .modal-details-section .cta-button {
        padding: 0.8rem 1rem;
        font-size: 0.66rem;
    }

    .boutique {
        padding: 2rem 6% !important; /* Augmente la marge sur les côtés pour décoller les cartes des bords */
    }

    .filters {
        padding: 0 6% 2rem !important; /* Aligne la section filtres avec la boutique */
    }

    .filter-bar {
        flex-direction: column; /* Empile les éléments verticalement sur mobile */
        gap: 1.5rem;
        padding: 1.5rem; /* Garde le rembourrage de la boîte sur mobile */
    }

    #shopSearch {
        font-size: 16px; /* Empêche le zoom sur mobile */
        height: 3.2rem; /* Légèrement plus compact sur mobile */
    }

    .filter-controls {
        flex-direction: column; /* Aligne les éléments de sélection verticalement */
        gap: 0.8rem;
        width: 100%;
    }

    .filter-controls select {
        padding: 0.5rem; /* Taille réduite pour un look plus fin */
        font-size: 0.65rem; /* Police plus petite et minimaliste */
        color: var(--fg-color); /* Assure un texte noir */
        text-align: center;
        text-align-last: center; /* Centre le texte à l'intérieur du select sur mobile */
        border: 1px solid rgba(0, 0, 0, 0.1); /* Bordure plus légère et esthétique */
        border-radius: 0; /* Look plus "couture" et carré */
        letter-spacing: 1px;
        /* Les commentaires pour l'image de fond de la flèche personnalisée restent inchangés.
           Si une flèche de système bleue apparaît, une image SVG personnalisée serait nécessaire
           pour la rendre noire. */
    }

    .filter-mobile-btn {
        display: none; /* Cache le bouton mobile car les sélecteurs sont maintenant affichés directement */
    }

    .quick-add-btn {
        bottom: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 1rem;
    }

    .horizontal-scroll-wrapper {
        padding: 0 6%;
    }

    .horizontal-scroll-container {
        gap: 1.5rem;
    }

    .horizontal-scroll-container .product-card {
        min-width: 78%;
    }

    .product-info {
        padding: 1rem 0.15rem 0;
    }

    .product-name {
        font-size: 0.64rem;
        letter-spacing: 0.18em;
    }

    .product-price {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .footer-links {
        gap: 2.5rem;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 1rem;
    }

    .atelier-image img {
        height: 400px;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
}
