/**
 * ATYPIKIA - Styles pour Analyse Globale Multi-PDF
 * Design moderne et fonctionnel pour l'upload et analyse IA
 */

.analyse-globale-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Hero Section */
.analyse-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Explication */
.analysis-explanation-section {
    padding: 6rem 0;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.explanation-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.explanation-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.explanation-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 2rem;
}

.explanation-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.exp-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: #475569;
}

.exp-feature i {
    color: #3b82f6;
    font-size: 1.25rem;
}

.explanation-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.upload-tip i {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 1.5rem;
}

.upload-tip h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.upload-tip p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.tip-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tip-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.tip-list li::before {
    content: '→';
    color: #3b82f6;
}

@media (max-width: 992px) {
    .explanation-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .explanation-card {
        max-width: 500px;
    }
}

/* Upload Section */
.upload-section {
    padding: 4rem 0;
}

.upload-form-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Instructions */
.instructions-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.instructions-header h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #64748b;
    font-size: 0.9rem;
}

.security-note {
    background: #e0f2fe;
    border: 1px solid #0277bd;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.security-note i {
    color: #0277bd;
}

/* Formulaire d'Upload */
.upload-form {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-header h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.upload-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-zone.dragover {
    border-color: #1d4ed8;
    background: #dbeafe;
}

.upload-icon {
    font-size: 3rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.upload-text {
    color: #475569;
    margin-bottom: 1rem;
}

.upload-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.upload-limits {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1rem;
}

/* Fichiers sélectionnés */
.selected-files {
    margin-top: 1.5rem;
}

.file-list {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    color: #dc2626;
    font-size: 1.25rem;
}

.file-details h5 {
    margin: 0 0 0.25rem;
    color: #1e293b;
    font-size: 0.9rem;
}

.file-size {
    color: #64748b;
    font-size: 0.8rem;
}

.file-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Résultats d'Analyse */
.analysis-results {
    max-width: 1000px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.results-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #64748b;
}

.analysis-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h3 {
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-content {
    padding: 2rem;
}

/* Types de cartes spécifiques */
.synthesis .card-header {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.ai-analysis .card-header {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.recommendations .card-header {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.interactions .card-header {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.ai-content {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 4px solid #3b82f6;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    line-height: 1.6;
}

.recommendations-list,
.interactions-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li,
.interactions-list li {
    background: #f8fafc;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    border-left: 4px solid #10b981;
    position: relative;
}

.interactions-list li {
    border-left-color: #8b5cf6;
}

.recommendations-list li:before {
    content: "💡";
    margin-right: 0.5rem;
}

.interactions-list li:before {
    content: "🔗";
    margin-right: 0.5rem;
}

/* Actions */
.analysis-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Alertes et messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #86efac;
    color: #059669;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .results-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .analysis-actions,
    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }
}