/*********************************************************************
 * C:/Apache24/sites/apptemplate/v1/Business/Modules/CustomerSpace/Assets/css/customer-space-public.css
 * @title 🎨 Styles de l’espace client et de ses rendez-vous
 * @description Habille l’accès passwordless, les rendez-vous personnels et l’historique client avec une interface compacte et responsive.
 *********************************************************************/

.customer-space-access,
.customer-space-home {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 96px;
}

.customer-space-access {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 230px);
}

.customer-space-access__card {
    width: min(100%, 620px);
    padding: 42px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.customer-space-access__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: #f2f5f4;
    color: #17211d;
    font-size: 18px;
}

.customer-space-access__eyebrow,
.customer-space-home__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #68736e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.customer-space-access h1,
.customer-space-home h1 {
    margin: 0;
    color: #111814;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.customer-space-access__lead,
.customer-space-home__hero > p {
    margin: 16px 0 0;
    color: #65706b;
    font-size: 15px;
    line-height: 1.75;
}

.customer-space-access__form {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.customer-space-access__form label {
    color: #26312c;
    font-size: 13px;
    font-weight: 700;
}

.customer-space-access__field {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #dfe5e2;
    border-radius: 16px;
    background: #fff;
}

.customer-space-access__field:focus-within {
    border-color: #78847e;
    box-shadow: 0 0 0 3px rgba(73, 88, 80, .08);
}

.customer-space-access__field i {
    color: #88928d;
}

.customer-space-access__field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111814;
    font: inherit;
}

.customer-space-access__form button,
.customer-space-home__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    border: 0;
    border-radius: 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.customer-space-access__form button,
.customer-space-home__actions .is-primary {
    margin-top: 4px;
    background: #17211d;
    color: #fff;
}

.customer-space-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
}

.customer-space-message.is-success {
    background: #f0f8f3;
    color: #245a38;
}

.customer-space-message.is-error {
    background: #fff3f2;
    color: #8b322c;
}

.customer-space-access__reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 20px;
    color: #7b8580;
    font-size: 11px;
    font-weight: 650;
}

.customer-space-access__reassurance span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.customer-space-home__hero {
    padding: 42px;
    border-radius: 28px;
    background: #f4f6f5;
}

.customer-space-home__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.customer-space-home__actions a {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #d9dfdc;
    color: #26312c;
    background: #fff;
}

.customer-space-home__promise {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.customer-space-home__promise > div {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid #e6eae8;
    border-radius: 20px;
    background: #fff;
}

.customer-space-home__promise i {
    color: #6d7872;
    font-size: 17px;
}

.customer-space-home__promise strong {
    color: #17211d;
    font-size: 14px;
}

.customer-space-home__promise span {
    color: #7b8580;
    font-size: 12px;
    line-height: 1.55;
}



.customer-space-section {
    margin-top: 34px;
}

.customer-space-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.customer-space-section__head span {
    display: block;
    margin-bottom: 5px;
    color: #7b8580;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.customer-space-section__head h2 {
    margin: 0;
    color: #17211d;
    font-size: clamp(21px, 2.4vw, 28px);
    line-height: 1.15;
    letter-spacing: -.03em;
}

.customer-space-section__head small {
    color: #7b8580;
    font-size: 12px;
    font-weight: 650;
}

.customer-space-booking-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 390px);
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.customer-space-booking-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    min-height: 210px;
    padding: 20px;
    border: 1px solid #e4e9e6;
    border-radius: 22px;
    background: #fff;
    scroll-snap-align: start;
}

.customer-space-booking-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: start;
    width: 62px;
    min-height: 66px;
    border-radius: 18px;
    background: #f2f5f4;
    color: #17211d;
}

.customer-space-booking-card__date strong {
    font-size: 22px;
    line-height: 1;
}

.customer-space-booking-card__date span {
    margin-top: 5px;
    color: #6f7a74;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
}

.customer-space-booking-card__body {
    min-width: 0;
}

.customer-space-booking-card__body h3 {
    margin: 12px 0 4px;
    color: #17211d;
    font-size: 17px;
    line-height: 1.25;
}

.customer-space-booking-card__body > p {
    margin: 0;
    color: #68736e;
    font-size: 12px;
    line-height: 1.5;
}

.customer-space-booking-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f0f2f1;
    color: #6c7771;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
}

.customer-space-booking-status.is-confirmed {
    background: #edf7f0;
    color: #27603a;
}

.customer-space-booking-status.is-pending,
.customer-space-booking-status.is-warning {
    background: #fff7e8;
    color: #885d17;
}

.customer-space-booking-status.is-completed {
    background: #eef2f8;
    color: #465870;
}

.customer-space-booking-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    color: #6d7872;
    font-size: 11px;
    font-weight: 650;
}

.customer-space-booking-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.customer-space-booking-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #26312c;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.customer-space-empty {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px dashed #dce3df;
    border-radius: 20px;
    background: #fafbfa;
}

.customer-space-empty > i {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f0f3f1;
    color: #6f7a74;
}

.customer-space-empty strong {
    color: #26312c;
    font-size: 13px;
}

.customer-space-empty p {
    margin: 4px 0 0;
    color: #7b8580;
    font-size: 12px;
    line-height: 1.55;
}

.customer-space-empty.is-compact {
    padding: 18px 20px;
}

.customer-space-history {
    overflow: hidden;
    border: 1px solid #e6eae8;
    border-radius: 20px;
    background: #fff;
}

.customer-space-history article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf0ee;
}

.customer-space-history article:last-child {
    border-bottom: 0;
}

.customer-space-history article > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.customer-space-history article > div:last-child {
    justify-items: end;
    text-align: right;
}

.customer-space-history strong {
    color: #26312c;
    font-size: 13px;
}

.customer-space-history span {
    color: #7b8580;
    font-size: 11px;
}

.customer-space-section--history + .customer-space-home__promise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
}

@media (max-width: 760px) {
    .customer-space-access,
    .customer-space-home {
        width: min(100% - 20px, 1120px);
        padding: 36px 0 64px;
    }

    .customer-space-access__card,
    .customer-space-home__hero {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .customer-space-home__promise,
    .customer-space-section--history + .customer-space-home__promise {
        grid-template-columns: 1fr;
    }

    .customer-space-booking-rail {
        grid-auto-columns: minmax(280px, 88vw);
    }

    .customer-space-booking-card {
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 18px;
    }

    .customer-space-booking-card__date {
        width: 52px;
        min-height: 58px;
        border-radius: 15px;
    }

    .customer-space-history article {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-space-history article > div:last-child {
        justify-items: start;
        text-align: left;
    }
}

/* =========================================================
   🗓️ CUSTOMER-SPACE-1D — PROCHAINS RENDEZ-VOUS SUR L’ACCUEIL
   ========================================================= */

.marketplace-home-upcoming {
    width: min(1180px, calc(100% - 40px));
    margin: 22px auto 8px;
}

.marketplace-home-upcoming__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.marketplace-home-upcoming__head > div {
    min-width: 0;
}

.marketplace-home-upcoming__head span {
    display: block;
    margin-bottom: 3px;
    color: #6b746f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketplace-home-upcoming__head h2 {
    margin: 0;
    color: #17201c;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.marketplace-home-upcoming__head > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #1f2b25;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.marketplace-home-upcoming__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(310px, 380px);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    padding: 2px 2px 10px;
}

.marketplace-home-upcoming-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    min-height: 142px;
    padding: 16px;
    border: 1px solid rgba(28, 49, 39, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(31, 43, 37, 0.05);
    scroll-snap-align: start;
}

.marketplace-home-upcoming-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: start;
    width: 62px;
    min-height: 68px;
    border-radius: 17px;
    background: #f3f7f4;
    color: #1f2b25;
}

.marketplace-home-upcoming-card__date strong {
    font-size: 1.35rem;
    line-height: 1;
}

.marketplace-home-upcoming-card__date span {
    margin-top: 6px;
    color: #6f7a74;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.marketplace-home-upcoming-card__body {
    min-width: 0;
}

.marketplace-home-upcoming-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.marketplace-home-upcoming-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f4f0df;
    color: #7b6824;
    font-size: 0.67rem;
    font-weight: 800;
}

.marketplace-home-upcoming-card__time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #66716b;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.marketplace-home-upcoming-card__professional {
    display: block;
    overflow: hidden;
    color: #17201c;
    font-size: 0.95rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-home-upcoming-card__body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 10px;
    color: #6d7772;
    font-size: 0.79rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.marketplace-home-upcoming-card__body > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1f2b25;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.marketplace-home-upcoming-card__body > a:hover,
.marketplace-home-upcoming__head > a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .marketplace-home-upcoming {
        width: min(100% - 24px, 1180px);
        margin-top: 16px;
    }

    .marketplace-home-upcoming__head {
        align-items: center;
    }

    .marketplace-home-upcoming__head > a {
        font-size: 0;
    }

    .marketplace-home-upcoming__head > a i {
        font-size: 0.86rem;
    }

    .marketplace-home-upcoming__rail {
        grid-auto-columns: min(86vw, 340px);
        gap: 10px;
        margin-right: -12px;
        padding-right: 12px;
    }

    .marketplace-home-upcoming-card {
        min-height: 136px;
        border-radius: 18px;
    }
}

/* =========================================================
   🤝 CUSTOMER-SPACE-1E — VOS PROFESSIONNELS
   ========================================================= */

.marketplace-home-known {
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto 34px;
}

.marketplace-home-known__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.marketplace-home-known__head > div {
    min-width: 0;
}

.marketplace-home-known__head span {
    display: block;
    margin-bottom: 3px;
    color: #6b746f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketplace-home-known__head h2 {
    margin: 0;
    color: #17201c;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.marketplace-home-known__head p {
    margin: 6px 0 0;
    color: #77807b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.marketplace-home-known__head > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #1f2b25;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.marketplace-home-known__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 355px);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    padding: 2px 2px 10px;
}

.marketplace-home-known-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    min-height: 150px;
    padding: 14px;
    border: 1px solid rgba(28, 49, 39, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(31, 43, 37, 0.05);
    scroll-snap-align: start;
}

.marketplace-home-known-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 96px;
    overflow: hidden;
    border-radius: 18px;
    background: #eaf2ed;
    color: #496258;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

.marketplace-home-known-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-home-known-card__body {
    min-width: 0;
}

.marketplace-home-known-card__body > small {
    display: block;
    margin-bottom: 4px;
    color: #789084;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.marketplace-home-known-card__body > strong {
    display: block;
    overflow: hidden;
    color: #17201c;
    font-size: 0.95rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-home-known-card__body > p {
    overflow: hidden;
    margin: 3px 0 4px;
    color: #69736e;
    font-size: 0.77rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-home-known-card__body > span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #79827d;
    font-size: 0.70rem;
}

.marketplace-home-known-card__body > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.marketplace-home-known-card__body > div a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(29, 45, 37, 0.12);
    border-radius: 10px;
    color: #1f2b25;
    font-size: 0.70rem;
    font-weight: 800;
    text-decoration: none;
}

.marketplace-home-known-card__body > div a.is-primary {
    border-color: #1f2b25;
    background: #1f2b25;
    color: #ffffff;
}

.marketplace-home-known__head > a:hover,
.marketplace-home-known-card__body > div a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .marketplace-home-known {
        width: min(100% - 24px, 1180px);
        margin-top: 18px;
        margin-bottom: 26px;
    }

    .marketplace-home-known__head {
        align-items: center;
    }

    .marketplace-home-known__head p {
        max-width: 270px;
    }

    .marketplace-home-known__head > a {
        font-size: 0;
    }

    .marketplace-home-known__head > a i {
        font-size: 0.86rem;
    }

    .marketplace-home-known__rail {
        grid-auto-columns: min(88vw, 335px);
        gap: 10px;
        margin-right: -12px;
        padding-right: 12px;
    }

    .marketplace-home-known-card {
        grid-template-columns: 74px minmax(0, 1fr);
        min-height: 144px;
    }

    .marketplace-home-known-card__avatar {
        width: 74px;
        height: 88px;
    }
}

