/* CSS Navbar pour les pages autres que la landing page */
/* Sur ces pages, uniquement la top navbar est visible, pas de sidebar */

/* Global overflow prevention - Empêcher toute scrollbar horizontale */
html {
    overflow-x: hidden !important;
    overflow-y: auto;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100vw;
}

body {
    overflow-x: hidden !important;
    overflow-y: auto;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    position: relative;
}

/* Forcer tous les éléments enfants à ne pas déborder horizontalement */
* {
    max-width: 100%;
}

html, body, .main-content, section, header, main, footer {
    max-width: 100vw !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* MASQUER COMPLÈTEMENT LA SIDEBAR SUR TOUTES LES PAGES NON-LANDING */
#sidebar-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Top Navigation - Toujours visible sur les pages */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 1100;
    border-bottom: 1px solid rgba(191, 149, 63, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.top-nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.875rem 3rem; /* Encore plus de padding pour éloigner le logo du bord */
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Section logo + titre à gauche */
.top-nav-logo-section {
    display: flex;
    align-items: center;
    gap: 4rem; /* Encore plus d'espace entre le logo et "L'or sombre" */
    margin-left: 2rem; /* Décaler toute la section vers la droite */
    margin-right: auto; /* Pousse les autres éléments vers la droite */
}

/* Logo avec fond style sidebar pour la navbar top */
.logo-button-topnav {
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: #f2e9e3;
    border: 2px solid #BF953F;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 50px;
    display: flex;
    align-items: center;
}

.logo-button-topnav img {
    height: 35px;
    width: auto;
    display: block;
    position: relative;
    z-index: 2;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;
}

.shine-effect-topnav {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(208, 184, 170, 0.8) 50%, transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.logo-button-topnav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 149, 63, 0.4);
    border-color: #D4AF37;
}

.logo-button-topnav:hover .shine-effect-topnav {
    opacity: 1;
    animation: shine-slide 1s ease-in-out;
}

.logo-button-topnav:active {
    transform: translateY(0);
}

@keyframes shine-slide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Lien du titre "L'or sombre" dans la navbar top */
.top-nav-title-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.top-nav-title-link:hover {
    transform: scale(1.05);
}

/* Titre "L'or sombre" dans la navbar top */
.top-nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(145deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Réseaux sociaux à droite */
.top-nav-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem; /* Espace entre le bouton Réserver et les réseaux */
    padding-right: 1rem; /* Padding pour éloigner du bord droit */
}

@media (max-width: 1023px) {
    .top-nav-social {
        display: none; /* Masquer sur mobile car déjà dans le menu mobile */
    }
}

.top-nav-list {
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 55%; /* Décaler vers la droite au lieu de 50% */
    transform: translateX(-50%); /* Centrer les liens */
}

/* Afficher la liste sur desktop, cacher sur mobile */
@media (min-width: 1024px) {
    .top-nav-list {
        display: flex !important;
    }
}

@media (max-width: 1023px) {
    .top-nav-list {
        display: none !important;
    }
}

.top-nav-item {
    color: #F0EDE5;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.top-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #BF953F, #AA771C);
    transition: transform 0.3s ease;
}

.top-nav-item:hover,
.top-nav-item.active-nav-link {
    color: #FCF6BA;
    background: rgba(191, 149, 63, 0.1);
}

.top-nav-item:hover::after,
.top-nav-item.active-nav-link::after {
    transform: translateX(-50%) scaleX(1);
}

/* Style spécial pour le bouton Réserver dans la navbar supérieure */
.top-nav-item[href="#booking"],
.top-nav-item[href="index.html#booking"] {
    background: linear-gradient(135deg, #BF953F 0%, #AA771C 100%);
    border-radius: 8px;
    padding: 10px 20px !important;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.3);
    color: #000 !important;
    margin-left: 5rem; /* Encore plus d'espace à gauche du bouton Réserver */
}

.top-nav-item[href="#booking"]:hover,
.top-nav-item[href="index.html#booking"]:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #BF953F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 149, 63, 0.5);
}

.top-nav-item[href="#booking"]::after,
.top-nav-item[href="index.html#booking"]::after {
    display: none; /* Pas besoin du soulignement pour le bouton */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.mobile-menu-open {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(191, 149, 63, 0.2);
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-item {
    padding: 1rem 1.5rem;
    color: #F0EDE5;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-item:hover,
.mobile-menu-item.active-nav-link {
    background: rgba(191, 149, 63, 0.1);
    color: #FCF6BA;
}

/* Main content sans offset de sidebar */
.main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: visible;
    position: relative;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-top: 80px; /* Espace pour la navbar fixe */
    min-height: 100vh;
    box-sizing: border-box;
}

/* Toutes les sections */
section, header, main, footer {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

/* Containers */
.container, .max-w-4xl, .max-w-6xl, .max-w-3xl {
    max-width: 100% !important;
    overflow-x: hidden;
    box-sizing: border-box;
}
