/* =============================================================
   Samabadge - Animations mock-UI vitrine (Phase 3)
   Animations qui simulent l'usage reel du produit, jouees en boucle
   a l'interieur des .v3-showcase de la page /modules.
   ============================================================= */

/* ---------------- Cadre commun ---------------- */
.va-stage {
    position: absolute;
    inset: 0;
    background: #FFFFFF;
    color: #0F172A;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    user-select: none;
}

/* Scenes (1 visible a la fois, fade-in) */
.va-scene {
    position: absolute;
    inset: 0;
    padding: 0.9rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}
.va-scene.active {
    opacity: 1;
    transform: none;
}

/* Curseur anime (style flèche système) */
.va-cursor {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 20;
    transition: top 0.85s cubic-bezier(.55,.08,.18,1.01), left 0.85s cubic-bezier(.55,.08,.18,1.01), transform 0.2s ease;
    will-change: top, left;
    filter: drop-shadow(0 4px 12px rgba(15,23,42,0.25));
}
.va-cursor::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path fill='%231E293B' stroke='white' stroke-width='1.2' d='M3 2 L3 17 L7 13.5 L9.5 19 L12 18 L9.5 12.5 L15 12.5 Z'/></svg>") center/contain no-repeat;
}
.va-cursor.clicking::after {
    content: '';
    position: absolute;
    left: 11px; top: 11px;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(124,58,237,0.35);
    animation: va-click-ring 0.5s ease-out;
}
@keyframes va-click-ring {
    0%   { width: 0; height: 0; opacity: 1; transform: translate(0,0); }
    100% { width: 40px; height: 40px; opacity: 0; transform: translate(-20px,-20px); }
}

/* ---------------- Header de page mock ---------------- */
.va-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.va-page-title {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 800; font-size: 14px;
}
.va-page-title i { color: #7C3AED; font-size: 16px; }
.va-page-title .count {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #475569;
    font-weight: 600;
}
.va-btn-new {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 11px;
    background: linear-gradient(135deg,#7C3AED,#A855F7);
    color: #fff; font-weight: 700; font-size: 11px;
    border-radius: 999px;
    border: none;
}
.va-btn-new i { font-size: 12px; }

.va-search {
    position: relative;
    margin-bottom: 0.65rem;
}
.va-search input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 12px;
    background: #F8FAFC;
    transition: border-color 0.2s, background 0.2s;
    pointer-events: none;
    color: #0F172A;
    font-family: inherit;
}
.va-search.focus input {
    background: #fff;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.va-search.focus input::placeholder { opacity: 0; }
.va-search .typed {
    position: absolute;
    left: 30px; top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #0F172A;
    font-weight: 600;
    pointer-events: none;
}
.va-search::before {
    content: '\F52A'; /* bi-search */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 12px;
}
.va-typed-caret {
    display: inline-block;
    width: 1px;
    height: 1em;
    background: #7C3AED;
    vertical-align: middle;
    margin-left: 1px;
    animation: va-blink 0.9s steps(2) infinite;
}
@keyframes va-blink {
    50% { opacity: 0; }
}

/* ---------------- Scene LISTE (HR) ---------------- */
.va-list { display: flex; flex-direction: column; gap: 4px; }
.va-row {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 9px;
    border: 1px solid #F1F5F9;
    border-radius: 9px;
    background: #fff;
    transition: all 0.3s ease;
}
.va-row.dim { opacity: 0.25; }
.va-row.highlight {
    border-color: #7C3AED;
    background: rgba(124,58,237,0.04);
    box-shadow: 0 4px 16px -6px rgba(124,58,237,0.35);
    transform: translateX(2px);
}
.va-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    flex: 0 0 auto;
}
.va-row .info { flex: 1; min-width: 0; }
.va-row .name { font-weight: 700; font-size: 12px; line-height: 1.2; }
.va-row .role { font-size: 10.5px; color: #64748B; line-height: 1.2; }
.va-pill {
    font-size: 9.5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}
.va-pill.green { background: rgba(16,185,129,0.12); color: #047857; }
.va-pill.amber { background: rgba(245,158,11,0.12); color: #B45309; }
.va-pill.slate { background: #F1F5F9; color: #475569; }

/* Couleurs des avatars par index */
.va-row:nth-child(1) .va-avatar { background: linear-gradient(135deg,#7C3AED,#A855F7); }
.va-row:nth-child(2) .va-avatar { background: linear-gradient(135deg,#2563EB,#06B6D4); }
.va-row:nth-child(3) .va-avatar { background: linear-gradient(135deg,#EC4899,#F43F5E); }
.va-row:nth-child(4) .va-avatar { background: linear-gradient(135deg,#10B981,#059669); }
.va-row:nth-child(5) .va-avatar { background: linear-gradient(135deg,#F59E0B,#EC4899); }
.va-row:nth-child(6) .va-avatar { background: linear-gradient(135deg,#06B6D4,#2563EB); }

/* ---------------- Scene FICHE (HR) ---------------- */
.va-fiche-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 0.7rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #F1F5F9;
}
.va-fiche-header .va-avatar {
    width: 44px; height: 44px;
    font-size: 14px;
    background: linear-gradient(135deg,#7C3AED,#A855F7);
}
.va-fiche-header .info { flex: 1; min-width: 0; }
.va-fiche-header .name { font-weight: 800; font-size: 14px; line-height: 1.1; }
.va-fiche-header .role { font-size: 11px; color: #64748B; }
.va-fiche-tabs {
    display: flex; gap: 12px;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid #F1F5F9;
    font-size: 11px;
    font-weight: 600;
}
.va-fiche-tabs span {
    padding: 4px 0;
    color: #94A3B8;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.va-fiche-tabs span.active {
    color: #7C3AED;
    border-bottom-color: #7C3AED;
}
.va-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 0.75rem;
}
.va-field { display: flex; flex-direction: column; gap: 3px; }
.va-field .lbl {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    font-weight: 700;
}
.va-field .val {
    font-size: 12px;
    padding: 5px 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    min-height: 24px;
    font-weight: 600;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}
.va-field.filling .val {
    background: #fff;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.va-field.done .val::after {
    content: '\F26B'; /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    color: #10B981;
    margin-left: 6px;
}

.va-fiche-footer {
    position: absolute;
    left: 0.9rem; right: 0.9rem;
    bottom: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.va-btn-generate {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px;
    background: linear-gradient(135deg,#7C3AED,#A855F7);
    color: #fff; font-weight: 700; font-size: 12px;
    border-radius: 999px;
    border: none;
    box-shadow: 0 8px 18px -6px rgba(124,58,237,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.va-btn-generate.hovered {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px rgba(124,58,237,0.6);
}
.va-btn-generate.pressed { transform: translateY(1px); }

/* Toast "PDF genere" */
.va-toast {
    position: absolute;
    right: 0.9rem; bottom: 4rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex; align-items: center; gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    box-shadow: 0 20px 40px -10px rgba(15,23,42,0.18);
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.va-toast.show {
    opacity: 1;
    transform: none;
}
.va-toast .ic {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(16,185,129,0.12);
    color: #10B981;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.va-toast small {
    display: block;
    font-weight: 500;
    color: #64748B;
    font-size: 10px;
}

/* ---------------- Reduced motion : montrer une image fixe ---------------- */
@media (prefers-reduced-motion: reduce) {
    .va-cursor { display: none; }
    .va-scene { transition: none; }
}

/* ---------------- Mobile : reduire le padding ---------------- */
@media (max-width: 576px) {
    .va-stage { font-size: 12px; }
    .va-scene { padding: 0.65rem; }
    .va-fiche-footer { left: 0.65rem; right: 0.65rem; bottom: 0.65rem; }
}

/* =============================================================
   POINTAGE / Borne QR
   ============================================================= */
.va-borne {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.va-borne-head {
    padding: 10px 14px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex: 0 0 auto;
}
.va-borne-head .logo {
    display: flex; align-items: center; gap: 6px;
    font-weight: 800; font-size: 13px;
    letter-spacing: 0.02em;
}
.va-borne-head .logo i { color: #06B6D4; font-size: 16px; }
.va-borne-head .clock {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 12px;
    color: #94A3B8;
}
.va-borne-body {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative;
    padding: 12px;
    min-height: 0;
}
.va-borne-prompt {
    font-size: 13px; font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: #E2E8F0;
}
.va-borne-prompt span { color: #06B6D4; }
.va-qr-frame {
    width: 150px; height: 150px;
    border-radius: 20px;
    background: rgba(6,182,212,0.05);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease;
}
.va-qr-frame::before,
.va-qr-frame::after,
.va-qr-frame .c1,
.va-qr-frame .c2 {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    border: 3px solid #06B6D4;
    border-radius: 6px;
    transition: border-color 0.3s;
}
.va-qr-frame::before { top: 6px; left: 6px;  border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.va-qr-frame::after  { top: 6px; right: 6px; border-left:  none; border-bottom: none; border-top-right-radius: 8px; }
.va-qr-frame .c1      { bottom: 6px; left: 6px;  border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.va-qr-frame .c2      { bottom: 6px; right: 6px; border-left:  none; border-top: none; border-bottom-right-radius: 8px; }

.va-qr-frame.scanning { background: rgba(16,185,129,0.08); }
.va-qr-frame.scanning::before,
.va-qr-frame.scanning::after,
.va-qr-frame.scanning .c1,
.va-qr-frame.scanning .c2 { border-color: #10B981; animation: va-pulse 0.6s ease-in-out infinite; }
@keyframes va-pulse {
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.18); }
}
.va-qr-frame .scanline {
    position: absolute;
    left: 12px; right: 12px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06B6D4, transparent);
    border-radius: 2px;
    box-shadow: 0 0 14px #06B6D4;
    top: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}
.va-qr-frame.scanning .scanline { opacity: 1; animation: va-scan 1.4s linear infinite; }
@keyframes va-scan {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(118px); }
}

/* Le QR code physique qui "s'approche" du scanner */
.va-qr-card {
    position: absolute;
    width: 70px; height: 70px;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 18px 40px -10px rgba(0,0,0,0.55);
    right: -90px; bottom: 30px;
    transition: all 1s cubic-bezier(.55,.08,.18,1.01);
    z-index: 2;
}
.va-qr-card.in { right: 60px; bottom: 95px; transform: rotate(-8deg) scale(1.05); }
.va-qr-card.in.scanned { right: 70px; bottom: 95px; transform: rotate(-4deg) scale(0.6); opacity: 0; }
.va-qr-card .qr-img {
    width: 100%; height: 100%;
    background:
        linear-gradient(90deg, #000 0 4px, transparent 4px 8px) 0 0/8px 8px,
        linear-gradient(180deg, #000 0 4px, transparent 4px 8px) 0 0/8px 8px,
        #fff;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.va-qr-card .qr-img::before,
.va-qr-card .qr-img::after,
.va-qr-card .qr-img .blk {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    background: #fff;
    border: 3px solid #000;
}
.va-qr-card .qr-img::before { top: 2px; left: 2px; }
.va-qr-card .qr-img::after  { top: 2px; right: 2px; }
.va-qr-card .qr-img .blk    { bottom: 2px; left: 2px; }

/* Photo capture overlay */
.va-photo-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}
.va-photo-flash.flash { animation: va-flash 0.6s ease-out; }
@keyframes va-flash {
    0%   { opacity: 0; }
    20%  { opacity: 0.85; }
    100% { opacity: 0; }
}

/* Card de succes "Bonjour ..." */
.va-success {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: #fff;
    color: #0F172A;
    padding: 16px 22px;
    border-radius: 18px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.55);
    text-align: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(.34,1.56,.64,1);
    z-index: 5;
    min-width: 220px;
}
.va-success.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.va-success .check {
    width: 44px; height: 44px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: linear-gradient(135deg,#10B981,#059669);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 24px -6px rgba(16,185,129,0.55);
}
.va-success .greet { font-weight: 800; font-size: 14px; }
.va-success .who { font-weight: 700; color: #7C3AED; margin: 2px 0; }
.va-success .meta { font-size: 11px; color: #64748B; }

/* Scene 2 : Tableau temps reel */
.va-rt-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0.5rem 0 0.7rem;
}
.va-rt-stat {
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
}
.va-rt-stat .v {
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}
.va-rt-stat .v.green { color: #10B981; }
.va-rt-stat .v.amber { color: #F59E0B; }
.va-rt-stat .v.blue  { color: #2563EB; }
.va-rt-stat .l { font-size: 9.5px; color: #64748B; margin-top: 2px; }

.va-rt-list { display: flex; flex-direction: column; gap: 5px; }
.va-rt-row {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px;
    border: 1px solid #F1F5F9;
    border-radius: 9px;
    background: #fff;
    font-size: 11.5px;
    transition: all 0.45s ease;
}
.va-rt-row .va-avatar { width: 24px; height: 24px; font-size: 9px; }
.va-rt-row .name { font-weight: 700; flex: 1; }
.va-rt-row .time {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #2563EB;
}
.va-rt-row .check { color: #10B981; font-size: 13px; }
.va-rt-row.new {
    background: linear-gradient(90deg, rgba(16,185,129,0.12), #fff 80%);
    border-color: rgba(16,185,129,0.35);
    animation: va-slide-in 0.55s cubic-bezier(.34,1.56,.64,1);
}
@keyframes va-slide-in {
    0%   { opacity: 0; transform: translateY(-12px); }
    100% { opacity: 1; transform: none; }
}
.va-rt-row .row-avatar-1 { background: linear-gradient(135deg,#7C3AED,#A855F7); }
.va-rt-row .row-avatar-2 { background: linear-gradient(135deg,#06B6D4,#2563EB); }
.va-rt-row .row-avatar-3 { background: linear-gradient(135deg,#10B981,#059669); }
.va-rt-row .row-avatar-4 { background: linear-gradient(135deg,#EC4899,#F43F5E); }

/* =============================================================
   CONGES
   ============================================================= */
.va-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-top: 0.6rem;
}
.va-cal .h {
    text-align: center;
    font-size: 9px;
    color: #94A3B8;
    font-weight: 700;
    padding: 2px 0;
}
.va-cal .d {
    aspect-ratio: 1;
    border-radius: 5px;
    background: #F8FAFC;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 600;
    color: #475569;
    border: 1px solid transparent;
}
.va-cal .d.we   { color: #94A3B8; background: #F1F5F9; }
.va-cal .d.now  { background: #fff; border-color: #2563EB; color: #2563EB; }
.va-cal .d.range {
    background: rgba(16,185,129,0.18);
    color: #047857;
    border-color: rgba(16,185,129,0.35);
}
.va-cal .d.range-start { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.va-cal .d.range-end   { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

.va-conge-form {
    margin-top: 0.6rem;
    padding: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    display: flex; flex-direction: column; gap: 8px;
}
.va-conge-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.va-conge-form select,
.va-conge-form .picked {
    display: block; width: 100%;
    padding: 5px 8px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #fff;
    pointer-events: none;
    min-height: 24px;
}
.va-conge-form .picked.lit {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.va-conge-form .actions {
    display: flex; justify-content: flex-end; gap: 6px;
}
.va-btn-submit {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg,#10B981,#059669);
    color: #fff; font-weight: 700; font-size: 11px;
    border-radius: 999px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 14px -4px rgba(16,185,129,0.45);
}
.va-btn-submit.hovered { transform: translateY(-1px); }
.va-btn-submit.pressed { transform: translateY(1px); }

.va-conge-status {
    margin-top: 0.6rem;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.06));
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 12px;
    display: flex; align-items: center; gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s;
}
.va-conge-status.show { opacity: 1; transform: none; }
.va-conge-status .ic {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg,#10B981,#059669);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.va-conge-status .t { font-weight: 800; font-size: 12px; }
.va-conge-status .s { font-size: 10.5px; color: #047857; font-weight: 600; }

/* =============================================================
   PAIE / Bulletin
   ============================================================= */
.va-paie-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.7rem;
}
.va-paie-head .left { display: flex; align-items: center; gap: 8px; }
.va-paie-head .left .lg {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg,#10B981,#059669);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.va-paie-head .left .ti { font-weight: 800; font-size: 13px; }
.va-paie-head .left .su { font-size: 10px; color: #64748B; }
.va-paie-head .right .va-btn-generate {
    padding: 5px 11px; font-size: 11px;
    background: linear-gradient(135deg,#10B981,#059669);
    box-shadow: 0 6px 14px -4px rgba(16,185,129,0.45);
}

.va-bulletin {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-variant-numeric: tabular-nums;
}
.va-bulletin .row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 0;
    font-size: 11.5px;
    border-bottom: 1px dashed #F1F5F9;
    opacity: 0.3;
    transition: opacity 0.35s ease;
}
.va-bulletin .row.lit { opacity: 1; }
.va-bulletin .row .l { color: #475569; font-weight: 600; }
.va-bulletin .row .v {
    font-weight: 700;
    color: #0F172A;
}
.va-bulletin .row.brut { font-size: 12px; }
.va-bulletin .row.brut .v { color: #2563EB; }
.va-bulletin .row.deduc .v { color: #DC2626; }
.va-bulletin .row.deduc .v::before { content: '-'; }
.va-bulletin .row.net {
    border-top: 2px solid #10B981;
    border-bottom: none;
    padding-top: 8px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 900;
}
.va-bulletin .row.net .l { color: #047857; font-weight: 800; }
.va-bulletin .row.net .v {
    color: #10B981;
    font-size: 15px;
    font-weight: 900;
}

.va-paie-progress {
    margin-top: 0.7rem;
    background: #F1F5F9;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.va-paie-progress.on { opacity: 1; }
.va-paie-progress .bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10B981, #059669);
    transition: width 1.6s cubic-bezier(.5,0,.25,1);
    border-radius: 999px;
}

/* =============================================================
   MINI-SHOWCASES (2x2 grid - "Plus de fonctionnalites")
   ============================================================= */
.v3-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.v3-mini-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: var(--v3-r-lg);
    overflow: hidden;
    box-shadow: var(--v3-shadow-sm);
    transition: all 0.35s ease;
}
.v3-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v3-shadow-md);
}
.v3-mini-card .v3-showcase {
    transform: none;
    aspect-ratio: 4/3;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    box-shadow: none;
}
.v3-mini-card:hover .v3-showcase { transform: none; }
.v3-mini-card .info { padding: 1.1rem 1.2rem 1.3rem; }
.v3-mini-card .info .ic {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-bottom: 0.6rem;
}
.v3-mini-card[data-color="amber"]   .info .ic { background: linear-gradient(135deg,#F59E0B,#EC4899); }
.v3-mini-card[data-color="cyan"]    .info .ic { background: linear-gradient(135deg,#06B6D4,#2563EB); }
.v3-mini-card[data-color="rose"]    .info .ic { background: linear-gradient(135deg,#F43F5E,#EC4899); }
.v3-mini-card[data-color="indigo"]  .info .ic { background: linear-gradient(135deg,#4F46E5,#7C3AED); }
.v3-mini-card[data-color="emerald"] .info .ic { background: linear-gradient(135deg,#10B981,#059669); }
.v3-mini-card[data-color="violet"]  .info .ic { background: linear-gradient(135deg,#7C3AED,#A855F7); }
.v3-mini-card .info h4 { font-size: 1.15rem; font-weight: 800; margin: 0 0 0.35rem; }
.v3-mini-card .info p  { color: var(--v3-slate-600); font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* =============================================================
   RECRUTEMENT - Kanban pipeline
   ============================================================= */
.va-kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 100%;
}
.va-kanban .col {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 7px 6px;
    display: flex; flex-direction: column;
    gap: 5px;
    overflow: hidden;
    border: 1px solid #F1F5F9;
}
.va-kanban .col-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 2px;
    padding: 0 2px;
}
.va-kanban .col-head .badge {
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 700;
}
.va-kanban .col[data-c="eval"]      .col-head { color: #2563EB; }
.va-kanban .col[data-c="entretien"] .col-head { color: #7C3AED; }
.va-kanban .col[data-c="offre"]     .col-head { color: #F59E0B; }
.va-kanban .col[data-c="recrute"]   .col-head { color: #10B981; }

.va-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 6px 7px;
    font-size: 9.5px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.25s ease, transform 0.45s cubic-bezier(.55,.08,.18,1.01);
}
.va-card .av {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg,#7C3AED,#A855F7);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px;
    font-weight: 700;
    flex: 0 0 auto;
}
.va-card .nm { font-weight: 700; line-height: 1.1; color: #0F172A; }
.va-card .rl { font-size: 8.5px; color: #94A3B8; }
.va-card.dragging {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 16px 32px -8px rgba(124,58,237,0.4);
    z-index: 5;
    position: relative;
    border-color: #7C3AED;
}
.va-card.fade-out { opacity: 0; }
.va-card.dropped {
    animation: va-drop 0.45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes va-drop {
    0%   { transform: translateY(-8px) scale(1.05); }
    100% { transform: none; }
}

/* =============================================================
   ENTRETIENS - Evaluation
   ============================================================= */
.va-eval-q {
    display: flex; flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}
.va-eval-line {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 0;
}
.va-eval-line .q { font-size: 10.5px; font-weight: 700; color: #0F172A; }
.va-eval-stars {
    display: flex; gap: 3px;
}
.va-eval-stars i {
    color: #E2E8F0;
    font-size: 12px;
    transition: color 0.25s ease, transform 0.25s ease;
}
.va-eval-stars i.lit {
    color: #F59E0B;
    transform: scale(1.15);
}
.va-eval-comment {
    margin-top: 0.4rem;
    padding: 7px 9px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 10.5px;
    min-height: 36px;
    color: #475569;
    line-height: 1.4;
}
.va-eval-comment.lit {
    background: #fff;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.va-eval-result {
    margin-top: 0.5rem;
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 11px;
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(236,72,153,0.06));
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s, transform 0.4s;
}
.va-eval-result.show { opacity: 1; transform: none; }
.va-eval-result .lbl { font-weight: 700; font-size: 10.5px; color: #B45309; }
.va-eval-result .v {
    font-size: 18px;
    font-weight: 900;
    color: #F59E0B;
    font-variant-numeric: tabular-nums;
}
.va-eval-result .v small { font-size: 10px; color: #94A3B8; font-weight: 600; }

/* =============================================================
   FRAIS - mobile note de frais
   ============================================================= */
.va-phone {
    width: 165px;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    background: #0F172A;
    border-radius: 22px;
    padding: 6px;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.06);
    display: flex; flex-direction: column;
    position: relative;
}
.va-phone::before {
    content: '';
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 4px;
    background: #1E293B;
    border-radius: 999px;
    z-index: 2;
}
.va-phone .screen {
    background: #fff;
    border-radius: 16px;
    flex: 1;
    overflow: hidden;
    display: flex; flex-direction: column;
    position: relative;
}
.va-phone .top {
    padding: 18px 12px 8px;
    font-weight: 800;
    font-size: 11px;
    border-bottom: 1px solid #F1F5F9;
    display: flex; align-items: center; gap: 6px;
}
.va-phone .top i { color: #F59E0B; }
.va-frais-cam {
    flex: 1;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.45);
    font-size: 28px;
    transition: opacity 0.4s ease;
}
.va-frais-cam::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 2px dashed rgba(255,255,255,0.25);
    border-radius: 8px;
}
.va-frais-cam.hidden { opacity: 0; pointer-events: none; }

.va-frais-ticket {
    position: absolute;
    inset: 0;
    background: #fff;
    padding: 8px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: #0F172A;
    display: flex; flex-direction: column;
    gap: 3px;
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    transition: opacity 0.45s, transform 0.45s cubic-bezier(.34,1.56,.64,1);
}
.va-frais-ticket.show { opacity: 1; transform: none; }
.va-frais-ticket .hdr { font-weight: 800; font-size: 11px; text-align: center; padding-bottom: 4px; border-bottom: 1px dashed #E2E8F0; }
.va-frais-ticket .li { display: flex; justify-content: space-between; }
.va-frais-ticket .total {
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid #0F172A;
    display: flex; justify-content: space-between;
    font-weight: 900;
    font-size: 12px;
}

.va-frais-form {
    padding: 8px 11px;
    display: flex; flex-direction: column; gap: 5px;
}
.va-frais-form .row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 10px;
    padding: 4px 6px;
    background: #F8FAFC;
    border-radius: 6px;
}
.va-frais-form .row .l { color: #64748B; font-weight: 600; }
.va-frais-form .row .v { font-weight: 800; color: #0F172A; }
.va-frais-form .row.lit {
    background: rgba(245,158,11,0.1);
    box-shadow: 0 0 0 2px rgba(245,158,11,0.3);
}
.va-frais-status {
    margin: 6px 11px 11px;
    padding: 6px 9px;
    border-radius: 7px;
    background: linear-gradient(135deg,#10B981,#059669);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex; align-items: center; gap: 5px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s;
}
.va-frais-status.show { opacity: 1; transform: none; }
.va-frais-status i { font-size: 13px; }

/* =============================================================
   FEED - Social interne
   ============================================================= */
.va-feed-card {
    background: #fff;
    border: 1px solid #F1F5F9;
    border-radius: 14px;
    padding: 11px;
    box-shadow: var(--v3-shadow-sm);
    overflow: hidden;
}
.va-feed-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
}
.va-feed-head .av {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg,#06B6D4,#2563EB);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.va-feed-head .nm { font-weight: 800; font-size: 12px; line-height: 1.1; }
.va-feed-head .me { font-size: 10px; color: #94A3B8; }
.va-feed-body { font-size: 11.5px; color: #0F172A; margin-bottom: 8px; line-height: 1.45; }
.va-feed-img {
    background: linear-gradient(135deg,#7C3AED 0%,#EC4899 50%,#F59E0B 100%);
    border-radius: 10px;
    height: 80px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}
.va-feed-img::after {
    content: '🎉';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 32px;
    opacity: 0.8;
}
.va-feed-reactions {
    display: flex; align-items: center; gap: 4px;
    padding: 7px 0 0;
    border-top: 1px solid #F1F5F9;
}
.va-feed-reactions .rx {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #F1F5F9;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
    cursor: pointer;
    transform: scale(0);
    opacity: 0;
}
.va-feed-reactions .rx.show {
    transform: scale(1);
    opacity: 1;
}
.va-feed-reactions .rx.bump {
    animation: va-rx-bump 0.45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes va-rx-bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.va-feed-reactions .count {
    margin-left: auto;
    font-size: 10.5px;
    color: #475569;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.va-feed-comment {
    margin-top: 0.5rem;
    padding: 7px 10px;
    background: #F8FAFC;
    border-radius: 10px;
    font-size: 10.5px;
    display: flex; align-items: center; gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s;
}
.va-feed-comment.show { opacity: 1; transform: none; }
.va-feed-comment .av {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg,#10B981,#059669);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px;
    font-weight: 700;
    flex: 0 0 auto;
}
.va-feed-comment .txt strong { font-size: 10px; }
.va-feed-comment .txt span   { color: #475569; }

/* ============================================================
   ANIM SUITE — grille des modules qui s'allument sequentiellement
   ============================================================ */
.va-suite-stage {
    position: relative;
    height: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(124,58,237,0.07), transparent 70%);
}
.va-suite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 92%;
    max-width: 400px;
}
.va-suite-tile {
    --tc: #2563EB;
    position: relative;
    background: #F1F5F9;
    border-radius: 14px;
    padding: 0.85rem 0.4rem;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.55s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.55s ease,
                background 0.4s ease,
                border-color 0.4s ease,
                opacity 0.4s ease;
    transform: scale(0.92);
    opacity: 0.5;
}
.va-suite-tile i {
    display: block;
    font-size: 1.55rem;
    color: #94A3B8;
    margin-bottom: 0.3rem;
    transition: color 0.3s, transform 0.3s;
}
.va-suite-tile span {
    font-size: 0.66rem;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.va-suite-tile.lit {
    background: #fff;
    transform: scale(1);
    opacity: 1;
    border-color: var(--tc);
    box-shadow: 0 0 0 4px rgba(0,0,0,0), 0 6px 18px rgba(15,23,42,0.10);
}
.va-suite-tile.lit i  { color: var(--tc); }
.va-suite-tile.lit span { color: #0F172A; }
/* burst lumineux derriere la tile au moment de l'allumage */
.va-suite-tile.pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    background: var(--tc);
    opacity: 0;
    z-index: -1;
    animation: va-suite-pulse 0.9s ease-out forwards;
}
@keyframes va-suite-pulse {
    0%   { opacity: 0.55; transform: scale(0.85); }
    100% { opacity: 0;    transform: scale(1.25); }
}

.va-suite-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(18px) scale(0.85);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: white;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    opacity: 0;
    box-shadow: 0 10px 28px rgba(124,58,237,0.45);
    transition: opacity 0.5s cubic-bezier(0.34,1.56,0.64,1),
                transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.va-suite-badge i { font-size: 0.9rem; }
.va-suite-badge.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}
