/* ═══════════════════════════════════════════════════════════
   LA TOUR DE BOCSOZEL — Style médiéval ultra-luxe
   ═══════════════════════════════════════════════════════════ */

/* --- CSS Custom Properties --- */
:root {
    /* Palette */
    --gold: #d4a853;
    --gold-light: #f0d68a;
    --gold-dark: #b8922d;
    --burgundy: #6b1d2a;
    --burgundy-deep: #4a0e1a;
    --charcoal: #1a1a1a;
    --charcoal-warm: #2a2018;
    --parchment: #f5efe6;
    --parchment-dark: #e8ddd0;
    --cream: #faf8f4;
    --ink: #1a0f08;
    --ink-light: #3a2a1e;

    /* Typography */
    --font-display: 'Cinzel Decorative', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-medieval: 'MedievalSharp', cursive;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-width: 1200px;
    --container-padding: clamp(20px, 5vw, 60px);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 1.2s var(--ease-out-expo);
    --transition-medium: 0.8s var(--ease-out-expo);
    --transition-fast: 0.4s var(--ease-out-quart);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--ink);
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.intro-active {
    overflow: hidden;
}

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

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

::selection {
    background: var(--gold);
    color: var(--ink);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   INTRO OVERLAY — Écusson portail
   ═══════════════════════════════════════════════════════════ */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.intro-overlay.is-opening .intro-gate--left {
    transform: translateX(-100%);
}
.intro-overlay.is-opening .intro-gate--right {
    transform: translateX(100%);
}
.intro-overlay.is-opening .intro-shield {
    opacity: 0;
    transform: scale(0.5);
}
.intro-overlay.is-hidden {
    pointer-events: none;
    visibility: hidden;
}

.intro-gate {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--ink);
    transition: transform 1.8s var(--ease-out-expo);
    /* Texture de bois / château */
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(212, 168, 83, 0.03) 40px,
            rgba(212, 168, 83, 0.03) 41px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(212, 168, 83, 0.02) 60px,
            rgba(212, 168, 83, 0.02) 61px
        );
}

/* Pas de filet doré au milieu : il barrait le mot « Découvrir » */
.intro-gate--left {
    left: 0;
}

.intro-gate--right {
    right: 0;
}

.intro-shield {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    transition: opacity 0.6s ease, transform 0.6s ease;
    animation: shieldFloat 4s ease-in-out infinite;
}

@keyframes shieldFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.shield-svg {
    display: block;
    width: clamp(150px, 26vw, 210px);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(212, 168, 83, 0.3));
}

.intro-tagline {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 2vw, 1rem);
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.8;
}

.intro-enter-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 14px 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.intro-enter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.intro-enter-btn:hover {
    color: var(--ink);
}

.intro-enter-btn:hover::before {
    transform: translateY(0);
}

.intro-enter-btn span {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px var(--container-padding);
    transition: all 0.5s ease;
    /* Voile sombre en haut : les liens dorés restent lisibles même sur une photo claire */
    background: linear-gradient(180deg, rgba(26, 15, 8, 0.88) 0%, rgba(26, 15, 8, 0.45) 60%, transparent 100%);
}

.nav.is-scrolled {
    background: rgba(26, 15, 8, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px var(--container-padding);
    box-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.nav__logo {
    flex-shrink: 0;
}

.nav__shield {
    display: block;
    width: 46px;
    height: auto;
    transition: transform 0.3s ease;
}

.nav__shield:hover {
    transform: scale(1.1);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    /* Reste visible même posé sur une photo claire */
    box-shadow: 0 0 6px rgba(26, 15, 8, 0.9);
    transition: all 0.3s ease;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    list-style: none;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    position: relative;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-light);
    transition: width 0.4s var(--ease-out-expo);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    border: 1px solid var(--gold);
    padding: 8px 24px;
    transition: all 0.4s ease;
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
    background: var(--gold);
    color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 52% 48%;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(74, 50, 30, 0.55) 0%, transparent 65%),
        linear-gradient(180deg, #1a0f08 0%, #241509 40%, #1a0f08 100%);
    padding-bottom: 40px;
}

/* --- Panneau photo, colonne de droite --- */
.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* 6 photos × 6 s = 36 s de cycle */
    animation: heroSlide 36s linear infinite;
}

.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }
.hero__slide:nth-child(5) { animation-delay: 24s; }
.hero__slide:nth-child(6) { animation-delay: 30s; }

@keyframes heroSlide {
    0%    { opacity: 0;    transform: scale(1.07); }
    4%    { opacity: 0.94; }
    14%   { opacity: 0.94; }
    18%   { opacity: 0;    transform: scale(1); }
    100%  { opacity: 0;    transform: scale(1); }
}

/* Le bord gauche du panneau se dissout dans le fond : pas de couture nette */
.hero__media-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            #1a0f08 0%,
            rgba(26, 15, 8, 0.97) 30%,
            rgba(26, 15, 8, 0.75) 44%,
            rgba(26, 15, 8, 0.18) 56%,
            rgba(26, 15, 8, 0) 66%),
        linear-gradient(180deg,
            rgba(26, 15, 8, 0.55) 0%,
            rgba(26, 15, 8, 0) 22%,
            rgba(26, 15, 8, 0) 72%,
            rgba(26, 15, 8, 0.6) 100%);
}

/* Mouvement réduit : première photo fixe, aucune animation, pas de vidéo */
@media (prefers-reduced-motion: reduce) {
    .hero__slide { animation: none; }
    .hero__slide:nth-child(1) { opacity: 0.94; }
}

.hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--parchment);
    padding: 0 48px 0 var(--container-padding);
    max-width: 680px;
}

.hero__content .hero__separator,
.hero__content .hero__location {
    justify-content: flex-start;
}

.hero__ornament {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.6;
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero__title {
    margin-bottom: 24px;
}

.hero__title-line {
    display: block;
    font-family: var(--font-heading); /* Cinzel — capitales romaines lapidaires, inscription gravée */
    font-weight: 600;
    /* Calibré pour tenir dans la colonne de gauche, sans césure */
    font-size: clamp(2rem, 4.2vw, 3.9rem);
    line-height: 1.15;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero__title-line--accent {
    font-weight: 700;
    letter-spacing: 5px;
    font-size: clamp(2.4rem, 5.4vw, 5.1rem);
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(212, 168, 83, 0.3));
}

.hero__separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero__sep-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.hero__sep-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero__sep-diamond {
    color: var(--gold);
    font-size: 0.7rem;
}

.hero__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 40px;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 16px 36px;
    transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    /* Fond opaque : rien du décor ne traverse le bouton */
    background: rgba(26, 15, 8, 0.72);
    backdrop-filter: blur(6px);
}

.hero__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.hero__cta:hover,
.hero__cta:focus-visible {
    color: var(--ink);
    border-color: var(--gold-light);
    box-shadow: 0 10px 40px rgba(212, 168, 83, 0.25);
}

.hero__cta:hover::before,
.hero__cta:focus-visible::before {
    transform: scaleX(1);
}

.hero__cta span,
.hero__cta svg {
    position: relative;
    z-index: 1;
}

/* Sous 900 px : plus de place pour deux colonnes — la photo repasse en fond */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hero__slide {
        animation-name: heroSlideMobile;
    }

    @keyframes heroSlideMobile {
        0%    { opacity: 0;   transform: scale(1.07); }
        4%    { opacity: 0.5; }
        14%   { opacity: 0.5; }
        18%   { opacity: 0;   transform: scale(1); }
        100%  { opacity: 0;   transform: scale(1); }
    }

    .hero__media-fade {
        background: linear-gradient(180deg,
            rgba(26, 15, 8, 0.8) 0%,
            rgba(26, 15, 8, 0.45) 35%,
            rgba(26, 15, 8, 0.55) 70%,
            rgba(26, 15, 8, 0.9) 100%);
    }

    .hero__content {
        text-align: center;
        padding: 0 var(--container-padding);
        max-width: 100%;
    }

    .hero__content .hero__separator,
    .hero__content .hero__location {
        justify-content: center;
    }

    @media (prefers-reduced-motion: reduce) {
        .hero__slide:nth-child(1) { opacity: 0.5; }
    }
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS — Shared
   ═══════════════════════════════════════════════════════════ */
.section {
    padding: var(--section-padding) var(--container-padding);
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.section__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.ornament-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark));
}

.ornament-line:last-child {
    background: linear-gradient(90deg, var(--gold-dark), transparent);
}

.ornament-text {
    font-family: var(--font-medieval);
    font-size: 1.2rem;
    color: var(--gold-dark);
    opacity: 0.6;
}

.section__pretitle {
    font-family: var(--font-heading);
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 16px;
}

.section__title em {
    font-style: italic;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--burgundy);
}

.section__separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.section__separator span:first-child,
.section__separator span:last-child {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.section__separator span:nth-child(2) {
    color: var(--gold);
    font-size: 0.6rem;
}

/* ═══════════════════════════════════════════════════════════
   LA DEMEURE
   ═══════════════════════════════════════════════════════════ */
.demeure__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.demeure__images {
    position: relative;
}

.demeure__img-main {
    position: relative;
    overflow: hidden;
}

.demeure__img-main img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.demeure__img-main:hover img {
    transform: scale(1.05);
}

.img-frame {
    position: absolute;
    inset: 12px;
    border: 1px solid var(--gold);
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.demeure__img-main:hover .img-frame {
    opacity: 0.8;
}

.demeure__img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 55%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.demeure__img-secondary img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.demeure__text {
    padding-left: 20px;
}

.demeure__description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink-light);
    margin-bottom: 20px;
}

.demeure__description em {
    color: var(--burgundy);
    font-weight: 500;
}

.demeure__details {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 168, 83, 0.2);
}

.demeure__detail {
    display: flex;
    flex-direction: column;
}

.demeure__detail-number {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.demeure__detail-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-light);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   CHAMBRES
   ═══════════════════════════════════════════════════════════ */
.chambres {
    background: var(--cream);
}

.chambres__header {
    text-align: center;
    margin-bottom: 60px;
}

.chambres__header .section__separator {
    justify-content: center;
}

.chambres__intro {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--ink-light);
    font-style: italic;
}

.chambres__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.chambre-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 60px rgba(0,0,0,0.08);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s ease;
}

/* Gîte — carte pleine largeur, image à gauche sur desktop */
.chambre-card--gite {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 46% 1fr;
    align-items: start;
}

.chambre-card__media {
    display: flex;
    flex-direction: column;
}

.chambre-card--gite .chambre-card__image {
    aspect-ratio: 3 / 2;
}

.chambre-card--gite .chambre-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chambre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 80px rgba(0,0,0,0.15);
}

.chambre-card__image {
    position: relative;
    overflow: hidden;
    /* 3:2 : assez large pour voir la pièce, moins haut que le 4:3 */
    aspect-ratio: 3 / 2;
    cursor: zoom-in;
}

.chambre-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1s var(--ease-out-expo);
}

.chambre-card:hover .chambre-card__image img {
    transform: scale(1.08);
}

.chambre-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26, 15, 8, 0.4) 100%);
}

.chambre-card__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(26, 15, 8, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border: 1px solid rgba(212, 168, 83, 0.3);
}

.chambre-card__content {
    padding: 28px 32px 32px;
}

.chambre-card__ornament {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.chambre-card__name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 6px;
}

.chambre-card__capacity {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.chambre-card__sep {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 20px;
}

.chambre-card__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-light);
    margin-bottom: 20px;
}

.chambre-card__features {
    list-style: none;
    margin-bottom: 20px;
}

.chambre-card__features li {
    font-size: 0.92rem;
    color: var(--ink-light);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.chambre-card__features li::before {
    content: '~';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-family: var(--font-medieval);
}

/* Galeries photo : vignettes cliquables qui pilotent la grande image de la fiche */
.photo-gallery {
    display: flex;
    gap: 6px;
    padding: 8px;
    margin: 0;
}

.photo-gallery__item {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: center;
    font: inherit;
}

.photo-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: saturate(0.9) brightness(0.92);
    border: 1px solid transparent;
    transition: transform 0.5s var(--ease-out-expo), filter 0.4s ease,
                border-color 0.3s ease;
}

.photo-gallery__item span {
    display: block;
    margin-top: 4px;
    font-family: var(--font-heading);
    font-size: 0.5rem;
    letter-spacing: 0.8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    color: var(--ink-light);
    opacity: 0.6;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.photo-gallery__item:hover img,
.photo-gallery__item:focus-visible img {
    filter: saturate(1.05) brightness(1);
    transform: translateY(-3px);
}

.photo-gallery__item:hover span {
    opacity: 1;
    color: var(--gold-dark);
}

/* La vignette affichée à gauche */
.photo-gallery__item.is-active img {
    border-color: var(--gold);
    filter: saturate(1.05) brightness(1);
}

.photo-gallery__item.is-active span {
    opacity: 1;
    color: var(--gold-dark);
}

/* Repère « cliquer pour agrandir » */
.chambre-card__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 15, 8, 0.7);
    border: 1px solid rgba(212, 168, 83, 0.45);
    color: var(--gold-light);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out-expo);
    pointer-events: none;
}

.chambre-card__image:hover .chambre-card__zoom {
    opacity: 1;
    transform: scale(1);
}

/* Numéros de téléphone masqués : un clic pour afficher */
.tel-reveal,
.tel-shown,
.mail-reveal,
.mail-shown {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.footer .tel-reveal,
.footer .mail-reveal,
.legal-content .tel-reveal,
.legal-content .mail-reveal,
.resa-info .tel-reveal,
.resa-info .mail-reveal {
    border-bottom: 1px dashed rgba(212, 168, 83, 0.5);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer .tel-reveal:hover,
.footer .mail-reveal:hover,
.legal-content .tel-reveal:hover,
.legal-content .mail-reveal:hover,
.resa-info .tel-reveal:hover,
.resa-info .mail-reveal:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.legal-content .tel-reveal,
.legal-content .tel-shown,
.legal-content .mail-reveal,
.legal-content .mail-shown {
    color: var(--gold-dark);
}

.legal-content .tel-reveal + .tel-reveal {
    margin-left: 18px;
}

/* Le bouton d'appel de la bannière garde l'allure d'un bouton */
.btn.tel-reveal,
.btn.tel-shown {
    display: inline-flex;
    justify-content: center;
    border: 1px solid var(--gold);
    padding: 16px 36px;
}

/* ═══════════════════════════════════════════════════════════
   VISIONNEUSE PLEIN ÉCRAN
   ═══════════════════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(14, 8, 4, 0.96);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lightbox__img {
    max-width: min(1200px, 100%);
    max-height: 78vh;
    object-fit: contain;
    border: 1px solid rgba(212, 168, 83, 0.35);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
    transform: scale(0.97);
    transition: transform 0.45s var(--ease-out-expo);
}

.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__caption {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
}

.lightbox__caption em {
    font-style: normal;
    opacity: 0.5;
    margin-left: 10px;
    letter-spacing: 2px;
}

.lightbox__btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(26, 15, 8, 0.8);
    border: 1px solid rgba(212, 168, 83, 0.4);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
    background: var(--gold);
    color: var(--ink);
}

.lightbox__btn--close { top: 20px; right: 20px; }
.lightbox__btn--prev { left: clamp(10px, 3vw, 40px); }
.lightbox__btn--next { right: clamp(10px, 3vw, 40px); }

body.lightbox-open { overflow: hidden; }

@media (max-width: 600px) {
    .lightbox__btn--prev { left: 8px; }
    .lightbox__btn--next { right: 8px; }
    .lightbox__img { max-height: 66vh; }
}

/* Légende de la grande photo
.chambre-card__legend {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: linear-gradient(0deg, rgba(26, 15, 8, 0.85), transparent);
    pointer-events: none;
}

/* Le fondu quand on change de photo */
.chambre-card__image img {
    transition: opacity 0.35s ease, transform 1s var(--ease-out-expo);
}

.chambre-card__image.is-swapping img {
    opacity: 0;
}

.chambre-card__pricing {
    display: flex;
    gap: 30px;
    margin-bottom: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(212, 168, 83, 0.15);
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}

.chambre-card__price-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ink);
}

.chambre-card__price-amount sup {
    font-size: 0.9rem;
    color: var(--gold-dark);
}

.chambre-card__price-detail {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-light);
    opacity: 0.7;
}

.chambre-card__includes {
    font-size: 0.85rem;
    color: var(--ink-light);
    opacity: 0.7;
    margin-bottom: 24px;
    font-style: italic;
}

.chambre-card__cta {
    display: block;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    border: 1px solid var(--gold);
    padding: 14px 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.chambre-card__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.chambre-card__cta:hover {
    color: var(--gold-light);
    border-color: var(--ink);
}

.chambre-card__cta:hover::before {
    transform: scaleX(1);
}

.chambre-card__cta {
    position: relative;
}

/* Fix z-index for CTA text */
.chambre-card__cta {
    isolation: isolate;
}

.chambres__notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 50px;
    padding: 24px 30px;
    background: rgba(212, 168, 83, 0.06);
    border-left: 2px solid var(--gold);
}

.chambres__notice svg {
    flex-shrink: 0;
    color: var(--gold-dark);
    margin-top: 3px;
}

.chambres__notice p {
    font-size: 0.95rem;
    color: var(--ink-light);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   HISTOIRE — Timeline
   ═══════════════════════════════════════════════════════════ */
.histoire {
    background: var(--ink);
    color: var(--parchment);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    overflow-x: clip;
}

.histoire .section__ornament {
    padding: 0 var(--container-padding);
}

.histoire .ornament-line {
    background: linear-gradient(90deg, transparent, var(--gold));
}

.histoire .ornament-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.histoire__header {
    text-align: center;
    padding: 0 var(--container-padding);
    margin-bottom: 80px;
}

.histoire .section__title {
    color: var(--parchment);
}

.histoire .section__title em {
    color: var(--gold);
}

.histoire .section__separator {
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   FRISE — toutes les étapes visibles, photo au survol
   ═══════════════════════════════════════════════════════════ */
.frise {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 30px);
}

.frise__inner { flex: 1; min-width: 0; }

/* --- La scène : une seule étape à la fois, en fondu --- */
.frise__stage {
    position: relative;
    height: 340px;
    margin-bottom: 34px;
}

.frise-step {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: 34px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease-out-quart),
                transform 0.7s var(--ease-out-expo),
                visibility 0.55s;
    pointer-events: none;
}

.frise-step.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.frise-step__photo {
    position: relative;
    margin: 0;
    height: 340px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 83, 0.28);
    background:
        repeating-linear-gradient(45deg,
            rgba(212, 168, 83, 0.06) 0, rgba(212, 168, 83, 0.06) 10px,
            rgba(212, 168, 83, 0.02) 10px, rgba(212, 168, 83, 0.02) 20px);
}

.frise-step__photo img {
    width: 100%;
    height: 100%;
    /* `contain` : on voit la photo ou la gravure en entier, jamais recadrée.
       Le fond hachuré doré du cadre fait passe-partout autour. */
    object-fit: contain;
    filter: sepia(0.18) saturate(0.95);
}

.frise-step__text { padding-right: 10px; }

.frise-step__year {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.frise-step__year sup { font-size: 0.5em; }

.frise-step__text h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 14px 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212, 168, 83, 0.22);
}

.frise-step__text p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--parchment);
    opacity: 0.85;
    margin: 0;
}

/* --- Le rail : les 8 étapes, toutes visibles --- */
.frise__rail {
    position: relative;
    padding-top: 10px;
}

.frise__rail-line,
.frise__rail-fill {
    position: absolute;
    top: 16px;
    left: 0;
    height: 1px;
}

.frise__rail-line {
    right: 0;
    background: rgba(212, 168, 83, 0.22);
}

.frise__rail-fill {
    width: 0;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    box-shadow: 0 0 10px rgba(212, 168, 83, 0.5);
    transition: width 0.6s var(--ease-out-expo);
}

.frise__marks {
    position: relative;
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.frise-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 2px;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

.frise-mark__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid rgba(212, 168, 83, 0.5);
    box-shadow: 0 0 0 4px var(--ink);
    transition: all 0.4s var(--ease-out-expo);
}

.frise-mark__label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.45;
    white-space: nowrap;
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out-expo);
}

.frise-mark__label sup { font-size: 0.7em; }

.frise-mark:hover .frise-mark__dot,
.frise-mark:focus-visible .frise-mark__dot {
    background: var(--gold);
    transform: scale(1.25);
}

.frise-mark:hover .frise-mark__label,
.frise-mark:focus-visible .frise-mark__label {
    opacity: 1;
}

/* L'étape en cours : pastille pleine qui pulse doucement */
.frise-mark.is-active .frise-mark__dot {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: scale(1.45);
    animation: frisePulse 2.4s ease-in-out infinite;
}

.frise-mark.is-active .frise-mark__label {
    opacity: 1;
    transform: translateY(1px);
    color: var(--gold-light);
}

@keyframes frisePulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--ink), 0 0 0 0 rgba(212, 168, 83, 0.45); }
    50%      { box-shadow: 0 0 0 4px var(--ink), 0 0 0 9px rgba(212, 168, 83, 0); }
}

/* --- Flèches --- */
.frise__nav {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 15, 8, 0.75);
    border: 1px solid rgba(212, 168, 83, 0.4);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.35s ease;
}

.frise__nav:hover,
.frise__nav:focus-visible {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold-light);
}

@media (prefers-reduced-motion: reduce) {
    .frise-mark.is-active .frise-mark__dot { animation: none; }
}

@media (max-width: 900px) {
    .frise { gap: 8px; }

    .frise__stage { height: auto; min-height: 0; margin-bottom: 30px; }

    .frise-step {
        position: relative;
        inset: auto;
        grid-template-columns: 1fr;
        gap: 20px;
        display: none;
    }

    .frise-step.is-active { display: grid; }

    .frise-step__photo { height: 210px; }

    .frise-mark__label { font-size: 0.6rem; letter-spacing: 1px; }
}

@media (max-width: 560px) {
    .frise__nav { display: none; }

    .frise__marks { flex-wrap: wrap; justify-content: center; gap: 14px 18px; }

    .frise__rail-line,
    .frise__rail-fill { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services__header {
    text-align: center;
    margin-bottom: 60px;
}

.services__header .section__separator {
    justify-content: center;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border: 1px solid rgba(212, 168, 83, 0.1);
    transition: all 0.5s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold);
    transition: width 0.5s var(--ease-out-expo);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    color: var(--gold-dark);
}

.service-card h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-light);
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.cta-section {
    max-width: none;
    padding: var(--section-padding) var(--container-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--parchment);
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
}

.cta-section__content {
    position: relative;
    z-index: 2;
}

.cta-section__ornament {
    font-size: 2rem;
    color: var(--gold);
    opacity: 0.4;
    margin-bottom: 24px;
}

.cta-section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.cta-section__text {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.cta-section__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 36px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

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

.btn--primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn--secondary:hover {
    background: rgba(212, 168, 83, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    background: var(--ink);
    color: var(--parchment);
    border-top: 1px solid rgba(212, 168, 83, 0.1);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px var(--container-padding);
    max-width: var(--container-width);
    margin: 0 auto;
    gap: 60px;
}

.footer__brand {
    flex-shrink: 0;
}

.footer__shield {
    display: block;
    width: 68px;
    height: auto;
    margin-bottom: 14px;
}

.footer__tagline {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    opacity: 0.7;
}

.footer__info {
    display: flex;
    gap: 60px;
}

.footer__col h5 {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer__col p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.7;
}

.footer__col a {
    transition: color 0.3s ease;
}

.footer__col a:hover {
    color: var(--gold);
    opacity: 1;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--container-padding);
    max-width: var(--container-width);
    margin: 0 auto;
    border-top: 1px solid rgba(212, 168, 83, 0.1);
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer__bottom a:hover {
    color: var(--gold);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 0.8s var(--ease-out-expo) forwards;
}

.reveal-text:nth-child(1) { animation-delay: 0.3s; }
.reveal-text:nth-child(2) { animation-delay: 0.5s; }
.reveal-text:nth-child(3) { animation-delay: 0.7s; }
.reveal-text:nth-child(4) { animation-delay: 0.9s; }
.reveal-text:nth-child(5) { animation-delay: 1.1s; }
.reveal-text:nth-child(6) { animation-delay: 1.3s; }

@keyframes revealText {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 100px;
    }

    .nav__burger {
        display: flex;
    }

    .nav__links {
        position: fixed;
        inset: 0;
        background: rgba(26, 15, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease-out-expo);
    }

    .nav__links.is-open {
        transform: translateX(0);
    }

    .nav__burger.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .nav__burger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .nav__burger.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .demeure__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .demeure__img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 20px;
    }

    .demeure__text {
        padding-left: 0;
    }

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

    .chambre-card--gite {
        grid-template-columns: 1fr;
    }

    .chambre-card--gite .chambre-card__image {
        aspect-ratio: 4 / 3;
    }

    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer__top {
        flex-direction: column;
        gap: 40px;
    }

    .footer__info {
        flex-direction: column;
        gap: 30px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .demeure__details {
        flex-wrap: wrap;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .chambre-card__pricing {
        flex-direction: column;
        gap: 16px;
    }

    .cta-section__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
