/* Styles pour les analyses hippiques */
.analysis {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.meta {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.meta span {
    margin-right: 15px;
    display: inline-block;
}

.tags {
    margin: 10px 0;
}

.tag {
    background: #e1f5fe;
    color: #01579b;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
}

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

.analysis-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
}

.analysis-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

/* Styles pour les statistiques */
.stats-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--entry);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: var(--code-bg);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

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

.stat-card.success {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.stat-card.surprise {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.stat-card.podium {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 0.5rem;
}

.stat-percent {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
    margin-top: 0.25rem;
}

.race-card {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--entry);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.race-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.race-card.winner {
    border-left: 4px solid #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.race-card.podium {
    border-left: 4px solid #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

.analysis-card h3 a {
    text-decoration: none;
    color: #333;
}

.analysis-card h3 a:hover {
    color: #0066cc;
}

.pronostic-box {
    background: #f0f8ff;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin: 20px;
    color: #333;
}

.pronostic-box h3 {
    margin-top: 0;
    color: #2e7d32;
}

.pronostic {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Mode sombre - amélioration du contraste pour pronostic-box */
@media (prefers-color-scheme: dark) {
    .pronostic-box {
        background: #1a2332;
        border: 2px solid #66bb6a;
        color: #e8f4f8;
    }
    
    .pronostic-box h3 {
        color: #81c784;
    }
    
    .pronostic {
        color: #e8f4f8;
    }
}

/* Styles pour les thèmes Hugo en mode sombre */
[data-theme="dark"] .pronostic-box {
    background: #1a2332;
    border: 2px solid #66bb6a;
    color: #e8f4f8;
}

[data-theme="dark"] .pronostic-box h3 {
    color: #81c784;
}

[data-theme="dark"] .pronostic {
    color: #e8f4f8;
}

/* Tables responsive */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Navigation entre les courses */
.paginav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.paginav a {
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    display: block;
    min-width: 200px;
    transition: all 0.3s ease;
}

.paginav a:hover {
    background-color: #f5f5f5;
    border-color: #0066cc;
    color: #0066cc;
}

.paginav .prev {
    text-align: left;
}

.paginav .next {
    text-align: right;
}

.paginav .title {
    font-weight: bold;
    font-size: 14px;
    color: #666;
}

.paginav .course {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .analysis {
        padding: 10px;
    }
    
    .meta span {
        display: block;
        margin-bottom: 5px;
    }
    
    .analyses-grid {
        grid-template-columns: 1fr;
    }
    
    .paginav {
        flex-direction: column;
        gap: 10px;
    }
    
    .paginav a {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
    
    .cotes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .cote-card {
        padding: 8px !important;
        flex-direction: column;
        text-align: center;
    }
    
    .cote-numero {
        margin-right: 0 !important;
        margin-bottom: 5px !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 12px !important;
    }
    
    .cote-info {
        margin-right: 0 !important;
        margin-bottom: 5px !important;
    }
    
    .cote-valeur {
        font-size: 12px !important;
        padding: 4px 8px !important;
        min-width: 40px !important;
    }
}

/* Styles pour l'affichage des côtes */
.cotes-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.cotes-container h3 {
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    color: #fff;
    font-size: 1.3em;
}

.cotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.cote-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cote-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cote-numero {
    background: #ffd700;
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cote-info {
    flex-grow: 1;
    margin-right: 12px;
}

.cote-nom {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
    color: #fff;
}

.cote-details {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.cote-details div {
    margin-bottom: 1px;
}

.enjeu-primary {
    color: #90EE90;
    font-weight: bold;
}

.cote-display {
    color: rgba(255, 255, 255, 0.9);
}

.cote-valeur {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    min-width: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    padding: 20px;
}

.cote-jockey,
.cote-entraineur {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.cote-jockey::before {
    content: "🏇 ";
}

.cote-entraineur::before {
    content: "👨‍🏫 ";
}

.cotes-info {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Animation de chargement pour les côtes */
.cotes-loading {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #6c757d;
}

.cotes-loading::before {
    content: "⏳ ";
    animation: spin 1s linear infinite;
}

/* Styles pour l'évaluation dual (favoris vs surprises) */
.financial-global {
    margin-bottom: 2rem;
}

.strategy-comparison {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--entry);
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.strategy-card {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    background: var(--code-bg);
    transition: all 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.strategy-card.favoris {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.strategy-card.surprises {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

.strategy-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.strategy-stats {
    display: grid;
    gap: 0.75rem;
}

.strategy-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--entry);
    border-radius: 4px;
}

.strategy-stat .stat-label {
    font-weight: 500;
    color: var(--secondary);
}

.strategy-stat .stat-value {
    font-weight: bold;
    color: var(--primary);
}

.strategy-stat .stat-value.profit {
    color: #28a745;
}

.strategy-stat .stat-value.loss {
    color: #dc3545;
}

.winners-section {
    margin: 1.5rem 0;
}

.winners-section h4 {
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.winning-races-list.favoris .winning-race {
    border-left: 3px solid #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.winning-races-list.surprises .winning-race {
    border-left: 3px solid #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

.winning-race.surprise {
    position: relative;
}

.winning-race .race-horse {
    font-size: 0.9em;
    color: var(--secondary);
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}



@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Updated: mar 02 sep 2025 12:57:24 EDT */
