/* ===================== ARTICLE DETAIL PAGE ===================== */

body {
    background-color: #f7f7f5;
}

/* ---- Conteneur article ---- */
.article-main {
    padding: 120px 5% 88px;
}

.article-card {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.09);
    overflow: hidden;
}

/* ---- Image / vidéo ---- */
.article-media {
    width: 100%;
    background: #d8e3e0;
    text-align: center;
}

.article-media img {
    display: block;
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.article-media .youtube_player {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* ---- Corps ---- */
.article-body {
    padding: 36px 44px 44px;
}

.article-body h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: #2a3c42;
    margin: 0 0 20px;
    line-height: 1.35;
    text-align: left;
}

.article-body p {
    font-size: 1em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
    text-align: justify;
}

/* ---- Markdown content ---- */
.article-md-content {
    color: #555;
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 24px;
}

.article-md-content p {
    margin: 0 0 1rem;
    text-align: justify;
}

.article-md-content p:last-child {
    margin-bottom: 0;
}

.article-md-content ul,
.article-md-content ol {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
}

.article-md-content li {
    margin-bottom: 0.35rem;
}

.article-md-content h2,
.article-md-content h3,
.article-md-content h4,
.article-md-content h5 {
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #2a3c42;
}

.article-md-content strong {
    font-weight: 700;
}

.article-md-content em {
    font-style: italic;
}

.article-md-content a {
    color: #b34b32;
    text-decoration: underline;
}

/* ---- Actions ---- */
.article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.btn-contact {
    display: inline-block;
    background-color: #b34b32;
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s;
}

.btn-contact:hover {
    background-color: #8f3a25;
    color: #fff;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #62757c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, gap 0.2s;
}

.btn-back::before {
    content: '←';
    font-size: 1.1em;
}

.btn-back:hover {
    color: #b34b32;
    gap: 12px;
}

/* ---- Admin ---- */
.article-card .admin {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.article-card .admin a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 3px;
    background: #62757c;
    color: #fff;
    text-decoration: none;
    font-size: 0.82em;
    transition: background-color 0.2s;
}

.article-card .admin a:hover {
    background: #b34b32;
}

.article-card .admin svg path {
    fill: #fff;
}

/* ---- YouTube facade ---- */
.youtube-facade {
    position: relative;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.62);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5em 1em;
    border-radius: 0.3em;
    pointer-events: none;
}

/* ---- Responsive ---- */
@media screen and (max-width: 700px) {
    .article-main {
        padding: 44px 5% 64px;
    }

    .article-body {
        padding: 24px 20px 28px;
    }

    .article-body h3 {
        font-size: 1.3em;
    }

    .article-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
