/* ========================
PAGE DYSPLASIE DE LA HANCHE FBKC STYLES - VERSION CORRIGÉE
=========================== */

/* Container principal - sans min-height contraignante */
.dysplasia-container {
    background: linear-gradient(135deg, var(--bs-gray-50) 0%, var(--bs-body-bg) 100%);
    padding: 2rem 0;
}

/* Wrapper principal pour le contenu de la hanche */
.grade-details-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bs-body-bg);
    border-radius: 20px;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.grade-details-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #0047FF 0%, #D10000 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.grade-details-wrapper:hover::before {
    transform: scaleX(1);
}

.grade-details-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}


/* Banner d'en-tête */
.dysplasia-header-banner {
    background: linear-gradient(135deg, #0047FF 0%, #D10000 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(0, 71, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.dysplasia-header-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.dysplasia-header-banner p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Style pour les sources d'images */
.grade-details-wrapper div small {
    display: block;
    text-align: center;
    font-style: italic;
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
}

.grade-details-wrapper div small a {
    color: #0047FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.grade-details-wrapper div small a:hover {
    color: #D10000;
    border-bottom-color: #D10000;
    text-decoration: none;
}

/* Titres principaux */
.grade-details-wrapper h2 {
    color: var(--bs-body-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
}

.grade-details-wrapper h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #0047FF 0%, #D10000 100%);
    border-radius: 2px;
}

/* Paragraphes */
.grade-details-wrapper p {
    color: var(--bs-secondary-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: justify;
}

/* Conteneurs d'images centrées - CIBLAGE SPÉCIFIQUE */
.grade-details-wrapper .d-flex.justify-content-center.align-items-center {
    margin: 2rem 0;
    padding: 1rem;
}

.grade-details-wrapper .d-flex.justify-content-center.align-items-center img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.grade-details-wrapper .d-flex.justify-content-center.align-items-center img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Grades de hanche avec spans stylés */
.grade-details-wrapper p span {
    background: linear-gradient(135deg, rgba(0, 71, 255, 0.1) 0%, rgba(209, 0, 0, 0.1) 100%);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 700;
    color: var(--bs-body-color);
    border: 1px solid rgba(0, 71, 255, 0.2);
    display: inline-block;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.grade-details-wrapper p span:hover {
    background: linear-gradient(135deg, rgba(0, 71, 255, 0.2) 0%, rgba(209, 0, 0, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 71, 255, 0.2);
}

/* Sections du container dysplasia */
.dysplasia-section {
    background: var(--bs-body-bg);
    border-radius: 20px;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.dysplasia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #0047FF 0%, #D10000 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dysplasia-section:hover::before {
    transform: scaleX(1);
}

.dysplasia-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Sections avec classe .card */
.dysplasia-section.card {
    padding: 2.5rem;
}

/* Titres de sections */
.dysplasia-heading {
    color: var(--bs-body-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.dysplasia-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #0047FF 0%, #D10000 100%);
    border-radius: 2px;
}

/* H2 spécial */
.dysplasia-section h2.dysplasia-heading {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* H3 */
.dysplasia-section h3.dysplasia-heading {
    font-size: 1.4rem;
}

/* H4 */
.dysplasia-section h4.dysplasia-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Texte principal */
.dysplasia-text {
    color: var(--bs-secondary-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    padding: 0 1rem;
}

.dysplasia-section.card .dysplasia-text {
    padding: 0;
}

/* Listes */
.dysplasia-list {
    list-style: none;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.dysplasia-section.card .dysplasia-list {
    padding: 0;
}

.dysplasia-list-item {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--bs-secondary-color);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.dysplasia-list-item::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: #0047FF;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.dysplasia-list-item:hover {
    color: var(--bs-body-color);
    padding-left: 2.5rem;
}

.dysplasia-list-item:hover::before {
    color: #D10000;
    transform: scale(1.2);
}

/* Boîtes d'information */
.dysplasia-info-box {
    background: linear-gradient(135deg, rgba(0, 71, 255, 0.05) 0%, rgba(209, 0, 0, 0.05) 100%);
    border: 1px solid rgba(0, 71, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.dysplasia-info-box::before {
    content: '💡';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
}

/* Alertes */
.dysplasia-alert {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(220, 53, 69, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 1rem 1rem;
    margin: 1.5rem 0;
    color: var(--bs-body-color);
    position: relative;
}

.dysplasia-alert::before {
    content: '⚠️';
    margin-right: 0.5rem;
}

/* Grille de traitement */
.dysplasia-treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.dysplasia-treatment-card {
    background: var(--bs-gray-100);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dysplasia-treatment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #0047FF 0%, #D10000 100%);
}

.dysplasia-treatment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mode dark */
[data-bs-theme="dark"] .grade-details-wrapper {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .grade-details-wrapper:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .dysplasia-section {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .dysplasia-section:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .dysplasia-treatment-card {
    background: #4d4d4d !important; 
}

[data-bs-theme="dark"] .dysplasia-treatment-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .grade-details-wrapper {
        padding: 1.5rem;
        margin: 0 0.5rem 2rem 0.5rem;
    }
    
    .grade-details-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .dysplasia-section.card {
        padding: 1.5rem;
    }
    
    .dysplasia-text {
        padding: 0 0.5rem;
    }
    
    .dysplasia-list {
        padding: 0 0.5rem;
    }
    
    .dysplasia-treatment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grade-details-wrapper .d-flex.justify-content-center.align-items-center {
        padding: 0.5rem;
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    .dysplasia-container {
        padding: 1rem 0;
    }
    
    .grade-details-wrapper {
        padding: 1rem;
        margin: 0 0.25rem 1rem 0.25rem;
    }
    
    .grade-details-wrapper h2 {
        font-size: 1.3rem;
        padding-left: 0.5rem;
    }
    
    .grade-details-wrapper h2::before {
        width: 3px;
    }
    
    .grade-details-wrapper p span {
        display: block;
        margin: 0.25rem 0;
        text-align: center;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grade-details-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.dysplasia-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Delay pour animation en cascade */
.dysplasia-section:nth-child(1) { animation-delay: 0.1s; }
.dysplasia-section:nth-child(2) { animation-delay: 0.2s; }
.dysplasia-section:nth-child(3) { animation-delay: 0.3s; }
.dysplasia-section:nth-child(4) { animation-delay: 0.4s; }
.dysplasia-section:nth-child(5) { animation-delay: 0.5s; }
.dysplasia-section:nth-child(6) { animation-delay: 0.6s; }

/* Animation flottante pour les images - CIBLAGE SPÉCIFIQUE */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.grade-details-wrapper .d-flex.justify-content-center.align-items-center img {
    animation: float 6s ease-in-out infinite;
}

/* Style pour les légendes d'images (D.Remy) */
.grade-details-wrapper p:has(+ br):last-of-type,
.grade-details-wrapper p:contains("(D."),
.grade-details-wrapper p:contains("(D ") {
    text-align: center;
    font-style: italic;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* ========================
CSS SUPPLÉMENTAIRE POUR LA PAGE ATAXIE CÉRÉBELLEUSE
=========================== */

/* Section intro */
.ataxie-intro {
    margin-bottom: 1rem;
    padding-top: 1rem!important;
    padding-bottom: 1rem!important;
}


.ataxie-definition {
    background: linear-gradient(135deg, rgba(0, 71, 255, 0.08) 0%, rgba(209, 0, 0, 0.08) 100%);
    border-left: 4px solid #0047FF;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.ataxie-timing-info h4 {
    color: var(--bs-body-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ataxie-info-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.ataxie-info-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--bs-secondary-color);
    line-height: 1.6;
}

.ataxie-info-list li::before {
    content: '🧠';
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 1rem;
}

.ataxie-alert {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(220, 53, 69, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--bs-body-color);
    position: relative;
}

.ataxie-alert::before {
    content: '⚠️';
    margin-right: 0.5rem;
}

/* Section symptômes */
.ataxie-symptoms {
    margin-bottom: 3rem;
}

.ataxie-symptom-category {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.ataxie-symptom-category h4 {
    color: #0047FF;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.ataxie-symptom-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.ataxie-symptom-list li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.5rem;
    color: var(--bs-secondary-color);
}

.ataxie-symptom-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0.3rem;
    color: #D10000;
    font-weight: bold;
}

/* Grille de symptômes */
.ataxie-symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.ataxie-symptom-card {
    background: var(--bs-gray-100);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ataxie-symptom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #0047FF 0%, #D10000 100%);
}

.ataxie-symptom-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ataxie-symptom-card h5 {
    color: #0047FF;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.ataxie-detailed-symptoms,
.ataxie-head-symptoms {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.ataxie-detailed-symptoms li,
.ataxie-head-symptoms li {
    position: relative;
    padding: 0.8rem 0 0.8rem 2rem;
    color: var(--bs-secondary-color);
    line-height: 1.6;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.ataxie-detailed-symptoms li::before,
.ataxie-head-symptoms li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0.8rem;
    color: #0047FF;
    font-size: 0.8rem;
}

/* Évolution */
.ataxie-evolution {
    background: linear-gradient(135deg, rgba(0, 71, 255, 0.05) 0%, rgba(209, 0, 0, 0.05) 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.ataxie-evolution h4 {
    color: #D10000;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.ataxie-evolution-info ul {
    list-style: none;
    padding: 0;
}

.ataxie-evolution-info li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--bs-secondary-color);
}

.ataxie-evolution-info li::before {
    content: '⏱️';
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 1rem;
}

/* Section transmission */
.ataxie-transmission {
    margin-bottom: 3rem;
}

.ataxie-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.ataxie-status-card {
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.ataxie-status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.status-sain {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: #28a745;
}

.status-porteur {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(220, 53, 69, 0.1) 100%);
    border-color: #ffc107;
}

.status-affecte {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%);
    border-color: #dc3545;
}

.ataxie-combinations-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.ataxie-combinations-list li {
    position: relative;
    padding: 0.8rem 0 0.8rem 2rem;
    color: var(--bs-secondary-color);
    line-height: 1.6;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.ataxie-combinations-list li::before {
    content: '🧬';
    position: absolute;
    left: 0;
    top: 0.8rem;
    font-size: 1rem;
}

/* Section résumé */
.ataxie-summary {
    margin-bottom: 2rem;
}

.ataxie-recommendations {
    margin: 2rem 0;
}

.ataxie-recommendation-card {
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.ataxie-recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ataxie-recommendation-card.danger {
    border-left: 4px solid #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.ataxie-recommendation-card.caution {
    border-left: 4px solid #fd7e14;
    background: rgba(253, 126, 20, 0.05);
}

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

.ataxie-recommendation-card.info {
    border-left: 4px solid #0dcaf0;
    background: rgba(13, 202, 240, 0.05);
}

.ataxie-recommendation-card h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Image container et source */
.ataxie-image-container {
    margin: 2rem 0;
}

.ataxie-source {
    text-align: center;
    margin-top: 1rem;
}

.ataxie-source small {
    font-style: italic;
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
}

.ataxie-source small a {
    color: #0047FF;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ataxie-source small a:hover {
    color: #D10000;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .ataxie-symptom-grid,
    .ataxie-status-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ataxie-symptom-card,
    .ataxie-recommendation-card {
        padding: 1rem;
    }
}