/**
 * Styles pour le contenu structuré des catégories
 * Remplace les descriptions mal formatées avec H1/H2
 */

/* Introduction de la catégorie */
.category-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    border-radius: 0.5rem;
}

/* Container des sections */
.category-sections {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Chaque section */
.category-section-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.category-section-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

/* Titres H3 dans les sections (anciens H2 convertis) */
.category-section-item h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-section-item h3::before {
    content: '▸';
    color: #0ea5e9;
    font-size: 1.5rem;
}

/* Paragraphes dans les sections */
.category-section-item p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Style pour la description brute nettoyée */
.category-description h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.category-description h4 {
    color: #334155;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-description p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.category-description ul,
.category-description ol {
    color: #64748b;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.category-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Liens dans la description */
.category-description a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.category-description a:hover {
    color: #0284c7;
    border-bottom-color: #0284c7;
}

/* Images dans la description */
.category-description img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Figures et légendes */
.category-description figure {
    margin: 1.5rem 0;
    text-align: center;
}

.category-description figcaption {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Grille responsive pour les sections */
@media (min-width: 768px) {
    .category-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-structured-content {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Style pour le subtitle du hero (description courte) */
.cat-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 800px;
    margin: 1.5rem auto 2rem;
    text-align: center;
}

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

.category-section-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.category-section-item:nth-child(1) { animation-delay: 0.1s; }
.category-section-item:nth-child(2) { animation-delay: 0.2s; }
.category-section-item:nth-child(3) { animation-delay: 0.3s; }
.category-section-item:nth-child(4) { animation-delay: 0.4s; }