/* Variables CSS - Design Tokens révisées */
:root {
    /* Nouvelle palette de couleurs crème */
    --bg-base: #F8F6F2;
    --bg-cream: #F5F1E8;
    --bg-light: #FFFDF9;
    --text: #2C2C2C;
    --text-dark: #1A1A1A;
    --muted: #6B7280;
    --overlay: rgba(248, 246, 242, 0.95);
    --overlay-light: rgba(255, 253, 249, 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);
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.2;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Nouveau Header avec hotbar - Version améliorée */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md) 0;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background-color: var(--overlay);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 60px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.artist-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    color: var(--text-dark);
}

/* Changement de couleur du nom quand on scroll */
header:not(.scrolled) .artist-name {
    color: var(--text-dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

header.scrolled .artist-name {
    color: var(--text-dark);
}

.artist-name:hover {
    transform: scale(1.05);
}

/* Barre de soulignement animée */
.artist-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.artist-name:hover::after,
.artist-name.active::after {
    width: 100%;
}

/* Hotbar navigation - Version crème/clair */
.hotbar-nav {
    display: flex;
    gap: var(--space-md);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--overlay-light);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-md);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hotbar-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-item {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--text-dark);
}

.nav-item:hover {
    background: var(--text-dark);
    color: var(--bg-light);
}

/* Footer */
footer {
    padding: var(--space-xl) 0;
    background-color: var(--bg-cream);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    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);
}

.social-link:hover {
    background-color: var(--text);
    color: white;
    transform: translateY(-3px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 4rem;
    }
    
    .hotbar-nav {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-sm);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-links, .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .artist-name {
        font-size: 1.5rem;
    }
    
    .nav-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Optimisations de performance pour toutes les images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}