/* ==========================================================================
   TY DOMOVOÏ
   Direction : éditorial côtier, typographies dramatiques,
   composition asymétrique, palette terre & sel.
   ========================================================================== */

:root {
    /* === Palette === */
    --bone:        #f1e8d8;   /* fond crème principal */
    --bone-warm:   #e6d9bf;   /* fond crème accentué */
    --paper:       #faf3e6;   /* surfaces claires */
    --ink:         #1a2429;   /* texte principal — ardoise profonde */
    --ink-soft:    #5d5043;   /* texte secondaire — terre douce */
    --ink-faint:   #8a7c6a;   /* meta, capitales */
    --rule:        #c9bba0;   /* filets fins */
    --terra:       #a55738;   /* terre cuite — accent principal */
    --terra-dk:    #823f24;   /* terre cuite foncée */
    --sage:        #5e7560;   /* vert sourd — second accent */

    /* === Typographie === */
    --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
    --body:    "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

    /* === Layout === */
    --measure-narrow: 620px;
    --measure-text:   720px;
    --measure-wide:   1280px;
    --gutter: clamp(1.2rem, 4vw, 3rem);
}

/* === Reset & globals ==================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bone);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Texture papier subtile via SVG inline */
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dk); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--terra); }

::selection { background: var(--terra); color: var(--paper); }

/* Wrappers */
.wrap        { max-width: var(--measure-wide); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--measure-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-text   { max-width: var(--measure-text); margin: 0 auto; padding: 0 var(--gutter); }

/* ========================================================================== */
/*  HEADER                                                                    */
/* ========================================================================== */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    padding: 1.8rem 0;
}
.site-header.invert .brand-name,
.site-header.invert .brand-tag,
.site-header.invert .nav a { color: var(--paper); }
.site-header.invert .nav a {
    text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
}
.site-header.invert .nav a::after { background: var(--paper); }

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-name {
    font-family: var(--display);
    font-weight: 400;
    font-style: italic;
    font-size: 1.6rem;
    font-variation-settings: "opsz" 144, "SOFT" 80;
    letter-spacing: -.01em;
}
.brand-tag {
    margin-top: .3rem;
    font-size: .68rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav a {
    position: relative;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink);
    padding: .25rem 0;
}
.nav a.is-active,
.nav a:hover { color: var(--terra); }
.nav a.is-active::after,
.nav a:hover::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 1px;
    background: var(--terra);
}

/* ========================================================================== */
/*  HERO — pleine page, type qui déborde sur la coupure                       */
/* ========================================================================== */
.hero {
    position: relative;
    height: 92vh;
    min-height: 620px;
    overflow: hidden;
    color: var(--paper);
    isolation: isolate;
}
.hero::after {
    /* gradient warm en bas pour ancrer la typo */
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(26,36,41,.35) 0%, rgba(26,36,41,0) 35%, rgba(26,36,41,0) 55%, rgba(26,36,41,.78) 100%);
    z-index: 1;
}
.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    z-index: 0;
}

.hero-meta {
    position: absolute;
    top: 50%;
    left: var(--gutter);
    transform: rotate(-90deg) translateX(50%);
    transform-origin: left top;
    z-index: 2;
    font-size: .7rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    opacity: .85;
    font-weight: 500;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(3rem, 6vh, 5rem);
}
.hero-eyebrow {
    font-size: .78rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    font-weight: 500;
    color: var(--paper);
    opacity: .9;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--paper);
    opacity: .7;
}
.hero-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(4rem, 13vw, 11rem);
    line-height: .88;
    letter-spacing: -.04em;
    margin: 0;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-title .is-italic {
    font-style: italic;
    font-weight: 300;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-subtitle {
    margin: 2rem 0 0;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.45;
    font-weight: 300;
    max-width: 540px;
    opacity: .95;
}
.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === Boutons ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.8rem;
    font-family: var(--body);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .3s cubic-bezier(.2,.7,.2,1);
    white-space: nowrap;
    line-height: 1;
}
.btn-primary {
    background: var(--terra);
    color: var(--paper);
    border-color: var(--terra);
}
.btn-primary:hover {
    background: var(--terra-dk);
    border-color: var(--terra-dk);
    color: var(--paper);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}
.btn .arrow {
    display: inline-block;
    transition: transform .3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ========================================================================== */
/*  STATS — bandeau éditorial horizontal                                      */
/* ========================================================================== */
.stats {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--bone);
    position: relative;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat {
    padding: 2rem 1.5rem;
    text-align: center;
    border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: none; }
.stat-label {
    font-size: .68rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 .6rem;
    font-weight: 500;
}
.stat-value {
    margin: 0;
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    color: var(--ink);
    font-variation-settings: "opsz" 144;
}
.stat-value sup {
    font-size: .55em;
    font-style: normal;
    vertical-align: super;
    margin-left: .15em;
    color: var(--terra);
}

/* ========================================================================== */
/*  SECTION — chapitres numérotés                                             */
/* ========================================================================== */
.section {
    padding: clamp(4rem, 9vw, 8rem) 0;
    position: relative;
}
.section + .section {
    border-top: 1px solid var(--rule);
}
.section--alt {
    background: var(--bone-warm);
}

.chapter {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}
.chapter-no {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: .1em;
    color: var(--terra);
    padding-top: .8rem;
    position: relative;
    font-variation-settings: "opsz" 144;
}
.chapter-no::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.4rem;
    width: 60px;
    height: 1px;
    background: var(--terra);
}

.chapter-body { min-width: 0; }
.eyebrow {
    font-size: .72rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 1.5rem;
    font-weight: 500;
}
.headline {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -.025em;
    margin: 0 0 2rem;
    max-width: 14ch;
    font-variation-settings: "opsz" 144, "SOFT" 60;
}
.headline em {
    font-style: italic;
    color: var(--terra);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Lead with drop cap */
.lead {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    line-height: 1.45;
    color: var(--ink);
    max-width: var(--measure-text);
    margin: 0 0 1.8rem;
    font-variation-settings: "opsz" 144;
}
.lead::first-letter {
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    float: left;
    font-size: 4.5em;
    line-height: .85;
    margin: .08em .12em -.05em 0;
    color: var(--terra);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.prose {
    max-width: var(--measure-text);
    color: var(--ink-soft);
    font-size: 1.02rem;
}
.prose p { margin: 0 0 1.2rem; }
.prose em { color: var(--ink); font-style: italic; }
.prose strong { color: var(--ink); font-weight: 600; }

.more-link {
    margin: 2.5rem 0 0;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.more-link a {
    color: var(--terra);
    border-bottom: 1px solid var(--terra);
    padding-bottom: .25rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.more-link a:hover { color: var(--terra-dk); border-bottom-color: var(--terra-dk); }
.more-link .arrow { transition: transform .3s ease; }
.more-link a:hover .arrow { transform: translateX(4px); }

/* Pull quote */
.pullquote {
    margin: 3rem 0;
    padding: 0 0 0 2rem;
    border-left: 1px solid var(--terra);
    max-width: var(--measure-text);
}
.pullquote p {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.25;
    color: var(--ink);
    margin: 0;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Ornement décoratif */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 4rem auto;
    max-width: 200px;
    opacity: .5;
}
.ornament::before, .ornament::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ink);
}
.ornament .diamond {
    width: 6px;
    height: 6px;
    background: var(--terra);
    transform: rotate(45deg);
}

/* ========================================================================== */
/*  ÉTAGES — composition de spreads horizontaux                               */
/* ========================================================================== */
.floors {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.floor {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: 2.5rem 0;
    border-top: 1px solid var(--rule);
    align-items: start;
}
.floor:last-child { border-bottom: 1px solid var(--rule); }
.floor-marker {
    position: sticky;
    top: 2rem;
}
.floor-no {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 4rem;
    line-height: .9;
    color: var(--terra);
    margin: 0;
    font-variation-settings: "opsz" 144;
}
.floor-label {
    margin: .5rem 0 0;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 500;
}
.floor-name {
    margin: .8rem 0 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.15;
    color: var(--ink);
    font-variation-settings: "opsz" 144;
    max-width: 8ch;
}

.floor-rooms {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2.5rem;
}
.floor-rooms li {
    padding: .55rem 0;
    border-top: 1px dotted var(--rule);
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.45;
    break-inside: avoid;
}
.floor-rooms li:first-child { border-top: none; padding-top: 0; }
.floor-rooms li::before {
    content: "—";
    color: var(--terra);
    margin-right: .6rem;
}

.garden-note {
    margin-top: 3rem;
    text-align: center;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--sage);
    font-variation-settings: "opsz" 144;
}

/* ========================================================================== */
/*  CONCIERGERIE                                                              */
/* ========================================================================== */
.concierge {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.concierge-card {
    border-top: 1px solid var(--terra);
    padding-top: 1.8rem;
}
.concierge-card .kicker {
    font-size: .7rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--terra);
    margin: 0 0 .8rem;
    font-weight: 600;
}
.concierge-card h3 {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 2rem;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.concierge-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.concierge-list li {
    padding: .85rem 0;
    border-top: 1px solid var(--rule);
    color: var(--ink);
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    gap: .8rem;
}
.concierge-list li:first-child { border-top: none; }
.concierge-list .num {
    font-family: var(--display);
    font-style: italic;
    font-size: .8rem;
    color: var(--ink-faint);
    font-variation-settings: "opsz" 144;
    min-width: 1.5em;
}

.concierge-note {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding: 2rem;
    background: var(--paper);
    border-left: 3px solid var(--sage);
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--ink);
    max-width: 760px;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* ========================================================================== */
/*  CTA finale                                                                */
/* ========================================================================== */
.outro {
    text-align: center;
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--ink);
    color: var(--paper);
    border-top: 1px solid var(--rule);
}
.outro .eyebrow {
    color: var(--bone-warm);
    opacity: .8;
}
.outro-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: .95;
    letter-spacing: -.02em;
    margin: 0 auto 1.8rem;
    max-width: 18ch;
    font-variation-settings: "opsz" 144, "SOFT" 60;
}
.outro-title em {
    font-style: italic;
    color: var(--terra);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.outro-text {
    max-width: 540px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--bone);
    font-weight: 300;
}
.outro-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.outro .btn-outline {
    color: var(--paper);
    border-color: var(--paper);
}
.outro .btn-outline:hover {
    background: var(--paper);
    color: var(--ink);
}

/* ========================================================================== */
/*  FOOTER                                                                    */
/* ========================================================================== */
.site-footer {
    background: var(--bone);
    color: var(--ink);
    padding: 4rem 0 2.5rem;
    border-top: 1px solid var(--rule);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .brand-name { font-size: 2rem; color: var(--ink); }
.footer-brand p {
    margin: 1rem 0 0;
    color: var(--ink-soft);
    max-width: 36ch;
    font-size: .95rem;
    line-height: 1.6;
}
.footer-col h4 {
    font-size: .7rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 1.2rem;
    font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .65rem; }
.footer-col a {
    color: var(--ink);
    font-size: .92rem;
}
.footer-col a:hover { color: var(--terra); }
.footer-base {
    border-top: 1px solid var(--rule);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .78rem;
    color: var(--ink-faint);
    letter-spacing: .04em;
}

/* ========================================================================== */
/*  PAGES SECONDAIRES                                                         */
/* ========================================================================== */
.page-banner {
    padding: 11rem 0 5rem;
    background: var(--bone-warm);
    border-bottom: 1px solid var(--rule);
    text-align: center;
    position: relative;
}
.page-banner .eyebrow { color: var(--terra); margin-bottom: 1rem; }
.page-banner h1 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: .95;
    letter-spacing: -.025em;
    margin: 0;
    font-variation-settings: "opsz" 144, "SOFT" 60;
}
.page-banner h1 em {
    font-style: italic;
    color: var(--terra);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.page-banner .sub {
    margin: 1.5rem auto 0;
    max-width: 540px;
    color: var(--ink-soft);
    font-size: 1.08rem;
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "opsz" 144;
}

.page-body { padding: clamp(4rem, 8vw, 7rem) 0; }
.placeholder {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}
.placeholder .mark {
    display: block;
    font-family: var(--display);
    font-style: italic;
    font-size: 5rem;
    line-height: 1;
    color: var(--terra);
    margin-bottom: 1.5rem;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.placeholder h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 1rem;
    font-variation-settings: "opsz" 144;
}
.placeholder p {
    color: var(--ink-soft);
    margin: 0 0 2.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}
.placeholder-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================================================== */
/*  GALERIE (pour usage futur dans photos.html)                               */
/* ========================================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
.gallery a {
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 3;
}
.gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.gallery a:hover img { transform: scale(1.04); }
.gallery .g-wide    { grid-column: span 8; aspect-ratio: 16/9; }
.gallery .g-tall    { grid-column: span 4; aspect-ratio: 3/4; }
.gallery .g-half    { grid-column: span 6; }
.gallery .g-third   { grid-column: span 4; }
.gallery .g-quarter { grid-column: span 3; }

/* Galerie segmentée par catégorie */
.gallery-section { margin-bottom: 5rem; }
.gallery-section:last-child { margin-bottom: 0; }
.gallery-section .gallery { margin-top: 1.8rem; }
.gallery-head {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.gallery-head .gallery-no {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.6rem;
    color: var(--terra);
    margin: 0;
    font-variation-settings: "opsz" 144;
    flex-shrink: 0;
}
.gallery-head h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    color: var(--ink);
    margin: 0;
    flex: 1;
    font-variation-settings: "opsz" 144, "SOFT" 60;
}
.gallery-head h2 em {
    font-style: italic;
    color: var(--terra);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
.gallery-head .count {
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 500;
    flex-shrink: 0;
}

/* ========================================================================== */
/*  LANG SWITCHER                                                             */
/* ========================================================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.lang-switcher a {
    color: var(--ink-faint);
    padding: .15rem .25rem;
    transition: color .2s ease;
}
.lang-switcher a:hover { color: var(--terra); }
.lang-switcher a.is-active { color: var(--terra); }
.lang-switcher span {
    color: var(--rule);
    font-weight: 300;
    font-size: .9em;
}
.site-header.invert .lang-switcher a { color: rgba(255,255,255,.55); text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.site-header.invert .lang-switcher a:hover,
.site-header.invert .lang-switcher a.is-active { color: var(--paper); }
.site-header.invert .lang-switcher span { color: rgba(255,255,255,.3); }

/* ========================================================================== */
/*  CALENDRIER DISPONIBILITÉS                                                 */
/* ========================================================================== */
.cal-wrap    { margin-top: 2.5rem; }

.cal-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    align-items: center;
}
.cal-legend span { display: flex; align-items: center; gap: .5rem; }
.cal-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}
.cal-swatch--free   { background: var(--sage); }
.cal-swatch--booked { background: var(--terra); opacity: .6; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 4rem;
}
.cal-month-title {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.35rem;
    color: var(--ink);
    margin: 0 0 1rem;
    font-variation-settings: "opsz" 144, "SOFT" 80;
}
.cal-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.cal-row--head {
    margin-bottom: .3rem;
    border-bottom: 1px solid var(--rule);
    padding-bottom: .4rem;
}
.cal-row--head span {
    text-align: center;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.cal-row--days { gap: 2px; }
.cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    border-radius: 2px;
}
.cal-cell--blank  { visibility: hidden; }
.cal-cell--past   { color: var(--rule); }
.cal-cell--free   { color: var(--ink); background: rgba(94,117,96,.13); }
.cal-cell--booked {
    background: rgba(165,87,56,.13);
    color: var(--terra);
    text-decoration: line-through;
    opacity: .75;
}
.cal-cell--today  { outline: 1.5px solid var(--terra); outline-offset: -1.5px; font-weight: 700; }

.cal-status        { color: var(--ink-faint); font-size: .9rem; margin: 0; }
.cal-status--error { color: var(--terra); }

.cal-lead {
    max-width: var(--measure-text);
    color: var(--ink-soft);
    font-size: .95rem;
    margin: 0 0 2rem;
    font-style: italic;
}
.cal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
}

/* ========================================================================== */
/*  RESPONSIVE                                                                */
/* ========================================================================== */
@media (max-width: 1000px) {
    .chapter { grid-template-columns: 1fr; gap: 1.5rem; }
    .chapter-no { padding-top: 0; }
    .chapter-no::after { width: 40px; }
    .floor { grid-template-columns: 120px 1fr; gap: 1.5rem; }
    .floor-marker { position: static; }
    .floor-no { font-size: 3rem; }
    .floor-rooms { columns: 1; }
    .concierge { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: none; }
    .stat:nth-child(odd) { border-left: none; }
    .stat:nth-child(even) { border-left: 1px solid var(--rule); }
    .stat { border-top: 1px solid var(--rule); }
    .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
    /* Galerie : passage à 2 colonnes */
    .gallery .g-wide,
    .gallery .g-half    { grid-column: span 12; aspect-ratio: 16/9; }
    .gallery .g-third,
    .gallery .g-quarter,
    .gallery .g-tall    { grid-column: span 6; aspect-ratio: 4/3; }
}

@media (max-width: 700px) {
    body { font-size: 16px; }
    .nav { gap: 1.2rem; }
    .nav a { font-size: .78rem; }
    .header-row { flex-direction: column; gap: 1rem; }
    .hero { height: auto; min-height: 0; padding-top: 9rem; padding-bottom: 4rem; }
    .hero-content { padding-bottom: 0; }
    .hero-meta { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .floor { grid-template-columns: 1fr; }
    .floor-marker { display: flex; align-items: baseline; gap: 1rem; }
    .floor-no { font-size: 2.5rem; }
    .floor-label { margin: 0; }
    .floor-name { margin-top: .3rem; }
    .lead::first-letter { font-size: 3.5em; }
    .outro-actions { flex-direction: column; }
    .outro-actions .btn { justify-content: center; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stat { padding: 1.5rem 1rem; }
    .stat-value { font-size: 1.6rem; }
    /* Galerie : passage à 1 colonne */
    .gallery .g-third,
    .gallery .g-quarter,
    .gallery .g-tall { grid-column: span 12; aspect-ratio: 4/3; }
    .gallery-head { flex-wrap: wrap; gap: .5rem 1rem; }
    .gallery-head .count { flex-basis: 100%; }
}

@media (max-width: 1000px) {
    .cal-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
}
@media (max-width: 560px) {
    .cal-grid { grid-template-columns: 1fr; }
}

/* Subtle entrance animation - respect motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow,
    .hero-title,
    .hero-subtitle,
    .hero-actions {
        opacity: 0;
        animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
    }
    .hero-eyebrow  { animation-delay: .1s; }
    .hero-title    { animation-delay: .25s; }
    .hero-subtitle { animation-delay: .55s; }
    .hero-actions  { animation-delay: .75s; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

@media print {
    .site-header, .hero-actions, .outro, .site-footer { display: none; }
    .hero { color: var(--ink); }
    body { background: white; }
}
