/* ============================================================
   STYLES FRONTEND - Blocs Premium System Pro
   ============================================================ */

:root {
    --bps-primary: #2271b1;
    --bps-primary-dark: #135e96;
    --bps-success: #46b450;
    --bps-danger: #dc3232;
    --bps-warning: #f0ad4e;
    --bps-info: #00a0d2;
    --bps-text: #333;
    --bps-text-light: #666;
    --bps-bg: #f5f5f5;
    --bps-border: #ddd;
    --bps-radius: 8px;
    --bps-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --bps-transition: all 0.3s ease;
}

.bps-grid {
    display: grid;
    gap: 25px;
    padding: 20px 0;
}

@media (max-width: 992px) {
    .bps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .bps-grid {
        grid-template-columns: 1fr !important;
    }
}

.bps-block {
    position: relative;
    border-radius: var(--bps-radius);
    overflow: hidden;
    box-shadow: var(--bps-shadow);
    transition: var(--bps-transition);
    background: #fff;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}

.bps-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bps-block .bps-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.bps-block .bps-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: 0;
}

.bps-block:hover .bps-bg-image {
    transform: scale(1.08);
}

.bps-block .bps-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

.bps-block:hover .bps-overlay {
    opacity: 0.85;
}

.bps-block .bps-block-inner {
    position: relative;
    z-index: 2;
    padding: 25px 20px 20px;
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    justify-content: flex-end;
}

.bps-block .bps-content {
    flex: 1;
    margin-bottom: 12px;
}

.bps-block .bps-content h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.bps-block .bps-content p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bps-block .bps-widget-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.bps-block .bps-widget-badge .badge-gratuit {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.bps-block .bps-widget-badge .badge-premium {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.bps-block .bps-widget-badge .badge-unlocked {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.bps-block .bps-widget-button {
    margin-top: auto;
    padding-top: 10px;
}

.bps-block .bps-click-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.15);
}

.bps-block .bps-click-hint .bps-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.bps-block:hover .bps-click-hint .bps-arrow {
    transform: translateX(4px);
}

.bps-block .bps-click-hint:hover {
    background: rgba(255,255,255,0.3);
}

.bps-block .bps-lock-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    font-size: 18px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.2);
}

.bps-block .bps-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: none;
    pointer-events: none;
    z-index: 5;
}

.bps-block .bps-ripple.active {
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: all 0.7s ease-out;
}

@keyframes bpsFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.bps-block {
    animation: bpsFadeInUp 0.6s ease forwards;
    opacity: 0;
}

.bps-block.visible {
    opacity: 1;
}

.bps-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.bps-badge.premium { background: #fef3c7; color: #92400e; }
.bps-badge.gratuit { background: #d1fae5; color: #065f46; }
.bps-badge.unlocked { background: #cce5ff; color: #004085; }
.bps-badge.locked { background: #f8d7da; color: #721c24; }

.bps-button {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: var(--bps-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--bps-transition);
}

.bps-button.primary {
    background: var(--bps-primary);
    color: #fff;
}

.bps-button.primary:hover {
    background: var(--bps-primary-dark);
    color: #fff;
}

.bps-button.secondary {
    background: var(--bps-bg);
    color: var(--bps-text);
}

.bps-button.secondary:hover {
    background: #e0e0e0;
}

.bps-button.danger {
    background: var(--bps-danger);
    color: #fff;
}

.bps-button.danger:hover {
    background: #c62828;
    color: #fff;
}

.bps-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bps-member-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.bps-stat-item {
    background: #fff;
    padding: 15px;
    border-radius: var(--bps-radius);
    text-align: center;
    box-shadow: var(--bps-shadow);
}

.bps-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--bps-primary);
}

.bps-stat-label {
    font-size: 12px;
    color: var(--bps-text-light);
}

.bps-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--bps-radius);
    border: 1px dashed #ddd;
}

.bps-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.bps-empty-state h2 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #333;
}

.bps-empty-state p {
    color: #666;
    margin: 0 0 15px 0;
}

.bps-premium-lock {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    margin: 20px 0;
}

.bps-premium-lock-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.bps-premium-lock h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #333;
}

.bps-premium-lock-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.bps-premium-lock p {
    color: #6b7280;
    margin-bottom: 15px;
}

.bps-premium-lock-actions .bps-button {
    margin: 5px;
}

.bps-premium-lock-actions .bps-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bps-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    max-width: 420px;
    min-width: 280px;
    background: #1f2937;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(30px);
    opacity: 0;
    transition: all .3s cubic-bezier(.68,-.55,.265,1.55);
    border-left: 5px solid #6b7280;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bps-toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.bps-toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 12px;
    color: #f3f4f6;
}

.bps-toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bps-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #e5e7eb;
    word-break: break-word;
}

.bps-toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color .2s;
    flex-shrink: 0;
}

.bps-toast-close:hover {
    color: #fff;
}

.bps-toast-success { border-left-color: #22c55e; }
.bps-toast-success .bps-toast-icon { color: #22c55e; }
.bps-toast-error { border-left-color: #ef4444; }
.bps-toast-error .bps-toast-icon { color: #ef4444; }
.bps-toast-warning { border-left-color: #eab308; }
.bps-toast-warning .bps-toast-icon { color: #eab308; }
.bps-toast-info { border-left-color: #3b82f6; }
.bps-toast-info .bps-toast-icon { color: #3b82f6; }

@media (max-width: 768px) {
    .bps-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .bps-toast {
        bottom: 10px;
        right: 10px;
        left: 10px;
        border-radius: 12px;
    }
    .bps-toast-content {
        padding: 12px 14px;
        gap: 10px;
    }
    .bps-toast-message {
        font-size: 13px;
    }
}