/* Fichier: style_rapports.css */

/* --- Variables de couleur pour une personnalisation facile --- */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #1e375a; /* Bleu marine foncé pour les en-têtes */
    --success-color: #27ae60;
    --danger-color: #d9534f;
    --light-gray: #f8f9fa;
    --text-color: #555;
    --border-color: #e0e0e0;
}

/* --- Styles généraux --- */
.main-content {
    padding: 20px;
}

/* --- En-tête de la course --- */
.race-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.race-header h1 {
    margin: 0;
    font-size: 1.8em;
    color: var(--secondary-color);
}
.race-header .sub-details {
    font-size: 1.1em;
    color: var(--text-color);
    margin-top: 5px;
}

/* --- Table d'arrivée verticale --- */
.arrivee-vertical-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden; /* Pour que le radius s'applique aux coins */
}
.arrivee-vertical-table th {
    text-align: left;
    padding: 12px 15px;
    font-size: 1.1em;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--light-gray);
}
.arrivee-vertical-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: middle;
}
.arrivee-vertical-table tr:last-child td {
    border-bottom: none;
}
.arrivee-vertical-table .position-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
}
.arrivee-vertical-table .cheval-nom {
    font-weight: bold;
}
.arrivee-vertical-table .jockey-details {
    font-size: 0.9em;
    color: #666;
}
.arrivee-vertical-table .hidden-row {
    display: none; /* Caché par défaut */
}
.voir-plus-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-weight: bold;
    cursor: pointer;
    padding: 12px 15px;
    width: 100%;
    text-align: left;
    font-size: 1em;
    transition: background-color 0.2s;
}
.voir-plus-btn:hover {
    background-color: var(--light-gray);
}
.voir-plus-btn .fa {
    margin-right: 8px;
}

/* --- Système d'onglets pour les rapports --- */
.tabs-container {
    display: flex;
    border-bottom: 2px solid var(--secondary-color);
    margin-bottom: 20px;
}
.tab-link {
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #f0f0f0;
    color: var(--text-color);
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    position: relative;
    bottom: -1px;
    transition: all 0.2s;
}
.tab-link.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* --- Tableaux de rapports --- */
.rapports-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.rapports-table th {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px;
    text-align: left;
}
.rapports-table th small {
    font-weight: normal;
    opacity: 0.8;
}
.rapports-table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    background: white;
}
.rapports-table tr:nth-child(even) td {
    background-color: var(--light-gray);
}
.rapports-table .gain {
    color: var(--danger-color);
    font-weight: bold;
    text-align: right;
}
