/* ================================================================
   WP Activ-île Street Foot — Public CSS
   Ducklics & MPJ Digital | v1.0.0
   ================================================================ */

:root {
    --acl-bg        : #0f0f1a;
    --acl-surface   : #1a1a2e;
    --acl-card      : #16213e;
    --acl-orange    : #F72803;
    --acl-gold      : #f59e0b;
    --acl-green     : #10b981;
    --acl-blue      : #3b82f6;
    --acl-text      : #e2e8f0;
    --acl-muted     : #94a3b8;
    --acl-border    : rgba(255,255,255,.08);
    --acl-radius    : 12px;
    --acl-shadow    : 0 4px 24px rgba(0,0,0,.4);
}

/* ══ Page de présence ════════════════════════════════════════════ */
.activile-presence-page { margin: 0; background: var(--acl-bg); color: var(--acl-text); font-family: 'Segoe UI', system-ui, sans-serif; }

.activile-pres-header { background: linear-gradient(135deg, var(--acl-surface), #0f3460); padding: 32px 20px 24px; text-align: center; border-bottom: 2px solid var(--acl-orange); }
.activile-pres-logo { font-size: 3rem; margin-bottom: 8px; }
.activile-pres-header h1 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 900; color: #fff; }
.activile-pres-date { font-size: 1.1rem; font-weight: 700; color: var(--acl-gold); margin: 4px 0; }
.activile-pres-lieu { font-size: .85rem; color: var(--acl-muted); margin: 0; }

.activile-pres-body { padding: 20px 16px 40px; max-width: 600px; margin: 0 auto; }

.activile-pres-locked { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); border-radius: var(--acl-radius); padding: 14px 18px; text-align: center; font-weight: 600; color: #fca5a5; margin-bottom: 16px; }
.activile-pres-instruction { text-align: center; color: var(--acl-muted); font-size: .9rem; margin-bottom: 10px; }

.activile-pres-counter { text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--acl-green); margin-bottom: 20px; }

.activile-pres-list { display: flex; flex-direction: column; gap: 10px; }

.activile-pres-item { display: flex; align-items: center; gap: 12px; background: var(--acl-card); border: 2px solid var(--acl-border); border-radius: var(--acl-radius); padding: 14px 18px; cursor: pointer; transition: all .2s; user-select: none; }
.activile-pres-item:active { transform: scale(.98); }
.activile-pres-item--present { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.5); }

.activile-pres-check { font-size: 1.3rem; flex-shrink: 0; width: 28px; text-align: center; }
.activile-pres-nom { font-size: 1rem; font-weight: 700; color: #fff; flex: 1; }
.activile-pres-postes { font-size: .7rem; color: var(--acl-muted); margin-left: auto; }
.activile-pres-locked-icon { font-size: .8rem; color: var(--acl-muted); }

.activile-pres-footer { text-align: center; font-size: .75rem; color: var(--acl-muted); margin-top: 40px; }

/* ══ Classements widget ══════════════════════════════════════════ */
.activile-classements-widget { font-family: 'Segoe UI', system-ui, sans-serif; max-width: 800px; margin: 0 auto; }

.acl-header { text-align: center; margin-bottom: 20px; }
.acl-header h2 { font-size: 1.5rem; font-weight: 900; margin: 0; }

.acl-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e5e7eb; margin-bottom: 20px; flex-wrap: wrap; }
.acl-tab { background: none; border: none; padding: 10px 16px; font-size: .9rem; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; color: #6b7280; transition: all .15s; }
.acl-tab.active, .acl-tab:hover { color: #1a1a1a; border-bottom-color: var(--acl-orange, #F72803); }
.acl-tab-content { display: none; }
.acl-tab-content.active { display: block; }

.acl-formule { font-size: .78rem; color: #6b7280; font-style: italic; margin-bottom: 12px; }

.acl-table-wrap { overflow-x: auto; }
.acl-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.acl-table th { background: #1a1a2e; color: #fff; padding: 10px 12px; text-align: left; font-weight: 700; }
.acl-table td { padding: 9px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.acl-table tr:last-child td { border-bottom: none; }
.acl-table tr:hover td { background: #f9fafb; }

.acl-top-1 td { background: #fffbeb !important; }
.acl-top-2 td { background: #f8fafc !important; }
.acl-top-3 td { background: #fdf4ff !important; }

.acl-rang { display: inline-block; width: 24px; text-align: center; font-weight: 700; color: #6b7280; }
.acl-medal { font-size: 1.2rem; }
.acl-joueur { font-weight: 700; }
.acl-val { font-weight: 800; font-size: 1.1rem; }
.acl-positive { color: #059669; }
.acl-negative { color: #dc2626; }
.acl-empty { color: #9ca3af; font-style: italic; text-align: center; padding: 20px; }
.acl-powered { text-align: center; font-size: .75rem; color: #9ca3af; margin-top: 16px; }

/* ══ Session widget ══════════════════════════════════════════════ */
.activile-session-widget { font-family: 'Segoe UI', system-ui, sans-serif; max-width: 900px; margin: 0 auto; }
.acl-session-header { text-align: center; margin-bottom: 24px; }
.acl-session-header h2 { font-size: 1.4rem; font-weight: 900; margin: 0 0 6px; }
.acl-session-header p { color: #6b7280; margin: 0; }

.acl-equipes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.acl-equipe-card { border-radius: var(--acl-radius, 12px); padding: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); border: 1px solid #e5e7eb; }
.acl-equipe-card h4 { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.acl-equipe--bleu        { border-top: 4px solid #3b82f6; }
.acl-equipe--vert        { border-top: 4px solid #10b981; }
.acl-equipe--orange      { border-top: 4px solid #f97316; }
.acl-equipe--sans_maillot{ border-top: 4px solid #9ca3af; }
.acl-joueurs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acl-joueurs-list li { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.acl-poste { font-size: .65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }
.acl-poste--gdc { background: #dbeafe; color: #1d4ed8; }
.acl-poste--def { background: #fee2e2; color: #991b1b; }
.acl-poste--mil { background: #fef9c3; color: #854d0e; }
.acl-poste--att { background: #dcfce7; color: #166534; }
.acl-remplacants { font-size: .78rem; color: #6b7280; margin: 8px 0 0; font-style: italic; }

.acl-resultats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.acl-resultat-card { display: flex; align-items: center; justify-content: space-between; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 18px; font-size: .9rem; }
.acl-match-num { font-size: .75rem; color: #9ca3af; min-width: 54px; }
.acl-eq { font-weight: 700; flex: 1; }
.acl-eq--1 { text-align: right; padding-right: 12px; }
.acl-eq--2 { text-align: left; padding-left: 12px; }
.acl-score { font-size: 1.2rem; font-weight: 900; text-align: center; min-width: 80px; color: #1a1a2e; }
.acl-score small { font-size: .65rem; font-weight: 600; color: #6b7280; display: block; }
.activile-pub-empty { color: #9ca3af; font-style: italic; text-align: center; }

/* ══ Responsive ══════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .activile-pres-header h1 { font-size: 1.3rem; }
    .acl-tabs { gap: 2px; }
    .acl-tab { padding: 8px 10px; font-size: .8rem; }
    .acl-table th, .acl-table td { padding: 7px 8px; }
    .acl-equipes-grid { grid-template-columns: 1fr 1fr; }
    .acl-resultat-card { flex-wrap: wrap; gap: 6px; }
    .acl-score { width: 100%; text-align: center; }
}
