/* ========================
PAGE DYSPLASIE DU COUDE FBKC STYLES
=========================== */

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

/* 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;
}

/* Wrapper principal */
.dysplasia-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Titre principal */
.dysplasia-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Sections */
.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);
}

/* Mode dark pour sections */
[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);
}

/* 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;
}

/* Texte en gras */
.dysplasia-strong {
    color: var(--bs-body-color);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(0, 71, 255, 0.1) 0%, rgba(209, 0, 0, 0.1) 100%);
    padding: 2px 4px;
    border-radius: 3px;
}

/* 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);
}

/* Container d'images */
.dysplasia-img-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
}

.dysplasia-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;
}

.dysplasia-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dysplasia-img-caption {
    margin-top: 1rem;
    font-style: italic;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

/* 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 1.5rem;
    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 pour treatment cards */
[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);
}

/* Section conclusion */
.dysplasia-conclusion {
    background: linear-gradient(135deg, rgba(0, 71, 255, 0.05) 0%, rgba(209, 0, 0, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.dysplasia-conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0047FF 0%, #D10000 100%);
    border-radius: 20px;
    padding: 2px;
    z-index: -1;
}

.dysplasia-conclusion::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bs-body-bg);
    border-radius: 18px;
    z-index: -1;
}

/* Responsive */
@media (max-width: 768px) {
    .dysplasia-title {
        font-size: 2.2rem;
    }
    
    .dysplasia-header-banner {
        padding: 2rem 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;
    }
    
    .dysplasia-conclusion {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .dysplasia-container {
        padding: 1rem 0;
    }
    
    .dysplasia-title {
        font-size: 1.8rem;
    }
    
    .dysplasia-header-banner {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .dysplasia-wrapper {
        padding: 0 0.5rem;
    }
}

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

.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; }