/* ============================================================
   css/article.css - PAGE ARTICLE UNIQUE
   ============================================================ */

.article-page-body {
    background-color: #f8f9fa; /* Fond très léger pour la partie basse */
}

/* --- 1. HERO BACKGROUND (Juste le motif bleu) --- */
.hero-background {
    position: relative;
    width: 100%;
    height: 60vh; /* Hauteur de la zone bleue */
    overflow: hidden;
    background-color: var(--primary-blue); /* Couleur de fond si image charge pas */
}

.pattern-img {
    opacity: 0.8; /* Ajuste selon ton image pattern */
    object-fit: cover;
}

/* --- 2. WRAPPER PRINCIPAL --- */
.article-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10; /* Passe au dessus du pattern */
}

/* --- 3. SLIDER VISUAL --- */
.article-visual {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #ddd;
    border-radius: 15px;
    overflow: hidden;
    
    /* LA MAGIE DU LAYOUT : On remonte le bloc de 250px sur le Hero */
    margin-top: -250px; 
    margin-bottom: 50px;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CONTROLES --- */
.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background-color: #ffffff;
    color: var(--primary-blue);
}

/* --- 4. CORPS DU TEXTE --- */
.article-body {
    padding-bottom: 80px; /* Espace avant le footer */
}

.article-title-box {
    display: inline-block;
    background-color: var(--primary-blue);
    padding: 12px 25px;
    margin-bottom: 40px;
}

.article-title-box h1 {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.article-text-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    text-align: justify;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-background {
        height: 50vh;
    }

    .article-visual {
        height: 300px; /* Moins haut sur mobile */
        margin-top: -150px; /* On remonte moins fort */
        margin-bottom: 30px;
    }

    .article-title-box h1 {
        font-size: 1.1rem;
    }

    .article-text-content p {
        text-align: left; /* Plus lisible sur mobile */
        font-size: 1rem;
    }
}

/* Style pour la vidéo */
.video-container { width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; }
.video-container video { max-width: 100%; max-height: 500px; width: 100%; }

/* Ajustement si pas de visuel (remonte le texte) */
.article-wrapper.no-visual .article-body { margin-top: -80px; position: relative; z-index: 10; }
.article-wrapper.no-visual .article-title-box { padding-top: 0; }