.vlm-alert { padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
.vlm-alert.is-error { background: rgba(214,45,30,.08); border: 1px solid rgba(214,45,30,.25); }
.vlm-alert.is-info { background: rgba(45, 185, 221,.08); border: 1px solid rgba(45, 185, 221,.25); }
.vlm-alert.is-success { background: rgba(136, 191, 89,.08); border: 1px solid rgba(136, 191, 89,.25); }

/* =========================
   MODALE PROFIL CLIENT
   ========================= */

/* =========================
   BLOQUE LE SCROLL PAGE
   ========================= */
body.vlm-modal-open {
    overflow: hidden;
    touch-action: none; /* mobile */
}


/* =========================
   CONTENEUR GLOBAL
   ========================= */
#vlm-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;

    /* centrer proprement */
    display: none;
}


/* =========================
   FOND SOMBRE
   ========================= */
#vlm-profile-modal .vlm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
}


/* =========================
   DIALOG (desktop centré)
   ========================= */
#vlm-profile-modal .vlm-modal-dialog {
    position: relative;
    z-index: 2;

    max-width: 600px;
    margin: 5vh auto;

    /* IMPORTANT : limite hauteur + scroll interne */
    max-height: 90vh;
    display: flex;
}


/* =========================
   CONTENU
   ========================= */
#vlm-profile-modal .vlm-modal-content {
    background: #fff url('../images/bg_traits.svg') no-repeat center center;
    background-size: cover;

    border-radius: 10px;

    overflow: hidden;

    /* 🔥 clé responsive */
    display: flex;
    flex-direction: column;
    width: 100%;
}


/* =========================
   HEADER
   ========================= */
#vlm-profile-modal .vlm-modal-header {
    border: none;
    padding: 2rem 2rem 1rem;
    text-align: center;
    flex-shrink: 0;
}

#vlm-profile-modal .vlm-modal-title {
    font-size: 33px;
    margin: 0;
}


/* =========================
   BODY (SCROLL INTERNE 🔥)
   ========================= */
#vlm-profile-modal .vlm-modal-body {
    padding: 1rem 1.5rem;

    overflow-y: auto; /* ⭐⭐ FIX PRINCIPAL ⭐⭐ */
    flex: 1;
}

#vlm-profile-modal .vlm-modal-intro {
    text-align: center;
    font-style: italic;
    margin-bottom: 1rem;
}


/* =========================
   GRILLE
   ========================= */
#vlm-profile-modal .vlm-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    justify-items: center;
}


/* =========================
   CARTE PROFIL
   ========================= */
#vlm-profile-modal .vlm-profile-card {
    position: relative;
    cursor: pointer;
    border: none;
    width: 100%;
    background: transparent;

    transition: transform .15s ease;
}

#vlm-profile-modal .vlm-profile-card:hover {
    transform: translateY(-3px);
}


/* Cercle décoratif */
#vlm-profile-modal .vlm-profile-card-img {
    position: relative;
    width: 100%;
    max-width: 190px; /* desktop */
    margin: 0 auto;
    z-index: 0;
}

#vlm-profile-modal .vlm-profile-card-img::before {
    content: "";
    position: absolute;
    inset: 0;
    right: -10px;
    top: 0;
    background: #372627;
    border-radius: 50%;
    z-index: 0;
}


/* Contenu */
#vlm-profile-modal .vlm-profile-card-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}


/* Image */
#vlm-profile-modal .vlm-profile-card img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}


/* Titre */
#vlm-profile-modal .vlm-profile-card h3 {
    background: #f6f6f6;
    margin: -20px 0 0;
    padding: 10px;
    font-size: 18px;
    position: relative;
}


/* Texte */
#vlm-profile-modal .vlm-profile-description {
    font-size: 12px;
    line-height: 15px;
    padding: 10px 0;
}
.vlm-profile-description *{
    margin:0;
    padding:0;
}


/* =========================
   FOOTER
   ========================= */
#vlm-profile-modal .vlm-modal-footer {
    padding: 1rem;
    text-align: center;
    font-size: .85rem;
    color: #666;
    flex-shrink: 0;
}


/* =========================
   LOADING
   ========================= */
#vlm-profile-modal.vlm-loading {
    pointer-events: none;
    opacity: .6;
}


/* ======================================================
   📱 RESPONSIVE MOBILE
   ====================================================== */

@media (max-width: 900px) {

    #vlm-profile-modal .vlm-profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #vlm-profile-modal .vlm-profile-card,
    #vlm-profile-modal .vlm-profile-card img {
        max-width: 140px;
    }
}

@media (max-width: 600px) {

    /* plein écran mobile */
    #vlm-profile-modal .vlm-modal-dialog {
        margin: 0;
        max-width: none;
        max-height: none;
        height: 100vh;
    }

    #vlm-profile-modal .vlm-modal-content {
        border-radius: 0;
        height: 100%;
    }

    /* 1 carte par ligne pour lisibilité */
    #vlm-profile-modal .vlm-profile-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    #vlm-profile-modal .vlm-profile-card {
        width: 100%;
        max-width: 260px;
    }

    #vlm-profile-modal .vlm-profile-card img {
        max-width: 220px;
    }

    #vlm-profile-modal .vlm-modal-title {
        font-size: 24px;
    }

}
