
    /* ****************************************************** */
    /* STYLES GÉNÉRAUX ET SPÉCIFIQUES À LA PAGE D'ARTICLE */
    /* ****************************************************** */

    /* Styles spécifiques pour la page de détails d'article */
    .article-page {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .article-content-wrapper {
        background-color: #fff;
        padding: 40px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .article-category-badge {
        font-size: 0.9em;
        padding: 0.5em 1em;
        border-radius: 20px;
        background-color: #dc3545 !important;
    }

    .article-title {
        font-size: 2.5rem;
        font-weight: bold;
        color: #343a40;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .article-meta {
        font-size: 0.95rem;
        color: #6c757d;
    }
    .article-author-link {
        color: #dc3545;
        font-weight: bold;
    }
    .article-author-link:hover {
        text-decoration: underline !important;
    }

    .article-thumbnail img {
        width: 100%;
        max-height: 450px;
        object-fit: cover;
        border-radius: 8px;
    }
    .article-thumbnail figcaption {
        font-size: 0.85rem;
        color: #888;
    }

    .article-body {
        font-size: 1.15rem;
        line-height: 1.8;
        color: #343a40;
    }
    .article-body h2, .article-body h3, .article-body h4 {
        color: #343a40;
        margin-top: 1.5em;
        margin-bottom: 0.8em;
        font-weight: bold;
    }
    .article-body p {
        margin-bottom: 1em;
    }
    .article-body ul, .article-body ol {
        margin-bottom: 1em;
        padding-left: 20px;
    }
    .article-body a {
        color: #dc3545;
        text-decoration: none;
    }
    .article-body a:hover {
        text-decoration: underline;
    }
    .article-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin-top: 15px;
        margin-bottom: 15px;
        display: block;
    }

    .article-sections .section-title {
        font-size: 1.8rem;
        font-weight: bold;
        color: #343a40;
        margin-bottom: 15px;
    }
    .article-sections .section-image img {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
        border-radius: 8px;
    }
    .article-sections .section-resume {
        font-size: 1rem;
        line-height: 1.6;
        color: #555;
    }

    .gallery-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .media-thumbnail {
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: inherit;
    }
    .media-thumbnail:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    }

    .media-thumbnail-img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .media-thumbnail .card-body {
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .article-tag-badge {
        font-size: 0.85em;
        padding: 0.4em 0.8em;
        border-radius: 5px;
        background-color: #6c757d !important;
        transition: background-color 0.3s ease;
    }
    .article-tag-badge:hover {
        background-color: #5a6268 !important;
    }

    .social-share-btn {
        display: inline-flex;
        align-items: center;
        padding: 8px 15px;
        border-radius: 5px;
        font-weight: bold;
        text-decoration: none;
        color: white;
        transition: background-color 0.3s ease;
    }
    .social-share-btn i {
        margin-right: 8px;
    }
    .facebook-btn { background-color: #3b5998; }
    .facebook-btn:hover { background-color: #2d4373; color: white;}
    .twitter-btn { background-color: #55acee; }
    .twitter-btn:hover { background-color: #2795e9; color: white;}
    .whatsapp-btn { background-color: #25d366; }
    .whatsapp-btn:hover { background-color: #1da851; color: white;}

    .sidebar-wrapper {
        padding-left: 20px;
    }
    .sidebar-ad-unit {
        background-color: #f8f9fa;
        border: 1px dashed #dee2e6;
    }
    .card-header.bg-danger {
        background-color: #dc3545 !important;
        font-weight: bold;
        font-size: 1.1rem;
    }

    .recent-article-thumb {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 5px;
    }
    .list-group-item h6 a {
        color: #343a40;
        transition: color 0.2s ease;
    }
    .list-group-item h6 a:hover {
        color: #dc3545;
    }

    .filter-tag-badge {
        background-color: #6c757d !important;
        color: white;
        padding: .4em .8em;
        border-radius: .25rem;
        text-decoration: none;
        font-size: 0.85em;
        transition: background-color 0.3s ease;
    }
    .filter-tag-badge:hover {
        background-color: #dc3545 !important;
    }

    .comments-section .no-comments {
        background-color: #f8f9fa;
        color: #6c757d;
        border-color: #dee2e6;
    }

    .comment-item {
        background-color: #fcfcfc;
        padding: 15px;
        border-radius: 5px;
    }
    .comment-avatar {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .comment-author {
        font-weight: bold;
        color: #343a40;
    }
    .comment-date {
        font-size: 0.85rem;
        color: #999;
    }
    .comment-body {
        font-size: 0.95rem;
        color: #495057;
    }
    .comment-replies {
        margin-top: 15px;
        padding-left: 25px;
        border-left: 3px solid #eee;
    }
    .comment-replies .comment-item {
        background-color: #f0f2f5;
    }
    .comment-form-wrapper .form-control {
        border-radius: 5px;
        border: 1px solid #ced4da;
    }
    .comment-form-wrapper .form-control:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    }

    /* ****************************************************** */
    /* STYLES DE LA MODALE PLEIN ÉCRAN AVEC FLOU ET TRANSPARENCE */
    /* ****************************************************** */

    .modal.fade {
        /* Ceci est l'overlay derrière la modale. */
        background-color: rgba(255, 255, 255, 0.267); /* Plus opaque pour un meilleur contraste */
        backdrop-filter: blur(10px); /* Flou plus intense pour l'arrière-plan */
        -webkit-backdrop-filter: blur(10px); /* Pour Safari */
        transition: background-color 0.3s linear, backdrop-filter 0.3s linear; /* Animation douce */
    }

    .modal-dialog {
        margin: 0; /* Supprime toutes les marges par défaut */
        max-width: 100vw; /* Prend 100% de la largeur de la vue */
        height: 100vh; /* Prend 100% de la hauteur de la vue */
        display: flex;
        align-items: center; /* Centre le contenu du modal-content verticalement */
        justify-content: center; /* Centre le contenu du modal-content horizontalement */
    }

    .modal-content {
        max-width: 100vw; /* Assure que le contenu ne dépasse pas la largeur de la vue */
        max-height: 100vh; /* Assure que le contenu ne dépasse pas la hauteur de la vue */
        width: 100%; /* Prend toute la largeur disponible dans le modal-dialog */
        height: 100%; /* Prend toute la hauteur disponible dans le modal-dialog */
        background-color: transparent; /* Rend le fond du contenu de la modale transparent */
        border: none; /* Supprime la bordure par défaut */
        border-radius: 0; /* Supprime les bords arrondis */
        box-shadow: none; /* Supprime l'ombre par défaut */
        display: flex;
        flex-direction: column; /* Organise header, body, footer en colonne */
    }

    .modal-header,
    .modal-footer {
        background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent pour les barres */
        color: white; /* Texte blanc */
        border: none; /* Supprime les bordures */
        padding: 15px 25px; /* Augmente légèrement le padding pour plus d'espace */
        flex-shrink: 0; /* Empêche l'en-tête/pied de page de rétrécir */
    }

    .modal-header .btn-close {
        background-color: transparent;
        color: white;
        opacity: 1;
        font-size: 1.5rem; /* Rendre la croix plus grande */
        padding: 0.5rem; /* Ajuster le padding de la croix */
        margin: -0.5rem -0.5rem -0.5rem auto; /* Assure la bonne position */
    }

    .modal-header .btn-close:hover {
        opacity: 0.8;
    }

    .modal-title {
        color: white;
        font-size: 1.8rem; /* Titre plus grand */
    }

    .modal-body {
        flex-grow: 1; /* Prend tout l'espace central disponible */
        display: flex;
        align-items: center; /* Centre verticalement le média */
        justify-content: center; /* Centre horizontalement le média */
        padding: 0 !important; /* TRÈS IMPORTANT : Élimine tout padding interne du body */
        overflow: hidden; /* Gère le débordement, assure qu'aucun scroll n'apparaît */
    }

    /* Conteneur direct du média, doit prendre tout l'espace disponible */
    #media-content-display {
        position: relative;
        width: 100%; /* Prend toute la largeur de son parent (modal-body) */
        height: 100%; /* Prend toute la hauteur de son parent (modal-body) */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden; /* Important pour les vidéos et iframes */
    }

    /* Styles pour tous les médias (image, vidéo, iframe) à l'intérieur de #media-content-display */
    #media-content-display img,
    #media-content-display video,
    #media-content-display iframe {
        /* Ces propriétés sont la clé pour que l'image soit TRÈS grande */
        width: 100%; /* Tente de prendre 100% de la largeur du conteneur */
        height: 100%; /* Tente de prendre 100% de la hauteur du conteneur */
        object-fit: contain; /* Redimensionne le contenu pour qu'il soit entièrement contenu dans la boîte
                                    du parent, préservant son ratio, avec des "letterbox" si nécessaire.
                                    C'est ce qui maximise la taille sans couper l'image. */
        display: block; /* Supprime l'espace indésirable sous les images */
        margin: 0; /* Supprime toute marge auto qui pourrait laisser de l'espace */
        border-radius: 0; /* Pas de bords arrondis */
    }

    /* Styles spécifiques pour les iframes (vidéos YouTube/Vimeo) */
    #media-content-display iframe {
        border: none;
    }

    /* Styles pour la balise audio */
    #media-content-display audio {
        width: 90%; /* Audio un peu plus large */
        margin-top: 20px;
        max-width: 600px; /* Limite la taille max des contrôles audio */
    }

    .modal-footer .btn-secondary {
        background-color: rgba(255, 255, 255, 0.3); /* Plus transparent */
        border: 1px solid rgba(255, 255, 255, 0.4);
        color: white;
        padding: 10px 20px; /* Plus grand boutons */
        font-size: 1rem;
    }
    .modal-footer .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }
    .modal-footer #media-caption-display {
        color: white;
        font-size: 1.1rem; /* Légende plus grande */
        padding: 0 15px;
    }

    /* ****************************************************** */
    /* FIN DES STYLES DE LA MODALE */
    /* ****************************************************** */

    /* Réactivité */
    @media (max-width: 991.98px) { /* Pour les écrans plus petits que large (lg) */
        .article-content-wrapper, .sidebar-wrapper {
            padding: 20px;
        }
        .sidebar-wrapper {
            padding-left: 0;
            margin-top: 40px;
        }
        .article-title {
            font-size: 2rem;
        }
        .article-body {
            font-size: 1rem;
        }
        .gallery-container {
            gap: 10px;
        }
        .gallery-container .col-12,
        .gallery-container .col-sm-12 {
            width: 100%;
        }
        .media-thumbnail-img {
            height: 200px;
        }
    }

    @media (min-width: 576px) and (max-width: 767.98px) { /* Small devices (landscape phones, 576px and up) */
        .gallery-container .col-sm-12 {
            width: 100%;
        }
    }

    @media (min-width: 768px) { /* Tablette et plus grand */
        .gallery-container .col-md-4 {
            width: 33.333333%;
        }
        .media-thumbnail-img {
            height: 180px;
        }
    }

    @media (min-width: 992px) { /* Laptop et plus grand */
        .gallery-container .col-lg-4 {
            width: 33.333333%;
        }
    }
