/* ========================================
   HERO SECTION - DÉTAILS ARTICLE
======================================== */

.blog-detail-hero {
    padding: 1.5rem 0 2rem;
    background: #f8f9fa;
}

/* Image article */
.article-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.paragraph-content {
    white-space: pre-line;
}

.article-preview {
    white-space: pre-line;
}

.article-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Infos article */
.article-header-info {
    padding-left: 1.5rem;
}

/* Badge catégorie */
.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.article-category-badge:hover {
    background: #7ed492;
    color: white;
}

.article-category-badge i {
    font-size: 0.7rem;
}

/* Titre */
.article-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Métadonnées */
.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.article-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #888;
}

.article-meta-info i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.meta-likes {
    color: var(--primary-color);
    font-weight: 600;
}

/* Preview */
.article-preview {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Tags */
.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.65rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link i {
    font-size: 0.7rem;
}

.tag-link:hover {
    background: var(--primary-color);
    color: white;
}

/* bouton redirection */

.btn{
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-button{
    color: #59ac6d !important;;
}

.accordion-button.accordion-button:not(.collapsed){
    color: #fdfdfd !important;;
}

/* Bouton J'aime */
.btn-like-article {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-like-article:hover {
    background: var(--primary-color);
    color: white;
}

.btn-like-article.liked {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   SECTION CONTENU ARTICLE + SIDEBAR
======================================== */

.article-content-section {
    padding: 3rem 0 4rem;
    background: #ffffff;
}

/* ========================================
   COLONNE PRINCIPALE - CONTENU
======================================== */

.article-main-content {
    background: white;
}

/* Paragraphes de l'article */
.article-paragraph {
    margin-bottom: 2rem;
    background: rgb(247, 247, 247);
    padding:1rem;
    border-radius:15px;
}

.img-fluid{
    border-radius:10px;
}

.toc-title{
    font-size: 1.1rem!important;
}

.paragraph-content {
    font-size: 0.9rem;
    color: #2c2c2c;
}

.paragraph-content p {
    margin-bottom: 0.9rem;
    font-size: 0.9rem!important;
    color: #2c2c2c;
}

/* Liens dans le contenu en vert */
.paragraph-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.paragraph-content a:hover {
    color: #7ed492;
    text-decoration: none;
}

.paragraph-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid var(--primary-color);
}

/* Listes avec meilleur contraste */
.paragraph-content ul,
.paragraph-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #2c2c2c;
}

.paragraph-content li {
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

/* Strong/Bold plus visible */
.paragraph-content strong,
.paragraph-content b {
    color: #1a1a1a;
    font-weight: 700;
    font-size:0.9rem;
}

/* Strong/Bold plus visible */
.paragraph-content h3 strong {
    color: #1a1a1a;
    font-weight: 700;
    font-size:1.1rem;
}

/* Strong/Bold plus visible */
.paragraph-content li strong,
.paragraph-content b {
    color: #1a1a1a;
    font-weight: 700;
    font-size:1rem;
}


.paragraph-content ul,
.paragraph-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.paragraph-content li {
    margin-bottom: 0.5rem;
}

/* Galerie photos supplémentaires */
.article-gallery {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.gallery-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-title i {
    color: var(--primary-color);
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* FAQ */
.article-faq {
    margin: 3rem 0;
    background: rgb(247, 247, 247);
    padding:1rem;
    border-radius:15px;
}

.faq-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-title i {
    color: var(--primary-color);
}

.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: #f8f9fa;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666;
    padding: 1rem 1.25rem;
}

/* ========================================
   SIDEBAR DROITE
======================================== */

.article-sidebar {
    position: sticky;
    top: 90px;
}

/* Widget général */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.widget-view-all {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.widget-view-all:hover {
    gap: 0.5rem;
    color: #7ed492;
}

.widget-view-all i {
    font-size: 0.7rem;
}

/* Articles récents */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item {
    display: flex;
    gap: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.recent-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.recent-post-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-title a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.recent-post-date i {
    font-size: 0.65rem;
}

/* Catégories badges */
.categories-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge i {
    font-size: 0.7rem;
}

.category-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 0.3rem;
}

.category-badge:hover .badge-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Tags cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.tag-count {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* ----------------------------------------------------------------------------------------------------------------- */

/* ========================================
   MEDIA QUERIES PREMIER SECTION
======================================== */

/* Tablettes (768px - 991px) */
@media (max-width: 991px) {
    .article-header-info {
        padding-left: 1rem;
    }

    .article-title {
        font-size: 1.5rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .blog-detail-hero {
        padding: 1.25rem 0 1.5rem;
    }

    .article-header-info {
        padding-left: 0;
        margin-top: 1.5rem;
    }

    .article-title {
        font-size: 1.4rem;
        margin-bottom: 0.65rem;
    }

    .article-meta-info {
        gap: 0.75rem;
        margin-bottom: 0.85rem;
        padding-bottom: 0.65rem;
    }

    .article-meta-info span {
        font-size: 0.75rem;
    }

    .article-preview {
        font-size: 0.9rem;
        margin-bottom: 0.85rem;
    }

    .btn-like-article {
        width: 100%;
        justify-content: center;
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
}

/* Petits mobiles (max-width: 480px) */
@media (max-width: 480px) {
    .blog-detail-hero {
        padding: 1rem 0 1.25rem;
    }

    .article-title {
        font-size: 1.15rem;
    }

    .article-category-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.65rem;
    }

    .article-meta-info span {
        font-size: 0.7rem;
    }

    .article-preview {
        font-size: 0.75rem;
    }

    .toc-title{
    font-size: 1.1rem!important;
    }

    .paragraph-content {
        font-size: 0.75rem;
        line-height: 1.8;
        color: #2c2c2c;
    }

    .paragraph-content p {
        margin-bottom: 0.75rem;
        font-size: 0.75rem!important;
        color: #2c2c2c;
    }

    /* Strong/Bold plus visible */
    .paragraph-content strong,
    .paragraph-content b {
        color: #1a1a1a;
        font-weight: 700;
        font-size:0.75rem;
    }

    /* Strong/Bold plus visible */
    .paragraph-content h3 strong {
        color: #1a1a1a;
        font-weight: 700;
        font-size:0.95rem;
    }

    /* Strong/Bold plus visible */
    .paragraph-content li strong,
    .paragraph-content b {
        color: #1a1a1a;
        font-weight: 700;
        font-size:0.9rem;
    }

    .tag-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.55rem;
    }

    .btn-like-article {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
}



/* ========================================
   MEDIA QUERIES CONTENU DE L ARTICLE
======================================== */

/* Tablettes (768px - 991px) */
@media (max-width: 991px) {
    .article-content-section {
        padding: 2.5rem 0 3rem;
    }

    .paragraph-title {
        font-size: 1.3rem;
    }

    .gallery-image {
        height: 220px;
    }

    .article-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .article-content-section {
        padding: 2rem 0 2.5rem;
    }

    .article-paragraph {
        margin-bottom: 1.5rem;
    }

    .paragraph-title {
        font-size: 1.2rem;
        margin-bottom: 0.85rem;
    }

    .paragraph-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .article-gallery {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .gallery-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .gallery-image {
        height: 200px;
    }

    .article-faq {
        margin: 2rem 0;
    }

    .faq-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .accordion-body {
        font-size: 0.85rem;
        padding: 0.85rem 1rem;
    }

    .sidebar-widget {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .widget-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .recent-post-image {
        width: 65px;
        height: 65px;
    }

    .recent-post-title {
        font-size: 0.8rem;
    }

    .recent-post-date {
        font-size: 0.68rem;
    }
}

/* Petits mobiles (max-width: 480px) */
@media (max-width: 480px) {
    .article-content-section {
        padding: 1.5rem 0 2rem;
    }

    .article-paragraph {
        margin-bottom: 1.25rem;
    }

    .paragraph-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .paragraph-content {
        font-size: 0.75rem;
    }

    .article-gallery {
        margin: 1.5rem 0;
        padding: 1.25rem;
        border-radius: 10px;
    }

    .gallery-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .gallery-image {
        height: 180px;
    }

    .article-faq {
        margin: 1.5rem 0;
    }

    .faq-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .accordion-button {
        font-size: 0.85rem;
        padding: 0.75rem 0.85rem;
    }

    .accordion-body {
        font-size: 0.8rem;
        padding: 0.75rem 0.85rem;
    }

    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }

    .widget-title {
        font-size: 0.95rem;
        margin-bottom: 0.85rem;
    }

    .widget-header {
        margin-bottom: 1rem;
    }

    .widget-view-all {
        font-size: 0.75rem;
    }

    .recent-post-item {
        gap: 0.75rem;
        padding-bottom: 0.85rem;
    }

    .recent-post-image {
        width: 60px;
        height: 60px;
        border-radius: 6px;
    }

    .recent-post-title {
        font-size: 0.8rem;
    }

    .recent-post-date {
        font-size: 0.65rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
    }

    .badge-count {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }

    .tag-cloud-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
    }

    .tag-count {
        font-size: 0.65rem;
    }
}