/* ==========================================================================
   Smart home Sébastien — 2026 redesign
   ========================================================================== */

:root {
    --bg: #0c0c10;
    --bg-soft: #121218;
    --surface: #16161d;
    --surface-2: #1c1c25;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --gold: #c9a86a;
    --gold-soft: rgba(201, 168, 106, 0.18);
    --text: #f3efe7;
    --muted: #a8a29a;
    --ok: #7bc18a;
    --bad: #e58f7f;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: 0.01em;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- skip link ---------- */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--gold);
    color: #111;
    padding: 10px 18px;
    z-index: 200;
    border-radius: 0 0 8px 0;
}

.skip:focus {
    left: 0;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 16, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand img {
    width: 118px;
    height: auto;
}

.nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav a {
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
    color: var(--text);
    border-bottom-color: var(--gold);
}

.langs {
    display: flex;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.langs a {
    padding: 6px 7px;
    border-radius: 6px;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.langs a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.langs a[aria-current='true'] {
    color: #14141a;
    background: var(--gold);
    font-weight: 400;
}

.lang-menu {
    display: none;
    position: relative;
}

.lang-menu summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
}

.lang-menu summary::-webkit-details-marker {
    display: none;
}

.flag {
    width: 21px;
    height: 15px;
    border-radius: 3px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.caret {
    width: 14px;
    height: 14px;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.lang-menu[open] .caret {
    transform: rotate(180deg);
}

.lang-list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 178px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #14141a;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 120;
}

.lang-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
}

.lang-list a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.lang-list a[aria-current='true'] {
    background: var(--gold-soft);
    color: var(--gold);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: clamp(560px, 88vh, 820px);
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media {
    z-index: 0;
}

.hero-media img {
    object-fit: cover;
    object-position: center 55%;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 6, 9, 0.92) 0%, rgba(6, 6, 9, 0.78) 38%, rgba(6, 6, 9, 0.35) 70%, rgba(6, 6, 9, 0.25) 100%),
        linear-gradient(180deg, rgba(6, 6, 9, 0.35) 0%, rgba(6, 6, 9, 0.2) 40%, rgba(12, 12, 16, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    padding-bottom: 70px;
}

.hero-content > * {
    max-width: 700px;
}

.hero h1,
.hero p,
.eyebrow {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 76px);
    margin-bottom: 18px;
}

.hero p {
    font-size: clamp(17px, 2vw, 20px);
    color: #ded8cc;
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-family: var(--sans);
    font-weight: 400;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gold);
    color: #14141a;
}

.btn-gold:hover {
    background: #d9b979;
}

.btn-ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-wide {
    width: 100%;
}

.hero-price {
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #ece5d7;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(10, 10, 14, 0.45);
    backdrop-filter: blur(6px);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.badges li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(20, 20, 26, 0.6);
    font-size: 13px;
    color: #ded8cc;
    backdrop-filter: blur(6px);
}

.badges svg {
    width: 15px;
    height: 15px;
    color: var(--gold);
}

/* ---------- sections ---------- */
.section {
    padding: clamp(64px, 9vw, 110px) 0;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section-soft {
    background: var(--bg-soft);
}

.section-head {
    max-width: 720px;
    margin-bottom: 46px;
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

/* ---------- about ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(30px, 5vw, 64px);
    align-items: start;
}

.about-copy p {
    color: #cfc9bd;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.stats li {
    padding: 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.stats strong {
    display: block;
    font-family: var(--serif);
    font-size: 30px;
    color: var(--gold);
    line-height: 1.1;
}

.stats span {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.about-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
    aspect-ratio: 1;
}

.about-media img:nth-child(1) {
    transform: translateY(18px);
}

.about-media img:nth-child(4) {
    transform: translateY(-18px);
}

/* ---------- amenities ---------- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.amenity {
    display: flex;
    gap: 14px;
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.amenity:hover {
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}

.amenity-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold);
}

.amenity-icon svg {
    width: 21px;
    height: 21px;
}

.amenity h3 {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0 0 4px;
}

.amenity p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

/* ---------- gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-grid li {
    margin: 0;
}

.gallery-grid button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-grid button:hover img,
.gallery-grid button:focus-visible img {
    transform: scale(1.05);
    filter: brightness(1.12);
}

.gallery-grid li:nth-child(1),
.gallery-grid li:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-grid li:nth-child(1) img,
.gallery-grid li:nth-child(6) img {
    aspect-ratio: 1;
}

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(6, 6, 9, 0.94);
    display: grid;
    place-items: center;
    padding: 24px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(1100px, 96vw);
    max-height: 86vh;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.lightbox button {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(0, 0, 0, 0.45);
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ---------- location ---------- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: start;
}

.location-copy p {
    color: #cfc9bd;
}

.distances {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 2px;
}

.distances li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.distances li span:first-child {
    color: var(--muted);
}

.distances li span:last-child {
    color: var(--text);
    letter-spacing: 0.03em;
}

.map-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    padding: 26px;
}

.map-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.map-card p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
}

/* ---------- reviews ---------- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.review {
    position: relative;
    padding: 28px 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.review::before {
    content: '“';
    position: absolute;
    top: 6px;
    left: 18px;
    font-family: var(--serif);
    font-size: 64px;
    line-height: 1;
    color: var(--gold-soft);
}

.review p {
    position: relative;
    color: #ded8cc;
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.review footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.review footer strong {
    color: var(--text);
    font-weight: 400;
}

.stars {
    color: var(--gold);
    letter-spacing: 0.15em;
    font-size: 13px;
}

/* ---------- faq ---------- */
.faq-list {
    display: grid;
    gap: 10px;
    max-width: 900px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-size: 16px;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--gold);
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item .faq-answer {
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

/* ---------- booking ---------- */
.book-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.book-form {
    padding: clamp(24px, 4vw, 40px);
}

.book-form h3 {
    font-size: 26px;
    margin-bottom: 6px;
}

.book-form > p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 22px;
}

.fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field select {
    width: 100%;
    padding: 14px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 300;
    color-scheme: dark;
}

.field input:focus,
.field select:focus {
    border-color: var(--gold);
    outline: none;
}

.field-full {
    grid-column: 1 / -1;
}

.book-note {
    font-size: 13px;
    color: var(--muted);
    margin: 12px 0 0;
    line-height: 1.6;
}

.book-result {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg);
    font-size: 15px;
    display: none;
}

.book-result.is-visible {
    display: block;
}

.book-result.is-ok {
    border-color: rgba(123, 193, 138, 0.45);
    background: rgba(123, 193, 138, 0.08);
}

.book-result.is-bad {
    border-color: rgba(229, 143, 127, 0.45);
    background: rgba(229, 143, 127, 0.08);
}

.book-side {
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(180deg, var(--surface-2), var(--bg-soft));
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.book-side h4 {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.channel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.channel:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}

.channel strong {
    font-weight: 400;
}

.channel span {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.channel-wa {
    display: grid;
    gap: 3px;
    border-color: rgba(37, 211, 102, 0.45);
    background: rgba(37, 211, 102, 0.08);
}

.channel-wa span {
    color: #9fd6b0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12.5px;
    line-height: 1.45;
}

/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 34px;
    background: var(--bg-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-grid h3 {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-grid p,
.footer-grid a {
    font-size: 15px;
    color: #cfc9bd;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.footer-bottom a {
    color: var(--muted);
    border-bottom: 1px solid var(--line-strong);
}

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

/* ---------- reveal on scroll ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal:not(.is-visible) { opacity: 1; transform: none; }
    .reveal { transition: none; }
    .btn:hover, .amenity:hover, .channel:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .fields { grid-template-columns: 1fr 1fr; }
    .nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .langs { display: none; }
    .lang-menu { display: block; margin-left: auto; }
    .site-header.nav-open .nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px 24px 18px;
        background: rgba(12, 12, 16, 0.98);
        border-bottom: 1px solid var(--line);
    }
    .site-header.nav-open .nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }
    .about-grid,
    .location-grid,
    .reviews-grid,
    .book-panel {
        grid-template-columns: 1fr;
    }
    .about-media { max-width: 520px; }
    .book-side { border-left: 0; border-top: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
    .header-inner { gap: 8px; }
    .brand img { width: 84px; }
    .langs { gap: 1px; }
    .langs a { font-size: 11px; padding: 5px 4px; }
    .menu-toggle { width: 40px; height: 40px; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero { min-height: 88vh; }
    .hero-content { padding-top: 70px; padding-bottom: 60px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .badges li { font-size: 12px; }
    .fields { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid li:nth-child(1),
    .gallery-grid li:nth-child(6) {
        grid-column: span 2;
        grid-row: span 1;
    }
    .stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .brand img { width: 96px; }
    .langs a { padding: 6px 5px; }
    .lightbox-nav { width: 42px; height: 42px; }
}
