/* Explain: Styles for various website components, including headers, sections, images, and logos. */
.site-header {
    background: linear-gradient(180deg, var(--nav-bg), var(--glass-bg));
    backdrop-filter: blur(18px);
}

/* ---------- Titres de section ---------- */

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.45rem, 1.5vw, 0.7rem);
    color: var(--sage-dark);
    font-size: clamp(0.64rem, 1.7vw, 0.76rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: clamp(1.3rem, 4vw, 2.4rem);
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, var(--glass-bg), rgba(255, 255, 255, 0.46));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

/* ---------- Photos : petites, centrées, discrètes ---------- */

.arch-frame {
    position: relative;
    display: block;
    overflow: hidden;
    margin-right: auto;
    margin-left: auto;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
}

.arch-frame::after {
    position: absolute;
    inset: clamp(0.3rem, 1vw, 0.55rem);
    border: 1px solid rgba(250, 249, 246, 0.55);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large,
.arch-frame-medium,
.arch-frame-discreet {
    width: min(100%, 190px);
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 1rem 1rem;
}

.arch-frame-large {
    width: min(100%, 205px);
}

.arch-frame-medium {
    width: min(100%, 175px);
}

.arch-frame-discreet {
    width: clamp(90px, 24vw, 110px);
    border-radius: 999px 999px 0.75rem 0.75rem;
}

.arch-frame-discreet::after {
    inset: 0.3rem;
    border-color: rgba(250, 249, 246, 0.5);
}

@media (min-width: 640px) {
    .arch-frame-large {
        width: min(100%, 220px);
    }

    .arch-frame-medium {
        width: min(100%, 190px);
    }

    .arch-frame-discreet {
        width: 116px;
    }
}

.floating-note {
    position: absolute;
    right: -1rem;
    bottom: 3rem;
    display: flex;
    max-width: 200px;
    align-items: center;
    gap: 0.7rem;
    border-radius: 999px;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
}

.story-card {
    position: absolute;
    right: 0;
    bottom: 2rem;
    max-width: 250px;
    border-radius: 1.6rem;
    padding: 1.25rem;
}

.quiet-detail,
.amenity-row,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: var(--glass-bg);
    padding: clamp(1rem, 2.6vw, 1.25rem);
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.7rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: clamp(0.84rem, 2.2vw, 0.9rem);
    line-height: 1.7;
}

.class-card {
    border-radius: 1.8rem;
    padding: clamp(1.35rem, 4vw, 2rem);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.class-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 26px 80px rgba(43, 38, 32, 0.11);
    transform: translateY(-6px);
}

.amenity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.amenity-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--terracotta-soft);
}

.amenity-image-wrap {
    display: block;
    width: min(100%, 230px);
    height: auto;
    aspect-ratio: 1 / 1;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2rem 999px 999px 2rem;
    box-shadow: var(--shadow-soft);
}

.amenity-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-form,
.booking-overlay-panel {
    border-radius: 1.9rem;
    padding: clamp(1.35rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: var(--sage-dark);
}

.form-status.error {
    color: #9B4A3D;
}

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(250, 249, 246, 0.86);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(31, 46, 35, 0.32);
    padding: 1rem;
}

.booking-overlay.is-open {
    display: block;
}

.booking-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.22);
}

@media (max-width: 767px) {
    .floating-note,
    .story-card {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 100%;
        margin: -1.5rem auto 0;
    }

    .amenity-image-wrap {
        border-radius: 999px 999px 1.6rem 1.6rem;
    }
}

/* ---------- Espaces séparés ---------- */

/* Espace professionnels : blanc, beige, neutre et vert sauge */
.theme-pro {
    --accent-color: #3A5A40;
    --sage-dark: #3A5A40;
    --primary-color: #4A6B53;
    --primary-hover: #A5BA95;
    --secondary-color: #EDF1E2;
    --button-color: #C0CFB2;
    --background-color: #FBFBF6;
    --surface-color: #F0F3E6;
    --footer-bg: #E9EEDC;
    --text-color: #1F2E23;
    --text-muted: #4B6353;
    --border-color: rgba(31, 46, 35, 0.12);
    --glass-bg: rgba(251, 251, 246, 0.76);
    --glass-border: rgba(58, 90, 64, 0.28);
    --nav-bg: rgba(251, 251, 246, 0.86);
    --field-bg: rgba(255, 255, 255, 0.7);
    --sage-soft: rgba(88, 129, 87, 0.14);
    --terracotta-soft: rgba(163, 177, 138, 0.24);
    --glow-one: rgba(163, 177, 138, 0.3);
    --glow-two: rgba(88, 129, 87, 0.16);
    --shadow-soft: 0 22px 70px rgba(31, 46, 35, 0.08);
    --shadow-button: 0 16px 36px rgba(58, 90, 64, 0.22);
}

/* Espace particuliers : même base neutre, sans vert, accent terracotta */
.theme-particuliers {
    --accent-color: #B4714E;
    --sage-dark: #A45C39;
    --primary-color: #8E5537;
    --primary-hover: #C9A183;
    --secondary-color: #F6E9DE;
    --button-color: #E9CDBB;
    --background-color: #FDF9F5;
    --surface-color: #F6EBE2;
    --footer-bg: #F5E6DA;
    --text-color: #2E2620;
    --text-muted: #6B5647;
    --border-color: rgba(46, 38, 32, 0.12);
    --glass-bg: rgba(253, 249, 245, 0.78);
    --glass-border: rgba(180, 113, 78, 0.28);
    --nav-bg: rgba(253, 249, 245, 0.86);
    --field-bg: rgba(255, 255, 255, 0.72);
    --sage-soft: rgba(180, 113, 78, 0.14);
    --terracotta-soft: rgba(201, 161, 131, 0.26);
    --glow-one: rgba(214, 178, 152, 0.34);
    --glow-two: rgba(180, 113, 78, 0.16);
    --shadow-soft: 0 22px 70px rgba(46, 38, 32, 0.08);
    --shadow-button: 0 16px 36px rgba(180, 113, 78, 0.22);
}

.hub-choices {
    display: grid;
    width: min(100%, 44rem);
    gap: clamp(0.9rem, 2.5vw, 1.25rem);
}

.hub-choice {
    display: flex;
    min-height: 8rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: var(--glass-bg);
    padding: clamp(1.5rem, 4vw, 2rem) 1.25rem;
    color: var(--text-color);
    text-align: center;
    text-decoration: none;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
}

.hub-choice:hover {
    border-color: var(--accent-color);
    background: #FFFFFF;
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.hub-choice:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.space-band {
    border-radius: clamp(1.4rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 5vw, 3.5rem);
}

.legal-prose h2 {
    margin-top: 2.25rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.4vw, 1.35rem);
    line-height: 1.35;
}

.legal-prose h2:first-child {
    margin-top: 0;
}

.legal-prose p,
.legal-prose li {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2.2vw, 0.95rem);
    line-height: 1.85;
}

.legal-prose ul {
    margin-top: 0.85rem;
    padding-left: 1.2rem;
    list-style: disc;
}

.legal-prose a {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

    .hub-choice {
        min-height: 10rem;
        border-radius: 2rem;
    }
}

/* ---------- Logo ---------- */

.brand-logo {
    display: inline-block;
    flex: none;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(43, 38, 32, 0.07);
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.brand-logo-header {
    width: clamp(5.6rem, 20vw, 6.8rem);
    padding: 0.34rem 0.42rem;
    border-radius: 0.55rem;
}

.brand-logo-footer {
    width: clamp(9rem, 38vw, 11rem);
    padding: 0.5rem 0.6rem;
    border-radius: 0.8rem;
}

.brand-logo-hub {
    width: clamp(15rem, 64vw, 22rem);
    padding: clamp(0.55rem, 2vw, 0.95rem);
    border-radius: 1.3rem;
    box-shadow: 0 18px 46px rgba(43, 38, 32, 0.09);
}

@media (min-width: 640px) {
    .brand-logo-header {
        width: 6.8rem;
    }

    .brand-logo-footer {
        width: 11rem;
    }

    .brand-logo-hub {
        width: 22rem;
    }
}