/* CORRECTION : Cache les onglets non actifs */
.tab-content { display: none !important; }
.tab-content.active { display: block !important; }
/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --blue: #2563eb;
  --navy: #1e3a5f;
  --green: #10b981;
  --gold: #f59e0b;
  --red: #ef4444;
  --gray: #6b7280;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --border: #e5e7eb;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 64px;
  --tabs-h: 56px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--tabs-h) + 20px);
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ===== HEADER ===== */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(135deg, #0a1f3d, #1e3a5f);
  color: #fff;
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; height: var(--header-h);
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-text h1 { font-size: 1.1rem; font-weight: 700; }
.header-text .subtitle { font-size: .75rem; opacity: .75; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.plan-badge {
  font-size: .65rem; font-weight: 700; padding: 3px 8px;
  border-radius: 10px; background: var(--green); color: #fff;
}
.profile-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem;
  cursor: pointer;
}

/* ===== TABS ===== */
.tabs {
  display: flex; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  z-index: 99; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1; min-width: 60px; display: flex; flex-direction: column;
  align-items: center; padding: 8px 4px; border: none; background: none;
  cursor: pointer; font-size: .65rem; color: var(--gray);
  transition: color .2s; gap: 2px;
}
.tab:active { transform: scale(.95); }
.tab.active { color: var(--blue); }
.tab-icon { font-size: 1.2rem; }
.tab-label { white-space: nowrap; }

/* ===== CONTENT ===== */
.content {
  margin-top: calc(var(--header-h) + var(--tabs-h));
  padding: 16px;
}
.tab-content { display: none; animation: fadeIn .25s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.muted { color: var(--gray); font-size: .8rem; margin-bottom: 14px; }
.breadcrumb { font-size: .7rem; color: var(--gray); margin-bottom: 6px; }
.breadcrumb span { font-weight: 700; }
.green { color: var(--green); }
.gold { color: var(--gold); }
.section-title {
  font-size: .85rem; font-weight: 700; color: var(--navy);
  margin: 20px 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.stat-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 14px;
  text-align: center; box-shadow: var(--shadow);
}
.stat-icon { font-size: 1.4rem; margin-bottom: 4px; }
.stat-icon.warn { color: var(--gold); }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.stat-label { font-size: .6rem; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; }

/* ===== LISTS ===== */
.list { display: flex; flex-direction: column; gap: 8px; }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card:active:not(:has(button:active, a:active)) { transform: scale(.98); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.card-title { font-weight: 700; font-size: .9rem; }
.card-subtitle { font-size: .75rem; color: var(--gray); margin-top: 2px; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: .72rem; color: var(--gray); }

/* ===== CHIPS ===== */
.chip {
  padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border);
  background: #fff; font-size: .72rem; cursor: pointer; font-weight: 600;
  transition: all .15s;
}
.chip:active { transform: scale(.95); }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== FILTERS ===== */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

/* ===== SEARCH ===== */
.search-bar {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .85rem; background: #fff;
  margin-bottom: 12px; font-family: inherit;
}
.search-bar:focus { outline: none; border-color: var(--blue); }

/* ===== PHOTO ZONE ===== */
.photo-zone {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border: 2px dashed var(--border); border-radius: var(--radius);
  margin-bottom: 16px; cursor: pointer; background: #fff;
}
.photo-icon { font-size: 2rem; }
.photo-title { font-weight: 600; font-size: .85rem; }
.photo-sub { font-size: .72rem; color: var(--gray); }

/* ===== FAB ===== */
.fab {
  position: fixed; bottom: calc(var(--tabs-h) + 20px); right: 20px;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; font-size: 1.8rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  z-index: 50; display: flex; align-items: center; justify-content: center;
}
.fab:active { transform: scale(.9); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 200;
  justify-content: center; align-items: flex-end;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 500px; max-height: 85vh; overflow-y: auto;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.modal-content { padding: 20px; }
.modal-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.modal-field { margin-bottom: 14px; }
.modal-field label { display: block; font-size: .75rem; font-weight: 600; color: var(--gray); margin-bottom: 5px; }
.modal-field input, .modal-field select, .modal-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .85rem; font-family: inherit;
}
.modal-field input:focus, .modal-field select:focus { outline: none; border-color: var(--blue); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 10px; }
.btn-cancel, .btn-save {
  padding: 10px 22px; border-radius: var(--radius-sm); border: none;
  font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn-cancel { background: var(--bg); color: var(--text); }
.btn-save { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; }

/* ===== MODAL LARGE ===== */
.modal.modal-large { max-width: 550px; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== COMPETITION CARDS ===== */
.comp-type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: .65rem; font-weight: 600;
}
.comp-type-badge.salle { background: #dbeafe; color: #1e40af; }
.comp-type-badge.exterieur { background: #d1fae5; color: #065f46; }
.statut-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .65rem; font-weight: 600;
}
.statut-badge.a_venir { background: #dbeafe; color: #1e40af; }
.statut-badge.en_cours { background: #fef3c7; color: #92400e; }
.statut-badge.terminee { background: #d1fae5; color: #065f46; }
.statut-badge.annulee { background: #fee2e2; color: #991b1b; }

/* ===== SCORE MODE PICKER ===== */
.score-mode-bar {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.score-mode-btn {
  flex: 1; padding: 8px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: .72rem; font-weight: 600; cursor: pointer;
  text-align: center; transition: all .15s; font-family: inherit; color: var(--gray);
}
.score-mode-btn:active { transform: scale(.95); }
.score-mode-btn.active {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; border-color: transparent;
}

/* ===== SCORE INFO BAR ===== */
.score-info-bar {
  display: flex; justify-content: space-around;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; padding: 12px; border-radius: var(--radius); margin-bottom: 14px;
}
.score-info-item { text-align: center; }
.score-info-item .info-label { font-size: .6rem; opacity: .8; }
.score-info-item .info-value { font-size: 1.3rem; font-weight: 800; }

/* ===== VOLLEY SECTION ===== */
.volley-section { margin-bottom: 16px; }
.current-volley-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.current-volley-header h4 { font-size: .9rem; }
.volley-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.current-volley-arrows {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; min-height: 40px;
}
.arrow-badge {
  width: 40px; height: 40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 800;
  font-size: .85rem; color: #fff;
}
.arrow-badge.yellow { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.arrow-badge.red { background: linear-gradient(135deg, #f87171, #ef4444); }
.arrow-badge.blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.arrow-badge.dark { background: linear-gradient(135deg, #6b7280, #374151); }
.arrow-badge.white { background: linear-gradient(135deg, #d1d5db, #9ca3af); }
.arrow-badge.pink { background: linear-gradient(135deg, #f9a8d4, #ec4899); }

/* ===== SCORE TABLE ===== */
.score-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.score-table {
  width: 100%; border-collapse: collapse; font-size: .75rem;
  background: #fff; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow);
}
.score-table th {
  background: var(--navy); color: #fff; padding: 8px 6px;
  text-align: center; font-weight: 600; font-size: .68rem;
}
.score-table td {
  padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--border);
  min-width: 32px;
}
.score-table .total-row td {
  background: var(--navy) !important; color: #fff; font-weight: 800;
}
.score-table .depart-row td {
  background: var(--bg) !important; font-weight: 700; font-size: .72rem;
}
.cell-x { color: #92400e; font-weight: 800; }
.cell-10, .cell-9 { color: #059669; }
.cell-8, .cell-7 { color: #dc2626; }
.cell-6, .cell-5 { color: #2563eb; }
.cell-4, .cell-3 { color: #78716c; }
.cell-2, .cell-1 { color: #374151; }
.cell-m { color: #be185d; }

/* ===== SCORE PAD ===== */
.score-pad {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 6px; margin-bottom: 16px;
}
.score-btn {
  padding: 14px 0; border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; font-family: inherit; color: var(--text);
  transition: all .1s;
}
.score-btn:active { transform: scale(.9); }
.score-yellow { background: #fef9c3; border-color: #fde68a; color: #854d0e; }
.score-red { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.score-blue { background: #dbeafe; border-color: #bfdbfe; color: #1e40af; }
.score-white { background: #f9fafb; border-color: #e5e7eb; color: #374151; }
.score-black { background: #e7e0d8; border-color: #d4c5b5; color: #44403c; }

/* ===== VOLLEY HISTORY ===== */
.volley-history-item {
  background: #fff; border-radius: var(--radius-sm); padding: 10px 14px;
  box-shadow: var(--shadow); margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem;
}

/* ===== SESSION HISTORY ===== */
.session-item {
  background: #fff; border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); margin-bottom: 8px; cursor: pointer;
}
.session-item:active { transform: scale(.98); }
.session-top { display: flex; justify-content: space-between; align-items: center; }
.session-title { font-weight: 700; font-size: .85rem; }
.session-score { font-size: 1.1rem; font-weight: 800; color: var(--blue); }
.session-detail { font-size: .72rem; color: var(--gray); margin-top: 4px; }

/* ===== COMPETITION DETAIL MODAL ===== */
.comp-detail-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 14px;
}
.comp-detail-item {
  background: var(--bg); padding: 10px; border-radius: var(--radius-sm); text-align: center;
}
.cdi-label { font-size: .65rem; color: var(--gray); }
.cdi-value { font-size: .9rem; font-weight: 700; color: var(--navy); }
.comp-archer-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 6px;
  font-size: .82rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--navy); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600; z-index: 3000;
  transition: transform .3s; box-shadow: var(--shadow-lg);
  max-width: 90%; text-align: center; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== COMP ARCHERS SELECT ===== */
.comp-archers-list {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; max-height: 160px; overflow-y: auto;
}
.comp-archer-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px; font-size: .7rem; font-weight: 600;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; cursor: pointer;
}
.comp-archer-chip.selected { background: var(--green); }

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .modal-row { grid-template-columns: 1fr; }
  .score-pad { grid-template-columns: repeat(6,1fr); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
/* Gros bouton photo rond aux couleurs ArcPilot */
.arcpilot-avatar {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #2563eb, #10b981) !important;
  border: 4px solid white !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}
.arcpilot-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4) !important;
}
.arcpilot-avatar span {
  color: white !important;
  font-size: 42px !important;
}
.arcpilot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ===== CALENDRIER ARCPILOT ===== */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.calendar-month-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--navy, #0f172a);
}
.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--blue, #2563eb);
  transition: all 0.2s ease;
}
.calendar-nav-btn:hover {
  background: var(--blue, #2563eb);
  color: white;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.calendar-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray, #64748b);
  text-transform: uppercase;
  padding: 6px 0;
}
.calendar-day {
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  color: var(--navy, #0f172a);
}
.calendar-day:hover {
  background: #f1f5f9;
}
.calendar-day.other-month {
  color: #cbd5e1;
  cursor: default;
}
.calendar-day.other-month:hover {
  background: transparent;
}
/* Date du jour : vert ArcPilot */
.calendar-day.calendar-today {
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.calendar-day.calendar-today:hover {
  transform: scale(1.05);
}
/* Point orange pour les événements */
.calendar-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  position: absolute;
  bottom: 4px;
}
.calendar-day.calendar-today .calendar-event-dot {
  background: white;
}
.calendar-today-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--blue, #2563eb);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 15px;
}
.calendar-today-btn:hover {
  background: #e0f2fe;
}
/* Style boutons désactivés (non cliquables) */
button:disabled {
  cursor: not-allowed !important;
}
.btn-validate-volley:disabled {
  background: #cbd5e1 !important;
  box-shadow: none !important;
}
/* ========================================
   FORMULAIRE ARCHER (Modal)
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 30px;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.form-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Barème des points */
.bareme-section {
  margin: 25px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.bareme-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
}

.bareme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.bareme-item {
  background: white;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.bareme-item label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
}

.bareme-item input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.bareme-item input:focus {
  border-color: #007bff;
  outline: none;
}
/* ===== FIX MODAL : vrai popup centré au-dessus de tout ===== */
#modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#modal.active {
  display: flex;
}
#modal .modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  animation: slideUp .25s ease;
}
/* ===== SCORE PAD — couleurs vives façon blason de cible ===== */
.score-yellow { background: #facc15; border-color: #eab308; color: #713f12; }
.score-red    { background: #ef4444; border-color: #b91c1c; color: #ffffff; }
.score-blue   { background: #3b82f6; border-color: #1d4ed8; color: #ffffff; }
.score-black  { background: #3f3f46; border-color: #18181b; color: #ffffff; }
.score-white  { background: #ffffff; border-color: #9ca3af; color: #374151; }

/* ===== Badges de flèches (volée en cours + tableau de marque) ===== */
.score-arrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .78rem;
}
.score-arrow-badge.badge-yellow { background: #facc15; color: #713f12; }
.score-arrow-badge.badge-red    { background: #ef4444; color: #ffffff; }
.score-arrow-badge.badge-blue   { background: #3b82f6; color: #ffffff; }
.score-arrow-badge.badge-black  { background: #3f3f46; color: #ffffff; }
.score-arrow-badge.badge-white  { background: #ffffff; color: #374151; border: 1.5px solid #9ca3af; }

/* ===== Bouton "Valider la volée" — plus gros, tout vert, pour téléphone ===== */
.btn-validate-volley {
  flex: 1 1 100%;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(22,163,74,.35);
}
.btn-validate-volley:active { transform: scale(.97); }
/* CORRECTION : Cache les onglets non actifs */
.tab-content { display: none !important; }
.tab-content.active { display: block !important; }
/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* ===== GRILLE PLAN DE CIBLES ===== */
table.grille-plan { border-collapse: collapse; margin-top: 10px; }
table.grille-plan td { border: 1px solid #999; text-align: center; font-size: 11px; height: 38px; min-width: 38px; padding: 2px; }
.lane-label { font-weight: 700; background: #f0f0f0; white-space: nowrap; padding: 0 10px; }
.cible-num { font-weight: 700; background: #f0f0f0; }
.cible-cell.used { background: #bfe6b8; }
.cible-cell.used .blason { display: block; font-weight: 700; font-size: 10px; }
.cible-cell.used .arme { display: block; font-size: 9px; color: #333; }
.backstop { display: inline-block; background: #1a1a2e; color: #fff; font-weight: 800; font-size: 9px; border-radius: 3px; padding: 0 4px; margin-bottom: 1px; }
.compte { display: inline-block; background: #1e3a5f; color: #fff; font-weight: 800; font-size: 10px; border-radius: 8px; padding: 0 5px; margin-top: 2px; }

/* ===== SECTION LABEL ===== */
.section-label { font-size: .75rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 8px; }

/* ================================================================  
   ⏱️ STYLE CHRONOMÈTRE FFTA
   À ajouter à la fin de style.css
   ================================================================ */

.chrono-container {
  margin-bottom: 20px;
}

.chrono-zone {
  border-radius: 18px;
  padding: 24px 16px 20px;
  text-align: center;
  margin-bottom: 18px;
  transition: background 0.4s, box-shadow 0.4s;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  color: #fff;
}

.chrono-idle    { background: linear-gradient(160deg, #1e3a5f, #0a1f3d); }
.chrono-prepare { 
  background: linear-gradient(160deg, #dc2626, #7f1d1d); 
  animation: chrono-pulse-red 1s infinite;
}
.chrono-shoot   { 
  background: linear-gradient(160deg, #16a34a, #14532d); 
}
.chrono-done    { background: linear-gradient(160deg, #374151, #1f2937); }

@keyframes chrono-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  50% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
}

#chronoPhaseFFTA {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 6px;
}

#chronoTimeFFTA {
  font-family: 'Courier New', 'Monaco', monospace;
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

#chronoSubFFTA {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin-bottom: 18px;
  min-height: 18px;
}

.chrono-btns {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.chrono-mode-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,.3);
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}

.chrono-mode-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

.chrono-mode-btn.active {
  background: #fff;
  color: var(--navy, #1e3a5f);
  border-color: #fff;
  font-weight: 800;
}

.chrono-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.chrono-start-btn {
  padding: 12px 32px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: #1e3a5f;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: transform .1s;
}

.chrono-start-btn:hover {
  transform: translateY(-1px);
}

.chrono-start-btn:active {
  transform: scale(.95);
}

.chrono-reset-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.3);
  background: transparent;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}

.chrono-reset-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}

/* Responsive */
@media (max-width: 480px) {
  #chronoTimeFFTA { font-size: 48px; }
  .chrono-btns { gap: 4px; }
  .chrono-mode-btn { padding: 6px 10px; font-size: 11px; }
}
