/* =========================================================
   MHPSS ProCare Firm
   Page Paiement par mandat minute (bloc HZ Payment guide)

   Prefixe .mmp- et non .mm-. L extension Mandat Minute publie
   sa propre feuille sous le prefixe .mm-, ecrite plus bas dans
   le document, donc prioritaire a poids egal.
   ========================================================= */

.mmp-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
    line-height: 1.65;
    padding: 2rem 1.25rem 4rem;
}

.mmp-page * {
    box-sizing: border-box;
}

.mmp-inner {
    max-width: 44rem;
    margin: 0 auto;
}

/* --- Logo de La Poste, au-dessus du titre --- */

.mmp-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.mmp-logo img {
    display: block;
    height: 64px;
    width: auto;
}

/* --- Titre --- */

.mmp-titre {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #17405e;
    text-align: center;
    margin: 0 0 0.75rem;
}

.mmp-sous {
    font-size: 1.125rem;
    font-weight: 300;
    color: #64748b;
    text-align: center;
    margin: 0 0 3rem;
}

/* --- Les etapes --- */

.mmp-etapes {
    display: grid;
    gap: 1rem;
    margin: 0 0 3rem;
    padding: 0;
    list-style: none;
}

.mmp-etape {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 10px 26px rgba(7, 71, 107, 0.05);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.mmp-etape:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(7, 71, 107, 0.09);
}

.mmp-num {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 0.7rem;
    background: rgba(7, 71, 107, 0.08);
    color: #17405e;
    font-weight: 700;
    font-size: 0.95rem;
}

.mmp-etape p {
    margin: 0;
}

.mmp-etape strong {
    color: #17405e;
}

/* --- Coordonnees du mandat --- */

.mmp-coord {
    background: #17405e;
    color: #ffffff;
    border-radius: 1rem;
    padding: 1.6rem 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 14px 32px rgba(7, 71, 107, 0.18);
}

.mmp-coord h2 {
    margin: 0 0 1rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.mmp-coord dl {
    margin: 0;
}

.mmp-ligne {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mmp-ligne:last-child {
    border-bottom: 0;
}

.mmp-ligne dt {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.mmp-ligne dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

/* --- Rappel du delai --- */

.mmp-delai {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff8f2;
    border: 1px solid #f5d9c0;
    border-left: 4px solid #fa7268;
    border-radius: 0.9rem;
    padding: 1.2rem 1.4rem;
    margin-bottom: 3rem;
    color: #7c3a26;
}

.mmp-delai strong {
    color: #9a3412;
}

.mmp-delai p {
    margin: 0;
    font-size: 0.97rem;
    flex: 1 1 auto;
    min-width: 0;
}

/* --- Exemple de recu, loge dans le rappel du delai --- */

.mmp-exemple {
    flex: 0 0 auto;
    margin: 0;
    text-align: center;
}

.mmp-exemple img {
    display: block;
    width: 7rem;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid #f0d6bd;
    background: #ffffff;
    position: relative;
    z-index: 1;
    cursor: zoom-in;
    transform-origin: right center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

/* La vignette s agrandit sur place, sans decaler le texte */
.mmp-exemple img:hover {
    transform: scale(2.2);
    box-shadow: 0 24px 48px -18px rgba(23, 64, 94, 0.35);
    z-index: 5;
}

.mmp-exemple figcaption {
    margin-top: 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b08469;
}

/* --- Intertitre a filets --- */

.mmp-sep {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 2rem;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mmp-sep::before,
.mmp-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dbe3ea;
}

/* --- Formulaire de depot (extension Mandat Minute) --- */

/* L extension affiche ses propres consignes avant le
   formulaire. Elles font double emploi avec les etapes du haut
   de page. On masque la carte qui contient la liste
   numerotee ; le formulaire, lui, n en contient pas et reste
   visible. La regle ne trouve rien a masquer si l extension
   est un jour mise a jour : aucun effet de bord. */
.mmp-depot .mm-carte:has(ol) {
    display: none;
}

.mmp-aide {
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    margin: 2.5rem 0 0;
}

.mmp-aide a {
    color: #17405e;
    font-weight: 600;
}

/* --- Telephone --- */

@media (max-width: 640px) {
    .mmp-logo img {
        height: 52px;
    }

    .mmp-ligne {
        flex-direction: column;
        gap: 0.15rem;
    }

    .mmp-ligne dd {
        text-align: left;
    }

    /* Sans survol possible, la vignette s affiche directement
       assez grande pour etre lisible */
    .mmp-delai {
        flex-direction: column;
    }

    .mmp-exemple {
        align-self: flex-start;
        text-align: left;
    }

    .mmp-exemple img {
        width: 100%;
        max-width: 15rem;
        cursor: default;
    }

    .mmp-exemple img:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mmp-etape,
    .mmp-exemple img {
        transition: none;
    }
}
