/* ==========================================================
   gpc v2
   Cartes et composants
========================================================== */

/* ==========================================================
   Section des services
========================================================== */

.services-section {
    position: relative;
    margin-top: 260px;
    padding: 110px 0 65px;
    overflow: hidden;
    background: #fff;
}

@media (max-width: 1400px) {
    .services-section {
        margin-top: 130px;
    }
}

.services-section::before {
    content: "";
    position: absolute;
    top: -260px;
    left: 50%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
        circle,
        rgb(36 157 246 / 7%) 0%,
        rgb(36 157 246 / 0%) 68%
    );
    transform: translateX(-50%);
}

/* ==========================================================
   Grille
========================================================== */

.services-section .row {
    position: relative;
    z-index: 1;
    align-items: stretch;
}

.services-section [class*="col-"] {
    display: flex;
}

/* ==========================================================
   Carte service
========================================================== */

.service-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 380px;
    padding: 36px 34px 32px;
    flex-direction: column;
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 20px 55px rgb(10 33 55 / 6%);

    transition:
        transform 350ms cubic-bezier(.2, .7, .2, 1),
        border-color 350ms ease,
        box-shadow 350ms ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        var(--color-primary),
        #52b8ff
    );

    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;

    transition:
        opacity 300ms ease,
        transform 400ms cubic-bezier(.2, .7, .2, 1);
}

.service-card::after {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 220px;
    height: 220px;
    border-radius: 50%;

    pointer-events: none;

    background: radial-gradient(
        circle,
        rgb(36 157 246 / 10%) 0%,
        rgb(36 157 246 / 0%) 70%
    );

    opacity: 0;

    transition: opacity 350ms ease;
}

.service-card:hover {
    border-color: rgb(36 157 246 / 35%);

    box-shadow:
        0 28px 70px rgb(10 33 55 / 12%);

    transform: translate3d(0, -8px, 0);
}

.service-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

/* ==========================================================
   Icône
========================================================== */

.service-card__icon {
    position: relative;
    z-index: 1;

    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
    place-items: center;

    border-radius: 50%;

    color: #08769d;
    background: #e9f5f9;

    font-size: 1.35rem;

    transition:
        color 300ms ease,
        background-color 300ms ease,
        transform 350ms cubic-bezier(.2, .7, .2, 1);
}

.service-card:hover .service-card__icon {
    color: #fff;
    background: var(--color-primary);

    transform:
        translate3d(0, -3px, 0)
        scale(1.06);
}

/* ==========================================================
   Titre
========================================================== */

.service-card__title {
    position: relative;
    z-index: 1;

    margin-bottom: 16px;

    color: var(--color-primary-dark);

    font-size: clamp(1.25rem, 2vw, 1.45rem);
    font-weight: 750;
    line-height: 1.25;
}

/* ==========================================================
   Texte
========================================================== */

.service-card__text {
    position: relative;
    z-index: 1;

    margin-bottom: 28px;

    color: var(--color-muted);

    font-size: 1rem;
    line-height: 1.65;
}

/* ==========================================================
   Lien
========================================================== */

.service-card__link {
    position: relative;
    z-index: 1;

    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    align-items: center;
    gap: 10px;

    color: #08769d;

    font-size: .95rem;
    font-weight: 750;
    line-height: 1.4;

    transition:
        color 250ms ease,
        gap 250ms ease;
}

.service-card__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;

    background: var(--color-primary);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform 300ms ease;
}

.service-card__link i {
    flex-shrink: 0;

    font-size: .85rem;

    transition: transform 250ms ease;
}

.service-card__link:hover {
    gap: 14px;
    color: var(--color-primary);
}

.service-card__link:hover::after {
    transform: scaleX(1);
}

.service-card__link:hover i {
    transform: translate3d(4px, 0, 0);
}

/* ==========================================================
   Variantes visuelles
========================================================== */

.service-card:nth-child(1) .service-card__icon {
    background: #e9f5f9;
}

.service-card:nth-child(2) .service-card__icon {
    background: #edf7f5;
}

.service-card:nth-child(3) .service-card__icon {
    background: #eef5fc;
}

/* ==========================================================
   Cartes des biens — base pour la suite
========================================================== */

.property-card {
    position: relative;
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);

    background: #fff;

    box-shadow: var(--shadow-sm);

    transition:
        transform 350ms cubic-bezier(.2, .7, .2, 1),
        box-shadow 350ms ease;
}

.property-card:hover {
    box-shadow: var(--shadow-md);

    transform: translate3d(0, -7px, 0);
}

/* ==========================================================
   CTA
========================================================== */

.cta-card {
    display: flex;
    padding: 55px 60px;
    align-items: center;
    justify-content: space-between;
    gap: 45px;

    overflow: hidden;

    border-radius: var(--radius-lg);

    color: #fff;

    background:
        linear-gradient(
            120deg,
            var(--color-primary-dark),
            #075b7c
        );

    box-shadow:
        0 28px 70px rgb(7 27 45 / 18%);
}

.cta-card__content {
    max-width: 680px;
}

.cta-card__eyebrow {
    color: #8edcff;
}

.cta-card__title {
    margin-bottom: 16px;

    color: #fff;
}

.cta-card__text {
    margin-bottom: 0;

    color: rgb(255 255 255 / 78%);

    font-size: 1.05rem;
}

.cta-card__actions {
    display: flex;
    flex-shrink: 0;
    gap: 14px;
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 991px) {

    .services-section {
        padding: 90px 0 55px;
    }

    .service-card {
        min-height: 330px;
    }

    .cta-card {
        padding: 45px 38px;
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-card__actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {

    .services-section {
        margin-top: 0;
        padding: 75px 0 45px;
    }

    .service-card {
        min-height: auto;
        padding: 30px 27px;
    }

    .service-card:hover {
        transform: none;
    }

    .cta-card {
        padding: 36px 26px;
    }

    .cta-card__actions {
        flex-direction: column;
    }

    .cta-card__actions .btn {
        width: 100%;
    }
}

/* ==========================================================
   Accessibilité
========================================================== */

/* ==========================================================
   Cartes services photographiques
========================================================== */

.service-card {
    min-height: 480px;
    padding: 0;
    isolation: isolate;
    border-color: rgb(255 255 255 / 12%);
    background: var(--color-primary-dark);
}

.service-card::before {
    z-index: 1;
    inset: 0;
    width: auto;
    height: auto;
    opacity: 1;
    background:
        linear-gradient(
            180deg,
            rgb(4 22 38 / 3%) 18%,
            rgb(4 22 38 / 38%) 57%,
            rgb(4 22 38 / 84%) 100%
        );
    transform: none;
}

.service-card::after {
    z-index: 1;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    opacity: 1;
    background:
        linear-gradient(
            125deg,
            rgb(10 117 176 / 18%),
            transparent 50%
        );
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
    transform: none;
}

.service-card__media {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) saturate(1.06);
    transition:
        filter 500ms ease,
        transform 900ms cubic-bezier(.2, .7, .2, 1);
    will-change: auto;
}

.service-card:hover .service-card__media img {
    filter: brightness(1.14) saturate(1.08);
    transform: scale(1.055);
}

.service-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 480px;
    padding: 205px 32px 32px;
    flex-direction: column;
}

.service-card .service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border: 1px solid rgb(255 255 255 / 24%);
    color: #fff;
    background: rgb(7 35 56 / 56%);
    backdrop-filter: blur(10px);
}

.service-card:hover .service-card__icon {
    color: #fff;
    background: rgb(15 139 211 / 82%);
}

.service-card .service-card__title {
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 1.75rem);
}

.service-card .service-card__text {
    margin-bottom: 22px;
    color: rgb(255 255 255 / 84%);
    font-size: .95rem;
    line-height: 1.55;
}

.service-card .service-card__link,
.service-card .service-card__link:hover {
    color: #fff;
}

.service-card .service-card__link::after {
    background: #66c5ff;
}

@media (max-width: 1050px) {
    .service-card,
    .service-card__content {
        min-height: 440px;
    }

    .service-card__content {
        padding: 175px 28px 28px;
    }
}

@media (max-width: 767px) {
    .service-card {
        min-height: 430px;
        padding: 0;
    }

    .service-card__content {
        min-height: 430px;
        padding: 165px 25px 28px;
    }
}

@media (min-width: 700px) and (max-width: 991px) and (max-height: 600px) and (orientation: landscape) {
    .services-section .row > [class*="col-"] {
        width: 33.333333%;
        flex: 0 0 auto;
    }

    .service-card,
    .service-card__content {
        min-height: 300px;
    }

    .service-card__content {
        padding: 112px 16px 18px;
    }

    .service-card .service-card__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .service-card .service-card__title {
        margin-bottom: 8px;
        font-size: 1.05rem;
    }

    .service-card .service-card__text {
        display: none;
    }

    .service-card .service-card__link {
        font-size: .78rem;
    }
}

/* ==========================================================
   Mise en avant du courtage
========================================================== */

.brokerage-section {
    padding: 65px 0 120px;
    background:
        linear-gradient(180deg, #f7fafc 0%, #eef4f7 100%);
}

.brokerage-card {
    display: grid;
    min-height: 620px;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    overflow: hidden;
    border: 1px solid rgb(9 53 82 / 10%);
    border-radius: 26px;
    background: #071f33;
    box-shadow: 0 34px 90px rgb(7 31 51 / 16%);
}

.brokerage-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    padding: clamp(48px, 6vw, 82px);
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 8% 12%, rgb(40 157 224 / 20%), transparent 34%),
        linear-gradient(145deg, #092a43 0%, #061a2b 100%);
}

.brokerage-card__eyebrow {
    width: fit-content;
    margin-bottom: 20px;
    padding: 8px 13px;
    border: 1px solid rgb(111 199 250 / 28%);
    border-radius: 999px;
    color: #8ed3fa;
    background: rgb(31 137 198 / 10%);
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brokerage-card__title {
    max-width: 680px;
    margin-bottom: 22px;
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 3.65rem);
    font-weight: 780;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.brokerage-card__text {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgb(255 255 255 / 78%);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
}

.brokerage-card__list {
    display: grid;
    margin: 0 0 36px;
    padding: 0;
    gap: 14px;
    list-style: none;
}

.brokerage-card__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgb(255 255 255 / 92%);
    font-weight: 600;
}

.brokerage-card__list i {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #148bd1;
    font-size: .72rem;
    box-shadow: 0 7px 18px rgb(20 139 209 / 28%);
}

.brokerage-card__content .btn {
    width: fit-content;
    min-height: 58px;
    padding: 15px 22px;
    border: 1px solid rgb(255 255 255 / 14%);
    background: #1389c9;
    box-shadow: 0 13px 30px rgb(0 0 0 / 18%);
}

.brokerage-card__content .btn:hover {
    background: #20a0e5;
}

.brokerage-card__visual {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #bfd9e8;
}

.brokerage-card__visual::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, rgb(6 26 43 / 28%), transparent 28%),
        linear-gradient(180deg, transparent 70%, rgb(6 26 43 / 16%));
}

.brokerage-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% center;
    transition: transform 1400ms cubic-bezier(.2, .7, .2, 1);
    will-change: auto;
}

.brokerage-card:hover .brokerage-card__visual img {
    transform: scale(1.035);
}

@media (max-width: 1050px) {
    .brokerage-section {
        padding: 55px 0 95px;
    }

    .brokerage-card {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .brokerage-card__visual {
        min-height: 440px;
    }

    .brokerage-card__visual::after {
        background: linear-gradient(180deg, rgb(6 26 43 / 18%), transparent 30%);
    }
}

@media (min-width: 700px) and (max-width: 1050px) and (max-height: 600px) and (orientation: landscape) {
    .brokerage-card__visual {
        height: 230px;
        min-height: 230px;
    }

    .brokerage-card__visual img {
        object-position: 38% 24%;
    }
}

@media (max-width: 767px) {
    .brokerage-section {
        padding: 45px 0 72px;
    }

    .brokerage-card {
        border-radius: 19px;
    }

    .brokerage-card__content {
        padding: 40px 25px;
    }

    .brokerage-card__visual {
        min-height: 300px;
    }

    .brokerage-card__content .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .service-card,
    .service-card::before,
    .service-card::after,
    .service-card__icon,
    .service-card__link,
    .service-card__link::after,
    .service-card__link i,
    .service-card__media img,
    .brokerage-card__visual img,
    .property-card {
        transition: none;
    }

    .service-card:hover,
    .property-card:hover {
        transform: none;
    }
}
