:root {
    --gmr-re-navy: #10233f;
    --gmr-re-navy-soft: #1c365d;
    --gmr-re-gold: #c79a3b;
    --gmr-re-gold-soft: #f6edd8;
    --gmr-re-ink: #172033;
    --gmr-re-muted: #697386;
    --gmr-re-line: #e5e9f0;
    --gmr-re-surface: #ffffff;
    --gmr-re-soft: #f7f9fc;
    --gmr-re-shadow: 0 18px 48px rgba(16, 35, 63, .1);
}

.gmr-re-form {
    margin: 28px 0;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid var(--gmr-re-line);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0, #fbfcff 100%);
    box-shadow: var(--gmr-re-shadow);
    color: var(--gmr-re-ink);
}

.gmr-re-form__hero {
    position: relative;
    overflow: hidden;
    margin: calc(clamp(18px, 3vw, 34px) * -1) calc(clamp(18px, 3vw, 34px) * -1) 28px;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 24px 24px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(199, 154, 59, .42), transparent 34%),
        linear-gradient(135deg, var(--gmr-re-navy) 0, var(--gmr-re-navy-soft) 100%);
}

.gmr-re-form__hero h2 {
    margin: 7px 0 8px;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.gmr-re-form__hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 1rem;
    line-height: 1.65;
}

.gmr-re-form__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f1cf84;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gmr-re-form > h4 {
    margin: 28px 0 16px !important;
    color: var(--gmr-re-navy);
    font-size: 1.06rem;
    font-weight: 800;
}

.gmr-re-form .form-control,
.gmr-re-form .form-select {
    min-height: 48px;
    border-color: #d8dee8;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: none;
}

.gmr-re-form textarea.form-control {
    min-height: 118px;
}

.gmr-re-form .form-control:focus,
.gmr-re-form .form-select:focus {
    border-color: var(--gmr-re-gold);
    box-shadow: 0 0 0 3px rgba(199, 154, 59, .16);
}

.gmr-re-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 15px;
    padding: 11px 14px;
    border: 1px solid var(--gmr-re-line);
    border-radius: 14px;
    background: #fff;
}

.gmr-re-progress__label {
    flex: 0 0 auto;
    color: var(--gmr-re-navy);
    font-size: .78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.gmr-re-progress__track {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    height: 7px;
    border-radius: 999px;
    background: #edf0f5;
}

.gmr-re-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a87a24, #e1bd68);
    transition: width .24s ease;
}

.gmr-re-sections {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.gmr-re-section {
    overflow: hidden;
    border: 1px solid var(--gmr-re-line);
    border-radius: 16px;
    background: var(--gmr-re-surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gmr-re-section[open] {
    border-color: rgba(199, 154, 59, .46);
    box-shadow: 0 12px 28px rgba(16, 35, 63, .07);
}

.gmr-re-section[hidden] {
    display: none !important;
}

.gmr-re-section__summary {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.gmr-re-section__summary::-webkit-details-marker {
    display: none;
}

.gmr-re-section__icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #8a621d;
    background: var(--gmr-re-gold-soft);
}

.gmr-re-section__heading {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
}

.gmr-re-section__heading strong {
    color: var(--gmr-re-navy);
    font-size: .98rem;
    font-weight: 800;
}

.gmr-re-section__heading small {
    color: var(--gmr-re-muted);
    font-size: .82rem;
    line-height: 1.4;
}

.gmr-re-section__chevron {
    color: #8b95a5;
    transition: transform .2s ease;
}

.gmr-re-section[open] .gmr-re-section__chevron {
    transform: rotate(180deg);
}

.gmr-re-section__body {
    padding: 4px 18px 20px;
}

.gmr-re-fields {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.gmr-re-field--half {
    grid-column: span 3;
}

.gmr-re-field--third,
.gmr-re-field--check {
    grid-column: span 2;
}

.gmr-re-field--full {
    grid-column: 1 / -1;
}

.gmr-re-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #2d3748;
    font-size: .84rem;
    font-weight: 750;
}

.gmr-re-label__icon {
    display: inline-flex;
    flex: 0 0 12px;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    color: var(--gmr-re-gold);
    font-size: 12px;
    line-height: 12px;
}

.gmr-re-input {
    display: flex;
    align-items: stretch;
}

.gmr-re-input--unit .form-control {
    border-radius: 12px 0 0 12px;
}

.gmr-re-input > span {
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #d8dee8;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    color: #566174;
    background: var(--gmr-re-soft);
    font-size: .82rem;
    white-space: nowrap;
}

.gmr-re-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    color: #344054;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.gmr-re-check:hover {
    border-color: rgba(199, 154, 59, .7);
    background: #fffdf8;
    transform: translateY(-1px);
}

.gmr-re-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gmr-re-check__box {
    display: grid;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid #cbd2dd;
    border-radius: 7px;
    color: transparent;
    background: #fff;
}

.gmr-re-check input:checked + .gmr-re-check__box {
    border-color: var(--gmr-re-gold);
    color: #fff;
    background: var(--gmr-re-gold);
}

.gmr-re-check input:focus-visible + .gmr-re-check__box {
    outline: 3px solid rgba(199, 154, 59, .25);
    outline-offset: 2px;
}

.gmr-re-help {
    display: block;
    margin-top: 6px;
    color: var(--gmr-re-muted);
}

/* Vue publique immobiliere */
.gmr-property-page {
    color: var(--gmr-re-ink);
}

.gmr-property-breadcrumb {
    margin: 0 0 18px;
}

.gmr-property-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: .86rem;
}

.gmr-property-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr);
    gap: 26px;
    align-items: start;
    margin-bottom: 30px;
}

.gmr-property-gallery {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 24px;
    background: #edf1f6;
    box-shadow: var(--gmr-re-shadow);
}

.gmr-property-gallery__stage {
    position: relative;
    height: 100%;
    min-height: 520px;
}

.gmr-property-gallery__slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease;
}

.gmr-property-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.gmr-property-gallery__slide img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.gmr-property-gallery__button {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--gmr-re-navy);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(10, 25, 50, .2);
    transform: translateY(-50%);
}

.gmr-property-gallery__button--prev { left: 16px; }
.gmr-property-gallery__button--next { right: 16px; }

.gmr-property-gallery__counter {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(8, 20, 38, .72);
    font-size: .8rem;
    font-weight: 800;
}

.gmr-property-summary {
    position: sticky;
    top: 92px;
    padding: 26px;
    border: 1px solid var(--gmr-re-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--gmr-re-shadow);
}

.gmr-property-summary__type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: #8a621d;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gmr-property-summary h1 {
    margin: 0 0 11px;
    color: var(--gmr-re-navy);
    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -.03em;
}

.gmr-property-summary__location {
    display: flex;
    gap: 8px;
    color: var(--gmr-re-muted);
    line-height: 1.45;
}

.gmr-property-summary__price {
    margin: 22px 0;
    padding: 18px 0;
    border-top: 1px solid var(--gmr-re-line);
    border-bottom: 1px solid var(--gmr-re-line);
}

.gmr-property-summary__price strong {
    display: block;
    color: var(--gmr-re-navy);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 900;
    letter-spacing: -.03em;
}

.gmr-property-summary__price span {
    color: var(--gmr-re-muted);
    font-size: .8rem;
}

.gmr-property-summary__actions {
    display: grid;
    gap: 10px;
}

.gmr-property-summary__actions .btn {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 800;
}

.gmr-property-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.gmr-property-fact {
    display: grid;
    gap: 5px;
    min-height: 105px;
    padding: 17px;
    border: 1px solid var(--gmr-re-line);
    border-radius: 16px;
    background: #fff;
}

.gmr-property-fact i {
    color: var(--gmr-re-gold);
}

.gmr-property-fact strong {
    color: var(--gmr-re-navy);
    font-size: 1.13rem;
}

.gmr-property-fact span {
    color: var(--gmr-re-muted);
    font-size: .78rem;
}

.gmr-property-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
    gap: 26px;
    align-items: start;
}

.gmr-property-card {
    margin-bottom: 20px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--gmr-re-line);
    border-radius: 20px;
    background: #fff;
}

.gmr-property-card h2,
.gmr-property-card h3 {
    margin: 0 0 18px;
    color: var(--gmr-re-navy);
    font-weight: 850;
    letter-spacing: -.02em;
}

.gmr-property-card__description {
    color: #3e495c;
    font-size: 1rem;
    line-height: 1.75;
    white-space: pre-line;
}

.gmr-property-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}

.gmr-property-detail {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
}

.gmr-property-detail__label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--gmr-re-muted);
    font-size: .84rem;
}

.gmr-property-detail__label > i {
    display: inline-flex;
    flex: 0 0 12px;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin-top: 2px;
    color: var(--gmr-re-gold);
    font-size: 12px;
    line-height: 12px;
}

.gmr-property-detail__value {
    color: var(--gmr-re-ink);
    font-size: .88rem;
    font-weight: 750;
    text-align: right;
}

.gmr-property-detail--long {
    grid-column: 1 / -1;
    display: grid;
}

.gmr-property-detail--long .gmr-property-detail__value {
    line-height: 1.6;
    text-align: left;
    white-space: pre-line;
}

/* Échelle énergétique A-G affichée sur la fiche publique immobilière. */
.gmr-dpe-scale {
    width: 100%;
    max-width: 520px;
}

.gmr-dpe-scale__axis {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--gmr-re-muted);
    font-size: .68rem;
    font-weight: 750;
}

.gmr-dpe-scale__axis span:last-child {
    text-align: right;
}

.gmr-dpe-grade {
    position: relative;
    display: block;
    width: var(--gmr-dpe-width);
    min-width: 92px;
    margin: 0 0 4px;
}

.gmr-dpe-grade__bar {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 42px 6px 14px;
    border: 2px solid transparent;
    border-radius: 7px 18px 18px 7px;
    color: #fff;
    cursor: default;
    opacity: .66;
}

.gmr-dpe-grade__bar strong {
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.gmr-dpe-grade--a .gmr-dpe-grade__bar { background: #008f5a; }
.gmr-dpe-grade--b .gmr-dpe-grade__bar { background: #46a94e; }
.gmr-dpe-grade--c .gmr-dpe-grade__bar { color: #17351f; background: #a8cf3a; }
.gmr-dpe-grade--d .gmr-dpe-grade__bar { color: #413a00; background: #f3e52e; }
.gmr-dpe-grade--e .gmr-dpe-grade__bar { color: #412c00; background: #f2b824; }
.gmr-dpe-grade--f .gmr-dpe-grade__bar { background: #e97832; }
.gmr-dpe-grade--g .gmr-dpe-grade__bar { background: #d84538; }

.gmr-dpe-grade__bar.is-active {
    z-index: 1;
    border-color: #fff;
    outline: 3px solid var(--gmr-re-navy);
    outline-offset: 1px;
    box-shadow: 0 8px 20px rgba(15, 35, 61, .25);
    opacity: 1;
    transform: translateX(6px);
}

.gmr-dpe-grade__bar.is-active::after {
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--gmr-re-navy);
    background: #fff;
    content: "✓";
    font-size: .78rem;
    font-weight: 950;
    place-items: center;
    transform: translateY(-50%);
}

.gmr-property-dpe {
    grid-column: 1 / -1;
    margin: 8px 0 16px;
    padding: 18px;
    border: 1px solid #e6ebf1;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
}

.gmr-property-dpe__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.gmr-property-dpe .gmr-dpe-scale {
    max-width: 560px;
}

.gmr-property-map {
    overflow: hidden;
    height: 310px;
    border-radius: 16px;
    background: #edf1f6;
}

.gmr-property-notice {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #ead9af;
    border-radius: 14px;
    color: #62491f;
    background: #fffaf0;
    font-size: .86rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .gmr-property-hero,
    .gmr-property-layout {
        grid-template-columns: 1fr;
    }

    .gmr-property-summary {
        position: static;
    }

    .gmr-property-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gmr-re-field--third,
    .gmr-re-field--check {
        grid-column: span 3;
    }
}

@media (max-width: 767.98px) {
    .gmr-re-form {
        margin-inline: -8px;
        padding: 16px;
        border-radius: 18px;
    }

    .gmr-re-form__hero {
        margin: -16px -16px 22px;
        padding: 23px 18px;
        border-radius: 18px 18px 0 0;
    }

    .gmr-re-fields {
        grid-template-columns: 1fr;
    }

    .gmr-re-field--half,
    .gmr-re-field--third,
    .gmr-re-field--check,
    .gmr-re-field--full {
        grid-column: 1;
    }

    .gmr-re-section__summary {
        align-items: flex-start;
        padding: 14px;
    }

    .gmr-re-section__heading small {
        display: none;
    }

    .gmr-re-section__body {
        padding: 2px 14px 16px;
    }

    .gmr-property-gallery,
    .gmr-property-gallery__stage,
    .gmr-property-gallery__slide img {
        min-height: 360px;
    }

    .gmr-property-hero {
        gap: 16px;
    }

    .gmr-property-summary {
        padding: 20px;
        border-radius: 18px;
    }

    .gmr-property-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gmr-property-detail-grid {
        grid-template-columns: 1fr;
    }

    .gmr-property-detail--long {
        grid-column: 1;
    }

    .gmr-property-dpe {
        grid-column: 1;
    }
}

@media (max-width: 479.98px) {
    .gmr-property-gallery,
    .gmr-property-gallery__stage,
    .gmr-property-gallery__slide img {
        min-height: 300px;
    }

    .gmr-property-facts {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .gmr-property-fact {
        min-height: 92px;
        padding: 13px;
    }

    .gmr-property-dpe {
        padding: 15px;
    }

    .gmr-dpe-grade {
        min-width: 80px;
    }

    .gmr-dpe-grade__bar {
        min-height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gmr-re-progress__bar,
    .gmr-re-section,
    .gmr-re-section__chevron,
    .gmr-re-check,
    .gmr-property-gallery__slide {
        transition: none !important;
    }
}
