/* ═══════════════════════════════════════════════════════════════════════
   shared-components.css — Composants UI partagés entre toutes les pages
   publiques (filtres, pagination, detail-header, tables, etc.)
   Extrait de base.html + pages détail.
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══ Global layout adjustments ═══ */
#main > .container {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ═══ Shared Filter Section ═══ */
.filters-form {
  background: #fff;
  border: 1px solid #f1f3f5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.filters-form .form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.filters-form .form-select,
.filters-form .form-control {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filters-form .form-select:focus,
.filters-form .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.filters-form .btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f3f5;
}

/* ═══ Filters collapse toggle ═══ */
.filters-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #f1f3f5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-weight: 600;
  font-size: 0.95rem;
  color: #495057;
  cursor: pointer;
  margin-bottom: 0.75rem;
}
.filters-toggle-btn .active-count {
  background: #0d6efd;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-left: auto;
}
.filters-toggle-btn .bi-chevron-down {
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}
.filters-toggle-btn[aria-expanded="false"] .bi-chevron-down {
  transform: rotate(-90deg);
}


/* ═══ Shared Results Count ═══ */
.results-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e7f1ff;
  color: #0d6efd;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin: 0.5rem 0 1.5rem;
}

/* ═══ Empty State (no results) ═══ */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  grid-column: 1 / -1;
}
.empty-state-icon {
  font-size: 3rem;
  color: #adb5bd;
  margin-bottom: 0.5rem;
}
.empty-state h5 {
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.empty-state p {
  color: #adb5bd;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ═══ Shared Pagination ═══ */
.sm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.sm-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0 0.75rem;
}

.sm-pagination .page-btn:hover:not(.disabled) {
  background: #e7f1ff;
  border-color: #0d6efd;
  color: #0d6efd;
}

.sm-pagination .page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.sm-pagination .page-info {
  color: #6c757d;
  font-size: 0.88rem;
  font-weight: 500;
}

.sm-pagination .page-info strong {
  color: #0d6efd;
  font-weight: 700;
}

/* ═══ Language Switcher ═══ */
.lang-switcher .form-select {
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  font-size: 0.82rem;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
  cursor: pointer;
}

.lang-switcher .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
}

.lang-switcher .form-select:hover {
  border-color: #adb5bd;
}

/* ═══ User Menu ═══ */
.user-menu-btn {
  border-radius: 20px !important;
  border: 1px solid #e0e0e0 !important;
  font-size: 0.88rem !important;
  padding: 0.4rem 1rem !important;
  background: #f8f9fa !important;
  color: #495057 !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.user-menu-btn:hover {
  background: #e7f1ff !important;
  border-color: #0d6efd !important;
  color: #0d6efd !important;
}

.user-menu-btn i { font-size: 1.1rem; }

/* ═══ Section Page Header ═══ */
.page-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
}

.page-section-header p {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   Detail Page Components (header, photo, tabs, tables, etc.)
   ═══════════════════════════════════════════════════════════════════════ */

/* --- Detail Header (profile card) --- */
.detail-header {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 1.5rem;
  margin-bottom: 2rem;
  margin-left: 1rem;
  margin-right: 1rem;
  color: #212529;
}

/* --- Profile Card (photo left + info right) --- */
.profile-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.profile-photo {
  width: 180px;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  flex-shrink: 0;
}

.profile-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.profile-body {
  flex: 1;
  min-width: 0;
}

.profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.profile-top h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #212529;
}

.profile-subtitle {
  color: #198754;
  font-weight: 600;
  font-size: 1rem;
}

.profile-badge {
  background: #198754;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.profile-field-label {
  display: block;
  color: #6c757d;
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
}

.profile-field-value {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
}

.profile-extra {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.profile-extra i {
  font-size: 1.2rem;
  color: #6c757d;
}

.profile-extra-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dee2e6;
  flex-shrink: 0;
}

/* --- Detail action button (card style) --- */
.detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fa;
  color: #0d6efd;
  border: 1px solid #dee2e6;
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.detail-action-btn:hover {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

/* --- Profile supplements (KPIs, clubs, actions below card) --- */
.profile-supplements {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  margin-top: 1rem;
  border-top: 1px solid #f1f3f5;
}

/* --- Detail Info Grid (kept for secondary info blocks) --- */
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-info-item {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 3px solid #0d6efd;
}

.detail-info-item p {
  margin-bottom: 0.5rem;
}

.detail-info-item p:last-child { margin-bottom: 0; }

.detail-info-item strong { color: #0d6efd; }

/* --- Detail Stats Card --- */
.detail-stats-card {
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.detail-stats-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.detail-stats-card .card-header {
  background: #fff;
  color: #212529;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid #f1f3f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-stats-card .card-body { padding: 1.25rem; }

/* ═══ Stat Mini Cards (individual stat items in grid) ═══ */
.stats-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.stats-inline-filters {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.stats-inline-filters .form-select {
  width: auto;
  min-width: 140px;
  font-size: 0.85rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}
.stat-mini-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.2rem 0.75rem;
  text-align: center;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.stat-mini-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #198754;
  line-height: 1.2;
}
.stat-mini-detail {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 0.1rem;
}
.stat-mini-label {
  display: block;
  font-size: 0.78rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 0.25rem;
}
.more-filters-row {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

/* ═══ Indisponibilité cards ═══ */
.indispo-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: #fff5f5;
}
.indispo-suspension {
  background: #fffbeb;
}
.indispo-autre {
  background: #f8f9fa;
}

/* ═══ Sélection cards ═══ */
.selection-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.selection-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* --- Top Performers --- */
.top-performer-card { border-left: 3px solid var(--bs-primary); }
.top-performer-card:hover { transform: none; }
.top-performer-photo {
  width: 52px; height: 52px;
  object-fit: cover; border-radius: 50%;
  border: 2px solid #e9ecef;
}

/* --- Detail Section Title --- */
.detail-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section-title i { color: #0d6efd; font-size: 1.1rem; }

/* --- Detail Tables (polished style) --- */
.detail-table,
.sm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

/* DataTables parfois fige la largeur du <table> lors de son init (scrollX,
   autoWidth) — on force 100% pour éviter les tableaux rétrécis
   sur des conteneurs larges. Le wrapper .table-responsive assure l'overflow. */
table.dataTable.sm-table,
table.dataTable.detail-table {
  width: 100% !important;
}

.detail-table thead th,
.sm-table thead th {
  background: #f8f9fa !important;
  color: #6c757d !important;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 0.75rem 0.75rem;
  border: none;
  border-bottom: 2px solid #e9ecef;
}

.detail-table tbody tr,
.sm-table tbody tr {
  transition: background 0.15s ease;
}

.detail-table tbody tr:hover,
.sm-table tbody tr:hover {
  background: #f0f4ff !important;
}

.detail-table tbody tr:nth-child(odd),
.sm-table tbody tr:nth-child(odd) {
  background-color: #fdfdf5;
}

.detail-table td,
.sm-table td {
  text-align: center;
  vertical-align: middle;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #f1f3f5;
  color: #212529;
  font-size: 0.9rem;
}

.detail-table td strong,
.sm-table td strong {
  color: #198754;
  font-size: 1.05rem;
}

.detail-table tbody tr:last-child td,
.sm-table tbody tr:last-child td {
  border-bottom: none;
}

/* DataTables overrides — remove ugly defaults */
.dataTables_wrapper .dataTables_filter {
  display: none !important;
}
.dataTables_wrapper .dataTables_length {
  display: none !important;
}
.dataTables_wrapper .dataTables_info {
  font-size: 0.8rem;
  color: #6c757d;
  padding: 0.75rem 1rem;
}
.dataTables_wrapper .dataTables_paginate {
  padding: 0.5rem 1rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  margin: 0 2px;
  font-size: 0.82rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #212529 !important;
}
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  opacity: 0.6;
}
table.dataTable.no-footer {
  border-bottom: none;
}

/* --- Common image sizes --- */
.sm-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 8px;
}

.sm-player-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
}

.sm-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  margin-right: 6px;
}

/* --- Detail Nav Tabs (modern pill-style) --- */
.detail-tabs {
  border: none;
  gap: 0.4rem;
  background: #f1f3f5;
  padding: 0.35rem;
  border-radius: 10px;
  display: inline-flex;
  flex-wrap: wrap;
}

/* Page-level tabs (full-width, sticky, scrollable) */
.detail-tabs.page-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 70px;
  z-index: 100;
}
.detail-tabs.page-tabs::-webkit-scrollbar { display: none; }
.detail-tabs.page-tabs .nav-link { white-space: nowrap; }

.detail-tabs .nav-link {
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: #6c757d;
  background: transparent;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.detail-tabs .nav-link:hover {
  color: #212529;
  background: rgba(255,255,255,0.6);
}

.detail-tabs .nav-link.active {
  background: #fff;
  color: #0d6efd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- Detail Responsive --- */
@media (max-width: 768px) {
  .profile-card { flex-direction: column; align-items: center; text-align: center; }
  .profile-photo { width: 140px; height: 160px; }
  .profile-logo { width: 70px; height: 70px; }
  .profile-top { flex-direction: column; align-items: center; gap: 0.5rem; }
  .profile-fields { grid-template-columns: repeat(2, 1fr); }
  .profile-extra { justify-content: center; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .detail-header { padding: 1.25rem; }
  .profile-top h1 { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Timeline — joueur_detail.html (parcours du joueur)
   ═══════════════════════════════════════════════════════════════════════ */
.sm-timeline { position: relative; padding: 0; list-style: none; }
.sm-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--bs-gray-300);
  border-radius: 2px;
}
.sm-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding-bottom: 1.25rem;
  min-height: 48px;
}
.sm-timeline-item:last-child { padding-bottom: 0; }
.sm-timeline-dot {
  flex-shrink: 0;
  position: relative;
  left: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: #fff;
  z-index: 1;
  box-shadow: 0 0 0 3px #fff;
}
.sm-timeline-item > div:last-child { flex: 1; min-width: 0; }
.sm-timeline-dot.transfert  { background: var(--bs-primary); }
.sm-timeline-dot.pret       { background: var(--bs-warning); color: var(--bs-dark); }
.sm-timeline-dot.retour_pret{ background: var(--bs-info); color: var(--bs-dark); }
.sm-timeline-dot.formation  { background: var(--bs-secondary); }
.sm-timeline-dot.libre      { background: var(--bs-success); }
.sm-timeline-dot.default    { background: var(--bs-gray-500); }
.sm-timeline-dot.competition{ background: var(--bs-primary); }
.sm-timeline-dot.amical     { background: var(--bs-secondary); }
.sm-timeline-dot.stage      { background: var(--bs-info); color: var(--bs-dark); }

/* ═══════════════════════════════════════════════════════════════════════
   Progress Thin — equipe_details.html
   ═══════════════════════════════════════════════════════════════════════ */
.progress-thin { height: 5px; }

/* ═══════════════════════════════════════════════════════════════════════
   Contract Items — entraineur_details.html
   ═══════════════════════════════════════════════════════════════════════ */
.contract-item {
  border-left: 3px solid #0d6efd;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  transition: background 0.2s ease;
}
.contract-item:hover { background: #e7f1ff; }
.contract-item:last-child { margin-bottom: 0; }
.contract-item h6 { margin-bottom: 0.3rem; }
.contract-item p { margin-bottom: 0.15rem; font-size: 0.88rem; }

/* ═══════════════════════════════════════════════════════════════════════
   Evaluation Detail — evaluation_detail.html
   ═══════════════════════════════════════════════════════════════════════ */
.eval-section {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: 10px;
  border-left: 4px solid transparent;
}
.eval-section.intelligence { background: #e3f2fd; border-left-color: #2196f3; }
.eval-section.personnalite { background: #fff3e0; border-left-color: #ff9800; }
.eval-section.physique     { background: #e8f5e9; border-left-color: #4caf50; }
.eval-section.technique    { background: #fce4ec; border-left-color: #e91e63; }

.eval-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eval-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}
.eval-table th,
.eval-table td {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0.6rem 0.5rem;
  text-align: center;
  vertical-align: middle;
}
.eval-table th {
  background: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 0.8rem;
}
.eval-table td {
  font-weight: 700;
  font-size: 1rem;
}

.eval-avg {
  text-align: right;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}
.eval-avg span {
  color: #0d6efd;
  font-size: 1.1rem;
}

.eval-general {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #212529;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, #e7f1ff, #f0f4ff);
  border-radius: 12px;
}
.eval-general span { color: #0d6efd; }

.eval-meta p { margin-bottom: 0.4rem; }
.eval-meta strong { color: #0d6efd; }

/* Profil & Résumé */
.eval-profile-row { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.eval-profile-card { flex: 1; min-width: 260px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 1.25rem; }
.eval-profile-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 6px; }
.eval-resume-avg { font-size: 2rem; font-weight: 800; line-height: 1; }
.eval-resume-cat { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.85rem; }
.eval-resume-cat:last-child { border-bottom: none; }
.eval-resume-bar { flex: 1; height: 6px; background: #e2e8f0; border-radius: 3px; margin: 0 0.75rem; overflow: hidden; }
.eval-resume-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }

/* ═══════════════════════════════════════════════════════════════════════
   About Page — about.html
   ═══════════════════════════════════════════════════════════════════════ */
.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
            url('/static/assets/img/image1.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.about-section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  color: #0d6efd;
}

.about-section-title:after {
  content: '';
  position: absolute;
  display: block;
  width: 80px;
  height: 3px;
  background: #0d6efd;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.about-card {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding: 30px;
  margin-bottom: 30px;
  background: white;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.about-icon {
  font-size: 2.5rem;
  color: #0d6efd;
  margin-bottom: 20px;
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 10px;
}

.contact-info i {
  color: #0d6efd;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.country-flag {
  width: 30px;
  margin-right: 10px;
}

.contact-info a {
  color: inherit;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════
   Section Nav — sticky mini-summary on long detail pages (Phase 3.1)
   ═══════════════════════════════════════════════════════════════════════ */
.section-nav {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.section-nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav-link {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.section-nav-link:hover,
.section-nav-link.active {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
}

/* ═══════════════════════════════════════════════════════════════════════
   Global Search — navbar search modal (Phase 3.4)
   ═══════════════════════════════════════════════════════════════════════ */
.nav-search-btn {
  color: #6c757d;
  font-size: 1.1rem;
  padding: 0.4rem 0.6rem;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-search-btn:hover { color: #0d6efd; }
.search-input-wrapper {
  position: relative;
}
.search-input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
}
.search-input-wrapper input {
  padding-left: 38px;
  border-radius: 10px;
  font-size: 1rem;
}
.search-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #adb5bd;
  padding: 0.5rem 0 0.25rem;
  margin: 0;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.search-result-item:hover { background: #f8f9fa; }
.search-result-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.search-result-name { font-weight: 600; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════════
   View Toggle — cards / list switch (replaces sort selector)
   ═══════════════════════════════════════════════════════════════════════ */
.view-toggle {
  display: inline-flex;
  background: #f1f3f5;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6c757d;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-toggle-btn:hover { color: #0d6efd; background: #e7f1ff; }
.view-toggle-btn.active { background: #fff; color: #0d6efd; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* View containers — controlled by JS */
.view-cards { display: block; }
.view-list  { display: none; }
.view-list.active  { display: block; }
.view-cards.active { display: block; }

/* ─── Compact list rows (shared) ─── */
.list-compact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f1f3f5;
  transition: background 0.15s ease;
}
.list-compact-row:last-child { border-bottom: none; }
.list-compact-row:hover { background: #f8f9fa; color: inherit; }
.list-compact-row img.list-compact-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  flex-shrink: 0;
}
.list-compact-row img.list-compact-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.list-compact-name {
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-compact-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #6c757d;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   Numbered Pagination (Phase 4 — replaces page-info text)
   ═══════════════════════════════════════════════════════════════════════ */
.sm-pagination .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sm-pagination .page-num:hover { background: #e7f1ff; color: #0d6efd; }
.sm-pagination .page-num.active {
  background: #0d6efd;
  color: #fff;
  pointer-events: none;
}
.sm-pagination .page-ellipsis {
  color: #adb5bd;
  padding: 0 0.25rem;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   Competition Detail — Format rules strip
   ═══════════════════════════════════════════════════════════════════════ */
.format-rules-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.format-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.format-badge i { font-size: 0.68rem; opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════════════════
   Bilan — Hero KPIs + Compact secondary
   ═══════════════════════════════════════════════════════════════════════ */
.bilan-hero .card-body { padding: 1.5rem 1rem; }
.bilan-hero-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}
.bilan-hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.bilan-compact .card-body { padding: 0.6rem 0.4rem; }
.bilan-compact-value {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}
.bilan-compact-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Classement table — beautiful styling
   ═══════════════════════════════════════════════════════════════════════ */
.classement-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}
.classement-table tbody td {
  font-size: 0.85rem;
  vertical-align: middle;
  padding: 0.55rem 0.5rem;
}
.classement-top-row {
  background: linear-gradient(90deg, rgba(25,135,84,0.06) 0%, transparent 100%) !important;
  border-left: 3px solid #198754;
}
.classement-top-row td:first-child {
  color: #198754;
}

/* ═══════════════════════════════════════════════════════════════════════
   Confrontations bracket
   ═══════════════════════════════════════════════════════════════════════ */
.confrontation-round-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 12px;
}
.confrontation-round-title i {
  color: #0d6efd;
  margin-right: 6px;
}
.confrontation-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.2s ease;
}
.confrontation-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.confrontation-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.confrontation-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.confrontation-winner {
  color: #198754;
}
.confrontation-winner a { color: #198754 !important; }
.confrontation-vs {
  color: #adb5bd;
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0 4px;
}
.confrontation-score {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}
.confrontation-qualifie {
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Équipes inscrites — team cards grid
   ═══════════════════════════════════════════════════════════════════════ */
.inscription-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 0.5rem;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  transition: all 0.2s ease;
  text-align: center;
  height: 100%;
}
.inscription-team-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 2px 8px rgba(13,110,253,0.12);
  transform: translateY(-2px);
}
.inscription-team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.inscription-team-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
  word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════════════════
   Journée filter pills
   ═══════════════════════════════════════════════════════════════════════ */
.journee-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}
.journee-pill {
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.journee-pill:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}
.journee-pill.active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* ═══ Hero KPI Strip (joueur pages) ═══ */
.hero-kpi-strip {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.hero-kpi {
  text-align: center;
}
.hero-kpi-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}
.hero-kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
}

/* ═══ Stat Bar (buts / passeurs progress bars) ═══ */
.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.stat-bar-label {
  min-width: 120px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-bar-track {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.stat-bar-value {
  min-width: 80px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ═══ Expandable matchs list ═══ */
.sm-matchs-extra {
  display: none;
}
.sm-matchs-extra.show {
  display: table-row-group;
}
