/* Explain: Styles for UI components, layout elements, and glass-like panels. */
.site-header {
    background: linear-gradient(180deg, rgba(247, 245, 241, 0.92), rgba(247, 245, 241, 0.62));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

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

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

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(27, 42, 65, 0.16);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 480px;
    max-width: 350px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.arch-frame-small {
    height: 380px;
    max-width: 280px;
    border-radius: 999px 999px 1.8rem 1.8rem;
}

.media-frame-soft {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2.6rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.media-frame-soft::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35);
    content: "";
    pointer-events: none;
}

.detail-card,
.area-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.25rem;
}

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

.detail-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.service-card {
    min-height: 380px;
    border-radius: 2.2rem;
    border: 1px solid rgba(27, 42, 65, 0.10);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 241, 0.88));
    box-shadow: 0 24px 60px rgba(27, 42, 65, 0.16), 0 8px 20px rgba(27, 42, 65, 0.08);
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    border-color: rgba(176, 141, 87, 0.6);
    box-shadow: 0 34px 90px rgba(27, 42, 65, 0.22), 0 12px 28px rgba(27, 42, 65, 0.10);
    transform: translateY(-8px);
}

/* Carte de service avec photo de fond */
.service-media {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-media::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 42, 65, 0.94) 0%, rgba(27, 42, 65, 0.76) 48%, rgba(27, 42, 65, 0.46) 100%);
    content: "";
}

.service-media > * {
    position: relative;
    z-index: 1;
}

/* Carte « Acheter » : photo de maison réduite et mise en lumière */
.service-media-house {
    background-color: #92B1CD;
    background-size: 108% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.service-media-house::before {
    background:
        radial-gradient(circle at 50% 80%, rgba(255, 232, 176, 0.4), rgba(255, 232, 176, 0) 70%),
        linear-gradient(to top, rgba(23, 37, 58, 0.15) 0%, rgba(27, 42, 65, 0.1) 50%, rgba(27, 42, 65, 0.45) 100%);
}

/* Variantes de cadre pour les cartes de services */
.service-frame-1 {
    border-color: rgba(176, 141, 87, 0.35);
    border-top: 5px solid var(--accent-color);
}

.service-frame-2 {
    border-color: rgba(27, 42, 65, 0.16);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 30px 70px rgba(27, 42, 65, 0.2), 0 10px 24px rgba(27, 42, 65, 0.1);
}

.service-frame-3 {
    border: 1px solid rgba(176, 141, 87, 0.4);
    box-shadow: inset 0 0 0 2px var(--accent-color), 0 24px 60px rgba(27, 42, 65, 0.14);
}

.area-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.area-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);
}

.area-image-wrap {
    position: relative;
    height: 660px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 3rem 999px 999px 3rem;
    box-shadow: var(--shadow-soft);
}

.portrait-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 38%, rgba(15, 23, 33, 0) 30%, rgba(15, 23, 33, 0.34) 66%, rgba(15, 23, 33, 0.62) 100%);
    pointer-events: none;
}

.evaluation-form,
.evaluation-overlay-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 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: #2F7A55;
}

.form-status.error {
    color: #A64B3C;
}

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

.evaluation-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(27, 42, 65, 0.36);
    padding: 1rem;
}

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

.evaluation-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(27, 42, 65, 0.24);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium,
    .area-image-wrap {
        height: 510px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 450px);
    }

    .area-image-wrap {
        border-radius: 999px 999px 2rem 2rem;
    }
}