/* ============ LAYOUT PAGE + PUB/CAROUSEL (conserve) ============ */

:root{
  --pub-h: 20vh;
}

/* Conteneur de page avec bandeau pub en bas (mobile) */
.page-container{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* La zone des matchs scrolle au-dessus de la pub */
.match-block{
  flex:1;
  overflow-y:auto;
  padding:12px;
  padding-bottom: calc(var(--pub-h) + 12px);
  background:#f6f6f6;
}

/* Masquer la pub sur desktop/TV (la pub est mobile-only) */
@media (min-width: 800px) {
  .pub { 
    display: none !important;
  }
}

/* ---- Bandeau pub (carrousel en bas) ---- */
.pub{
  position:fixed;
  left:0; right:0; bottom:0;
  height:var(--pub-h);
  z-index:1000;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  background-color: #ffffff;
}

/* Carrousel : une slide = 100% de la largeur */
.carousel{
  display:flex;
  width:100%;
  height:100%;
  overflow:hidden;
  scroll-behavior:smooth;
}

.carousel-items{
  flex:0 0 100%;
  height:100%;
}

.carousel-items img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  
}

/* Optionnel: sur mobile, un peu plus haut si besoin */
@media (max-width: 480px){
  :root { --pub-h: 20vh; }
}

/* ============ RECHERCHE / FILTRES (conserve) ============ */

.display-search{
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-search {
  text-align: center;
  padding: 20px;
  padding-left: 50px ;
  padding-right: 50px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-width: 400px;
  max-height: 150px;
  width: 100%;
}

form.d-flex {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group.mb-3 {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.input-group.mb-3 input.form-control {
  flex: 1;
  padding: 5px 10px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.input-group.mb-3 button.btn {
  padding: 5px 12px;
  height: 40px;
  width: 120px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background-color: #013d5b;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.input-group.mb-3 button.btn:hover {
  background-color: #00537c;
}


input::placeholder {
  color: #6c757d;
}

/* Barre au-dessus de la liste */
.filters-bar{
  display:flex;
  gap:8px;
  align-items:center;
  margin:12px 0;
}

.btn-filter, .btn-reset, .btn-apply, .btn-close{
  border:1px solid #ccc;
  background:#fff;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
  transition: background .2s;
}
.btn-filter:hover, .btn-reset:hover, .btn-apply:hover, .btn-close:hover{
  background:#f3f3f3;
}

/* Panneau de filtres */
.filter-panel {
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

/* Grille 2x2 : Nom/Club, Sexe/Date */
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto auto;
  gap: 16px 20px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.filter-field input[type="search"],
.filter-field input[type="text"] {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.filter-field input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,.1);
}

/* Ligne radio (Sexe) */
.radio-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

/* Actions en bas */
.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Message “pas de match” */
.no-match-message {
  text-align: center;
  font-size: 12px;
  color: #555;
  margin: 20px 0;
}

/* ============ SUPPRESSIONS ============ */
/* Tout l’ancien style du scoreboard a été supprimé
   (scoreboard, match-container, match-court, player-*, set-*, Cours, ServiceDot, etc.)
   pour laisser la main à /css/scoreboard-modern.css */
