/* ===== CSS Variables ===== */
:root {
    --primary-dark: #1a1a1a;
    --primary-green: #3d4a3e;
    --accent-gold: #c9a96e;
    --accent-beige: #d4c4a8;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #f8f7f4;
    --bg-cream: #faf9f6;
    --white: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Top Bar ===== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: transparent;
    padding: 12px 0;
}

.top-bar-phone {
    font-size: 13px;
    color: var(--white);
    letter-spacing: 1px;
}

.top-bar-phone .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.language-switcher {
    font-size: 12px;
    letter-spacing: 1px;
}

.language-switcher a {
    color: rgba(255, 255, 255, 0.6);
}

.language-switcher a.active,
.language-switcher a:hover {
    color: var(--white);
}

.btn-book-now {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    padding: 10px 22px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-book-now:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-book-now-mobile {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 15px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: transparent !important;
    transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
    top: 0 !important;
    background: var(--white) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-scrolled .nav-link,
.navbar.navbar-scrolled .nav-link:link,
.navbar.navbar-scrolled .nav-link:visited {
    color: var(--text-dark) !important;
}

.navbar.navbar-scrolled .btn-book-now {
    border-color: var(--primary-dark) !important;
    color: var(--primary-dark) !important;
}

.navbar.navbar-scrolled .btn-book-now:hover {
    background-color: var(--primary-dark) !important;
    color: var(--white) !important;
}

/* Tel + Book Now dans la navbar — cachés par défaut, visibles au scroll */
.navbar-scrolled-only {
    display: none;
}

.navbar.navbar-scrolled .navbar-scrolled-only {
    display: flex;
}

.navbar-phone {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-dark);
}

/* Top bar toujours transparente, jamais de style Bootstrap par défaut */
.top-bar a,
.top-bar a:link,
.top-bar a:visited {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.top-bar .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Cacher la top-bar sur les pages internes (pas de hero) */
body:not(.has-hero) .top-bar {
    display: none !important;
}

body:not(.has-hero) .navbar {
    top: 0;
    background: var(--white) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body:not(.has-hero) .navbar .nav-link {
    color: var(--text-dark) !important;
}

body:not(.has-hero) .navbar .logo-text {
    color: var(--text-dark) !important;
}

body:not(.has-hero) .navbar .logo-stars {
    color: var(--accent-gold) !important;
}

body:not(.has-hero) .navbar .btn-book-now {
    border-color: var(--primary-dark) !important;
    color: var(--primary-dark) !important;
}

.navbar.navbar-scrolled .logo-text {
    color: var(--text-dark) !important;
}

.navbar.navbar-scrolled .logo-stars {
    color: var(--accent-gold) !important;
}

.navbar.navbar-scrolled + .top-bar,
.navbar-scrolled ~ .top-bar {
    display: none !important;
}

.navbar-dark .nav-link {
    color: var(--white) !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 15px !important;
}

.navbar-dark .nav-link:hover {
    color: var(--accent-gold) !important;
}

.navbar-light .nav-link {
    color: var(--text-dark) !important;
}

/* Logo */
.logo-container {
    text-align: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 6px;
    margin: 0;
    color: var(--white);
    display: block;
}

.navbar-scrolled .logo-text {
    color: var(--text-dark) !important;
}

.logo-stars {
    font-size: 5px;
    letter-spacing: 2px;
    margin-top: 3px;
    color: var(--white);
    display: block;
}

.logo-stars i {
    margin: 0 1px;
}

.navbar-scrolled .logo-stars {
    color: var(--accent-gold) !important;
}

/* Navbar Layout */
.navbar .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 991px) {
    .navbar .navbar-brand {
        position: relative;
        left: auto;
        transform: none;
    }
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    min-width: 200px;
    margin-top: 0 !important;
}

.dropdown-item {
    font-size: 13px;
    padding: 8px 25px;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--accent-gold);
}

/* Hover dropdowns */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
    /* Combler le gap entre le lien et le menu pour éviter qu'il se ferme */
    .navbar .dropdown > .dropdown-menu::before {
        content: '';
        display: block;
        height: 10px;
        margin-top: -10px;
        pointer-events: none;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-bottom: 100px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
}

/* Booking Form */
.booking-form-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.booking-form {
    background-color: var(--primary-green);
}

.booking-field {
    padding: 20px 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.booking-field:last-of-type {
    border-right: none;
}

.booking-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.booking-field .form-control,
.booking-field .form-select {
    background-color: transparent;
    border: none;
    color: var(--white);
    font-size: 14px;
    padding: 5px 25px 5px 0;
    height: auto;
    box-shadow: none;
    cursor: pointer;
}

.booking-field .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.booking-field .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.booking-field .form-select option {
    color: var(--text-dark);
    background: var(--white);
    padding: 10px;
}

.booking-submit {
    padding: 0;
    display: flex;
    align-items: stretch;
}

.btn-check-availability {
    background-color: var(--accent-beige);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 25px 35px;
    border: none;
    border-radius: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.btn-check-availability:hover {
    background-color: var(--accent-gold);
    color: var(--white);
}

/* ===== Section Styles ===== */
.section-subtitle {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== Welcome Section ===== */
.welcome-section {
    padding: 100px 0;
    background-color: var(--bg-cream);
}

/* Gallery Carousel */
.gallery-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 -15px;
}

.gallery-carousel {
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.gallery-slide {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
}

.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* ===== Accommodations Section ===== */
.accommodations-section {
    padding: 100px 0;
}

.accommodations-subtitle {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
}

/* Room Cards */
.room-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s ease;
}

.room-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.room-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-image {
    transform: scale(1.05);
}

.room-price {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 10px 15px;
    font-size: 12px;
}

.price-from {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 5px;
}

.price-period {
    font-size: 11px;
    color: var(--text-muted);
}

.room-content {
    padding: 25px 20px;
}

.room-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.room-name a {
    color: var(--text-dark);
}

.room-name a:hover {
    color: var(--accent-gold);
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.room-features i {
    margin-right: 5px;
    color: var(--accent-gold);
}

/* ===== Location Section ===== */
.location-section {
    background-color: var(--primary-dark);
}

.location-image {
    min-height: 500px;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-content {
    background-color: var(--primary-dark);
    min-height: 500px;
}

.location-text {
    max-width: 500px;
}

/* ===== Services Section ===== */
.services-section {
    padding: 100px 0;
}

.service-card {
    overflow: hidden;
}

.service-image-wrapper {
    overflow: hidden;
    height: 300px;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    padding: 25px 0;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-card .btn-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0;
}

.service-card .btn-link:hover {
    color: var(--accent-gold);
}

/* ===== Testimonial Section ===== */
.testimonial-section {
    padding: 100px 0;
    background-color: var(--bg-cream);
}

.testimonial-rating {
    color: var(--accent-gold);
    font-size: 18px;
    letter-spacing: 5px;
}

.testimonial-quote {
    border: none;
    padding: 0;
    margin: 0;
}

.testimonial-quote p {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-dark);
}

.testimonial-author {
    margin-top: 30px;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-source {
    color: var(--text-muted);
    margin-left: 5px;
}

.tripadvisor-logo {
    height: 40px;
    opacity: 0.5;
}

.tripadvisor-text {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.tripadvisor-text i {
    color: #00af87;
    font-size: 20px;
}

/* ===== Amenities Section ===== */
.amenities-section {
    padding: 100px 0;
}

.amenity-card {
    padding: 30px 15px;
    transition: all 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-5px);
}

.amenity-icon {
    font-size: 36px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.amenity-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid #eee;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
}

.newsletter-form .form-control {
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 15px 20px;
    font-size: 14px;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-dark);
    box-shadow: none;
}

.btn-newsletter {
    background-color: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: 0;
    padding: 15px 30px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-newsletter:hover {
    background-color: var(--accent-gold);
    color: var(--white);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-dark);
    margin-top: 0;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-links a:link,
.footer-links a:visited {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.footer-contact i {
    width: 20px;
    color: var(--accent-gold);
}

.footer-hours li {
    margin-bottom: 10px;
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links a,
.footer-bottom-links a:link,
.footer-bottom-links a:visited {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: var(--accent-gold);
}

/* ===== Messages ===== */
.messages-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

/* ===== Page Header (for inner pages) ===== */
.page-header {
    padding: 180px 0 100px;
    background-color: var(--primary-dark);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: var(--white);
}

.page-header .breadcrumb {
    justify-content: center;
    margin-top: 20px;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* ===== Room Detail ===== */
.room-hero {
    margin-top: 100px;
    max-height: 600px;
    overflow: hidden;
}

.room-hero img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.booking-sidebar {
    position: sticky;
    top: 120px;
    background: var(--white);
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.price-box {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* ===== Buttons ===== */
.btn-outline-dark {
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 35px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline-light {
    border: 1px solid var(--white);
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 35px;
    border-radius: 0;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-primary {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 35px;
    border-radius: 0;
}

.btn-primary:hover {
    background-color: #b8935d;
    border-color: #b8935d;
}

/* ===== Forms ===== */
.form-control,
.form-select {
    border-radius: 0;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-dark);
    box-shadow: none;
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 56px;
    }

    .gallery-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 991px) {
    .top-bar {
        display: none !important;
    }

    .navbar {
        top: 0;
        background: rgba(0, 0, 0, 0.8);
        padding: 15px 0;
    }

    .navbar.navbar-scrolled {
        background: var(--white);
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .booking-field {
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-check-availability {
        width: 100%;
        padding: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .location-section .row {
        flex-direction: column-reverse;
    }

    .location-content {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 80vh;
        min-height: 600px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-content {
        margin-bottom: 150px;
    }

    .gallery-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .gallery-image {
        height: 300px;
    }

    .room-image-wrapper {
        height: 220px;
    }

    .service-image-wrapper {
        height: 250px;
    }

    .testimonial-quote p {
        font-size: 22px;
    }

    .booking-sidebar {
        position: static;
        margin-top: 30px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Flatpickr Custom Styles ===== */
.flatpickr-calendar {
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.flatpickr-day:hover {
    background: var(--accent-beige);
    border-color: var(--accent-beige);
}
