/* ============================================
   MPC PROFILE SHEETS CSS
   Fiches explicatives des profils cognitifs
   Design moderne en 6 blocs
   ============================================ */

/* Container principal */
.mpc-sheet {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   HEADER
   ============================================ */
.mpc-sheet__header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--sheet-gradient);
    border-radius: 20px;
    color: white;
    margin-bottom: 24px;
}

.mpc-sheet__badge {
    width: 88px;
    height: 88px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mpc-sheet__emoji {
    font-size: 48px;
}

.mpc-sheet__title-area {
    flex: 1;
}

.mpc-sheet__title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.mpc-sheet__tagline {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    font-weight: 500;
}

/* ============================================
   SECTIONS GÉNÉRALES
   ============================================ */
.mpc-sheet__section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.mpc-sheet__section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--sheet-color, #6d28d9);
}

.mpc-sheet__section-icon {
    font-size: 24px;
}

/* ============================================
   BLOC 1 - ADN COGNITIF
   ============================================ */
.mpc-sheet__dna-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border-left: 4px solid var(--sheet-color);
}

.mpc-sheet__dna-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mpc-sheet__dna-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.mpc-sheet__dna-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mpc-sheet__dna-content strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--sheet-color);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpc-sheet__dna-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

/* ============================================
   BLOC 2 - BASES SCIENTIFIQUES
   ============================================ */
.mpc-sheet__science-intro {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

.mpc-sheet__science-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.mpc-sheet__science-card {
    padding: 18px;
    background: linear-gradient(135deg, #f4f7fb 0%, #ede9fe 100%);
    border-radius: 12px;
    border-left: 4px solid var(--sheet-color);
}

.mpc-sheet__science-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.mpc-sheet__science-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.mpc-sheet__neuro {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 14px;
}

.mpc-sheet__neuro-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.mpc-sheet__neuro-content strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 6px;
}

.mpc-sheet__neuro-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #047857;
}

/* ============================================
   BLOC 3 - CAS CONCRETS
   ============================================ */
.mpc-sheet__cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mpc-sheet__case-card {
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.mpc-sheet__case-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.mpc-sheet__case-icon {
    font-size: 24px;
}

.mpc-sheet__case-context {
    font-size: 14px;
    font-weight: 700;
    color: var(--sheet-color);
}

.mpc-sheet__case-card > p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

/* ============================================
   BLOC 4 - FORCES ET VIGILANCES
   ============================================ */
.mpc-sheet__balance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mpc-sheet__strengths,
.mpc-sheet__vigilance {
    padding: 20px;
    border-radius: 14px;
}

.mpc-sheet__strengths {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.mpc-sheet__vigilance {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
}

.mpc-sheet__strengths h3,
.mpc-sheet__vigilance h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
}

.mpc-sheet__strengths h3 {
    color: #065f46;
}

.mpc-sheet__vigilance h3 {
    color: #9a3412;
}

.mpc-sheet__strengths ul,
.mpc-sheet__vigilance ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mpc-sheet__strengths li,
.mpc-sheet__vigilance li {
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.mpc-sheet__strengths li::before {
    content: '✓';
    color: #059669;
    font-weight: bold;
    flex-shrink: 0;
}

.mpc-sheet__vigilance li::before {
    content: '⚠';
    font-size: 12px;
    flex-shrink: 0;
}

.mpc-sheet__strengths li {
    color: #047857;
}

.mpc-sheet__vigilance li {
    color: #c2410c;
}

/* ============================================
   BLOC 5 - CONSEILS D'APPRENTISSAGE
   ============================================ */
.mpc-sheet__tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mpc-sheet__tips-card {
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.mpc-sheet__tips-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.mpc-sheet__tips-header span {
    font-size: 22px;
}

.mpc-sheet__tips-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.mpc-sheet__tips-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mpc-sheet__tips-card li {
    position: relative;
    padding: 6px 0 6px 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

.mpc-sheet__tips-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--sheet-color);
    font-weight: bold;
}

/* ============================================
   BLOC 6 - APPELS À L'ACTION
   ============================================ */
.mpc-sheet__cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mpc-sheet__cta-card {
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.mpc-sheet__cta-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.mpc-sheet__cta-card > p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.mpc-sheet__cta-secondary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.mpc-sheet__secondary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.mpc-sheet__secondary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: white;
    border-radius: 10px;
}

.mpc-sheet__secondary-emoji {
    font-size: 20px;
}

.mpc-sheet__secondary-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
}

.mpc-sheet__secondary-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--sheet-color);
}

.mpc-sheet__cta-retake {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-color: #fcd34d;
}

.mpc-sheet__cta-resources {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

/* ============================================
   MESSAGES
   ============================================ */
.mpc-sheet-error {
    padding: 20px;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 12px;
    border: 1px solid #fecaca;
    text-align: center;
}

.mpc-sheet-notice {
    padding: 24px;
    background: #eff6ff;
    border-radius: 14px;
    border: 1px solid #bfdbfe;
    text-align: center;
}

.mpc-sheet-notice p {
    margin: 0 0 16px;
    font-size: 15px;
    color: #1e40af;
}

.mpc-sheet-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mpc-sheet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109,40,217, 0.4);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .mpc-sheet__header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .mpc-sheet__badge {
        margin: 0 auto;
    }

    .mpc-sheet__title {
        font-size: 24px;
    }

    .mpc-sheet__section {
        padding: 20px;
    }

    .mpc-sheet__dna-grid,
    .mpc-sheet__balance-grid,
    .mpc-sheet__tips-grid {
        grid-template-columns: 1fr;
    }

    .mpc-sheet__cases-grid,
    .mpc-sheet__cta-grid {
        grid-template-columns: 1fr;
    }

    .mpc-sheet__neuro {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mpc-sheet {
        padding: 0 12px;
    }

    .mpc-sheet__header {
        padding: 20px;
    }

    .mpc-sheet__badge {
        width: 72px;
        height: 72px;
    }

    .mpc-sheet__emoji {
        font-size: 36px;
    }

    .mpc-sheet__title {
        font-size: 20px;
    }

    .mpc-sheet__section {
        padding: 16px;
    }

    .mpc-sheet__section-title {
        font-size: 16px;
    }
}

/* Animation d'entrée */
.mpc-sheet {
    animation: mpc-sheet-fadein 0.4s ease-out;
}

@keyframes mpc-sheet-fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mpc-sheet {
        animation: none;
    }
}
