/* Styles pour les sections d'analyse */
.race-analysis-accordion {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

.race-analysis-section {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.race-analysis-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-header {
    background: linear-gradient(135deg, #00504B 0%, #067a93 100%);
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    transition: all 0.3s ease;
}

.section-header:hover {
    background: linear-gradient(135deg, #067a93 0%, #00504B 100%);
}

.section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}

.section-content {
    padding: 1.5rem;
    display: none;
    background: #ffffff;
}

.section-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .race-analysis-accordion {
        padding: 0 0.5rem;
    }

    .section-header {
        padding: 1rem;
    }

    .section-header h3 {
        font-size: 1.1rem;
    }

    .section-content {
        padding: 1rem;
    }
}

/* Styles pour le lien Quinté */
.quinte-analysis-link {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quinte-analysis-link p {
    margin: 0;
    color: #000;
    font-size: 1.1rem;
}

.quinte-link {
    color: #00504B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.quinte-link:hover {
    color: #067a93;
    text-decoration: underline;
}

.runners-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    table-layout: auto; /* Table flexible par défaut */
}

.runners-table th,
.runners-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    white-space: normal; /* Autorise les retours à la ligne automatique */
    word-wrap: break-word; /* Force le retour à la ligne si nécessaire */
}

.runners-table th {
    background: #f8f9fa;
    color: #00504B;
    font-weight: 600;
}

.runners-table td {
    word-break: break-word; /* Gère les mots trop longs */
}

/* Largeur spécifique des colonnes */
.runners-table th:nth-child(1),
.runners-table td:nth-child(1) {
    width: 5%; /* Colonne Numéro */
}

.runners-table th:nth-child(2),
.runners-table td:nth-child(2) {
    width: 20%; /* Colonne Cheval */
}

.runners-table th:nth-child(3),
.runners-table td:nth-child(3) {
    width: 10%; /* Colonne Avis */
}

.runners-table th:nth-child(4),
.runners-table td:nth-child(4) {
    width: 65%; /* Colonne Analyse */
}

/* Responsivité pour petits écrans */
@media (max-width: 768px) {
    .runners-table {
        width: 100%;
        table-layout: fixed; /* Force une répartition égale des colonnes */
    }

    .runners-table th,
    .runners-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .runners-table th:nth-child(1),
    .runners-table td:nth-child(1) {
        width: 10%; /* Ajustement des colonnes */
    }

    .runners-table th:nth-child(2),
    .runners-table td:nth-child(2),
    .runners-table th:nth-child(3),
    .runners-table td:nth-child(3),
    .runners-table th:nth-child(4),
    .runners-table td:nth-child(4) {
        width: auto; /* S'adapte automatiquement */
    }
}


.runner-rating {
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.runner-rating.positive {
  
    color: #155724;
}

.runner-rating.negative {

    color: #721c24;
}

.runner-rating.neutral {

    color: #383d41;
}

/* Styles pour les listes de forces/faiblesses */
.strengths-weaknesses {
    margin-top: 0.5rem;
}

.strengths-weaknesses ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.strengths-weaknesses li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
}

.strengths-weaknesses li:before {
    content: "•";
    color: #00504B;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .race-analysis-accordion {
        margin: 10px;
    }

    .runners-table {
        display: block;
        overflow-x: auto;
    }

    .section-header h3 {
        font-size: 1rem;
    }

    .race-analysis-header {
        padding: 1rem;
    }
}

/* Styles pour le message de contenu premium */
.premium-content-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 1rem 0;
}

.premium-content-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.premium-content-message h4 {
    color: #00504B;
    margin-bottom: 1rem;
}

.premium-content-cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-premium {
    background: linear-gradient(135deg, #00504B 0%, #067a93 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-login {
    background: white;
    color: #00504B;
    border: 2px solid #00504B;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #00504B;
    color: white;
}
