/* Conteneur principal d'article */
.article-display {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header de l'article */
.article-header {
    text-align: center;
    margin-bottom: 100px;
    padding-bottom: 30px;
    border-bottom: 3px solid #EE7800;
}

.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.article-excerpt {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Sections principales */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
}

.section {
    margin-bottom: 40px;
}
.section-title {
    margin-bottom: 20px;
}
/* Section deux colonnes - CORRECTION */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
    align-items: start; 
    align-content: start; 
}

.content-column {
    padding-right: 0; /* Retiré le padding car on utilise gap maintenant */
    display: flex;
    flex-direction: column;
    height: fit-content; /* Hauteur adaptée au contenu */
}

.visual-column {
    padding-left: 0; /* Retiré le padding car on utilise gap maintenant */
    display: flex;
    flex-direction: column;
    height: fit-content; 
}

/* Section pleine largeur */
.section.full-width {
    width: 100%;
}

/* Titres de sections */
.section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Paragraphes */
.section p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

/* Listes */
.article-list {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.article-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.article-list li::before {
    content: "•";
    color: #EE7800;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.3rem;
    top: -2px;
}

/* Dropdowns - CORRECTION */
.dropdown {
    margin: 25px 0;
    overflow: hidden;
    background: white;
    cursor: pointer;
    align-self: flex-start; /* Empêche les dropdowns de s'étirer */
    width: 100%;
}

.dropdown-header {
    background: #f8f9fa;
    padding: 18px 25px;
    border-left: 4px solid #EE7800;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    user-select: none;
}

.dropdown-header:hover {
    background: #e9ecef;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #EE7800;
    font-size: 1.2rem;
    font-weight: bold;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(90deg);
}

.dropdown-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.dropdown.active .dropdown-content {
    padding: 25px;
    max-height: 1000px;
}

.dropdown-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Encadrés/Highlights */
.highlight {
    padding: 25px;
    border-left: 4px solid #EE7800;
    background: #fafafa;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
    align-self: flex-start; /* Empêche les highlights de s'étirer */
    width: 100%;
}

.highlight p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Images - CORRECTION COMPLÈTE DES TAILLES */
.image-container {
    margin: 30px 0;
    text-align: center;
    align-self: flex-start;
    width: 100%;
}

.image-container.left {
    text-align: left;
}

.image-container.right {
    text-align: right;
}

.image-container.center {
    text-align: center;
}

.image-container.full {
    text-align: center;
    margin: 40px -20px;
}

/* Taille de base pour toutes les images */
.article-image {
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.article-image:hover {
    transform: scale(1.02);
}

/* Tailles spécifiques pour les images - CORRIGÉES */
.article-image.size-small {
    max-width: 80px;
    max-height: 180px;
}

.article-image.size-medium {
    max-width: 100px;
    max-height: 300px;
}

.article-image.size-large {
    max-width: 150px;
    max-height: 450px;
}

.article-image.size-full {
    max-width: 100%;
    height: auto;
}

/* Alignements spécifiques - CORRIGÉS */
.image-container.center .article-image {
    margin: 0 auto;
}

.image-container.left .article-image {
    margin: 0;
}

.image-container.right .article-image {
    margin: 0 0 0 auto;
}

.image-container.full .article-image {
    max-width: 100%;
    width: 100%;
}

.image-caption {
    font-style: italic;
    color: #666;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

/* Vidéos */
.video-container {
    margin: 40px 0;
    width: 100%;
    position: sticky; /* Ajout pour maintenir la position */
    top: 0; /* Position de référence */
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper.ratio-16-9 {
    padding-bottom: 56.25%;
}

.video-wrapper.ratio-4-3 {
    padding-bottom: 75%;
}

.video-wrapper.ratio-1-1 {
    padding-bottom: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description {
    margin-top: 20px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
}

/* Formatage de texte riche */
.section strong {
    font-weight: 700;
    color: #333;
}

.section em {
    font-style: italic;
}

.section h2 strong,
.section h3 strong {
    color: #EE7800;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-display {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .section.two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-column,
    .visual-column {
        padding: 0;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section h3 {
        font-size: 1.2rem;
    }
    
    .image-container.full {
        margin: 30px -15px;
    }
    
    .dropdown-header {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .dropdown.active .dropdown-content {
        padding: 20px;
    }
    
    .highlight {
        padding: 20px;
        margin: 25px 0;
    }
    
    .video-wrapper {
        max-width: 100%;
    }
    
    /* Images responsive sur mobile - CORRIGÉES */
    .article-image.size-small {
        max-width: 200px;
        max-height: 150px;
    }
    
    .article-image.size-medium {
        max-width: 300px;
        max-height: 225px;
    }
    
    .article-image.size-large {
        max-width: 100%;
        max-height: 300px;
    }
    
    .article-image.size-full {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.7rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .dropdown-header {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .highlight {
        padding: 15px;
    }
    
    /* Images très petits écrans */
    .article-image.size-small {
        max-width: 150px;
        max-height: 120px;
    }
    
    .article-image.size-medium {
        max-width: 100px;
        max-height: 190px;
    }
    
    .article-image.size-large {
        max-width: 150px;
        max-height: 250px;
    }
}

/* Loading et états d'erreur */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-state::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #EE7800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #dc3545;
}

.error-state h2 {
    color: #dc3545;
    margin-bottom: 15px;
}




        /* Styles pour la section d'articles similaires */
        .similar-articles-section {
            margin-top: 60px;
            padding: 40px 0;
            border-radius: 12px;
        }

        .similar-articles-title {
            text-align: center;
            font-size: 2rem;
            color: #333;
            margin-bottom: 40px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: bold;
        }

        .similar-articles-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .similar-article-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            text-decoration: none;
            color: inherit;
        }

        .similar-article-card:hover {
            transform: translateY(-5px);
        }

        .similar-article-image {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .similar-article-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .similar-article-card:hover .similar-article-image img {
            transform: scale(1.05);
        }

        .similar-article-tag {
            position: absolute;
            top: 15px;
            left: 15px;
            color: white;
            padding: 8px 16px;
            font-size: 0.8rem;
            border-radius: 20px;
            font-weight: bold;
            text-transform: uppercase;
            z-index: 2;
        }

        .similar-article-tag.approfondir {
            background: #ff9800;
        }

        .similar-article-tag.decouvrir {
            background: #00bcd4;
        }

        .similar-article-content {
            padding: 20px;
        }

        .similar-article-content h3 {
            font-size: 1.1rem;
            color: #333;
            margin-bottom: 10px;
            line-height: 1.4;
            transition: color 0.3s ease;
            text-transform: uppercase;
            font-weight: bold;
        }

        .similar-article-card:hover .similar-article-content h3 {
            color: #ff9800;
        }

        .similar-article-content p {
            color: #666;
            line-height: 1.6;
            font-size: 0.9rem;
            margin: 0;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .similar-articles-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 0 15px;
            }
            
            .similar-articles-title {
                font-size: 1.5rem;
                margin-bottom: 30px;
            }
            
            .similar-article-image {
                height: 200px;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .similar-articles-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Loading state pour articles similaires */
        .similar-articles-loading {
            text-align: center;
            padding: 40px 0;
            color: #666;
        }

        /* Amélioration du style des filtres */
        .filter-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 12px 24px;
            border: 2px solid #ff9800;
            background: transparent;
            color: #ff9800;
            font-size: 16px;
            font-weight: bold;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 140px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .filter-btn:hover {
            background: #ff9800;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
        }

        .filter-btn.active {
            background: #ff9800;
            color: white;
            box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
        }

        /* Style pour les tags des articles */
        .article-tag {
            display: inline-block;
            color: white;
            padding: 8px 16px;
            font-size: 0.9rem;
            margin-bottom: 10px;
            border-radius: 20px;
            font-weight: bold;
            z-index: 2;
            position: relative;
            text-transform: uppercase;
        }

        .article-tag.approfondir {
            background: #ff9800;
        }

        .article-tag.decouvrir {
            background: #00bcd4;
        }

        /* Amélioration de l'affichage des articles */
        .article-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            margin-bottom: 30px;
        }

        .article-card:hover {
            transform: translateY(-5px);
        }

        .article-image {
            width: 100%;
            overflow: hidden;
        }

        .article-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .article-card:hover .article-image img {
            transform: scale(1.05);
        }

        .article-content {
            padding: 20px;
        }

        .article-content h3 {
            font-size: 1.2rem;
            color: #333;
            margin-bottom: 10px;
            line-height: 1.4;
            transition: color 0.3s ease;
        }

        .article-card:hover .article-content h3 {
            color: #ff9800;
        }

        .article-content p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .filter-buttons {
                gap: 10px;
            }
            
            .filter-btn {
                min-width: 120px;
                padding: 10px 20px;
                font-size: 14px;
            }
        }
