/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff5a5f;
    --secondary: #008489;
    --dark: #222;
    --gray: #717171;
    --light-gray: #f7f7f7;
    --border: #dddddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --radius: 12px;
    --max-width: 1200px;
    --nav-height: 70px;
    --anchor-offset: 96px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--anchor-offset);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #fff;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: #e04e50;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,90,95,0.4);
}

.btn-submit {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-submit:hover {
    background: #e04e50;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 14px;
}

section[id],
h3[id] {
    scroll-margin-top: var(--anchor-offset);
}

.nav-links a:hover {
    color: var(--dark);
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
}

/* === HERO === */
.hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    margin-top: var(--nav-height);
    overflow: hidden;
    background: #1a1a1a;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.45));
    z-index: 2;
    pointer-events: none;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: #1a1a1a;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    color: var(--dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.slider-btn:hover {
    background: white;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 10px;
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 12px;
    background: rgba(0,0,0,0.45);
    border-radius: 8px;
    padding: 4px 10px;
    display: inline-flex;
    width: auto;
    max-width: max-content;
    color: #fff;
    overflow: hidden;
}

.hero-rating span,
.hero-review-count {
    display: inline;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    width: auto;
    min-width: 0;
    height: auto;
    color: inherit;
}

.stars {
    color: #ffc107;
    letter-spacing: 2px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.5);
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-featured {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* === QUICK INFO === */
.quick-info {
    margin-top: -40px;
    position: relative;
    z-index: 20;
    padding: 0 20px 20px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.info-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.info-card strong {
    display: block;
    font-size: 16px;
    color: var(--dark);
}

.info-card p {
    font-size: 13px;
    color: var(--gray);
}

/* === SECTIONS === */
section {
    padding: 60px 0;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* === DESCRIPTION === */
.description-content {
    max-width: 800px;
    margin: 0 auto;
}

.description p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

.description h3 {
    margin-top: 30px;
}

.amenities-list {
    columns: 2;
    gap: 30px;
    list-style: none;
    margin-top: 16px;
}

.amenities-list li {
    margin-bottom: 10px;
    color: var(--gray);
}

.notice {
    margin-top: 30px;
    padding: 16px 20px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.notice h4 {
    margin-bottom: 8px;
    color: #e6a200;
}

/* === PHOTOS === */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.photo-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

.photo-item.large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* === ÉQUIPEMENTS === */
.equipements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.equipement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--light-gray);
    border-radius: 10px;
    font-size: 14px;
    color: var(--gray);
}

.equipement-icon {
    font-size: 20px;
}

/* === TARIFS === */
.tarifs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.tarif-card {
    text-align: center;
    padding: 30px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.tarif-card.featured {
    border-color: var(--primary);
    background: rgba(255,90,95,0.02);
    transform: scale(1.03);
}

.price {
    font-size: 36px;
    font-weight: 700;
    margin: 12px 0;
    color: var(--dark);
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray);
}

.tarif-card h3 {
    margin-bottom: 8px;
}

.tarif-card p {
    color: var(--gray);
    font-size: 14px;
}

/* === MAP === */
.map-section {
    padding: 60px 0;
    background: white;
}

.map-address {
    text-align: center;
    font-weight: 600;
    margin: 6px 0 16px;
    color: #333;
}

.map-container {
    max-width: 1000px;
    margin: 12px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-wrapper {
    position: relative;
}

.map-pin {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: white;
    color: #222;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

.map-caption {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    margin-top: 10px;
}

/* === REVIEWS === */
.reviews {
    padding: 60px 0;
    background: linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}

.reviews-header {
    margin-bottom: 32px;
}

.reviews-header h2 {
    text-align: center;
    margin-bottom: 10px;
}

.reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    background: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.reviews-rating .stars {
    font-size: 20px;
    color: #ffc107;
}

.avg-score {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.reviewer {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-stars {
    color: #ffc107;
    margin: 8px 0 14px;
    letter-spacing: 1px;
    font-size: 15px;
}

.review-text {
    color: #555;
    font-size: 14px;
    line-height: 1.65;
}

.review-text::before {
    content: "“";
    font-weight: 700;
    color: #ff5a5f;
}

/* === RESERVATION === */
.reservation {
    background: var(--light-gray);
}

.reservation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-container {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cal-prev, .cal-next {
    background: var(--light-gray);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.cal-prev:hover, .cal-next:hover {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

#currentMonth {
    font-size: 18px;
    font-weight: 600;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 8px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s;
    border: 2px solid transparent;
}

.cal-day:hover:not(.disabled):not(.empty) {
    background: var(--light-gray);
}

.cal-day.other-month {
    color: #ccc;
}

.cal-day.disabled {
    color: #bbb;
    cursor: not-allowed;
    background: #f5f5f5;
}

.cal-day.selected {
    background: var(--primary) !important;
    color: white;
    font-weight: 600;
}

.cal-day.in-range {
    background: rgba(255,90,95,0.15);
    border-radius: 0;
}

.cal-day.range-start {
    border-radius: 50% 0 0 50%;
}

.cal-day.range-end {
    border-radius: 0 50% 50% 0;
}

.cal-day.empty {
    cursor: default;
}

/* === FORMULAIRE === */
.booking-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.price-summary {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.placeholder {
    color: var(--gray);
    font-style: italic;
}

#selectionSummary p {
    margin-bottom: 4px;
}

#selectionSummary .total-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-top: 8px;
}

#bookingForm h3 {
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-note {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    margin-top: 12px;
}

.confirmation-message {
    text-align: center;
    padding: 30px 20px;
    background: #e8f5e9;
    border-radius: var(--radius);
}

.payment-cancel-message {
    text-align: center;
    padding: 24px 18px;
    background: #fff4e5;
    color: #7a4a00;
    border-radius: var(--radius);
    margin-top: 14px;
}

/* === INFOS PRATIQUES === */
.infos-pratiques {
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-box {
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.info-box h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.info-box p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 6px;
    font-size: 14px;
}

.footer a {
    color: #ccc;
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        display: none;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .tarifs-cards {
        grid-template-columns: 1fr;
    }

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

    .amenities-list {
        columns: 1;
    }
}

@media (max-width: 600px) {
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .photo-item.large {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}
