/* ===================================
   Variables CSS
   =================================== */
:root {
    --primary-color: #ab8965;
    /* Gold/Brown from target */
    --secondary-color: #8b6f63;
    --bg-color: #181818;
    /* Dark background */
    --dark-color: #000000;
    --light-color: #2c2c2c;
    --white: #ffffff;
    --text-color: #acacac;
    /* Light grey text */
    --text-light: #888888;

    --font-heading: 'Montserrat';
    --font-body: 'Jost', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ===================================
   Layout
   =================================== */
.container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
    /* padding-top: 360px; */
    /* Header Height (260 + 75) + buffer */
}

.main-content {
    min-height: 100vh;
}

/* ===================================
   Boutons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 500;
    text-align: center;
    border-radius: 0;
    /* Square edges as per premium look usually, or check specific target style */
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-reservation {
    background-color: transparent;
    color: var(--white);
    padding: 15px 35px;
    border: 1px solid rgba(171, 137, 101, 0.5);
    /* Subtle border */
    border-radius: 0;
    font-size: 1.1rem;
}

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

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.site-header.scrolled {
    background-color: rgba(24, 24, 24, 0.95);
    box-shadow: var(--shadow);
    padding: 0 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 20px;
}

.logo img {
    height: 260px;
    /* Adjust based on actual logo aspect ratio */
    width: auto;
}

.navbar {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--white);
    padding: 0.5rem 0;
    position: relative;
    font-size: 24px;
    letter-spacing: 1px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

/* Hamburger animation to X */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background-color: #1c1c1c;
    color: var(--white);
    padding: 3rem 0 3rem;
    position: relative;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    flex: 1;
}

.footer-column--left {
    text-align: center;
}

.footer-column--right {
    text-align: center;
}

.footer-column--left p,
.footer-column--right p {
    color: var(--white);
    font-size: 1.3rem;
    line-height: 1.8;
}

.footer-column--left h4,
.footer-column--right h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-column--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    width: 280px;
    max-width: 100%;
}

.footer-social {
    display: flex;
    gap: 1.75rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 32px;
    height: 32px;
}

.footer-column--right a {
    color: var(--white);
    transition: var(--transition);
}

.footer-column--right a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.scroll-top {
    position: fixed;
    right: 2rem;
    bottom: 30%;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    background-color: #8b6f63;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    z-index: 999;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover,
.scroll-top:focus-visible {
    background-color: var(--primary-color);
    outline: none;
}

.scroll-top svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 992px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Page Headers
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--white);
    margin: 0;
    opacity: 0.9;
}

/* ===================================
   Shared Form Elements
   =================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-color);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 150, 140, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #f44336;
}

.btn-block {
    width: 100%;
}

.form-note {
    text-align: center;
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ===================================
   Admin Body Override
   =================================== */
.admin-body {
    font-family: 'Jost', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    min-height: 100vh;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Header mobile adaptations */
    .logo img {
        height: 100px;
    }

    .btn-reservation {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 7.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .equipements-grid {
        grid-template-columns: 1fr;
    }

    /* ===================================
   Page Layout (Sidebar)
   =================================== */
    .page-container {
        display: flex;
        gap: 40px;
        padding-top: 40px;
        padding-bottom: 60px;
        position: relative;
    }

    .page-content {
        flex: 1;
        min-width: 0;
        /* Prevent flex item from overflowing */
    }

    .page-sidebar {
        width: 380px;
        flex-shrink: 0;
    }

    /* Sticky Sidebar */
    .booking-widget {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 24px;
        position: sticky;
        top: 100px;
        /* Adjust based on header height */
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    .booking-widget__header {
        margin-bottom: 20px;
        display: flex;
        align-items: baseline;
        gap: 5px;
    }

    .booking-widget__header .price {
        font-size: 22px;
        font-weight: 700;
        color: #222;
    }

    .booking-widget__header .period {
        color: #717171;
        font-size: 16px;
    }

    .booking-widget .form-group {
        margin-bottom: 15px;
        position: relative;
    }

    .booking-widget label {
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 4px;
        display: block;
        color: #222;
    }

    .booking-widget input {
        width: 100%;
        padding: 12px;
        border: 1px solid #b0b0b0;
        border-radius: 8px;
        font-size: 14px;
        color: #222;
        cursor: pointer;
    }

    .guests-input {
        padding: 12px;
        border: 1px solid #b0b0b0;
        border-radius: 8px;
        font-size: 14px;
        color: #222;
        background: #fff;
    }

    .booking-summary {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #ddd;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        color: #222;
    }

    .summary-total {
        display: flex;
        justify-content: space-between;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #ddd;
        font-weight: 700;
        font-size: 18px;
        color: #222;
    }

    .booking-note {
        text-align: center;
        font-size: 14px;
        color: #717171;
        margin-top: 15px;
    }

    /* Responsive */
    @media (max-width: 992px) {
        .page-container {
            flex-direction: column;
        }

        .page-sidebar {
            width: 100%;
            order: -1;
            /* Show booking form first on mobile? Or keep it below hero? */
            /* Usually below hero on mobile */
            order: 0;
        }

        .booking-widget {
            position: static;
            margin-bottom: 40px;
        }
    }
}