/* ==========================================================================
   Salon provider page V2 — secondary sections (opening hours) + overlays:
   sticky book bar, full-screen reel viewer, animations. Split from provider-page-v2.css (file-size rule);
   both sheets always load together on the V2 page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Opening hours (Salon tab collapsible card)
   -------------------------------------------------------------------------- */
.pp2-hours {
    padding: 20px 20px 4px;
}

.pp2-hours__card {
    border-radius: 18px;
    background: #F7F5F3;
    overflow: hidden;
}

.pp2-hours__toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    border: 0;
    background: none;
    padding: 16px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.pp2-hours__today {
    flex: 1;
    font-size: 15px;
    font-weight: 800;
    color: var(--pp2-pink);
}

.pp2-hours__today-time {
    color: var(--pp2-body);
    font-weight: 700;
}

.pp2-hours__chevron {
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.pp2-hours.is-open .pp2-hours__chevron {
    transform: rotate(180deg);
}

.pp2-hours__list {
    padding: 0 16px 14px;
}

.pp2-hours__row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-top: 1px solid var(--pp2-border-2);
    font-size: 14px;
}

.pp2-hours__day,
.pp2-hours__time {
    color: var(--pp2-body);
}

.pp2-hours__row--today .pp2-hours__day,
.pp2-hours__row--today .pp2-hours__time {
    color: var(--pp2-text);
    font-weight: 800;
}

.pp2-hours__row--closed .pp2-hours__day,
.pp2-hours__row--closed .pp2-hours__time {
    color: var(--pp2-disabled-text);
}

.pp2-hours__address {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--pp2-muted);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   À-propos card (Salon tab)
   -------------------------------------------------------------------------- */
.pp2-about {
    padding: 16px 20px 4px;
}

.pp2-about__card {
    border-radius: 18px;
    border: 1px solid var(--pp2-border-5);
    padding: 20px;
}

.pp2-about__title {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
}

.pp2-about__underline {
    width: 34px;
    height: 2px;
    background: var(--pp2-pink);
    margin: 8px auto 14px;
    border-radius: 2px;
}

.pp2-about__text {
    color: var(--pp2-body);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Conditions du salon card (Salon tab)
   -------------------------------------------------------------------------- */
.pp2-conditions {
    padding: 20px 20px 4px;
}

.pp2-conditions__card {
    border-radius: 18px;
    border: 1px solid var(--pp2-border-5);
    background: #fff;
    padding: 20px;
}

.pp2-conditions__title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.pp2-conditions__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.pp2-conditions__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--pp2-body);
    font-size: 13.5px;
    line-height: 1.5;
}

.pp2-conditions__item svg {
    flex: 0 0 auto;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Vidéos tab grid
   -------------------------------------------------------------------------- */
.pp2-videos {
    padding: 20px;
}

.pp2-videos__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 760px) {
    .pp2-videos__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   "Voir les N avis" + reviews modal
   -------------------------------------------------------------------------- */
.pp2-reviews__all {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 14px;
    padding: 14px;
    border-radius: 100px;
    border: 1.5px solid var(--pp2-border-6);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: var(--pp2-text);
    cursor: pointer;
}

.pp2-reviews__all:active {
    background: var(--pp2-chip-fill);
}

.pp2-reviews-modal {
    position: fixed;
    inset: 0;
    z-index: 160; /* above the mobile bottom nav (feed-nav z-index: 150) */
    display: flex;
    flex-direction: column;
    background: #fff;
    animation: pp2ModalUp 0.28s ease-out;
}

/* display:flex above would defeat the hidden attribute — keep it authoritative */
.pp2-reviews-modal[hidden] {
    display: none;
}

@keyframes pp2ModalUp {
    from {
        transform: translateY(14px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pp2-reviews-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--pp2-border-5);
}

.pp2-reviews-modal__title {
    font-size: 22px;
    font-weight: 800;
}

.pp2-reviews-modal__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--pp2-pink-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pp2-reviews-modal__close:active {
    transform: scale(0.9);
}

.pp2-reviews-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.pp2-reviews-modal__score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.pp2-reviews-modal__score-value {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.pp2-reviews-modal__score-count {
    color: var(--pp2-pink-dark);
    font-size: 15px;
    font-weight: 700;
}

.pp2-reviews-modal__item {
    padding: 20px 0;
    border-top: 1px solid var(--pp2-border-3);
}

.pp2-reviews-modal__item:first-child {
    border-top: 0;
}

.pp2-reviews-modal__item-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp2-reviews-modal__avatar {
    width: 44px;
    height: 44px;
    font-size: 15px;
}

.pp2-reviews-modal__name {
    font-size: 15px;
    font-weight: 800;
}

.pp2-reviews-modal__text {
    color: var(--pp2-body);
    font-size: 14px;
    line-height: 1.55;
    margin: 12px 0 0;
}

@media (min-width: 760px) {
    .pp2-reviews-modal {
        max-width: 560px;
        left: 50%;
        transform: translateX(-50%);
        top: 5vh;
        bottom: 5vh;
        border-radius: 24px;
        box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    }
}

/* --------------------------------------------------------------------------
   Desktop info bar (>= 1024px) — the salon facts that used to sit in the
   full-height rail, as a compact strip under the hero. Every cell is optional:
   the strip splits the width between whichever ones the salon has.
   -------------------------------------------------------------------------- */
.pp2-infobar {
    display: none;
}

.pp2-infobar__cell {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--pp2-border-warm);
    border-radius: 16px;
    background: var(--pp2-surface-warm);
}

.pp2-infobar__icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.pp2-infobar__body {
    min-width: 0;
}

.pp2-infobar__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--pp2-muted);
}

.pp2-infobar__value {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--pp2-text);
    margin-top: 3px;
    /* Long addresses and conditions stay on two lines so the cells keep an
       even height across the strip. */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.pp2-page .pp2-infobar__link {
    appearance: none;
    display: inline-block;
    background: none;
    border: 0;
    padding: 5px 0 0;
    margin: 0;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pp2-pink);
    text-decoration: underline;
    cursor: pointer;
}

.pp2-page .pp2-infobar__link:hover {
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Photo lightbox (desktop mosaic + "Voir les N photos")
   -------------------------------------------------------------------------- */
.pp2-photos {
    position: fixed;
    inset: 0;
    z-index: 170; /* above the reel viewer's 160 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 72px;
    background: rgba(12, 8, 10, 0.92);
}

.pp2-photos__frame {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
}

.pp2-photos__img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 12px;
}

.pp2-photos__close,
.pp2-photos__nav {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pp2-photos__close:hover,
.pp2-photos__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.pp2-photos__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
}

.pp2-photos__nav {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
}

.pp2-photos__counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   Reel viewer (full-screen overlay)
   -------------------------------------------------------------------------- */
.pp2-reel-viewer {
    position: fixed;
    inset: 0;
    z-index: 160; /* above the mobile bottom nav (feed-nav z-index: 150) */
    background: #000;
    display: none;
}

.pp2-reel-viewer.is-open {
    display: block;
}

@media (min-width: 481px) {
    .pp2-reel-viewer {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 480px;
    }
}

.pp2-reel-viewer__media,
.pp2-reel-viewer__media video,
.pp2-reel-viewer__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp2-reel-viewer__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.85) 100%);
}

.pp2-reel-viewer__dots {
    position: absolute;
    top: 12px;
    left: 16px;
    /* Stops short of the top-right mute button. Past ~15 reels this row holds
       the position counter, which is pushed right by margin-left:auto and would
       otherwise land underneath that button. */
    right: 64px;
    display: flex;
    gap: 5px;
}

.pp2-reel-viewer__dot {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
}

.pp2-reel-viewer__dot.is-active {
    background: #fff;
}

.pp2-reel-viewer__count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 10px;
    border-radius: 12px;
}

.pp2-reel-viewer__close {
    position: absolute;
    top: 26px;
    left: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.pp2-reel-viewer__close:active {
    transform: scale(0.9);
}

/* Mirrors the close button on the opposite corner. */
.pp2-reel-viewer__mute {
    position: absolute;
    top: 26px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.pp2-reel-viewer__mute:active {
    transform: scale(0.9);
}

.pp2-reel-viewer__tap {
    position: absolute;
    top: 90px;
    bottom: 170px;
    width: 34%;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 2;
}

.pp2-reel-viewer__tap--prev {
    left: 0;
}

.pp2-reel-viewer__tap--next {
    right: 0;
}

.pp2-reel-viewer__rail {
    position: absolute;
    right: 14px;
    bottom: 180px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 3;
}

.pp2-reel-viewer__rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
}

.pp2-reel-viewer__footer {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 24px;
    z-index: 3;
}

.pp2-reel-viewer__salon {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.pp2-reel-viewer__salon-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #fff;
}

.pp2-reel-viewer__salon-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp2-reel-viewer__salon-name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pp2-reel-viewer__caption {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 82%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.pp2-reel-viewer__book {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pp2-reel-viewer__book:active {
    transform: scale(0.98);
}

.pp2-reel-viewer__book > span:first-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pp2-reel-viewer__book-service {
    font-size: 15px;
    font-weight: 800;
    color: var(--pp2-text);
}

.pp2-reel-viewer__book-meta {
    font-size: 12.5px;
    color: var(--pp2-muted);
    margin-top: 2px;
}

.pp2-reel-viewer__book-btn {
    flex: 0 0 auto;
    padding: 11px 20px;
    border-radius: 100px;
    background: var(--pp2-pink);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes pp2Pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.55;
    }
}

/* Mobile: keep the social-proof block tight so services stay the star. */
@media (max-width: 899px) {
    .pp2-reviews__subtext,
    .pp2-review-card__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

/* --------------------------------------------------------------------------
   Responsive: tablet app-card (760-1023px) and desktop two-pane (>= 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 760px) and (max-width: 1023px) {
    body {
        background: linear-gradient(135deg, #F6ECEE 0%, #EEE0E2 100%);
    }

    .pp2-page {
        max-width: 460px;
        margin: 32px auto;
        border-radius: 34px;
        overflow: hidden;
        box-shadow: 0 30px 90px rgba(120, 40, 60, 0.2);
        min-height: 0;
    }

}

@media (min-width: 1024px) {
    /* One full-width column: the page uses the screen instead of leaving a
       phone-width strip in the middle. Salon facts live in .pp2-infobar, and
       the content sections below fan out into grids. */
    .pp2-page {
        /* Fills the screen next to the nav rail; the cap only kicks in on very
           wide monitors, where a full-bleed catalogue stops being readable. */
        max-width: 1760px;
        box-shadow: 0 0 0 1px var(--pp2-border-3);
    }

    /* Sections keep their own 20px padding; the column adds the rest, so the
       gutter is 44px and the hero (inset by 20px) lines up with the text. */
    .pp2-scroll {
        padding: 0 24px 56px;
    }

    .pp2-tabs {
        z-index: 4;
        padding: 0 44px;
    }

    /* ---- Hero: photo mosaic ---- */
    .pp2-hero {
        height: 430px;
        margin: 20px 20px 0;
    }

    .pp2-hero__main {
        border-radius: 20px;
        overflow: hidden;
    }

    .pp2-hero--gallery {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 10px;
        background: none;
    }

    .pp2-hero__tiles {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        min-height: 0;
    }

    /* Two photos stack in a single column beside the hero; four fill a 2x2. */
    .pp2-hero--gallery-2 .pp2-hero__tiles {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp2-hero__tile {
        position: relative;
        display: block;
        padding: 0;
        border: 0;
        min-height: 0;
        overflow: hidden;
        border-radius: 16px;
        background: var(--pp2-chip-fill);
        cursor: pointer;
    }

    .pp2-hero__tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

    .pp2-hero__tile:hover img {
        transform: scale(1.05);
    }

    .pp2-hero__gallery-btn {
        position: absolute;
        right: 16px;
        bottom: 16px;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 15px;
        border: 0;
        border-radius: 100px;
        background: rgba(255, 255, 255, 0.94);
        color: var(--pp2-text);
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    }

    .pp2-hero__gallery-btn:hover {
        background: #fff;
    }

    /* ---- Info bar ---- */
    .pp2-infobar {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 12px;
        margin: 16px 20px 0;
    }

    /* A directory salon can end up with every cell hidden (no address, no
       conditions, no published hours) — then the strip must not reserve
       margin either. Older browsers without :has() just keep the 16px. */
    .pp2-infobar:not(:has(.pp2-infobar__cell:not([hidden]))) {
        margin: 0;
    }

    /* ---- Prestations: grids instead of one long phone column ---- */
    .pp2-featured {
        display: grid;
        /* auto-fit, not a fixed count: the shelf holds 4-6 services, and the
           cards should stretch rather than leave an empty track. */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 16px;
        overflow: visible;
    }

    .pp2-featured-card {
        width: auto;
    }

    /* Enough room to show every filter at once — no horizontal scroll. */
    .pp2-chips {
        flex-wrap: wrap;
        overflow: visible;
    }

    /* Collapsed categories pair up; the open one takes the full width and
       lays its services out in two columns, so expanding never leaves a hole
       next to it. */
    .pp2-menu__groups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 18px;
        align-items: start;
        padding: 0 20px;
    }

    .pp2-cat.is-open {
        grid-column: 1 / -1;
    }

    .pp2-cat.is-open .pp2-cat__body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 18px;
        align-items: start;
    }

    /* Desktop rows are ~2.5x wider than the phone column — the thumbnail can
       carry its weight instead of reading as a favicon. */
    .pp2-service-row__media {
        width: 84px;
        height: 84px;
    }

    .pp2-service-row__img {
        border-radius: 14px;
    }

    .pp2-videos__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* ---- Salon tab: two columns, reviews across the top ---- */
    [data-pp2-tab-panel="salon"] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        column-gap: 8px;
    }

    [data-pp2-tab-panel="salon"] > .pp2-reviews {
        grid-column: 1 / -1;
    }

    /* Only one review is server-rendered today, so auto-fit keeps it full
       width instead of stranding it in a third of the row. */
    .pp2-reviews__list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 12px;
    }

    .pp2-reviews__all {
        width: auto;
        min-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ---- Offrir: a gift card doesn't need 1280px ---- */
    .pp2-gift__card {
        max-width: 640px;
    }
}

/* Wide desktops: more columns rather than longer rows. */
@media (min-width: 1500px) {
    .pp2-hero {
        height: 480px;
    }

    .pp2-menu__groups,
    .pp2-cat.is-open .pp2-cat__body {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pp2-videos__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
