/* ============================================================================
   Login customers — panneau visuel gauche « contrôle avant appel »
   Récit : un lead arrive → la carte de contrôle déroule les 4 vérifications
   (jeton, numéro, consentement, opposabilité) → la décision s'allume à droite
   (« Vous pouvez appeler » / « Ne pas appeler »).
   Composition sur une scène fixe 1160×800 mise à l'échelle par LoginVerify.js
   (zoom → texte net à toute résolution). Séquence pilotée par data-state.
   ============================================================================ */

.login-verify-panel {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(1100px 720px at 62% 34%, #13214a 0%, #0b1130 46%, #06091c 100%);
}

/* --- Scène (repère fixe 1160×800) ---------------------------------------- */
.cvv-stage {
    position: relative;
    width: 1160px;
    height: 800px;
    flex: 0 0 auto;
    font-family: inherit;
    user-select: none;
}

/* --- Plan 3D commun : même fuite que le panneau providers ------------------
   --cvv-rx / --cvv-ry : offsets de parallaxe souris (LoginVerify.js, lissés).
   Les étoiles, la marque et les badges restent hors du plan. */
.cvv-scene {
    position: absolute;
    inset: 0;
    /* Décalage vers la droite SANS changer la largeur (left seul rétrécirait
       la boîte → le SVG 100% se compresse et les jonctions se désalignent). */
    left: 24px;
    right: -24px;
    transform: perspective(620px)
        rotateY(calc(7deg + var(--cvv-ry, 0deg)))
        rotateX(calc(1.2deg + var(--cvv-rx, 0deg)));
    transform-origin: 48% 50%;
}

/* --- Étoiles / poussière lumineuse ---------------------------------------- */
.cvv-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cvv-stars i {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #8fb3ff;
    opacity: 0.35;
    animation: cvv_twinkle 5s ease-in-out infinite;
}
.cvv-stars i:nth-child(2n) { animation-delay: 1.2s; width: 2px; height: 2px; }
.cvv-stars i:nth-child(3n) { animation-delay: 2.4s; opacity: 0.22; }
.cvv-stars i:nth-child(5n) { animation-delay: 3.6s; background: #63e6a8; opacity: 0.2; }
@keyframes cvv_twinkle {
    0%, 100% { opacity: 0.12; }
    50%      { opacity: 0.45; }
}

/* --- Marque + accroche (hors plan 3D) ------------------------------------- */
.cvv-brand {
    position: absolute;
    left: 34px;
    top: 26px;
    width: 380px;
    z-index: 3;
}
.cvv-brand-title {
    margin: 14px 0 4px;
    min-height: 22px;
    color: #eaf1ff;
    font-size: 17px;
    font-weight: 500;
    opacity: 0.9;
}
.cvv-brand-sub {
    margin: 0;
    min-height: 34px;
    color: #93a8d6;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.75;
}

/* --- Connecteurs SVG ------------------------------------------------------- */
.cvv-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.cvv-link-base {
    stroke: rgba(102, 140, 235, 0.18);
    stroke-width: 1.6;
    fill: none;
}
.cvv-link-flow {
    stroke: url(#cvv_grad_blue);
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 14 150;
    animation: cvv_dash 3.4s linear infinite;
    filter: drop-shadow(0 0 4px rgba(110, 168, 255, 0.5));
    opacity: 0.45;
    transition: opacity 0.5s ease;
}
/* Le lien du lead en cours de contrôle est le seul pleinement lumineux. */
.cvv-link-flow.is-active {
    opacity: 1;
    animation-duration: 1.9s;
}
.cvv-link-flow.d2 { animation-delay: 1.1s; }
.cvv-link-flow.d3 { animation-delay: 2.2s; }
/* Sortie carte → décision : n'existe qu'une fois le verdict rendu. */
.cvv-link-out {
    stroke: url(#cvv_grad_green);
    stroke-width: 2.6;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 18 130;
    filter: drop-shadow(0 0 5px rgba(58, 212, 138, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cvv-stage[data-phase="done"] .cvv-link-out {
    opacity: 1;
    animation: cvv_dash 1.6s linear infinite;
}
.cvv-stage[data-verdict="ko"] .cvv-link-out {
    stroke: url(#cvv_grad_red);
    filter: drop-shadow(0 0 5px rgba(255, 106, 110, 0.55));
}
@keyframes cvv_dash {
    from { stroke-dashoffset: 164; }
    to   { stroke-dashoffset: 0; }
}

/* --- Colonne : leads reçus -------------------------------------------------- */
.cvv-col-label {
    position: absolute;
    left: 36px;
    top: 196px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(148, 172, 230, 0.55);
}
.cvv-lead-card {
    position: absolute;
    left: 28px;
    width: 252px;
    height: 88px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(22, 32, 66, 0.75), rgba(12, 18, 42, 0.85));
    border: 1px solid rgba(110, 140, 220, 0.14);
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
    transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}
.cvv-lead-card.q1 { top: 218px; }
.cvv-lead-card.q2 { top: 326px; }
.cvv-lead-card.q3 { top: 434px; }
/* Lead en cours de contrôle : il avance d'un cran vers le lecteur. */
.cvv-lead-card.is-active {
    border-color: rgba(120, 170, 255, 0.5);
    box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.85), 0 0 26px -6px rgba(77, 124, 254, 0.45);
    transform: translateX(10px);
}
.cvv-lead-ico {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(77, 124, 254, 0.12);
    border: 1px solid rgba(110, 156, 255, 0.22);
}
.cvv-lead-ico svg {
    width: 20px;
    height: 20px;
    stroke: #7fa7ff;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cvv-lead-body { flex: 1 1 auto; min-width: 0; }
.cvv-lead-name {
    display: block;
    color: #e8eeff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}
.cvv-lead-src {
    display: block;
    color: #8095c4;
    font-size: 11px;
    margin-bottom: 6px;
}
.cvv-lead-bar {
    display: block;
    height: 4px;
    width: 60%;
    border-radius: 2px;
    background: rgba(142, 166, 220, 0.18);
}
.cvv-lead-card.is-active .cvv-lead-bar {
    background: linear-gradient(90deg, rgba(110, 168, 255, 0.9), rgba(110, 168, 255, 0.15));
}

/* Point de connexion lumineux au bord droit de chaque fiche */
.cvv-node {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9cc0ff;
    box-shadow: 0 0 10px 2px rgba(110, 168, 255, 0.75);
}
.cvv-node::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(110, 168, 255, 0.5);
    animation: cvv_pulse 2.6s ease-out infinite;
}
.cvv-node.n1 { left: 276px; top: 257px; }
.cvv-node.n2 { left: 276px; top: 365px; }
.cvv-node.n3 { left: 276px; top: 473px; }
.cvv-node.n2::after { animation-delay: 0.8s; }
.cvv-node.n3::after { animation-delay: 1.6s; }
@keyframes cvv_pulse {
    0%   { transform: scale(0.6); opacity: 0.9; }
    70%  { transform: scale(1.9); opacity: 0; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* --- Carte de contrôle ------------------------------------------------------ */
.cvv-card-wrap {
    position: absolute;
    left: 404px;
    top: 176px;
    width: 392px;
    height: 470px;
    perspective: 1600px;
    transform-style: preserve-3d;
    animation: cvv_float 7s ease-in-out infinite;
}
@keyframes cvv_float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
/* Aura ambiante : bleue pendant le contrôle, verte au feu vert, rouge au refus. */
.cvv-card-wrap::before {
    content: "";
    position: absolute;
    inset: -55px -70px;
    transform: translateZ(-90px);
    background:
        radial-gradient(55% 60% at 20% 40%, rgba(77, 124, 254, 0.5), transparent 70%),
        radial-gradient(50% 55% at 82% 32%, rgba(56, 92, 190, 0.34), transparent 70%),
        radial-gradient(60% 50% at 50% 86%, rgba(56, 92, 190, 0.26), transparent 72%);
    filter: blur(34px);
    animation: cvv_glow 6s ease-in-out infinite;
    transition: background 0.7s ease;
    pointer-events: none;
}
.cvv-stage[data-phase="done"][data-verdict="ok"] .cvv-card-wrap::before {
    background:
        radial-gradient(55% 60% at 20% 40%, rgba(58, 212, 138, 0.42), transparent 70%),
        radial-gradient(50% 55% at 82% 32%, rgba(77, 124, 254, 0.32), transparent 70%),
        radial-gradient(60% 50% at 50% 86%, rgba(58, 212, 138, 0.24), transparent 72%);
}
.cvv-stage[data-phase="done"][data-verdict="ko"] .cvv-card-wrap::before {
    background:
        radial-gradient(55% 60% at 20% 40%, rgba(255, 90, 95, 0.42), transparent 70%),
        radial-gradient(50% 55% at 82% 32%, rgba(120, 60, 120, 0.3), transparent 70%),
        radial-gradient(60% 50% at 50% 86%, rgba(255, 90, 95, 0.22), transparent 72%);
}
@keyframes cvv_glow {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 0.9; }
}
/* Plaque arrière : épaisseur de la dalle. */
.cvv-card-wrap::after {
    content: "";
    position: absolute;
    inset: 14px -12px -14px 12px;
    border-radius: 26px;
    transform: rotateY(calc(4deg + var(--cvv-ry, 0deg) * 1.2))
        rotateX(calc(2deg + var(--cvv-rx, 0deg) * 1.2))
        translateZ(-52px);
    background: linear-gradient(160deg, rgba(16, 24, 52, 0.85), rgba(6, 9, 22, 0.92));
    border: 1px solid rgba(90, 120, 200, 0.12);
    box-shadow: 0 40px 70px -25px rgba(0, 0, 0, 0.95);
    pointer-events: none;
}
.cvv-card {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 26px 24px 0;
    border-radius: 24px;
    transform: rotateY(calc(4deg + var(--cvv-ry, 0deg) * 1.2))
        rotateX(calc(2deg + var(--cvv-rx, 0deg) * 1.2));
    transform-style: preserve-3d;
}
/* Couche verre : fond, flou, ombres, clip du faisceau de scan. */
.cvv-card-bg {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    transform: translateZ(0);
    background: linear-gradient(160deg, rgba(28, 40, 82, 0.62), rgba(10, 15, 34, 0.78));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        -55px 12px 110px -28px rgba(77, 124, 254, 0.5),
        55px 24px 110px -28px rgba(56, 92, 190, 0.34),
        0 45px 80px -28px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 46px rgba(80, 122, 235, 0.12);
    overflow: hidden;
    pointer-events: none;
}
/* Reflet « verre » : sheen haut + halo qui suit la souris. */
.cvv-card-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background:
        radial-gradient(160px 130px at var(--cvv-mx, 30%) var(--cvv-my, 0%),
            rgba(170, 200, 255, 0.14), transparent 70%),
        linear-gradient(178deg, rgba(255, 255, 255, 0.07), transparent 16%),
        radial-gradient(70% 30% at 22% 0%, rgba(150, 185, 255, 0.1), transparent 65%);
    pointer-events: none;
}
/* Bordure en dégradé, dessinée par masque — vire au vert / rouge au verdict. */
.cvv-card-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(120deg,
        rgba(130, 180, 255, 1) 0%,
        rgba(110, 168, 255, 0.3) 32%,
        rgba(90, 130, 220, 0.22) 68%,
        rgba(140, 185, 255, 0.9) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: background 0.6s ease;
    pointer-events: none;
}
.cvv-stage[data-phase="done"][data-verdict="ok"] .cvv-card-bg::before {
    background: linear-gradient(120deg,
        rgba(58, 212, 138, 1) 0%,
        rgba(58, 212, 138, 0.28) 34%,
        rgba(110, 168, 255, 0.24) 68%,
        rgba(130, 235, 185, 0.9) 100%);
}
.cvv-stage[data-phase="done"][data-verdict="ko"] .cvv-card-bg::before {
    background: linear-gradient(120deg,
        rgba(255, 120, 124, 1) 0%,
        rgba(255, 106, 110, 0.28) 34%,
        rgba(180, 90, 140, 0.24) 68%,
        rgba(255, 150, 154, 0.9) 100%);
}

/* Faisceau de scan : balaye la carte tant que le contrôle tourne. */
.cvv-scanbeam {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 130px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(120, 175, 255, 0.14) 45%,
        rgba(160, 200, 255, 0.34) 60%,
        transparent 100%);
    opacity: 0;
    pointer-events: none;
}
.cvv-stage[data-phase="scan"] .cvv-scanbeam {
    opacity: 1;
    animation: cvv_scan 2.1s ease-in-out infinite;
}
@keyframes cvv_scan {
    0%   { transform: translateY(-130px); }
    100% { transform: translateY(470px); }
}

/* Contenu de la carte : altitudes différentes → parallaxe interne. */
.cvv-card-head    { transform: translateZ(38px); }
.cvv-subject      { transform: translateZ(30px); }
.cvv-checks       { transform: translateZ(20px); }
.cvv-progress     { transform: translateZ(24px); }
/* .cvv-verdict porte son altitude dans sa propre règle (translateZ + translateY). */

.cvv-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.cvv-card-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(148, 172, 230, 0.7);
}
.cvv-card-token {
    color: #cfe0ff;
    font-size: 11.5px;
    font-weight: 600;
}
.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.3px;
}

/* Bandeau « sujet du contrôle » : qui est ce lead. */
.cvv-subject {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: rgba(15, 24, 52, 0.55);
    border: 1px solid rgba(110, 140, 220, 0.16);
}
.cvv-subject-ico {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(77, 124, 254, 0.14);
}
.cvv-subject-ico svg {
    width: 18px;
    height: 18px;
    stroke: #8fb4ff;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cvv-subject-body { flex: 1 1 auto; min-width: 0; }
/* Nom et numéro sur une ligne, source + date sur la suivante : la meta est
   trop longue pour cohabiter avec le numéro sur une seule ligne. */
.cvv-subject-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.cvv-subject-name {
    min-width: 0;
    color: #e9efff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cvv-subject-meta {
    display: block;
    margin-top: 3px;
    color: #7f92bf;
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cvv-subject-phone {
    flex: 0 0 auto;
    color: #cfe0ff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* --- Les 4 contrôles -------------------------------------------------------- */
.cvv-checks {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cvv-check {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 2px;
    border-top: 1px solid rgba(130, 155, 215, 0.12);
    opacity: 0.42;
    transition: opacity 0.35s ease;
}
.cvv-check:first-child { border-top: 0; }
.cvv-check[data-state="run"],
.cvv-check[data-state="ok"],
.cvv-check[data-state="ko"] { opacity: 1; }

.cvv-check-state {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(122, 148, 215, 0.28);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.cvv-check-state svg {
    position: absolute;
    width: 15px;
    height: 15px;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* Attente : un point sourd au centre. */
.cvv-check-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(146, 168, 216, 0.5);
    transition: opacity 0.3s ease;
}
/* En cours : arc qui tourne. */
.cvv-check-spin {
    position: absolute;
    inset: -1.5px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: #8fb4ff;
    border-right-color: rgba(143, 180, 255, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cvv-check[data-state="run"] .cvv-check-spin {
    opacity: 1;
    animation: cvv_spin 0.85s linear infinite;
}
.cvv-check[data-state="run"] .cvv-check-state {
    border-color: rgba(143, 180, 255, 0.35);
    box-shadow: 0 0 16px -2px rgba(110, 168, 255, 0.5);
}
@keyframes cvv_spin {
    to { transform: rotate(360deg); }
}
/* Validé : coche verte tracée. */
.cvv-check[data-state="ok"] .cvv-check-dot,
.cvv-check[data-state="ko"] .cvv-check-dot { opacity: 0; }
.cvv-check[data-state="ok"] .cvv-check-state {
    border-color: rgba(58, 212, 138, 0.85);
    background: rgba(58, 212, 138, 0.12);
    box-shadow: 0 0 18px -2px rgba(58, 212, 138, 0.55);
}
.cvv-check[data-state="ok"] .cvv-ico-ok { opacity: 1; }
.cvv-ico-ok {
    stroke: #6fe3ad;
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
}
.cvv-check[data-state="ok"] .cvv-ico-ok {
    animation: cvv_draw 0.45s ease forwards;
}
@keyframes cvv_draw {
    to { stroke-dashoffset: 0; }
}
/* Refusé : croix rouge. */
.cvv-check[data-state="ko"] .cvv-check-state {
    border-color: rgba(255, 120, 124, 0.85);
    background: rgba(255, 106, 110, 0.12);
    box-shadow: 0 0 18px -2px rgba(255, 106, 110, 0.5);
}
.cvv-check[data-state="ko"] .cvv-ico-ko { opacity: 1; }
.cvv-ico-ko { stroke: #ff9b9e; }

.cvv-check-label {
    flex: 1 1 auto;
    min-width: 0;
    color: #9db0d6;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.35s ease;
}
.cvv-check[data-state="ok"] .cvv-check-label,
.cvv-check[data-state="ko"] .cvv-check-label { color: #cbd8f2; }
.cvv-check-val {
    flex: 0 0 auto;
    max-width: 165px;
    text-align: right;
    color: #e9efff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.cvv-check[data-state="idle"] .cvv-check-val { color: #64769f; }
.cvv-check[data-state="ko"] .cvv-check-val { color: #ff9b9e; }

/* --- Barre de progression --------------------------------------------------- */
.cvv-progress {
    height: 3px;
    margin: 14px 2px 0;
    border-radius: 2px;
    background: rgba(122, 148, 215, 0.14);
    overflow: hidden;
}
.cvv-progress i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(110, 168, 255, 0.7), #8fb4ff);
    transition: width 0.55s ease, background 0.4s ease;
}
.cvv-stage[data-verdict="ok"] .cvv-progress i {
    background: linear-gradient(90deg, rgba(58, 212, 138, 0.7), #6fe3ad);
}
.cvv-stage[data-verdict="ko"] .cvv-progress i {
    background: linear-gradient(90deg, rgba(255, 106, 110, 0.7), #ff9b9e);
}

/* --- Attente : tient la place du verdict pendant le contrôle ----------------- */
.cvv-waiting {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: translateZ(20px);
    color: #7f92bf;
    font-size: 11.5px;
    opacity: 1;
    transition: opacity 0.35s ease;
}
.cvv-stage[data-phase="done"] .cvv-waiting { opacity: 0; }
.cvv-waiting-dots {
    display: inline-flex;
    gap: 4px;
}
.cvv-waiting-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8fb4ff;
    opacity: 0.35;
    animation: cvv_bounce 1.4s ease-in-out infinite;
}
.cvv-waiting-dots i:nth-child(2) { animation-delay: 0.2s; }
.cvv-waiting-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes cvv_bounce {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50%      { opacity: 0.9; transform: translateY(-3px); }
}

/* --- Verdict ---------------------------------------------------------------- */
.cvv-verdict {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    border-radius: 13px;
    background: rgba(122, 148, 215, 0.08);
    border: 1px solid rgba(122, 148, 215, 0.16);
    opacity: 0;
    transform: translateZ(44px) translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease, background 0.45s ease, border-color 0.45s ease;
}
.cvv-stage[data-phase="done"] .cvv-verdict {
    opacity: 1;
    transform: translateZ(44px) translateY(0);
}
.cvv-stage[data-verdict="ok"] .cvv-verdict {
    background: rgba(58, 212, 138, 0.14);
    border-color: rgba(58, 212, 138, 0.34);
}
.cvv-stage[data-verdict="ko"] .cvv-verdict {
    background: rgba(255, 106, 110, 0.13);
    border-color: rgba(255, 106, 110, 0.32);
}
.cvv-verdict-ico {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    color: #7fe6b4;
}
.cvv-stage[data-verdict="ko"] .cvv-verdict-ico { color: #ff9b9e; }
/* Coche ou croix selon le verdict — les deux sont dans le DOM, une seule visible. */
.cvv-verdict-ico svg {
    position: absolute;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cvv-stage[data-verdict="ok"] .cvv-vico-ok { opacity: 1; }
.cvv-stage[data-verdict="ko"] .cvv-vico-ko { opacity: 1; }
.cvv-verdict-body { flex: 1 1 auto; min-width: 0; }
.cvv-verdict-title {
    display: block;
    color: #7fe6b4;
    font-size: 13.5px;
    font-weight: 600;
}
.cvv-stage[data-verdict="ko"] .cvv-verdict-title { color: #ff9b9e; }
.cvv-verdict-sub {
    display: block;
    margin-top: 2px;
    color: #93a8d6;
    font-size: 10.5px;
}

/* --- Décision : le combiné ---------------------------------------------------- */
.cvv-decision {
    position: absolute;
    left: 870px;
    top: 236px;
    width: 262px;
    text-align: center;
}
.cvv-decision-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(148, 172, 230, 0.55);
    margin-bottom: 30px;
}
.cvv-dial {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto;
}
/* Anneaux d'appel : ne partent qu'au feu vert. */
.cvv-dial-rings i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(58, 212, 138, 0.55);
    opacity: 0;
}
.cvv-stage[data-phase="done"][data-verdict="ok"] .cvv-dial-rings i {
    animation: cvv_ring 2.6s ease-out infinite;
}
.cvv-stage[data-phase="done"][data-verdict="ok"] .cvv-dial-rings i:nth-child(2) { animation-delay: 0.85s; }
.cvv-stage[data-phase="done"][data-verdict="ok"] .cvv-dial-rings i:nth-child(3) { animation-delay: 1.7s; }
@keyframes cvv_ring {
    0%   { transform: scale(0.72); opacity: 0.85; }
    75%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}
.cvv-dial-disc {
    position: absolute;
    inset: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(26, 38, 76, 0.9), rgba(10, 15, 34, 0.95));
    border: 1.5px solid rgba(122, 148, 215, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}
.cvv-dial-disc svg {
    width: 42px;
    height: 42px;
    stroke: #7f92bf;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.5s ease;
}
.cvv-stage[data-phase="done"][data-verdict="ok"] .cvv-dial-disc {
    border-color: rgba(58, 212, 138, 0.75);
    background: linear-gradient(160deg, rgba(20, 58, 46, 0.92), rgba(8, 22, 20, 0.95));
    box-shadow: 0 0 40px -6px rgba(58, 212, 138, 0.65), inset 0 0 22px rgba(58, 212, 138, 0.18);
    animation: cvv_breathe 2.6s ease-in-out infinite;
}
.cvv-stage[data-phase="done"][data-verdict="ok"] .cvv-dial-disc svg { stroke: #7fe6b4; }
.cvv-stage[data-phase="done"][data-verdict="ko"] .cvv-dial-disc {
    border-color: rgba(255, 106, 110, 0.7);
    background: linear-gradient(160deg, rgba(58, 20, 26, 0.92), rgba(22, 8, 12, 0.95));
    box-shadow: 0 0 34px -8px rgba(255, 106, 110, 0.5);
}
.cvv-stage[data-phase="done"][data-verdict="ko"] .cvv-dial-disc svg { stroke: #ff9b9e; }
@keyframes cvv_breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.035); }
}
/* Barre oblique du combiné barré (refus) */
.cvv-dial-slash {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 2px;
    margin: -1px 0 0 -27px;
    border-radius: 2px;
    background: #ff9b9e;
    transform: rotate(-45deg) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}
.cvv-stage[data-phase="done"][data-verdict="ko"] .cvv-dial-slash {
    transform: rotate(-45deg) scaleX(1);
}

.cvv-decision-state {
    margin-top: 26px;
    color: #7f92bf;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.5s ease;
}
.cvv-stage[data-phase="done"][data-verdict="ok"] .cvv-decision-state { color: #7fe6b4; }
.cvv-stage[data-phase="done"][data-verdict="ko"] .cvv-decision-state { color: #ff9b9e; }
.cvv-decision-sub {
    margin-top: 7px;
    min-height: 30px;
    color: #7286b3;
    font-size: 11px;
    line-height: 1.45;
}

/* --- Badges bas de scène ----------------------------------------------------- */
.cvv-badges {
    position: absolute;
    left: 36px;
    top: 684px;
    display: flex;
    gap: 14px;
}
.cvv-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 12px;
    background: rgba(18, 27, 56, 0.6);
    border: 1px solid rgba(120, 150, 235, 0.22);
    color: #dbe5fb;
    font-size: 13px;
    font-weight: 500;
}
.cvv-badge svg {
    width: 17px;
    height: 17px;
    stroke: #8fb0f5;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Drapeau tricolore : trois aplats, donc ni stroke ni fill hérités du badge.
   L'arrondi vient du CSS (overflow), pas d'un clipPath — un id de moins. */
.cvv-badge .cvv-flag {
    flex: 0 0 auto;
    width: 21px;
    height: 14px;
    stroke: none;
    border-radius: 2.5px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Mention de protection des données, sous les badges. */
.cvv-privacy {
    position: absolute;
    left: 38px;
    top: 744px;
    width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.55;
    text-wrap: pretty;
}

/* --- Accessibilité ------------------------------------------------------------
   !important est nécessaire ici : plusieurs animations sont posées par des
   sélecteurs d'état plus spécifiques (.cvv-stage[data-phase][data-verdict] …),
   qui l'emporteraient sinon sur ce bloc. */
@media (prefers-reduced-motion: reduce) {
    .cvv-link-flow,
    .cvv-link-out,
    .cvv-node::after,
    .cvv-card-wrap,
    .cvv-card-wrap::before,
    .cvv-stars i,
    .cvv-scanbeam,
    .cvv-check-spin,
    .cvv-dial-rings i,
    .cvv-dial-disc,
    .cvv-waiting-dots i,
    .cvv-ico-ok {
        animation: none !important;
    }
    .cvv-ico-ok { stroke-dashoffset: 0 !important; }
    .cvv-scanbeam { opacity: 0 !important; }
}
