/* ===== GALERIE PAGE STYLES ===== */

/* Force overflow visible pour l'ombre */
body, html {
    overflow-x: visible !important;
}

/* Header and Navigation - Style original avec dégradé adouci */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.1) 85%, transparent 100%);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 80px; /* Taille ajustée pour correspondre au style */
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #f5f5f5; /* Couleur claire comme dans le style original */
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d4a76a; /* Couleur dorée pour l'état actif */
}

/* Hero Section - Clean and Chic Parallax */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px; /* Plus d'espace pour le header plus grand */
}

/* Background layer - simple white */
.parallax-bg-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1;
}

/* Text layer - moves with scroll - Position ajustée */
.parallax-title {
    position: absolute;
    top: 45%; /* Remonté de 55% à 45% pour être plus haut */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-section .parallax-title h1 {
    font-size: clamp(3rem, 8vw, 6rem); /* Taille réduite pour plus d'élégance */
    color: #d4a76a;
    font-weight: 300;
    letter-spacing: 6px;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Ombre subtile pour lisibilité */
}

.hero-section .parallax-title h1 span {
    color: #d4a76a;
    font-weight: 300;
}

/* Image layer - FIXED, never moves */
.parallax-bg-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/galerie/avant plan.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 3;
    pointer-events: none;
}

/* Snow cloud overlay - Realistic smoke effect */
.snow-cloud-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: 
        radial-gradient(ellipse at 20% 100%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 30%, transparent 70%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 40%, transparent 80%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 35%, transparent 75%),
        linear-gradient(to top, #f6f6f7 0%, rgba(246, 246, 247, 0.9) 20%, rgba(246, 246, 247, 0.5) 60%, transparent 100%);
    z-index: 4;
    opacity: 0;
    transition: opacity 0.8s ease;
    animation: smokeFloat 8s ease-in-out infinite;
}

@keyframes smokeFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0;
    }
    50% { 
        transform: translateY(-10px) scale(1.02);
        opacity: 1;
    }
}

/* Additional smoke particles */
.snow-cloud-overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: 
        radial-gradient(ellipse at 30% 90%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 95%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    animation: smokeFloat2 10s ease-in-out infinite reverse;
}

@keyframes smokeFloat2 {
    0%, 100% { 
        transform: translateY(5px) translateX(-2px);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-8px) translateX(2px);
        opacity: 0.7;
    }
}

/* Cloud transition element */
.cloud-transition {
    height: 120px;
    background: #f6f6f7;
    position: relative;
    z-index: 5;
}

/* ===== SECTION 1: LA PHOTOGRAPHIE ===== */
.photography-section {
    background: #f6f6f7;
    padding: 120px 0 200px;
    position: relative;
    overflow: visible !important;
}

.section-title {
    text-align: center;
    color: #d4a76a;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 80px;
    letter-spacing: 3px;
}

.gallery-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 120px 20px;
    overflow: visible;
}

.carousel-container {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 0 0 60px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-end;
    height: 480px;
    position: relative;
    padding-bottom: 80px;
    overflow: visible;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tailles par défaut - pyramide */
.carousel-track:not(:hover) .gallery-item:nth-child(1),
.carousel-track:not(:hover) .gallery-item:nth-child(5) {
    width: 180px;
    height: 280px;
    margin-top: 80px;
}

.carousel-track:not(:hover) .gallery-item:nth-child(2),
.carousel-track:not(:hover) .gallery-item:nth-child(4) {
    width: 200px;
    height: 320px;
    margin-top: 40px;
}

.carousel-track:not(:hover) .gallery-item:nth-child(3) {
    width: 220px;
    height: 360px;
    margin-top: 0px;
}

/* Animation hover exacte de test-galerie-exacte.html */
.carousel-track:hover .gallery-item:not(:hover) {
    width: 160px;
    height: 240px;
    margin-top: 100px;
    opacity: 0.7;
    transform: scale(0.95);
}

.carousel-track:hover .gallery-item:hover {
    width: 240px;
    height: 380px;
    margin-top: -10px;
    opacity: 1;
    transform: scale(1.05) translateY(-5px);
    z-index: 10;
    box-shadow: 
        0 70px 160px rgba(0, 0, 0, 0.45), 
        0 35px 80px rgba(0, 0, 0, 0.3), 
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

/* Effet de lueur pour l'image active */
.gallery-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4a76a, #f4d03f, #d4a76a, #e8c547);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item.active:hover::before {
    opacity: 1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(212, 167, 106, 0.4);
    }
    to {
        box-shadow: 0 0 40px rgba(212, 167, 106, 0.8), 0 0 60px rgba(212, 167, 106, 0.4);
    }
}

/* Ajout d'un indicateur de focus pour l'image active */
.gallery-item.active::after {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-item.active:hover::after {
    opacity: 1;
    transform: scale(1) rotate(360deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 15px 15px;
    color: white;
    text-align: center;
    transition: all 0.4s ease;
}

.gallery-item-overlay h3 {
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

/* Styles pour les liens galerie */
.gallery-item-clickable {
    position: relative;
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.gallery-link-hint {
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 1px;
    margin: 8px 0 0 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item-clickable:hover .gallery-link-hint {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-clickable::after {
    content: '→';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: #d4a76a;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 5;
    pointer-events: none;
}

.gallery-item-clickable:hover::after {
    opacity: 1;
    transform: scale(1) rotate(45deg);
}

/* Ajout d'informations supplémentaires pour l'image active */
.gallery-item.active .gallery-item-overlay::before {
    content: 'Cliquez pour voir plus';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.4s ease;
    color: #d4a76a;
    font-style: italic;
}

.gallery-item.active:hover .gallery-item-overlay::before {
    bottom: 5px;
    opacity: 1;
}

/* Navigation dots sous les images */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4a76a;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.dot.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Masquer les boutons de navigation */
.carousel-btn {
    display: none;
}

/* ===== SECTION 2: LA VIDÉO ===== */
.video-section {
    background: #f6f6f7;
    padding: 80px 0;
}

.video-title-section {
    background: transparent;
    padding: 0 0 60px;
    text-align: center;
}

.video-title-section h2 {
    color: #d4a76a;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 3px;
}

.video-player {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Masquer les SVG décoratifs */
.svg-frame-top,
.svg-frame-bottom {
    display: none;
}

/* ===== SECTION 3: LE DESSIN ET LA PEINTURE ===== */
.artwork-section {
    background: #f6f6f7;
    padding: 80px 0;
    position: relative;
}

.artwork-overlay {
    display: none;
}

.artwork-content h2 {
    text-align: center;
    color: #d4a76a;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 80px;
    letter-spacing: 3px;
}

.artwork-showcase {
    max-width: 1200px;
    margin: 0 auto 60px;
    text-align: center;
}

.main-artwork {
    width: 100%;
    max-width: 1000px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.artwork-description {
    display: none;
}

.artwork-gallery {
    display: none;
}

/* Bottom decoration */
.artwork-bottom,
.snowbottom {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .carousel-track {
        gap: 15px;
    }
    
    /* États par défaut pyramide - écran moyen */
    .carousel-track:not(:hover) .gallery-item:nth-child(1),
    .carousel-track:not(:hover) .gallery-item:nth-child(5) {
        width: 150px;
        height: 240px;
        margin-top: 60px;
    }
    
    .carousel-track:not(:hover) .gallery-item:nth-child(2),
    .carousel-track:not(:hover) .gallery-item:nth-child(4) {
        width: 170px;
        height: 280px;
        margin-top: 30px;
    }
    
    .carousel-track:not(:hover) .gallery-item:nth-child(3) {
        width: 190px;
        height: 320px;
        margin-top: 0px;
    }

    /* Effets hover responsive - écran moyen */
    .carousel-track:hover .gallery-item:not(:hover) {
        width: 130px;
        height: 200px;
        margin-top: 80px;
    }

    .carousel-track:hover .gallery-item:hover {
        width: 200px;
        height: 320px;
        margin-top: -5px;
        transform: scale(1.05) translateY(-3px);
        box-shadow: 
            0 50px 120px rgba(0, 0, 0, 0.4), 
            0 25px 60px rgba(0, 0, 0, 0.25), 
            0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 899px) {
    .photography-section,
    .video-section,
    .artwork-section {
        padding: 60px 0;
    }
    
    .section-title,
    .video-title-section h2,
    .artwork-content h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .carousel-track {
        height: 300px;
        gap: 10px;
    }
    
    /* États par défaut pyramide - tablette */
    .carousel-track:not(:hover) .gallery-item:nth-child(1),
    .carousel-track:not(:hover) .gallery-item:nth-child(5) {
        width: 100px;
        height: 160px;
        margin-top: 60px;
    }
    
    .carousel-track:not(:hover) .gallery-item:nth-child(2),
    .carousel-track:not(:hover) .gallery-item:nth-child(4) {
        width: 120px;
        height: 200px;
        margin-top: 30px;
    }
    
    .carousel-track:not(:hover) .gallery-item:nth-child(3) {
        width: 140px;
        height: 240px;
        margin-top: 0px;
    }

    /* Effets hover responsive - tablette */
    .carousel-track:hover .gallery-item:not(:hover) {
        width: 80px;
        height: 130px;
        margin-top: 70px;
    }

    .carousel-track:hover .gallery-item:hover {
        width: 160px;
        height: 260px;
        margin-top: -5px;
        transform: scale(1.05) translateY(-3px);
        box-shadow: 
            0 40px 100px rgba(0, 0, 0, 0.4), 
            0 20px 50px rgba(0, 0, 0, 0.25), 
            0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .video-player {
        height: 250px;
    }
    
    .main-artwork {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 120px; /* Ajusté pour le header plus grand */
        right: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background: rgba(0, 0, 0, 0.95); /* Fond noir comme le style original */
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
        margin-left: 0; /* Reset du margin-left */
    }
    
    .nav-links a {
        font-size: 1.2rem;
        color: #f5f5f5; /* Couleur claire maintenue */
    }
    
    /* Hero section responsive */
    .hero-section {
        padding-top: 140px; /* Plus d'espace pour mobile */
    }
    
    .hero-section .parallax-title h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
        letter-spacing: 4px;
    }

    /* Améliorer les interactions tactiles */
    .gallery-item {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Sur mobile, privilégier le tap/touch à la place du hover */
    .gallery-item:active {
        transform: scale(1.05) translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        z-index: 10;
    }
}

@media (max-width: 600px) {
    .hero-section .parallax-title h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    
    .photography-section,
    .video-section,
    .artwork-section {
        padding: 40px 0;
    }
    
    .section-title,
    .video-title-section h2,
    .artwork-content h2 {
        font-size: 1.8rem;
    }
    
    .carousel-track {
        height: 200px;
        gap: 8px;
    }
    
    /* États par défaut pyramide - mobile */
    .carousel-track:not(:hover) .gallery-item:nth-child(1),
    .carousel-track:not(:hover) .gallery-item:nth-child(5) {
        width: 60px;
        height: 100px;
        margin-top: 40px;
    }
    
    .carousel-track:not(:hover) .gallery-item:nth-child(2),
    .carousel-track:not(:hover) .gallery-item:nth-child(4) {
        width: 80px;
        height: 130px;
        margin-top: 20px;
    }
    
    .carousel-track:not(:hover) .gallery-item:nth-child(3) {
        width: 100px;
        height: 160px;
        margin-top: 0px;
    }

    /* Effets hover responsive - mobile */
    .carousel-track:hover .gallery-item:not(:hover) {
        width: 50px;
        height: 80px;
        margin-top: 50px;
    }

    .carousel-track:hover .gallery-item:hover {
        width: 120px;
        height: 190px;
        margin-top: -5px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    /* Désactiver certains effets sur mobile pour les performances */
    .carousel-track:hover .gallery-item:hover::before {
        display: none;
    }

    .carousel-track:hover .gallery-item:hover::after {
        font-size: 1rem;
        top: 10px;
        right: 10px;
    }

    /* Mode carousel pour mobile */
    .carousel-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        scroll-snap-align: center;
    }

    .gallery-item.active-slide {
        order: 0;
    }
    
    .video-player {
        height: 180px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .main-artwork {
        height: 150px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
