/* public.css */

body {
    background: #f2f7fa;
    font-family: "Segoe UI", Arial, sans-serif;
}
.home-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 36px #0002;
    max-width: 520px;
    margin: 56px auto 36px auto;
    padding: 32px 32px 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.logo img {
    height: 95px;
    width: auto;
}
.site-title {
    text-align: center;
    color: #1976d2;
	font-family: "Roboto Slab", serif;
    font-size: 2.2em;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}
.soft-title {
    text-align: center;
    color: #35557c;
    font-size: 1.13em;
    margin-bottom: 18px;
    font-weight: 400;
}
.tournois-list {
    margin: 22px 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 17px;
}
.tournoi-box {
    background: #e8f0ff;
    border-radius: 10px;
    box-shadow: 0 1px 7px #1976d21a;
    padding: 18px 22px 13px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}
.tournoi-title {
    color: #1646b0;
    font-weight: bold;
    font-size: 1.15em;
    margin-bottom: 2px;
}
.tournoi-infos {
    color: #444;
    font-size: 1em;
}
.btn-inscription {
    margin-top: 7px;
    background: #1976d2;
    color: #fff;
    font-weight: bold;
    padding: 9px 22px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-size: 1.07em;
    box-shadow: 0 1px 6px #1976d233;
    transition: background 0.17s;
    display: inline-block;
}
.btn-inscription:hover {
    background: #38a169;
    color: #fff;
    text-decoration: none;
}
.note {
    text-align: center;
    color: #888;
    margin-top: 18px;
    font-size: 0.97em;
}
@media (max-width: 600px) {
    .home-box { padding: 12px 2vw 14px 2vw; max-width: 99vw; }
    .site-title { font-size: 1.4em;}
}
.discipline-header {
    background: #e3edfc;
    color: #1976d2;
    font-size: 1.15em;
    font-weight: bold;
    padding: 11px 18px 8px 18px;
    border-radius: 11px;
    margin: 32px 0 10px 0;
    box-shadow: 0 2px 10px #0001;
}
@media (max-width: 600px) {
    .discipline-header {
        font-size: 1.01em;
        padding: 7px 5vw 7px 5vw;
        margin: 18px 0 8px 0;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 4px;
}

.form-group input {
    padding: 9px 12px;
    font-size: 1em;
    border-radius: 7px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 2px #0001;
}
table.dispo {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}
table.dispo th, table.dispo td {
    border: 1px solid #ccc;
    padding: 6px;
    text-align: center;
}
table.dispo th {
    background-color: #eef4ff;
}
.week-separator {
    margin-top: 30px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.week-separator button {
    font-size: 0.8em;
    padding: 5px 10px;
    margin-left: 12px;
}
.tournoi-box.serie-complet {
    background-color: #fdd;
    border: 2px solid #c00;
    opacity: 0.7;
    cursor: not-allowed;
}

.tournoi-box.serie-reserve {
    background-color: #fff3e0;
    border: 2px dashed #ffa500;
}


.serie-texte {
    font-weight: bold;
    display: inline-block;
}
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before {
    content: "🧾 ";
}
/* Étape 0 – Titres des séries */
.liste-series summary {
    font-size: 1em;                
    font-weight: bold;
    color: #0066cc;                
    margin: 6px 0 3px 10px;        
}

/* Étape 0 – Espacement entre les groupes */
.liste-series details {
    margin-bottom: 4px;
    padding: 3px 0;
}
.bloc-infos {
    background: #f8f8f8;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.bloc-pdf a {
    display: inline-flex;
    align-items: center;
    background: #eef3ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    color: #234;
    transition: background 0.2s;
}

.bloc-pdf a:hover {
    background: #dbe5ff;
}

.bloc-pdf img {
    height: 20px;
    margin-right: 8px;
}

.bloc-organisateur {
    background: #fff5cc;
    border-left: 5px solid #e1b400;
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 6px;
    font-style: italic;
    font-size: 0.95em;
    color: #444;
}
.reserve-message {
    font-size: 0.9em;
    color: #cc6600;
    margin-top: 6px;
}

.serie-radio {
    margin-right: 8px;
    transform: scale(1.3);
    vertical-align: middle;
}
.reserve-fix {
    position: relative;
    top: 4px;
}
table.dispo td:active {
    background: #b6d4fe !important; /* un bleu clair rapide au toucher */
}

/* === Grilles de créneaux volumineuses (étapes 3 & 4) === */
.slots-scroller{
  overflow:auto;                 /* scroll horizontal si trop de colonnes */
  max-width:100%;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
}

/* On laisse la table s’étirer : le conteneur scrolle */
.slots-scroller table.dispo{
  width:max-content;             /* s’élargit selon le nb d’heures */
  min-width:720px;               /* confort */
  border-collapse:separate;
  border-spacing:0;
}

.slots-scroller th,
.slots-scroller td{
  border:1px solid #e5e7eb;
  padding:6px 8px;
  text-align:center;
  white-space:nowrap;            /* évite les retours à la ligne dans les heures */
}

/* En-tête collant */
.slots-scroller thead th{
  position:sticky; top:0;
  background:#f8fafc;
  z-index:5;
}

/* 1re colonne “Jour” collante (thead + tbody) */
.slots-scroller thead th:first-child,
.slots-scroller tbody th:first-child{
  position:sticky; left:0;
  background:#f8fafc;
  z-index:6;                     /* > header pour éviter chevauchements */
  text-align:left;
  white-space:normal;            /* autorise le retour à la ligne du libellé jour */
  min-width:150px;
}

/* largeur mini pour les colonnes d’heures (sans changer ton PHP) */
.slots-scroller thead th:not(:first-child){ min-width:58px; }

@media (max-width:1300px){
  .slots-scroller thead th:not(:first-child){ min-width:50px; padding:4px; }
}
/* ===== Dispos : meilleure lisibilité mobile ===== */
.dispo-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.dispo th, table.dispo td {
  min-width: 56px;           /* largeur mini de chaque heure */
  padding: 8px 6px;
}

table.dispo th:first-child,
table.dispo td:first-child,
table.dispo .jour-col {
  width: 140px;              /* colonne "Jour" plus étroite */
  max-width: 140px;
  white-space: nowrap;       /* reste sur une ligne : "lun. 15 sept." */
}

/* un peu plus serré sur très petit écran */
@media (max-width: 520px) {
  table.dispo th, table.dispo td { min-width: 50px; padding: 7px 4px; }
  table.dispo th:first-child,
  table.dispo td:first-child,
  table.dispo .jour-col { width: 120px; max-width: 120px; }
  .week-separator { flex-direction: column; align-items: flex-start; gap: 6px; }
  .week-separator button { align-self: flex-end; }
}
