/**
 * ============================================
 * HENDERSON.WORK - STYLES RGPD
 * ============================================
 * 
 * Design cohérent avec l'interface Pennylane
 * Optimisé pour desktop et mobile
 */

/* ==================== SECTION RGPD ==================== */

.rgpd-section {
    margin: 40px 0;
    padding: 32px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rgpd-header {
    margin-bottom: 32px;
    text-align: center;
}

.rgpd-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.rgpd-subtitle {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== CARDS ==================== */

.rgpd-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.rgpd-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
}

.rgpd-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.rgpd-card-export {
    border-left: 4px solid #14b8a6;
}

.rgpd-card-delete {
    border-left: 4px solid #ef4444;
}

.rgpd-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
}

.rgpd-card-body h4 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.rgpd-card-body > p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* ==================== LISTES ==================== */

.rgpd-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.rgpd-list li {
    font-size: 14px;
    color: #374151;
    padding: 8px 0;
    padding-left: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.rgpd-card-export .rgpd-list li {
    border-left-color: #a7f3d0;
}

.rgpd-card-delete .rgpd-list li {
    border-left-color: #fecaca;
}

.rgpd-list li:hover {
    padding-left: 12px;
}

/* ==================== BOUTONS ==================== */

.rgpd-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rgpd-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rgpd-btn-export {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.rgpd-btn-export:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
}

.rgpd-btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.rgpd-btn-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* ==================== NOTES ==================== */

.rgpd-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 12px;
    text-align: center;
    font-style: italic;
}

.rgpd-warning {
    color: #ef4444;
    font-weight: 600;
}

/* ==================== FOOTER / DÉTAILS ==================== */

.rgpd-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.rgpd-details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.rgpd-details summary {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.rgpd-details summary::-webkit-details-marker {
    display: none;
}

.rgpd-details summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s;
}

.rgpd-details[open] summary::before {
    transform: rotate(90deg);
}

.rgpd-info-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.rgpd-info-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 16px 0 8px 0;
}

.rgpd-info-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.rgpd-info-content li {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 4px 0;
}

.rgpd-info-content p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 8px 0;
}

.rgpd-info-content a {
    color: #14b8a6;
    text-decoration: none;
    font-weight: 600;
}

.rgpd-info-content a:hover {
    text-decoration: underline;
}

/* ==================== LOADER ==================== */

.rgpd-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.rgpd-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #14b8a6;
    border-radius: 50%;
    animation: rgpd-spin 0.8s linear infinite;
}

@keyframes rgpd-spin {
    to { transform: rotate(360deg); }
}

.rgpd-loader p {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

/* ==================== NOTIFICATIONS ==================== */

.rgpd-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 10001;
    animation: rgpd-slide-in 0.3s ease;
    border-left: 4px solid #14b8a6;
}

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

.rgpd-notification-success {
    border-left-color: #10b981;
}

.rgpd-notification-error {
    border-left-color: #ef4444;
}

.rgpd-notification-info {
    border-left-color: #3b82f6;
}

.rgpd-notification-content strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.rgpd-notification-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.rgpd-notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.rgpd-notification-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ==================== DIALOGUES ==================== */

.rgpd-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    animation: rgpd-fade-in 0.2s ease;
    backdrop-filter: blur(4px);
}

@keyframes rgpd-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rgpd-dialog {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: rgpd-scale-in 0.3s ease;
}

@keyframes rgpd-scale-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rgpd-dialog h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
}

.rgpd-dialog-content {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.rgpd-dialog-content strong {
    color: #111827;
}

.rgpd-dialog-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.rgpd-dialog-content li {
    margin: 6px 0;
}

.rgpd-dialog-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 24px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.rgpd-dialog-input:focus {
    outline: none;
    border-color: #14b8a6;
}

.rgpd-dialog-input-error {
    border-color: #ef4444;
    animation: rgpd-shake 0.4s;
}

@keyframes rgpd-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.rgpd-dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.rgpd-dialog-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.rgpd-dialog-btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.rgpd-dialog-btn-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}

.rgpd-dialog-btn-confirm {
    background: #ef4444;
    color: white;
}

.rgpd-dialog-btn-confirm:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .rgpd-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .rgpd-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .rgpd-card {
        padding: 20px;
    }
    
    .rgpd-notification {
        left: 12px;
        right: 12px;
        top: 12px;
    }
    
    .rgpd-dialog {
        padding: 24px;
        width: 95%;
    }
}

/* ==================== PRINT ==================== */

@media print {
    .rgpd-section {
        border: none;
        box-shadow: none;
    }
    
    .rgpd-btn,
    .rgpd-loader,
    .rgpd-notification,
    .rgpd-dialog-overlay {
        display: none !important;
    }
}
