.mp-app {
    max-width: 960px;
    margin: 40px auto;
    padding: 36px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    font-family: Arial, sans-serif;
    color: #1f2937;
}

.mp-entete {
    text-align: center;
    margin-bottom: 32px;
}

.mp-entete h2 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.2;
}

.mp-accroche {
    max-width: 680px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.55;
    color: #4b5563;
}

.mp-formulaire {
    margin-top: 30px;
}

.mp-zone-photos {
    padding: 28px;
    border: 2px dashed #94a3b8;
    border-radius: 14px;
    text-align: center;
    background: #f8fafc;
}

.mp-label-photos {
    display: block;
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 700;
}

#mp-photos {
    max-width: 100%;
}

.mp-aide {
    margin: 14px 0 0;
    font-size: 14px;
    color: #64748b;
}

.mp-apercus {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.mp-apercu-bloc {
    position: relative;
}

.mp-apercu-image {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 11px;
    border: 1px solid #cbd5e1;
}

.mp-photo-etiquette {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.mp-objectif {
    margin: 28px 0;
    padding: 22px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

.mp-objectif legend {
    padding: 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.mp-objectif label {
    display: inline-block;
    margin: 8px 20px 8px 0;
    cursor: pointer;
}

.mp-objectif input {
    margin-right: 6px;
}

.mp-bouton {
    display: block;
    width: 100%;
    padding: 17px 24px;
    border: 0;
    border-radius: 10px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
}

.mp-bouton:hover {
    background: #1e40af;
}

.mp-bouton:disabled {
    opacity: 0.65;
    cursor: wait;
}

.mp-chargement {
    margin-top: 28px;
    padding: 24px;
    border-radius: 12px;
    background: #eff6ff;
    text-align: center;
}

.mp-chargement p {
    margin: 8px 0;
}

.mp-resultat {
    margin-top: 34px;
    scroll-margin-top: 30px;
}

.mp-rapport {
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.mp-rapport-entete {
    padding: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #173b8f, #2563eb);
}

.mp-rapport-entete h3 {
    margin: 5px 0 10px;
    color: #ffffff;
    font-size: 30px;
}

.mp-surtitre {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.mp-resume {
    max-width: 760px;
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.mp-section {
    padding: 30px 32px;
    border-bottom: 1px solid #e2e8f0;
}

.mp-titre-section h3 {
    margin: 0 0 22px;
    color: #172554;
    font-size: 24px;
}

.mp-liste-simple {
    display: grid;
    gap: 12px;
}

.mp-point-fort {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 11px;
    background: #f0fdf4;
}

.mp-point-fort p {
    margin: 2px 0 0;
    line-height: 1.48;
}

.mp-opportunite {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dbe4f0;
    border-radius: 15px;
    background: #ffffff;
}

.mp-opportunite-entete {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.mp-numero {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.mp-opportunite-titres {
    flex: 1;
}

.mp-opportunite h4 {
    margin: 1px 0 9px;
    color: #172554;
    font-size: 20px;
}

.mp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mp-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.mp-badge-photo {
    background: #e0e7ff;
    color: #3730a3;
}

.mp-badge-priorite {
    color: #ffffff;
}

.mp-priorite-haute {
    background: #dc2626;
}

.mp-priorite-moyenne {
    background: #d97706;
}

.mp-priorite-faible {
    background: #15803d;
}

.mp-grille-analyse {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mp-champ {
    padding: 15px;
    border-radius: 11px;
    border-left: 4px solid;
}

.mp-champ-visible {
    border-color: #2563eb;
    background: #eff6ff;
}

.mp-champ-risque {
    border-color: #ea580c;
    background: #fff7ed;
}

.mp-champ-verification {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.mp-champ-action {
    border-color: #16a34a;
    background: #f0fdf4;
}

.mp-champ-titre {
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mp-champ-texte {
    margin: 0;
    line-height: 1.48;
}

.mp-priorite {
    margin: 28px 32px;
    padding: 25px;
    border: 2px solid #f97316;
    border-radius: 16px;
    background: #fff7ed;
}

.mp-priorite-haut {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.mp-priorite-icone {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ea580c;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.mp-priorite h3 {
    margin: 4px 0 8px;
    color: #9a3412;
    font-size: 24px;
}

.mp-actions-grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mp-action-carte {
    position: relative;
    min-height: 165px;
    padding: 22px 18px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #ffffff;
}

.mp-action-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 800;
}

.mp-action-carte h4 {
    margin: 14px 0 9px;
    color: #172554;
    font-size: 18px;
}

.mp-action-carte p {
    margin: 0;
    line-height: 1.48;
}

.mp-potentiel {
    padding: 30px 32px;
    text-align: center;
    color: #ffffff;
    background: #0f172a;
}

.mp-potentiel-valeur {
    margin: 8px 0;
    font-size: 38px;
    font-weight: 900;
}

.mp-potentiel-texte {
    max-width: 680px;
    margin: 0 auto;
    color: #cbd5e1;
    line-height: 1.5;
}

.mp-limites ul {
    margin: 0;
    padding-left: 22px;
}

.mp-limites li {
    margin-bottom: 9px;
    line-height: 1.5;
}

.mp-signature {
    margin: 0;
    padding: 26px 32px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    color: #172554;
    font-weight: 800;
    font-style: italic;
    text-align: center;
}

.mp-erreur {
    padding: 18px;
    border-radius: 10px;
    background: #fef2f2;
    border-left: 5px solid #dc2626;
    color: #991b1b;
}

@media (max-width: 760px) {
    .mp-app {
        margin: 20px 8px;
        padding: 20px;
    }

    .mp-entete h2 {
        font-size: 30px;
    }

    .mp-objectif label {
        display: block;
        margin: 12px 0;
    }

    .mp-rapport-entete,
    .mp-section,
    .mp-potentiel,
    .mp-signature {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mp-priorite {
        margin-left: 20px;
        margin-right: 20px;
    }

    .mp-grille-analyse,
    .mp-actions-grille {
        grid-template-columns: 1fr;
    }
}


/* V0.3.1 — lisibilité renforcée du premier regard expert */
.mp-rapport-entete,
.mp-rapport-entete p,
.mp-rapport-entete h3,
.mp-rapport-entete .mp-surtitre,
.mp-rapport-entete .mp-resume {
    color: #ffffff !important;
    opacity: 1 !important;
}

.mp-rapport-entete .mp-surtitre {
    color: #dbeafe !important;
    font-size: 13px;
}

.mp-rapport-entete .mp-resume {
    margin-top: 14px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}


/* V0.3.2 — lisibilité renforcée de la zone Potentiel de progrès */
.mp-potentiel,
.mp-potentiel p,
.mp-potentiel .mp-surtitre,
.mp-potentiel .mp-potentiel-valeur,
.mp-potentiel .mp-potentiel-texte {
    color: #ffffff !important;
    opacity: 1 !important;
}

.mp-potentiel .mp-surtitre {
    color: #c7d2fe !important;
    font-size: 13px;
    font-weight: 800;
}

.mp-potentiel .mp-potentiel-valeur {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mp-potentiel .mp-potentiel-texte {
    color: #e2e8f0 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
}


/* V0.4.0 — progression temporelle de l’analyse */
.mp-chargement {
    text-align: left;
    border: 1px solid #bfdbfe;
}

.mp-progression-entete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.mp-progression-titre {
    margin: 0 0 5px !important;
    color: #172554;
    font-size: 20px;
    font-weight: 800;
}

.mp-progression-etape {
    margin: 0 !important;
    color: #334155;
    font-size: 15px;
}

.mp-progression-temps {
    min-width: 64px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #ffffff;
    color: #1e3a8a;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 2px 7px rgba(30, 64, 175, 0.12);
}

.mp-barre {
    overflow: hidden;
    height: 13px;
    margin-top: 20px;
    border-radius: 999px;
    background: #dbeafe;
}

.mp-barre-valeur {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
    transition: width 0.35s ease;
}

.mp-progression-infos {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 9px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.mp-patience {
    margin: 15px 0 0 !important;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.mp-aucun-point {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    font-style: italic;
}

@media (max-width: 600px) {
    .mp-progression-entete,
    .mp-progression-infos {
        align-items: stretch;
        flex-direction: column;
    }

    .mp-progression-temps {
        align-self: flex-start;
    }
}
