/* ==========================================================================
   1. Réinitialisation Globale & Typographie
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   2. Structure & Conteneurs Majeurs
   ========================================================================== */
header {
    background: linear-gradient(to right, #1a365d, #2c5282);
    color: white;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.header-logo {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e53e3e;
    background-color: white;
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

footer {
    background: #1a365d;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

footer p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ==========================================================================
   3. Navigation (Menu principal)
   ========================================================================== */
nav ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background: #e53e3e;
}

/* ==========================================================================
   4. Sections & Éléments de Contenu Génériques
   ========================================================================== */
section {
    background: white;
    margin: 25px 0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

section h2 {
    color: #1a365d;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e53e3e;
}

section h3 {
    color: #2c5282;
    font-size: 1.4rem;
    margin: 20px 0 10px;
}

section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.section-intro {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

section ul {
    list-style: none;
    padding-left: 0;
}

section ul li {
    padding: 10px 15px;
    margin: 8px 0;
    background: #f7fafc;
    border-left: 4px solid #e53e3e;
    border-radius: 5px;
}

.info-box {
    background: #fff5f5;
    padding: 20px;
    margin-top: 25px;
    border-radius: 8px;
    border-left: 5px solid #e53e3e;
}

/* --- Frise chronologique (page d'accueil) --- */
.timeline {
    position: relative;
    margin-top: 25px;
    padding-left: 30px;
    border-left: 3px solid #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e53e3e;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e53e3e;
}

.timeline-year {
    display: inline-block;
    font-weight: bold;
    color: white;
    background: #2c5282;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timeline-content h3 {
    margin-top: 0;
}

/* ==========================================================================
   5. Systèmes de Grilles Modulaires (Grids & Layouts)
   ========================================================================== */
.comparison-grid,
.features-grid,
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.comparison-card,
.feature-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #2c5282;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.team-card,
.player-profile {
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 5px solid #e53e3e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.team-details p {
    margin-bottom: 8px !important;
    font-size: 0.95rem;
}

.animate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ==========================================================================
   6. Tableaux de Classement (Standings)
   ========================================================================== */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    border: 1px solid #cbd5e0 !important;
}

thead {
    background-color: #2c5282 !important;
    color: white !important;
}

th {
    padding: 15px 20px !important;
    text-align: left !important;
    font-weight: bold !important;
    border: 1px solid #cbd5e0 !important;
}

td {
    padding: 14px 20px !important;
    border: 1px solid #e2e8f0 !important;
    text-align: left !important;
}

tbody tr:hover {
    background: #f7fafc !important;
}

tbody tr:first-child {
    background: #fff5f5 !important;
    font-weight: bold;
}

.text-center, th.text-center {
    text-align: center !important;
}

.text-win {
    color: #38a169;
    font-weight: bold;
}

.text-loss {
    color: #e53e3e;
}

/* ==========================================================================
   7. Page des Joueurs (Players Profiles)
   ========================================================================== */
.players-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.player-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.player-photo,
.player-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #2c5282;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.player-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c5282, #1a365d);
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.player-info {
    flex: 1;
    min-width: 250px;
}

.player-info h3 {
    font-size: 1.6rem;
    color: #1a365d;
    margin-bottom: 5px;
}

.player-meta {
    margin-bottom: 5px !important;
    font-size: 1rem;
}

.player-stats-block {
    margin-top: 15px;
}

.player-stats-block h4 {
    color: #2c5282;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.stats-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stats-list li {
    background: #edf2f7 !important;
    border-left: none !important;
    padding: 8px 15px !important;
    border-radius: 6px;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

/* ==========================================================================
   8. Page Direct & Vidéos (Live Streaming)
   ========================================================================== */
.vk-live-banner {
    background: linear-gradient(135deg, #0077ff, #0055cc);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 45px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 85, 204, 0.25);
    margin: 25px 0;
}

.vk-live-banner h3 {
    color: white !important;
    font-size: 1.6rem;
    margin: 10px 0 15px 0;
}

.vk-live-banner p {
    margin-bottom: 25px;
    max-width: 550px;
    font-size: 1.05rem;
    opacity: 0.9;
}

.vk-icon {
    font-size: 3.5rem;
    animation: pulse 2s infinite;
}

.schedule-block {
    margin-top: 40px;
}

.schedule-sub {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.schedule-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-live {
    background-color: #fed7d7;
    color: #e53e3e;
    animation: blink 1.5s infinite;
}

.badge-upcoming {
    background-color: #e2e8f0;
    color: #4a5568;
}

.video-container, .Video.container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    margin: 20px 0;
}

.video-container iframe, .Video.container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   9. Page Divisions & Badges
   ========================================================================== */
.division-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.badge-gold {
    background-color: #feebc8;
    color: #c05621;
}

.division-premium {
    border-top-color: #e53e3e !important;
    background: linear-gradient(to bottom, #ffffff, #fffaf0);
}

.region-badge {
    background-color: #fff5f5;
    color: #e53e3e;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #fed7d7;
}

/* --- Cartes de divisions (utilisées par divisions.html) --- */
.nba-section-header {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: none;
}

.nba-section-header h2 {
    display: inline-block;
}

.nba-divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.nba-division-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border-top: 5px solid #2c5282;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nba-division-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.nba-division-card.elite {
    border-top-color: #e53e3e;
    background: linear-gradient(to bottom, #ffffff, #fffaf0);
}

.nba-card-header {
    padding: 20px 20px 0 20px;
}

.nba-card-header h3 {
    margin: 8px 0 0 0;
    color: #1a365d;
}

.nba-badge-live,
.nba-badge-secondary {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.nba-badge-live {
    background-color: #fed7d7;
    color: #e53e3e;
}

.nba-badge-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.nba-card-body {
    padding: 15px 20px 20px 20px;
}

.nba-desc {
    color: #4a5568;
    font-size: 0.95rem;
}

.nba-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.nba-team-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: background 0.2s, border-color 0.2s;
}

.nba-team-item:hover {
    background: #fff5f5;
    border-color: #fed7d7;
}

.nba-ball-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nba-team-name {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    color: #1a365d;
    font-size: 0.9rem;
    line-height: 1.3;
}

.nba-city {
    font-weight: normal;
    color: #718096;
    font-size: 0.8rem;
}

/* ==========================================================================
   10. Section Héros, Appel à l'action (CTA) & Boutons
   ========================================================================== */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.stat-box {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-bottom: 4px solid #1a365d;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #e53e3e;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
}

.cta-section {
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    color: white;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-sm {
    display: block;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-top: 15px;
}

.btn-primary { background-color: #1a365d; }
.btn-primary:hover { background-color: #2c5282; }

.btn-secondary { background-color: #2c5282; }
.btn-secondary:hover { background-color: #4299e1; }

.btn-accent { background-color: #e53e3e; }
.btn-accent:hover { background-color: #c53030; }

.btn-vk {
    background-color: white !important;
    color: #0077ff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 12px 35px;
}

.btn-vk:hover {
    background-color: #f0f4f8 !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   11. Formulaire de contact (feedback.html)
   ========================================================================== */
.feedback-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 800px) {
    .feedback-layout {
        grid-template-columns: 1fr;
    }
}

.feedback-form-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid #2c5282;
    height: fit-content;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5282;
}

.form-status {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #f0fff4;
    color: #276749;
    border-left: 4px solid #38a169;
}

.form-status.error {
    display: block;
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feedback-message {
    background: #f7fafc;
    border-left: 4px solid #4299e1;
    border-radius: 6px;
    padding: 15px 18px;
}

.feedback-message .fm-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.feedback-message .fm-name {
    font-weight: bold;
    color: #1a365d;
}

.feedback-message .fm-date {
    color: #718096;
    font-size: 0.85rem;
}

.feedback-empty {
    color: #718096;
    font-style: italic;
}

/* ==========================================================================
   13. Animations Clés (Keyframes)
   ========================================================================== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
