/* ✅ Fond image */
body {
    background-image: url('../images/sl_033023_56730_65.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ✅ Conteneur article stylé */
.article-container {
    max-width: 900px;
    margin: 80px auto; /* centre horizontalement + espace vertical */
    background-color: rgba(0, 0, 0, 0.5); /* joli fond semi-transparent */
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;

    /* ✅ Animation entrée */
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease forwards 0.4s;
    animation-fill-mode: forwards;
}

/* ✅ Halo LED animé */
.article-container::after {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 30px;
    z-index: -1;
    pointer-events: none;
    box-shadow:
            0 0 60px rgba(106, 178, 170, 0.8),
            0 0 120px rgba(234, 191, 159, 0.5),
            0 0 150px rgba(234, 191, 159, 0.3);
    animation: haloGlow 1.8s ease-in-out infinite alternate;
}

/* ✅ Images dans l’article */
.article-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* ✅ Tableaux */
.article-container table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.article-container th,
.article-container td {
    border: 1px solid #ccc;
    padding: 10px;
}

/* ✅ Vidéos embed */
.article-container .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.article-container .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ✅ Animation fadeInUp */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ Animation halo LED */
@keyframes haloGlow {
    0% {
        box-shadow:
                0 0 30px rgba(106, 178, 170, 0.4),
                0 0 60px rgba(234, 191, 159, 0.2),
                0 0 80px rgba(234, 191, 159, 0.1);
    }
    100% {
        box-shadow:
                0 0 60px rgba(106, 178, 170, 1),
                0 0 120px rgba(234, 191, 159, 0.6),
                0 0 160px rgba(234, 191, 159, 0.4);
    }
}
