/* Variables CSS - Design Tokens révisées */
:root {
    /* Nouvelle palette de couleurs blanche */
    --bg-base: #FFFFFF;
    --bg-cream: #FFFFFF;
    --bg-light: #FFFFFF;
    --text: #2C2C2C;
    --text-dark: #1A1A1A;
    --muted: #6B7280;
    --overlay: rgba(255, 255, 255, 0.95);
    --overlay-light: rgba(255, 255, 255, 0.98);
    
    /* Accents par projet révisés pour mieux contraster */
    --accent-sage: #D8E8E4;
    --accent-window: #E2E9EF;
    --accent-jade: #DAE8E4;
    --accent-sand: #F2E9DD;
    --accent-leather: #EAE2D8;
    --accent-veil: #F9F5F7;
    --accent-concrete: #E8EAED;
    --accent-urban: #EDECED;
    
    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Empêcher complètement le défilement sur la homepage */
html, body {
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Désactiver la sélection de texte et d'images */
.homepage-container, .carousel-container, .carousel-slides, .carousel-slide, .carousel-slide img {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

/* Layout de la homepage */
.homepage-container {
    display: flex;
    height: 100vh; /* Utiliser toute la hauteur de la fenêtre */
    background-color: var(--bg-base);
    overflow: hidden; /* Empêcher tout débordement */
}

/* Colonne de gauche - Réduite */
.left-column {
    width: 28%; /* Réduit de 35% à 28% */
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Répartir l'espace entre le contenu et le footer */
    background-color: var(--bg-cream);
    /* Suppression du trait de séparation */
    overflow: hidden; /* Empêcher le défilement */
}

.artist-info {
    margin-bottom: var(--space-lg); /* Réduit pour rapprocher la navigation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.artist-main-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; /* Taille augmentée */
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-dark);
}

.artist-tagline {
    font-size: 1.2rem; /* Taille augmentée */
    color: var(--muted);
    font-weight: 300;
}

.left-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm); /* Espacement réduit */
    margin-top: 0; /* Suppression de l'espacement supplémentaire */
}

.nav-link {
    font-size: 1.4rem; /* Taille augmentée */
    padding: 0.5rem 0;
    transition: var(--transition);
    color: var(--text);
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Animation delays for nav items */
.nav-link.large-link {
    animation-delay: 0.2s;
    font-size: 1.8rem; /* Taille augmentée */
    font-weight: 500;
    margin-bottom: var(--space-xs); /* Espacement réduit */
}

.project-categories .nav-link:nth-child(1) { animation-delay: 0.3s; }
.project-categories .nav-link:nth-child(2) { animation-delay: 0.4s; }
.project-categories .nav-link:nth-child(3) { animation-delay: 0.5s; }
.project-categories .nav-link:nth-child(4) { animation-delay: 0.6s; }
.project-categories .nav-link:nth-child(5) { animation-delay: 0.7s; }

.left-nav .nav-link:nth-last-child(1) { animation-delay: 0.8s; }
.left-nav .nav-link:nth-last-child(2) { animation-delay: 0.9s; }
.left-nav .nav-link:nth-last-child(3) { animation-delay: 1.0s; }

/* Effet d'agrandissement au survol (remplace le soulignement) */
.nav-link:hover {
    transform: scale(1.05); /* Légère augmentation de taille */
}

.project-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Espacement réduit */
    margin-left: var(--space-sm);
    margin-bottom: var(--space-md);
}

.project-categories .nav-link {
    font-size: 1.2rem; /* Taille augmentée */
    color: var(--muted);
}

.project-categories .nav-link:hover {
    color: var(--text-dark);
}

.footer-left {
    display: flex;
    justify-content: flex-start; /* Alignement à gauche */
    align-items: center;
    gap: var(--space-sm);
}

/* Suppression du copyright */
.copyright-left {
    display: none; /* Masquer le copyright */
}

.social-links-left {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Taille augmentée */
    height: 40px; /* Taille augmentée */
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--text);
    color: white;
    transform: translateY(-3px);
}

/* Colonne de droite - Augmentée */
.right-column {
    width: 72%; /* Augmenté de 65% à 72% */
    position: relative;
    background-color: var(--bg-base);
    overflow: hidden; /* Empêcher le défilement */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-cream);
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Transition plus longue et plus douce */
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 95%; /* Images plus grandes */
    max-height: 95%;
    object-fit: contain;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header mobile (caché sur desktop) */
.mobile-only {
    display: none;
}

.homepage-mobile-only {
    display: none;
}

/* NOUVEAU HEADER MOBILE - Design révisé */
#homepage-mobile-header {
    position: relative;
    width: 100%;
    background: var(--bg-light);
    padding: 1.5rem 1rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mobile-title-container {
    flex: 1;
}

.mobile-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.1;
    cursor: pointer;
}

.mobile-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    font-weight: 300;
}

/* NOUVEAU MENU HAMBURGER FUTURISTE */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 101;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-toggle-bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
    position: relative;
}

/* Animation futuriste */
.mobile-menu-toggle.active {
    transform: rotate(180deg);
}

.mobile-menu-toggle.active .menu-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #4a90e2; /* Bleu futuriste */
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.6);
}

.mobile-menu-toggle.active .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .menu-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #4a90e2; /* Bleu futuriste */
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.6);
}

/* Effet de pulsation au survol */
.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle:hover .menu-toggle-bar {
    background-color: #4a90e2;
}

/* Menu mobile amélioré */
.mobile-nav-menu {
    display: none;
    flex-direction: column;
    padding: 1.5rem 0 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
    background: var(--overlay-light);
    backdrop-filter: blur(20px);
    border-radius: 0 0 12px 12px;
    transform-origin: top;
    animation: menuSlideDown 0.5s ease-out forwards;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.mobile-nav-menu.active {
    display: flex;
}

.mobile-nav-item {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 3px solid transparent;
}

.mobile-nav-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-item:hover {
    color: #4a90e2;
    padding-left: 2rem;
    border-left-color: #4a90e2;
    background: rgba(74, 144, 226, 0.05);
}

/* Effet de lueur futuriste */
.mobile-nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-item:hover::after {
    opacity: 1;
}

/* Footer pour les réseaux sociaux en mobile */
.mobile-social-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: var(--overlay);
    backdrop-filter: blur(10px);
    justify-content: center;
    z-index: 99;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.social-links-mobile {
    display: flex;
    gap: 1.5rem;
}

.social-link-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    color: var(--text-dark);
}

.social-link-mobile:hover {
    background-color: var(--text);
    color: white;
    transform: translateY(-3px);
}

/* Responsive Design - Version mobile uniquement */
@media (max-width: 768px) {
    /* Réactiver le défilement en mode mobile */
    html, body {
        overflow: auto;
        height: auto;
    }
    
    .homepage-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-column, .right-column {
        width: 100%;
    }
    
    .left-column {
        padding: 1rem;
        min-height: auto;
        justify-content: flex-start;
        display: none; /* Cacher la colonne de gauche en mobile */
    }
    
    .right-column {
        height: auto;
        order: -1; /* Placer la colonne de droite en premier */
    }
    
    .carousel-container {
        height: 60vh;
    }
    
    /* Afficher le header mobile */
    .homepage-mobile-only {
        display: block;
    }
    
    /* Ajustements pour mobile */
    .artist-info {
        margin-top: 20px;
        margin-bottom: var(--space-lg);
    }
    
    .project-categories {
        margin-left: 0;
    }
    
    .footer-left {
        margin-top: var(--space-xl);
        justify-content: center;
    }
    
    /* Afficher le footer mobile */
    .mobile-social-footer {
        display: flex;
    }
    
    /* Ajustement de l'espacement pour le nouveau header */
    .homepage-container {
        padding-top: 0;
    }
    
    #homepage-mobile-header {
        position: sticky;
        top: 0;
        background: var(--bg-light);
        z-index: 100;
    }
}

@media (max-width: 480px) {
    .left-column {
        padding: 0.5rem;
    }
    
    .artist-main-name {
        font-size: 2rem;
    }
    
    .nav-link.large-link {
        font-size: 1.4rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .project-categories .nav-link {
        font-size: 1rem;
    }
    
    .social-links-left {
        margin-top: var(--space-sm);
    }
    
    .mobile-main-title {
        font-size: 1.5rem;
    }
    
    .mobile-subtitle {
        font-size: 0.8rem;
    }
    
    .carousel-container {
        height: 50vh;
    }
}

/* Styles pour les placeholders de chargement du carousel */
.carousel-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.carousel-image {
    opacity: 1;
    transition: opacity 0.5s ease;
}