
:root {
    --green: #123c32;
    --green-dark: #0b2b24;
    --green-light: #e6eee8;
    --gold: #d8b66a;
    --cream: #f8f6f0;
    --white: #ffffff;
    --text: #20352e;
    --muted: #718078;
    --border: #e5e9e3;
    --shadow: 0 24px 70px rgba(18, 60, 50, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    width: min(1180px, calc(100% - 64px));
    min-height: 108px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 59px;
    height: 59px;
    flex: 0 0 59px;
    border-radius: 16px;
    background: var(--green);
    color: var(--white);
}

.brand-mark svg {
    display: block;
    width: 43px;
    height: 43px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    color: var(--green);
    font-size: 26px;
    font-weight: 850;
    letter-spacing: 3px;
}

.brand-subtitle {
    margin-top: 3px;
    color: #9b7c3d;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 5.2px;
}

.brand-slogan {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.1px;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.header-link:hover {
    background: var(--green-light);
    border-color: var(--green-light);
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 54px;
    width: min(1180px, calc(100% - 64px));
    min-height: 535px;
    margin: 12px auto 0;
    padding: 65px 66px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--cream);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: #8b713b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eyebrow-line {
    display: inline-block;
    width: 26px;
    height: 2px;
    background: var(--gold);
}

.hero h1 {
    margin: 0;
    color: var(--green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(43px, 5vw, 65px);
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.12;
}

.hero h1 span {
    color: #9b7c3d;
    font-style: italic;
}

.intro {
    max-width: 440px;
    margin: 24px 0 28px;
    color: #64736b;
    font-size: 15px;
    line-height: 1.9;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    min-height: 52px;
    padding: 0 23px;
    border: 1px solid var(--green);
    border-radius: 7px;
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--green-dark);
}

.button span {
    color: var(--gold);
    font-size: 20px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 23px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.note-dot,
.footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9aaf8d;
}

.hero-visual {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 365px;
    place-items: center;
}

.visual-orbit {
    position: absolute;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(18, 60, 50, 0.09);
    border-radius: 50%;
}

.orbit-one {
    width: 350px;
    height: 350px;
}

.orbit-two {
    width: 275px;
    height: 275px;
    border-color: rgba(216, 182, 106, 0.35);
}

.visual-card {
    position: relative;
    z-index: 1;
    width: min(100%, 350px);
    padding: 22px 23px 17px;
    border: 1px solid rgba(18, 60, 50, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}

.visual-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.visual-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green);
}

.visual-icon svg {
    width: 29px;
    height: 29px;
}

.visual-status {
    padding: 6px 10px;
    border-radius: 30px;
    background: #f7f0df;
    color: #8b713b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.visual-house {
    margin: 20px 0 8px;
    padding: 12px 8px 0;
    border-radius: 10px;
    background: #edf2eb;
}

.visual-house svg {
    display: block;
    width: 100%;
    height: auto;
}

.visual-card-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 13px;
    color: var(--muted);
    font-size: 10px;
}

.floating-label {
    position: absolute;
    right: -6px;
    bottom: 26px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 17px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--white);
    box-shadow: 0 12px 35px rgba(18, 60, 50, 0.1);
}

.floating-check {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    font-weight: 800;
}

.floating-label strong,
.floating-label small {
    display: block;
}

.floating-label strong {
    color: var(--green);
    font-size: 11px;
}

.floating-label small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.listings {
    width: min(1180px, calc(100% - 64px));
    margin: 88px auto 82px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

.section-heading h2,
.promise h2 {
    margin: 0;
    color: var(--green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 3vw, 39px);
    font-weight: 500;
    letter-spacing: -0.7px;
    line-height: 1.2;
}

.section-description {
    max-width: 530px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.annonces {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.annonces:empty {
    display: block;
}

.loading-message,
.empty-message,
.error-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 35px 25px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcfa;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.promise {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto 80px;
    padding: 36px 40px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fbfcfa;
}

.promise-mark {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 12px;
    background: var(--green);
    color: var(--gold);
    font-size: 24px;
}

.promise .eyebrow {
    margin: 0 0 10px;
}

.promise h2 {
    font-size: 29px;
}

.promise div > p:last-child {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px 25px;
    padding: 28px max(32px, calc((100% - 1180px) / 2));
    border-top: 1px solid var(--border);
}

.footer-brand {
    color: var(--green);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.footer-brand span {
    color: #9b7c3d;
    font-weight: 600;
}

.footer > p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.footer .copyright {
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    text-align: center;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr 0.8fr;
        gap: 25px;
        padding: 48px 35px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-visual {
        min-height: 310px;
    }

    .visual-card {
        padding: 17px;
    }

    .floating-label {
        right: -10px;
        bottom: 7px;
    }

    .annonces {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .header {
        width: calc(100% - 36px);
        min-height: 92px;
        gap: 12px;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 12px;
    }

    .brand-mark svg {
        width: 34px;
        height: 34px;
    }

    .brand-name {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .brand-subtitle {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .brand-slogan {
        max-width: 180px;
        font-size: 9px;
    }

    .header-link {
        gap: 5px;
        padding: 9px 10px;
        font-size: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        width: calc(100% - 28px);
        margin-top: 5px;
        padding: 39px 25px 28px;
        border-radius: 16px;
    }

    .hero h1 {
        font-size: clamp(43px, 11vw, 57px);
    }

    .intro {
        margin: 19px 0 23px;
        font-size: 14px;
    }

    .hero-visual {
        min-height: 315px;
        margin-top: 5px;
    }

    .visual-card {
        width: min(100%, 330px);
    }

    .orbit-one {
        width: 300px;
        height: 300px;
    }

    .orbit-two {
        width: 250px;
        height: 250px;
    }

    .floating-label {
        right: 0;
        bottom: 4px;
    }

    .listings {
        width: calc(100% - 36px);
        margin: 63px auto;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .annonces {
        grid-template-columns: 1fr;
    }

    .promise {
        width: calc(100% - 36px);
        margin-bottom: 55px;
        padding: 25px 21px;
        gap: 15px;
    }

    .promise-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 19px;
    }

    .promise h2 {
        font-size: 25px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
    }

    .footer .copyright {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.promise a {
    color: var(--green);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}


/* En-tête fixe — palette crème, blanc et doré */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 108px;
    margin: 0;
    padding: 16px max(32px, calc((100% - 1180px) / 2));

    background: #ffffff;
    border-bottom: 2px solid #b9954f;
    box-shadow: 0 4px 16px rgb(48 47 43 / 6%);
}

/* Logo */
.header .brand {
    color: #302f2b;
    text-decoration: none;
}

.header .brand-mark {
    background: #f7f5ef;
    color: #302f2b;
    border: 1px solid #b9954f;
}

.header .brand-name {
    color: #302f2b;
}

.header .brand-subtitle {
    color: #96763c;
}

.header .brand-slogan {
    color: #716d64;
}

/* Lien vers l'espace agent */
.header .header-link {
    color: #302f2b;
    background: #ffffff;
    border: 1px solid #ded8ca;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.header .header-link:hover {
    background: #f5f0e5;
    border-color: #b9954f;
}

/* Adaptation mobile */
@media (max-width: 650px) {
    .header {
        min-height: 92px;
        padding: 12px 18px;
        gap: 12px;
    }

    .header .brand {
        gap: 9px;
        min-width: 0;
    }

    .header .brand-mark {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }

    .header .brand-mark svg {
        width: 34px;
        height: 34px;
    }

    .header .brand-name {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .header .brand-subtitle {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .header .brand-slogan {
        font-size: 9px;
    }

    .header .header-link {
        padding: 9px 10px;
        font-size: 11px;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .header {
        padding-right: 10px;
        padding-left: 10px;
        gap: 8px;
    }

    .header .brand {
        gap: 7px;
    }

    .header .brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .header .brand-name {
        font-size: 17px;
        letter-spacing: 1.5px;
    }

    .header .brand-subtitle {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .header .brand-slogan {
        font-size: 8px;
    }

    .header .header-link {
        padding: 8px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header *,
    .header *::before,
    .header *::after {
        transition: none !important;
    }
}

/* FORMULAIRE DE DEMANDE DE LOCATION */
.prospect-section {
    padding: 64px 24px;
    background: #f8f5ec;
}

.prospect-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e8dfca;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(40, 35, 25, 0.07);
}

.prospect-card h2 {
    margin: 12px 0;
    color: #292929;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.prospect-card .section-description {
    margin-bottom: 28px;
    color: #666666;
    line-height: 1.7;
}

#form-prospect {
    display: grid;
    gap: 10px;
}

#form-prospect > label:not(.consentement-label) {
    margin-top: 8px;
    color: #333333;
    font-size: 0.95rem;
    font-weight: 600;
}

#form-prospect input:not([type="checkbox"]),
#form-prospect select,
#form-prospect textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: #292929;
    background: #fffefa;
    border: 1px solid #d9d4c8;
    border-radius: 9px;
    font: inherit;
    box-sizing: border-box;
}

#form-prospect textarea {
    min-height: 100px;
    resize: vertical;
}

#form-prospect input:focus,
#form-prospect select:focus,
#form-prospect textarea:focus {
    outline: 2px solid #d8b66a;
    outline-offset: 2px;
    border-color: #b99545;
}

#form-prospect .consentement-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    color: #555555;
    font-size: 0.9rem;
    line-height: 1.6;
}

#form-prospect .consentement-label input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #b99545;
}

#form-prospect button {
    justify-self: start;
    cursor: pointer;
    border: 0;
}

#prospect-message {
    min-height: 1.5em;
    margin: 8px 0 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .prospect-section {
        padding: 36px 16px;
    }

    .prospect-card {
        padding: 24px 18px;
        border-radius: 14px;
    }

    #form-prospect button {
        width: 100%;
        justify-self: stretch;
    }
}

/* BOUTON RETOUR EN HAUT */
#retour-haut {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    color: #ffffff;
    background: #b99545;
    border: 1px solid #d8b66a;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease,
                visibility 0.25s ease, background 0.2s ease;
}

#retour-haut.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#retour-haut:hover {
    background: #92712d;
}

#retour-haut:focus-visible {
    outline: 3px solid #292929;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    #retour-haut {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #retour-haut {
        transition: none;
    }
}



/* Formulaire prospect : mise en page compacte */
.prospect-section-compact {
    padding-top: 32px;
    padding-bottom: 32px;
}

.prospect-card-compact {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 26px 30px;
}

.prospect-heading-compact .eyebrow {
    margin-bottom: 7px;
}

.prospect-heading-compact h2 {
    margin-top: 0;
    margin-bottom: 5px;
}

.prospect-heading-compact .section-description {
    margin-top: 0;
    margin-bottom: 20px;
}

.prospect-form-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 12px;
}

.prospect-field-compact {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.prospect-field-compact label {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.prospect-field-compact input,
.prospect-field-compact select,
.prospect-field-compact textarea {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    margin: 0;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    border-radius: 5px;
}

.prospect-field-compact textarea {
    min-height: 62px;
    resize: vertical;
}

.prospect-field-full {
    grid-column: 1 / -1;
    min-width: 0;
}

.consentement-label-compact {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

.consentement-label-compact input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.prospect-submit-compact .button {
    min-height: 42px;
    padding: 10px 18px;
}

.prospect-submit-compact #prospect-message {
    margin: 8px 0 0;
    font-size: 13px;
}

/* Affichage sur téléphone */
@media (max-width: 600px) {
    .prospect-section-compact {
        padding: 22px 12px;
    }

    .prospect-card-compact {
        padding: 20px 16px;
    }

    .prospect-form-compact {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 12px;
    }

    .prospect-field-full {
        grid-column: 1;
    }

    .prospect-heading-compact .section-description {
        margin-bottom: 16px;
    }
}


/* =====================================================
   MESSAGERIE PROSPECT
===================================================== */

.messagerie-prospect {
    max-width: 1050px;
    margin: 55px auto;
    padding: 30px;
    background: #f8faf8;
    border: 1px solid #e2eae5;
    border-radius: 14px;
}

.messagerie-prospect-entete h2 {
    margin: 8px 0;
    color: #183f32;
}

.messagerie-prospect-entete > p:last-child {
    color: #66756d;
    line-height: 1.6;
}

.messages-prospect {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 100px;
    max-height: 420px;
    margin: 22px 0;
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2eae5;
    border-radius: 10px;
}

.message-prospect-bulle {
    max-width: 78%;
    padding: 12px 15px;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.message-prospect-bulle strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
}

.message-prospect-bulle p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.message-prospect-bulle small {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    opacity: .75;
}

.message-prospect-utilisateur {
    align-self: flex-end;
    background: #e8f2ed;
    color: #123d32;
}

.message-prospect-admin {
    align-self: flex-start;
    background: #285c3b;
    color: #fff;
}

#formulaire-messagerie-prospect {
    padding: 18px;
    background: #fff;
    border: 1px solid #e2eae5;
    border-radius: 10px;
}

#formulaire-messagerie-prospect label {
    display: block;
    margin-bottom: 9px;
    color: #183f32;
    font-weight: 600;
}

#formulaire-messagerie-prospect textarea {
    display: block;
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #d6dcd7;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
    box-sizing: border-box;
}

#formulaire-messagerie-prospect textarea:focus {
    outline: 2px solid #8eae96;
    border-color: #285c3b;
}

#formulaire-messagerie-prospect button {
    margin-top: 12px;
    padding: 11px 20px;
    border: 0;
    border-radius: 7px;
    background: #285c3b;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

#formulaire-messagerie-prospect button:disabled {
    opacity: .6;
    cursor: wait;
}

#statut-messagerie-prospect {
    margin-top: 12px;
    color: #285c3b;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .messagerie-prospect {
        margin: 35px 12px;
        padding: 18px;
    }

    .message-prospect-bulle {
        max-width: 92%;
    }

    #formulaire-messagerie-prospect {
        padding: 12px;
    }
}


