/* ==========================================
   MODULE DETAILS ARTICLE DE BLOG & DISCUSSIONS
   ========================================== */

/* 1. Banner d'en-tête de l'article */
.article_banner {
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px 5%;
}

.article_header_content {
    max-width: 850px;
    width: 100%;
}

.article_category_tag {
    background: var(--primary);
    color: var(--neutre);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 15px;
}

.article_header_content h1 {
    color: var(--neutre);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.article_meta {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article_meta i {
    color: var(--primary);
    margin-right: 5px;
}

/* 2. Layout Structure (Contenu de l'article + Sidebar) */
.article_container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.article_main_content {
    background: var(--neutre);
}

.article_lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--background);
    font-weight: 600;
    margin-bottom: 25px;
}

.article_main_content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--texte);
    margin-bottom: 20px;
}

.article_main_content h2 {
    font-size: 1.6rem;
    color: var(--background);
    margin: 30px 0 15px 0;
    font-weight: 700;
}

/* Citation stylisée style Damso/Profondeur */
.article_main_content blockquote {
    background: var(--background2);
    border-left: 5px solid var(--primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--background);
}

.article_main_content blockquote cite {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--details);
    font-style: normal;
}

/* 3. Section Boutons de partage sociaux */
.share_section {
    border-top: 1px solid rgba(8, 39, 54, 0.1);
    border-bottom: 1px solid rgba(8, 39, 54, 0.1);
    padding: 20px 0;
    margin: 40px 0;
}

.share_section h3 {
    font-size: 1.1rem;
    color: var(--background);
    margin-bottom: 15px;
}

.share_buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share_btn {
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--neutre);
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.share_btn:hover {
    transform: translateY(-2px);
}

.share_btn.whatsapp { background: #25D366; }
.share_btn.facebook { background: #1877F2; }
.share_btn.instagram { background: #E1306C; }
.share_btn.tiktok { background: #000000; }

/* 4. Zone Commentaires */
.comments_section {
    margin-top: 40px;
}

.comments_section h3 {
    font-size: 1.4rem;
    color: var(--background);
    margin-bottom: 20px;
}

.comments_list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.comment_item {
    display: flex;
    gap: 15px;
    background: var(--background2);
    padding: 15px;
    border-radius: 12px;
}

.comment_avatar {
    width: 40px;
    height: 40px;
    background: var(--background);
    color: var(--neutre);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment_content {
    flex: 1;
}

.comment_info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.comment_info strong {
    color: var(--background);
}

.comment_info span {
    color: var(--details);
}

/* Formulaire Ajout Commentaire */
.comment_form_wrapper {
    background: rgba(8, 39, 54, 0.02);
    border: 1px solid rgba(8, 39, 54, 0.08);
    padding: 25px;
    border-radius: 12px;
}

.comment_form_wrapper h4 {
    margin-bottom: 15px;
    color: var(--background);
}

.form_group_inline {
    margin-bottom: 15px;
}

.form_group_inline input, .form_group_inline textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(8, 39, 54, 0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    resize: none;
    transition: border-color 0.3s ease;
}

.form_group_inline input:focus, .form_group_inline textarea:focus {
    border-color: var(--primary);
}

.btn_comment_submit {
    background: var(--background);
    color: var(--neutre);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn_comment_submit:hover {
    background: var(--primary);
}

/* 5. Sidebar Styles (CTA & Rélatifs) */
.article_sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar_cta_box {
    background: var(--background);
    color: var(--neutre);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.sidebar_cta_box h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.sidebar_cta_box p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cta_buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta_sidebar_btn {
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta_sidebar_btn.btn_resto {
    background: var(--primary);
    color: var(--neutre);
}

.cta_sidebar_btn.btn_room {
    background: var(--neutre);
    color: var(--background);
}

/* Boite à lire aussi */
.related_articles_box h3 {
    font-size: 1.2rem;
    color: var(--background);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

.related_item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.related_item img {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
}

.related_item_info h4 {
    font-size: 0.95rem;
    color: var(--background);
    line-height: 1.3;
    margin-bottom: 4px;
}

.related_item_info span {
    font-size: 0.8rem;
    color: var(--details);
}

/* 6. RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .article_container {
        grid-template-columns: 1fr; /* On empile la sidebar sous l'article sur tablette et mobile */
    }
}

@media (max-width: 768px) {
    .article_header_content h1 {
        font-size: 1.8rem;
    }
    .article_banner {
        height: 40vh;
    }
}