
/* =========================================================================
   1. Configuration & Styles Globaux
   ========================================================================== */
:root {
    --bs-primary: #0a2540 !important;
    --bs-primary-rgb: 10, 37, 64 !important;
    --accent-color: #00d4a1 !important;
    --light-gray: #f6f9fc !important;
    --bs-body-font-family: 'Poppins', sans-serif;
	--bs-nav-link-color : #ffffff !important;
}

body {
    background-color: #fff;
    color: #525f7f;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bs-primary);
    font-weight: 700;
}

/* =========================================================================
   2. Composants Réutilisables
   ========================================================================== */
.btn-primary {
    background-color: var(--mag-title-link) !important;
    border-color: var(--mag-title-link) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease;
}


.titrearticle a {
    color: var(--accent-color) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.article-card,
.sidebar-widget,
.testimonial-card {
    background-color: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.article-card{
    border-right: 8px solid #11345e;
	}
.tag-badge {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* =========================================================================
   3. Mise en Page Principale (Layout)
   ========================================================================== */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-color);
    width: 0%;
    z-index: 9999;
}

.navbar.bg-primary {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 50px 100px -20px rgba(50,50,93,.25), 0 30px 60px -30px rgba(0,0,0,.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 0.5rem !important;
}

.mega-menu {
    width: max-content;
}

.mega-menu h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-primary);
}

.mega-menu .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border-radius: 0.375rem;
}

.mega-menu .dropdown-item i {
    width: 20px;
    color: var(--accent-color);
}

#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    background-color: var(--bs-primary);
    opacity: 0.8;
    border: none;
}

/* =========================================================================
   4. Sections de Page
   ========================================================================== */

/* --- Sections Hero (Article & Catégorie) --- */
.article-hero {
    position: relative;
    padding: 6rem 0;
    color: white;
    background-size: cover;
    background-position: center;
}
.article-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(rgb(0 1 2 / 70%), rgb(62 63 65 / 70%));
}
.article-hero .container {
    position: relative;
    z-index: 2;
}
.article-hero .category-badge {
    background-color: var(--mag-title-link);
}
.article-hero h1 {
    font-size: 2.5rem; /* Taille de police réduite */
}

.category-hero {
    background-color: #fff;
    padding: 4rem 0;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}
.category-hero h1 {
    background: linear-gradient(45deg, var(--bs-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* --- Contenu Principal & Fil d'Ariane --- */
.breadcrumb { font-size: 0.9rem; }
.breadcrumb-item a { color: var(--accent-color); text-decoration: none; font-weight: 500; }
.breadcrumb-item.active { color: #8898aa; }
.breadcrumb-item+.breadcrumb-item::before { content: "\0203A"; color: #8898aa; padding: 0 0.5rem; }

.entry-content p { line-height: 1.8; }
.entry-content h2, .entry-content .h2 { margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--light-gray); }
.entry-content blockquote { border-left: 4px solid var(--accent-color); padding: 1rem 1.5rem; background-color: var(--light-gray); font-style: italic; }

/* --- Cartes d'articles (Général, Vedette, Grille) --- */
.article-card { transition: all 0.3s ease; }
.featured-article .card-body { padding: 2rem; }
.featured-article .article-img { object-fit: cover; border-radius: 0.75rem 0 0 0.75rem; height: 350px !important; }
.article-grid-card .card-img-top { height: 200px; object-fit: cover; }

/* --- Navigation & Auteur --- */
.post-navigation a { text-decoration: none; font-weight: 600; transition: all 0.2s ease; }
.author-box { background-color: var(--light-gray); border-radius: 0.75rem; }

/* --- Sidebar & Widgets --- */
.sidebar-sticky { position: -webkit-sticky; position: sticky; top: 120px; }
.sidebar-widget { padding: 1.5rem; }
.latest-posts-list .post-item img { width: 65px; height: 65px; object-fit: cover; border-radius: 0.5rem; }
.latest-posts-list .post-item .post-title { text-decoration: none; color: var(--bs-primary); font-weight: 600; line-height: 1.4; }

/* --- Témoignages & SEO --- */
.testimonial-card { border-left: 4px solid var(--accent-color) !important; }
.testimonial-card img { width: 60px; height: 60px; border-radius: 50%; }
.seo-content-zone { background-color: #fff; border-top: 1px solid #dee2e6; }
.in-article-cta { background-color: var(--light-gray); border-left: 4px solid var(--accent-color); border-radius: 0.5rem; }

/* --- Commentaires & Partage Social --- */
.social-share a { color: #fff; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin: 0 0.25rem; transition: all 0.2s ease; }
.share-facebook { background-color: #1877F2; }
.share-twitter { background-color: #1DA1F2; }
.share-linkedin { background-color: #0A66C2; }

.comment-list { list-style: none; padding: 0; }
.comment { display: flex; padding: 1.5rem 0; border-bottom: 1px solid var(--light-gray); }
.comment-avatar img { width: 50px; height: 50px; border-radius: 50%; }
.comment-body { margin-left: 1.25rem; }
.comment-meta { font-size: 0.9rem; font-weight: 600; }
.comment-meta .date { font-weight: 400; color: #8898aa; }
.comment-reply-link { font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.comment .children { list-style: none; padding-left: 3.5rem; }
.comment-form .form-label { font-weight: 600; font-size: 0.9rem; }

/* =========================================================================
   5. Interactions (Hover)
   ========================================================================== */
#backToTopBtn:hover { opacity: 1; }

.mega-menu .dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--bs-primary);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
}

.post-navigation a {
    color:var(--mag-title-link) !important;
}

.post-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(50,50,93,.1), 0 3px 10px rgba(0,0,0,.07);
	background-color:var(--mag-title-link) !important;
	color:#fff !important;
}


.tag-badge:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.social-share a:hover {
    transform: translateY(-3px);
}

.sidebar-cta-button:hover {
    transform: scale(1.05);
}

.latest-posts-list .post-item .post-title:hover {
    color: var(--accent-color);
}
.comment-meta a {
	text-decoration:none;
	color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

/* =========================================================================
   6. Responsive Design
   ========================================================================== */
@media (max-width: 991.98px) {
    .mega-menu {
        width: auto;
    }
}

.ytp-cued-thumbnail-overlay-image {
    background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
}
.wp-embed-responsive .wp-has-aspect-ratio iframe {
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}
 /* Hero Section */
        .hero-section {
            background-color: var(--bs-primary);
            background-image: linear-gradient(rgba(var(--bs-primary-rgb), 0.60), rgba(var(--bs-primary-rgb), 0.90));
            background-size: cover;
            background-position: center;
           
        }
		.hero-section h1 { color:#fff;}
        .hero-search-form { max-width: 600px; margin: 2rem auto 0; display: flex; }
        .hero-search-form .form-control { padding: 1rem 1.5rem; border-radius: 50rem 0 0 50rem; border: none; }
        .hero-search-form .btn { border-radius: 0 50rem 50rem 0; }
		#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1000;
    background-color: var(--bs-primary);
    opacity: 0.8;
    border: none;
}
/**
 * Styles CSS CORRIGÉS pour transformer TOC+ en accordéon cliquable.
 */

/* 1. Conteneur principal (inchangé) */
#toc_container {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    background-color: #ffffff;
    overflow: hidden;
    margin: 2rem 0;
	width:100% !important;
}

/* 2. Le titre devient un conteneur de positionnement relatif. */
#toc_container p.toc_title {
    position: relative; /* TRÈS IMPORTANT */
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 0; /* Cache le texte original "Contents" */
    background-color: #f7f7f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

#toc_container p.toc_title:hover {
    background-color: #e9ecef;
}

/* 3. Pseudo-élément pour notre titre personnalisé (inchangé) */
#toc_container p.toc_title::before {
    content: '\f0ca Table des matieres';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1rem;
    color: #0d6efd;
    position: relative; /* Pour s'assurer qu'il est visible sous le lien */
    z-index: 1;
}

/* 4. Pseudo-élément pour la flèche (inchangé) */
#toc_container p.toc_title::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #6c757d;
    z-index: 1;
}

/* 5. Le conteneur du lien du plugin (inchangé) */
#toc_container p.toc_title .toc_toggle {
    /* On ne le cache plus avec display: none; */
}

/* 6. LA CORRECTION : On étire le lien <a> sur toute la surface. */
#toc_container p.toc_title .toc_toggle a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 0; /* Cache le texte du lien "[hide]" */
    z-index: 2;   /* On le place au-dessus des pseudo-éléments */
}

/* 7. La liste (ul.toc_list) (inchangé) */
#toc_container ul.toc_list {
    list-style-type: none;
    padding: 1rem 1.25rem 1rem 2.5rem;
    margin: 0;
}
code {
    font-size: .875em;
    color: #893f64;
    word-wrap: break-word;
    background-color: #fff;
    border: 1px solid #ccc !important;
    padding: 5px;
    border-radius: 10px;
}
.card-header {
    background-color: #003366;
    color: white;
    font-weight: bold;
}
.input-group-text.label-dim {
    min-width: 110px;
    justify-content: flex-start;
}
.badge-primary {
    color: #fff;
    background-color: #007bff;
}
.badge-secondary {
	 color: #fff;
    background-color: #6c757d !important;
}
.badge-pill {
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem;
}
.badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.resultdata {
	font-size: 26px;
    font-weight: bold;
    color: #38648b !important;
}

.video-wrapper {
    position: relative; /* Conteneur de référence pour les éléments superposés */
    cursor: pointer;    /* Le curseur change en main pour indiquer que c'est cliquable */
    overflow: hidden;   /* Assure que les coins arrondis s'appliquent à tous les enfants */
}

.video-wrapper .video-poster {
    width: 100%;
    display: block;
}

.video-wrapper .play-button {
    /* Centrage parfait de l'icône */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Style du bouton */
    width: 80px;
    height: 80px;
    background-color: rgba(0, 212, 161, 0.8); /* Fond avec la couleur accent */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.video-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(0, 212, 161, 1);
}

/* La vidéo est cachée par défaut */
#demoVideo {
    display: none;
}


/* -- 1. Style de base de la carte (avec préparation au zoom) -- */
.related-tool-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 0.75rem;
    background-size: cover;
    background-position: center;
    /* DURÉE PLUS LONGUE ET COURBE PLUS DOUCE */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    min-height: 280px;
}

/* -- 2. Effet de zoom au survol -- */
.related-tool-card:hover {
    transform: scale(1.05); /* L'effet de zoom */
}

/* -- 3. Dégradé pour la lisibilité (superposé à l'image) -- */
.related-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Le dégradé qui assure la lisibilité du texte */
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 20%, rgba(10, 10, 10, 0.3) 100%);
    z-index: 1; /* Le dégradé se place entre l'image de fond et le texte */
}

/* -- 4. Le conteneur du texte : LA CLÉ DE L'ANIMATION -- */
.related-tool-card .card-body {
    display: flex;
    flex-direction: column; /* Aligne titre et extrait verticalement */
    height: 100%; /* Important : le conteneur prend toute la hauteur de la carte */
    position: relative; /* Doit avoir une position pour que z-index fonctionne */
    z-index: 2; /* Le texte se place au-dessus du dégradé */
    padding: 1.5rem; /* Un peu plus d'espace intérieur */
    color: #ffffff; /* Couleur de texte par défaut pour les enfants */
}

/* -- 5. Le titre (avec transition adoucie) -- */
.related-tool-card .card-title {
    margin-top: auto;
    /* ON ADOUCIT ÉGALEMENT L'ANIMATION DU TITRE */
    transition: margin-top 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-tool-card .card-title a {
    color: #ffffff !important; /* Le titre est blanc */
    text-decoration: none; /* Pas de soulignement par défaut */
    font-weight: 600;
    font-size: 1.5rem;
}

/* Le lien ne doit pas changer de couleur au survol, juste être cliquable */
.related-tool-card .card-title a:hover {
    text-decoration: underline; /* On ajoute juste un soulignement au survol */
}

/* -- 6. L'extrait (avec transition adoucie) -- */
.related-tool-card .card-text {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    /* ON AJUSTE LA DURÉE ET LE DÉLAI POUR UNE APPARITION PLUS FLUIDE */
    transition: opacity 0.5s ease-out 0.2s, max-height 0.6s ease-out 0.1s;
}

/* -- 7. Tout s'anime au survol de la carte -- */
.related-tool-card:hover .card-title {
    margin-top: 0; /* Le titre remonte en haut */
}

.related-tool-card:hover .card-text {
    opacity: 1; /* L'extrait apparaît */
    max-height: 150px; /* On lui donne une hauteur maximale pour qu'il puisse s'afficher */
    margin-top: 0.75rem; /* Ajoute un espace sous le titre */
}






/* Le conteneur de l'article */
.post-item {
    padding: 5px;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease-in-out;
}

/* Effet de survol sur toute la zone cliquable */
.post-item:hover {
    background-color: #f8f9fa; 
}

/* Style du lien étiré : on le rend "invisible" en héritant la couleur */
.post-item .stretched-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

/* Au survol, on peut choisir de styliser le lien pour un retour visuel */
.post-item:hover .stretched-link {
    color: #0d6efd; 
}

/* Autres styles (image, date) */
.post-item-thumb { width: 65px; height: 65px; object-fit: cover; border-radius: 0.5rem; }
.post-title { font-size: 0.9rem; font-weight: 600; margin: 0; }
.post-date { font-size: 0.8rem; color: #6c757d; }



/*
 * Styles pour les boutons des réseaux sociaux
 */

/* Classe de base pour une transition douce */
.btn-social {
    transition: all 0.2s ease-in-out;
}

/* 🎨 Couleurs au survol (hover) */

/* -- Réseaux Sociaux -- */

.btn-facebook:hover {
    background-color: #1877F2 !important;
    border-color: #1877F2 !important;
    color: #fff !important;
}

.btn-twitter:hover {
    background-color: #1DA1F2 !important; /* Bleu classique de Twitter */
    border-color: #1DA1F2 !important;
    color: #fff !important;
}

/* ✨ L'instagram a un dégradé spécial */
.btn-instagram:hover {
    background-image: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn-linkedin:hover {
    background-color: #0A66C2 !important;
    border-color: #0A66C2 !important;
    color: #fff !important;
}

.btn-pinterest:hover {
    background-color: #E60023 !important;
    border-color: #E60023 !important;
    color: #fff !important;
}

.btn-youtube:hover {
    background-color: #FF0000 !important;
    border-color: #FF0000 !important;
    color: #fff !important;
}

/* -- Modèles IA -- */

.btn-openai:hover {
    background-color: #10A37F !important; /* Vert officiel d'OpenAI */
    border-color: #10A37F !important;
    color: #fff !important;
}

.btn-gemini:hover {
    background-color: #8E44AD !important; /* Violet inspiré de Gemini/Bard */
    border-color: #8E44AD !important;
    color: #fff !important;
}

.btn-grok:hover {
    background-color: #343A40 !important; /* Gris foncé sobre */
    border-color: #343A40 !important;
    color: #fff !important;
}




/*
 * Styles pour le module de partage sur les réseaux sociaux
 */
.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

.share-label {
    font-weight: 600;
}

.share-links {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Espace entre les icônes */
}

.share-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Icônes circulaires */
    background-color: #f0f2f5;
    color: #4b4f56;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: none; /* Pour le bouton "copier" */
    cursor: pointer;
}

.share-icon:hover {
    color: #fff;
    transform: scale(1.1);
}


.share-facebook { background-color: #1877F2; }
.share-twitter { background-color: #1DA1F2; }
.share-linkedin { background-color: #0A66C2; }
.share-whatsapp { background-color: #25D366; }
.share-email { background-color: #6c757d; }
/*
 * Style de la boîte Auteur optimisée
 */
.author-box {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 0.5rem; /* Un peu plus arrondi pour un look moderne */
    padding: 1.5rem;
    margin: 3rem 0; /* Marge verticale pour bien la séparer du contenu */
}

.author-avatar {
    margin-right: 1.5rem;
    flex-shrink: 0; /* Empêche l'image de se déformer */
}

.author-content .h5 {
    margin-bottom: 0.25rem;
}

/* Style du lien sur le nom de l'auteur */
.author-content h4 a {
    text-decoration: none;
    color: #212529; /* Couleur de texte sombre standard */
    transition: color 0.2s ease-in-out;
}

.author-content h4 a:hover {
    color: #0d6efd; /* Couleur bleue au survol */
}


.footer-menu li {
    margin-bottom: 0.25rem;
}





/*
 * Optimisations pour les cartes d'articles de blog
 */

/* 1. Homogénéise la hauteur de l'image */
.blog-card-image-wrapper {
    height: 250px; /* Définissez ici la hauteur souhaitée pour toutes les images */
    overflow: hidden;
}

.blog-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image remplit l'espace sans se déformer */
}

/* 2. Ajoute l'effet de zoom et d'ombre au survol */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: scale(1.03); /* Léger effet de zoom */
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important; /* Ombre plus prononcée */
}

/* 3. Style pour les métadonnées (catégorie, date, temps de lecture) */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.post-meta a:hover {
    text-decoration: underline !important;
}

/* Améliore le retour visuel du titre au survol de la carte */
.blog-card:hover .card-title a {
    color: #0d6efd; /* La couleur de votre choix */
}

.extraitarticle {
	font-size:14px;
	color: var(--bs-primary);
}












/* --- ------------------------- --- */
/* --- Style de la TIMELINE --- */
/* --- ------------------------- --- */
    .timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
    .timeline::after { content: ''; position: absolute; width: 3px; background-color: #dee2e6; top: 0; bottom: 0; left: 50%; margin-left: -1.5px; }
    .timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
    .timeline-item:nth-child(odd) { left: 0; }
    .timeline-item:nth-child(even) { left: 50%; }
    .timeline-icon { position: absolute; width: 50px; height: 50px; right: -25px; background-color: var(--accent-color, #0d6efd); color: white; top: 25px; border-radius: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
    .timeline-item:nth-child(even) .timeline-icon { left: -25px; }
    .timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
    .timeline-item:nth-child(odd) { text-align: right; }
    @media (max-width: 767.98px) {
        .timeline::after { left: 25px; }
        .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; left: 0 !important; text-align: left !important; }
        .timeline-icon { left: 0 !important; }
    }
	
	
	/* --- ------------------------- --- */				
/* --- ------------------------- --- */


 .category-list-card {
        background-color: #fff;
        border: 1px solid #dee2e6;
        border-radius: 0.75rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .category-header {
        padding: 1.25rem;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #dee2e6;
    }
    .category-header i {
        font-size: 1.5rem;
        color: var(--bs-primary, #0d6efd);
        margin-right: 1rem;
    }
    .category-header .h5 {
        margin-bottom: 0;
        font-weight: 600;
    }
    .list-group-item {
        padding: 0;
        border-bottom: 1px solid #f8f9fa !important;
    }
    .list-group-item:last-child {
        border-bottom: none !important;
    }
    .list-group-item a {
        display: block;
        padding: 0.75rem 1.25rem;
        text-decoration: none;
        color: #495057;
        font-size: 0.9rem;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }
    .list-group-item a:hover {
        background-color: var(--bs-primary-bg-subtle, #e7f1ff);
        color: var(--bs-primary, #0d6efd);
        font-weight: 500;
    }
	
	
/*
 * Styles pour la carte article à la une optimisée
 */

/* 1. Applique votre hauteur fixe de 350px à l'image sans la déformer */
.featured-image-wrapper {
    height: 350px;
    background-color: #f8f9fa; /* Couleur de fond si l'image est absente */
	
}
.featured-image-wrapper img {
    width: 100%;
    height: 100%;
	border-radius: 10px 0 0 10px;
    object-fit: cover; /* La propriété clé pour éviter la distorsion */
}

/* 2. Style du lien au survol de la carte (conserve votre effet d'ombre/bordure) */
.featured-article .card-title a {
    color: #212529; /* Couleur de base du titre */
    transition: color 0.2s ease;
}
.featured-article:hover .card-title a {
    color: var(--bs-primary, #0d6efd); /* Le titre change de couleur au survol */
}	


.navigation.pagination .nav-links{
  display:flex;
  gap:.5rem;
  justify-content:center;
  flex-wrap:wrap;
}

.navigation.pagination .page-link{
  display:inline-block;
  padding:.45rem .75rem;
  border:1px solid rgba(0,0,0,.15);
  border-radius:.5rem;
  line-height:1;
}

.navigation.pagination a.page-numbers .page-link{
  text-decoration:none;
}

.navigation.pagination .page-numbers.current .page-link{
  background:#0d6efd;
  color:#fff;
  border-color:#0d6efd;
}

.navigation.pagination .page-numbers.dots .page-link{
  border-color:transparent;
}


/* ==========================================================================
   Pagination Optimisée et Ergonomique
   ========================================================================== */

/* Conteneur principal de la pagination */
.pagination.navigation {
    display: block; /* S'assure que la nav prend toute la largeur */
    margin-top: 2.5rem; /* Espace confortable au-dessus de la pagination */
    margin-bottom: 2.5rem; /* Espace confortable en dessous */
}

/* Le conteneur des liens qui sera mis en flexbox */
.pagination .nav-links {
    display: flex; /* La clé ! Aligne les éléments sur une ligne */
    flex-wrap: wrap; /* Permet de passer à la ligne sur très petits écrans si besoin */
    justify-content: center; /* Centre le bloc de pagination */
    align-items: center; /* Aligne verticalement les éléments */
    gap: 0.5rem; /* Espace moderne et simple entre chaque bouton */
}

/* Style de base pour TOUS les boutons de pagination (numéros, suivant, précédent) */
.pagination .page-numbers {
    display: inline-flex; /* Permet d'utiliser les propriétés de boîte flex */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    padding: 0; /* On retire le padding pour le mettre sur le .page-link intérieur */
    border-radius: 0.375rem; /* Bords arrondis modernes */
    border: 1px solid #dee2e6; /* Bordure subtile */
    background-color: #ffffff; /* Fond blanc par défaut */
    color: var(--bs-primary); /* Couleur du texte (bleu Bootstrap par défaut, à adapter) */
    transition: all 0.2s ease-in-out;
    min-width: 45px; /* Largeur minimale pour un aspect carré/rond */
    min-height: 45px; /* Hauteur minimale */
}

/* Le conteneur du texte/numéro à l'intérieur du lien */
.pagination .page-numbers .page-link {
    padding: 0.5rem 0.75rem; /* Padding interne pour le confort visuel */
}

/* Style pour l'état HOVER (quand la souris passe dessus) */
/* On exclut la page courante qui n'est pas cliquable */
.pagination .page-numbers:not(.current):hover {
    background-color: #e9ecef; /* Fond légèrement grisé au survol */
    border-color: #ced4da;
    color: #0a58ca; /* Couleur de texte légèrement plus foncée */
}

/* Style pour la page ACTIVE/COURANTE */
.pagination .page-numbers.current {
    background-color: var(--bs-primary); /* Couleur de fond principale (bleu) */
    border-color: var(--bs-primary);
    color: #ffffff; /* Texte blanc pour contraster */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Petite ombre pour la faire ressortir */
    pointer-events: none; /* Désactive le clic sur l'élément déjà actif */
}

.pagination .page-numbers.current .page-link {
    background-color: var(--bs-primary) !important;
	color: #ffffff;

}

/* Le texte "Suivant" et "Précédent" aura le même style que les numéros */
.pagination .next,
.pagination .prev {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Ajustement pour l'icône à l'intérieur des liens suivant/précédent */
.pagination .next i,
.pagination .prev i {
    margin-left: 0.5rem; /* Espace entre "Suivant" et la flèche */
}
.pagination .prev i {
    margin-right: 0.5rem;
    margin-left: 0;
}

.page-link {
    position: relative;
    display: block;
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
    font-size: var(--bs-pagination-font-size);
    color: var(--bs-primary);
    text-decoration: none;
    background-color: var(--bs-pagination-bg);
    border: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* ✅ Titres & liens d’articles */
.titrearticle a,
.entry-title a,
.wp-block-post-title a,
a.stretched-link{
    color: var(--mag-title-link) !important;
}
.titrearticle a:hover,
.card-title a:hover,
.entry-title a:hover,
.wp-block-post-title a:hover{
    opacity:.85;
}
