/* article.css */

/* Conteneur principal */
.conteneur-principal {
    padding: 2rem 1rem;
    background-color: #fdfdfd;
    color: #333;
    font-family: 'Inter', sans-serif;
    animation: fadeIn 0.8s ease-in-out;

    /* Centrage global de l'article */
    max-width: 800px;
    margin: 0 auto;
}

/* Titre */
.titre {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
    color: #2b2b2b;
    animation: slideDown 0.6s ease-out;
}

/* Chapo (intro + auteur) */
.chapo {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
}

/* Contenu principal */
.contenu {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 2rem 0;
    color: #444;
    animation: fadeIn 1s ease-in;
}

/* Image uniformisée */
main img {
    display: block;
    width: 100%;
    height: 400px; /* Hauteur fixe */
    object-fit: cover;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

main img:hover {
    transform: scale(1.03);
}

/* Date de création */
.date_creation {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin-top: 2rem;
}

/* Vidéo YouTube */
.video-yt {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.video-yt:hover {
    transform: scale(1.02);
}

/* Bulle de remarque (si conservée) */
.no-design {
    background: #f3f3f3;
    border-left: 4px solid #e91e63;
    padding: 1rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 1rem;
    border-radius: 8px;
    animation: fadeIn 1.2s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
