@charset "utf-8";
/**
 * ================================================================
 * FICHIER : __MBR_verif_tel.css
 * EMPLACEMENT : _modules/__MBR_verif_tel/
 * SHORT_DESC : Styles de la modale de vérification OTP (SMS).
 * DESCRIPTION : Glassmorphism adapté Dark/Bright, responsive, intégré à theme.css.
 *               Couvre : overlay, carte modale, 6 inputs OTP, timer,
 *               boutons (valider / renvoyer / fermer), messages succès
 *               et erreur, badge "déjà validé", state loading.
 *
 * SOMMAIRE :
 *   - [OVERLAY]        Fond voilé pleine page
 *   - [CARTE]          Conteneur glassmorphism
 *   - [ENTETE]         Icone + titre + bouton fermer
 *   - [INTRO]          Texte explicatif + numéro cible
 *   - [GRILLE_CODE]    6 inputs chiffre
 *   - [ACTIONS]        Boutons Valider / Renvoyer
 *   - [TIMER]          Countdown 5 min
 *   - [MESSAGES]       Erreur / succès / info
 *   - [RESPONSIVE]     Adaptations < 900px puis < 560px
 *
 * MODIFICATIONS :
 *   - 29/04/2026 05:30 : Création initiale V3. A VALIDER PAR JaxX
 *   - 29/08/2026 02:28 : Harmonisation Bright/Dark Mode & Contrastes WCAG — A VALIDER PAR JaxX
 * ================================================================
 */

/* ========== [ANIMATIONS] ========== */

@keyframes verif-tel-apparition
{
    from
    {
        opacity: 0;
        transform: scale(0.96);
    }
    to
    {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== [OVERLAY] ========== */

.modale-verif-tel
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modale-verif-tel[data-visible="true"]
{
    display: flex;
}

.modale-verif-tel-overlay
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* ========== [CARTE] ========== */

.modale-verif-tel-contenu
{
    position: relative;
    z-index: 2;
    max-width: 460px;
    width: 92vw;
    padding: 2rem 1.75rem;
    background: var(--surface_card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border_subtle);
    border-radius: 1.25rem;
    box-shadow: var(--box-shadow-elevated, 0 10px 30px rgba(0, 0, 0, 0.25));
    animation: verif-tel-apparition 0.3s ease-out;
}

/* ========== [ENTETE] ========== */

.bouton-fermer-verif-tel
{
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text_muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bouton-fermer-verif-tel:hover
{
    background: var(--surface_card_hover);
    color: var(--text_heading);
}

.bouton-fermer-verif-tel .material-symbols-outlined
{
    font-size: 1.5rem;
}

.entete-verif-tel
{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem;
}

.icone-verif-tel
{
    font-size: 3rem;
    color: var(--cyan-accent);
    margin-bottom: 0.75rem;
}

.titre-verif-tel
{
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text_heading);
    text-align: center;
}

/* ========== [INTRO] ========== */

.intro-verif-tel
{
    margin: 0 0 1.5rem 0;
    color: var(--text_secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.telephone-affiche
{
    color: var(--cyan-accent);
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
}

/* ========== [GRILLE_CODE] ========== */

.grille-chiffres-otp
{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.chiffre-otp
{
    width: 100%;
    height: 56px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text_primary);
    background: var(--surface_input);
    border: 1px solid var(--border_subtle);
    border-radius: 0.6rem;
    outline: none;
    caret-color: var(--cyan-accent);
    transition: all 0.2s ease;
}

.chiffre-otp:focus
{
    border: 2px solid var(--cyan-accent);
    box-shadow: 0 0 0 3px var(--cyan-glow),
                0 0 12px var(--cyan-glow);
}

.chiffre-otp::placeholder
{
    color: var(--text_muted);
}

/* ========== [TIMER] ========== */

.minuteur-verif-tel
{
    margin: 1rem 0 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text_muted);
}

.compteur-verif-tel
{
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: var(--cyan-accent);
}

/* ========== [ACTIONS] ========== */

.actions-verif-tel
{
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: space-between;
}

.bouton-verifier-otp,
.bouton-renvoyer-otp
{
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bouton-verifier-otp
{
    background: linear-gradient(135deg, var(--cyan-accent) 0%, var(--mbr-cyan) 100%);
    color: #ffffff;
}

.bouton-verifier-otp:hover:not(:disabled)
{
    transform: scale(1.02);
    box-shadow: 0 4px 16px var(--cyan-glow);
}

.bouton-verifier-otp:disabled
{
    opacity: 0.4;
    cursor: not-allowed;
}

.bouton-renvoyer-otp
{
    background: var(--surface_input);
    border: 1px solid var(--border_subtle);
    color: var(--text_secondary);
}

.bouton-renvoyer-otp:hover:not(:disabled)
{
    background: var(--surface_card_hover);
    color: var(--text_primary);
    border-color: var(--cyan-accent);
}

.bouton-renvoyer-otp:disabled
{
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== [AIDE] ========== */

.aide-verif-tel
{
    margin: 1rem 0 0 0;
    font-size: 0.8rem;
    color: var(--text_muted);
    text-align: center;
    line-height: 1.4;
}

/* ========== [MESSAGES] ========== */

.message-verif-tel
{
    display: none;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-verif-tel[data-visible="true"]
{
    display: block;
}

.message-verif-tel-erreur
{
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error_color);
}

.message-verif-tel-succes
{
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--ok_color);
}

.message-verif-tel-info
{
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--cyan-accent);
}

/* ========== [RESPONSIVE] ========== */

@media (max-width: 900px)
{
    .modale-verif-tel-contenu
    {
        width: 94vw;
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 560px)
{
    .grille-chiffres-otp
    {
        gap: 0.45rem;
    }

    .chiffre-otp
    {
        height: 48px;
        font-size: 1.35rem;
    }

    .actions-verif-tel
    {
        flex-direction: column;
    }

    .bouton-verifier-otp,
    .bouton-renvoyer-otp
    {
        width: 100%;
    }
}
