.gh-legacy {
    --gh-green: #a3c47c;
    --gh-green-dark: #8fb264;
    --gh-subtitle: #91b54d;
    --gh-grey: #636363;
    --gh-signature: #373737;
    --gh-border: #e1e1e1;
    font-family: 'Arimo', sans-serif;
    color: var(--gh-grey);
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.gh-legacy h2, .gh-legacy h3 { font-family: 'Vidaloka', serif; color: var(--gh-grey); font-weight: 500; }
/* Eyebrow gris foncé par défaut (matche "Nos chambres"/"Recommandations" côté titre) ; le vert/gris s'inverse
   section par section ci-dessous pour coller exactement au site d'origine (title1 vs title2). */
.gh-legacy .gh-eyebrow { color: var(--gh-grey); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px 0; }
.gh-legacy .gh-center { text-align: center; }
.gh-legacy a { text-decoration: none; }

.gh-slideshow {
    width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    aspect-ratio: 1400 / 789; max-height: 85vh; overflow: hidden; margin-bottom: 30px;
}
.gh-slideshow-track { position: relative; width: 100%; height: 100%; }
.gh-slideshow-track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.gh-slideshow-track img.active { opacity: 1; }
.gh-slideshow-prev, .gh-slideshow-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.35); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 16px; z-index: 2; }
.gh-slideshow-prev { left: 20px; } .gh-slideshow-next { right: 20px; }
.gh-slideshow-prev:hover, .gh-slideshow-next:hover { background: rgba(0,0,0,.55); }
.gh-slideshow-dots { position: absolute; bottom: 45px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.gh-slideshow-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.gh-slideshow-dots span.active { background: #fff; }
.gh-slideshow-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; pointer-events: none; }
.gh-slideshow-wave svg { display: block; width: 100%; height: 40px; }
.gh-slideshow-wave path { fill: #fff; }
/* Léger fondu sur les 4 bords du carrousel (effet vignette, 10px) */
.gh-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 10px 2px rgba(255,255,255,.85);
    pointer-events: none;
    z-index: 1;
}
.gh-slideshow-title { position: absolute; top: 5%; left: 50%; transform: translateX(-50%); z-index: 3; text-align: center; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); pointer-events: none; width: 90%; }
.gh-slideshow-title h1 { font-family: 'Vidaloka', serif; font-weight: 400; font-size: clamp(1.6rem, 4.2vw, 3.1rem); margin: 0; letter-spacing: .02em; }
.gh-slideshow-title p { font-family: 'Vidaloka', serif; font-size: clamp(.75rem, 1.4vw, 1.05rem); margin: 6px 0 0 0; letter-spacing: .1em; text-transform: uppercase; }

/* Masque le logo Cassiopeia sur cette page (remplacé par le titre en overlay ci-dessus) — toutes tailles d'écran */
body:has(#gh-slideshow) .navbar-brand { display: none !important; }

/* Switcher de langue superposé au carrousel, en haut à droite — TOUTES tailles d'écran (mobile + desktop) */
body:has(#gh-slideshow) .mod-languages {
    position: fixed !important; top: 12px; right: 16px; left: auto; z-index: 20;
    background: transparent !important; box-shadow: none !important; border: none !important;
}
body:has(#gh-slideshow) .mod-languages a {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* Tout ce qui suit ne s'applique qu'à partir de 992px (breakpoint "lg" de navbar-expand-lg) : */
/* en dessous, on laisse le menu mobile Cassiopeia (hamburger + dropdown) intact et fonctionnel. */
@media (min-width: 992px) {
    body:has(#gh-slideshow) header.header,
    body:has(#gh-slideshow) header.header * {
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }
    body:has(#gh-slideshow) header.header {
        position: absolute !important; top: 150px; left: 0; right: 0; z-index: 4;
    }
    body:has(#gh-slideshow) { padding-top: 0 !important; margin-top: 0 !important; }
    body:has(#gh-slideshow) .site-grid,
    body:has(#gh-slideshow) main {
        padding-top: 0 !important; margin-top: 0 !important;
    }
    body:has(#gh-slideshow) .mod-menu a,
    body:has(#gh-slideshow) .navbar-toggler .icon-menu {
        color: #fff !important;
        text-shadow: 0 1px 6px rgba(0,0,0,.4);
    }
    body:has(#gh-slideshow) .mod-menu a {
        font-size: 14px !important;
        font-weight: 700 !important;
        padding-left: .6rem !important;
        padding-right: .6rem !important;
    }
    body:has(#gh-slideshow) .mod-menu { gap: .6rem !important; }
    body:has(#gh-slideshow) .mod-menu li { margin: 0 !important; }
}

.gh-topbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--gh-border); font-size: 13px; margin-bottom: 40px; }
.gh-topbar-left { display: flex; flex-wrap: wrap; gap: 24px; }
.gh-topbar-right { display: flex; align-items: center; gap: 18px; }
.gh-topbar i { color: var(--gh-green); margin-right: 6px; }
.gh-topbar-right a { background: var(--gh-green); color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: 700; font-size: 12px; }
.gh-topbar-right a:hover { background: var(--gh-green-dark); }

.gh-about { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 30px 0 60px 0; }
.gh-about-text { flex: 1 1 420px; }
.gh-about-text h2 { font-size: 30px; margin: 0 0 18px 0; color: var(--gh-subtitle); }
.gh-about-text p { line-height: 1.55; margin: 0 0 14px 0; color: #909090; }
.gh-about-text .gh-signature { font-family: 'Herr Von Muellerhoff', cursive; font-size: 30px; font-style: normal; color: var(--gh-signature); }
.gh-about-text .gh-signature span { font-family: 'Arimo', sans-serif; font-size: 13px; color: var(--gh-grey); white-space: nowrap; }
.gh-about-img { flex: 1 1 380px; }
.gh-about-img img { width: 100%; height: auto; border: 10px solid #fff; box-shadow: 0 0 20px rgba(0,0,0,.15); display: block; }
.gh-btn-outline { display: inline-block; margin-top: 6px; padding: 12px 26px; border: 2px solid var(--gh-green); color: #333; font-weight: 700; font-size: 13px; border-radius: 3px; transition: background .2s, color .2s; }
/* Bouton "Plus d'info sur le Gîte" : fond plein vert, police Lora italique, comme sur le site d'origine */
.gh-about-text .gh-btn-outline {
    background: var(--gh-subtitle); color: #fff; border: none;
    font-family: 'Lora', serif; font-style: italic; font-weight: 700; font-size: 16px;
}
.gh-about-text .gh-btn-outline:hover { background: #7fa042; color: #fff; }
/* "Nos chambres" : eyebrow vert (contrairement au reste, où l'eyebrow est gris foncé) */
.gh-room .gh-eyebrow { color: var(--gh-subtitle); }
/* "Recommandations" : titre vert, comme pour "À propos" */
.gh-reviews h2 { color: var(--gh-subtitle); }
.gh-btn-outline:hover { background: var(--gh-green); color: #fff; }

.gh-room { padding: 20px 0 60px 0; position: relative; isolation: isolate; }
/* Photo de fond ("rideau") derrière le titre, qui descend aussi derrière le carrousel — comme sur le site d'origine */
/* z-index:0 (pas négatif) + "isolation:isolate" sur .gh-room + z-index:1 sur ses enfants directs :
   évite le piège classique où un z-index négatif finit caché derrière le fond de page au lieu du texte. */
.gh-room::before {
    content: "";
    position: absolute; top: 0; bottom: 0;
    left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw;
    background-image: url('/images/GItang/room-bg-curtain.jpg');
    background-size: cover; background-position: center top; background-repeat: no-repeat;
    z-index: 0;
}
.gh-room > * { position: relative; z-index: 1; }
.gh-room h2 { font-size: 28px; margin: 0 0 40px 0; }
.gh-room-card { max-width: 850px; margin: 0 auto; }
.gh-room-carousel { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 800 / 479; background: #eee; }
.gh-room-track { display: flex; height: 100%; transition: transform .4s ease; }
.gh-room-track img { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; }
.gh-room-prev, .gh-room-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.35); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.gh-room-prev { left: 14px; } .gh-room-next { right: 14px; }
.gh-room-prev:hover, .gh-room-next:hover { background: rgba(0,0,0,.55); }
.gh-room-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.gh-room-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.gh-room-dots span.active { background: #fff; }
.gh-room-desc { text-align: center; padding: 22px 0; }
.gh-room-desc h3 { font-size: 20px; margin: 0 0 4px 0; }
.gh-room-desc p { margin: 0 0 16px 0; font-size: 13px; }

.gh-booking-wrap { display: flex; align-items: stretch; gap: 0; padding: 0 0 60px 0; }
.gh-booking-img { flex: 1 1 25%; display: none; }
.gh-booking-img img { width: 100%; height: 100%; object-fit: cover; background: #fff; padding: 8px; border: 3px solid #000; box-sizing: border-box; min-height: 400px; }
.gh-booking-box { flex: 1 1 50%; background: #3a3d42; border-radius: 4px; padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.gh-booking-box h3 { color: #fff; font-family: 'Vidaloka', serif; font-size: 20px; text-align: center; margin: 0 0 6px 0; }
.gh-booking-direct { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--gh-green); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 16px; min-height: 60px; border-radius: 10px; transition: background .2s, transform .2s, box-shadow .2s; }
.gh-booking-direct:hover { background: var(--gh-green-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); color: #fff; }
.gh-booking-partner { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 10px; padding: 12px 16px; min-height: 60px; transition: transform .2s, box-shadow .2s; }
.gh-booking-partner:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.gh-booking-partner img { height: 32px; width: auto; max-width: 70px; object-fit: contain; flex-shrink: 0; }
.gh-booking-partner div { display: flex; flex-direction: column; line-height: 1.3; }
.gh-booking-partner strong { font-size: 17px; font-weight: 700; color: #1a1a1a; }
.gh-booking-partner span { font-size: 12px; color: #5a5a5a; }
@media (min-width: 900px) { .gh-booking-img { display: block; } }

.gh-reviews { padding: 10px 0 70px 0; position: relative; isolation: isolate; }
/* Photo de fond derrière "Recommandations", comme sur le site d'origine */
.gh-reviews::before {
    content: "";
    position: absolute; top: 0; bottom: 0;
    left: 50%; right: 50%; width: 100vw; margin-left: -50vw; margin-right: -50vw;
    background-image: url('/images/GItang/reviews-bg-field.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    z-index: 0;
}
.gh-reviews > * { position: relative; z-index: 1; }
.gh-reviews h2 { font-size: 26px; margin: 0 0 36px 0; }
.gh-reviews-carousel { position: relative; max-width: 720px; margin: 0 auto; }
.gh-reviews-track { position: relative; min-height: 200px; }
.gh-review { display: none; text-align: center; padding: 0 30px; }
.gh-review.active { display: block; }
.gh-review-icon { font-size: 28px; color: var(--gh-green); margin-bottom: 10px; }
.gh-review-title { font-family: 'Vidaloka', serif; font-size: 17px; color: #222; margin: 0 0 10px 0; }
.gh-review-title i { color: var(--gh-green); font-size: 12px; margin: 0 6px; }
.gh-review-text { line-height: 1.7; font-size: 14px; margin: 0 0 12px 0; }
.gh-review-date { font-size: 12px; color: #999; }
.gh-reviews-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.gh-reviews-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--gh-border); cursor: pointer; }
.gh-reviews-dots span.active { background: var(--gh-green); }

@media (max-width: 767px) {
    .gh-about, .gh-booking-wrap { flex-direction: column; align-items: stretch; }
    .gh-about-img { flex: 0 0 auto; width: 100%; }
    .gh-about-img img { width: 100%; height: auto; }

    /* Barre d'infos déplacée en fin de page sur mobile uniquement, via l'ordre flexbox
       (le HTML ne bouge pas — desktop garde donc l'ordre d'origine, tout en haut) */
    .gh-legacy { display: flex; flex-direction: column; }
    .gh-slideshow { order: 1; }
    .gh-about { order: 2; }
    .gh-room { order: 3; }
    .gh-booking-wrap { order: 4; }
    .gh-reviews { order: 5; }
    .gh-topbar { order: 6; }

    /* Réagencement "pied de page" : centré, espacé, bouton pleine largeur */
    .gh-topbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 28px 0 24px 0;
        margin: 30px 0 0 0;
        border-top: 1px solid var(--gh-border);
        border-bottom: none;
    }
    .gh-topbar-left { flex-direction: column; align-items: center; gap: 8px; }
    .gh-topbar-right { flex-direction: column; align-items: center; gap: 10px; width: 100%; }
    .gh-topbar-right span { font-size: 12px; }
    .gh-topbar-right a { width: 100%; max-width: 280px; justify-content: center; }
}
