/* =========================================================
   MODALS.CSS
   ---------------------------------------------------------
   Tout ce qui concerne :
   - modales génériques
   - formulaires
   - boutons
   - avatar
   - modale 2FA
   - OTP
   - autofill Chrome
   - responsive modales
   ========================================================= */

/* =========================================================
   MODALE GENERIQUE
   ---------------------------------------------------------
   Conteneur plein écran caché par défaut
   ========================================================= */
.modal{
  position:fixed;
  inset:0;
  z-index:30;
  display:none;
}

/* Modale visible */
.modal.open{
  display:block;
}

/* =========================================================
   FOND FLOU DES MODALES
   ---------------------------------------------------------
   Overlay sombre derrière la fenêtre
   ========================================================= */
.modal .backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.22);
  backdrop-filter:blur(14px) saturate(1.25);
}

/* =========================================================
   PANNEAU DE MODALE
   ---------------------------------------------------------
   Fenêtre centrale générique
   ========================================================= */
.modal .panel{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(340px, calc(100vw - 56px));
  padding:20px 20px 18px;
  border-radius:22px;
  background:rgba(8,14,20,.18);
  backdrop-filter:blur(28px) saturate(1.35);
  border:1px solid rgba(255,255,255,.20);
  box-shadow:
    0 28px 80px rgba(0,0,0,.50),
    inset 0 1px 0 rgba(255,255,255,.08);
  color:white;
}

/* =========================================================
   AVATAR GENERIQUE
   ---------------------------------------------------------
   Cercle au-dessus des modales login / 2FA / contact
   ========================================================= */
.modal-avatar{
  width:94px;
  height:94px;
  margin:0 auto 16px auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  background:transparent;
  backdrop-filter:blur(8px);
  box-shadow:
    0 20px 60px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* =========================================================
   AVATAR GENERIQUE STYLE PICTO
   ---------------------------------------------------------
   Icône utilisateur en CSS pur
   ========================================================= */
.avatar-icon{
  position:relative;
  width:52px;
  height:52px;
}

/* Tête */
.avatar-icon::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:25px;
  height:25px;
  border-radius:50%;
  background:#fff;
}

/* Buste */
.avatar-icon::after{
  content:"";
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:52px;
  height:22px;
  border-radius:40px 40px 16px 16px;
  background:#fff;
}

/* =========================================================
   AVATAR ENVELOPPE CONTACT
   ---------------------------------------------------------
   Icône enveloppe en CSS pur
   ========================================================= */

.avatar-mail{
  position:relative;
  width:40px;
  height:26px;
  border:2px solid #fff;
  border-radius:4px;
  box-sizing:border-box;

  /* petit ajustement visuel dans le cercle */
  transform:translateY(1px);
}

/* diagonale gauche */
.avatar-mail::before{
  content:"";
  position:absolute;
  left:7px;
  top:7px;
  width:14px;
  height:2px;
  background:#fff;
  transform:rotate(32.5deg);
  transform-origin:left center;
}

/* diagonale droite */
.avatar-mail::after{
  content:"";
  position:absolute;
  right:7px;
  top:7px;
  width:14px;
  height:2px;
  background:#fff;
  transform:rotate(-32.5deg);
  transform-origin:right center;
}
/* =========================================================
   EN-TETE DE MODALE
   ---------------------------------------------------------
   Zone titre / bouton fermeture
   ========================================================= */
.modal .head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

/* Titre de modale */
.modal .title{
  font-size:17px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:white;
}

/* Bouton fermeture éventuel */
.modal .close{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.18);
  color:white;
  cursor:pointer;
}

/* =========================================================
   CORPS DE MODALE
   ---------------------------------------------------------
   Zone principale des champs
   ========================================================= */
.modal .body{
  display:grid;
  gap:14px;
}

/* =========================================================
   BLOC CHAMP
   ---------------------------------------------------------
   Conteneur label + input/textarea
   ========================================================= */
.field{
  display:grid;
  gap:6px;
}

/* Label de champ */
.field label{
  font-size:12px;
  letter-spacing:.14em;
  color:rgba(235,248,255,.85);
}

/* =========================================================
   LIGNE DOUBLE CHAMP
   ---------------------------------------------------------
   Permet d'afficher deux champs sur une même ligne
   Exemple : Nom / Prénom
   ========================================================= */
.field-row{
  display:flex;
  gap:12px;
}

.field-row .field{
  width:50%;
}

/* =========================================================
   INPUT / TEXTAREA GENERIQUES
   ---------------------------------------------------------
   Champs de formulaire principaux
   ========================================================= */
.field input,
.field textarea{
  width:100%;
  box-sizing:border-box;
  font-size:15px;
  padding:12px 16px;
  border-radius:16px;
  color:rgba(235,248,255,.92);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.20);
  backdrop-filter:blur(6px);
  -webkit-appearance:none;
  appearance:none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 18px rgba(0,0,0,.25);
  transition:
    border .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    color .2s ease;
}

/* Textarea redimensionnable verticalement */
.field textarea{
  min-height:105px;
  resize:vertical;
  min-height:20svh;
}

/* Placeholder */
.field input::placeholder,
.field textarea::placeholder{
  color:rgba(220,235,245,.55);
}

/* Focus champ */
.field input:focus,
.field textarea:focus{
  outline:none;
  color:rgba(235,248,255,.95);
  background:rgba(255,255,255,.10);
  border-color:rgba(120,220,255,.55);
  box-shadow:
    0 0 0 2px rgba(0,170,255,.18),
    0 8px 28px rgba(0,120,255,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* =========================================================
   TEXTE D’AIDE
   ---------------------------------------------------------
   Petites notes informatives sous un champ ou dans une modale
   ========================================================= */
.hint{
  font-size:13px;
  line-height:1.45;
  color:rgba(235,248,255,.70);
}

/* =========================================================
   ZONE D’ACTIONS
   ---------------------------------------------------------
   Ligne de boutons en bas d’un formulaire
   ========================================================= */
.actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:18px;
}

/* =========================================================
   BOUTON GENERIQUE
   ---------------------------------------------------------
   Base des boutons
   ========================================================= */
.btn{
  font-size:13px;
  padding:11px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.16);
  color:white;
  cursor:pointer;
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
  -webkit-appearance:none;
  appearance:none;
}

/* Hover bouton */
.btn:hover{
  border-color:rgba(255,255,255,.40);
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}

/* =========================================================
   BOUTON PRINCIPAL
   ---------------------------------------------------------
   Variante accent bleu
   ========================================================= */
.btn.primary{
  background:rgba(0,170,255,.22);
  border-color:rgba(120,220,255,.35);
  box-shadow:0 16px 40px rgba(0,120,255,.18);
}

/* Hover bouton principal */
.btn.primary:hover{
  background:rgba(0,170,255,.30);
  border-color:rgba(120,220,255,.50);
}

/* =========================================================
   MODALE 2FA - PANNEAU LARGE
   ---------------------------------------------------------
   Version plus large que la modale standard
   ========================================================= */
.panel-2fa{
  width:min(620px, calc(100vw - 56px));
  padding:20px 20px 18px;
}
/* =========================================================
   MODALE CONTACT - PANNEAU LARGE
   ---------------------------------------------------------
   Version plus large que login et 2FA
   ========================================================= */
@media screen and (min-width:767px){
	.panel-contact{
      min-width: 420px;
    }
}
/* =========================================================
   AVATAR PHOTO 2FA
   ---------------------------------------------------------
   Avatar photo utilisateur dans la modale 2FA
   ========================================================= */
.modal-avatar{
  width:96px;
  height:96px;
  margin:0 auto 18px auto;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.04);
  backdrop-filter:blur(10px);
  box-shadow:
    0 18px 50px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* Image photo réelle */
.modal-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* =========================================================
   BLOCS INTERNES PROJECTSEND
   ---------------------------------------------------------
   Neutralisation des wrappers hérités
   ========================================================= */
.modal-ps-box{
  width:100%;
}

.modal-ps-interior{
  width:100%;
}

.modal-ps-box,
.modal-ps-interior,
.tab-content,
.tab-pane{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  margin:0;
}

/* =========================================================
   INFOS HAUTES 2FA
   ---------------------------------------------------------
   Nom, téléphone partiellement masqué, message explicatif
   ========================================================= */
#modal2FA .form_info{
  text-align:center;
  margin:4px 0 18px 0;
}

/* Nom utilisateur */
#modal2FA .form_info h2{
  margin:0 0 10px;
  font-size:20px;
  font-weight:600;
  letter-spacing:.03em;
  color:#fff;
}

/* Texte explicatif */
#modal2FA .form_info p{
  margin:6px 0;
  font-size:14px;
  line-height:1.45;
  color:rgba(235,248,255,.74);
}

/* Reset fieldset */
#modal2FA fieldset{
  border:none;
  padding:0;
  margin:0;
  min-width:0;
}

/* Espace sous le groupe OTP */
#modal2FA .form-group.row{
  margin:0 0 18px 0;
}

/* =========================================================
   CONTENEUR DES CASES OTP
   ---------------------------------------------------------
   Ligne des 6 cases de code
   ========================================================= */
#otp_inputs{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}

/* =========================================================
   CASE OTP
   ---------------------------------------------------------
   Champ individuel pour un chiffre
   ========================================================= */
#otp_inputs input{
  width:48px;
  height:58px;
  padding:0;
  margin:0;
  text-align:center;
  font-size:20px;
  font-weight:600;
  border-radius:14px;
  color:rgba(235,248,255,.95);
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.20);
  backdrop-filter:blur(6px);
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 18px rgba(0,0,0,.25);
  transition:
    border .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    color .2s ease,
    transform .18s ease;
}

/* Focus case OTP */
#otp_inputs input:focus{
  outline:none;
  color:rgba(235,248,255,.98);
  background:rgba(255,255,255,.10);
  border-color:rgba(120,220,255,.55);
  box-shadow:
    0 0 0 2px rgba(0,170,255,.18),
    0 8px 28px rgba(0,120,255,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
  transform:translateY(-1px);
}

/* Supprime les flèches number sur WebKit */
#otp_inputs input::-webkit-outer-spin-button,
#otp_inputs input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

/* Supprime le style number sur Firefox */
#otp_inputs input[type="tel"]{
  -moz-appearance:textfield;
  appearance:textfield;
}

/* =========================================================
   BOUTONS INTERNES 2FA
   ---------------------------------------------------------
   Ligne des actions principales de validation
   ========================================================= */
#modal2FA .inside_form_buttons{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:4px;
}

/* Boutons dans la modale 2FA */
#modal2FA .btn{
  font-size:13px;
  padding:11px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.16);
  color:white;
  cursor:pointer;
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
  -webkit-appearance:none;
  appearance:none;
}

/* Hover des boutons 2FA */
#modal2FA .btn:hover{
  border-color:rgba(255,255,255,.40);
  background:rgba(255,255,255,.08);
  transform:translateY(-1px);
}

/* Bouton primaire 2FA */
#modal2FA .btn-primary{
  background:rgba(0,170,255,.22);
  border-color:rgba(120,220,255,.35);
  box-shadow:0 16px 40px rgba(0,120,255,.18);
}

/* Hover bouton primaire 2FA */
#modal2FA .btn-primary:hover{
  background:rgba(0,170,255,.30);
  border-color:rgba(120,220,255,.50);
}

/* Largeur mini bouton principal */
#modal2FA .btn-wide{
  min-width:132px;
}

/* =========================================================
   BLOC DEMANDE D’UN NOUVEAU CODE
   ---------------------------------------------------------
   Zone secondaire sous la saisie OTP
   ========================================================= */
#otp_request_new_container{
  margin-top:18px;
  padding-top:14px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,.08);
}

/* Titre du bloc nouveau code */
#otp_request_new_container h4{
  margin:0 0 10px 0;
  font-size:15px;
  font-weight:500;
  color:rgba(235,248,255,.82);
}

/* Petit bouton nouveau code */
#request_new_2fa_code.btn-sm{
  font-size:12px;
  padding:10px 14px;
  border-radius:13px;
}

/* Etat désactivé */
#modal2FA .btn[disabled],
#modal2FA .btn:disabled{
  opacity:.60;
  cursor:not-allowed;
  transform:none !important;
  box-shadow:none;
}

/* =========================================================
   LIEN RETOUR / QUITTER
   ---------------------------------------------------------
   Lien de retour vers login
   ========================================================= */
#modal2FA .login_form_links{
  margin-top:16px;
  text-align:center;
}

/* Reset paragraphe */
#modal2FA .login_form_links p{
  margin:0;
}

/* Lien retour */
#modal2FA .login_form_links a{
  color:rgba(220,235,245,.72);
  text-decoration:none;
  transition:color .18s ease;
}

/* Hover lien retour */
#modal2FA .login_form_links a:hover{
  color:rgba(235,248,255,.95);
}

/* =========================================================
   CHROME / EDGE AUTOFILL
   ---------------------------------------------------------
   Corrige les styles imposés automatiquement par le navigateur
   ========================================================= */

/* Force le navigateur à rester sur un schéma sombre */
#loginForm input,
#contactForm input,
#contactForm textarea{
  color-scheme:dark;
}

/* Apparence autofill normale */
#loginForm input:-webkit-autofill,
#loginForm input:-webkit-autofill:hover,
#loginForm input:-webkit-autofill:focus,
#contactForm input:-webkit-autofill,
#contactForm input:-webkit-autofill:hover,
#contactForm input:-webkit-autofill:focus,
#contactForm textarea:-webkit-autofill,
#contactForm textarea:-webkit-autofill:hover,
#contactForm textarea:-webkit-autofill:focus{
  -webkit-text-fill-color:rgba(235,248,255,.92) !important;
  caret-color:rgba(235,248,255,.92) !important;
  border:1px solid rgba(255,255,255,.20) !important;
  -webkit-box-shadow:
    0 0 0 1000px rgba(255,255,255,.06) inset,
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 18px rgba(0,0,0,.25) !important;
  box-shadow:
    0 0 0 1000px rgba(255,255,255,.06) inset,
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 18px rgba(0,0,0,.25) !important;
  background-clip:padding-box !important;
  transition:
    background-color 99999s ease-out 0s,
    color 99999s ease-out 0s !important;
}

/* Apparence autofill au focus */
#loginForm input:-webkit-autofill:focus,
#contactForm input:-webkit-autofill:focus,
#contactForm textarea:-webkit-autofill:focus{
  -webkit-text-fill-color:rgba(235,248,255,.95) !important;
  border-color:rgba(120,220,255,.55) !important;
  -webkit-box-shadow:
    0 0 0 1000px rgba(255,255,255,.10) inset,
    0 0 0 2px rgba(0,170,255,.18),
    0 8px 28px rgba(0,120,255,.18),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  box-shadow:
    0 0 0 1000px rgba(255,255,255,.10) inset,
    0 0 0 2px rgba(0,170,255,.18),
    0 8px 28px rgba(0,120,255,.18),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

/* Corrige certains fonds internes Chrome */
input:-internal-autofill-selected{
  -webkit-text-fill-color:rgba(235,248,255,.92) !important;
}

/* =========================================================
   RESPONSIVE TABLETTE / MOBILE
   ---------------------------------------------------------
   Ajustements des modales et formulaires sur petits écrans
   ========================================================= */
@media (max-width:768px){
  .modal .panel{
    width:min(340px, calc(100vw - 56px));
    max-height:calc(100svh - 40px);
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    padding:16px 14px 14px;
    border-radius:20px;
  }

  .modal-avatar{
    width:78px;
    height:78px;
    margin:0 auto 8px;
  }

  .avatar-icon{
    width:42px;
    height:42px;
  }

  .avatar-icon::before{
    width:20px;
    height:20px;
  }

  .avatar-icon::after{
    width:42px;
    height:18px;
  }

  .modal .title{
    font-size:15px;
    letter-spacing:.18em;
  }

  .field input,
  .field textarea{
    font-size:14px;
    padding:10px 12px;
    border-radius:13px;
  }

  .field textarea{
    min-height:95px;
  }

  .hint{
    font-size:12px;
    line-height:1.4;
  }

  .actions{
    gap:8px;
    margin-top:2px;
  }

  .btn{
    font-size:12px;
    padding:10px 14px;
    border-radius:13px;
  }

  .modal .close{
    width:40px;
    height:40px;
    border-radius:12px;
  }

  .panel-2fa{
    width:min(94vw, 620px);
    padding:16px 14px 14px;
    border-radius:20px;
    max-height:calc(100svh - 40px);
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }

  #modal2FA .form_info h2{
    font-size:18px;
  }

  #modal2FA .form_info p{
    font-size:13px;
  }

  #otp_inputs{
    gap:6px;
  }

  #otp_inputs input{
    width:34px;
    height:38px;
    font-size:18px;
    border-radius:12px;
  }

  #modal2FA .inside_form_buttons{
    gap:8px;
    flex-wrap:wrap;
  }

  .field-row{
    flex-direction:column;
  }

  .field-row .field{
    width:100%;
  }
}

/* =========================================================
   RESPONSIVE TRES PETIT MOBILE
   ---------------------------------------------------------
   Réduction des cases OTP sur largeur très faible
   ========================================================= */
@media (max-width:420px){
  #otp_inputs{
    gap:5px;
  }

  #otp_inputs input{
    width:32px;
    height:36px;
    font-size:16px;
  }
}

/* =========================================================
   RESPONSIVE BASSE HAUTEUR
   ---------------------------------------------------------
   Ajustements quand l’écran est peu haut
   ========================================================= */
@media (max-height:560px){
  .modal .panel{
    max-height:calc(100svh - 24px);
  }

  .modal-avatar{
    width:68px;
    height:68px;
    margin-bottom:6px;
  }

  .avatar-icon{
    width:36px;
    height:36px;
  }

  .avatar-icon::before{
    width:18px;
    height:18px;
  }

  .avatar-icon::after{
    width:36px;
    height:16px;
  }

  .field textarea{
    min-height:80px;
  }
}



/* ========================================================= */


/* ========================================================= */
/* ========================================================= */

/* =========================================================
   SCAN DANS LE CERCLE AVATAR
   ---------------------------------------------------------
   - version finale
   - responsive conservé
   - compatible avec le JS actuel
   - le JS met is-loading sur .panel
   ========================================================= */

/* =========================================================
   VARIABLES DE BASE
   ========================================================= */
#modalLogin .modal-avatar,
#modal2FA .modal-avatar {
  --avatar-size: 96px;

  --scan-width: 6px;
  --scan-glow-width: 18px;

  /* PLUS HAUT */
  --scan-height: calc(var(--avatar-size) * 1.30);

  /* CENTRAGE AUTO */
  --scan-top: calc((var(--avatar-size) - var(--scan-height)) / 2);

  /* x4 PLUS LARGE */
  --scan-shift: 72px;

  position: relative;
  overflow: hidden;
}

/* =========================================================
   BARRE PRINCIPALE
   ========================================================= */
#modalLogin .panel.is-loading .modal-avatar::after,
#modal2FA .panel.is-loading .modal-avatar::after {
  content: "";
  position: absolute;
  top: var(--scan-top);
  left: 50%;
  width: var(--scan-width);
  height: var(--scan-height);
  margin-left: calc(var(--scan-width) / -2);

  pointer-events: none;
  z-index: 5;
  border-radius: 999px;

  background: linear-gradient(
    180deg,
    rgba(0, 217, 255, 0) 0%,
    rgba(120, 245, 255, 0.40) 20%,
    rgba(255, 255, 255, 0.92) 50%,
    rgba(120, 245, 255, 0.40) 80%,
    rgba(0, 217, 255, 0) 100%
  );

  box-shadow:
    0 0 10px rgba(0, 217, 255, 0.25),
    0 0 18px rgba(0, 217, 255, 0.16);

  animation: avatarScan 1.6s linear infinite;
}

/* =========================================================
   HALO
   ========================================================= */
#modalLogin .panel.is-loading .modal-avatar::before,
#modal2FA .panel.is-loading .modal-avatar::before {
  content: "";
  position: absolute;
  top: var(--scan-top);
  left: 50%;
  width: var(--scan-glow-width);
  height: var(--scan-height);
  margin-left: calc(var(--scan-glow-width) / -2);

  pointer-events: none;
  z-index: 4;
  border-radius: 999px;
  filter: blur(6px);

  background: linear-gradient(
    90deg,
    rgba(0, 217, 255, 0) 0%,
    rgba(0, 217, 255, 0.12) 50%,
    rgba(0, 217, 255, 0) 100%
  );

  animation: avatarScan 1.6s linear infinite;
}

/* =========================================================
   ANIMATION
   ========================================================= */
@keyframes avatarScan {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(calc(var(--scan-shift) * -1)); }
  75%  { transform: translateX(var(--scan-shift)); }
  100% { transform: translateX(0); }
}

/* =========================================================
   RESPONSIVE TABLETTE
   ========================================================= */
@media (max-width: 768px) {
  #modalLogin .modal-avatar,
  #modal2FA .modal-avatar {
    --avatar-size: 78px;

    --scan-width: 5px;
    --scan-glow-width: 15px;

    --scan-height: calc(var(--avatar-size) * 1.30);
    --scan-top: calc((var(--avatar-size) - var(--scan-height)) / 2);

    --scan-shift: 56px;
  }
}

/* =========================================================
   RESPONSIVE PETIT ECRAN
   ========================================================= */
@media (max-height: 560px) {
  #modalLogin .modal-avatar,
  #modal2FA .modal-avatar {
    --avatar-size: 68px;

    --scan-width: 4px;
    --scan-glow-width: 13px;

    --scan-height: calc(var(--avatar-size) * 1.30);
    --scan-top: calc((var(--avatar-size) - var(--scan-height)) / 2);

    --scan-shift: 48px;
  }
}






/* =========================================================
   COCHE VERTE HORS AVATAR
   ---------------------------------------------------------
   - centrée en haut
   - décalée de 40px à droite
   - décalée de -10px en haut
   ========================================================= */
/* =========================================================
   COCHE VERTE HORS AVATAR
   ---------------------------------------------------------
   - portée par .avatar-wrapper
   - visible hors du cercle (pas coupée)
   - responsive cohérent avec avatar
   ========================================================= */

/* Wrapper externe */
#modal2FA .avatar-wrapper{
  position:relative;
  width:96px;
  height:96px;
  margin:0 auto 18px auto;
}

/* Coche */
#modal2FA .avatar-wrapper.is-success::after{
  content:"✓";
  position:absolute;
bottom: -6px;
right: -6px;
top: auto;
  width:28px;
  height:28px;
  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:50;

  background:#19c46b;
  color:#fff;

  font-size:16px;
  font-weight:700;
  line-height:1;

  box-shadow:
    0 0 0 1px rgba(8,14,20,.90),
    0 0 12px rgba(25,196,107,.35),
    0 0 22px rgba(25,196,107,.20);

  animation:avixo2faSuccessPop 220ms ease-out forwards;
}

@keyframes avixo2faSuccessPop{
  0%{
    opacity:0;
    transform:scale(.6);
  }
  100%{
    opacity:1;
    transform:scale(1);
  }
}

/* =========================================================
   RESPONSIVE TABLETTE / MOBILE
   ========================================================= */
@media (max-width:768px){
  #modal2FA .avatar-wrapper{
    width:78px;
    height:78px;
    margin:0 auto 8px auto;
  }

  #modal2FA .avatar-wrapper.is-success::after{
bottom: -5px;
right: -5px;
top: auto;
    width:24px;
    height:24px;
    font-size:14px;
    box-shadow:
      0 0 0 2px rgba(8,14,20,.90),
      0 0 10px rgba(25,196,107,.35),
      0 0 18px rgba(25,196,107,.20);
  }
}

/* =========================================================
   RESPONSIVE BASSE HAUTEUR
   ========================================================= */
@media (max-height:560px){
  #modal2FA .avatar-wrapper{
    width:68px;
    height:68px;
    margin:0 auto 6px auto;
  }

  #modal2FA .avatar-wrapper.is-success::after{
bottom: -4px;
right: -4px;
top: auto;
    width:22px;
    height:22px;
    font-size:13px;
    box-shadow:
      0 0 0 2px rgba(8,14,20,.90),
      0 0 8px rgba(25,196,107,.35),
      0 0 16px rgba(25,196,107,.20);
  }
}
