/* ================================================================
   AXEANE KOMPTA — VISITE GUIDÉE (générique, tous écrans)
   Calque posé sur le <body> par VisiteGuideeService (services/VisiteGuideeService.js).
   Le cadre « perce » l'assombrissement par une ombre portée géante ; la bulle se place à côté.
   ================================================================ */
.vg-calque { position: fixed; inset: 0; z-index: 2000; font-family: var(--ax-font); }
.vg-bloqueur { position: absolute; inset: 0; }
.vg-cible { position: fixed; border-radius: 10px; pointer-events: none;
    box-shadow: 0 0 0 3px var(--ax-primary-light, #7986cb), 0 0 0 9999px rgba(15, 23, 42, .55);
    transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; }
.vg-bulle { position: fixed; background: #fff; border-radius: 12px; padding: 14px 16px 12px; box-sizing: border-box;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .28); font-size: 13.5px; color: var(--ax-text, #1e293b);
    transition: left .25s ease, top .25s ease; }
.vg-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.vg-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--ax-primary, #3f51b5); color: #fff; font-weight: 700; font-size: 13px; }
.vg-etape { font-size: 12px; font-weight: 600; color: var(--ax-text-sec, #64748b); text-transform: uppercase; letter-spacing: .04em; }
.vg-fermer { margin-left: auto; border: 0; background: none; color: var(--ax-text-sec, #64748b); width: 28px; height: 28px; border-radius: 6px; }
.vg-fermer:hover, .vg-fermer:focus-visible { background: #f1f5f9; color: var(--ax-text, #1e293b); outline: 0; }
.vg-bulle h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; color: #0f172a; }
.vg-bulle p { margin: 0; line-height: 1.55; }
.vg-points { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 10px; }
.vg-points span { width: 7px; height: 7px; border-radius: 50%; background: #dbe1ea; }
.vg-points span.vg-point-fait { background: var(--ax-primary-light, #7986cb); }
.vg-points span.vg-point-actif { width: 18px; border-radius: 4px; background: var(--ax-primary, #3f51b5); }
.vg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.vg-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px;
    border-top: 1px solid var(--ax-border, #e2e8f0); font-size: 12.5px; color: var(--ax-text-sec, #64748b); }
.vg-masquer { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: normal; cursor: pointer; }
.vg-masquer input[type="checkbox"] { margin: 0; width: 15px; height: 15px; accent-color: var(--ax-primary, #3f51b5); cursor: pointer; }
.vg-clavier kbd { font-size: 11.5px; padding: 0 4px; border-radius: 3px; border: 1px solid currentColor; background: transparent;
    color: inherit; box-shadow: none; }
/* Lecture automatique (« Me montrer » de l'assistant) : curseur qui glisse vers la zone de l'étape */
.vg-curseur { position: fixed; z-index: 1; pointer-events: none; font-size: 22px; color: #0f172a;
    text-shadow: 0 0 3px #fff, 0 0 6px #fff; transform: translate(-4px, -2px);
    transition: left .7s cubic-bezier(.4, 0, .2, 1), top .7s cubic-bezier(.4, 0, .2, 1); }
.vg-pause { min-width: 36px; }
@media (prefers-reduced-motion: reduce) {
    .vg-cible, .vg-bulle, .vg-curseur { transition: none; }
}

/* Bouton « Visite guidée » des écrans de configuration (directive vg-bouton-visite) */
.vg-btn-visite .fa-compass { color: var(--ax-primary, #3f51b5); }
.vg-badge-nouveau { margin-left: 6px; padding: 0 6px; border-radius: 9px; background: var(--ax-accent, #f59e0b); color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 16px; letter-spacing: .02em; }
/* Variante posée dans un en-tête de fenêtre coloré (popup Modèle écriture) */
.vg-btn-visite.vg-btn-entete { margin-left: auto; margin-right: 10px; position: relative; z-index: 1;
    background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; }
.vg-btn-visite.vg-btn-entete:hover, .vg-btn-visite.vg-btn-entete:focus-visible { background: rgba(255, 255, 255, .26); color: #fff; }
.vg-btn-visite.vg-btn-entete .fa-compass { color: #fff; }

/* ===== Annonce après connexion (directive ax-annonce-webinaire, NaxiDirectives.js) : carte non bloquante ===== */
/* bottom : au-dessus de la bulle du chat d'assistance (coin bas droit). */
.ax-annonce { position: fixed; right: 24px; bottom: 96px; z-index: 1500; width: 360px; max-width: calc(100vw - 32px);
    background: #fff; border-radius: 14px; overflow: hidden; font-family: var(--ax-font);
    color: var(--ax-text, #1e293b); box-shadow: 0 20px 48px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .08);
    animation: ax-annonce-entree .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes ax-annonce-entree { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ax-annonce-entete { position: relative; padding: 16px 18px 14px; color: #fff;
    background: linear-gradient(135deg, var(--ax-primary, #3f51b5) 0%, #2563eb 100%); }
.ax-annonce-icone { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: 8px; background: rgba(255, 255, 255, .18); font-size: 14px; vertical-align: middle; }
.ax-annonce-pastille { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px;
    background: rgba(255, 255, 255, .2); font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; vertical-align: middle; }
.ax-annonce-fermer { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0;
    border-radius: 6px; background: none; color: rgba(255, 255, 255, .85); }
.ax-annonce-fermer:hover, .ax-annonce-fermer:focus-visible { background: rgba(255, 255, 255, .18); color: #fff; outline: 0; }
.ax-annonce-entete h3 { margin: 12px 0 4px; font-size: 17px; font-weight: 700; line-height: 1.3; color: #fff; }
.ax-annonce-date { margin: 0; font-size: 13.5px; font-weight: 600; opacity: .95; }
.ax-annonce-date .fa { margin-right: 4px; }
.ax-annonce-corps { padding: 14px 18px 12px; }
.ax-annonce-corps p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--ax-text-sec, #475569); }
.ax-annonce-inscrire { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px;
    border-radius: 8px; background: var(--ax-primary, #3f51b5); color: #fff !important; font-weight: 600;
    font-size: 13.5px; text-decoration: none !important; transition: filter .15s; }
.ax-annonce-inscrire:hover, .ax-annonce-inscrire:focus-visible { filter: brightness(1.1); outline: 0; }
.ax-annonce-actions { display: flex; justify-content: space-between; margin-top: 8px; }
.ax-annonce-lien { border: 0; background: none; padding: 6px 4px; font-size: 12.5px; color: var(--ax-text-sec, #64748b); }
.ax-annonce-lien:hover, .ax-annonce-lien:focus-visible { color: var(--ax-text, #1e293b); text-decoration: underline; outline: 0; }

/* ===== Invitation à la double authentification après connexion (directive ax-invitation-mfa, NaxiDirectives.js) ===== */
/* Page pleine, sobre, au-dessus de l'application ; passe avant l'annonce webinaire et les visites guidées. */
.ax-mfa { position: fixed; inset: 0; z-index: 2100; overflow-y: auto; display: flex;
    padding: 32px 20px; background: #f8fafc; font-family: var(--ax-font); color: var(--ax-text, #1e293b);
    animation: ax-mfa-entree .3s ease-out; }
@keyframes ax-mfa-entree { from { opacity: 0; } to { opacity: 1; } }
.ax-mfa-contenu { margin: auto; width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ax-mfa-illustration { display: flex; align-items: center; justify-content: center; width: 168px; height: 168px;
    border-radius: 50%; background: #dbeafe; margin-bottom: 22px; }
.ax-mfa-pastille { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: #eff6ff; color: #1d4ed8; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.ax-mfa h2 { margin: 14px 0 10px; font-size: 26px; font-weight: 700; line-height: 1.25; color: #0f172a; }
.ax-mfa-intro { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: #334155; }
.ax-mfa-points { list-style: none; margin: 0 0 26px; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ax-mfa-points li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 12px; font-size: 13.5px; line-height: 1.55; color: #475569; }
.ax-mfa-points strong { display: block; margin-bottom: 2px; font-size: 14px; color: #0f172a; }
.ax-mfa-puce { flex: 0 0 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; background: #eff6ff; color: #2563eb; font-size: 17px; }
.ax-mfa-activer { width: 100%; max-width: 440px; height: 50px; border: 0; border-radius: 12px; display: inline-flex;
    align-items: center; justify-content: center; gap: 9px; background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 6px 16px rgba(37, 99, 235, .28); transition: filter .15s, transform .15s; }
.ax-mfa-activer:hover { filter: brightness(1.06); }
.ax-mfa-activer:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.ax-mfa-passer { margin-top: 16px; border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-size: 14.5px; color: #334155; }
.ax-mfa-passer:hover, .ax-mfa-passer:focus-visible { color: #0f172a; text-decoration: underline; outline: 0; }
.ax-mfa-note { margin: 6px 0 0; font-size: 12.5px; color: #64748b; }
body.ax-mfa-ouvert .assistant-ia, body.ax-mfa-ouvert .crisp-client { display: none !important; }
@media (prefers-reduced-motion: reduce) { .ax-mfa { animation: none; } .ax-mfa-activer { transition: none; } }
