/* =============================================
   RW Players - Page Joueur
   ============================================= */

/* ---- Banner ---- */
.rw-banner {
    position: relative;
    background: #272727;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 36px;
    min-height: 320px;
}

.rw-banner__bg-number {
    position: absolute;
    right: -0.05em;
    bottom: -0.18em;
    font-size: clamp(14rem, 28vw, 26rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    font-family: "VisbyCF";
}

.rw-banner__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: 320px;
}

.rw-banner__info {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

.rw-banner__role {
    display: inline-block;
    width: fit-content;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #A28E39;
    background: rgba(168, 146, 103, 0.12);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.rw-banner__name {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.1;
}

.rw-banner__number-line {
    margin-bottom: 16px;
}

.rw-banner__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 14px;
    background: #A28E39;
    color: #fff;
    border-radius: 24px;
    font-size: 1.3rem;
    font-weight: 900;
    font-family: "VisbyCF";
}

.rw-banner__cta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.rw-banner__cta strong {
    color: rgba(255, 255, 255, 0.8);
}

/* Photo — aligned bottom-right */
.rw-banner__photo-wrap {
    flex-shrink: 0;
    width: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: flex-end;
    margin-right: 130px;
}

.rw-banner__photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    max-height: 360px;
}

/* Banner responsive */
@media (max-width: 767px) {
    .rw-banner {
        min-height: auto;
    }

    .rw-banner__content {
        flex-direction: column-reverse;
        align-items: stretch;
        min-height: auto;
    }

    .rw-banner__info {
        padding: 24px 20px;
    }

    .rw-banner__photo-wrap {
        width: 100%;
        max-height: 280px;
        overflow: hidden;
    }

    .rw-banner__photo {
        max-height: 280px;
        margin: 0 auto;
    }

    .rw-banner__bg-number {
        font-size: 10rem;
    }
}

/* =============================================
   Grille produits
   ============================================= */

.rw-player__products {
    gap: 0;
}

.rw-player__product-card {
    padding: 12px;
}

.rw-player__product-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: #efefef;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rw-player__product-link:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

/* =============================================
   Image + overlay flocage (SVG)
   ============================================= */

.rw-player__product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.rw-player__product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.rw-player__flocage-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    padding-top: 10%;
    pointer-events: none;
}

.rw-player__flocage-overlay svg {
    display: block;
    width: 100%;
    height: auto;
    text-anchor: middle;
}

/* =============================================
   Infos produit
   ============================================= */

.rw-player__product-info {
    padding: 12px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.rw-player__product-name {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin: 0 0 4px;
    line-height: 1.3;
}

.rw-player__product-price {
    font-size: 16px;
    font-weight: 700;
    color: #A28E39;
    margin: 0;
}

/* =============================================
   RW Players - Page Listing Joueurs
   ============================================= */

.rw-listing-page {
}

.rw-listing__section {
    margin-bottom: 48px;
}

.rw-listing__role-title {
    color: #fff;
    margin: 0 0 24px;
    padding: 0;
    border: none;
}

.rw-listing__grid {
    gap: 0;
}

.rw-listing__card-col {
    padding: 10px;
}

.rw-listing__card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.rw-listing__card:hover {
    transform: translateY(-4px);
    color: inherit;
    text-decoration: none;
}

/* Visual area — photo + big number behind */
.rw-listing__card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.5;
    background: #272727;
    border-radius: 8px;
    overflow: hidden;
}

.rw-listing__card-bg-num {
    position: absolute;
    left: -0.05em;
    bottom: -0.15em;
    font-size: clamp(8rem, 16vw, 12rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.rw-listing__card-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.rw-listing__card:hover .rw-listing__card-photo {
    transform: scale(1.03);
}

/* Info area — number + name below photo */
.rw-listing__card-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 2px 0;
}

.rw-listing__card-number {
    font-size: 56px;
    font-weight: 900;
    color: #A28E39;
    line-height: 1;
    flex-shrink: 0;
    font-family: 'VisbyCF';
}

.rw-listing__card-name-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    top: -8px;
}

.rw-listing__card-firstname {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ccc;
    line-height: 1.7;
}

.rw-listing__card-lastname {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 0.7;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 991px) {
    .rw-listing__card-number {
        font-size: 1.6rem;
    }

    .rw-listing__card-lastname {
        font-size: 0.85rem;
    }

    .rw-listing__card-firstname {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .rw-listing-page {
        padding: 24px 12px 36px;
    }

    .rw-listing__card-col {
        padding: 6px;
    }

    .rw-listing__card-body {
        gap: 6px;
        padding: 10px 2px 0;
    }

    .rw-listing__card-number {
        font-size: 1.3rem;
    }

    .rw-listing__card-lastname {
        font-size: 0.75rem;
    }

    .rw-listing__card-firstname {
        font-size: 0.7rem;
    }

    .rw-listing__card-bg-num {
        font-size: 6rem;
    }

    .rw-listing__role-title {
        font-size: 1.2rem;
    }
}
