.ligue-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ligue-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: stretch;
}

.ligue-top-col {
  min-width: 0;
}

.ligue-page-card,
.ligue-ranking {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.ligue-page-card .card-header,
.ligue-ranking .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 22px;
}

.ligue-page-card .card-header h2,
.ligue-page-card .card-header h3,
.ligue-ranking .card-header h2,
.ligue-ranking .card-header h3 {
  margin: 0;
  font-size: 20px;
}

.ligue-page-card .card-body,
.ligue-ranking .card-body {
  padding: 22px;
}

.ligue-selected-card,
.ligue-carousel-card-shell {
  position: relative;
  overflow: hidden;
}

.ligue-selected-card::after,
.ligue-carousel-card-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
  opacity: 0.08;
  pointer-events: none;
}

.ligue-selected-card::after {
  background-image: url("/public/img/bg_classement.avif");
}

.ligue-carousel-card-shell::after {
  background-image: url("/public/img/bg_sondage.avif");
}

.ligue-selected-card .card-header,
.ligue-selected-card .card-body,
.ligue-carousel-card-shell .card-header,
.ligue-carousel-card-shell .card-body {
  position: relative;
  z-index: 1;
}

.ligue-sidebar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.ligue-sidebar-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 152px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ligue-sidebar-item.active {
  background: #eff6ff;
  color: #0f172a;
  border-color: #93c5fd;
}

.ligue-sidebar-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: inherit;
  text-decoration: none;
}

.ligue-sidebar-item-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ligue-sidebar-item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #64748b;
  margin-top: auto;
}

.ligue-sidebar-item-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.ligue-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ligue-carousel {
  overflow: hidden;
}

.ligue-carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ligue-carousel-controls[hidden] {
  display: none !important;
}

.ligue-carousel-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ligue-carousel-control:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.ligue-carousel-control.is-disabled,
.ligue-carousel-control:disabled {
  background: rgba(226, 232, 240, 0.75);
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
  box-shadow: none;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.ligue-carousel-card-shell--no-nav .ligue-sidebar-heading {
  justify-content: flex-start;
}

.ligue-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ligue-carousel-track::-webkit-scrollbar {
  display: none;
}

.ligue-carousel-item {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 12px) / 2);
  gap: 12px;
  min-width: 250px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ligue-carousel-item:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(var(--color-primary-rgb), 0.35);
}

.ligue-carousel-item-head,
.ligue-carousel-item-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ligue-carousel-item-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ligue-carousel-item-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.ligue-carousel-item-heading-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.ligue-carousel-item-heading-text h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ligue-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  justify-self: start;
  white-space: nowrap;
}

.ligue-status-badge--caps {
  text-transform: uppercase;
}

.ligue-carousel-item-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ligue-carousel-item-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #0f172a;
}

.ligue-carousel-item-row:not(:last-child) {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ligue-carousel-item-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.ligue-carousel-item-label::after {
  content: ":";
  margin-left: 2px;
}

.ligue-carousel-item-value {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
}

.ligue-carousel-item-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.ligue-help-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #475569;
}

.ligue-friends-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ligue-friend-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}

.ligue-summary-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-width: 0;
}

.ligue-summary-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
}

.ligue-summary-title {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.ligue-summary-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.ligue-summary-heading-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ligue-summary-heading-text h2 {
  display: block;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ligue-summary-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.ligue-summary-status {
  flex: 0 0 auto;
}

.ligue-summary-link {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ligue-summary-link:hover {
  text-decoration: underline;
}

.ligue-summary-link--inline {
  display: inline-block;
  margin-left: 4px;
}

.ligue-summary-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ligue-summary-alert {
  width: 100%;
  margin: 4px 0 0;
  padding: 10px 12px;
  font-size: 14px;
}

.ligue-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #0f172a;
}

.ligue-summary-row:not(:last-child) {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ligue-summary-label {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}

.ligue-summary-label::after {
  content: ":";
  margin-left: 2px;
}

.ligue-summary-value {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.ligue-summary-value--past {
  color: #94a3b8;
  font-style: italic;
}

.ligue-summary-actions-bar {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.ligue-summary-action-form {
  margin: 0;
}

.ligue-ranking {
  padding: 0;
}

.ligue-ranking .ranking-table {
  overflow-x: auto !important;
}

.ligue-ranking .ranking-table-header,
.ligue-ranking .ranking-table-body .ranking-row {
  min-width: 980px !important;
}

.ligue-ranking .ranking-col--pseudo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ligue-ranking .ranking-col--pseudo .avatar-base {
  flex: 0 0 auto;
}

.ligue-ranking .ranking-col--pseudo a {
  text-decoration: none;
}

.ligue-ranking .ranking-col--diff {
  justify-content: center;
  font-weight: 700;
}

.ligue-journees-modal .modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

.ligue-journees-modal .modal-dialog {
  max-width: 920px;
}

.ligue-journees-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 22px;
}

.ligue-journees-modal-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ligue-journees-modal-title h2 {
  margin: 0;
  font-size: 22px;
}

.ligue-journees-modal-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.ligue-journees-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.ligue-journees-day-title {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.ligue-journees-toolbar {
  display: flex;
  justify-content: center;
}

.ligue-journees-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.ligue-journees-arrow {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 24px;
  line-height: 1;
}

.ligue-journees-arrow.is-disabled {
  opacity: 0.45;
}

.ligue-journees-filter {
  flex: 0 1 560px;
  width: min(100%, 560px);
}

.ligue-journees-filter .select-group__value img,
.ligue-journees-filter .select-group__option img {
  width: auto !important;
  height: 30px !important;
  border-radius: 4px !important;
}

.ligue-journees-select-text,
.ligue-journees-option-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.ligue-journees-select-text strong,
.ligue-journees-option-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ligue-journees-select-text small,
.ligue-journees-option-text small {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ligue-journees-filter .select-group__dropdown {
  max-height: 320px;
}

.ligue-journees-ranking {
  font-size: 14px;
}

.ligue-journees-ranking .ranking-table-header,
.ligue-journees-ranking .ranking-table-body .ranking-row {
  min-width: 700px !important;
}

.ligue-journees-ranking .ranking-col--pseudo {
  min-width: 0;
}

.ligue-journees-ranking .ranking-table-body {
  margin-bottom: 0;
}

.ligue-journees-ranking .ranking-table-body .ranking-row {
  padding: 6px 10px;
}

.ligue-journees-ranking .ranking-table-header {
  font-size: 13px;
}

.ligue-journees-col-right {
  justify-content: flex-end;
}

.ligue-journees-player-col {
  min-width: 0;
  min-height: 28px;
  padding: 4px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ligue-journees-player-col--friend {
  background: rgba(var(--color-primary-rgb), 0.14);
  color: var(--color-primary);
}

.ligue-journees-player-col--me {
  background: rgba(var(--color-gold-rgb), 0.26);
  color: #7c5b00;
}

.ligue-journees-score,
.ligue-journees-score-head {
  justify-content: center;
}

.ligue-journees-score {
  gap: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.ligue-journees-score .is-winner {
  font-weight: 700;
}

.ligue-journees-score-sep {
  color: #64748b;
}

@media (max-width: 991.98px) {
  .ligue-carousel-track {
    gap: 10px;
  }

  .ligue-carousel-item {
    flex-basis: 82%;
    min-width: 260px;
  }

  .ligue-top-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ligue-summary-heading-text {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ligue-summary-heading-text h2 {
    width: 100%;
  }

  .ligue-journees-modal-header,
  .ligue-journees-toolbar {
    align-items: flex-start;
  }

  .ligue-journees-nav {
    gap: 8px;
  }

  .ligue-journees-filter {
    flex-basis: auto;
  }

  .ligue-journees-ranking {
    font-size: 13px;
  }

  .ligue-journees-ranking .ranking-table-header,
  .ligue-journees-ranking .ranking-table-body .ranking-row {
    min-width: 0 !important;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 6px;
  }

  .ligue-journees-ranking .ranking-table-body .ranking-row {
    padding: 5px 8px;
  }

  .ligue-journees-ranking .ranking-table-header {
    font-size: 12px;
  }

  .ligue-journees-player-col {
    min-height: 24px;
    padding: 3px 5px;
  }

  .ligue-journees-score {
    gap: 6px;
    font-size: 12px;
    min-width: max-content;
  }
}
