/* ============================================
   AKAMASOFT - OPTIMISATIONS CSS PERSONNALISÉES
   ============================================ */

/* ============================================
   PAGES D'ERREUR 404 & 500
   ============================================ */

.error-content {
    padding: 0 0 70px;
}

.error-content h4 {
    color: #253858;
    margin-bottom: .8rem;
    position: relative;
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
}

.error-content p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: rgb(113, 120, 126);
    font-family: 'Lato', sans-serif;
}

.error-text {
    text-align: center;
}

.error {
    font-size: 180px;
    font-weight: 100;
}

.btn-round {
    border-radius: 30px !important;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

/* Animation du mouton */
@keyframes bob {
    0% {
        top: 0;
    }
    50% {
        top: 0.2em;
    }
}

.im-sheep {
    display: inline-block;
    position: relative;
    font-size: 1em;
    margin-bottom: 70px;
}

.im-sheep * {
    transition: transform 0.3s;
}

.im-sheep .top {
    position: relative;
    top: 0;
    animation: bob 1s infinite;
}

.im-sheep:hover .head {
    transform: rotate(0deg);
}

.im-sheep:hover .head .im-eye {
    width: 1.25em;
    height: 1.25em;
}

.im-sheep:hover .head .im-eye:before {
    right: 30%;
}

.im-sheep:hover .top {
    animation-play-state: paused;
}

.im-sheep .head {
    display: inline-block;
    width: 5em;
    height: 5em;
    border-radius: 100%;
    background: #253858;
    vertical-align: middle;
    position: relative;
    top: 1em;
    transform: rotate(30deg);
}

.im-sheep .head:before {
    content: '';
    display: inline-block;
    width: 80%;
    height: 50%;
    background: #253858;
    position: absolute;
    bottom: 0;
    right: -10%;
    border-radius: 50% 40%;
}

.im-sheep .head:hover .im-ear.one,
.im-sheep .head:hover .im-ear.two {
    transform: rotate(0deg);
}

.im-sheep .head .im-eye {
    display: inline-block;
    width: 1em;
    height: 1em;
    border-radius: 100%;
    background: white;
    position: absolute;
    overflow: hidden;
}

.im-sheep .head .im-eye:before {
    content: '';
    display: inline-block;
    background: black;
    width: 50%;
    height: 50%;
    border-radius: 100%;
    position: absolute;
    right: 10%;
    bottom: 10%;
    transition: all 0.3s;
}

.im-sheep .head .im-eye.one {
    right: -2%;
    top: 1.7em;
}

.im-sheep .head .im-eye.two {
    right: 2.5em;
    top: 1.7em;
}

.im-sheep .head .im-ear {
    background: #253858;
    width: 50%;
    height: 30%;
    border-radius: 100%;
    position: absolute;
}

.im-sheep .head .im-ear.one {
    left: -10%;
    top: 5%;
    transform: rotate(-30deg);
}

.im-sheep .head .im-ear.two {
    top: 2%;
    right: -5%;
    transform: rotate(20deg);
}

.im-sheep .body {
    display: inline-block;
    width: 7em;
    height: 7em;
    border-radius: 100%;
    background: rgb(217,48,37);
    position: relative;
    vertical-align: middle;
    margin-right: -2em;
}

.im-sheep .im-legs {
    display: inline-block;
    position: absolute;
    top: 80%;
    left: 10%;
    z-index: -1;
}

.im-sheep .im-legs .im-leg {
    display: inline-block;
    background: #141214;
    width: 0.5em;
    height: 2.5em;
    margin: 0.2em;
}

.im-sheep::before {
    left: 0;
    content: '';
    display: inline-block;
    position: absolute;
    top: 112%;
    width: 100%;
    height: 18%;
    border-radius: 100%;
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   BLOG - ARTICLE SINGLE
   ============================================ */

.author-box-image img {
    width: 155px;
    height: 155px;
    float: left;
    margin-right: 20px;
    border: 1px dashed #ccc;
    padding: 3px;
}

.blog-single-content p {
    font-family: 'Nunito', sans-serif;
    font-style: normal;
    font-weight: bolder;
    color: #2e2e2e;
    letter-spacing: 0.015rem;
    line-height: 1.4;
    font-size: 16px;
}

/* Responsive - Article */
@media (max-width: 768px) {
    .author-box-image img {
        width: 120px;
        height: 120px;
        margin-right: 15px;
    }
    
    .blog-single-content p {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .author-box-image img {
        width: 100px;
        height: 100px;
        float: none;
        margin: 0 auto 15px;
        display: block;
    }
    
    .blog-single-content p {
        font-size: 14px;
    }
}

/* ============================================
   BARRE DE RECHERCHE BLOG
   ============================================ */

.search {
    margin-bottom: auto;
    margin-top: auto;
    height: 70px;
    background-color: #fff;
    border-radius: 40px;
    padding: 10px;
    border: 1px dashed #e74c3c !important;
    margin-bottom: 30px;
}

.search_input {
    color: #000;
    border: 0;
    outline: 0;
    background: none;
    width: 0;
    margin-top: 5px;
    caret-color: transparent;
    line-height: 40px;
    transition: width 0.4s linear;
    margin-left: 30px;
}

.search .search_input {
    padding: 0 10px;
    width: 650px;
    caret-color: red;
    transition: width 0.4s linear;
}

.search:hover > .search_icon {
    background: red;
    color: #fff;
}

.search_icon {
    height: 50px;
    width: 50px;
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    background-color: rgb(217,48,37);
    border: 1px solid rgb(217,48,37);
}

/* Responsive - Barre de recherche */
@media (max-width: 768px) {
    .search {
        height: 60px;
    }
    
    .search .search_input {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .search {
        height: 55px;
        padding: 8px;
    }
    
    .search .search_input {
        width: 100%;
        max-width: 250px;
        font-size: 14px;
    }
    
    .search_icon {
        height: 40px;
        width: 40px;
    }
}

/* ============================================
   POPUP D'ANNONCES
   ============================================ */

.announcement-popup {
    position: fixed;
    bottom: 20px;
    left: 70px;
    max-width: 400px;
    background: transparent;
    border-radius: 10px;
    z-index: 9999;
    display: none;
    animation: slideIn 0.5s ease-out;
    opacity: 1;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.announcement-content {
    position: relative;
    padding: 3px;
    border-radius: 5px;
    background: transparent;
    backdrop-filter: none;
    border: none;
}

.announcement-body {
    padding: 3px;
    border-radius: 5px;
    background: transparent;
}

.announcement-footer {
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.announcement-text {
    color: #0a0909;
    font-size: 14px;
    margin: 0;
    color: #333;
    font-weight: 600;
    line-height: 1.5;
    padding-right: 10px;
    text-transform: capitalize;
}

.announcement-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 5px;
}

.announcement-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 4px;
    background: linear-gradient(45deg, #f85446, #f85446);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.announcement-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #f85446, #f85446);
}

.close-button {
    position: absolute;
    top: -25px;
    right: -25px;
    background: #fff;
    border: 2px solid #f85446;
    color: #f85446;
    font-size: 20px;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
}

.close-button:hover {
    color: #000;
    background: rgba(255, 255, 255, 1);
}

.announcement-popup.closing {
    transform: translateX(-100%);
    opacity: 0;
}

/* Animation slideIn */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive - Annonces */
@media (max-width: 576px) {
    .announcement-popup {
        width: calc(100% - 40px);
        bottom: 10px;
        left: 10px;
    }
}

/* ============================================
   SCROLL UP BUTTON
   ============================================ */

/* Scroll Up Button */
#scrollUp {
    background-color: rgba(229, 57, 53, .3);
    bottom: 100px;
    display: block;
    font-size: 20px;
    height: 60px;
    line-height: 60px;
    position: fixed;
    right: 24px;
    text-align: center;
    width: 60px;
    z-index: 99999;
    border: 2px solid #e53935;
    border-radius: 50%;
    transition: all 1s ease-out;
    animation: blinker 10s linear infinite;
    color: #444;
}

#scrollUp:active,
#scrollUp:focus,
#scrollUp:hover {
    text-decoration: none;
    color: #ffffff;
    background-color: #e53935;
}

/* Buttons */
button:hover {
    cursor: pointer;
    font-size: medium;
    background-color: transparent;
    border-color: transparent;
}

.btn-close:focus {
    outline: 0;
    box-shadow: none !important;
    opacity: var(--bs-btn-close-focus-opacity);
}

.btn-close:hover {
    box-shadow: none !important;
    background-color: transparent !important;
    border: none !important;
}

.btn-close:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

/* Bouton de fermeture de la modal vidéo (Magnific Popup) */
.mfp-close,
button.mfp-close {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.mfp-close:hover,
.mfp-close:focus,
.mfp-close:active,
button.mfp-close:hover,
button.mfp-close:focus,
button.mfp-close:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
}

/* ============================================
   AMÉLIORATION IMAGES - ARTICLES DERNIÈRES PUBLICATIONS
   ============================================ */

.latest-news .post-featured-image {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 18px;
}

.latest-news .post-featured-image img {
    width: 100%;
    height: 250px !important;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.latest-news .blog-item:hover .post-featured-image img {
    transform: scale(1.08);
}

.latest-news .blog-item {
    transition: transform 0.3s ease;
}

.latest-news .blog-item:hover {
    transform: translateY(-5px);
}

/* ============================================
   MISE EN FORME PROFESSIONNELLE DU CONTENU DES ARTICLES
   ============================================ */

/* Container principal */
.page-single-post .post-content {
    width: 1050px;
    margin: 0 auto;
    padding: 5px 5px;
    overflow-x: hidden; /* Empêche le débordement horizontal */
}

.page-single-post .post-entry {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Empêche le débordement */
    word-wrap: break-word; /* Force le retour à la ligne */
    overflow-wrap: break-word; /* Standard moderne */
}

/* Paragraphes */
.page-single-post .post-entry p {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    text-align: justify;
}

/* Premier paragraphe (chapeau) */
.page-single-post .post-entry > p:first-of-type,
.page-single-post .post-entry .intro-paragraph {
    font-size: 20px;
    font-weight: 500;
    color: #1a202c;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Titres H2 */
.page-single-post .post-entry h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Titres H3 */
.page-single-post .post-entry h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-top: 40px;
    margin-bottom: 18px;
    line-height: 1.4;
}

/* Titres H4 */
.page-single-post .post-entry h4 {
    font-size: 20px;
    font-weight: 600;
    color: #4a5568;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Listes à puces */
.page-single-post .post-entry ul {
    margin: 24px 0;
    padding-left: 0;
    list-style: none;
}

.page-single-post .post-entry ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 17px;
    color: #333333;
}

.page-single-post .post-entry ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #f85446;
    font-weight: 700;
    font-size: 18px;
}

/* Listes numérotées */
.page-single-post .post-entry ol {
    margin: 24px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: item;
}

.page-single-post .post-entry ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 15px;
    color: #333333;
    counter-increment: item;
}

.page-single-post .post-entry ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #f85446;
    font-weight: 700;
}

/* Liens */
.page-single-post .post-entry a {
    color: black;
    text-decoration: none;
    font-weight: initial;
    transition: all 0.2s ease;
}

.page-single-post .post-entry a:hover {
    color: #e53935;
}

/* Gras et italique */
.page-single-post .post-entry strong,
.page-single-post .post-entry b {
    font-weight: 700;
    color: #1a202c;
}

.page-single-post .post-entry em,
.page-single-post .post-entry i {
    font-style: italic;
}

/* Citations (blockquote) */
.page-single-post .post-entry blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: #f9fafb;
    font-style: italic;
    color: #4a5568;
}

.page-single-post .post-entry blockquote p {
    margin-bottom: 0;
    font-size: 18px;
}

/* Code inline */
.page-single-post .post-entry code {
    background:None;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    color: #e53935;
}

/* Blocs de code */
.page-single-post .post-entry pre {
    background: #1a202c;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 28px 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box; /* Inclut padding dans la largeur */
}

.page-single-post .post-entry pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: #68d391;
    font-size: 14px;
}

/* Images dans le contenu */
.page-single-post .post-entry img,
.page-single-post .post-entry .article-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 400px; /* Hauteur maximale uniforme */
    object-fit: cover; /* Maintient les proportions */
    border-radius: 8px;
    margin: 28px auto;
    display: block;
    box-sizing: border-box;
}

/* Tableaux */
.page-single-post .post-entry table {
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    table-layout: fixed; /* Force les colonnes à s'adapter */
    box-sizing: border-box;
}

.page-single-post .post-entry table th {
    background: #f85446;
    color: white;
    padding: 14px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.page-single-post .post-entry table td {
    padding: 14px;
    background: white;
    font-size: 16px;
}

.page-single-post .post-entry table tr:hover td {
    background: #f9fafb;
}

/* Séparateur horizontal */
.page-single-post .post-entry hr {
    margin: 40px 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

/* Image principale de l'article */
.page-single-post .post-single-image {
    max-width: 100%;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 3px;
}

.page-single-post .post-single-image figure {
    margin: 0;
    overflow: hidden;
}

.page-single-post .post-single-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: ;
    display: block;
}

/* ============================================
   CORRECTION DU RENDU DES ARTICLES
   ============================================ */

/* Règles générales pour éviter les débordements */
.page-single-post .post-entry * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.page-single-post .post-entry img,
.page-single-post .post-entry video,
.page-single-post .post-entry iframe,
.page-single-post .post-entry pre,
.page-single-post .post-entry code,
.page-single-post .post-entry table {
    max-width: 100% !important;
    overflow-x: auto !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Correction des éléments avec fond sombre et texte clair */
.page-single-post .article-title-dark {
    background: #1a202c !important;
    color: #ffffff !important;
    padding: 16px 24px;
    border-radius: 8px;
    margin: 24px 0;
    font-weight: 700;
    border-left: 4px solid #f85446;
}

/* Blocs de code avec fond sombre professionnel */
.page-single-post .article-code-block,
.page-single-post .article-code-dark {
    background: #1a202c !important;
    color: #e2e8f0 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    border: 1px solid #2d3748 !important;
    margin: 24px 0 !important;
    overflow-x: auto !important;
    font-family: 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.page-single-post .article-code-content {
    background: transparent !important;
    color: #e2e8f0 !important;
    padding: 0 !important;
    border: none !important;
    font-family: 'Monaco', 'Courier New', monospace !important;
}

/* Code inline avec style professionnel */
.page-single-post .article-code-inline {
    background: #f7fafc !important;
    color: #e53e3e !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-family: 'Monaco', 'Courier New', monospace !important;
    font-size: 14px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Sections avec fond sombre */
.page-single-post .article-section-dark {
    background: #2d3748 !important;
    color: #ffffff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    border-left: 4px solid #f85446 !important;
}

/* Amélioration des titres structurés */
.page-single-post .article-h1 {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    margin: 40px 0 24px 0 !important;
    line-height: 1.2 !important;
    border-bottom: 3px solid #f85446 !important;
    padding-bottom: 12px !important;
}

.page-single-post .article-h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin: 36px 0 20px 0 !important;
    line-height: 1.3 !important;
    border-left: 4px solid #f85446 !important;
    padding-left: 16px !important;
}

.page-single-post .article-h3 {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin: 32px 0 16px 0 !important;
    line-height: 1.4 !important;
}

.page-single-post .article-h4 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #718096 !important;
    margin: 28px 0 14px 0 !important;
    line-height: 1.4 !important;
}

/* Images d'exemple optimisées */
.page-single-post .article-image-example {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: 400px !important; /* Hauteur maximale uniforme */
    object-fit: cover !important; /* Maintient les proportions */
    border-radius: 8px !important;
    margin: 24px auto !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-sizing: border-box !important;
}

.page-single-post .article-image-example:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Paragraphe d'introduction amélioré */
.page-single-post .article-intro {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #1a202c !important;
    line-height: 1.7 !important;
    margin-bottom: 32px !important;
    padding: 20px !important;
    background: #f7fafc !important;
    border-left: 4px solid #f85446 !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Listes améliorées */
.page-single-post .article-list {
    margin: 24px 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.page-single-post .article-list li {
    position: relative !important;
    padding-left: 32px !important;
    margin-bottom: 16px !important;
    line-height: 1.7 !important;
    font-size: 17px !important;
    color: #333333 !important;
}

.page-single-post .article-list li::before {
    content: '▸' !important;
    position: absolute !important;
    left: 0 !important;
    color: #f85446 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

.page-single-post .article-list-numbered {
    margin: 24px 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
    counter-reset: item !important;
}

.page-single-post .article-list-numbered li {
    position: relative !important;
    padding-left: 40px !important;
    margin-bottom: 16px !important;
    line-height: 1.7 !important;
    font-size: 17px !important;
    color: #333333 !important;
    counter-increment: item !important;
}

.page-single-post .article-list-numbered li::before {
    content: counter(item) "." !important;
    position: absolute !important;
    left: 0 !important;
    color: #f85446 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    background: #f7fafc !important;
    padding: 4px 8px !important;
    border-radius: 50% !important;
    min-width: 24px !important;
    text-align: center !important;
}

/* Tableaux améliorés */
.page-single-post .article-table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 28px 0 !important;
    border-collapse: collapse !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    table-layout: fixed !important; /* Force les colonnes à s'adapter */
    box-sizing: border-box !important;
}

.page-single-post .article-table th {
    background: #f85446 !important;
    color: white !important;
    padding: 16px !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border: none !important;
}

.page-single-post .article-table td {
    padding: 16px !important;
    background: white !important;
    font-size: 16px !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.page-single-post .article-table tr:hover td {
    background: #f9fafb !important;
}

.page-single-post .article-table tr:last-child td {
    border-bottom: none !important;
}

/* ============================================
   CORRECTIONS RESPONSIVE POUR DÉBORDEMENTS
   ============================================ */

/* Responsive - corrections pour mobile */
@media (max-width: 768px) {
    .page-single-post .post-content {
        padding: 20px 12px !important;
        overflow-x: hidden !important;
    }
    
    .page-single-post .post-entry {
        overflow-x: hidden !important;
        word-wrap: break-word !important;
    }
    
    /* Images plus petites sur mobile */
    .page-single-post .post-entry img,
    .page-single-post .post-entry .article-image,
    .page-single-post .article-image-example {
        max-height: 250px !important;
    }
    
    /* Blocs de code plus petits */
    .page-single-post .post-entry pre,
    .page-single-post .article-code-block,
    .page-single-post .article-code-dark {
        font-size: 12px !important;
        padding: 15px !important;
    }
    
    /* Tableaux responsive */
    .page-single-post .post-entry table,
    .page-single-post .article-table {
        font-size: 14px !important;
    }
    
    .page-single-post .post-entry table th,
    .page-single-post .post-entry table td,
    .page-single-post .article-table th,
    .page-single-post .article-table td {
        padding: 8px !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .latest-news .post-featured-image img {
        height: 220px !important;
    }
    
    .page-single-post .post-content {
        padding: 30px 16px;
    }
    
    .page-single-post .post-entry {
        font-size: 17px;
    }
    
    .page-single-post .post-entry p {
        font-size: 17px;
        text-align: left;
    }
    
    .page-single-post .post-entry > p:first-of-type {
        font-size: 19px;
    }
    
    .page-single-post .post-entry h2 {
        font-size: 24px;
        padding-left: 16px;
    }
    
    .page-single-post .post-entry h3 {
        font-size: 22px;
    }
    
    .page-single-post .post-entry h4 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .latest-news .post-featured-image img {
        height: 200px !important;
    }
    
    .page-single-post .post-content {
        padding: 24px 16px;
    }
    
    .page-single-post .post-entry {
        font-size: 16px;
    }
    
    .page-single-post .post-entry p {
        font-size: 16px;
    }
    
    .page-single-post .post-entry > p:first-of-type {
        font-size: 18px;
    }
    
    .page-single-post .post-entry h2 {
        font-size: 22px;
    }
    
    .page-single-post .post-entry h3 {
        font-size: 20px;
    }
    
    .page-single-post .post-single-image {
        margin: 0 16px 30px;
        border-radius: 8px;
    }
    
    .page-single-post .post-single-image img {
        max-height: 400px;
    }
}

.mfp-close:focus-visible,
button.mfp-close:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}

/* Cacher les boutons de partage sur mobile uniquement */
@media (max-width: 768px) {
    .floating-social-share,
    #floating-social-share,
    .social-share-buttons {
        display: none !important;
    }
}

/* ============================================
   TEXT ANIMATIONS
   ============================================ */

.animate-text {
    animation: textPulse 2s infinite;
    display: inline-block;
}

@keyframes textPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   SECTION "LES DERNIÈRES INFORMATIONS"
   ============================================ */

.latest-info-header {
    text-align: left;
    margin-bottom: 40px;
    padding: 20px 0;
}

.latest-info-title {
    font-size: 40px !important;
    font-weight: 700 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin-bottom: 8px !important;
    position: relative !important;
    display: inline-block !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
}

.latest-info-part1 {
    color: #000000 !important;
    display: inline !important;
}

.latest-info-part2 {
    color: #E53935 !important;
    display: inline !important;
}

.latest-info-dot {
    position: absolute !important;
    top: 18px !important;
    right: -28px !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #E53935 !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

.latest-info-underline {
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, #FF5722 0%, #FFEB3B 100%);
    margin-bottom: 12px;
    border-radius: 1.5px;
}

.latest-info-subtitle {
    color: #757575;
    font-size: 18px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* Responsive - Latest Info */
@media (max-width: 768px) {
    .latest-info-title {
        font-size: 36px;
        font-weight: 500;
    }
    
    .latest-info-dot {
        width: 8px;
        height: 8px;
        right: -22px;
        top: 15px;
    }
    
    .latest-info-underline {
        width: 120px;
        height: 3px;
    }
    
    .latest-info-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .latest-info-title {
        font-size: 28px;
        font-weight: 500;
    }
    
    .latest-info-dot {
        width: 6px;
        height: 6px;
        right: -18px;
        top: 12px;
    }
    
    .latest-info-underline {
        width: 100px;
        height: 2px;
    }
    
    .latest-info-subtitle {
        font-size: 14px;
    }
}

/* ============================================
   SECTION "EXPERTS EN..."
   ============================================ */

.experts-text {
    font-size: 28px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #2d2d2d !important;
    margin-bottom: 20px !important;
    text-shadow: none !important;
    letter-spacing: -0.01em !important;
    position: relative !important;
}

.experts-text::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E53935 0%, #FFEB3B 100%);
    border-radius: 2px;
}

.experts-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E53935 0%, #FFEB3B 100%);
    border-radius: 2px;
}

.highlight-red {
    color: #E53935 !important;
    font-weight: 700 !important;
}

/* Responsive - Experts Text */
@media (max-width: 768px) {
    .experts-text {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 576px) {
    .experts-text {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    
    .experts-text::before,
    .experts-text::after {
        width: 40px;
        height: 2px;
    }
}

/* ============================================
   FOOTER MODERNE
   ============================================ */

.main-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 35px 0 10px 0;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF5722 0%, #FFEB3B 100%);
}

.mega-footer {
    padding: 25px 0;
    position: relative;
    z-index: 2;
}

.footer-section {
    margin-bottom: 25px;
}

.footer-section h4 {
    color: #FF5722;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #FF5722;
}

.footer-about ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-about ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-about ul li i {
    color: #FF5722;
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-about ul li a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-about ul li a:hover {
    color: #FFEB3B !important;
    transform: translateX(5px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links li a {
    color: #cccccc !important;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
}

.footer-links li a:hover {
    color: #FF5722 !important;
    padding-left: 10px;
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #FF5722;
}

.footer-links li a:hover::before {
    opacity: 1;
    left: -10px;
}

.footer-copyright {
    background: transparent;
    padding: 8px 0;
    position: relative;
    margin-top: -10px;
}

.footer-copyright-text p {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cccccc !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: #FF5722;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

.social-link i {
    font-size: 18px;
}

/* Newsletter Button */
.newsletter-signup {
    margin-top: 15px;
}

.btn-newsletter {
    background: linear-gradient(135deg, #FF5722 0%, #E53935 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-newsletter:hover {
    background: linear-gradient(135deg, #E53935 0%, #FF5722 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

/* Responsive - Footer */
@media (max-width: 768px) {
    .main-footer {
        margin-top: 35px;
        padding: 25px 0 8px 0;
    }
    
    .mega-footer {
        padding: 20px 0;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .main-footer {
        margin-top: 25px;
        padding: 20px 0 6px 0;
    }
    
    .mega-footer {
        padding: 15px 0;
    }
    
    .footer-section {
        margin-bottom: 15px;
    }
    
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

/* ==========================================
   SYSTÈME DE PAGINATION DES ARTICLES
   ========================================== */

/* Pagination générale */
.article-pagination {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.page-indicator {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

.word-count {
    color: #6c757d;
    font-size: 14px;
}

/* Navigation de pagination */
.pagination-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pagination-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.pagination-btn i {
    margin: 0 8px;
    font-size: 14px;
}

.pagination-prev {
    margin-right: auto;
}

.pagination-next {
    margin-left: auto;
}

/* Numéros de pages */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    margin: 0 20px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.pagination-number:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    border-color: #007bff;
    transform: translateY(-2px);
}

.pagination-current {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    font-weight: 600;
}

.pagination-dots {
    color: #6c757d;
    font-weight: 600;
    padding: 0 8px;
}

/* Barre de progression */
.pagination-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

/* Styles pour différents thèmes */
.pagination-simple {
    background: #ffffff;
    border: 1px solid #dee2e6;
    padding: 20px;
}

.pagination-simple .pagination-btn {
    background: #6c757d;
}

.pagination-simple .pagination-btn:hover {
    background: #545b62;
}

.pagination-simple .pagination-current {
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.pagination-elegant {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.pagination-elegant .page-indicator,
.pagination-elegant .word-count {
    color: rgba(255, 255, 255, 0.9);
}

.pagination-elegant .pagination-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.pagination-elegant .pagination-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.pagination-elegant .pagination-number {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.pagination-elegant .pagination-number:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.pagination-elegant .pagination-current {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.pagination-elegant .progress-bar {
    background: rgba(255, 255, 255, 0.2);
}

.pagination-elegant .progress-text {
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .article-pagination {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pagination-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .pagination-numbers {
        margin: 0;
        order: 2;
    }
    
    .pagination-btn {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .pagination-prev,
    .pagination-next {
        margin: 0;
    }
    
    .pagination-progress {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .progress-text {
        order: -1;
    }
}

@media (max-width: 480px) {
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .pagination-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .page-indicator {
        font-size: 14px;
    }
    
    .word-count {
        font-size: 12px;
    }
}

/* Animation d'apparition */
.article-pagination {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   STYLES POUR LE CONTENU PAGINÉ
   ========================================== */

/* Styles ABSOLUMENT MINIMAUX - AUCUN changement de police */
.post-content .page-content {
    margin: 0;
    padding: 0;
}

.post-content .page-indicator {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    text-align: center;
    /* AUCUNE PROPRIÉTÉ DE POLICE */
}

.post-content .page-indicator p {
    margin: 0;
    /* AUCUNE PROPRIÉTÉ DE POLICE */
}

.post-content .page-indicator strong {
    /* AUCUNE PROPRIÉTÉ DE POLICE */
}

/* Le contenu paginé utilise EXACTEMENT les styles par défaut */
.post-content .page-text {
    /* AUCUN STYLE - utilise les styles par défaut */
}

/* ==========================================
   DESIGN MODERNE - SECTION TITRES
   ========================================== */

/* Styles pour le titre moderne "Les Dernières Informations •" */
.latest-news.related-articles .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.latest-news.related-articles .modern-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    display: inline-block;
}

.latest-news.related-articles .title-part-1 {
    color: var(--primary-color);
    font-weight: 700;
}

.latest-news.related-articles .title-part-2 {
    color: #e53935;
    font-weight: 700;
}

.latest-news.related-articles .title-dot {
    color: #e53935;
    font-size: 2rem;
    margin-left: 8px;
}

.latest-news.related-articles .title-underline {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    margin: 15px auto 25px auto;
    border-radius: 2px;
}

.latest-news.related-articles .subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .latest-news.related-articles .modern-title {
        font-size: 2.2rem;
    }
    
    .latest-news.related-articles .title-underline {
        width: 150px;
    }
    
    .latest-news.related-articles .subtitle {
        font-size: 1rem;
    }
}

/* ==========================================
   DESIGN MODERNE - INDICATEUR DE PAGE
   ========================================== */

.page-indicator-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.page-indicator-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ffd23f 100%);
}

.page-indicator-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.page-current {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

.page-separator {
    color: #6c757d;
    font-size: 18px;
    font-weight: 400;
}

.page-total {
    color: #6c757d;
    font-size: 18px;
    font-weight: 600;
}

.page-progress {
    flex: 1;
    min-width: 150px;
}

.progress-bar-mini {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill-mini {
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill-mini::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.page-stats {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.words-info {
    background: rgba(108, 117, 125, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

/* Design pour article terminé */
.article-completed {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #c3e6cb;
}

.completion-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.article-completed h3 {
    color: #155724;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.article-completed p {
    color: #155724;
    font-size: 16px;
    margin: 0;
    opacity: 0.8;
}

/* Responsive pour indicateur moderne */
@media (max-width: 768px) {
    .page-indicator-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .page-progress {
        width: 100%;
        min-width: unset;
    }
    
    .page-current {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .page-separator,
    .page-total {
        font-size: 16px;
    }
    
    .words-info {
        font-size: 12px;
/* Table des matières retirée – retour au design original */

