/* Styles globaux */
:root {
    --primary-color: #111111;
    --secondary-color: #c5a059; /* Or pour titres et accents */
    --secondary-dark: #a17f43;  /* Or plus profond pour lisibilité sur blanc */
    --accent-color: #e8e2d6;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted-dark: #666666;
    --text-muted-light: #fdfcf9; /* Pour texte sur fond noir */
    --bg-light: #fdfcf9;
    --font-titles: 'Playfair Display', serif;
    --font-text: 'Open Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilitaires de contraste */
.text-on-dark {
    color: var(--text-light) !important;
}

.text-muted-on-dark {
    color: var(--text-muted-light) !important;
}

.gold-text {
    color: var(--secondary-color) !important;
}

.gold-text-dark {
    color: var(--secondary-dark) !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Global Typography & Fluidity */
h1 {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

@media (max-width: 768px) {
    section {
        padding: 60px 0 !important;
    }
    
    .hero {
        height: auto !important;
        min-height: 70vh !important;
        padding: 80px 0 !important;
    }

    .hero p {
        font-size: 1.1rem !important;
        br { display: none; }
    }

    /* Fix overflow from offset shadows */
    img[style*="box-shadow: 20px 20px"] {
        box-shadow: 10px 10px 0px var(--secondary-color) !important;
    }

    /* Global fluid fixes */
    [style*="min-width: 300px"], [style*="min-width:300px"] {
        min-width: min(280px, 100%) !important;
    }

    [style*="gap: 60px"], [style*="gap: 40px"] {
        gap: 20px !important;
    }

    .container {
        overflow-x: hidden; /* Prevent horizontal scroll within containers */
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

/* Header & Nav */
.header {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.header.scrolled {
    padding: 12px 0;
    background: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.dropbtn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: block;
    position: absolute;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(15px);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 15px 0;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

/* Show on Hover */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropbtn {
    color: var(--secondary-color);
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg);
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    display: block;
    font-size: 0.8rem !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    border: none !important;
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--secondary-color) !important;
}

/* Mobile Dropdown Adjustments */
@media (max-width: 1024px) {
    .dropdown {
        width: 100%;
    }

    .dropbtn {
        font-size: 1.2rem;
        justify-content: center;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none; /* Hidden on mobile until click */
        transform: none;
        padding: 0;
        min-width: auto;
        border: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        font-size: 1rem !important;
        padding: 10px 0;
        opacity: 0.8;
    }
}

.nav-list a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active::after {
    width: 100%;
}

/* Bouton Réserver Spécifique */
.btn-book {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    border: 2px solid var(--secondary-color) !important;
    transition: all 0.3s ease !important;
}

.btn-book:hover {
    background: transparent !important;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.btn-book::after {
    display: none !important; /* Pas de ligne sous le bouton */
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 18px;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hamburger:hover span {
    background-color: var(--secondary-color);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--secondary-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

.footer-social {
    margin-bottom: 30px;
}

.footer-social a {
    font-size: 1.5rem;
    margin: 0 15px;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 120px 30px 40px;
        text-align: left;
        z-index: 999;
        overflow-y: auto;
        gap: 15px;
        box-shadow: -10px 0 35px rgba(0,0,0,0.6);
        border-left: 1px solid rgba(197, 160, 89, 0.15);
        transition: right 0.45s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(25px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-list.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-list.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-list.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-list.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-list.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-list.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-list.active li:nth-child(7) { transition-delay: 0.4s; }
    .nav-list.active li:nth-child(8) { transition-delay: 0.45s; }

    .nav-list a {
        font-size: 1.05rem;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        letter-spacing: 1.5px;
    }

    .nav-list a::after {
        display: none !important;
    }

    .btn-book {
        margin-left: 0 !important;
        margin-top: 15px;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem !important;
    }
    .logo img {
        height: 40px !important;
    }
}

/* ==========================================================================
   DYNAMIC DESIGN UPGRADE (2026 Premium Micro-Animations)
   ========================================================================== */

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium micro-hover effects for cards */
.card, .service-card, .faq-card {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: none !important; /* Remove borders globally for a sleek d'art look */
}

.card:hover, .service-card:hover {
    transform: translateY(-8px) scale(1.008) !important;
    box-shadow: 0 25px 50px rgba(197, 168, 128, 0.15) !important;
}

/* Home Page Service Cards (Tiles) Premium upgrades */
.card div[style*="position: relative"] {
    overflow: hidden;
    border-radius: 15px 15px 0 0; /* Align with top card corners */
}

.card div[style*="position: relative"] img {
    transform: scale(1.05) !important; /* Zoom in slightly to hide any baked-in photo borders */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.card:hover div[style*="position: relative"] img {
    transform: scale(1.12) !important;
}

/* Premium image hover scales */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.gallery-item img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.gallery-item:hover img {
    transform: scale(1.04) !important;
}

/* Dynamic FAQ accordion states - Luxury Glassmorphic Redesign */
.faq-card {
    cursor: pointer;
    border: 1px solid rgba(197, 160, 89, 0.15) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 25px 30px !important;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.faq-card:hover {
    border-color: rgba(197, 160, 89, 0.4) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.12) !important;
}

.faq-card.active {
    border-color: var(--secondary-color) !important;
    background: rgba(253, 252, 249, 0.98) !important;
    box-shadow: 0 25px 50px rgba(197, 160, 89, 0.18) !important;
}

.faq-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--secondary-dark));
    border-radius: 20px 0 0 20px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), 
                opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), 
                margin-top 0.4s ease;
    margin-top: 0;
    color: var(--text-muted-dark);
    font-size: 0.98rem;
    line-height: 1.8;
}

.faq-card.active .faq-answer {
    max-height: 600px;
    opacity: 1;
    margin-top: 20px;
    padding-bottom: 10px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.faq-question h3 {
    margin: 0 !important;
    font-size: 1.2rem;
    font-family: var(--font-titles);
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.4s ease;
    letter-spacing: 0.5px;
}

.faq-card.active .faq-question h3 {
    color: var(--secondary-dark);
}

.faq-question .chevron-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 89, 0.05);
    border-radius: 50%;
    color: var(--secondary-color);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 0.85rem;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.faq-card.active .chevron-icon {
    transform: rotate(180deg);
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}
