:root {
    --gold: #d4af37;
    --black: #0d0d0d;
    --white: #ffffff;
    --guerlain-white: #faf8f5;
    --serif: 'Playfair Display', serif;
    --sans-serif: 'Montserrat', sans-serif;
}

body.home-page {
    margin: 0;
    padding: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--sans-serif);
    overflow: hidden;
    transition: all 0.3s ease;
}

body.home-page.scrolling {
    transform: scale(0.98);
}

/* Navbar TOUJOURS visible et fonctionnelle */
.navbar,
.navbar-nav,
nav,
header {
    z-index: 9999 !important;
}

/* Masquer la navbar pendant le scroll sur mobile */
.navbar,
nav,
header {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.3s ease,
                backdrop-filter 0.3s ease;
    z-index: 9999 !important;
}

/* Animation élégante de disparition */
.navbar.hiding,
nav.hiding,
header.hiding {
    transform: translateY(-100%) scale(0.95);
    opacity: 0;
    backdrop-filter: blur(20px);
}

.fullscreen-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* En dessous de la navbar */
}



.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Smooth scrolling pour mobile */
@supports (scroll-behavior: smooth) {
    .fullscreen-carousel {
        scroll-behavior: smooth;
    }
}

.product-image-zone {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transform: scale(1);
    transition: transform 1s ease;
}

/* === CORRECTION ZOOM IMAGES DESKTOP === */
@media (min-width: 1024px) {
    .product-image {
        object-fit: cover; /* Garde l'image entière visible */
        object-position: center center; /* Centre parfaitement l'image */
        transform: scale(1); /* Réduit légèrement pour éviter le débordement */
        transition: transform 1s ease, object-fit 0.3s ease;
    }
    
    /* Effet de survol subtil pour desktop */
    .fullscreen-slide:hover .product-image {
        transform: scale(0.95);
    }
}

.promotion-badge,
.product-special-badge,
.savings-badge {
    position: absolute;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.promotion-badge {
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--black);
}

.product-special-badge {
    top: 1rem;
    left: 1rem;
    background: var(--white);
    color: var(--black);
}

.savings-badge {
    top: 3rem;
    right: 1rem;
    background: var(--black);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.content-zone {
    position: absolute;
    left: 5rem;
    top: 50%;
    transform: translateY(-50%);
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10; /* Assurer que le contenu est au-dessus de l'image */
}

.signature-text {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: var(--sans-serif);
    position: relative;
}

.signature-text::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #d4af37 0%, transparent 100%);
}

.product-title {
    font-family: var(--serif);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    color: #1a1a1a;
    text-transform: none;
    letter-spacing: -0.02em;
    position: relative;
}

.product-title::first-letter {
    font-size: 1.3em;
    font-weight: 400;
    color: #d4af37;
}

.product-subtitle {
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(13,13,13,0.75);
    margin-bottom: 2rem;
    line-height: 1.5;
    font-family: var(--serif);
    position: relative;
    padding-left: 1rem;
}

.product-subtitle::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-size: 1.5rem;
    color: #d4af37;
    font-family: var(--serif);
}

.product-subtitle::after {
    content: '"';
    margin-left: 0.2rem;
    color: #d4af37;
    font-family: var(--serif);
}

.buttons-container {
    margin-top: 2rem;
    position: relative;
    z-index: 10; /* Assurer que les boutons sont au-dessus */
}

.discover-button {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: none;
    color: #ffffff;
    padding: 1rem 3rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    font-family: var(--sans-serif);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100; /* Assurer que le bouton est cliquable */
    cursor: pointer;
}

.discover-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.6s ease;
}

.discover-button:hover::before {
    left: 100%;
}

.discover-button:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.discover-button::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.discover-button:hover::after {
    transform: translateX(5px);
}

.carousel-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 100;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    border-color: var(--white);
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 15px rgba(255,255,255,0.6);
}

.nav-dot.active::before {
    background: var(--black);
}

.footer-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    padding: 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer-grid h5 {
    font-family: var(--serif);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

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

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 991px) {
    .carousel-nav { 
        display: none; 
    }
    
    /* Carousel EN DESSOUS de la navbar */
    .fullscreen-carousel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        z-index: 1; /* Très bas pour laisser place à la navbar */
    }
    
    /* NAVBAR fonctionnelle sur mobile */
    .navbar,
    nav,
    header {
        z-index: 9999 !important;
    }
    
    /* Navbar reste fixe en haut */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }
    
    .carousel-slide {
        position: relative;
        scroll-snap-align: start;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height */
        height: 100vh;
        height: 100dvh;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none;
    }
    
    .carousel-slide.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .product-image-zone {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .content-zone {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        transform: none;
        max-width: 100%;
        padding: 8rem 2rem 3rem 2rem;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background: linear-gradient(
            135deg, 
            rgba(0,0,0,0.8) 0%, 
            rgba(0,0,0,0.4) 40%, 
            rgba(0,0,0,0.1) 70%, 
            rgba(0,0,0,0.7) 100%
        );
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .content-top {
        flex: 0 0 auto;
        margin-top: 0;
        text-align: left;
    }
    
    .signature-text {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
        color: #f4c430;
        font-weight: 600;
        text-transform: uppercase;
    }
    
    .product-title { 
        font-size: 2.8rem;
        line-height: 1.0;
        margin-bottom: 0.8rem;
        text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
        font-weight: 800;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
    
    .product-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
        font-style: italic;
        color: rgba(255,255,255,0.95);
        font-weight: 300;
        line-height: 1.4;
    }
    
    .buttons-container {
        margin-top: auto;
        margin-bottom: 3rem;
        text-align: center;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Badges repositionnés bien plus bas */
    .promotion-badge {
        top: 12rem;
        right: 1rem;
        background: rgba(244, 196, 48, 0.9);
        color: var(--black);
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
    }
    
    .product-special-badge {
        top: 12rem;
        left: 1rem;
        background: rgba(255, 255, 255, 0.9);
        color: var(--black);
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        border-radius: 15px;
    }
    
    .savings-badge {
        top: 14.5rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(244, 196, 48, 0.8);
        color: #f4c430;
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
        border-radius: 12px;
    }
    
    .discover-button {
        display: inline-block;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
        border: 2px solid var(--white);
        color: var(--white);
        padding: 1.2rem 3rem;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.15em;
        border-radius: 50px;
        transition: all 0.3s ease;
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        font-weight: 600;
    }
    
    .discover-button:hover {
        background: var(--white);
        color: var(--black);
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
    }
    
    /* Badges positionnés correctement */
    .promotion-badge {
        top: calc(2rem + env(safe-area-inset-top, 0px));
        right: 1rem;
    }
    
    .product-special-badge {
        top: calc(2rem + env(safe-area-inset-top, 0px));
        left: 1rem;
    }
    
    .savings-badge {
        top: calc(4rem + env(safe-area-inset-top, 0px));
        right: 1rem;
    }
    
    /* Style spécial pour le footer sur mobile */
    .footer-slide .footer-content {
        padding: 2rem 1rem;
        padding-top: calc(2rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .newsletter-form input {
        padding: 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        border-radius: 25px;
    }
    
    .newsletter-form input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }
}
