/* --- MODERN RESET & BASE --- */
:root {
    --color-bg-deep: #001220;
    --color-accent-teal: #00CED1;
    --color-accent-gold: #FFD700;
    --color-accent-red: #DC143C;
}

html, body {
    overflow-x: hidden;
    background-color: var(--color-bg-deep);
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    color: #ffffff;
    cursor: default; /* On garde le curseur par défaut mais on ajoute un follower */
}

/* --- BACKGROUND MESH --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 206, 209, 0.08), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(220, 20, 60, 0.08), transparent 40%);
    pointer-events: none;
}

/* --- HEADER --- */
.hero-header-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: -10%; /* Agrandir pour le parallax de l'intro */
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-image: url('https://images.unsplash.com/photo-1590523741831-ab7e8b8f9c7f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-color: #001e36; 
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradient renforcé : sombre en haut, transparent au milieu, TRÈS sombre en bas pour le texte qui remonte */
    background: linear-gradient(to bottom, 
        rgba(0,18,32,0.6) 0%, 
        rgba(0,18,32,0.1) 40%,
        rgba(0,18,32,0.8) 85%,
        rgba(0,18,32,1) 100%
    );
}

/* --- PHOTO CARDS (PARALLAX READY) --- */
.photo-card {
    position: relative;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
    /* Fallback gradients */
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); 
    transform: translateZ(0); /* Hardware accel */
}

.bg-moules { background: linear-gradient(135deg, #2C3E50, #4CA1AF); }
.bg-foie { background: linear-gradient(135deg, #ba8b02, #181818); }
.bg-veloute { background: linear-gradient(135deg, #11998e, #38ef7d); }
.bg-mer { background: linear-gradient(135deg, #00C9FF, #92FE9D); }
.bg-terre { background: linear-gradient(135deg, #f12711, #f5af19); }
.bg-dessert { background: linear-gradient(135deg, #4568DC, #B06AB3); }

.photo-card-bg {
    position: absolute;
    /* OVERSIZE POUR PARALLAX : L'image doit être plus grande que le conteneur */
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%; 
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    will-change: transform; /* Optimisation performance */
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,18,32,1) 0%, rgba(0,18,32,0.6) 50%, rgba(0,18,32,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    pointer-events: none; /* Laisse passer les clics si besoin */
}

/* --- SMART FLOATING NAV (DOCK) --- */
.smart-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Caché par défaut */
    z-index: 100;
    background: rgba(0, 18, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.smart-nav.visible {
    transform: translateX(-50%) translateY(0);
}

.nav-item {
    position: relative;
    padding: 10px 16px;
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icônes visibles sur mobile, Texte visible sur Desktop */
.nav-text { display: none; }
.nav-icon { font-size: 1.1rem; }

@media (min-width: 768px) {
    .nav-text { display: block; }
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: var(--color-accent-gold);
    color: var(--color-bg-deep);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* --- TYPOGRAPHY --- */
.font-editorial { font-family: 'Playfair Display', serif; }

.text-gold-gradient {
    background: linear-gradient(to right, #e3c469, #fbf5b7, #e3c469);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- UTILS --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}
::-webkit-scrollbar { display: none; }
