/* =================================================
   GROUP BADGES – PREMIUM CLEAN VERSION
================================================= */

/* Panel container */
.panel.bg1 {
    position: relative;
    overflow: visible;
}

/* Badge container (position droite) */
.cf-badge-container {
    position: absolute;
    top: 5px;
    right: -9px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 5;
}

/* Badge base */
.cf-badge {
    position: relative;
    padding: 6px 16px;
    border-radius: 12px 0 0 12px;

    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;

    color: #fff;
    white-space: nowrap;

    /* Dégradé subtil */
    background-image: linear-gradient(
        to bottom,
        rgba(255,255,255,0.15),
        rgba(0,0,0,0.15)
    );
    background-blend-mode: overlay;

    /* Profondeur douce */
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.18),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);

    /* Animation */
    opacity: 0;
    transform: translateX(15px);
    animation: badgeFadeIn .4s ease forwards;

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

/* Apparition en cascade */
.cf-badge:nth-child(1) { animation-delay: .05s; }
.cf-badge:nth-child(2) { animation-delay: .1s; }
.cf-badge:nth-child(3) { animation-delay: .15s; }
.cf-badge:nth-child(4) { animation-delay: .2s; }

/* Hover subtil */
.cf-badge:hover {
    transform: translateX(-4px);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.28),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* Petit pli discret */
.cf-badge::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 0;
    border-top: 6px solid rgba(0,0,0,0.25);
    border-right: 6px solid transparent;
}

/* Groupe par défaut (hiérarchie visuelle) */
.cf-badge.default {
    font-weight: 700;
    outline: 2px solid rgba(255,255,255,.25);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.25),
        inset 0 -2px 0 rgba(0,0,0,0.2);
}

/* Animation keyframe */
@keyframes badgeFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Feedback tactile mobile */
@media (hover: none) {
    .cf-badge:active {
        transform: scale(0.97);
        box-shadow:
            0 4px 10px rgba(0,0,0,0.2),
            inset 0 -2px 0 rgba(0,0,0,0.25);
    }
}

/* ================= DEFAULT GROUP ================= */

.cf-badge.default::before {
    content: "★";
    margin-right: 6px;
    font-size: 12px;
}
