/* ── PROMOMEDIA Groupe Bar ─────────────────────────────────────── */

#pgb-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
}

/* ── Onglet (toujours visible) ────────────────────────────────── */

.pgb-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 44px;
    min-height: 90px;
    padding: 12px 6px;
    background: #1e1e2e;
    border: none;
    border-left: 3px solid #7c3aed;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    color: #e2e8f0;
    box-shadow: -3px 0 12px rgba(0, 0, 0, .35);
    transition: background .2s, width .15s;
}

.pgb-toggle:hover {
    background: #2a2a40;
    width: 48px;
}

.pgb-toggle:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: -2px;
}

/* Logo ou initiale dans le toggle */
.pgb-group-logo {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 5px;
}

.pgb-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #7c3aed;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    flex-shrink: 0;
}

.pgb-radio-icon {
    width: 26px;
    height: 26px;
    color: #a78bfa;
    flex-shrink: 0;
}

/* Flèche de direction */
.pgb-chevron {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transform: rotate(180deg); /* défaut : < (déplier) */
    transition: transform .25s ease;
    flex-shrink: 0;
}

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

/* ── Panneau déplié ───────────────────────────────────────────── */

.pgb-panel {
    position: absolute;
    right: 44px;
    top: 0;
    width: 230px;
    background: #1e1e2e;
    border-radius: 0 0 0 10px;
    border-left: 3px solid #7c3aed;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .45);
    overflow: hidden;
    animation: pgb-slide-in .2s ease;
}

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

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

/* En-tête du panneau */
.pgb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #16162a;
    border-bottom: 1px solid #2d2d4a;
}

.pgb-header-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 5px;
    flex-shrink: 0;
}

.pgb-group-name {
    font-weight: 600;
    font-size: 13px;
    color: #e2e8f0;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Liste des sites ──────────────────────────────────────────── */

.pgb-sites {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.pgb-site a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #cbd5e1;
    text-decoration: none;
    border-right: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}

.pgb-site a:hover {
    background: #2d2d42;
    color: #f1f5f9;
    border-right-color: #7c3aed;
}

.pgb-site a:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: -2px;
}

/* Site courant */
.pgb-site.pgb-current a {
    background: #2a1f4a;
    color: #a78bfa;
    border-right-color: #7c3aed;
    cursor: default;
    pointer-events: none;
}

.pgb-site-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.pgb-site-initial {
    width: 24px;
    height: 24px;
    font-size: 11px;
}

.pgb-site-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgb-current-dot {
    font-size: 8px;
    color: #7c3aed;
    flex-shrink: 0;
}
