/* ═══════════════════════════════════════════════════════════════
   TEAM-DETAIL.CSS — Page intérieure d'une équipe
═══════════════════════════════════════════════════════════════ */

.td-coaches,
.td-players {
    padding: 60px 0 80px;
    background: #f4f4f4;
}
.td-coaches + .td-players {
    padding-top: 20px;
}

.td-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* EN-TÊTE watermark + titre */
.td-header {
    position: relative;
    text-align: center;
    margin-bottom: 28px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.td-watermark {
    position: absolute;
    font-family: 'Anton', sans-serif;
    font-size: clamp(70px, 13vw, 160px);
    color: #dadada;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.td-h2 {
    position: relative; z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #111;
    margin: 0;
}

/* Sous-titre 1ère / 2ème année */
.td-sub-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin: 0 0 28px;
}
.td-sub-title span {
    display: inline-block;
    width: 4px; height: 20px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Grille */
.cards_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
    justify-items: center;
}

.td-coaches {
    padding-top: 60px;
}

.td-coaches .cards_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-top: 40px;
}

/* Carte */
.card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: visible;
    width: 100%;
    max-width: 230px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: tdFadeUp 0.6s forwards;
}
@keyframes tdFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(9,126,235,0.22);
}

/* Image */
.card > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 14px 14px 0 0;
    transition: none;
}
.card:hover > img { transform: none; }

/* Placeholder */
.td-ph {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px 14px 0 0;
}

/* Numéro de maillot */
.td-numero-badge {
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 10px;
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    z-index: 2;
}

/* Texte */
.card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 14px 10px 4px;
    color: #111;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}
.card h3::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -5px;
    width: 0; height: 3px;
    background: #097eeb;
    border-radius: 2px;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}
.card:hover h3 { color: #097eeb; transform: translateY(-2px); }
.card:hover h3::after { width: 55%; }

.td-role,
.td-annee {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 14px;
}

/* Vide */
.td-empty {
    text-align: center;
    padding: 100px 20px;
    background: #f4f4f4;
}
.td-empty i { font-size: 3.5rem; color: #ddd; display: block; margin-bottom: 16px; }
.td-empty p { color: #aaa; font-size: 1rem; }
.td-empty a { color: #097eeb; margin-top: 12px; display: inline-block; }

/* Bouton retour flottant */
.td-back-btn {
    position: fixed;
    bottom: 28px; left: 28px;
    background: #fff;
    color: #111;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #e5e5e5;
    display: flex; align-items: center; gap: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    z-index: 200;
}
.td-back-btn:hover {
    background: #097eeb; color: #fff;
    border-color: #097eeb;
    box-shadow: 0 6px 24px rgba(9,126,235,0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .cards_container { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
    .card > img, .td-ph { height: 220px; }
}
@media (max-width: 600px) {
    .cards_container { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .card > img, .td-ph { height: 190px; }
    .td-back-btn { bottom: 16px; left: 16px; padding: 8px 14px; }
}

/* ══ PLANNING ═════════════════════════════════════════════════ */
.td-planning {
    padding: 60px 0 80px;
    background: #fff;
    margin-top: 40px;
}

/* Header watermark planning */
.td-planning .td-header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.td-planning .td-watermark {
    position: absolute;
    font-family: 'Anton', sans-serif;
    font-size: clamp(60px, 11vw, 140px);
    color: #ebebeb;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.td-planning .td-h2 {
    position: relative; z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #111;
    margin: 0;
}

/* Tableau */
.td-planning-table {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    border: 1px solid #eef2ff;
}
.td-planning-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
}

/* En-tête dégradé */
.td-planning-table thead tr {
    background: var(--td-accent-gradient, linear-gradient(90deg, #097eeb, #2563eb));
    border-bottom: none;
}
.td-planning-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}
.td-planning-table thead th i {
    margin-right: 6px;
    color: rgba(255,255,255,0.7);
}

/* Lignes */
.td-planning-table tbody tr {
    border-bottom: 1px solid #f0f4ff;
    transition: background 0.2s, transform 0.2s;
    border-left: 3px solid transparent;
    opacity: 0;
    transform: translateX(-12px);
    animation: trSlideIn 0.4s forwards;
}
@keyframes trSlideIn {
    to { opacity: 1; transform: translateX(0); }
}
.td-planning-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.td-planning-table tbody tr:nth-child(2) { animation-delay: 0.10s; }
.td-planning-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.td-planning-table tbody tr:nth-child(4) { animation-delay: 0.20s; }
.td-planning-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.td-planning-table tbody tr:nth-child(6) { animation-delay: 0.30s; }
.td-planning-table tbody tr:nth-child(7) { animation-delay: 0.35s; }

.td-planning-table tbody tr:last-child { border-bottom: none; }
.td-planning-table tbody tr:hover {
    background: #f0f7ff !important;
    border-left-color: var(--td-accent, #097eeb);
}

.tr-even { background: #fff; }
.tr-odd  { background: #f8faff; }

/* Ligne "aujourd'hui" mise en avant */
.tr-today {
    background: #eff6ff !important;
    border-left: 3px solid var(--td-accent, #097eeb) !important;
}
.tr-today td { font-weight: 600; }

.td-planning-table td {
    padding: 14px 20px;
    color: #333;
    vertical-align: middle;
}

/* Badge jour */
.td-jour-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Badge aujourd'hui / demain */
.td-badge-today {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    animation: pulseBadge 2s infinite;
}
.td-badge-demain {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
@keyframes pulseBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Horaires */
.td-horaires {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    white-space: nowrap;
}

/* Cellule vide */
.td-empty-cell { color: #ccc; }

/* Responsive */
@media (max-width: 600px) {
    .td-planning-table thead th,
    .td-planning-table td { padding: 10px 12px; font-size: 0.82rem; }
    .td-jour-badge { padding: 3px 8px; font-size: 0.72rem; }
}

/* Bouton FFBB sous le planning */
.td-ffbb-wrap {
    text-align: center;
    margin-top: 28px;
}
.td-ffbb-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 50px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.td-ffbb-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    filter: brightness(1.08);
}
