/* ================================================================
   Role Card — Plein écran, panneau slide-up au hover
   ================================================================ */

.role-card {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
}

/* Arrondi sur les coins externes quand dans le stage côte-à-côte */
.inscription-page__stage .role-card:first-child {
    border-radius: 32px 0 0 32px;
}

.inscription-page__stage .role-card:last-child {
    border-radius: 0 32px 32px 0;
}

/* ── Image de fond ────────────────────────────────────────────── */
.role-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.role-card:hover .role-card__bg {
    transform: scale(1.06);
}

/* ── Voile sombre ─────────────────────────────────────────────── */
.role-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 12, 6, 0.18) 0%,
        rgba(20, 12, 6, 0.52) 60%,
        rgba(20, 12, 6, 0.72) 100%
    );
    transition: opacity 0.4s ease;
    z-index: 1;
}

.role-card:hover .role-card__overlay {
    opacity: 0.75;
}

/* ── Badge membres ────────────────────────────────────────────── */
.role-card__members {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 20px;
    padding: 6px 13px;
    font-family: var(--font-rubik);
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    z-index: 3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.role-card__members i {
    font-size: 11px;
    color: var(--main-color);
}

/* ── Label toujours visible ───────────────────────────────────── */
.role-card__label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 3;
    text-align: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
    white-space: nowrap;
}

.role-card:hover .role-card__label {
    opacity: 0;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

/* ── Icône (label) ────────────────────────────────────────────── */
.role-card__icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.role-card__icon-wrap i {
    font-size: 30px;
    color: var(--white);
}

.role-card__label-text {
    font-family: var(--font-rubik);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* ── Panneau hover (slide up depuis le bas) ───────────────────── */
.role-card__panel {
    position: absolute;
    top: 30%;       /* hauteur fixée : 70% de la card */
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 44px 52px;
    transform: translateY(100%);
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(
        to top,
        rgba(10, 5, 2, 0.98) 0%,
        rgba(10, 5, 2, 0.94) 60%,
        rgba(10, 5, 2, 0.0) 100%
    );
}

.role-card:hover .role-card__panel {
    transform: translateY(0);
}

/* ── Contenu du panneau ───────────────────────────────────────── */
.role-card__title {
    font-family: var(--font-rubik);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px;
    line-height: 1.2;
}

.role-card__subtitle {
    font-family: var(--font-rubik);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.70);
    margin: 0 0 20px;
    line-height: 1.55;
}

.role-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-card__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-rubik);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}

.role-card__feature i {
    font-size: 14px;
    color: var(--main-color);
    flex-shrink: 0;
}

/* ── CTA ─────────────────────────────────────────────────────── */
.role-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 24px;
    border-radius: 14px;
    background: var(--main-color);
    color: var(--dark1);
    font-family: var(--font-rubik);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    width: 100%;
}

.role-card__cta:hover {
    background: var(--white);
    color: var(--dark1);
    transform: translateY(-2px);
}

.role-card__cta i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.role-card__cta:hover i {
    transform: translateX(4px);
}

/* ── Featured — panneau CTA en blanc ────────────────────────── */
.role-card--featured .role-card__cta {
    background: var(--white);
    color: var(--dark1);
}

.role-card--featured .role-card__cta:hover {
    background: var(--main-color);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
    .role-card__label {
        bottom: 36px;
    }

    .role-card__label-text {
        font-size: 22px;
    }

    .role-card__panel {
        padding: 40px 28px 32px;
    }

    .role-card__title {
        font-size: 20px;
    }
}
