/**
 * Module Analyse de Couverture - Styles
 * Couleur module : #7c3aed (violet)
 * Bootstrap 5.3.2 + Font Awesome 6.4.0
 * Auteur : BookConnect
 */

:root {
    --cover-color: #7c3aed;
    --cover-light: #ede9fe;
    --cover-dark: #5b21b6;
    --cover-bon: #059669;
    --cover-correct: #d97706;
    --cover-ameliorer: #dc2626;
}

/* ---- Landing Page ---- */

.cover-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #92400e;
    margin-bottom: 2rem;
}
.cover-warning i { color: #d97706; }

.cover-cta-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}
.cover-cta-card:hover {
    border-color: var(--cover-color);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.12);
    transform: translateY(-3px);
}
.cover-cta-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--cover-light);
    color: var(--cover-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.cover-cta-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.cover-cta-card p { color: #6b7280; font-size: 0.9rem; margin-bottom: 1.25rem; }
.btn-cover {
    background: var(--cover-color);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.btn-cover:hover { background: var(--cover-dark); color: white; }

/* ---- Upload / Drop Zone ---- */

.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}
.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--cover-color);
    background: var(--cover-light);
}
.drop-zone i.upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    display: block;
}
.drop-zone.drag-over i.upload-icon { color: var(--cover-color); }
.drop-zone p { color: #6b7280; margin: 0; }
.drop-zone .formats { font-size: 0.8rem; color: #9ca3af; margin-top: 0.5rem; }

.cover-preview-container {
    text-align: center;
}
.cover-preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ---- Score Display ---- */

.score-global-circle {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.score-global-circle .score-sublabel {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.axe-score-card {
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

/* ---- Results Sections ---- */

.collapse-section { margin-top: 1rem; }
.collapse-section h6 {
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.collapse-section ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}
.collapse-section li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #374151;
}

/* ---- Comparison ---- */

.compare-slot {
    text-align: center;
}
.compare-drop {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.compare-drop:hover,
.compare-drop.drag-over {
    border-color: var(--cover-color);
    background: var(--cover-light);
}
.compare-drop i { font-size: 2rem; color: #9ca3af; }
.compare-drop p { font-size: 0.8rem; color: #9ca3af; margin: 0.5rem 0 0; }

.compare-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.compare-thumb-img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.compare-best-pick {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 1rem;
    border: 2px solid #86efac;
}

.compare-cell-best { background: #dcfce7 !important; }
.compare-cell-worst { background: #fee2e2 !important; }

/* ---- Brief ---- */

.brief-section {
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid var(--cover-color);
}
.brief-section h6 { color: #1f2937; }
.brief-section p,
.brief-section li { font-size: 0.9rem; color: #4b5563; }

/* ---- Toast (reuse rentabilite pattern) ---- */

.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.toast-notification.show { opacity: 1; transform: translateY(0); }
.toast-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.toast-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.toast-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.toast-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .score-global-circle { width: 100px; height: 100px; font-size: 2rem; }
    .compare-thumb-img { width: 80px; }
    .cover-cta-card { padding: 1.5rem 1rem; }
}
