/* ==========================================================================
   Le Clos des Izards — Site vitrine
   ========================================================================== */

@font-face {
    font-family: 'Playwrite IN';
    src: url('../fonts/Playwrite_IN/PlaywriteIN-latin.woff2') format('woff2'),
         url('../fonts/Playwrite_IN/PlaywriteIN-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    font-variant-ligatures: common-ligatures;
}

@font-face {
    font-family: 'Playpen Sans';
    src: url('../fonts/Playpen_Sans_Deva/PlaypenSans-latin.woff2') format('woff2'),
         url('../fonts/Playpen_Sans_Deva/PlaypenSansDeva-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #457B9D;
    --brand-dark: #457B9D;
    --brand-light: #DBE7EE;
    --brand-deep: #1D3557;
    --brand-nav: rgba(166, 198, 219, 0.8);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    font-family: 'Playpen Sans', 'Segoe UI', sans-serif;
    color: #364152;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p {
    margin: 0;
    text-wrap: pretty;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

.font-cursive {
    font-family: 'Playwrite IN', cursive;
    font-variant-ligatures: common-ligatures contextual;
    font-feature-settings: "liga" on, "calt" on;
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Page loader ---------- */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity .35s ease, visibility .35s ease;
}
.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.linear-progress {
    width: 100px;
    height: 2px;
    background: var(--brand-light);
    position: relative;
    overflow: hidden;
}
.linear-progress::after {
    content: '';
    position: absolute;
    left: -50%;
    height: 100%;
    width: 50%;
    background: var(--brand);
    animation: progress-slide 1.1s infinite ease-in-out;
}
@keyframes progress-slide {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* ---------- Scroll reveal ---------- */
/* Content is visible immediately (matches reference site); no fade-in-on-scroll,
   which also avoids sections staying blank when a fast/anchor jump skips the
   IntersectionObserver trigger. */
.reveal {
    opacity: 1;
    transform: none;
}
.reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { scroll-behavior: auto !important; }
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: transparent;
    transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
.navbar.scrolled {
    background: var(--brand-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.navbar-logo {
    font-family: 'Playwrite IN', cursive;
    font-style: italic;
    font-size: clamp(1.25rem, 6vw, 1.6rem);
    color: var(--brand);
    white-space: nowrap;
}
@media (max-width: 359px) {
    .navbar-inner { padding: 0 1rem; gap: .5rem; }
    .navbar-logo { font-size: 1.15rem; }
}
.navbar-links {
    display: none;
    align-items: center;
    gap: 2rem;
}
.navbar-links a {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.75);
    padding: .35rem 0;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.navbar-links a:hover,
.navbar-links a.active {
    color: #fff;
    border-color: #fff;
}
.navbar-lang {
    position: relative;
    display: none;
}
.navbar-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .75rem;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .4rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: background-color .2s ease;
}
.navbar-lang-btn:hover { background: rgba(255,255,255,.2); }
.navbar-lang-btn svg { width: 12px; height: 12px; transition: transform .2s ease; }
.navbar-lang.open .navbar-lang-btn svg { transform: rotate(180deg); }
.navbar-lang-menu {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    min-width: 7rem;
    background: #fff;
    border-radius: .4rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    padding: .25rem 0;
    display: none;
    flex-direction: column;
    z-index: 10;
}
.navbar-lang.open .navbar-lang-menu { display: flex; }
.navbar-lang-menu a {
    padding: .5rem 1rem;
    font-size: .85rem;
    color: #475569;
    transition: background-color .15s ease;
}
.navbar-lang-menu a:hover { background: #f1f5f9; }
.navbar-lang-menu a.active { font-weight: 700; color: var(--brand); }
.navbar-lang-menu a {
    display: flex;
    align-items: center;
    gap: .5rem;
}
/* Flags drawn in SVG: emoji flags don't render on Windows */
.flag {
    display: inline-block;
    flex-shrink: 0;
    width: 1.35em;
    height: .95em;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.navbar-lang-btn .flag { font-size: 1rem; }
.flag-fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23002395' d='M0 0h1v2H0z'/%3E%3Cpath fill='%23fff' d='M1 0h1v2H1z'/%3E%3Cpath fill='%23ed2939' d='M2 0h1v2H2z'/%3E%3C/svg%3E"); }
.flag-nl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23ae1c28' d='M0 0h3v.67H0z'/%3E%3Cpath fill='%23fff' d='M0 .67h3v.67H0z'/%3E%3Cpath fill='%2321468b' d='M0 1.33h3V2H0z'/%3E%3C/svg%3E"); }
.flag-de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'%3E%3Cpath fill='%23000' d='M0 0h3v.67H0z'/%3E%3Cpath fill='%23dd0000' d='M0 .67h3v.67H0z'/%3E%3Cpath fill='%23ffce00' d='M0 1.33h3V2H0z'/%3E%3C/svg%3E"); }
.flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30m0-30L0 30'/%3E%3Cpath stroke='%23c8102e' stroke-width='4' d='M0 0l60 30m0-30L0 30' clip-path='url(%23t)'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23c8102e' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/svg%3E"); }

.navbar-mobile-lang {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}
.navbar-mobile-lang a { padding: .3rem .6rem; border-radius: .3rem; }
.navbar-mobile-lang a.active { background: #fff; color: var(--brand); }

.navbar-cta {
    display: none;
    padding: .65rem 1.4rem;
    background: var(--brand);
    color: #fff;
    border-radius: .4rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    transition: background-color .25s ease, transform .2s ease;
}
.navbar-cta:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}
.navbar-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    transition: background-color .25s ease;
}
.navbar-cta-mobile svg { width: 20px; height: 20px; }
.navbar-cta-mobile:hover { background: var(--brand-dark); }
.navbar-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #fff;
}
.navbar-burger svg { width: 26px; height: 26px; }
.navbar-burger .icon-close { display: none; }
.navbar-burger.open .icon-menu { display: none; }
.navbar-burger.open .icon-close { display: block; }

.navbar-mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    background: var(--brand);
    transition: max-height .35s var(--ease);
}
.navbar-mobile.open {
    max-height: 480px;
}
.navbar-mobile-links {
    padding: .75rem 0;
}
.navbar-mobile-links a {
    display: block;
    padding: .8rem 1.5rem;
    border-left: 4px solid transparent;
    color: rgba(255,255,255,.8);
    font-weight: 600;
    font-size: 1rem;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.navbar-mobile-links a.active,
.navbar-mobile-links a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-color: #fff;
}
.navbar-mobile-cta {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.navbar-mobile-cta a {
    display: block;
    text-align: center;
    padding: .8rem;
    background: #fff;
    color: var(--brand);
    border-radius: .4rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .08em;
}

@media (min-width: 1024px) {
    .navbar-links { display: flex; }
    .navbar-lang { display: block; }
    .navbar-cta { display: inline-block; }
    .navbar-cta-mobile { display: none; }
    .navbar-burger { display: none; }
    .navbar-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 2;
    padding: 8rem 0 4rem;
    background-image: url('../images/maison-piscine-jardin-perigueux.webp');
    background-size: cover;
    background-position: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(166, 198, 219, .8);
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
.hero-info {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.hero-eyebrow {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .25em;
    border-left: 2px solid rgba(255,255,255,.8);
    padding-left: .75rem;
    line-height: 1.4;
}
.hero-title {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.5;
}
.hero-title mark {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    background: none;
    color: inherit;
}
.hero-title mark::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    top: 35%;
    bottom: 0;
    background: var(--brand);
    z-index: -1;
}
.hero-desc {
    font-size: .85rem;
    line-height: 1.55;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.9);
}
.btn {
    display: inline-block;
    padding: .9rem 2rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: .4rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .1em;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    transition: background-color .25s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.16);
}
.btn-cursive {
    font-family: 'Playwrite IN', cursive;
    font-style: italic;
    font-size: 1.15rem;
    letter-spacing: normal;
    text-transform: none;
    font-weight: 400;
    padding: .8rem 2.5rem;
}

/* Hero slider — translated down so it overlaps about a quarter of its height
   into the section below, like on the reference site (it sits above the next
   section via z-index). A transform is used instead of a negative margin so
   it doesn't shrink the row's own height / push the text column up. */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto -9rem;
    aspect-ratio: 4 / 5;
    border: 4px solid #fff;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
    overflow: hidden;
    background: #e2e8f0;
}
.hero-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .9s ease;
}
.hero-slider img.active {
    opacity: 1;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    padding: .5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
    z-index: 3;
    transition: opacity .2s ease;
}
.slider-arrow:hover { opacity: .75; }
.slider-arrow svg { width: 28px; height: 28px; }
.slider-arrow.prev { left: .75rem; }
.slider-arrow.next { right: .75rem; }

@media (min-width: 1024px) {
    .hero { padding: 6rem 0 3rem; }
    /* Bottom-align (not center) so the shorter text column sits low against
       the tall slider, leaving a generous gap under the header — matches
       the reference site's spacing under the navbar. */
    .hero-grid { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: end; }
    /* Narrow text column only next to the slider; full width when stacked */
    .hero-desc { max-width: 40ch; }
    .hero-slider { max-width: 520px; aspect-ratio: 46 / 59; border-width: 17px; margin: 0 auto; transform: translateY(5rem); }
}

/* ---------- Section basics ---------- */
section { position: relative; }
.section-light { background: var(--brand-light); }
.section-white { background: #fff; }
.section-brand { background: var(--brand); color: #fff; }

.eyebrow-title {
    color: var(--brand);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.3;
}
.section-sub {
    font-size: .85rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .1em;
    line-height: 1.45;
}
.section-text {
    color: rgba(69, 123, 157, .95);
    line-height: 1.55;
    max-width: 60ch;
}

/* ---------- Esprit du lieu ---------- */
.esprit {
    position: relative;
    z-index: 1;
    padding: 10rem 0 5rem;
}
.esprit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1rem;
    align-items: center;
}
.esprit-text { grid-column: 1 / -1; order: -1; }
.esprit-photos .polaroid { width: 100%; max-width: 200px; }
.esprit-photos.left .polaroid { transform: rotate(-7deg); }
.esprit-photos {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.polaroid {
    background: #fff;
    padding: .75rem .75rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    border: 1px solid #f1f5f9;
    width: 45%;
    max-width: 200px;
}
.polaroid:first-child { transform: rotate(-9deg); }
.polaroid:last-child { transform: rotate(7deg); }
.polaroid .frame {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8fafc;
}
.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}
.polaroid:hover img { transform: scale(1.06); }
.esprit-text {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    text-align: left;
}

@media (min-width: 1024px) {
    .esprit { padding-top: 8rem; }
    .esprit-grid { grid-template-columns: 3fr 6fr 3fr; gap: 3rem; }
    .esprit-photos.left { order: 1; }
    .esprit-photos.left .polaroid { width: 100%; max-width: 240px; transform: rotate(-9deg) translateY(-3rem); }
    .esprit-text { order: 2; grid-column: auto; }
    .esprit-photos.right { order: 3; }
    .esprit-photos.right .polaroid { width: 100%; max-width: 200px; transform: rotate(7deg) translateY(4rem); }
}

/* ---------- Exterieur / interieur split ---------- */
.split {
    position: relative;
    padding: 3rem 0;
    background: #fff;
    overflow: hidden;
}
.split-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4.5rem;
    align-items: center;
}
.split-photo {
    position: relative;
    padding: 1rem;
    background: var(--brand-light);
    border: 1px solid rgba(219, 231, 238, .5);
}
.split-photo .frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}
.split-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}
.split-photo:hover img { transform: scale(1.05); }
.split-text {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    text-align: left;
}

/* Decorative brand-light stripes behind the photo (matches reference site) */
.split-stripes-desktop,
.split-stripes-mobile {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    flex-direction: row;
    gap: var(--stripe-width, 3vw);
}
.split-stripes-desktop span,
.split-stripes-mobile span {
    display: block;
    height: 100%;
    width: var(--stripe-width, 3vw);
    background: var(--brand-light);
}
.split-stripes-desktop { display: none; }
#exterieur .split-stripes-desktop { left: 0; }
#interieur .split-stripes-desktop { right: 0; }

.split-stripes-mobile {
    /* = the .wrap gutter, so the photo panel starts right where the first stripe ends */
    --stripe-width: 1.5rem;
    /* = the .split padding, so the stripes reach the section edge and the photo
       sits in their vertical middle (+1px for the photo panel's border) */
    top: calc(-3rem - 1px);
    bottom: calc(-3rem - 1px);
}
#exterieur .split-stripes-mobile { left: calc(-1.5rem - 1px); }
#interieur .split-stripes-mobile { right: calc(-1.5rem - 1px); flex-direction: row-reverse; }

/* Mobile: text always first, photo below (in both sections) */
@media (max-width: 1023px) {
    .split-photo { order: 1; }
}

@media (min-width: 1024px) {
    .split { padding: 4.5rem 0; }
    .split-grid { grid-template-columns: 7fr 5fr; gap: 3rem; }
    /* Reverse layout keeps the photo column at 7fr (not 5fr): swap the track
       sizes along with the DOM order so the photo stays the wide column. */
    .split-grid.reverse { grid-template-columns: 5fr 7fr; }
    .split-stripes-desktop { display: flex; }
    .split-stripes-mobile { display: none; }
}

/* ---------- Avis / testimonials ---------- */
.testimonials {
    padding: 3.5rem 0;
}
.testimonials-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 3.5rem;
    position: relative;
    text-align: center;
}
.testi-eyebrow {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--brand-light);
    margin-bottom: 1.5rem;
}
.testi-slide {
    display: none;
    animation: fadeUp .4s ease;
}
.testi-slide.active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.testi-stars {
    display: flex;
    justify-content: center;
    gap: .15rem;
    color: #fde68a;
    margin-bottom: 1rem;
}
.testi-stars svg { width: 22px; height: 22px; }
.testi-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--brand-light);
}
.testi-author {
    margin-top: 1rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #e2e8f0;
}
.testi-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    width: 3rem;
    height: 3rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color .2s ease;
}
.testi-nav:hover { background: rgba(255,255,255,.1); }
.testi-nav svg { width: 26px; height: 26px; }
.testi-nav.prev { left: 0; }
.testi-nav.next { right: 0; }
.testi-pause {
    margin: 1.5rem auto 0;
    background: none;
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color .2s ease;
}
.testi-pause:hover { background: rgba(255,255,255,.1); }
.testi-pause svg { width: 16px; height: 16px; }
.testi-pause .icon-play,
.testi-pause[aria-pressed="true"] .icon-pause { display: none; }
.testi-pause[aria-pressed="true"] .icon-play { display: block; }

/* ---------- Chambres ---------- */
.rooms {
    position: relative;
    padding: 4rem 0;
    background: #fff;
    overflow: hidden;
}
.rooms .wrap,
.equip .wrap {
    position: relative;
}
.rooms-title-wrap,
.equip-title-wrap {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}
.rooms-title {
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    font-size: clamp(2.5rem, 8.5vw, 10rem);
    line-height: 1;
    transition: transform .4s ease, color .4s ease;
    cursor: default;
}
.rooms-title:hover { transform: scale(1.03); color: var(--brand-light); }

.rooms-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Desktop: the title straddles the top edge of the grid (half above, half
   hidden behind the cards), like on the reference site. */
@media (min-width: 1024px) {
    .rooms { padding: 8rem 0 4rem; }
    .rooms-title-wrap {
        position: absolute;
        top: 0;
        left: 50%;
        translate: -50% -62%; /* not `transform`: .reveal.in-view resets it */
        z-index: 0;
        width: max-content;
        margin-bottom: 0;
    }
    .rooms-title { white-space: nowrap; }
}
.room-card {
    background: var(--brand);
    color: #fff;
    display: flex;
    flex-direction: column;
}
.room-media {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #cbd5e1;
}
.room-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .5s ease, transform .5s ease;
    cursor: zoom-in;
}
.room-media img.active { opacity: 1; }
.room-media:hover img.active { transform: scale(1.03); }
.room-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    text-align: left;
}
.room-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .25s ease, color .25s ease;
    transform-origin: left;
}
.room-body h3:hover { transform: scale(1.04); color: var(--brand-light); }
.room-body p {
    font-size: .9rem;
    line-height: 1.5;
    color: rgba(255,255,255,.9);
}

@media (min-width: 768px) {
    .rooms-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .rooms-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Equipements ---------- */
.equip {
    position: relative;
    padding: 4rem 0;
    background: var(--brand);
    overflow: hidden;
}
.equip-title {
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    opacity: .9;
    font-size: clamp(2rem, 7vw, 8.5rem);
    line-height: 1;
    transition: transform .4s ease, opacity .4s ease;
    cursor: default;
}
.equip-title:hover { transform: scale(1.03); opacity: 1; }

/* Translated section titles are longer than the French ones: scale them down
   so they take the same width (see /nl/ and /de/ pages). */
html[lang="nl"] .rooms-title { font-size: clamp(2rem, 7.2vw, 8.5rem); }
html[lang="de"] .rooms-title { font-size: clamp(1.85rem, 6.4vw, 7.6rem); }
html[lang="nl"] .equip-title { font-size: clamp(1.8rem, 6.4vw, 7.8rem); }
.equip-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Desktop: the title straddles the top edge of the grid, like on the
   reference site. */
@media (min-width: 1024px) {
    .equip { padding: 8rem 0 4rem; }
    .equip-title-wrap {
        position: absolute;
        top: 0;
        left: 50%;
        translate: -50% -62%; /* not `transform`: .reveal.in-view resets it */
        z-index: 0;
        width: max-content;
        margin-bottom: 0;
    }
    .equip-title { white-space: nowrap; }
}
.equip-card {
    background: #fff;
}
.equip-media {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}
.equip-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .5s ease;
}
.equip-media:hover img { transform: scale(1.05); }
.equip-body {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.equip-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand);
    transition: transform .25s ease, color .25s ease;
    transform-origin: left;
    cursor: pointer;
}
.equip-body h3:hover { transform: scale(1.04); color: var(--brand-dark); }
.equip-body p {
    font-size: .88rem;
    line-height: 1.5;
    color: var(--brand);
}
.equip-cta {
    margin-top: 3rem;
    text-align: center;
}
.btn-white {
    background: #fff;
    color: var(--brand);
}
.btn-white:hover { background: var(--brand-light); }

@media (min-width: 768px) {
    .equip-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Perigueux sights ---------- */
.sights {
    padding: 5rem 0;
    background: #fff;
}
.sights-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.sights-head h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
}
.sights-head h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sights-head p {
    font-size: .95rem;
    color: var(--brand);
    margin-top: .5rem;
}
.sights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem 4rem;
}
.sight {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    text-align: left;
}
.sight .frame {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}
.sight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .7s ease;
}
.sight:hover img { transform: scale(1.05); }
/* Portrait photos: frame the façades rather than the sky */
.sight img.focus-facade { object-position: center 60%; }
.sight h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand);
}
.sight p {
    font-size: .9rem;
    line-height: 1.5;
    color: var(--brand);
}

@media (min-width: 768px) {
    .sights-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Réserver (last call to action) ---------- */
.book {
    padding: 4.5rem 0;
    text-align: center;
}
.book-inner {
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.book-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    line-height: 1.3;
}
.book-text {
    line-height: 1.55;
    color: var(--brand-light);
    max-width: 52ch;
}
.book-options {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px #fff; }

@media (min-width: 1024px) {
    .book-options { flex-direction: row; justify-content: center; max-width: none; }
    .book-options .btn { white-space: nowrap; }
}

/* ---------- Footer ---------- */
.footer {
    background: #fff;
    color: var(--brand);
    border-top: 1px solid #f1f5f9;
}
.footer-top {
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.footer-logo {
    font-family: 'Playwrite IN', cursive;
    font-style: italic;
    font-size: 1.7rem;
    color: var(--brand);
    transition: opacity .25s ease;
}
.footer-logo:hover { opacity: .8; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 2rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(69,123,157,.8);
}
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
    background: var(--brand);
    color: #fff;
    text-align: center;
    font-size: .72rem;
    letter-spacing: .03em;
    padding: 1rem 1.5rem;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.95);
    padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    z-index: 20;
}
.lightbox-close svg { width: 34px; height: 34px; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.lightbox-nav:hover { color: #fff; }
.lightbox-nav svg { width: 46px; height: 46px; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox.single .lightbox-nav { display: none; }
.lightbox-content {
    max-width: 1100px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 25px 50px rgba(0,0,0,.5);
}
.lightbox-count {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    letter-spacing: .08em;
}
.lightbox-tabs {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    padding: .6rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
    z-index: 20;
}
.lightbox-tabs button {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    color: rgba(255,255,255,.55);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .1rem 0;
}
.lightbox-tabs button.active {
    color: #fff;
    font-weight: 700;
    border-color: #fff;
}

/* ---------- Amenities modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(3px);
    padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-card {
    position: relative;
    background: #fff;
    color: #364152;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.3);
    border: 1px solid #f1f5f9;
}
.modal-close {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    background: none;
    border: none;
    color: var(--brand);
}
.modal-close svg { width: 28px; height: 28px; }
.modal-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.modal-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 3rem;
}
.modal-cat h3 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand);
    padding-bottom: .5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}
.modal-cat ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.modal-cat li {
    font-size: .88rem;
    color: #475569;
    display: flex;
    gap: .5rem;
}

@media (min-width: 768px) {
    .modal-categories { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .modal-categories { grid-template-columns: 1fr 1fr 1fr; }
}

body.no-scroll { overflow: hidden; }

/* ---------- Booking modal ---------- */
.booking-card { max-width: 480px; }
.booking-card h2 { padding-right: 2.5rem; }
.booking-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.booking-option { text-align: center; }
.booking-option-phone {
    background: #fff;
    color: var(--brand);
    box-shadow: inset 0 0 0 2px var(--brand);
}
.booking-option-phone:hover { background: var(--brand-light); }

/* ---------- Pages légales (CGU / CGV) ---------- */
.legal-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}
.legal-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.legal-back {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
}
.legal-back:hover { color: var(--brand-deep); }
.legal {
    max-width: 820px;
    padding-top: 3rem;
    padding-bottom: 4rem;
    line-height: 1.65;
    font-size: .95rem;
}
.legal h1 {
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.15;
}
.legal-updated { margin-top: .5rem; font-size: .8rem; color: #64748b; }
.legal-toc {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin: 2rem 0 1rem;
    padding: 1rem 1.25rem;
    background: var(--brand-light);
    border-radius: .4rem;
}
.legal-toc a { color: var(--brand-deep); font-weight: 700; font-size: .9rem; }
.legal-toc a:hover { text-decoration: underline; }
.legal section { padding-top: 2rem; }
.legal h2 {
    font-size: 1.3rem;
    color: var(--brand-deep);
    padding-bottom: .6rem;
    margin-bottom: .5rem;
    border-bottom: 2px solid var(--brand-light);
}
.legal h3 {
    font-size: 1rem;
    color: var(--brand);
    margin: 1.75rem 0 .5rem;
}
.legal p + p { margin-top: .6rem; }
.legal ul { margin: .5rem 0 .6rem; padding-left: 1.25rem; }
.legal li + li { margin-top: .3rem; }
.legal p a { color: var(--brand); text-decoration: underline; }
