/*
 * Celestia Invest — Landing Villa + Appartement + Maison d’hôtes
 * Portée strictement limitée à body#category-1, body#category-2 et body#category-5.
 * Hôtel (category-4), Riad (category-3) et la homepage ne sont pas affectés.
 */

body#category-1,
body#category-2,
body#category-5 {
    overflow-x: clip;
    padding-top: 0 !important;
}

#category-1 .top-header,
#category-1 #header,
#category-1 .flat-title-page,
#category-1 #modalLogin,
#category-1 #modalRegister,
#category-1 .progress-wrap,
#category-1 footer.footer,
#category-2 .top-header,
#category-2 #header,
#category-2 .flat-title-page,
#category-2 #modalLogin,
#category-2 #modalRegister,
#category-2 .progress-wrap,
#category-2 footer.footer,
#category-5 .top-header,
#category-5 #header,
#category-5 .flat-title-page,
#category-5 #modalLogin,
#category-5 #modalRegister,
#category-5 .progress-wrap,
#category-5 footer.footer {
    display: none !important;
}

#category-1 #wrapper > .clearfix > div.container,
#category-2 #wrapper > .clearfix > div.container,
#category-5 #wrapper > .clearfix > div.container {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

#category-1 #wrapper > .clearfix > div.container > .flat-section,
#category-1 section.flat-recommended,
#category-2 #wrapper > .clearfix > div.container > .flat-section,
#category-2 section.flat-recommended,
#category-5 #wrapper > .clearfix > div.container > .flat-section,
#category-5 section.flat-recommended {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
}

.ci-residential-page {
    --ci-green: #587166;
    --ci-green-dark: #40584f;
    --ci-ivory: #f8f3e9;
    --ci-paper: #fffdf8;
    --ci-stone: #eee7dc;
    --ci-line: #d8cdbf;
    --ci-espresso: #433128;
    --ci-taupe: #70665e;
    --ci-taupe-light: #9b8f84;
    --ci-terra: #ad684e;
    background: var(--ci-ivory);
    color: var(--ci-espresso);
    font-family: Manrope, Arial, sans-serif;
    line-height: 1.65;
    margin-left: 0;
    max-width: none;
    overflow: clip;
    position: relative;
    width: 100%;
}

.ci-residential-page *,
.ci-residential-page *::before,
.ci-residential-page *::after {
    box-sizing: border-box;
}

.ci-residential-page a {
    color: inherit;
    text-decoration: none;
}

.ci-residential-page img {
    display: block;
    height: auto;
    max-width: 100%;
}

.ci-residential-page h1,
.ci-residential-page h2,
.ci-residential-page h3,
.ci-residential-page p {
    margin: 0;
}

.ci-residential-page h1,
.ci-residential-page h2,
.ci-residential-page h3 {
    color: var(--ci-espresso);
    font-family: Newsreader, Georgia, serif;
    font-weight: 450;
    letter-spacing: -.035em;
    line-height: 1.02;
    text-wrap: balance;
}

.ci-residential-page p {
    text-wrap: pretty;
}

.ci-res-shell {
    margin-inline: auto;
    width: min(1240px, calc(100% - 96px));
}

.ci-res-eyebrow {
    color: var(--ci-terra);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .19em;
    line-height: 1.35;
    text-transform: uppercase;
}

.ci-res-btn {
    align-items: center;
    border: 1px solid currentColor;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    justify-content: center;
    letter-spacing: .015em;
    min-height: 51px;
    padding: 13px 20px;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.ci-res-btn:hover {
    transform: translateY(-2px);
}

.ci-res-btn-light {
    background: var(--ci-paper);
    border-color: var(--ci-paper);
    color: var(--ci-green-dark) !important;
}

.ci-res-btn-outline,
.ci-res-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .58);
    color: #fff !important;
}

.ci-res-btn-dark {
    background: var(--ci-green-dark);
    border-color: var(--ci-green-dark);
    color: #fff !important;
}

.ci-res-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ci-res-text-link {
    border-bottom: 1px solid currentColor;
    color: var(--ci-green-dark) !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 750;
    padding-bottom: 4px;
}

/* En-tête Celestia */
.ci-res-header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    display: flex;
    gap: 30px;
    height: 94px;
    left: 50%;
    max-width: 1440px;
    padding: 0 48px;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    z-index: 20;
}

.ci-res-logo {
    flex: 0 0 auto;
}

.ci-res-logo img {
    filter: brightness(0) invert(1);
    width: 170px;
}

.ci-res-nav {
    align-items: center;
    display: flex;
    font-size: 13px;
    font-weight: 650;
    gap: 28px;
    margin-left: auto;
    white-space: nowrap;
}

.ci-res-nav a {
    position: relative;
}

.ci-res-nav a::after {
    background: currentColor;
    bottom: -5px;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
    width: 100%;
}

.ci-res-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.ci-res-header-actions {
    display: flex;
    gap: 10px;
}

.ci-res-header-actions .ci-res-btn {
    min-height: 46px;
    white-space: nowrap;
}

/* Hero lumineux, photographie préservée */
.ci-res-hero {
    align-items: flex-end;
    background-color: #756a60;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    display: flex;
    min-height: 790px;
    position: relative;
}

.ci-villa-page .ci-res-hero {
    background-image: url("https://www.celestiainvest.com/storage/whatsapp-image-2026-04-20-at-124517.jpeg");
    background-position: center 48%;
}

.ci-apartment-page .ci-res-hero {
    background-image: url("https://www.celestiainvest.com/storage/dsc02261.jpg");
    background-position: center 50%;
}

.ci-guesthouse-page .ci-res-hero {
    background-image: url("https://www.celestiainvest.com/storage/domai-133.jpg");
    background-position: center 52%;
}

.ci-res-hero-overlay {
    background:
        linear-gradient(90deg, rgba(55, 39, 31, .83) 0%, rgba(55, 39, 31, .70) 25%, rgba(55, 39, 31, .38) 45%, rgba(55, 39, 31, .12) 67%, rgba(55, 39, 31, .03) 100%),
        linear-gradient(0deg, rgba(36, 28, 24, .34) 0%, transparent 55%);
    inset: 0;
    position: absolute;
}

.ci-res-hero-inner {
    padding-bottom: 74px;
    padding-top: 170px;
    position: relative;
    z-index: 2;
}

.ci-res-hero-copy {
    max-width: 770px;
}

.ci-res-hero .ci-res-eyebrow {
    color: #ead1c0;
    margin-bottom: 22px;
}

.ci-res-hero h1 {
    color: #fff;
    font-size: clamp(58px, 6.1vw, 91px);
    max-width: 800px;
}

.ci-res-hero-text {
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1.62;
    margin-top: 27px;
    max-width: 680px;
}

.ci-res-hero-text p + p {
    margin-top: 9px;
}

.ci-res-hero .ci-res-actions {
    margin-top: 31px;
}

/* Sections générales */
.ci-res-section {
    padding: 106px 0;
}

.ci-res-section-head {
    align-items: end;
    display: grid;
    gap: 74px;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .62fr);
    margin-bottom: 46px;
}

.ci-res-section-head h2 {
    font-size: clamp(44px, 4.4vw, 65px);
    margin-top: 18px;
}

.ci-res-section-head > p {
    color: var(--ci-taupe);
    font-size: 15px;
    max-width: 490px;
}

/* Listing dynamique Botble */
.ci-res-selection {
    background: var(--ci-paper);
}

.ci-res-property-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ci-res-property-card {
    background: var(--ci-ivory);
    min-width: 0;
}

.ci-res-property-media {
    aspect-ratio: 16 / 10;
    background: var(--ci-stone);
    display: block;
    overflow: hidden;
    position: relative;
}

.ci-res-property-media img {
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2, .7, .2, 1);
    width: 100%;
}

.ci-res-property-card:hover .ci-res-property-media img {
    transform: scale(1.025);
}

.ci-res-property-media > span {
    background: rgba(255, 253, 248, .94);
    color: var(--ci-green-dark);
    font-size: 10px;
    font-weight: 800;
    left: 18px;
    letter-spacing: .14em;
    padding: 8px 11px;
    position: absolute;
    text-transform: uppercase;
    top: 18px;
}

.ci-res-property-body {
    padding: 24px 25px 27px;
}

.ci-res-property-location {
    color: var(--ci-terra);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ci-res-property-body h3 {
    font-size: 34px;
    margin-top: 8px;
}

.ci-res-property-body h3 a {
    overflow-wrap: anywhere;
}

.ci-res-property-data {
    align-items: center;
    border-top: 1px solid var(--ci-line);
    color: var(--ci-taupe);
    display: flex;
    font-size: 13px;
    gap: 18px;
    justify-content: space-between;
    margin-top: 17px;
    padding-top: 16px;
}

.ci-res-property-data strong {
    color: var(--ci-espresso);
    font-weight: 750;
    white-space: nowrap;
}

.ci-res-empty {
    background: var(--ci-ivory);
    color: var(--ci-taupe);
    padding: 30px;
}

.ci-res-pagination {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

/* Grille d'analyse */
.ci-res-analysis {
    background: var(--ci-ivory);
}

.ci-res-analysis-layout {
    align-items: start;
    display: grid;
    gap: 80px;
    grid-template-columns: minmax(390px, .88fr) minmax(0, 1.12fr);
}

.ci-res-analysis-intro {
    position: sticky;
    top: 32px;
}

.ci-res-analysis-intro h2 {
    font-size: clamp(46px, 4.6vw, 67px);
    margin-top: 18px;
    max-width: 590px;
}

.ci-res-analysis-intro > p:last-child {
    color: var(--ci-taupe);
    margin-top: 28px;
    max-width: 530px;
}

.ci-res-criteria-grid {
    border-top: 1px solid var(--ci-line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ci-res-criteria-grid article {
    border-bottom: 1px solid var(--ci-line);
    min-height: 183px;
    padding: 28px 24px 29px 0;
}

.ci-res-criteria-grid article:nth-child(even) {
    border-left: 1px solid var(--ci-line);
    padding-left: 26px;
}

.ci-res-criteria-grid article > span {
    color: var(--ci-terra);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.ci-res-criteria-grid h3 {
    font-family: Manrope, Arial, sans-serif;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.015em;
    margin-top: 11px;
}

.ci-res-criteria-grid p {
    color: var(--ci-taupe);
    font-size: 13px;
    line-height: 1.6;
    margin-top: 9px;
}

/* Composition photo éditoriale */
.ci-res-editorial {
    background: var(--ci-stone);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 610px;
}

.ci-res-editorial-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 610px;
}

.ci-villa-page .ci-res-editorial-image {
    background-image: url("https://www.celestiainvest.com/storage/tara-19.jpg");
}

.ci-apartment-page .ci-res-editorial-image {
    background-image: url("https://www.celestiainvest.com/storage/dsc03099.jpg");
}

.ci-guesthouse-page .ci-res-editorial-image {
    background-image: url("https://www.celestiainvest.com/storage/romi-245.jpg");
}

.ci-res-editorial-copy {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 78px clamp(48px, 6vw, 92px);
}

.ci-res-editorial-copy h2 {
    font-size: clamp(45px, 4.6vw, 66px);
    margin-top: 20px;
    max-width: 590px;
}

.ci-res-editorial-copy > p:last-child {
    color: var(--ci-taupe);
    margin-top: 26px;
    max-width: 520px;
}

/* Sourcing, propriétaires et CTA */
.ci-res-sourcing {
    background: var(--ci-paper);
}

.ci-res-sourcing-layout {
    align-items: start;
    display: grid;
    gap: 90px;
    grid-template-columns: minmax(0, 1.02fr) minmax(370px, .72fr);
}

.ci-res-sourcing h2 {
    font-size: clamp(47px, 5vw, 70px);
    margin-top: 18px;
    max-width: 730px;
}

.ci-res-sourcing-copy {
    color: var(--ci-taupe);
    padding-top: 31px;
}

.ci-res-sourcing-copy p + p {
    margin-top: 14px;
}

.ci-res-sourcing-copy .ci-res-actions {
    margin-top: 31px;
}

.ci-res-owner {
    background: #e6ede8;
    padding: 78px 0;
}

.ci-apartment-page .ci-res-owner {
    background: #eee9df;
}

.ci-res-owner-layout {
    align-items: center;
    display: grid;
    gap: 48px;
    grid-template-columns: .42fr 1.2fr .9fr;
}

.ci-res-owner h2 {
    font-size: clamp(39px, 4vw, 56px);
}

.ci-res-owner-layout > div:last-child {
    color: var(--ci-taupe);
}

.ci-res-owner .ci-res-text-link {
    margin-top: 20px;
}

.ci-res-final {
    background: var(--ci-green-dark);
    color: #fff;
    padding: 104px 0;
}

.ci-apartment-page .ci-res-final {
    background: #5e6f66;
}

.ci-res-final-inner {
    margin: auto;
    max-width: 920px;
    text-align: center;
}

.ci-res-final .ci-res-eyebrow {
    color: #e5c7b6;
}

.ci-res-final h2 {
    color: #fff;
    font-size: clamp(49px, 5.2vw, 72px);
    margin-top: 19px;
}

.ci-res-final-inner > p:not(.ci-res-eyebrow) {
    color: rgba(255, 255, 255, .78);
    margin: 25px auto 0;
    max-width: 690px;
}

.ci-res-final .ci-res-actions {
    justify-content: center;
    margin-top: 31px;
}

/* Footer unique Celestia */
.ci-res-footer {
    background: #263b34;
    color: #fff;
    padding: 72px 0 28px;
}

.ci-res-footer-grid {
    display: grid;
    gap: 52px;
    grid-template-columns: 1.25fr .7fr .7fr 1fr;
}

.ci-res-footer-brand img {
    filter: brightness(0) invert(1);
    width: 178px;
}

.ci-res-footer-brand p {
    color: rgba(255, 255, 255, .67);
    font-size: 13px;
    margin-top: 21px;
    max-width: 340px;
}

.ci-res-footer h3 {
    color: #ddc0ac;
    font-family: Manrope, Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.ci-res-footer-links {
    color: rgba(255, 255, 255, .78);
    display: grid;
    font-size: 13px;
    gap: 10px;
}

.ci-res-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .56);
    display: flex;
    font-size: 11px;
    gap: 30px;
    justify-content: space-between;
    margin-top: 58px;
    padding-top: 23px;
}

@media (max-width: 1180px) {
    .ci-res-header {
        padding-inline: 38px;
    }

    .ci-res-nav {
        gap: 19px;
    }

    .ci-res-header-actions .ci-res-btn:first-child {
        display: none;
    }
}

@media (max-width: 1020px) {
    .ci-res-nav {
        display: none;
    }

    .ci-res-header-actions {
        margin-left: auto;
    }

    .ci-res-section-head,
    .ci-res-analysis-layout,
    .ci-res-sourcing-layout {
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .ci-res-analysis-intro {
        position: static;
    }

    .ci-res-editorial {
        grid-template-columns: 1fr;
    }

    .ci-res-editorial-image {
        min-height: 520px;
    }

    .ci-res-owner-layout {
        grid-template-columns: .42fr 1.2fr;
    }

    .ci-res-owner-layout > div:last-child {
        grid-column: 2;
    }

    .ci-res-footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .ci-res-footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .ci-res-shell {
        width: min(100% - 38px, 1240px);
    }

    .ci-res-header {
        height: 78px;
        padding: 0 19px;
    }

    .ci-res-logo img {
        width: 132px;
    }

    .ci-res-header-actions .ci-res-btn {
        font-size: 10px;
        min-height: 40px;
        padding: 10px 12px;
    }

    .ci-res-hero {
        min-height: 850px;
    }

    .ci-villa-page .ci-res-hero {
        background-position: 59% center;
    }

    .ci-apartment-page .ci-res-hero {
        background-position: 56% center;
    }

    .ci-guesthouse-page .ci-res-hero {
        background-position: 58% center;
    }

    .ci-res-hero-overlay {
        background:
            linear-gradient(90deg, rgba(55, 39, 31, .79) 0%, rgba(55, 39, 31, .57) 62%, rgba(55, 39, 31, .27) 100%),
            linear-gradient(0deg, rgba(36, 28, 24, .48) 0%, transparent 62%);
    }

    .ci-res-hero-inner {
        padding-bottom: 52px;
        padding-top: 124px;
    }

    .ci-res-hero h1 {
        font-size: clamp(45px, 13vw, 58px);
    }

    .ci-res-hero-text {
        font-size: 14px;
        line-height: 1.58;
        margin-top: 22px;
    }

    .ci-res-actions {
        align-items: stretch;
        display: grid;
        width: 100%;
    }

    .ci-res-btn {
        width: 100%;
    }

    .ci-res-section {
        padding: 74px 0;
    }

    .ci-res-section-head {
        margin-bottom: 32px;
    }

    .ci-res-section-head h2,
    .ci-res-analysis-intro h2,
    .ci-res-sourcing h2,
    .ci-res-final h2 {
        font-size: 43px;
    }

    .ci-res-property-grid {
        gap: 21px;
        grid-template-columns: 1fr;
    }

    .ci-res-property-media {
        aspect-ratio: 4 / 3;
    }

    .ci-res-property-body {
        padding: 21px;
    }

    .ci-res-property-body h3 {
        font-size: 30px;
    }

    .ci-res-property-data {
        align-items: flex-end;
    }

    .ci-res-criteria-grid {
        grid-template-columns: 1fr;
    }

    .ci-res-criteria-grid article,
    .ci-res-criteria-grid article:nth-child(even) {
        border-left: 0;
        min-height: 0;
        padding: 25px 0;
    }

    .ci-res-editorial-image {
        min-height: 390px;
    }

    .ci-res-editorial-copy {
        padding: 65px 19px 70px;
    }

    .ci-res-editorial-copy h2 {
        font-size: 43px;
    }

    .ci-res-owner {
        padding: 68px 0;
    }

    .ci-res-owner-layout {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .ci-res-owner-layout > div:last-child {
        grid-column: auto;
    }

    .ci-res-owner h2 {
        font-size: 40px;
    }

    .ci-res-final {
        padding: 78px 0;
    }

    .ci-res-footer {
        overflow: hidden;
    }

    .ci-res-footer-grid {
        gap: 34px;
        grid-template-columns: minmax(0, 1fr);
    }

    .ci-res-footer-grid > div,
    .ci-res-footer-grid > div:last-child,
    .ci-res-footer-brand {
        grid-column: auto;
        min-width: 0;
        width: 100%;
    }

    .ci-res-footer-bottom {
        align-items: flex-start;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }
}

@media (max-width: 430px) {
    .ci-res-header-actions .ci-res-btn {
        padding-inline: 10px;
    }

    .ci-res-logo img {
        width: 118px;
    }

    .ci-res-property-data {
        display: grid;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ci-residential-page *,
    .ci-residential-page *::before,
    .ci-residential-page *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
