
/* ==========================================================
   BABYLLONE — Pastilles de localisation + visionneuse "Reels"
   ========================================================== */

/* ----- Bloc d'introduction et champ de recherche ----- */
.lbc-locfeed {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.lbc-locfeed-title {
    position: relative;
    max-width: 100%;
    margin: 0 0 26px;
    padding: 0 0 16px;
    color: var(--color-text, #1d1d1d);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lbc-locfeed-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-accent, #e87684);
    content: '';
}

.lbc-locfeed-seo-heading {
    margin: 16px 0 24px;
    color: var(--color-muted, #767676);
    font-size: 1.35rem;
    line-height: 1.45;
}

.lbc-locfeed-intro,
.lbc-loc-group-title {
    display: none;
}

.lbc-locfeed-intro h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--color-text, #1d1d1d);
}

.lbc-locfeed-intro p {
    color: var(--color-muted, #767676);
    margin-bottom: 18px;
    max-width: 60ch;
}

.lbc-locfeed-search {
    position: relative;
    margin-bottom: 26px;
}

.lbc-locfeed-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted, #767676);
}

.lbc-locfeed-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 999px;
    border: 1px solid var(--color-border, #e2e2e2);
    background: var(--color-surface, #fff);
    color: var(--color-text, #1d1d1d);
    font-size: 1rem;
    transition: border-color var(--motion-duration) var(--motion-ease), background var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}

.lbc-locfeed-search input:focus {
    outline: 3px solid rgba(232, 118, 132, 0.28);
    outline-offset: 1px;
}

#lbcLocSearch::-webkit-search-cancel-button {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cg stroke='%23f8fafc' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 4L12 12M12 4L4 12'/%3E%3C/g%3E%3C/svg%3E") center/12px 12px no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    margin-left: 6px;
    transition: filter 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

#lbcLocSearch::-webkit-search-cancel-button:hover,
#lbcLocSearch::-webkit-search-cancel-button:focus-visible {
    background-color: rgba(15, 23, 42, 1);
    filter: brightness(1.08);
    transform: scale(1.04);
}

/* ----- Groupes de localisations ----- */
.lbc-loc-group {
    margin-bottom: 14px;
}

.lbc-loc-group-title {
    font-size: 0.95rem;
    color: var(--color-muted, #767676);
    font-weight: 700;
    margin-bottom: 10px;
    padding-left: 2px;
}

.lbc-pill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.lbc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--color-border, #e2e2e2);
    background: var(--color-surface, #fff);
    color: var(--color-text, #1d1d1d);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.lbc-pill:hover:not([disabled]),
.lbc-pill:focus-visible:not([disabled]) {
    background: rgba(232, 118, 132, 0.12);
    border-color: rgba(232, 118, 132, 0.36);
    transform: translateY(-1px);
}

.lbc-pill.is-active {
    background: #e87684;
    border-color: #e87684;
    color: #fff;
}

.lbc-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 800;
}

.lbc-pill.is-active .lbc-pill-count {
    background: rgba(255, 255, 255, 0.28);
}

.lbc-pill.is-location-nearby {
    background: var(--color-accent, #e87684);
    border-color: var(--color-accent, #e87684);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(232, 118, 132, 0.16), 0 10px 24px rgba(232, 118, 132, 0.2);
    animation: lbcNearbyPulse 2.2s ease-in-out infinite;
}

.lbc-pill.is-location-nearby .lbc-pill-count {
    background: rgba(255, 255, 255, 0.28);
}

.lbc-pill.is-location-nearby[disabled] {
    opacity: 1;
}

@keyframes lbcNearbyPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(232, 118, 132, 0.14), 0 10px 24px rgba(232, 118, 132, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(232, 118, 132, 0.06), 0 12px 28px rgba(232, 118, 132, 0.24); }
}

@media (prefers-reduced-motion: reduce) {
    .lbc-pill.is-location-nearby {
        animation: none;
    }
}

.lbc-pill[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.lbc-loc-group-collapsible .lbc-pill-extra {
    display: none;
}

.lbc-loc-group-collapsible.show-all .lbc-pill-extra {
    display: inline-flex;
}

.lbc-loc-group-toggle {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px dashed var(--color-border, #e2e2e2);
    background: transparent;
    color: #e87684;
    font-weight: 700;
    cursor: pointer;
}

.lbc-loc-group-toggle:hover,
.lbc-loc-group-toggle:focus-visible {
    background: rgba(232, 118, 132, 0.08);
}

/* ==========================================================
   VISIONNEUSE PLEIN ÉCRAN "REELS"
   ========================================================== */
.lbc-reels {
    --lbc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --lbc-ease-in: cubic-bezier(0.4, 0, 1, 1);
    --lbc-dur-fast: 0.18s;
    --lbc-dur-med: 0.32s;
    --lbc-dur-feed: 0.4s;
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: #000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity var(--lbc-dur-med) var(--lbc-ease-out);
    isolation: isolate;
}

body.lbc-reels-open #scrollTopBtn {
    visibility: hidden;
    pointer-events: none;
}

.lbc-reels.is-open {
    display: flex;
    opacity: 1;
}

.lbc-reels.is-entering {
    animation: lbcReelsShellIn var(--lbc-dur-med) var(--lbc-ease-out) forwards;
}

.lbc-reels.is-leaving {
    animation: lbcReelsShellOut 0.22s var(--lbc-ease-in) forwards;
}

@keyframes lbcReelsShellIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lbcReelsShellOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

body.lbc-reels-open {
    overflow: hidden;
}

.lbc-reels-close {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    z-index: 20;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform var(--lbc-dur-fast) var(--lbc-ease-out),
        background-color var(--lbc-dur-fast) ease;
}

.lbc-reels-close:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: scale(1.06);
}

.lbc-reels-close:active {
    transform: scale(0.94);
}

.lbc-reels-header {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    left: 16px;
    right: 70px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.lbc-reels-loc-name {
    font-weight: 800;
    font-size: 1.05rem;
}

.lbc-reels-position {
    font-size: 0.8rem;
    opacity: 0.85;
    transition: opacity var(--lbc-dur-fast) ease;
}

.lbc-reels-position.lbc-meta-flash {
    animation: lbcMetaFlash 0.32s var(--lbc-ease-out) both;
}

@keyframes lbcMetaFlash {
    from { opacity: 0; transform: translate3d(0, -4px, 0); }
    to { opacity: 0.85; transform: translate3d(0, 0, 0); }
}

.lbc-reels-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.lbc-reels-stage.lbc-reels-stage-panel-open {
    touch-action: none;
}

.lbc-reels-stage.lbc-reels-stage-panel-open .lbc-reels-panel-scroll {
    touch-action: pan-y;
}

.lbc-reels-media {
    position: absolute;
    inset: 0;
    opacity: 1;
    background: #080a10;
    will-change: transform, opacity;
}

.lbc-reels-media-badges {
    position: absolute;
    top: max(68px, calc(env(safe-area-inset-top, 0px) + 56px));
    left: 12px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(82%, 340px);
    max-width: calc(100% - 24px);
    pointer-events: none;
}

.lbc-reels-badge-account,
.lbc-reels-badge-boosts {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.lbc-reels-media-badges .badge_index,
.lbc-reels-media-badges .icon {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    padding: 5px 10px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    animation: none;
}

.lbc-reels-media-badges .urgent {
    background-color: red;
    animation: lbcReelsBadgeBlink 1s infinite;
}

.lbc-reels-media-badges .top { background-color: #2e7d32; }

.lbc-reels-media-badges .premium { background-color: #6a1b9a; }

.lbc-reels-media-badges .vip { background-color: #b8860b; }

.lbc-reels-media-badges .icon {
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
    background: var(--color-surface, #fff);
    color: var(--color-text, #1d1d1d);
}

@keyframes lbcReelsBadgeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.lbc-reels-media.lbc-enter-initial {
    animation: lbcFeedEnterInitial var(--lbc-dur-feed) var(--lbc-ease-out) both;
}

.lbc-reels-media.lbc-enter-up {
    animation: lbcFeedEnterUp var(--lbc-dur-feed) var(--lbc-ease-out) both;
}

.lbc-reels-media.lbc-enter-down {
    animation: lbcFeedEnterDown var(--lbc-dur-feed) var(--lbc-ease-out) both;
}

@keyframes lbcFeedEnterInitial {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes lbcFeedEnterUp {
    from {
        opacity: 0;
        transform: translate3d(0, 12%, 0) scale(1.02);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes lbcFeedEnterDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10%, 0) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.lbc-reels-photo,
.lbc-reels-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #080a10;
}

.lbc-reels-photo-toggle {
    position: absolute;
    top: max(64px, calc(env(safe-area-inset-top, 0px) + 54px));
    right: 16px;
    z-index: 17;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(13, 13, 16, 0.56);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.2s var(--lbc-ease-out), background-color 0.2s ease;
}

.lbc-reels-photo-toggle:hover,
.lbc-reels-photo-toggle:focus-visible {
    background: rgba(232, 118, 132, 0.88);
    transform: scale(1.06);
}

.lbc-reels-photo-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.lbc-reels-photo-toggle:active {
    transform: scale(0.94);
}

.lbc-reels-photo.is-photo-loading {
    opacity: 0;
}

.lbc-reels-photo-loader {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 16, 0.28);
    pointer-events: none;
}

.lbc-reels-photo-loader[hidden] {
    display: none;
}

.lbc-reels-photo-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lbcPhotoSpinner 0.75s linear infinite;
}

@keyframes lbcPhotoSpinner {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .lbc-reels-photo-spinner {
        animation: none;
    }
}

.lbc-reels-video {
    pointer-events: none;
}

.lbc-reels-photo.lbc-photo-enter-right {
    animation: lbcPhotoEnterRight 0.68s var(--lbc-ease-out) both;
}

.lbc-reels-photo.lbc-photo-enter-left {
    animation: lbcPhotoEnterLeft 0.68s var(--lbc-ease-out) both;
}

.lbc-reels-photo.is-slideshow-playing {
    animation: lbcPhotoKenBurns 5s linear both;
}

.lbc-reels-photo.lbc-photo-enter-right.is-slideshow-playing {
    animation: lbcPhotoEnterRight 0.68s var(--lbc-ease-out) both,
        lbcPhotoKenBurns 5s linear 0.68s both;
}

.lbc-reels-photo.lbc-photo-enter-left.is-slideshow-playing {
    animation: lbcPhotoEnterLeft 0.68s var(--lbc-ease-out) both,
        lbcPhotoKenBurns 5s linear 0.68s both;
}

@keyframes lbcPhotoEnterRight {
    from {
        opacity: 0.2;
        filter: blur(8px);
        transform: translate3d(4%, 0, 0) scale(1.035);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes lbcPhotoEnterLeft {
    from {
        opacity: 0.2;
        filter: blur(8px);
        transform: translate3d(-4%, 0, 0) scale(1.035);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes lbcPhotoKenBurns {
    from { scale: 1; }
    to { scale: 1.045; }
}

.lbc-reels-dots.is-playing .lbc-reels-dot.is-active {
    overflow: hidden;
}

.lbc-reels-dots.is-playing .lbc-reels-dot.is-active::after {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #e87684;
    content: '';
    transform: scaleX(0);
    transform-origin: left center;
    animation: lbcPhotoProgress 5s linear both;
}

@keyframes lbcPhotoProgress {
    to { transform: scaleX(1); }
}

.lbc-reels-nav,
.lbc-reels-ad-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.92);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 16;
    opacity: 0.88;
    transition: transform var(--lbc-dur-fast) var(--lbc-ease-out),
        opacity var(--lbc-dur-fast) ease,
        background-color var(--lbc-dur-fast) ease;
}

.lbc-reels-nav:hover,
.lbc-reels-ad-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    background: rgba(0, 0, 0, 0.55);
}

.lbc-reels-nav:active,
.lbc-reels-ad-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.lbc-reels-nav-prev,
.lbc-reels-ad-nav-prev { left: 12px; }
.lbc-reels-nav-next,
.lbc-reels-ad-nav-next { right: 12px; }

.lbc-reels-ad-nav {
    display: none;
    z-index: 18;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (min-width: 720px) {
    .lbc-reels-ad-nav {
        display: inline-flex;
    }
}

.lbc-reels-mute-toggle {
    position: absolute;
    right: 12px;
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    z-index: 16;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--lbc-dur-fast) var(--lbc-ease-out),
        background-color var(--lbc-dur-fast) ease;
}

.lbc-reels-mute-toggle:hover {
    background: rgba(0, 0, 0, 0.6);
}

.lbc-reels-mute-toggle:active {
    transform: scale(0.92);
}

.lbc-reels-dots {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 6;
}

.lbc-reels-dot {
    flex: 1 1 auto;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transform: scaleY(1);
    transition: background-color var(--lbc-dur-fast) ease,
        transform var(--lbc-dur-fast) var(--lbc-ease-out);
}

.lbc-reels-dot.is-active {
    background: #fff;
    transform: scaleY(1.35);
}

.lbc-reels-backdrop {
    position: absolute;
    inset: 0;
    z-index: 10;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    pointer-events: none;
    cursor: default;
    transition: opacity 0.34s var(--lbc-ease-out);
    backdrop-filter: blur(0);
}

.lbc-reels-backdrop.is-visible {
    backdrop-filter: blur(2px);
}

.lbc-reels-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lbc-reels-hint {
    position: absolute;
    left: 50%;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.82rem;
    white-space: nowrap;
    animation: lbcHintPulse 2.2s ease-in-out infinite;
    z-index: 6;
}

.lbc-reels-hint-finger {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    color: #fff;
    font-size: 2rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
    animation: lbcReelsSwipeHint 1.7s ease-in-out infinite;
    pointer-events: none;
}

.lbc-reels-hint.is-hidden {
    display: none;
}

@keyframes lbcReelsSwipeHint {
    0% { opacity: 0; transform: translate(-50%, 16px); }
    16% { opacity: 1; }
    72% { opacity: 1; transform: translate(-50%, -72px); }
    100% { opacity: 0; transform: translate(-50%, -84px); }
}

@keyframes lbcHintPulse {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.9; }
    50% { transform: translateX(-50%) translateY(-6px); opacity: 1; }
}

/* ----- Panneau d'informations (façon Facebook Reels) ----- */
.lbc-reels-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 14;
    display: flex;
    flex-direction: column;
    background: var(--color-surface, #ffffff);
    color: var(--color-text, #1d1d1d);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 30px var(--color-shadow, rgba(0, 0, 0, 0.3));
    max-height: 82px;
    overflow: hidden;
    transition: box-shadow 0.38s var(--lbc-ease-out),
        opacity 0.25s ease;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.lbc-reels-panel.is-expanded {
    max-height: min(92vh, 92dvh);
    box-shadow: 0 -20px 48px var(--color-shadow, rgba(0, 0, 0, 0.38));
}

.lbc-reels-panel.lbc-panel-refresh .lbc-reels-panel-title {
    animation: lbcPanelTitleSwap 0.34s var(--lbc-ease-out) both;
}

@keyframes lbcPanelTitleSwap {
    from {
        opacity: 0;
        transform: translate3d(0, 6px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.lbc-reels-panel-handle {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 18px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.lbc-reels-panel-handle::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-border-muted, rgba(0, 0, 0, 0.18));
}

.lbc-reels-panel-title {
    flex: 1 1 auto;
    font-weight: 800;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text, #1d1d1d);
}

.lbc-reels-panel-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent-strong, #d94f64);
}

.lbc-reels-panel-cta i {
    transition: transform 0.3s var(--lbc-ease-out);
}

.lbc-reels-panel.is-expanded .lbc-reels-panel-cta i {
    transform: rotate(180deg);
}

.lbc-reels-panel:not(.is-expanded) .lbc-reels-panel-body {
    display: none;
}

.lbc-reels-panel.is-expanded .lbc-reels-panel-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.lbc-reels-section-label {
    font-size: 0.95rem;
    margin: 0 0 8px;
    color: var(--color-text, #1d1d1d);
}

.lbc-reels-panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px calc(32px + env(safe-area-inset-bottom, 0px));
}

.lbc-reels-title {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--color-text, #1d1d1d);
}

.lbc-reels-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-accent-strong, #d94f64);
    margin-bottom: 10px;
}

.lbc-reels-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--color-muted, #6b6b6b);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.lbc-reels-infos {
    margin-bottom: 16px;
}

.lbc-reels-infos li {
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    font-size: 0.92rem;
    color: var(--color-text, #333);
}

.lbc-reels-number {
    font-weight: 800;
    color: var(--color-accent-strong, #d94f64);
    font-size: 1.05rem;
}

.lbc-reels-description {
    color: var(--color-text, #444);
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 18px;
}

.lbc-reels-author {
    margin-bottom: 16px;
    color: var(--color-muted, #555);
}

.lbc-reels-contact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
}

.lbc-contact-activity-note {
    margin: -10px 0 18px;
    color: var(--color-muted, #5c5c66);
    font-size: 0.78rem;
    line-height: 1.45;
}

.lbc-reels-contact-option {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.lbc-reels-contact-network {
    color: var(--color-muted, #555);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.lbc-reels-contact button.btn,
.lbc-reels-infos .lbc-reels-reveal-button {
    cursor: pointer;
    font: inherit;
}

.lbc-reels-contact button.btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
}

.lbc-reels-contact button.btn:focus-visible,
.lbc-reels-infos .lbc-reels-reveal-button:focus-visible {
    outline: 3px solid #e87684;
    outline-offset: 3px;
}

.lbc-reels-contact button.btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.lbc-reels-infos .lbc-reels-reveal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    margin-left: 6px;
    padding: 6px 10px;
    /*border: 1px solid var(--color-border, rgba(232, 118, 132, 0.3));*/
    border-radius: 8px;
    background: var(--color-surface, rgba(255, 255, 255, 0.08));
    color: var(--color-text, inherit);
    font-weight: 700;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.lbc-reels-infos .lbc-reels-reveal-value {
    color: var(--color-accent-strong, #d94f64);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    white-space: nowrap;
}

.lbc-reels-infos .lbc-reels-reveal-action {
    color: var(--color-muted, #6b6b6b);
    font-size: 0.78rem;
}

.lbc-reels-infos .lbc-reels-reveal-button:hover,
.lbc-reels-infos .lbc-reels-reveal-button.is-revealed {
    /*border-color: var(--color-accent, #e87684);*/
    background: var(--color-accent-muted, rgba(232, 118, 132, 0.12));
}

.lbc-reels-infos .lbc-reels-reveal-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.lbc-reels-infos .lbc-reels-reveal-button.is-error {
    border-color: var(--color-danger, #c0392b);
}

.lbc-reels-like {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 42px);
    z-index: 17;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(8, 12, 22, 0.38);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
    pointer-events: auto;
}

.lbc-reels-like-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(12, 18, 32, 0.76);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.lbc-reels-like-button:hover,
.lbc-reels-like-button:focus-visible {
    border-color: #fff;
    transform: scale(1.06);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.lbc-reels-like-button.is-liked {
    background: var(--color-accent);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

.lbc-reels-like-button i {
    font-size: 1.35rem;
    line-height: 1;
}

.lbc-reels-like-count {
    position: absolute;
    right: -8px;
    bottom: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid rgba(8, 12, 22, 0.82);
    border-radius: 999px;
    background: #fff;
    color: #1d1d1d;
    font-size: 0.72rem;
    line-height: 1;
}

.lbc-reels-like-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lbc-reels-like-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.lbc-reels-quick-contact {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.26);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.lbc-reels-phone-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lbc-reels-phone-index {
    position: absolute;
    top: -0.45em;
    right: -0.7em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.05em;
    height: 1.05em;
    padding: 0 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    background: rgba(18, 22, 31, 0.9);
    color: #fff;
    font-size: 0.52em;
    font-weight: 800;
    line-height: 1;
}

.lbc-reels-quick-contact-whatsapp {
    background: #168a4a;
}

.lbc-reels-quick-contact-phone {
    background: #d94f64;
}

.lbc-reels-quick-contact-phone-01 {
    background: #007aff;
}

.lbc-reels-quick-contact-phone-05 {
    background: #fdd201;
}

.lbc-reels-quick-contact-phone-07 {
    background: #fa6600;
}

.lbc-reels-quick-contact-telegram {
    background: #1479b8;
}

.lbc-reels-quick-contact:hover,
.lbc-reels-quick-contact:focus-visible {
    transform: scale(1.06);
    filter: brightness(1.12);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.lbc-reels-quick-contact:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.lbc-reels-quick-contact:disabled {
    cursor: wait;
    opacity: 0.68;
}

@media (max-width: 640px) {
    .lbc-reels-like {
        bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 42px);
    }

    .lbc-reels-like-button {
        width: 42px;
        height: 42px;
    }

    .lbc-reels-quick-contact {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

@media (max-width: 360px) {
    .lbc-reels-like {
        gap: 4px;
        padding: 4px;
    }

    .lbc-reels-like-button {
        width: 40px;
        height: 40px;
    }

    .lbc-reels-quick-contact {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

.lbc-reels-report {
    display: flex;
    justify-content: center;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.lbc-reels-report .report-annonce-trigger {
    margin: 0;
}

.lbc-reels-full-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-accent-strong, #d94f64);
}

/* ----- États : vide / chargement ----- */
.lbc-reels-empty,
.lbc-reels-loading {
    position: absolute;
    inset: 0;
    z-index: 30;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.86);
    color: #fff;
    text-align: center;
    padding: 0 24px;
}

/* display:flex écrase l'attribut HTML hidden sans cette règle */
.lbc-reels-empty[hidden],
.lbc-reels-loading[hidden] {
    display: none !important;
}

.lbc-reels-empty:not([hidden]),
.lbc-reels-loading:not([hidden]) {
    display: flex;
}

.lbc-reels-empty i {
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.7);
}

.lbc-reels-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: lbcSpin 0.8s linear infinite;
}

@keyframes lbcSpin {
    to { transform: rotate(360deg); }
}

/* ----- Responsive desktop : cadrer la visionneuse comme un "reel" ----- */
@media (min-width: 720px) {
    .lbc-reels-stage {
        max-width: 480px;
        margin: 0 auto;
    }

    .lbc-reels-panel {
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lbc-reels,
    .lbc-reels-media,
    .lbc-reels-photo,
    .lbc-reels-backdrop,
    .lbc-reels-panel,
    .lbc-reels-nav,
    .lbc-reels-photo-toggle,
    .lbc-reels-close,
    .lbc-reels-hint,
    .lbc-reels-dot,
    .lbc-reels-dots.is-playing .lbc-reels-dot.is-active::after,
    .lbc-reels-position {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .lbc-reels-hint {
        animation: none !important;
    }

    .lbc-reels-hint-finger {
        opacity: 1;
        animation: lbcReelsSwipeHintReduced 850ms var(--lbc-ease-out) 1 both !important;
    }

    @keyframes lbcReelsSwipeHintReduced {
        from { opacity: 0.6; transform: translate(-50%, 8px); }
        to { opacity: 1; transform: translate(-50%, -44px); }
    }
}
