/* Explain: Styles for various UI components and layout elements. */
/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 243, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand span {
    color: var(--accent-color);
}

.nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 1.05rem;
    cursor: pointer;
}

.mobile-menu {
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

.mobile-link {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-link:last-child {
    border-bottom: none;
    color: var(--primary-color);
    font-weight: 600;
}

/* ---------- Language switcher ---------- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
}

.lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    border-radius: 999px;
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-link img {
    width: 26px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(28, 36, 48, 0.1);
}

.lang-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.lang-link.is-active {
    opacity: 1;
}

.lang-link.is-active img {
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost,
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

.btn-cta {
    background: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
    padding: 0.6rem 1.15rem;
    font-size: 0.88rem;
}

.btn-cta:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ---------- Hero ---------- */
.hero-apt {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 78vh;
    overflow: hidden;
}

.hero-apt__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-apt__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 22, 33, 0.25) 0%, rgba(15, 22, 33, 0.55) 55%, rgba(15, 22, 33, 0.88) 100%);
}

.hero-apt__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 4rem 1rem 3.5rem;
    color: #fff;
}

.hero-apt__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    font-weight: 600;
    color: #f0d9a8;
    margin: 0 0 0.8rem;
}

.hero-apt__title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: #fff;
    margin: 0 0 1rem;
}

.hero-apt__lead {
    max-width: 44rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.8rem;
}

.hero-apt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.hero-apt__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    list-style: none;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-apt__facts i {
    color: var(--accent-color);
    margin-right: 0.45rem;
}

/* ---------- Presentation list ---------- */
.check-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.95rem;
}

.check-list i {
    color: var(--accent-color);
    margin-top: 0.3rem;
}

/* ---------- Cartouche à défilement vertical ---------- */
.scroll-box {
    max-height: 30rem;
    overflow-y: auto;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--surface-alt);
}

.scroll-box:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}

/* Grand bloc de texte pour la présentation */
.scroll-box--grand {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    max-height: 46rem;
    padding: 1.6rem 1.5rem;
}

@media (min-width: 768px) {
    .scroll-box--grand {
        padding: 2.25rem 2.75rem;
    }
}

.scroll-box p {
    margin: 0 0 0.9rem;
}

.scroll-box p:last-child {
    margin-bottom: 0;
}

.scroll-box h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin: 1.3rem 0 0.5rem;
}

.scroll-box h4:first-child {
    margin-top: 0;
}

.scroll-box ul {
    list-style: none;
    display: grid;
    gap: 0.3rem;
    margin: 0 0 0.4rem;
}

.scroll-box li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.scroll-box li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.6rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--accent-color);
}

.scroll-box__thanks {
    margin-top: 1.3rem;
    font-weight: 600;
}

.scroll-box__note {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-style: italic;
}

.scroll-box::-webkit-scrollbar {
    width: 10px;
    cursor: pointer;
}

.scroll-box::-webkit-scrollbar-track {
    background: var(--surface-alt);
    border-radius: 999px;
}

.scroll-box::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: 2px solid var(--surface-alt);
    border-radius: 999px;
    cursor: pointer;
}

.scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 0.85rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 22, 33, 0), rgba(15, 22, 33, 0.78));
}

/* ---------- Amenities ---------- */
.amenity-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.amenity {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.1rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.amenity:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.amenity i {
    font-size: 1.15rem;
    color: var(--primary-color);
}

.amenity h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.6rem 0 0.25rem;
}

.amenity p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Prices ---------- */
.price-list {
    display: grid;
    gap: 0.8rem;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
}

.price-row__label {
    font-weight: 600;
    font-size: 0.98rem;
}

.price-row__period {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-row__amount {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.price-row__unit {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-note {
    max-width: 48rem;
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Tarif table ---------- */
.tarif-table-wrap {
    max-width: 60rem;
    margin: 0 auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.tarif-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tarif-table thead th {
    padding: 0.95rem 1.25rem;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color);
    white-space: nowrap;
}

.tarif-table__price-col {
    text-align: right !important;
}

.tarif-table tbody tr {
    border-top: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.tarif-table tbody tr:hover {
    background: var(--surface-alt);
}

.tarif-table tbody th,
.tarif-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    text-align: left;
}

.tarif-table__season {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.tarif-table__period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tarif-table__price {
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.tarif-table__unit {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.2rem;
}

.tarif-table .fee-badge {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.6;
}

.tarif-table .fee-badge--required {
    background: #f3e2c9;
    color: #8a5a12;
    border: 1px solid #e3c99b;
}

.tarif-table .fee-badge--optional {
    background: #e2ebf0;
    color: #29506f;
    border: 1px solid #c3d5e0;
}

@media (max-width: 640px) {
    .tarif-table thead {
        display: none;
    }

    .tarif-table,
    .tarif-table tbody,
    .tarif-table tbody tr,
    .tarif-table tbody th,
    .tarif-table tbody td {
        display: block;
        width: 100%;
    }

    .tarif-table tbody tr {
        padding: 1rem 1.25rem;
    }

    .tarif-table tbody th,
    .tarif-table tbody td {
        padding: 0.2rem 0;
        text-align: left;
    }

    .tarif-table__period::before,
    .tarif-table__price::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-body);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .tarif-table__price {
        text-align: left;
        margin-top: 0.4rem;
    }
}

/* ---------- Distances ---------- */
.dist-list {
    list-style: none;
    display: grid;
    gap: 0.1rem;
    margin-top: 1.5rem;
}

.dist-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
}

.dist-list i {
    color: var(--accent-color);
    width: 1.1rem;
    text-align: center;
}

.dist-list__label {
    flex: 1;
}

.dist-list__value {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

/* ---------- Booking / calendar ---------- */
.booking-panel {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem;
}

@media (min-width: 768px) {
    .booking-panel {
        padding: 2rem;
    }
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cal-month {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: capitalize;
    margin: 0;
}

.cal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cal-nav:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.cal-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.cal-dow {
    text-align: center;
    padding-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cal-empty {
    aspect-ratio: 1 / 1;
}

.cal-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.cal-day:hover:not(:disabled) {
    background: var(--surface-alt);
    border-color: var(--border-color);
}

.cal-day--muted {
    color: #c4bfb6;
    cursor: not-allowed;
}

.cal-day--blocked {
    color: #b9b2a6;
    cursor: not-allowed;
    background: repeating-linear-gradient(45deg, var(--surface-alt), var(--surface-alt) 4px, #ece4d6 4px, #ece4d6 8px);
}

.cal-day--inrange {
    background: #e9dfc9;
}

.cal-day--selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cal-legend i {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 4px;
}

.cal-legend .lg-free {
    background: #fff;
    border: 1px solid var(--border-color);
}

.cal-legend .lg-blocked {
    background: repeating-linear-gradient(45deg, var(--surface-alt), var(--surface-alt) 3px, #ece4d6 3px, #ece4d6 6px);
    border: 1px solid var(--border-color);
}

.cal-legend .lg-selected {
    background: var(--primary-color);
}

.cal-summary {
    margin-top: 1.1rem;
    padding: 0.95rem 1.1rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Form ---------- */
.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}

.field textarea {
    resize: vertical;
}

.form-status {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.form-status--ok {
    background: #e7f2e9;
    border: 1px solid #bfdcc7;
    color: #1f5a33;
}

.form-status--err {
    background: #fbeaea;
    border: 1px solid #efc6c6;
    color: #8a2525;
}

.form-status--pending {
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
    background: #14202e;
    color: rgba(255, 255, 255, 0.78);
    padding: 3.5rem 0 2rem;
    font-size: 0.92rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.footer-text {
    font-size: 0.88rem;
}

.footer-title {
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    font-size: 0.88rem;
}

.footer-list i {
    color: var(--accent-color);
    margin-right: 0.4rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-top: 2.5rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
}

