/* Design CSS entièrement nouveau pour la politique de confidentialité */
/* Aucune dépendance aux styles existants - Design propre et moderne */

/* Reset et base */
.privacy-modal * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Overlay principal */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.privacy-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Container principal */
.privacy-dialog {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.privacy-modal.active .privacy-dialog {
    transform: scale(1) translateY(0);
}

/* En-tête */
.privacy-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
}

.privacy-title {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.privacy-title-icon {
    width: 28px;
    height: 28px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.privacy-subtitle {
    font-size: 14px;
    color: #cbd5e1;
    margin-top: 8px;
    font-weight: 400;
}

/* Bouton de fermeture */
.privacy-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.privacy-close:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.05);
}

.privacy-close:active {
    transform: scale(0.95);
}

/* Zone de contenu */
.privacy-content {
    padding: 0;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    background: #fafafa;
}

/* Scrollbar personnalisée */
.privacy-content::-webkit-scrollbar {
    width: 6px;
}

.privacy-content::-webkit-scrollbar-track {
    background: transparent;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Contenu de la politique */
.privacy-document {
    padding: 32px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Date d'entrée en vigueur */
.privacy-effective-date {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 14px;
    color: #1e40af;
    font-weight: 500;
}

/* Sections */
.privacy-section {
    margin-bottom: 32px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.privacy-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.privacy-section-icon {
    width: 35px;
    height: 25px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.privacy-section-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin: 20px 0 12px 0;
}

.privacy-section p {
    margin-bottom: 12px;
    color: #4b5563;
    text-align: justify;
}

/* Listes */
.privacy-list {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.privacy-list-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 40px;
    transition: all 0.2s ease;
}

.privacy-list-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.privacy-list-item::before {
    content: '•';
    position: absolute;
    left: 16px;
    top: 12px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 16px;
}

/* Section contact */
.privacy-contact {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.privacy-contact-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.privacy-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.privacy-contact-icon {
    width: 20px;
    height: 20px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 12px;
}

/* Référence légale */
.privacy-legal {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    color: #92400e;
    font-weight: 500;
}

/* Informations de mise à jour */
.privacy-update-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.privacy-update-info p {
    margin: 8px 0;
    font-size: 15px;
    color: #495057;
    font-weight: 500;
}

.privacy-update-info .update-date {
    color: #007bff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
}

.privacy-update-info .company-name {
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
}

/* Footer */
.privacy-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
    font-size: 14px;
}

.privacy-company {
    font-weight: 600;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .privacy-modal {
        padding: 16px;
    }
    
    .privacy-dialog {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .privacy-header {
        padding: 20px 24px;
    }
    
    .privacy-title {
        font-size: 20px;
    }
    
    .privacy-close {
        top: 16px;
        right: 20px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .privacy-document {
        padding: 24px 20px;
    }
    
    .privacy-section {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .privacy-section-title {
        font-size: 18px;
    }
    
    .privacy-footer {
        padding: 16px 20px;
    }
}

/* Animation d'entrée */
@keyframes privacyFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animation de sortie */
@keyframes privacyFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
}