/* =====================================================================
   RDV - Residence
   ---------------------------------------------------------------------
   Styles de la page "Residence" inspiree du nouveau modele visuel.
   La feuille reste volontairement scopen par classes pour limiter les
   effets de bord sur les autres pages.
   ===================================================================== */

/* ---------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------ */
.residence-hero .container {
    max-width: 760px;
}

.residence-hero .breadcrumb {
    margin-bottom: 18px;
}

.residence-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .1);
    color: var(--gold-200);
    letter-spacing: .15em;
    text-transform: uppercase;
    font-size: .76rem;
    font-weight: 700;
}

.residence-hero h1 {
    max-width: 620px;
    margin-bottom: 18px;
}

.residence-hero__line {
    display: block;
    color: var(--gold-200);
    font-size: clamp(.9rem, 1.8vw, 1.1rem);
    line-height: 1.15;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.residence-hero__title {
    display: block;
    font-size: clamp(3.1rem, 7vw, 5.8rem);
    line-height: .92;
}

.residence-hero p {
    max-width: 520px;
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.residence-hero__actions {
    margin-top: 28px;
}

/* ---------------------------------------------------------------------
   PRESENTATION
   ------------------------------------------------------------------ */
.residence-intro {
    background:
        radial-gradient(circle at top right, rgba(242, 166, 90, .08), transparent 24%),
        linear-gradient(180deg, #fff 0%, var(--sand-50) 100%);
}

.residence-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(22px, 4vw, 40px);
    align-items: center;
}

.residence-intro__media {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 520px;
    background: var(--sand-100);
}

.residence-intro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.residence-intro__panel {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(227, 218, 203, .9);
    border-radius: 28px;
    padding: clamp(26px, 4vw, 40px);
    box-shadow: var(--shadow-md);
}

.residence-intro__panel h2 {
    margin-bottom: 14px;
}

.residence-intro__panel > p {
    max-width: 560px;
    margin-bottom: 24px;
}

.residence-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.residence-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 15px;
    border-radius: 18px;
    background: var(--sand-50);
    border: 1px solid var(--sand-200);
}

.residence-point__icon {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--gold-50);
    color: var(--gold-600);
}

.residence-point h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.residence-point p {
    margin: 0;
    font-size: .88rem;
    color: var(--muted);
}

/* ---------------------------------------------------------------------
   CARTES DE RESIDENCES
   ------------------------------------------------------------------ */
.residence-residences {
    position: relative;
}

.residence-residences .section-head {
    margin-bottom: 36px;
}

.residence-residences .apart-grid {
    gap: 24px;
}

/* ---------------------------------------------------------------------
   SERVICES / EQUIPEMENTS
   ------------------------------------------------------------------ */
.residence-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.residence-feature-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-sm);
}

.residence-feature-card h2 {
    margin-bottom: 12px;
}

.residence-feature-card > p {
    max-width: 560px;
    margin-bottom: 22px;
}

.residence-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.residence-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--sand-50);
    border: 1px solid var(--sand-200);
    color: var(--ink-soft);
    font-weight: 600;
}

.residence-chip__icon {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--gold-50);
    color: var(--gold-600);
}

/* ---------------------------------------------------------------------
   TYPES DE SEJOUR
   ------------------------------------------------------------------ */
.residence-purpose-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.residence-purpose-card {
    position: relative;
    min-height: 250px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--sand-100);
    box-shadow: var(--shadow-sm);
}

.residence-purpose-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(.2, .6, .2, 1);
}

.residence-purpose-card:hover img {
    transform: scale(1.05);
}

.residence-purpose-card__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 26px 20px 18px;
    background: linear-gradient(to top, rgba(6, 50, 58, .88), rgba(6, 50, 58, .08));
    color: #fff;
}

.residence-purpose-card__overlay h3 {
    color: #fff;
    margin-bottom: 6px;
}

.residence-purpose-card__overlay p {
    margin: 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .82);
}

/* ---------------------------------------------------------------------
   RECHERCHE DE DISPONIBILITE
   ------------------------------------------------------------------ */
.residence-search {
    padding-bottom: 0;
}

.residence-search .availability-bar {
    margin-top: 0;
}

.residence-search .availability-card {
    max-width: 1240px;
    margin-inline: auto;
    box-shadow: var(--shadow-md);
}

/* ---------------------------------------------------------------------
   GALERIE
   ------------------------------------------------------------------ */
.residence-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 170px;
    gap: 14px;
    grid-auto-flow: dense;
}

.residence-gallery__item {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--sand-100);
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
}

.residence-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(.2, .6, .2, 1);
}

.residence-gallery__item:hover img {
    transform: scale(1.05);
}

.residence-gallery__item.is-large {
    grid-column: span 2;
    grid-row: span 2;
}

.residence-gallery__item:nth-child(4n + 2) {
    grid-row: span 2;
}

.residence-gallery__item:nth-child(4n + 3) {
    grid-column: span 2;
}

/* ---------------------------------------------------------------------
   LOCALISATION / AVIS
   ------------------------------------------------------------------ */
.residence-location-grid {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.15fr) minmax(300px, .95fr);
    gap: 24px;
    align-items: start;
}

.residence-location-card,
.residence-review-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.residence-location-card h3 {
    margin-bottom: 18px;
}

.residence-location-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 14px;
}

.residence-location-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sand-200);
    color: var(--ink-soft);
}

.residence-location-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.residence-location-list .icon {
    color: var(--gold-600);
    flex: none;
    margin-top: .15em;
}

.residence-location-list a {
    color: var(--ocean-700);
}

.residence-map {
    min-height: 100%;
}

.residence-map iframe {
    min-height: 460px;
}

.residence-review-panel__head {
    margin-bottom: 18px;
}

.residence-review-panel__head h3 {
    margin-bottom: 14px;
}

.residence-review-score {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
}

.residence-review-score strong {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--ocean-900);
}

.residence-review-score__stars .stars {
    margin-bottom: 2px;
}

.residence-review-score small {
    color: var(--muted);
    font-size: .84rem;
}

.residence-review-card {
    margin-bottom: 14px;
}

.residence-review-mini {
    display: grid;
    gap: 12px;
}

.residence-review-mini__item {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--sand-50);
    border: 1px solid var(--sand-200);
}

.residence-review-mini__item strong {
    display: block;
    color: var(--ocean-900);
    margin-bottom: 4px;
}

.residence-review-mini__item span {
    color: var(--muted);
    font-size: .86rem;
}

/* ---------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.residence-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.residence-faq__item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.residence-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    list-style: none;
    cursor: pointer;
    color: var(--ocean-900);
    font-weight: 600;
}

.residence-faq__item summary::-webkit-details-marker {
    display: none;
}

.residence-faq__item summary::after {
    content: "+";
    flex: none;
    font-size: 1.2rem;
    color: var(--gold-600);
}

.residence-faq__item[open] summary {
    border-bottom: 1px solid var(--sand-200);
}

.residence-faq__item[open] summary::after {
    content: "−";
}

.residence-faq__item p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--muted);
}

/* ---------------------------------------------------------------------
   CTA
   ------------------------------------------------------------------ */
.residence-cta__band {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(34px, 5vw, 56px);
    color: #fff;
    background:
        linear-gradient(120deg, rgba(6, 50, 58, .86), rgba(6, 50, 58, .52)),
        var(--residence-cta-image) center/cover no-repeat;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    box-shadow: var(--shadow-lg);
}

.residence-cta__band .eyebrow {
    color: var(--gold-200);
}

.residence-cta__band .eyebrow::before {
    background: var(--gold-500);
}

.residence-cta__band h2 {
    color: #fff;
    max-width: 600px;
}

.residence-cta__band p {
    max-width: 560px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .84);
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 1080px) {
    .residence-intro__grid,
    .residence-services__grid,
    .residence-location-grid {
        grid-template-columns: 1fr;
    }

    .residence-purpose-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .residence-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .residence-gallery__item.is-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .residence-map iframe {
        min-height: 360px;
    }
}

@media (max-width: 780px) {
    .residence-points,
    .residence-chip-grid,
    .residence-faq-grid {
        grid-template-columns: 1fr;
    }

    .residence-purpose-grid,
    .residence-gallery-grid {
        grid-template-columns: 1fr;
    }

    .residence-gallery__item,
    .residence-gallery__item.is-large,
    .residence-gallery__item:nth-child(4n + 2),
    .residence-gallery__item:nth-child(4n + 3) {
        grid-column: auto;
        grid-row: auto;
        min-height: 220px;
    }

    .residence-cta__band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .residence-hero__title {
        font-size: clamp(2.5rem, 16vw, 4rem);
    }

    .residence-intro__media {
        min-height: 340px;
    }

    .residence-location-card,
    .residence-review-panel,
    .residence-feature-card {
        border-radius: 22px;
    }
}
