/* =============================================================== */
/* === STYLES SPÉCIFIQUES À LA PAGE DE PRÉDICTIONS === */
/* =============================================================== */

/* --- Conteneurs et mise en page --- */
.year-selector {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.analysis {
    max-width: 1100px; /* Aligné avec la largeur .container */
    margin: 3rem auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.analysis h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

/* --- Graphiques --- */
#chartContainer {
    max-width: 100%;
    margin: auto;
    height: 600px;
    position: relative;
}

#predRealContainer {
    position: relative;
    height: 400px;
}

/* --- Boutons "pastilles" pour les horizons de temps --- */
.horizon-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.horizon-tabs button {
    padding: 0.5rem 1.25rem;
    border-radius: 50px; /* Style "pilule" cohérent */
    border: 1px solid var(--border-color);
    background-color: var(--card-bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.horizon-tabs button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.horizon-tabs button.active {
    background: var(--primary-gradient);
    color: var(--light-text-color);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Tableaux de données --- */
.table-wrap {
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg-color);
    box-shadow: var(--shadow-md);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap; 
}

th {
    background-color: var(--section-bg-color);
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 0.9rem;
    position: sticky; /* En-tête fixe lors du défilement */
    top: 0;
    z-index: 1;
}

tr:hover {
    background-color: var(--section-bg-color);
    cursor: pointer;
}

tr.focused {
    /* Couleur de surbrillance qui fonctionne en thèmes clair et sombre */
    background-color: rgba(13, 148, 136, 0.1) !important;
}

/* Badge pour le classement */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--section-bg-color);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.8rem;
}

/* --- Texte d'aide --- */
.hint {
    color: var(--subtle-text-color);
    font-size: 0.9em;
    margin-bottom: 1rem;
}


/* --- Responsive pour les grilles --- */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

#prediction-hero {
  /* La valeur par défaut pour toutes les sections est 5rem. */
  /* Ajustez cette valeur comme vous le souhaitez. */
  padding-top: 0.5rem; 
}
