/* ── PROMOMEDIA Social Share — onglet rétractable ─────────────── */

#pss-bar {
    position: fixed;
    right: 0;
    top: calc(50% - 130px); /* positionné au-dessus du Groupe Bar */
    z-index: 99998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
}

/* ── Toggle ───────────────────────────────────────────────────── */

.pss-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    min-height: 80px;
    padding: 10px 6px;
    background: #14532d;
    border: none;
    border-left: 3px solid #22c55e;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    color: #dcfce7;
    box-shadow: -3px 0 12px rgba(0, 0, 0, .35);
    transition: background .2s, width .15s;
}

.pss-toggle:hover {
    background: #166534;
    width: 48px;
}

.pss-toggle:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: -2px;
}

.pss-share-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.pss-chevron {
    width: 16px;
    height: 16px;
    color: #86efac;
    transform: rotate(180deg); /* défaut : < (déplier) */
    transition: transform .25s ease;
    flex-shrink: 0;
}

#pss-bar.pss-open .pss-chevron {
    transform: rotate(0deg); /* ouvert : > (replier) */
}

/* ── Panneau ──────────────────────────────────────────────────── */

.pss-panel {
    position: absolute;
    right: 44px;
    top: 0;
    width: 210px;
    background: #14532d;
    border-radius: 0 0 0 10px;
    border-left: 3px solid #22c55e;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .45);
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    animation: pss-slide-in .2s ease;
    padding: 10px 0;
}

.pss-panel[hidden] {
    display: none;
}

@keyframes pss-slide-in {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.pss-panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #86efac;
    padding: 6px 14px 8px;
    margin: 0;
    border-bottom: 1px solid #166534;
}

/* ── Liste des réseaux ────────────────────────────────────────── */

.pss-networks {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.pss-network-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #dcfce7;
    text-align: left;
    transition: background .15s;
    border-left: 3px solid transparent;
}

.pss-network-btn:hover {
    background: #166534;
    border-left-color: #22c55e;
}

.pss-network-btn:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: -2px;
}

.pss-network-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: .9;
}

.pss-network-label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Feedback "Copié !" */
.pss-network-btn.pss-copied {
    color: #22c55e;
}

/* ── Bouton partage dans le player bar ───────────────────────── */

.pss-player-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}

.pss-player-btn:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.4);
}

.pss-player-btn svg {
    width: 18px;
    height: 18px;
}

/* ── Bouton partage EN DIRECT (homepage) ─────────────────────── */

.pss-endirect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #14532d;
    color: #dcfce7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
    text-decoration: none;
}

.pss-endirect-btn:hover {
    background: #166534;
    color: #fff;
}

.pss-endirect-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Bouton partager dans le contenu ────────────────────────── */

.pss-content-share {
    margin: 32px 0 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,.1);
}

.pss-page-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #14532d;
    color: #dcfce7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
}

.pss-page-share-btn:hover {
    background: #166534;
    color: #fff;
}

.pss-page-share-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Popup de sélection réseau (player + EN DIRECT) ──────────── */

.pss-popup {
    position: fixed;
    z-index: 999999;
    background: #14532d;
    border: 1px solid #22c55e;
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    min-width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    animation: pss-slide-in .15s ease;
}

.pss-popup[hidden] { display: none; }

.pss-popup-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #86efac;
    padding: 4px 14px 8px;
    margin: 0;
    border-bottom: 1px solid #166534;
}

.pss-popup ul {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pss-popup .pss-network-btn {
    padding: 7px 14px;
}
