/* --- Police globale --- */
*,
*::before,
*::after {
  font-family: "tiller", sans-serif !important;
}

/* --- Base générale --- */
body {
  font-family: "tiller", sans-serif;
}

.container {
  max-width: 1000px !important; /* largeur max du contenu */
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* scroll fluide sur iOS */
}

h5 {
    font-weight: 700;
}

/* --- Formulaires & texte --- */
select.form-select {
  font-size: 18px;
  font-weight: 400;
}

/* --- Navigation --- */
nav ul li {
  font-size: 18px;
  font-weight: 400;
  padding-bottom: 12px;
  cursor: pointer;
}

nav ul li.border-bottom {
  border-bottom: 2px solid black;
}

/* --- Liens / onglets --- */
.nav-link {
  color: #000;
  opacity: 0.5;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  padding-bottom: 4px;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-link.active {
  opacity: 1;
  border-color: #ff8800; /* orange Altered */
  font-weight: 600;
}

/* --- Cartes / Card body --- */
.card-body {
  font-weight: 400;
}

.card-body img {
  border-radius: 0px; /* 8px */
}

.card-body span {
  font-weight: 400;
}

.card-body img {
  width: 36px;
  height: 36px;
}

.card-body a img {
  width: 24px;
  height: 24px;
}

/* --- Joueurs mis en avant --- */
.player-highlight {
  position: relative;
  border-radius: 8px;
  background-color: #fff7ed; /* léger fond orangé */
  box-shadow: 0 0 0 2px orange inset; /* bordure interne */
}

/* --- Bannières / Header --- */
.banner-header {
  background-image: url('./banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
}

.banner-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* voile sombre */
  z-index: 0;
}

.banner-header .container {
  position: relative;
  z-index: 1;
}

.logo {
  max-height: 120px; /* PC */
}

@media (max-width: 769px) {
  .logo {
    max-height: 90px; /* Mobile */
    width: auto; /* Pour garder les proportions */
  }
}

/* --- Footer bannière --- */
.footer-banner {
  background-image: url('./banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
  position: relative;
}

.footer-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.footer-banner .container {
  position: relative;
  z-index: 1;
}

.footer-banner a {
  color: white;
  text-decoration: underline;
}

.footer-banner a:hover {
  text-decoration: none;
}

.rounded {
    border-radius: 1rem !important;
}

.tooltip-inner {
	text-align: left !important;
}

/* Scroll mobile Expédition */
.sortable-header {
  padding-right: 30px !important; /* espace réservé pour la scrollbar sur desktop */
}

@media (max-width: 768px) {
  .sortable-header {
    padding-right: 15px !important; /* pas de padding sur mobile */
  }
}


.scroll-wrapper {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

@media (max-width: 768px) {
  .scroll-wrapper {
    max-height: 250px;
  }
}

/* Scroll mobile Classement */
/* minimal CSS réutilisable */
.horizontal-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* largeur minimum sur desktop pour le tableau global */
.global-inner {
  min-width: 800px;
}

/* wrapper vertical — overflow géré ici (max-height injecté en inline) */
.scroll-wrapper {
  overflow-y: auto;
}

/* mobile adjustments */
@media (max-width: 768px) {
  /* réduire la min-width sur petits écrans */
  .global-inner {
    min-width: 650px; /* ajuste selon ton goût */
  }

  /* forcer une hauteur mobile si tu veux une valeur standard (250px) */
  .scroll-wrapper {
    max-height: 250px !important;
  }
}