/* style_index.css */

/* Reset et polices */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Partie principale */
.main-content {
    flex: 3;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Partie latérale */
.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar > div {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Titres */
h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

h1 {
    font-size: 28px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
    margin-top: 15px;
}

/* Onglets de date */
.date-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.date-link {
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: #2c3e50;
    background-color: #eaeaea;
    transition: all 0.3s;
    font-size: 14px;
}

.date-link.active, .date-link:hover {
    background-color: #3498db;
    color: white;
}

/* Input et boutons */
input[type="date"], 
input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

button, .pronostic-btn {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover, .pronostic-btn:hover {
    background-color: #2980b9;
}

#show-courses {
    background-color: #2ecc71;
}

#show-courses:hover {
    background-color: #27ae60;
}

/* Tableaux */
.race-table, .horses-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.race-table th, .race-table td,
.horses-table th, .horses-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.race-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.horses-table th {
    background-color: #f1f5f9;
    font-size: 14px;
}

.horses-table td {
    font-size: 14px;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Liens sociaux */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f1f5f9;
    border-radius: 5px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #3498db;
    color: white;
}

/* Liste d'articles */
.articles ul {
    list-style: none;
}

.articles li {
    margin-bottom: 10px;
}

.articles a {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s;
}

.articles a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Checkbox style comme dans l'image */
.search-form {
    position: relative;
}

.search-form:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #eaeaea;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .main-content, .sidebar {
        width: 100%;
    }
}
/* Style des checkboxes */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #3498db;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background-color: #3498db;
}

input[type="checkbox"]:checked:after {
    content: "✓";
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}
.action-buttons {
    display: flex;
    gap: 8px;
}

.pronostic-btn, .synthese-btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.pronostic-btn {
    background-color: #4CAF50;
    color: white;
}

.synthese-btn {
    background-color: #2196F3;
    color: white;
}

.pronostic-btn:hover, .synthese-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
/* Sidebar spécifique */
.sidebar .card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.sidebar h2 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.sidebar .menu {
    list-style: none;
    padding: 0;
}

.sidebar .menu-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar .menu-item:last-child {
    border-bottom: none;
}

.sidebar .menu-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar .menu-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-button {
    padding: 8px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #2980b9;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f1f5f9;
    border-radius: 5px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #3498db;
    color: white;
}
.ia-btn {
    background-color: #6a11cb;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.ia-btn:hover {
    background-color: #4a0fa3;
}

/* Style de la ligne d'en-tête */
/* Lignes simples pour le corps */
.horses-table tbody td {
    border: none;
    padding: 10px 8px;
    font-size: 14px;
    vertical-align: middle;
}

/* Affichage numéro + casaque */
.cell-num-casaque {
    display: flex;
    align-items: center;
    gap: 8px;
}

.num-pmu {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    min-width: 5px;
}

.casaque-img {
    width: 15px;
    height: 18px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Coloration des cotes */
.favori {
    color: #27ae60;
    font-weight: bold;
}

.outsider {
    color: #2980b9;
    font-weight: bold;
}

.tocard {
    color: #e74c3c;
    font-weight: bold;
}
.horses-table thead th {
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    background-color: #f9f9f9;
    font-size: 14px;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

.horses-table thead th small {
    display: block;
    color: #666;
    font-size: 12px;
    font-weight: normal;
    margin-top: 3px;
}
.cell-non-partant {
    background-color: #e74c3c; /* rouge vif */
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
}
.horse-np {
    background-color: #fff5f5;
}
.np-badge {
    background-color: #e74c3c;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}
.combo {
    display: inline-block;
    padding: 8px 14px;
    background: #f0f0f0;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 10px;
}

.results-btn {
    display: block;
    background-color: #2ecc71; /* Vert succès */
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.results-btn:hover {
    background-color: #27ae60;
}

