/* =============================================================================
   style.css — HoopTrack Basketball Tracker
   Aesthetic: Tactical / Sports Command Center
   Fonts: Barlow Condensed (display) + Barlow (body)
   Theme: Black / Orange / White
   ============================================================================= */

/* =============================================================================
   CSS Variables
   ============================================================================= */
:root {
    /* ── Backgrounds ── */
    --court-bg:       #0a0a0a;
    --court-surface:  #111111;
    --card-bg:        #161616;
    --card-border:    #2a2a2a;
    --card-hover:     #1e1e1e;

    /* ── Orange accent ── */
    --orange:         #ff6b00;
    --orange-bright:  #ff8c00;
    --orange-dim:     #cc5500;
    --orange-soft:    rgba(255, 107, 0, 0.12);
    --orange-glow:    rgba(255, 107, 0, 0.35);

    /* ── Keeping purple alias for legacy components ── */
    --purple:         #ff6b00;
    --purple-bright:  #ff8c00;
    --purple-dim:     #cc5500;

    /* ── Semantic colors ── */
    --amber:          #ff6b00;
    --amber-bright:   #ff8c00;
    --amber-dim:      #7a3200;
    --green:          #10b981;
    --green-dim:      #064e3b;
    --red:            #ef4444;
    --red-dim:        #7f1d1d;
    --blue:           #3b82f6;

    /* ── Text ── */
    --text-primary:   #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted:     #808080;

    /* ── Fonts ── */
    --font-display:   'Barlow Condensed', sans-serif;
    --font-body:      'Barlow', sans-serif;

    /* ── Misc ── */
    --radius-card:    12px;
    --radius-btn:     8px;
    --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-glow:    0 0 20px rgba(255, 107, 0, 0.35);
}

/* =============================================================================
   Base
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--court-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* =============================================================================
   Navbar
   ============================================================================= */
#main-navbar {
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #2a2a2a;
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.brand-accent { color: var(--orange); }
.brand-icon   { font-size: 1.4rem; }

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary) !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: var(--radius-btn);
    transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(255, 107, 0, 0.12);
}

.nav-link.active { color: var(--orange) !important; }

/* Live indicator badge */
.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.live-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--green);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* =============================================================================
   Court Header
   ============================================================================= */
.court-header {
    background: linear-gradient(180deg, rgba(22, 22, 22, 1) 0%, rgba(10, 10, 10, 0) 100%);
    padding: 1.5rem 0 1rem;
    margin-bottom: 0.5rem;
}

.court-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
}

.court-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.2rem 0 0;
}

/* Team score display */
.team-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 107, 0, 0.10);
    border: 1px solid rgba(255, 107, 0, 0.30);
    border-radius: var(--radius-card);
    padding: 0.75rem 1.5rem;
    min-width: 100px;
}

.score-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--orange);
    text-transform: uppercase;
}

.score-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.score-unit {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

/* =============================================================================
   Player Grid
   ============================================================================= */
.player-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) { .player-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .player-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .player-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* =============================================================================
   Player Cards
   ============================================================================= */
.player-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 1.2rem 1rem 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, background 0.15s ease;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
}

.player-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255, 107, 0, 0.04) 100%);
    pointer-events: none;
}

.player-card.configured { border-color: rgba(255, 107, 0, 0.25); }

.player-card.configured:hover,
.player-card.configured:active {
    transform: translateY(-3px) scale(1.01);
    border-color: var(--orange);
    box-shadow: var(--shadow-glow);
    background: var(--card-hover);
}

/* Empty card */
.player-card.empty {
    border-style: dashed;
    border-color: var(--text-muted);
    opacity: 0.6;
    align-items: center;
    justify-content: center;
}

.player-card.empty:hover {
    opacity: 1;
    border-color: var(--orange);
    box-shadow: var(--shadow-glow);
}

.empty-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.empty-slot-number {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.empty-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
    line-height: 1;
}

.empty-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: center;
}

/* Configured card content */
.card-jersey {
    font-family: var(--font-display);
    font-size: 2.4rem;          /* ↑ légèrement augmenté */
    font-weight: 900;
    color: var(--orange);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 2px;
}

.card-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: auto;
}

/* Stat pills row */
.card-stats {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 42px;
    flex: 1;
}

.stat-pill.pts { border-top: 2px solid var(--orange); }
.stat-pill.reb { border-top: 2px solid var(--blue); }
.stat-pill.pct { border-top: 2px solid var(--green); }

.stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 1px;
}

/* Action hint */
.card-action-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Flash animations */
@keyframes flash-score {
    0%   { background: rgba(16, 185, 129, 0.25); }
    100% { background: var(--card-bg); }
}

@keyframes flash-miss {
    0%   { background: rgba(239, 68, 68, 0.2); }
    100% { background: var(--card-bg); }
}

.player-card.card-scored { animation: flash-score 0.4s ease; }
.player-card.card-missed { animation: flash-miss 0.4s ease; }

@keyframes card-flash-in {
    0%   { transform: scale(0.97); border-color: var(--orange); box-shadow: var(--shadow-glow); }
    100% { transform: scale(1); }
}
.player-card.card-flash { animation: card-flash-in 0.5s ease; }

/* =============================================================================
   Modals — Shared
   ============================================================================= */
.hoop-modal {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    color: var(--text-primary);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* =============================================================================
   Inputs — Global
   ============================================================================= */
.hoop-input {
    background: var(--court-surface) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-btn) !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hoop-input:focus {
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18) !important;
    outline: none !important;
}

.hoop-input::placeholder { color: var(--text-muted) !important; }

.hoop-input-icon {
    background: var(--court-surface) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-secondary) !important;
    border-right: none !important;
    transition: color 0.2s, border-color 0.2s;
}

.input-group:focus-within .hoop-input-icon {
    color: var(--orange) !important;
    border-color: var(--orange) !important;
}

.input-group:focus-within .hoop-input { border-color: var(--orange) !important; }

.hoop-input-icon + .hoop-input            { border-left: none !important; }
.input-group .hoop-input:not(:last-child) { border-right: none !important; }

/* =============================================================================
   Position selector
   ============================================================================= */
.position-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pos-btn {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    background: var(--court-surface);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.12s;
    position: relative;
}

.pos-btn:hover { border-color: var(--orange); color: var(--orange); }

.pos-btn.selected {
    background: linear-gradient(135deg, var(--orange), var(--orange-dim));
    border-color: var(--orange);
    color: #fff;
}

.pos-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111111;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    border: 1px solid var(--orange);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    z-index: 100;
}

.pos-btn:hover::after { opacity: 1; }

/* =============================================================================
   Shot Modal
   ============================================================================= */
.shot-modal     { max-width: 520px; margin: auto; }

.shot-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shot-player-jersey {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}

.shot-player-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.shot-player-pos {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
}

.shot-modal-body { padding: 0.75rem 1.25rem 1.25rem; }

.shot-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shot-row:last-of-type { border-bottom: none; }

.shot-type-label { min-width: 80px; flex-shrink: 0; }

.shot-pts {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}

.shot-pts.three { color: var(--orange-dim); }

.shot-type-name {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.shot-btns { display: flex; gap: 10px; flex: 1; }

.shot-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border: 2px solid transparent;
    border-radius: var(--radius-btn);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s, filter 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.shot-btn i { font-size: 1.6rem; display: block; }

.shot-btn.scored {
    background: var(--green-dim);
    border-color: var(--green);
    color: var(--green);
}

.shot-btn.scored:hover,
.shot-btn.scored:active {
    background: var(--green);
    color: #000;
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

.shot-btn.three-scored {
    background: rgba(255, 107, 0, 0.12);
    border-color: var(--orange);
    color: var(--orange);
}

.shot-btn.three-scored:hover,
.shot-btn.three-scored:active {
    background: linear-gradient(135deg, var(--orange), var(--orange-dim));
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(255, 107, 0, 0.5);
}

.shot-btn.missed {
    background: var(--red-dim);
    border-color: var(--red);
    color: var(--red);
}

.shot-btn.missed:hover,
.shot-btn.missed:active {
    background: var(--red);
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.shot-btn:active { transform: scale(0.96) !important; filter: brightness(0.9); }

.shot-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    flex-wrap: wrap;
}

.mini-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mini-stat         { color: var(--text-primary); font-weight: 600; }
.mini-stat-divider { color: var(--text-muted); }

/* =============================================================================
   Stats Page
   ============================================================================= */
.summary-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 1.2rem;
    text-align: center;
    transition: border-color 0.15s;
}

.summary-card:hover { border-color: rgba(255, 107, 0, 0.4); }

.summary-icon       { font-size: 1.4rem; margin-bottom: 6px; }
.summary-icon.pts   { color: var(--orange); }
.summary-icon.fg    { color: var(--green); }
.summary-icon.att   { color: var(--blue); }
.summary-icon.three { color: var(--orange-dim); }

.summary-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Stats table */
.stats-table-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.stats-table-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

.stats-table { background: transparent !important; margin: 0; }

.stats-table thead th {
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-color: var(--card-border) !important;
    padding: 0.75rem 0.9rem;
    white-space: nowrap;
}

.stats-table tbody td {
    border-color: rgba(255, 255, 255, 0.04) !important;
    padding: 0.65rem 0.9rem;
    vertical-align: middle;
    color: var(--text-primary);
}

.stats-table tbody tr:hover td {
    background: rgba(255, 107, 0, 0.05) !important;
}

.jersey-cell { color: var(--orange) !important; font-size: 1rem; }

/* Percentage badges */
.pct-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
}

.pct-good { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.pct-ok   { background: rgba(255, 107, 0, 0.15);  color: var(--orange); }
.pct-bad  { background: rgba(239, 68, 68, 0.12);  color: var(--red); }

/* Future cards */
.future-card {
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    text-align: center;
    opacity: 0.5;
}

.future-icon  { font-size: 2rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.future-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-secondary); }
.future-desc  { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* =============================================================================
   Toast notifications
   ============================================================================= */
.hoop-toast {
    min-width: 220px;
    border-radius: var(--radius-btn) !important;
    font-family: var(--font-body);
    font-weight: 500;
}

.toast-success { background: rgba(16, 185, 129, 0.9)  !important; }
.toast-danger  { background: rgba(239, 68, 68, 0.9)   !important; }
.toast-warning { background: rgba(255, 107, 0, 0.92)  !important; color: #fff !important; }
.toast-info    { background: rgba(59, 130, 246, 0.9)  !important; }

/* =============================================================================
   Bootstrap overrides
   ============================================================================= */
.btn-warning {
    background: linear-gradient(135deg, var(--orange), var(--orange-dim)) !important;
    border-color: var(--orange) !important;
    color: #fff !important;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.25);
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--orange-bright), var(--orange)) !important;
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.45) !important;
    filter: none !important;
    transform: translateY(-1px);
}

.btn-warning:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3) !important;
}

.btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: var(--red) !important;
    font-family: var(--font-display);
    font-weight: 700;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: var(--red) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--card-border) !important;
    color: var(--text-secondary) !important;
}

.btn-outline-secondary {
    border-color: var(--card-border) !important;
    color: var(--text-secondary) !important;
    font-size: 0.8rem;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-primary) !important;
}

.modal-backdrop { backdrop-filter: blur(3px); }

/* =============================================================================
   Scrollbar (webkit)
   ============================================================================= */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* =============================================================================
   FLASH ALERTS
   ============================================================================= */
.hoop-alert {
    background: rgba(255, 255, 255, 0.04) !important;
    border-left: 3px solid !important;
    color: var(--text-primary) !important;
    font-size: 0.875rem;
}

.alert-success { border-color: var(--green)  !important; }
.alert-danger  { border-color: var(--red)    !important; }
.alert-warning { border-color: var(--orange) !important; }
.alert-info    { border-color: var(--blue)   !important; }
.flash-container { max-width: 900px; margin: 0 auto; }

/* =============================================================================
   USER MENU (navbar)
   ============================================================================= */
.user-menu-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.user-menu-btn:hover { background: rgba(255, 107, 0, 0.12) !important; }

.hoop-dropdown {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    min-width: 200px;
}

.hoop-dropdown .dropdown-item {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.hoop-dropdown .dropdown-item:hover {
    background: rgba(255, 107, 0, 0.08) !important;
    color: var(--text-primary) !important;
}

/* Role badges */
.role-badge {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 10px;
}

.role-admin  { background: rgba(239, 68, 68, 0.15);  color: #f87171; }
.role-coach  { background: rgba(255, 107, 0, 0.18);  color: var(--orange); }
.role-viewer { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* =============================================================================
   USER ADMIN TABLE
   ============================================================================= */
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.user-avatar.role-admin  { background: rgba(239, 68, 68, 0.15);  color: #f87171; }
.user-avatar.role-coach  { background: rgba(255, 107, 0, 0.18);  color: var(--orange); }
.user-avatar.role-viewer { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

.status-badge.active   { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.status-badge.inactive { background: rgba(239, 68, 68, 0.1);   color: var(--red); }

.action-btn { padding: 3px 8px; font-size: 0.8rem; }

/* Password display (admin) */
.pw-display {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255, 107, 0, 0.10);
    border: 1px solid rgba(255, 107, 0, 0.30);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--orange);
    letter-spacing: 0.06em;
    word-break: break-all;
    user-select: all;
}

.pw-mode-btn {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    background: var(--court-surface);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.12s;
}

.pw-mode-btn:hover    { border-color: var(--orange); color: var(--orange); }
.pw-mode-btn.selected {
    background: linear-gradient(135deg, var(--orange), var(--orange-dim));
    border-color: var(--orange);
    color: #fff;
}

/* =============================================================================
   MATCH CARDS
   ============================================================================= */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.match-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.match-card:hover { border-color: rgba(255, 107, 0, 0.4); }

.match-card.status-live {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.1);
}

.match-status-bar {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    gap: 6px;
}

.match-opponent {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.match-location { font-size: 0.78rem; color: var(--text-secondary); }

.match-score-row { display: flex; gap: 12px; margin: 4px 0; }

.match-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 6px 14px;
}

.match-score-val {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}

.match-score-lbl { font-size: 0.6rem; color: var(--text-secondary); letter-spacing: 0.1em; }

.match-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

.match-notes {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--orange);
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =============================================================================
   EMPTY STATE
   ============================================================================= */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }

.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state-sub { font-size: 0.875rem; color: var(--text-secondary); }

.setup-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--orange);
    margin-right: 4px;
    animation: pulse-warning 1.5s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.5; transform: scale(1.15); }
}

/* =============================================================================
   DRAG & DROP — Zones Banc / En jeu
   ============================================================================= */
.dnd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.dnd-zone {
    min-height: 300px;
    border-radius: 14px;
    padding: 10px;
    border: 2px solid transparent;      /* ✅ solid au lieu de dashed */
    transition: background .2s, border-color .2s;
}

/* ✅ Zones avec bordures solides et mieux différenciées */
.zone-playing {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.30);
}

.zone-bench {
    background: rgba(148, 163, 184, 0.05);
    border-color: rgba(148, 163, 184, 0.20);
}

.dnd-zone.drag-over-playing {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: #22c55e !important;
}

.dnd-zone.drag-over-bench {
    background: rgba(255, 107, 0, 0.10) !important;
    border-color: var(--orange) !important;
}

/* ✅ Header de zone plus visible */
.dnd-zone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.dnd-zone-title {
    font-family: var(--font-display);
    font-size: 0.88rem;         /* ↑ était 0.78rem */
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ccc;
    flex: 1;
}

.dnd-zone-count {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2px 12px;          /* ↑ était 1px 10px */
    font-size: 0.82rem;         /* ↑ était 0.72rem */
    font-weight: 700;
    color: #aaa;
}

.dnd-zone-icon { font-size: 1rem; }

.dnd-zone-max {
    font-size: 0.85rem;
    color: #888;
    margin-left: 2px;
    transition: color 0.3s ease;
}

.dnd-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 8px;
    min-height: 100px;
}

/* ✅ Carte joueur DnD — Plus grande et tactile-friendly */
.dnd-player-card {
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 10px 10px;    /* ↑ était 10px 8px 8px */
    cursor: grab;
    user-select: none;
    touch-action: none;
    position: relative;
    transition: transform .15s, box-shadow .15s, border-color .15s, opacity .15s;
    min-height: 155px;          /* ↑ hauteur minimale garantie */
    display: flex;
    flex-direction: column;
}

.dnd-player-card:active  { cursor: grabbing; }

.dnd-player-card.dragging {
    opacity: 0.4;
    transform: scale(0.96);
}

.dnd-player-card.playing-card {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.dnd-player-card.bench-card {
    border-color: var(--card-border);
    opacity: 0.82;
}

.dnd-player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* ✅ Badge numéro de maillot — Bien visible */
.dnd-card-jersey {
    position: absolute;
    top: 6px; right: 8px;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.9rem;          /* ↑ était 0.6rem puis 0.9rem*/
    font-weight: 900;
    border-radius: 10px;        /* pill au lieu de cercle */
    min-width: 30px;            /* ↑ était 22px fixe */
    height: 38px;               /* ↑ était 22px puis 28px*/
    padding: 0 6px;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ✅ Nom — padding-right ajusté pour le badge plus large */
.dnd-card-name {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 5px;
    padding-right: 40px;        /* ↑ était 28px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dnd-card-timer {
    font-size: 0.65rem;
    font-weight: 700;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}

.dnd-card-timer.bench-timer { color: var(--text-muted); }

.timer-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: blink-timer 1s infinite;
}

@keyframes blink-timer {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.15; }
}

/* ✅ Stats pills — Plus lisibles */
.dnd-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 7px;
    flex: 1;
}

.dnd-stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 5px;           /* ↑ était 2px 5px */
    font-size: 0.6rem;          /* ↑ était 0.58rem */
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
    flex-direction: column;     /* label sous la valeur */
}

.dnd-stat-pill .sv {
    font-weight: 800;
    font-size: 0.88rem;         /* ↑ valeur plus grande */
    color: var(--text-primary);
    line-height: 1;
}

.dnd-stat-pill.pts .sv { color: var(--orange); }

/* ✅ Bouton Stats — Zone de tap suffisante */
.dnd-card-btn {
    width: 100%;
    min-height: 36px;           /* ↑ était implicitement ~24px */
    padding: 8px 4px;           /* ↑ était 5px 4px */
    background: linear-gradient(135deg, var(--orange), var(--orange-dim));
    border: none;
    border-radius: 7px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.72rem;         /* ↑ était 0.62rem */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: filter .12s, transform .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: auto;           /* pousse le bouton en bas de la carte */
}

.dnd-card-btn:active { filter: brightness(.85); transform: scale(.96); }
.dnd-card-btn:hover  { filter: brightness(1.15); }

.dnd-drop-ghost {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    grid-column: 1 / -1;
}

/* =============================================================================
   Shot / Event / Control buttons
   ============================================================================= */
.hoop-shot-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 8px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .12s, filter .12s, box-shadow .12s;
    color: #fff;
    flex: 1;
}

.hoop-shot-btn:active        { transform: scale(.93); filter: brightness(.8); }
.hoop-shot-btn.green         { background: #1e6b1e; }
.hoop-shot-btn.green.three   { background: #145a14; }
.hoop-shot-btn.red           { background: #6b1e1e; }
.hoop-shot-btn.selected-shot { box-shadow: 0 0 0 3px var(--orange); filter: brightness(1.3); }
.hoop-shot-btn i             { font-size: 1.1rem; }

.hoop-shot-num {
    position: absolute;
    top: 4px; left: 6px;
    width: 16px; height: 16px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hoop-evt-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 11px 4px;
    background: var(--orange-dim);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .12s, filter .12s;
}

.hoop-evt-btn:active { transform: scale(.93); filter: brightness(.8); }
.hoop-evt-btn i      { font-size: 1.35rem; }
.hoop-evt-btn.orange { background: #7a3200; }

.hoop-ctrl-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #bbb;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.hoop-ctrl-btn:hover { background: #222222; border-color: var(--orange); }
.hoop-ctrl-btn i     { font-size: 1rem; color: #999; }

@keyframes court-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(255, 107, 0, 0); }
}

#court-container.waiting {
    animation: court-pulse 1s infinite;
    border-color: var(--orange) !important;
}

/* =============================================================================
   Bouton Vue Match
   ============================================================================= */
.btn-match-view {
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .75rem;
    letter-spacing: .04em;
    border-color: var(--blue) !important;
    color: #93c5fd !important;
    transition: background .2s;
}

.btn-match-view:hover { background: rgba(59, 130, 246, .15) !important; }

.btn-match-view.active-view {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
}

/* =============================================================================
   Match Timer
   ============================================================================= */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.match-timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 107, 0, 0.4);
    border-radius: 12px;
    padding: 0.3rem 1rem;
    min-width: 90px;
    transition: border-color 0.3s;
}

.match-timer-display.paused { border-color: rgba(239, 68, 68, 0.5); }

.match-timer-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    font-weight: 700;
    line-height: 1;
}

.match-timer-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--orange);
    letter-spacing: 2px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.match-timer-display.paused .match-timer-value {
    color: #ef4444;
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* =============================================================================
   AUTH — Login page
   ============================================================================= */
.login-body {
    background:
            radial-gradient(ellipse at 20% 10%, rgba(255, 107, 0, 0.10) 0%, transparent 55%),
            radial-gradient(ellipse at 80% 90%, rgba(255, 107, 0, 0.06) 0%, transparent 50%),
            #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.login-card {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.8),
            0 0 0 1px rgba(255, 107, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(
            to right,
            transparent,
            #ff6b00 40%,
            #ff9500 60%,
            transparent
    );
}

.login-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-brand-full {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(255, 107, 0, 0.30));
    transition: filter 0.3s ease;
}

.login-brand-full:hover {
    filter: drop-shadow(0 4px 28px rgba(255, 107, 0, 0.55));
}

.login-card .form-label {
    color: #888888 !important;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.login-card .form-check-input {
    background-color: #1a1a1a;
    border-color: #333333;
}

.login-card .form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

.login-card .form-check-label { color: #666666 !important; }

.login-card-footer { margin-top: 1.75rem; }

.login-footer-divider {
    height: 1px;
    background: linear-gradient(
            to right,
            transparent,
            rgba(255, 107, 0, 0.4),
            transparent
    );
    margin-bottom: 1rem;
}

.login-footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.6rem;
    color: #444444;
    letter-spacing: 0.04em;
    text-align: center;
    gap: 4px;
}

.login-footer-author  { color: #555555; font-weight: 600; }
.login-footer-sep     { color: rgba(255, 107, 0, 0.5); font-weight: 700; }
.login-footer-copy    { color: #444444; }

.login-footer-version {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    color: #555555;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.22);
    border-radius: 4px;
    padding: 1px 6px;
}

@media (max-width: 400px) {
    .login-card       { padding: 1.75rem 1.25rem; }
    .login-brand-full { max-width: 260px; }
    .login-logo       { margin-bottom: 1.5rem; }
}

/* =============================================================================
   SHOT MODAL — Responsive mobile
   ============================================================================= */
@media (max-height: 750px), (max-width: 480px) {

    #shotModal [style*="padding:14px 16px 10px"] {
        padding: 8px 12px 6px !important;
    }

    #shotModal [style*="grid-template-columns:repeat(8,1fr)"] {
        padding: 5px 4px !important;
        margin-top: 6px !important;
    }

    #shotModal [style*="font-size:1rem; font-weight:700"] {
        font-size: 0.85rem !important;
    }

    .hoop-shot-btn {
        padding: 6px 4px 5px !important;
        font-size: 0.55rem !important;
        gap: 2px !important;
    }

    .hoop-shot-btn i { font-size: 0.9rem !important; }

    #court-container svg { max-height: 160px; }

    .hoop-evt-btn {
        padding: 7px 4px !important;
        font-size: 0.55rem !important;
        gap: 3px !important;
    }

    .hoop-evt-btn i { font-size: 1.1rem !important; }

    #shotModal [style*="grid-template-columns:repeat(2,1fr)"] {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
    }

    .hoop-ctrl-btn {
        padding: 5px 4px !important;
        font-size: 0.52rem !important;
    }

    .hoop-ctrl-btn i { font-size: 0.85rem !important; }

    #shotModal [style*="grid-template-columns:repeat(3,1fr)"] {
        gap: 3px !important;
        margin-bottom: 5px !important;
    }

    #shotModal .d-flex.justify-content-end { margin-top: 4px !important; }
}

/* =============================================================================
   MATCH CONTROLS BAR — Mobile responsive
   ============================================================================= */
@media (max-width: 576px) {

    #match-controls-bar {
        width: 100%;
        gap: 8px !important;
    }

    .match-timer-display {
        min-width: 75px;
        padding: 0.25rem 0.6rem;
    }

    .match-timer-value  { font-size: 1.1rem; letter-spacing: 1px; }
    .match-timer-label  { font-size: 0.5rem; }

    #match-controls-bar .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
        flex-shrink: 0;
    }

    #match-controls-bar .team-score-display {
        padding: 0.4rem 0.75rem;
        min-width: 70px;
    }

    #match-controls-bar .score-value { font-size: 1.6rem; }

    #match-controls-bar .score-label,
    #match-controls-bar .score-unit  { font-size: 0.55rem; }
}

/* =============================================================================
   RESPONSIVE — Live Layout
   ============================================================================= */

/* ── Tablette paysage (1024px - 1280px) ── */
@media (max-width: 1280px) {
    .live-grid-main {
        grid-template-columns: 1fr 340px !important;
    }
}

/* ── Tablette portrait / iPad (768px - 1024px) ── */
@media (max-width: 1024px) {
    .live-grid-main {
        grid-template-columns: 1fr !important;
    }

    .live-right-panel {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .live-right-panel > div:last-child {
        grid-column: 1 / -1;
    }

    .dnd-cards {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ── Smartphone (< 768px) ── */
@media (max-width: 768px) {

    .dnd-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .live-right-panel {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }

    .dnd-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* ✅ Micro plus grand sur mobile — usage terrain */
    #btn-micro {
        width: 110px !important;
        height: 110px !important;
        font-size: 2.8rem !important;
    }

    /* Exemples de commandes : 1 colonne */
    .voice-examples-grid {
        grid-template-columns: 1fr !important;
    }

    /* Numéro maillot encore lisible */
    .dnd-card-jersey {
        font-size: 0.8rem;
        min-width: 26px;
        height: 26px;
    }
}

/* ── Très petit écran (< 480px) ── */
@media (max-width: 480px) {
    .dnd-card-name     { font-size: 0.75rem; }
    .dnd-stat-pill     { font-size: 0.56rem; }
    .dnd-stat-pill .sv { font-size: 0.8rem; }
    .dnd-card-btn      { font-size: 0.65rem; min-height: 32px; }
    .dnd-zone-header   { padding: 4px 6px 8px; }
    .dnd-zone-title    { font-size: 0.78rem; }

    .court-title { font-size: 1.3rem; }
    .card-jersey { font-size: 1.5rem; }
    .player-card { min-height: 130px; padding: 0.9rem 0.75rem 0.75rem; }
    .shot-btn    { padding: 12px 6px; }
    .shot-btn i  { font-size: 1.3rem; }
    .shot-row    { gap: 8px; }

    .shot-type-label { min-width: 64px; }
    .shot-pts        { font-size: 1.1rem; }
}

/* =============================================================================
   BOUTON MICRO FLOTTANT — Mobile uniquement
   ============================================================================= */
@media (max-width: 768px) {

    /* Conteneur flottant */
    #fab-micro-wrapper {
        position: fixed;
        bottom: 24px;
        right: 20px;
        z-index: 1050;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    /* État caché (modale ouverte) */
    #fab-micro-wrapper.fab-hidden {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.7) translateY(20px);
    }

    /* Bouton micro FAB */
    #fab-btn-micro {
        width: 68px;
        height: 68px;
        border-radius: 50%;
        border: none;
        background: #f97316;
        cursor: pointer;
        font-size: 1.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow:
                0 0 0 6px rgba(249, 115, 22, 0.18),
                0 0 0 12px rgba(249, 115, 22, 0.07),
                0 6px 24px rgba(0, 0, 0, 0.5);
        transition: transform 0.1s, background 0.2s, box-shadow 0.2s;
        user-select: none;
        -webkit-user-select: none;
        touch-action: none;
    }

    /* Label sous le bouton */
    #fab-micro-label {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.55);
        text-align: center;
        pointer-events: none;
        white-space: nowrap;
    }

    /* Masquer le bouton micro inline sur mobile */
    #btn-micro {
        display: none !important;
    }

    /* Masquer le hint clavier (ESPACE) sur mobile */
    .voice-kbd-hint {
        display: none !important;
    }
}

/* Sur desktop : le FAB est toujours caché */
@media (min-width: 769px) {
    #fab-micro-wrapper {
        display: none !important;
    }
}
@keyframes pulse-badge {
    from { opacity: 0.7; }
    to   { opacity: 1;   }
}
