/* ============================================================
   VIRIL TOURNAMENT — Popup teaser
   Même identité visuelle que le reste du site : dark + gold
   ============================================================ */

.tournament-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(4px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tournament-popup-overlay.active {
    display: flex;
}

.tournament-popup-content {
    background: #1a1a1a;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(201, 168, 76, 0.25);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    animation: tournamentPopupIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tournamentPopupIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tournament-popup-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(201, 168, 76, 0.4);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s;
}

.tournament-popup-close:hover {
    background: #906543;
    border-color: #906543;
}

.tournament-popup-image {
    position: relative;
    background: #000;
    min-height: 260px;
    overflow: hidden;
}

.tournament-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tournament-popup-body {
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #f0ead6;
}

.tournament-popup-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 0.9rem;
}

.tournament-popup-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.tournament-popup-desc {
    font-family: 'Georgia', serif;
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(240, 234, 214, 0.75);
    margin-bottom: 1.8rem;
}

.tournament-popup-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tournament-popup-btn-primary {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #906543 0%, #C9A84C 100%);
    color: #fff;
    border: none;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}

.tournament-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 168, 76, 0.35);
}

.tournament-popup-btn-secondary {
    flex: 1;
    min-width: 120px;
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: rgba(240, 234, 214, 0.7);
    border: 1.5px solid rgba(240, 234, 214, 0.25);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
}

.tournament-popup-btn-secondary:hover {
    border-color: rgba(240, 234, 214, 0.5);
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .tournament-popup-content {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }

    .tournament-popup-image {
        min-height: 180px;
    }

    .tournament-popup-body {
        padding: 1.6rem 1.4rem;
    }

    .tournament-popup-actions {
        flex-direction: column;
    }
}