/* ===================================================
 * ABCISSE STATS WIDGET
 * =================================================== */
.pstats-wrapper { --pstats-accent: #0073e6; width: 100%; position: relative; }
.pstats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
}
.pstats-item {
    --pstats-item-accent: var(--pstats-accent);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.pstats-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,115,230,0.1);
    color: var(--pstats-item-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.4s ease;
}
.pstats-icon svg, .pstats-icon i { width: 28px; height: 28px; font-size: 28px; }
.pstats-icon svg { fill: currentColor; }
.pstats-item:hover .pstats-icon { transform: scale(1.08) rotate(-6deg); }

.pstats-number-wrap {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    margin-bottom: 8px;
}
.pstats-number,
.pstats-prefix,
.pstats-suffix {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}
.pstats-prefix, .pstats-suffix { font-size: 0.7em; }

.pstats-num-grad-yes .pstats-number,
.pstats-num-grad-yes .pstats-prefix,
.pstats-num-grad-yes .pstats-suffix {
    background: linear-gradient(135deg, var(--pstats-item-accent) 0%, #7b2cbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pstats-label {
    font-size: 16px;
    font-weight: 600;
    color: #5a6068;
    letter-spacing: 0.02em;
}
.pstats-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.5;
}

/* ===== VARIANTE 1 : CARDS ===== */
.pstats-variant-cards .pstats-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 24px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.04);
    border: 1px solid rgba(15,23,42,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pstats-variant-cards .pstats-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15,23,42,0.1);
}

/* ===== VARIANTE 2 : INLINE ===== */
.pstats-variant-inline .pstats-grid {
    gap: 0;
    background: rgba(255,255,255,0.03);
}
.pstats-variant-inline .pstats-item {
    padding: 20px;
    position: relative;
}
.pstats-variant-inline .pstats-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent, rgba(15,23,42,0.12), transparent);
}
.pstats-variant-inline .pstats-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    margin-bottom: 12px;
}
.pstats-variant-inline .pstats-number,
.pstats-variant-inline .pstats-prefix,
.pstats-variant-inline .pstats-suffix { font-size: 56px; }

/* ===== VARIANTE 3 : CIRCULAR ===== */
.pstats-variant-circular .pstats-item {
    padding: 20px;
}
.pstats-ring {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
}
.pstats-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.pstats-ring-fill {
    stroke: var(--pstats-item-accent);
    stroke-dasharray: 327; /* 2 × π × 52 ≈ 327 */
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pstats-ring.is-active .pstats-ring-fill {
    stroke-dashoffset: var(--pstats-offset, 327);
}
.pstats-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}
.pstats-ring-icon {
    color: var(--pstats-item-accent);
    font-size: 22px;
    line-height: 1;
}
.pstats-ring-icon svg, .pstats-ring-icon i { width: 22px; height: 22px; }
.pstats-variant-circular .pstats-ring .pstats-number {
    font-size: 32px;
    font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .pstats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .pstats-number, .pstats-prefix, .pstats-suffix { font-size: 38px; }
    .pstats-variant-inline .pstats-number,
    .pstats-variant-inline .pstats-prefix,
    .pstats-variant-inline .pstats-suffix { font-size: 42px; }
    .pstats-variant-inline .pstats-item:nth-child(2n)::after { display: none; }
}
@media (max-width: 600px) {
    .pstats-grid { grid-template-columns: 1fr; }
    .pstats-variant-inline .pstats-item::after { display: none !important; }
    .pstats-variant-inline .pstats-item { border-bottom: 1px solid rgba(15,23,42,0.08); }
    .pstats-variant-inline .pstats-item:last-child { border-bottom: 0; }
    .pstats-ring { width: 140px; height: 140px; }
}
