/* Modal d'explication des badges (certifié, premium, fondateur) */

.certified-badge-icon,
.certified-badge-inline,
.premium-crown,
.premium-badge,
.premium-badge-inline,
.favori-premium-badge,
.founder-badge-icon,
.founder-badge-inline {
    cursor: pointer;
}

.badge-info {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.badge-info[hidden] {
    display: none;
}

.badge-info__panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 26px 22px 22px;
    border-radius: 20px 20px 0 0;
    background: var(--surface, #fff);
    color: var(--text, #111);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: badge-info-in 0.18s ease-out;
}

@keyframes badge-info-in {
    from {
        transform: translateY(14px);
        opacity: 0;
    }
}

.badge-info__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 8%, transparent);
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.badge-info__icon {
    font-size: 2rem;
    line-height: 1;
}

.badge-info[data-badge-kind='certified'] .badge-info__icon {
    color: #2563eb;
}

.badge-info[data-badge-kind='premium'] .badge-info__icon {
    color: #fbbf24;
}

.badge-info[data-badge-kind='founder'] .badge-info__icon {
    color: #16a34a;
}

.badge-info__title {
    margin: 12px 0 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.badge-info__body {
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-soft, #555);
}

.badge-info__cta {
    display: inline-block;
    margin-top: 18px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--brand, #e11d48);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.badge-info__cta[hidden] {
    display: none;
}

body.badge-info-open {
    overflow: hidden;
}

@media (min-width: 640px) {
    .badge-info {
        align-items: center;
        padding: 20px;
    }

    .badge-info__panel {
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    }
}
