/**
 * Styles pour le bandeau de consentement cookies
 * Design sobre, moderne et transparent
 */

/* ==================== BANDEAU PRINCIPAL ==================== */
.vpp-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.vpp-cookie-banner.vpp-cookie-bottom {
    bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.vpp-cookie-banner.vpp-cookie-top {
    top: 0;
    transform: translateY(-100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.vpp-cookie-banner.vpp-cookie-visible {
    opacity: 1;
    transform: translateY(0);
}

.vpp-cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* ==================== CONTENU ==================== */
.vpp-cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.vpp-cookie-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: vpp-cookie-bounce 2s ease-in-out infinite;
}

@keyframes vpp-cookie-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.vpp-cookie-text {
    flex: 1;
}

.vpp-cookie-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.vpp-cookie-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* ==================== ACTIONS ==================== */
.vpp-cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.vpp-cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.vpp-cookie-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.vpp-cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.vpp-cookie-btn-refuse {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.vpp-cookie-btn-refuse:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.vpp-cookie-btn-customize {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.vpp-cookie-btn-customize:hover {
    background: #667eea;
    color: white;
}

.vpp-cookie-btn-secondary {
    background: white;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.vpp-cookie-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ==================== MODAL ==================== */
.vpp-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vpp-cookie-modal.vpp-cookie-modal-visible {
    opacity: 1;
    visibility: visible;
}

.vpp-cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.vpp-cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vpp-cookie-modal.vpp-cookie-modal-visible .vpp-cookie-modal-content {
    transform: scale(1);
}

.vpp-cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vpp-cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.vpp-cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.vpp-cookie-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.vpp-cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* ==================== CATÉGORIES ==================== */
.vpp-cookie-category {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.vpp-cookie-category:hover {
    background: rgba(102, 126, 234, 0.03);
    border-color: rgba(102, 126, 234, 0.2);
}

.vpp-cookie-category-header {
    margin-bottom: 8px;
}

.vpp-cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.vpp-cookie-category-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.vpp-cookie-category-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.vpp-cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.vpp-cookie-category-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    padding-left: 30px;
}

.vpp-cookie-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.01);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .vpp-cookie-banner {
        padding: 16px;
    }
    
    .vpp-cookie-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .vpp-cookie-content {
        min-width: auto;
    }
    
    .vpp-cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .vpp-cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .vpp-cookie-icon {
        font-size: 28px;
    }
    
    .vpp-cookie-title {
        font-size: 16px;
    }
    
    .vpp-cookie-description {
        font-size: 13px;
    }
    
    .vpp-cookie-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .vpp-cookie-modal-footer {
        flex-direction: column;
    }
    
    .vpp-cookie-modal-footer .vpp-cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vpp-cookie-modal-header {
        padding: 16px;
    }
    
    .vpp-cookie-modal-body {
        padding: 16px;
    }
    
    .vpp-cookie-modal-footer {
        padding: 16px;
    }
    
    .vpp-cookie-category {
        padding: 12px;
    }
}

/* ==================== DARK MODE (optionnel) ==================== */
@media (prefers-color-scheme: dark) {
    .vpp-cookie-banner {
        background: rgba(26, 26, 26, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .vpp-cookie-title {
        color: #f5f5f5;
    }
    
    .vpp-cookie-description {
        color: #bbb;
    }
    
    .vpp-cookie-btn-refuse {
        background: rgba(255, 255, 255, 0.05);
        color: #ccc;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .vpp-cookie-modal-content {
        background: #1a1a1a;
    }
    
    .vpp-cookie-modal-header h3,
    .vpp-cookie-category-title {
        color: #f5f5f5;
    }
    
    .vpp-cookie-category {
        background: rgba(255, 255, 255, 0.02);
        border-color: rgba(255, 255, 255, 0.06);
    }
    
    .vpp-cookie-category-desc {
        color: #999;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes vpp-cookie-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vpp-cookie-category {
    animation: vpp-cookie-slide-up 0.4s ease backwards;
}

.vpp-cookie-category:nth-child(1) { animation-delay: 0.1s; }
.vpp-cookie-category:nth-child(2) { animation-delay: 0.15s; }
.vpp-cookie-category:nth-child(3) { animation-delay: 0.2s; }
.vpp-cookie-category:nth-child(4) { animation-delay: 0.25s; }
