/* ATVF — vitrine + manager padel */

:root {
    --atvf-green: #0b3d2e;
    --atvf-green-2: #146b4e;
    --atvf-line: #e8f5e9;
    --atvf-ball: #d4ff00;
    --atvf-glass: #f4fbf7;
}

body {
    font-size: 15px;
}

.brand-link {
    background-color: var(--atvf-green) !important;
}

.nav-sidebar .nav-link.active {
    background-color: var(--atvf-green-2) !important;
}

.login-page {
    background: linear-gradient(160deg, #0b3d2e, #1b5e20);
}

.small-box {
    display: block;
    color: #fff;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    min-height: 110px;
    text-decoration: none !important;
}
.small-box .inner h3 { font-size: 1.8rem; }
.small-box .icon {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 3rem;
    opacity: .25;
}
.small-box:hover { color: #fff; filter: brightness(1.05); }

/* Présence — gros chips */
.player-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.player-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #cfd8dc;
    border-radius: 999px;
    padding: 8px 14px;
    margin: 0;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
    user-select: none;
}
.player-chip input { display: none; }
.player-chip.is-on,
.player-chip:has(input:checked) {
    background: var(--atvf-green);
    border-color: var(--atvf-green);
    color: #fff;
}
.player-chip.is-sit {
    background: #fff3cd;
    border-color: #ffc107;
}

/* Live terrain */
body.session-live .main-sidebar { display: none; }
body.session-live .content-wrapper,
body.session-live .main-footer,
body.session-live .main-header { margin-left: 0 !important; }
body.session-live .content-header { padding-bottom: 0; }

.live-meta {
    font-size: 0.95rem;
    color: #455a64;
}
.live-actions .btn {
    margin: 0 6px 8px 0;
    min-height: 48px;
}

.court-card {
    background: linear-gradient(180deg, #146b4e 0%, #0b3d2e 100%);
    color: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(11, 61, 46, 0.25);
    border: 3px solid #c8e6c9;
}
.court-label {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 10px;
}
.court-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}
.court-team {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.player-slot {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    border-radius: 10px;
    padding: 12px 8px;
    font-weight: 700;
    min-height: 52px;
}
.player-slot.is-selected {
    background: var(--atvf-ball);
    color: #0b3d2e;
    border-color: #fff;
}
.court-score {
    display: flex;
    align-items: center;
    gap: 6px;
}
.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.score-btn {
    width: 48px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--atvf-ball);
    color: #0b3d2e;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}
.score-input {
    width: 64px;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    border-radius: 8px;
    border: 0;
    margin: 4px 0;
    color: #0b3d2e;
}
.score-vs { font-weight: 800; opacity: 0.8; }
.court-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.court-actions .btn { min-height: 44px; font-weight: 700; }

.sitters { color: #455a64; }

@media (max-width: 767px) {
    .court-grid { grid-template-columns: 1fr; }
    .court-score { justify-content: center; }
    .live-actions .btn { width: 100%; }
}

/* Vitrine */
.atvf-site {
    background: #071c16;
    color: #e8f5e9;
    min-height: 100vh;
}
.atvf-site a { color: inherit; }
.site-nav {
    background: rgba(7, 28, 22, 0.92);
    border-bottom: 1px solid rgba(212, 255, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 20;
}
.site-brand {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 1.25rem;
    color: var(--atvf-ball) !important;
    text-decoration: none;
}
.site-links a {
    margin-left: 1rem;
    text-decoration: none;
    color: #e8f5e9;
}
.hero {
    background:
        linear-gradient(180deg, rgba(7, 28, 22, 0.35), rgba(7, 28, 22, 0.75)),
        repeating-linear-gradient(90deg, #0b3d2e 0 24px, #0e4a38 24px 48px);
    padding: 5rem 0 4rem;
    border-bottom: 4px solid var(--atvf-ball);
}
.hero h1 {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}
.hero-kicker {
    color: var(--atvf-ball);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.hero-lead { font-size: 1.2rem; max-width: 36rem; opacity: 0.9; }
.hero-cta .btn { margin: 0 8px 8px 0; }
.hero-next { color: #c8e6c9; }
.section-club, .section-rank { padding: 3.5rem 0; }
.section-rank { background: #0b3d2e; }
.info-card {
    background: #0e4a38;
    border-radius: 16px;
    padding: 1.4rem;
    height: 100%;
    border: 1px solid rgba(212, 255, 0, 0.15);
}
.info-card h3 { color: var(--atvf-ball); }
.club-count { color: #a5d6a7; }
.rank-table { background: #071c16; border-radius: 12px; overflow: hidden; }
.rank-table table { color: #e8f5e9; margin: 0; }
.rank-table thead th { border-color: rgba(255,255,255,0.1); }
.rank-table td { border-color: rgba(255,255,255,0.06); }
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #9ccc9c;
    font-size: 0.9rem;
}
