/* ========================================
   CodexMania Theme Atman TV - THÈME WORDPRESS
   ======================================== */

/*
.site div {  outline:1px solid red; }
.site div div { outline-color:green; }
.site div div div{ outline-color:red; }
.site div div div div{ outline-color:green; }
 */
/*
BREAKPOINTS RESPONSIVE STANDARDISÉS (Bootstrap Standard) :
- Très petits écrans : ≤ 597px (optimisé pour petits mobiles)
- Mobile : ≤ 767px (optimisations complètes appliquées)
- Tablette : 768px - 991px (anciennement 991.98px)
- Grand écran : ≥ 992px

Tous les media queries ont été standardisés sur ces 4 breakpoints
pour une cohérence parfaite sur l'ensemble du site.
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Oswald:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/*
Theme Name: CodexMania Theme Atman TV
Theme URI: https://atman-tv.com
Author: CodexMania
Author URI: https://codexmania.com
Description: Thème WordPress moderne et personnalisable pour Atman TV - Compatible WPGlobus
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codexmania-theme-atman-tv
*/
.last-article-site .entry-title-dernier-article  {
    font-size: 1.25rem !important;
    color: var(--black) !important;
    line-height: 1.25rem !important; /* Même hauteur que la taille de police : très serré */
}
.last-article-site .entry-title-dernier-article a {
    font-size: 1.25rem !important;
    color: var(--black) !important;
    line-height: 1.25rem !important; /* Même hauteur que la taille de police : très serré */
}
.last-article-site .univers-color {
    font-size: 1.25rem !important;
}

.entry-meta img {
    width: 20px !important;
    height: 20px !important;
    object-fit: cover !important;
    display: inline-block !important;
    vertical-align: middle !important;
}


/* ========================================
   VARIABLES CSS GLOBALES
   ======================================== */

:root {
    /* ===== COULEURS DE BASE ===== */
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #666666;
    --border-gray: #e0e0e0;
    --background-gray: #f5f5f5;
    --white: #ffffff;
    
    /* ===== COULEURS PRINCIPALES ===== */
    --primary-color: #1a1a1a;
    --color-primary: #000;
    
    /* ===== COULEURS REDPHONE ===== */
    --font-red-leger: #ff6666;
    --font-red-fonce: #b71c1c;
    --bg-redphone-leger: #ffffff;
    --bg-redphone-fonce: #f9f9f9;
    
    /* ===== COULEURS CONFIDENTIELS ===== */
    --font-confidentiels-leger: #856404;
    --font-confidentiels-fonce: #533f03;
    --bg-confidentiels-leger: #fff3cd;
    --bg-confidentiels-fonce: #ffeaa7;
    
    /* ===== COULEURS MEME TAGS ===== */
    --font-meme-tags-leger: #17a2b8;
    --font-meme-tags-fonce: #138496;
    --bg-meme-tags-leger: #d1ecf1;
    --bg-meme-tags-fonce: #bee5eb;
    
    /* ===== COULEURS POPULAR POSTS ===== */
    --font-popular-leger:  #666666;
    --font-popular-fonce: #666666;
    --bg-popular-leger: #d4edda;
    --bg-popular-fonce: #c3e6cb;
    
    /* ===== RÉSEAUX SOCIAUX ===== */
    --facebook-color: #3b5998;
    --facebook-hover: #1877f2;
    --x-color: #000000;
    --x-hover: #333333;
    --youtube-color: #ff0000;
    --youtube-hover: #cc0000;
    --instagram-color: #e4405f;
    --instagram-hover: #c13584;
    --tiktok-color: #000000;
    --tiktok-hover: #333333;
    --linkedin-color: #0077b5;
    --copy-link-color: #cae7ec;
    --linkedin-hover: #005983;
    
    /* ===== TYPOGRAPHIE ===== */
    --font-default: 'Raleway', sans-serif;
    --font-logo: 'Oswald', sans-serif;
    --font-menu: 'Poppins', sans-serif;
    
    /* ===== BORDURES ET TRANSITIONS ===== */
    --border-radius: 1px;
    --transition-normal: 0.3s ease;
    
    /* ===== WIDGETS ===== */
    --module-hover-bg: #f5f5f5;
    --module-text-color: #000000;
    
    /* ===== ANIMATIONS ===== */
    --scroll-speed: 15s;


}

* {
   /* white-space: nowrap !important;*/
}

a {
    color: var(--black) !important;
    text-decoration: none !important;
}

.deux-menus-mobile {
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
    padding: 2px;
}


/* ========================================
   RÉSEAUX SOCIAUX - STYLES CENTRALISÉS
   ======================================== */

/* ========================================
   RÉSEAUX SOCIAUX - SUIVEZ-NOUS (Footer)
   ======================================== */

/* Conteneur principal des liens sociaux */
.social-links-row {
    margin: 2rem 0;
}

/* Styles de base pour tous les liens réseaux sociaux */
.reseausocial {
    display: inline-block;
    text-decoration: none;
    transition: var(--transition-normal);
    margin: 0 0.5rem;
}

/* Icônes des réseaux sociaux */
.reseausocial img {
    max-width: 55px !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    padding: 0.5rem !important;
    transition: var(--transition-normal) !important;
    object-fit: contain !important;
    background-color: transparent !important;
    mix-blend-mode: multiply !important;
}



/* Effets hover pour chaque réseau social */
.reseausocial:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Couleurs spécifiques par réseau social */
.reseausocial.facebook img {
    background-color: var(--facebook-color) !important;
    mix-blend-mode: normal !important;
}

.reseausocial.facebook:hover img {
    background-color: var(--facebook-hover) !important;
    box-shadow: 0 4px 8px rgba(59, 89, 152, 0.3) !important;
}

.reseausocial.x img {
    background-color: var(--x-color) !important;
    mix-blend-mode: normal !important;
}

.reseausocial.x:hover img {
    background-color: var(--x-hover) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.reseausocial.youtube img {
    background-color: var(--youtube-color) !important;
    mix-blend-mode: normal !important;
}

.reseausocial.youtube:hover img {
    background-color: var(--youtube-hover) !important;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3) !important;
}

.reseausocial.instagram img {
    background-color: var(--instagram-color) !important;
    mix-blend-mode: normal !important;
}

.reseausocial.instagram:hover img {
    background-color: var(--instagram-hover) !important;
    box-shadow: 0 4px 8px rgba(193, 53, 132, 0.3) !important;
}

.reseausocial.tiktok img {
    background-color: var(--tiktok-color) !important;
    mix-blend-mode: normal !important;
}

.reseausocial.tiktok:hover img {
    background-color: var(--tiktok-hover) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}


.reseausocial.linkedin img {
    background-color: var(--linkedin-color) !important;
    mix-blend-mode: normal !important;
}

.reseausocial.linkedin:hover img {
    background-color: var(--linkedin-hover) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Style pour l'icône de copie de lien
.reseausocial.copy-link img {
    background-color: var(--copy-link-color) !important;
    mix-blend-mode: normal !important;
}


.reseausocial.copy-link:hover img {
    background-color: #7b8f93 !important;
    box-shadow: 0 4px 8px rgba(200, 200, 255, 0.8) !important;
}
*/
/* Styles spécifiques pour tous les navigateurs mobiles */
@media (max-width: 767px) {
    .reseausocial {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Ajuster la taille des icônes sur mobile */
    .reseausocial img {
        width: 45px !important;
        height: 45px !important;
    }
}

/* ========================================
   RÉSEAUX SOCIAUX - PARTAGER (Articles)
   ======================================== */

/* Conteneur des boutons de partage */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Styles de base pour les boutons de partage */
.partager {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Couleurs spécifiques pour chaque bouton de partage */


.partager.facebook:hover {
   
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 89, 152, 0.3);
}


.partager.twitter:hover {

    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(29, 161, 242, 0.3);
}

.partager.copy-site-link:hover {

    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(227, 124, 231, 0.3);
}

/* Style pour l'icône de copie de lien
.reseausocial.copy-link img {
    background-color: var(--copy-link-color) !important;
    mix-blend-mode: normal !important;
}


.reseausocial.copy-link:hover img {
    background-color: #7b8f93 !important;
    box-shadow: 0 4px 8px rgba(200, 200, 255, 0.8) !important;
}
*/

/* Icônes dans les boutons de partage */
.partager i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Responsive pour les réseaux sociaux */
@media (max-width: 767px) {
    .social-links-row {
        margin: 1rem 0;
    }

    .reseausocial img {
        max-width: 45px !important;
        width: 45px !important;
        height: 45px !important;
        padding: 0.4rem !important;
        -webkit-appearance: none !important;
        -webkit-border-radius: 50% !important;
        border-radius: 50% !important;

    }
    
    .share-buttons {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .partager {
        padding: 0.0rem 0.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .reseausocial img {
        width: 40px !important;
        height: 40px !important;
    }
}
    
    .partager {
        padding: 0.0rem 0.2rem;
        font-size: 0.75rem;
    }
    
    .partager i {
        margin-right: 0.3rem;
        font-size: 0.9rem;
    }


/* ========================================
   STYLES UNIFORMES POUR TOUS LES TITRES D'ARTICLES
   ======================================== */

/* mouter de recherche */
.modal-content {
    position: relative !important;                            /* Positionnement relatif */
    display: flex !important;                                 /* Flexbox */
    flex-direction: column !important;                        /* Aligner verticalement */
    width: 100% !important;                                   /* Largeur pleine */
    color: var(--bs-modal-color) !important;                  /* Couleur texte */
    pointer-events: auto !important;                          /* Clics activés */
    background-color: var(--bs-modal-bg) !important;          /* Fond Bootstrap */
    background-clip: padding-box !important;                  /* Clip de fond */
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color) !important; /* Bordure Bootstrap */
    border-radius: var(--bs-modal-border-radius) !important;  /* Coins arrondis */
    outline: 0 !important;                                    /* Pas de contour focus */
}

/* Styles génériques des champs de formulaire du FRONT UNIQUEMENT
   On les limite au conteneur principal du site (.site) pour ne JAMAIS
   toucher à l'admin ni au customizer WordPress. */
.site button,
.site input,
.site optgroup,
.site select,
.site textarea {
    margin: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    padding: 0.5em !important;

    /* border: 1px solid gray !important;           Bordure grise forcée */
    border-radius: 4px !important;              /* Coins arrondis forcés */
    background-color: var(--white) !important;          /* Fond blanc standard */
    color: var(--black) !important;                     /* Couleur du texte */
    box-sizing: border-box !important;          /* Évite les débordements */
    outline: none !important;                   /* Supprime l'outline */
    appearance: none !important;                /* Supprime les styles natifs navigateur */
}


.chapeau {
   /* color: blue !important;*/
    font-size: 0.9em !important;
    line-height: 1.3 !important;
}

.title-single {
    font-size: 2em !important;            /* Double la taille par défaut */
    font-weight: bold !important;        /* Gras si besoin */
    line-height: 1.4 !important;         /* Hauteur de ligne plus lisible */
    margin-bottom: 0.5em !important;     /* Espacement sous le titre */
}

/* Style global pour tous les titres d'articles*/
.entry-title, .entry-title a {
    color: #000000 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: var(--font-default) !important;
    text-decoration: none !important;
    transition: var(--transition-normal) !important;
}

/* Style hover uniforme pour tous les liens de titres */
.entry-title a:hover,
.title-overlay .entry-title a:hover {
    color: var(--medium-gray) !important; /* Couleur hover uniforme */
    text-decoration: none !important; /* Pas de soulignement au hover */
}

/* Style uniforme pour tous les titres de widgets */
.widget-title {
    font-size: 1.3em !important;
    font-family: var(--font-logo);
    margin-bottom: 1rem;
    font-weight: bold;
    color: var(--medium-gray);
}

/* Lien rubrique cliquable dans le titre */
.widget-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-title-link:hover {
    color: var(--font-red-fonce, #c0392b);
    text-decoration: none;
}

/* Classe CSS pour les titres d'infographies */
.entry-title-inforgaphie {
    font-size: 2em !important;
    font-weight: bold !important;
    color: var(--black) !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    font-family: var(--font-default) !important;
    text-align: center !important;
}

/* Styles responsives pour les titres supprimés - remplacés par les styles uniformes globaux */

.univers-color,
.univers-color a {
    color: red !important;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 50%; /* rond si appliqué à un élément de type bloc ou inline-block */
}


/* Forcer tous les images à la une à avoir un border-radius de 10px */
.post-thumbnail img,
.article-thumbnail img,
.featured-thumbnail img,
.card-img-top img,
.summary picture img,
.category-expertise .article-image img,
.mod-category-5-articles .article-item img,
.col-12.col-md-6 .article-item img,
.single .featured-image img,
.single .ratio.ratio-16x9,
.single .ratio.ratio-16x9 iframe,
.gwa-emission-card-img {
    border-top-left-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}





.category-title-container {
    position: relative;
    width: 100%;
}

.category-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.category-title {
    font-size: 1.3em !important;
    font-family: var(--font-logo);
    font-weight: bold;
    color: var(--medium-gray);
    margin: 0;
    white-space: nowrap;
}

.category-title::first-letter {
    text-transform: uppercase;                   /* Majuscule à la 1re lettre */
}

.category-title-row .horizontal-line {
    flex: 1;
    height: 1px;
    background-color: var(--border-gray);
    min-width: 50px;
}

.category-title-row .virgule img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(100%) saturate(7490%) hue-rotate(0deg) brightness(100%) contrast(100%);
    width: auto;
    display: block;
}

.entry-virgule { position: absolute; bottom: -2.5rem; left: 0; right: 0; z-index: 9999 !important; text-align: center; pointer-events: none; }

.entry-virgule img {
    position: relative; width: 3.5rem; max-width: 100% !important; height: auto !important;
    object-fit: cover; object-position: center; z-index: 9999 !important; pointer-events: none;
}


/* XS ≤ 575.98px
@media (max-width: 575.98px) {
    .entry-virgule { bottom: 4rem !important; }
    .entry-virgule img { width: 3rem!important; }
}
*/
/* SM ≥ 576px et < 768px
@media (min-width: 576px) and (max-width: 767.98px) {
    .entry-virgule { bottom: -1.75rem !important; }
    .entry-virgule img { width: 3.5rem; }
}
*/
/* MD ≥ 768px et < 992px
@media (min-width: 768px) and (max-width: 991.98px) {
    .entry-virgule { bottom: -2.8125rem !important; }
    .entry-virgule img { width: 4.5rem; }
}
*/
/* LG ≥ 992px et < 1200px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .entry-virgule { bottom: -3.125rem !important; }
    .entry-virgule img { width: 5rem; }
}

/* XL ≥ 1200px et < 1400px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .entry-virgule { bottom: -3.25rem !important; }
    .entry-virgule img { width: 5.5rem; }
}

/* XXL ≥ 1400px */
@media (min-width: 1400px) {
    .entry-virgule { bottom: -3.5rem !important; }
    .entry-virgule img { width: 6rem; }
}







/***************************** Reset global des border-radius */
* {
    border-radius: var(--border-radius) !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Supprimer les bordures arrondies des widgets */
.widget,
.widget *,
.widget-redphone,
.widget-redphone *,
.widget-module-confidentiels,
.widget-module-confidentiels *,
.widget.widget_gwa_confidentiels_widget,
.widget.widget_gwa_confidentiels_widget *,
.widget.widget_gwa_redphone_widget,
.widget.widget_gwa_redphone_widget *,
.widget.widget_gwa_meme_tags_widget,
.widget.widget_gwa_meme_tags_widget *,
.widget.widget_gwa_widget_html_libre,
.widget.widget_gwa_widget_html_libre * {
    /*border-radius: 0 !important;*/
}

/***************************** Styles de base */
body {
    font-family: var(--font-default);
    line-height: 1.5;
    font-size: 14px !important;
    margin: 0;
    padding: 0;
    color: var(--color-primary);
    background-color: var(--white);
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/*****************************  Header */
.site-header {
    width: 100%;
}

.menu-bar {
    width: 100%;
}

/*****************************  Menu principal */
.main-menu {
    flex-grow: 1;
}

.main-menu .nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.main-menu .nav-link {
    font-family: var(--font-menu);
    color: var(--black);
    font-weight: 400;
    padding: 0.5rem 0 !important;
    position: relative;
    font-size: 0.7rem;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-menu .nav-link:hover {
    color: var(--dark-gray);
}

.main-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--black);
    transition: width 0.3s ease;
}

.main-menu .nav-link:hover::after {
    width: 100%;
}

/* Anciens styles du moteur de recherche supprimés - remplacés par le design moderne */



/***************************** Logo et branding */



.site-title {
    font-weight: 900;
    margin: 0;
    font-size: 5rem;
    font-family: var(--font-logo);
    letter-spacing: 1px;
    color: var(--black) !important;
}

.site-title a {
    color: var(--black) !important;
    text-decoration: none;
}



/*****************************  Slogan et éléments de langue */
.site-description {
    position: relative;
   /* padding: 1.5rem 0;
    min-height: 60px;*/
    width: 100%;
}

.language-elements {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    /*gap: 2rem;*/
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}




/***************************** Lignes de séparation */


.language-line {
    height: 1px;
    background-color: var(--border-gray);
    position: relative;
    flex-grow: 1;
    min-width: 3em;
    max-width: 10em;
}

.line-before-fr { margin-right: 15px; }
.line-between-fr-search { margin: 0 15px; }
.line-between-search-en { margin: 0 15px; }
.line-after-en { margin-left: 15px; }

/***************************** Liens de langue */
.language-link {
    position: relative;
    z-index: 2;
    background-color: var(--white);
    padding: 15px;
    transition: transform 0.3s ease;
}

.language-link:hover {
    transform: scale(1.1);
}

/* Style pour l'icône de recherche dans les éléments de langue */
.language-elements .js-search {
    position: relative;
    z-index: 2;
    background-color: var(--white);
    padding: 15px;
    transition: transform 0.3s ease;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-elements .js-search:hover {
    transform: scale(1.1);
    color: var(--dark-gray);
}

.language-elements .js-search .menu-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.flag-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/***************************** Menu secondaire */
.secondary-menu {
    margin-bottom: 0rem;
}

/* Menu secondaire desktop */
.secondary-menu.d-none.d-lg-block .nav {
    gap: 2rem;
    align-items: center;
}

.secondary-menu.d-none.d-lg-block .nav-link {
    color: var(--black);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.secondary-menu.d-none.d-lg-block .nav-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.secondary-menu.d-none.d-lg-block .nav-link span {
    font-size: 0.65rem;
    font-weight: 500;
}

.secondary-menu.d-none.d-lg-block .nav-link:hover {
    color: var(--dark-gray);
    transform: translateY(-2px);
}

/* Menu secondaire mobile */
.secondary-menu.d-lg-none .nav {
    gap: 0.5rem;
    align-items: center;
}

.secondary-menu.d-lg-none .nav-link {
    color: var(--black);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.3rem;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.secondary-menu.d-lg-none .nav-link i {
    font-size: 1.1rem;
    margin-bottom: 0;
    margin-right: 0.3rem;
}

.secondary-menu.d-lg-none .nav-link span {
    font-size: 0.7rem;
    font-weight: 500;
    display: none;
}

.secondary-menu.d-lg-none .nav-link:hover {
    color: var(--dark-gray);
    transform: none;
}

/***************************** Modules */
.widget-redphone {
    background-color: var(--white);
    padding: 0;
    height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /*border: 2px solid var(--border-gray);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);*/
}

.widget-redphone .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: transparent;
}

/* Widget RedPhone */
.widget-redphone .card[data-scroll-speed], 


.widget-redphone .card[data-scroll-speed="5"],
.module-2 .card[data-scroll-speed="5"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget-redphone .card[data-scroll-speed="10"],
.module-2 .card[data-scroll-speed="10"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget-redphone .card[data-scroll-speed="15"],
.module-2 .card[data-scroll-speed="15"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget-redphone .card[data-scroll-speed="20"],
.module-2 .card[data-scroll-speed="20"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget-redphone .card[data-scroll-speed="25"],
.module-2 .card[data-scroll-speed="25"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget-redphone .card[data-scroll-speed="30"],
.module-2 .card[data-scroll-speed="30"] {
    /* La vitesse sera gérée par JavaScript */
}

@keyframes scrollLinks {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.widget-redphone .links-container {
    animation: scrollLinks var(--scroll-speed, 15s) linear infinite !important;
    animation-play-state: running !important;
    position: relative;
    width: 100%;
}

.widget-redphone .links-container:hover,
.widget-redphone .links-container:focus-within {
    animation-play-state: paused !important;
}

.widget-redphone .module-link {
    padding: 15px 20px;
    text-decoration: none !important;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--border-gray);
}

.widget-redphone .module-link:last-child {
    border-bottom: none;
}

.widget-redphone .module-link:hover,
.widget-redphone .module-link:focus {
    transform: translateX(5px);
    outline: none !important;
}

.widget-redphone .module-link.font-red-leger {
    color: var(--font-red-leger) !important;
    background-color: var(--bg-redphone-leger) !important;
}

.widget-redphone .module-link.font-red-fonce {
    color: var(--font-red-fonce) !important;
    background-color: var(--bg-redphone-fonce) !important;
}

.widget-redphone .module-link:hover .module-titre,
.widget-redphone .module-link:focus .module-titre {
    text-decoration: underline;
}

.widget-redphone .module-titre {
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    color: var(--black);
    font-weight: 600;
    letter-spacing: 0.5px;
}





/* Responsive - Déplacé vers responsive.css */

/* Ajustements pour la barre latérale */
.widget-area {
    background-color: var(--background-gray);
}

.widget {
    margin-bottom: 0.3rem;
}

/* Ajustements pour les articles */
article {
    /*margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);*/
}

.post-thumbnail {
    margin-bottom: 1rem;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
}

.entry-content {
    margin-bottom: 1rem;
}



/* Ajustements pour la pagination */
.pagination .page-numbers {
    color: var(--black);
    border-color: var(--border-gray);
}

.pagination .page-numbers.current {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.pagination .page-numbers:hover:not(.current) {
    background-color: var(--background-gray);
    color: var(--dark-gray);
}

/* Contenu principal */
.site-main {
    padding: 2rem 0;
}



.post-thumbnail {
    margin-bottom: 1rem;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
}

.entry-content {
    margin-bottom: 1rem;
}




.single .entry-meta a {
    pointer-events: none;           /* Désactive le clic */
    text-decoration: none !important;
    cursor: default;                /* Curseur normal, pas en forme de main */
    --bs-text-opacity: 1;
    color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important;
}


.single .entry-meta span {
    /*margin-right: 1rem;*/
}

/* Pagination */
.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid var(--border-gray);
    text-decoration: none;
    color: var(--black);
}

.pagination .page-numbers.current {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* Pied de page */
.site-footer {
    background-color: var(--background-gray);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-gray);
}

.site-info {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-menu li {
    display: inline-block;
    margin: 0 1rem;
}

.footer-menu a {
    color: var(--black);
    text-decoration: none;
}

.footer-menu a:hover {
    text-decoration: underline;
}



/* Custom Styles */


.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}









/* Article Cards */
.card {
    height: 100%;
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --bs-card-border-width: 0 !important;
}

.card:hover {
    transform: translateY(-5px);
}
.card-title {
    font-weight: bold !important;
}

.card-img-top img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.widget.widget_gwa_module_confidentiels_widget .card {
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1) !important;
}

/* Footer */
.footer-title {
    color: var(--white);
    margin-bottom: 1.5rem;
}









/* Menu du footer */
.footer-nav-row {
    border-bottom: 1px solid var(--border-gray);
    padding: 1.5rem 0;
}

.footer-nav .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav .nav-link,
.footer-nav a,
.footer-nav a:link,
.footer-nav a:visited,
.footer-nav a:hover,
.footer-nav a:active {
    font-family: var(--font-menu);
    color: var(--black) !important;
    padding: 0.5rem 1rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.footer-nav .nav-link:hover,
.footer-nav a:hover {
    color: var(--black) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

/* Copyright */
.copyright-row {
    color: var(--medium-gray);
    font-size: 0.7rem;
    padding: 1.5rem 0;
    text-align: center;
}

/* Responsive du footer */
@media (max-width: 767px) {
    .footer-nav .nav {
        gap: 0rem;
    }

    .footer-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }


}

/* Styles pour les lignes de langue */
.language-line {
    height: 1px;
    background-color: var(--border-gray);
    position: relative;
    flex-grow: 1;
    min-width: 3em;
    max-width: 10em;
}

/* Ligne avant l'icône française */
.line-before-fr {
    margin-right: 15px;
}

/* Ligne entre icône française et slogan */
.line-between-fr-slogan {
    margin: 0 15px;
}

/* Ligne entre slogan et icône anglaise */
.line-between-slogan-en {
    margin: 0 15px;
}

/* Ligne après l'icône anglaise */
.line-after-en {
    margin-left: 15px;
}

/* Styles pour les liens de langue */
.language-link {
    position: relative;
    z-index: 2;
    background-color: var(--white);
    padding: 0 10px;
    transition: transform 0.3s ease;
}

.language-link:hover {
    transform: scale(1.1);
}

/* Style pour le slogan */

/* Ligne verticale continue */
.vertical-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: var(--border-gray);
}





/* Styles pour les liens de langue */
.language-link {
    background-color: var(--white);
    padding: 1px;
    transition: transform 0.3s ease;
}

.language-link:hover {
    transform: scale(1.1);
}

/* Dernier article */
.last-article {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
    height: auto;
    display: flex;
    flex-direction: column;
    /*margin-bottom: 2rem;*/
    width: 100%; /* S'assurer qu'il reste dans sa colonne */
}
/***********************************************************************/
/** background dernier article du site *********************************/
/***********************************************************************/
.last-article-site .bg-article {
    background-size: 90% 95% ; /* marges horizontales ET verticales */
    background-position: center center;
    background-repeat: no-repeat;

    width: 100%;
    padding: 3rem 1rem;
    border-radius: 0.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    overflow: hidden;
    min-height: 280px;

}

/* TABLETTES (≤ 992px) */
@media (max-width: 992px) {
    .last-article-site .bg-article {
        padding: 2rem 1rem;
        min-height: 250px;
        background-size: 93% 120% !important;
    }
}

/* TÉLÉPHONES (≤ 576px) */
@media (max-width: 576px) {
    .last-article-site .bg-article {
        padding: 1.5rem 0.8rem;
        min-height: 250px;
        background-size: 90% 120% !important;
    }
}

/* iPhone 393px */
@media (max-width: 393px) {
    .last-article-site .bg-article {
        padding: 1.2rem 0.5rem;;
        min-height: 290px;
        background-size: 90% 120% !important;
    }
}

/***********************************************************************/

.featured-article {
    display: flex;
    flex-direction: column;
    height: 100%;
    /*width: 100%;  S'assurer qu'il reste dans sa colonne */
}
.first-content {
    margin-top: -100px !important;
    z-index: 99 !important;
    background-color: white !important;
    padding: 2rem !important;
    margin: 4em;
    background-color: rgba(255, 255, 255, 0.2) !important; /* fond blanc translucide */
    border: 1px solid var(--border-gray) !important;
    border-radius: 10px !important; /* coins arrondis */
    display: flex;
    flex-direction: column;
    height: 100%;
    /*width: 100%;  S'assurer qu'il reste dans sa colonne */
}

.article-thumbnail {
    width: 100%;
    position: relative;
    /* padding-top: 56.25%;  Ratio 16:9 */
}

.article-thumbnail img {
    /*position: absolute;*/
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.article-thumbnail .entry-virgule img {
    /*position: absolute;*/
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Titre superposé sur l'image */
.title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    z-index: 2;
}


.article-content {
    padding: 2% 2% 0 2%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.last-article-site .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8% 2% 0 2%;
    align-items: center; /* <-- centre horizontalement les éléments enfants */
}
.last-article-categorie .article-content{
    padding: 5% 2% 2% 2% !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0 10%;
    /*background-color: #f5f5f5;*/
}
/*
.last-article-categorie .entry-content {
    border-left: 3px solid #ff0000 !important;
    padding-left: 1rem !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
 
}
*/
.last-article-categorie .entry-content {
    border-inline-start: 3px solid #ff0000 !important;
    padding-inline-start: 1rem !important;
    margin-inline-start: 0 !important;
    box-sizing: border-box !important;
}


.last-article-site .entry-title A {
    font-size: 1.5em !important; /* ou 32px, ou toute autre unité */
    font-weight: bold !important; /* optionnel : pour rendre le titre plus visible */
    align-items: center;
}



/* === FORCING margin-top BASED ON SCREEN SIZE THRESHOLD (991px) === */

/* ✅ Écrans PLUS GRANDS que 991px → margin-top: 2rem */
@media (min-width: 992px) {
    .last-article-site .article-content {
        margin-top: 2rem !important;
    }
}

/* ✅ Écrans INFÉRIEURS ou ÉGAUX à 991px → margin-top: 0rem */
@media (max-width: 991px) {
    .last-article-site .article-content {
        margin-top: 0rem !important;
    }
}




.entry-meta {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-content {
    margin-bottom: 1rem;
}

/* Footer */
.footer-nav .nav-link {
    color: var(--black);
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-nav .nav-link:hover {
    color: var(--black);
    text-decoration: none;
}



/* Boutons de recherche et menu mobile */
.btn-link {
    color: var(--black);
}

.btn-link:hover {
    color: var(--dark-gray);
}



/* Menu secondaire */
.secondary-menu .nav {
    gap: 1rem;
}

.secondary-menu .nav-link {
    color: var(--bs-body-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.secondary-menu .nav-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.secondary-menu .nav-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

.secondary-menu .nav-link:hover {
    color: var(--bs-primary);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE - MOBILE (≤ 767px)
   ======================================== */
@media (max-width: 767px) {
    .main-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Renforcement de la spécificité pour les marges mobiles */
    body .main-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-section .row {
        margin: 0;
        padding: 0;
    }

    .main-section .col-lg-6,
    .main-section .col-lg-4,
    .main-section .col-lg-8 {
        margin: 0;
        padding: 0;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Dernier article - Pleine largeur */
    .last-article,
    .la-une-site,
    .last-article-site {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .featured-article-site {
        width: 100% !important;
        margin: 0 !important;
    }



    /* Images responsive - Pleine largeur */
    .article-thumbnail,
    .la-une-site .article-thumbnail,
    .second-latest-article .article-thumbnail {
        position: relative;
        overflow: hidden;
        height: 300px !important;
    }
    

    
    /* Contenu des articles */
    .article-content {
        padding: 1rem;
        margin: 0;
    }
    
    .entry-title {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem;
    }
    
    .entry-content {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* Modules - Espacement */
    .widget-module-confidentiels,
    .widget-redphone {
        margin-bottom: 1rem;
    }
    
    /* Optimisation mobile complète (≤ 767px) :
     * - Dernier article et avant-dernier article prennent 100% de la largeur
     * - Images responsive avec object-fit: cover
     * - Suppression des marges et paddings inutiles
     * - Bordures arrondies supprimées pour un look plus moderne
     * - Design épuré et moderne pour tous les écrans mobiles
     */
}

/* ========================================
   RESPONSIVE - TRÈS PETITS ÉCRANS (≤ 597px)
   ======================================== */
@media (max-width: 597px) {
    .main-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Renforcement de la spécificité pour les très petits écrans */
    body .main-section {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-section .col-lg-6,
    .main-section .col-lg-4,
    .main-section .col-lg-8 {
        padding: 0;
        margin: 0;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Dernier article - Pleine largeur */
    .last-article,
    .la-une-site,
    .last-article-site {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .featured-article-site {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Avant-dernier article - Pleine largeur */
    .avant-dernier-article,
    .second-latest-article {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .second-latest-article {
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-top: 0 !important;
    }

    /* Images responsive - Pleine largeur */
    .article-thumbnail,
    .la-une-site .article-thumbnail,
    .second-latest-article .article-thumbnail {
        position: relative;
        overflow: hidden;
        height: 250px !important;
    }
    

    
    /* Contenu des articles */
    .article-content {
        padding: 0.75rem;
        margin: 0;
    }
    
    .entry-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem;
    }
    
    .entry-content {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* Modules - Espacement */
    .widget-module-confidentiels,
    .widget-redphone {
        margin-bottom: 0.75rem;
    }
    
    /* Optimisation pour écrans très petits :
     * - Articles en pleine largeur
     * - Images responsive avec hauteur adaptée
     * - Espacement optimisé
     * - Textes adaptés à la petite taille d'écran
     */
}

/* ========================================
   RESPONSIVE - TABLETTE (768px - 991px)
   ======================================== */
@media (min-width: 768px) and (max-width: 991px) {
    .main-section {
        margin: 0 2rem 0 2rem !important;
    }
    
    .main-section .col-lg-6,
    .main-section .col-lg-4,
    .main-section .col-lg-8 {
        margin-bottom: 1.5rem;
        padding: 0 0.75rem;
    }
    
    /* Dernier article - Optimisation tablette */
    .last-article,
    .la-une-site,
    .last-article-site {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .featured-article-site {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Avant-dernier article - Optimisation tablette */
    .avant-dernier-article,
    .second-latest-article {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .second-latest-article {
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        margin-top: 1.5rem !important;
    }
    
    /* Images responsive - Optimisation tablette */
    .article-thumbnail,
    .la-une-site .article-thumbnail,
    .second-latest-article .article-thumbnail {
        position: relative;
        overflow: hidden;
        /*height: 350px !important;*/
        width: 100% !important;
        margin: 0 !important;
    }
    
    .article-thumbnail img,
    .la-une-site .article-thumbnail img,
    .second-latest-article .article-thumbnail img {
        /*width: 100% !important; */
         height: 100% !important;
        object-fit: cover;
        object-position: center;
        /* display: block; */
        /* position: absolute; */
        bottom: -30px;
        left: 0;
        right: 0;
        z-index: 10!important;
        text-align: center;
    }
    
    /* Contenu des articles - Optimisation tablette */
    .title-overlay {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .entry-title {
        font-size: 1.1rem !important;
        line-height: 0.9 !important;
        margin-bottom: 1rem;
    }
    
    .entry-content {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    
    /* Modules - Espacement tablette */
    .widget-module-confidentiels,
    .widget-redphone {
        margin-bottom: 1.5rem;
    }
    
    /* Optimisation tablette complète (768px - 991px) :
     * - Articles en pleine largeur avec espacement approprié
     * - Images responsive avec hauteur optimisée pour tablette
     * - Suppression des marges négatives et largeurs vw problématiques
     * - Bordures arrondies conservées pour un look moderne
     * - Espacement et typographie adaptés aux tablettes
     */
    
    /* Category Expertises - Optimisation tablette */
    .category-expertises .post,
    .summary {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        margin-bottom: 2rem;
        /* Force l'affichage en ligne comme les grands écrans */
    }
    
    .category-expertises .col-md-3,
    .category-expertises .col-md-4,
    .category-expertises .col-md-5,
    .summary .col-md-3,
    .summary .col-md-4,
    .summary .col-md-5 {
        /* Maintient les proportions originales sur tablette */
        flex: 0 0 auto !important;
        padding: 0 0.5rem;
        /* Force l'affichage en ligne */
        display: block !important;
    }
    
    .category-expertises .col-md-3,
    .summary .col-md-3 {
        width: 25% !important;
        flex: 0 0 25% !important;
    }
    
    .category-expertises .col-md-5,
    .summary .col-md-5 {
        width: 41.666667% !important;
        flex: 0 0 41.666667% !important;
        /* Garde l'image visible sur tablette */
        display: block !important;
    }
    
    .category-expertises .col-md-4,
    .summary .col-md-4 {
        width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
    }
    
    /* Optimisation du contenu des articles */
    .category-expertises .article-content,
    .summary .article-content {
        padding: 1rem;
    }
    
    .category-expertises .article-content h1,
    .summary .article-content h1 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem;
    }
    
    .category-expertises .article-content .font-sans,
    .summary .article-content .font-sans {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* Force l'affichage en ligne sur tablette */
    @media (max-width: 991px) {
        .category-expertises .post {
            flex-direction: row !important;
        }
    }
    
    /* Optimisation des images responsive */
    .category-expertises picture,
    .summary picture {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        height: 200px;
    }
    
    .category-expertises picture img,
    .summary picture img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    
    /* Amélioration du padding du contenu sur tablette */
    .category-expertises .article-content,
    .summary .article-content {
        padding: 0 1rem;
    }
}

/* Responsive pour la barre des langues - Déplacé vers responsive.css */

/* Avant-dernier article */
.second-last-article {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
    width: 100%;
}

.second-last-article .article-thumbnail {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* Ratio 16:9 */
}

.second-last-article .article-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.second-last-article .article-content {
    padding: 1.5rem;
}


.second-last-article .entry-meta {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Responsive pour l'avant-dernier article - Déplacé vers responsive.css */

/* Container Fluid Styles */
.container-fluid.gwa-main-container {
    background: transparent !important;
    /*padding: 2rem 0;*/
}

.main-section {
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 8em 0 8em !important;
}

/* Override Bootstrap container styles */
.container-fluid {
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Modules et Articles */


.avant-dernier-article {
    border-color: var(--accent-color);
    padding: 1px;
}

.widget-redphone .card, .avant-dernier-article .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Animation de défilement */
@keyframes scrollLinks {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

.widget-redphone .links-container,
.avant-dernier-article .links-container,
.widget.widget_gwa_meme_tags_widget .links-container {
    animation: scrollLinks var(--scroll-speed) linear infinite;
}

.widget-redphone .module-link:hover,
.avant-dernier-article .module-link:hover,
.widget-redphone .module-link:focus,
.avant-dernier-article .module-link:focus {
    background-color: var(--module-hover-bg) !important;
    outline: none !important;
}

.widget-redphone .module-link:hover .module-titre,
.avant-dernier-article .module-link:hover .module-titre,
.widget-redphone .module-link:focus .module-titre,
.avant-dernier-article .module-link:focus .module-titre {
    color: var(--module-text-color) !important;
}

.widget-redphone .module-titre,
.avant-dernier-article .module-titre {
    transition: color 0.3s ease;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--module-text-color);
    font-weight: 400;
}

/* Styles spécifiques pour la page single */
.single .featured-image {
    /* margin: -2rem -2rem 2rem -2rem;
max-height: 600px;*/
overflow: hidden;
}

.single .featured-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.single .author-avatar {
width: 120px;
height: 120px;
border-radius: 50%;
overflow: hidden;
margin-bottom: 0;
margin-right: 1rem;
}

.single .author-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}



.entry-meta ,.single .entry-meta {
    color: var(--medium-gray);
    font-size: 0.7rem;
   /* border-top: 1px solid var(--border-gray) !important;*/
    border-bottom: 1px solid var(--border-gray) !important;
    padding: 5px;
    margin: 2px 0 0 0;
    /*background-color: var(--background-gray) !important;*/
}


.meta {
   /* padding: 15px;
    margin: 15px 0;*/
    --bs-text-opacity: 1;
    color: rgba(var(--bs-secondary-rgb), var(--bs-text-opacity)) !important;
    font-size: 0.7rem;
}



/* Styles pour les tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tags-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.tags-links h4 {
    color: var(--black);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tag-button {
    display: inline-block;
    padding: .2rem .4rem;
    background-color: var(--background-gray);
    color: var(--black) !important;
    text-decoration: none !important;
    border-radius: 10px 0 10px 0  !important; /* ✅ angles spécifiques */
    font-size: 0.8rem;
    /* font-weight: 500; */
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


.tag-button:hover {
    background-color: var(--black);
    color: var(--white) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Navigation entre articles */
.post-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 45%;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--black);
}

.post-navigation a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--dark-gray);
}

/* Styles pour la catégorie Expertise */
.summary {
    position: relative;
    margin-bottom: 2rem;
}

.summary .top-line {
    border-color: var(--border-gray);
}

.summary-category {
    position: relative;
    z-index: 1;
}

.summary-category a {
    display: inline-block;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.summary-category a:hover {
    color: var(--color-accent) !important;
}

.summary-category a.dot-before::before {
    content: "•";
    margin-right: 0.5rem;
}

.summary h1 {
    margin: 0;
    padding: 0;
}

.summary h1 a {
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s ease;
}

.summary h1 a:hover {
    text-decoration: underline;
}

.summary-meta {
    color: var(--medium-gray);
}

.summary picture {
    display: block;
    width: 100%;
}

.summary picture img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 767px) {
    .summary .col {
        width: 100% !important;
    }
    
    .summary picture {
        margin-top: 1rem;
    }
}

/* Styles pour la catégorie Expertise */
.category-expertise .post {
    margin-bottom: 2rem;
}

.category-expertise .border-top {
    border-color: var(--border-gray);
    margin: 1rem 0;
}

.category-expertise .category-links {
    margin-bottom: 1rem;
}

.category-expertise .category-link {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.category-expertise .category-link:hover {
    color: var(--color-accent);
}

.category-expertise .article-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.category-expertise .article-title a {
    color: var(--black);
    text-decoration: none;
}

.category-expertise .article-title a:hover {
    text-decoration: underline;
}

.category-expertise .article-date {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-expertise .article-image {
    display: block;
    margin-bottom: 1rem;
}

.category-expertise .article-image img {
    width: 100%;
    height: auto;
}

.category-expertise .article-excerpt {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 767px) {
    .category-expertise .article-title {
        font-size: 1.5rem;
    }
    
    .category-expertise .article-image {
        margin-top: 1rem;
    }
}

/* Styles pour la catégorie Expertises */
.category-expertises .post {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 2rem;
}

.category-expertises .col-md-3 {
    width: 25%;
    padding-right: 1rem;
}

.category-expertises .col-md-4 {
    width: 33.333333%;
    padding: 0 1rem;
}

.category-expertises .col-md-5 {
    width: 41.666667%;
    padding-left: 1rem;
}

.category-expertises .article-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (max-width: 767px) {
    .category-expertises .post {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .category-expertises .col-md-3,
    .category-expertises .col-md-4,
    .category-expertises .col-md-5 {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 767px) {
    .category-expertises .post {
        margin-bottom: 1.5rem;
    }

    .category-expertises .wider-side {
        padding: 1rem;
    }

    .category-expertises .author-avatar {
        width: 80px;
        height: 80px;
    }

    .category-expertises .author-info a {
        font-size: 0.75rem;
    }

    .category-expertises .meta-value {
        font-size: 0.75rem;
    }

    .category-expertises .share-section .meta-value a {
        width: 20px;
        height: 20px;
    }

    .category-expertises .article-content {
        padding: 0.75rem;
    }

    .category-expertises .article-content h1 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .category-expertises .article-content .font-sans {
        font-size: 0.75rem;
    }

    .category-expertises picture {
        /* padding-bottom: 56.25%; */
    }
}

@media (max-width: 575.98px) {
    .category-expertises .post {
        margin-bottom: 1rem;
    }

    .category-expertises .wider-side {
        padding: 0.75rem;
    }

    .category-expertises .author-avatar {
        width: 60px;
        height: 60px;
    }

    .category-expertises .author-info a {
        font-size: 0.7rem;
    }

    .category-expertises .meta-value {
        font-size: 0.7rem;
    }

    .category-expertises .share-section .meta-value a {
        width: 18px;
        height: 18px;
    }

    .category-expertises .article-content {
        padding: 0.5rem;
    }

    .category-expertises .article-content h1 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .category-expertises .article-content .font-sans {
        font-size: 0.7rem;
    }

    .category-expertises picture {
        /* padding-bottom: 56.25%; */
    }
}

/* Responsive Styles */
@media (max-width: 767px) {
    .category-expertises .share-section .meta-value a {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 575.98px) {
    .category-expertises .share-section .meta-value a {
        font-size: 1rem !important;
    }
}

/* Styles pour category-expertises */
.category-expertises .post {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 2rem;
}

.category-expertises .article-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Styles communs pour la section wider-side */
.category-expertises .wider-side {
    background-color: var(--white);
    padding: 0 10px 0 0;
}

@media (max-width: 767px) {
    .category-expertises .post {
        flex-direction: column;
    }
    
    .category-expertises .col-md-3,
    .category-expertises .col-md-4,
    .category-expertises .col-md-5 {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }
}



@media (max-width: 767px) {
    .author-info-section {
        padding: 1.5rem;
    }

    .author-info-section .author-name {
        font-size: 1.3rem;
    }

    .author-info-section .author-bio {
        font-size: 0.9rem;
    }
}

.author-info-section .author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
}

.author-info-section .author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single .author-info {
    /*border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
    margin-bottom: 1rem;*/
}

/*.single .date-section {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}*/

/*
.single .share-section {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
}

.single .share-section .meta-value a {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 0.5rem;
}
*/
/* Styles pour l'auteur */
.author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--background-gray);
    border-radius: var(--border-radius);
    font-size: 0.875rem !important;
    color: var(--color-secondary) !important;
}

.author .name a:hover {
    color: var(--color-secondary);
}

.author .name,
.author .date-section,
.author .share-section,
.author .meta-line{
    /*width: 100% !important;
    margin: 0px !important;
    margin-top: 0.5rem!important;
    border-bottom: 1px solid var(--border-gray) !important;*/
}
.author .name,.author .share-section ,.author .date-section{
    /* width: 100% !important; */
    /* margin: 0px !important; */
    /* margin-top: 0.5rem !important; */
    border-bottom: 1px solid var(--border-gray) !important;
}
/*.name , .date-section, share-section > div {
    border-bottom: 1px solid var(--border-gray)!important;
}*/
/* Responsive */
@media (max-width: 767px) {
    .author {
        padding: 0.75rem;
    }
    
    .author .name {
        font-size: 1rem;
    }
}

/* Module Category 5 Articles */
/* Assurer la responsivité des images */
.mod-category-5-articles .article-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Ajouter une transition pour l'effet de survol */
.mod-category-5-articles .article-item {
    /*margin-bottom: 20px;*/
    padding: 10px;
    /*border: 1px solid #ddd;*/
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: var(--white);
}

.mod-category-5-articles .article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*.mod-category-5-articles .article-text h2 {
    font-weight: 600;
    margin: 10px 0;
    font-size: 1em;
}*/

/* Titres des deux premiers articles */
.mod-category-5-articles > div:nth-child(-n+2) .article-text h2 {
    font-size: 1em; /* Taille normale */
    font-weight: 600;
}

/* Titres des deux derniers articles */
.mod-category-5-articles .row > .col-md-4:nth-child(n+3) .article-text h2 {
    font-size: 0.85em; /* Taille réduite */
    font-weight: 600;
}

.mod-category-5-articles .article-text small {
    display: block;
    margin-bottom: 5px;
}

.mod-category-5-articles .article-text p {
    margin: 0;
}

/* first content category */
.entry-content-category {
    margin-top: -100px !important;
    z-index: 99 !important;
    background-color: white !important;
    padding: 2rem !important;
    margin: 0 4em;
}

.entry-content-category article {
    margin-bottom: 2rem !important;
    padding-bottom: 2rem !important;
    border-bottom: 1px solid var(--border-gray);
}

/* Suppression des styles des magazines qui sont maintenant dans le widget */
/* Les styles des magazines sont maintenant gérés dans le widget HTML personnalisé */

.font-red-leger {
    color: var(--font-red-leger) !important;
    font-weight: bold;
    font-size: 1em;
}
.font-red-fonce {
    color: var(--font-red-fonce) !important;
    font-weight: bold;
    font-size: 1em;
}
.bg-redphone-leger {
    background: var(--bg-redphone-leger) !important;
}
.bg-redphone-fonce {
    background: var(--bg-redphone-fonce) !important;
}

.module-link.font-red-leger {
    color: var(--font-red-leger) !important;
}
.module-link.font-red-fonce {
    color: var(--font-red-fonce) !important;
}

.module-link.bg-redphone-leger {
    background: var(--bg-redphone-leger) !important;
}
.module-link.bg-redphone-fonce {
    background: var(--bg-redphone-fonce) !important;
}

.module-link .card {
    box-shadow: 0 rgba(0, 0, 0, 0.1) !important;
}

/* Styles spécifiques pour le widget RedPhone */
.widget-redphone.widget-title {
    /* Style uniforme appliqué via .widget-title global */
}
.widget-redphone .module-link.font-red-leger {
    color: var(--font-red-leger) !important;
    background-color: var(--bg-redphone-leger) !important;
}

.widget-redphone .module-link.font-red-fonce {
    color: var(--font-red-fonce) !important;
    background-color: var(--bg-redphone-fonce) !important;
}

.widget-redphone .module-link.font-red-leger .module-titre {
    color: var(--font-red-leger) !important;
}

.widget-redphone .module-link.font-red-fonce .module-titre {
    color: var(--font-red-fonce) !important;
}

.widget-redphone .module-link:hover {
    transform: translateX(5px);
}

.widget-redphone .module-link:hover .module-titre {
    text-decoration: underline;
}

/* Styles spécifiques pour le widget RedPhone */
.widget-redphone {
    background-color: var(--white);
    padding: 0;
    height: 800px;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    height: 800px !important;
    overflow: hidden;
}

.widget-redphone .card {
    background-color: var(--white);
    border: none;
    box-shadow: none;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100% !important;
}

.widget-redphone .card[data-scroll-speed] {
    /* La vitesse sera gérée par JavaScript */
}

.widget-redphone .widget-title {
    /* Style uniforme appliqué via .widget-title global */
    border-bottom: 1px solid var(--border-gray);
    padding: 0.5rem 0;
    width: 100% !important;
}

.widget-redphone .links-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    flex: 1;
    width: 100% !important;
    /* L'animation sera appliquée par JavaScript */
}

.widget-redphone .links-container:hover,
.widget-redphone .links-container:focus-within {
    animation-play-state: paused !important;
}

.widget-redphone .article-item {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    width: 100% !important;
}

.widget-redphone .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.widget-redphone .module-link {
    display: block;
    padding: 0.5rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    width: 100% !important;
}

.widget-redphone .module-link:hover {
    transform: translateX(5px);
    text-decoration: none !important;
}

.widget-redphone .article-text {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
    margin-right: 0.5rem;
    display: inline;
}

.widget-redphone .module-titre {
    font-size: 1rem;
    color: var(--module-text-color);
    transition: all 0.3s ease;
    line-height: 1.5;
    display: inline;
}

/* Media queries pour le widget RedPhone */
@media (max-width: 991px) {
    .widget-redphone {
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .widget-redphone .module-link {
        padding: 0.5rem;
    }
    
    .widget-redphone .module-titre,
    .widget-redphone .article-text {
        font-size: 1rem;
    }
}

/* Styles pour le module confidentiels */
.widget-module-confidentiels {
    background-color: var(--white);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.widget-module-confidentiels .card {
    background-color: var(--white);
    border: none;
    box-shadow: none;
    height: 100%;
    overflow: hidden;
}

.widget-module-confidentiels .card[data-scroll-speed] {
    /* La vitesse sera gérée par JavaScript */
}

.widget-module-confidentiels .links-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    flex: 1;
    width: 100% !important;
    /* L'animation sera appliquée par JavaScript */
}

.widget-module-confidentiels .links-container:hover,
.widget-module-confidentiels .links-container:focus-within {
    animation-play-state: paused !important;
}

.widget-module-confidentiels .article-item {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
}

.widget-module-confidentiels .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-module-confidentiels .module-link {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-radius: 4px;
    gap: 1rem;
}

.widget-module-confidentiels .module-link:hover {
    background-color: var(--module-hover-bg);
    transform: translateX(5px);
    text-decoration: none !important;
}

.widget-module-confidentiels .module-titre {
    font-size: 1rem;
    color: var(--module-text-color);
    transition: all 0.3s ease;
    line-height: 1.5;
    flex: 1;
    text-decoration: none !important;
}

.widget-module-confidentiels .module-link:hover .module-titre {
    text-decoration: none !important;
}

.widget-module-confidentiels .article-text {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-decoration: none !important;
}

.widget-module-confidentiels .widget-title {
    /* Style uniforme appliqué via .widget-title global */
}

/* Media queries pour le module confidentiels */
@media (max-width: 991px) {
    .widget-module-confidentiels {
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .widget-module-confidentiels .module-link {
        padding: 0.75rem;
    }
    
    .widget-module-confidentiels .module-titre {
        font-size: 1rem;
    }

    .widget-module-confidentiels .article-text {
        font-size: 1rem;
    }
}

/* Styles pour le widget Confidentiels */
.widget.widget_gwa_confidentiels_widget {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
   /* width: 100% !important;
    height: 540px !important;*/
    overflow: hidden;
}
.widget.widget_gwa_confidentiels_widget .widget-title{
    border-bottom: 1px solid var(--border-gray);
    padding: 0.5rem 0;
    width: 100% !important;
}

.widget.widget_gwa_confidentiels_widget .card {
    background-color: var(--white);
    border: none;
    box-shadow: none;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100% !important;
}

.widget.widget_gwa_confidentiels_widget .card[data-scroll-speed] {
    /* La vitesse sera gérée par JavaScript */
}





.widget.widget_gwa_confidentiels_widget .links-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    flex: 1;
    width: 100% !important;
    /* L'animation sera appliquée par JavaScript */
}

.widget.widget_gwa_confidentiels_widget .links-container:hover,
.widget.widget_gwa_confidentiels_widget .links-container:focus-within {
    animation-play-state: paused !important;
}

.widget.widget_gwa_confidentiels_widget .article-item {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100% !important;
}

.widget.widget_gwa_confidentiels_widget .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.widget.widget_gwa_confidentiels_widget .module-link {
    display: block;
    padding: 0rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    width: 100% !important;
}

.widget.widget_gwa_confidentiels_widget .module-link:hover {
    transform: translateX(5px);
    text-decoration: none !important;
}

.widget.widget_gwa_confidentiels_widget .article-text {
   /* font-weight: 600;*/
    color: var(--black);
    font-size: 0.9rem;
    margin-right: 0.5rem;
    display: inline;
}

.widget.widget_gwa_confidentiels_widget .module-titre {
    font-size: 1rem;
    color: var(--module-text-color);
    transition: all 0.3s ease;
    line-height: 1.5;
    display: inline;
}

/* Classes de couleur pour les confidentiels */
.font-confidentiels-leger {
    color: var(--font-red-leger); /* rouge clair */
}

.font-confidentiels-fonce {
    color: var(--font-red-fonce); /* rouge foncé */
}

.bg-confidentiels-leger {
    background-color: var(--white) !important;
    border-color: var(--bg-confidentiels-fonce) !important;
}

.bg-confidentiels-fonce {
    background-color: var(--white) !important;
    border-color: var(--bg-confidentiels-fonce) !important;
}

/* Media queries pour le widget Confidentiels */
@media (max-width: 991px) {
    .widget.widget_gwa_confidentiels_widget {
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .widget.widget_gwa_confidentiels_widget .module-link {
        padding: 0.5rem;
    }
    
    .widget.widget_gwa_confidentiels_widget .module-titre,
    .widget.widget_gwa_confidentiels_widget .article-text {
        font-size: 1rem;
    }
}

/* Styles pour le widget RedPhone */
.widget.widget_gwa_redphone_widget {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    width: 100% !important;
    height: 800px !important;
    overflow: hidden;
}

.widget.widget_gwa_redphone_widget .card {
    background-color: var(--white);
    border: none;
    box-shadow: none;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100% !important;
}

.widget.widget_gwa_redphone_widget .card[data-scroll-speed] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_redphone_widget .widget-title {
    /* Style uniforme appliqué via .widget-title global */
    border-bottom: 1px solid var(--border-gray);
    padding: 0.5rem 0;
    width: 100% !important;
}

.widget.widget_gwa_redphone_widget .links-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    flex: 1;
    width: 100% !important;
    /* L'animation sera appliquée par JavaScript */
}

.widget.widget_gwa_redphone_widget .links-container:hover,
.widget.widget_gwa_redphone_widget .links-container:focus-within {
    animation-play-state: paused !important;
}

.widget.widget_gwa_redphone_widget .article-item {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    width: 100% !important;
}

.widget.widget_gwa_redphone_widget .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.widget.widget_gwa_redphone_widget .module-link {
    display: block;
    padding: 0.5rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    width: 100% !important;
}

.widget.widget_gwa_redphone_widget .module-link:hover {
    transform: translateX(5px);
    text-decoration: none !important;
}

.widget.widget_gwa_redphone_widget .article-text {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
    margin-right: 0.5rem;
    display: inline;
}

.widget.widget_gwa_redphone_widget .module-titre {
    font-size: 1rem;
    color: var(--module-text-color);
    transition: all 0.3s ease;
    line-height: 1.5;
    display: inline;
}

/* Media queries pour le widget RedPhone */
@media (max-width: 991px) {
    .widget.widget_gwa_redphone_widget {
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .widget.widget_gwa_redphone_widget .module-link {
        padding: 0.5rem;
    }
    
    .widget.widget_gwa_redphone_widget .module-titre,
    .widget.widget_gwa_redphone_widget .article-text {
        font-size: 1rem;
    }
}

/* Styles pour les différentes vitesses de défilement - Widget RedPhone */
.widget.widget_gwa_redphone_widget .card[data-scroll-speed="5"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_redphone_widget .card[data-scroll-speed="10"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_redphone_widget .card[data-scroll-speed="15"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_redphone_widget .card[data-scroll-speed="20"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_redphone_widget .card[data-scroll-speed="25"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_redphone_widget .card[data-scroll-speed="30"] {
    /* La vitesse sera gérée par JavaScript */
}

/* Styles pour les différentes vitesses de défilement - Widget Confidentiels */
.widget.widget_gwa_confidentiels_widget .card[data-scroll-speed="5"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_confidentiels_widget .card[data-scroll-speed="10"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_confidentiels_widget .card[data-scroll-speed="15"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_confidentiels_widget .card[data-scroll-speed="20"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_confidentiels_widget .card[data-scroll-speed="25"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_confidentiels_widget .card[data-scroll-speed="30"] {
    /* La vitesse sera gérée par JavaScript */
}

/* Widget Même Tags - EXACTEMENT comme RedPhone */
.widget.widget_gwa_meme_tags_widget {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    width: 100% !important;
    height: 800px !important;
    overflow: hidden;
}

/* Widget Articles Populaires - EXACTEMENT comme Même Tags */
.widget.widget_gwa_popular_posts_widget {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    /*width: 100% !important;
    height: 800px !important;*/
    overflow: hidden;
}

.widget.widget_gwa_meme_tags_widget .card,
.widget.widget_gwa_popular_posts_widget .card {
    background-color: var(--white);
    border: none;
    box-shadow: none;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100% !important;
}

.widget.widget_gwa_meme_tags_widget .card[data-scroll-speed] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_meme_tags_widget .widget-title {
    /* Style uniforme appliqué via .widget-title global */
    border-bottom: 1px solid var(--border-gray);
    padding: 0.5rem 0;
    width: 100% !important;
}

.widget.widget_gwa_meme_tags_widget .links-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    flex: 1;
    width: 100% !important;
    animation: scrollLinks var(--scroll-speed) linear infinite;
    /* L'animation sera appliquée par JavaScript */
}

.widget.widget_gwa_meme_tags_widget .links-container:hover,
.widget.widget_gwa_meme_tags_widget .links-container:focus-within {
    animation-play-state: paused !important;
}

.widget.widget_gwa_meme_tags_widget .article-item {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    width: 100% !important;
}

.widget.widget_gwa_meme_tags_widget .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.widget.widget_gwa_meme_tags_widget .module-link {
    display: block;
    padding: 0.5rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    width: 100% !important;
}

.widget.widget_gwa_meme_tags_widget .module-link:hover {
    transform: translateX(5px);
    text-decoration: none !important;
}

.widget.widget_gwa_meme_tags_widget .article-thumbnail {
    width: 100%;
    height: auto;
    border-top-left-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    padding-top: 56.25%; /* Ratio 16:9 */
}

.widget.widget_gwa_meme_tags_widget .article-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.widget.widget_gwa_meme_tags_widget .article-text {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Classes de couleurs pour le widget Même Tags */
.font-meme-tags-leger {
    color: var(--font-red-leger) !important;
}

.font-meme-tags-fonce {
    color: var(--font-red-fonce) !important;
}

.bg-meme-tags-leger {
    background-color: var(--bg-redphone-leger) !important;
}

.bg-meme-tags-fonce {
    background-color: var(--bg-redphone-fonce) !important;
}

/* Media queries pour le widget Même Tags */
@media (max-width: 991px) {
    .widget.widget_gwa_meme_tags_widget {
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .widget.widget_gwa_meme_tags_widget .module-link {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .widget.widget_gwa_meme_tags_widget .article-thumbnail {
        width: 100%;
        height: auto;
        padding-top: 56.25%; /* Ratio 16:9 maintenu sur mobile */
    }
    
    .widget.widget_gwa_meme_tags_widget .article-text {
        font-size: 1rem;
    }
}

/* Styles pour les différentes vitesses de défilement - Widget Même Tags */
.widget.widget_gwa_meme_tags_widget .card[data-scroll-speed="5"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_meme_tags_widget .card[data-scroll-speed="10"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_meme_tags_widget .card[data-scroll-speed="15"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_meme_tags_widget .card[data-scroll-speed="20"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_meme_tags_widget .card[data-scroll-speed="25"] {
    /* La vitesse sera gérée par JavaScript */
}

.widget.widget_gwa_meme_tags_widget .card[data-scroll-speed="30"] {
    /* La vitesse sera gérée par JavaScript */
}

@media (max-width: 767px) {
    .widget.widget_gwa_meme_tags_widget .module-link {
        padding: 0.5rem;
    }
    
    .widget.widget_gwa_meme_tags_widget .article-thumbnail {
        height: auto;
        padding-top: 56.25%; /* Ratio 16:9 maintenu sur mobile */
    }
    
    .widget.widget_gwa_meme_tags_widget .article-text {
        font-size: 1rem;
    }
}

/* Module Auteur Horizontal */
.author-horizontal {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
    margin: 2rem 0;
}

.author-horizontal .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-horizontal .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-horizontal .author-info {
    padding-left: 1rem;
}

.author-horizontal .author-name h5 {
    color: var(--black);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.author-horizontal .article-date {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.author-horizontal .share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-horizontal .share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--background-gray);
    transition: all 0.3s ease;
}

.author-horizontal .share-buttons a:hover {
    background-color: var(--black);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Responsive pour le module auteur horizontal */
@media (max-width: 767px) {
    .author-horizontal {
        padding: 1rem 0;
        margin: 1.5rem 0;
    }
    
    .author-horizontal .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    .author-horizontal .author-info {
        padding-left: 0.75rem;
    }
    
    .author-horizontal .author-name h5 {
        font-size: 1rem;
    }
    
    .author-horizontal .share-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .author-horizontal .share-buttons span {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .author-horizontal .row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .author-horizontal .author-info {
        padding-left: 0;
    }
    
    .author-horizontal .share-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Widget HTML Libre - Titre centré */
.widget.widget_gwa_widget_html_libre .widget-title {
    /* Style uniforme appliqué via .widget-title global */
    text-align: center !important;
}

/* Styles spécifiques pour la_une_vedatte.html */
.la-une-vedatte {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 20px;*/
}

.la-une-vedatte .last-article {
    position: relative;
    width: 100%;
}

.la-une-vedatte .featured-article {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.la-une-vedatte .article-thumbnail {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 53.80%;
}

.la-une-vedatte .article-thumbnail img {
    /*width: 100%;*/
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay pour le titre sur l'image */
.la-une-vedatte .title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 30px;
    color: white;
    z-index: 2;
}



.la-une-vedatte .title-overlay .entry-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-style: italic;
}

/* Contenu centré avec bordure */
.la-une-vedatte .article-content {
    width: 80% !important;
    max-width: 800px;
    margin: 0px auto;
    padding: 30px;
    background: var(--background-gray) !important;
    /*border: 2px solid #e0e0e0;*/
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: justify !important;
    position: relative !important;
}



/* --- Titre en bas de l'image dans la boîte blanche pour la_une_vedatte --- */

/* Styles supprimés pour entry-title dans ce module */

.la-une-vedatte .entry-meta {
            color: var(--light-gray);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 20px;
}



/* Responsive */
@media (max-width: 768px) {
    .la-une-vedatte .article-content {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .la-une-vedatte .entry-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .la-une-vedatte .article-content {
        width: 98%;
        padding: 15px;
    }
}

@media (max-width: 575.98px) {
    .site-title {
        font-size: 2.5rem;
    }



    .flag-icon {
        width: 20px;
        height: 20px;
    }

    .language-link {
        padding: 8px;
    }
}

/* Améliorations responsives pour les très petits écrans */
@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
        text-align: center;
    }



    .language-elements {
        flex-direction: row;
        justify-content: center;
        gap: 0.3rem;
        max-width: 120px;
    }

    .language-line {
        max-width: 2em;
        min-width: 1em;
        height: 2px;
        background-color: var(--light-gray);
    }

    .line-before-fr {
        margin-right: 8px;
    }

    .line-after-en {
        margin-left: 8px;
    }

    .main-menu .nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-menu .nav-link {
        font-size: 0.75rem;
        padding: 8px 12px;
        text-align: center;
    }

    .secondary-menu .nav {
        flex-direction: row !important;
        gap: 0.2rem;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    .secondary-menu .nav-link {
        font-size: 0.75rem;
        padding: 8px 12px;
        text-align: center;
    }

    .secondary-menu .nav-link i {
        font-size: 0.9rem;
    }

    .secondary-menu .nav-link span {
        font-size: 0.7rem;
    }

    .flag-icon {
        width: 18px;
        height: 18px;
    }

    .language-link {
        padding: 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .site-title {
        font-size: 1.8rem;
    }



    .language-elements {
        gap: 0.2rem;
        max-width: 100px;
    }

    .language-line {
        max-width: 1.5em;
        min-width: 0.5em;
        height: 2px;
        background-color: var(--light-gray);
    }

    .line-before-fr {
        margin-right: 5px;
    }



    .line-after-en {
        margin-left: 5px;
    }

    .main-menu .nav-link {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .secondary-menu .nav-link {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .flag-icon {
        width: 16px;
        height: 16px;
    }

    .language-link {
        padding: 4px;
        font-size: 0.7rem;
    }
}

/* ========================================
   BOUTON HAMBURGER - DESIGN MODERNE
   ======================================== */

.js-menu {
    border: none !important;
    background: transparent !important;
    color: var(--black);
    font-size: 1rem;
    padding: 0.5rem;
    display: block !important;
    visibility: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: auto;
    height: auto;
    min-height: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: none;
    position: static;
    overflow: visible;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
}

.js-menu:hover {
    background: transparent !important;
    color: var(--black) !important;
    text-decoration: none !important;
}

.js-menu:active {
    background: transparent !important;
    color: var(--black) !important;
}

.js-menu:focus {
    outline: none !important;
    box-shadow: none !important;
}

.hamburger-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ========================================
   MENU MOBILE - DESIGN MODERNE
   ======================================== */

.offcanvas {
    background: linear-gradient(135deg, var(--background-gray) 0%, var(--background-gray) 100%);
    border-right: none;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 200000 !important;
    width: 60vw;
    max-width: 60vw;
    backdrop-filter: blur(10px);
}

.offcanvas-backdrop {
    z-index: 199999 !important;
}

.offcanvas-header {
   /* background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    background: var(--light-gray);*/
    background: linear-gradient(180deg, var(--white) 0%, var(--background-gray) 100%);
   /* border-bottom: 2px solid var(--light-gray);*/
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
}

.offcanvas-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

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

.offcanvas-title {
    color: var(--white);
    font-weight: 700;
    margin: 0;
    font-size: 1.05rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.offcanvas-header .btn-close {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.offcanvas-header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.offcanvas-body {
    padding: 0.7rem 0.45rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--background-gray) 100%);
}

.offcanvas-body .nav {
    gap: 0.5rem;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.offcanvas-body .nav-item {
    margin: 0 !important;
    width: 100%;
}

.offcanvas-body .nav-link {
    color: var(--medium-gray);
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.96rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--white) 0%, var(--background-gray) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: block;
    width: 100%;
    margin: 0 !important;
}

.offcanvas-body .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 102, 102, 0.1), transparent);
    transition: left 0.5s ease;
}

.offcanvas-body .nav-link:hover {
    background: linear-gradient(135deg, #8f8f8f 0%, #b6b6b6 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.3);
    border-color: #9f9f9f;
}

.offcanvas-body .nav-link:hover::before {
    left: 100%;
}

.offcanvas-body .nav-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

/* Liens actifs/sélectionnés du menu mobile: fond gris (pas noir) */
.offcanvas-body .current-menu-item > .nav-link,
.offcanvas-body .current_page_item > .nav-link,
.offcanvas-body .current-menu-ancestor > .nav-link,
.offcanvas-body .current-page-ancestor > .nav-link,
.offcanvas-body .nav-link.active,
.offcanvas-body .nav-link[aria-current="page"] {
    background: linear-gradient(135deg, #8f8f8f 0%, #b6b6b6 100%) !important;
    color: #fff !important;
    border-color: #9f9f9f !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

/* Forcer le gris dans le menu mobile même en interaction tactile */
#mobileMenu .offcanvas-body .nav-link:focus,
#mobileMenu .offcanvas-body .nav-link:focus-visible,
#mobileMenu .offcanvas-body .nav-link:active,
#mobileMenu .offcanvas-body .nav-item.current-menu-item > .nav-link:hover,
#mobileMenu .offcanvas-body .nav-item.current_page_item > .nav-link:hover,
#mobileMenu .offcanvas-body .nav-item.current-menu-ancestor > .nav-link:hover,
#mobileMenu .offcanvas-body .nav-item.current-page-ancestor > .nav-link:hover,
#mobileMenu .offcanvas-body .nav-link.active:hover,
#mobileMenu .offcanvas-body .nav-link[aria-current="page"]:hover {
    background: linear-gradient(135deg, #8f8f8f 0%, #b6b6b6 100%) !important;
    color: #fff !important;
    border-color: #9f9f9f !important;
}

/* Animation d'entrée pour les liens */
.offcanvas-body .nav-link {
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.offcanvas-body .nav-link:nth-child(1) { animation-delay: 0.1s; }
.offcanvas-body .nav-link:nth-child(2) { animation-delay: 0.2s; }
.offcanvas-body .nav-link:nth-child(3) { animation-delay: 0.3s; }
.offcanvas-body .nav-link:nth-child(4) { animation-delay: 0.4s; }
.offcanvas-body .nav-link:nth-child(5) { animation-delay: 0.5s; }
.offcanvas-body .nav-link:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* S'assurer que le bouton du menu mobile est visible sur mobile */
@media (max-width: 991px) {
    .js-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Masquer le menu principal sur mobile et garder seulement le bouton mobile */
@media (max-width: 991px) {
    .main-menu {
        display: none;
    }
    
    .js-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Masquer le bouton du menu mobile sur desktop */
@media (min-width: 992px) {
    .js-menu {
        display: none !important;
    }
}

/* ========================================
   CENTRAGE DES MODULES AUTEUR - TOUS ÉCRANS
   ======================================== */
/* Centrage des modules auteur sur tous les écrans */
.author .icon,
.author .infos,
.author .name {
    text-align: center !important;
}

.author .icon img {
    float: none !important;
    margin: 0 auto !important;
    display: block !important;
}

.author-horizontal .author-avatar {
    text-align: center !important;
}

.author-horizontal .author-info {
    text-align: center !important;
}

/* ========================================
   STYLES POUR LES DERNIERS ARTICLES SÉPARÉS
   ======================================== */

/* Styles pour le dernier article du site (page d'accueil) */
.la-une-site {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
   /* margin-bottom: 2rem;*/
}

.last-article-site {
    position: relative;
    width: 100%;
}

.featured-article-site {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Styles pour le dernier article de catégorie */
.la-une-categorie {
    /*background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 0 0em 2em 4em!important;*/
}

.last-article-categorie {
    /*position: relative;
    width: 100%;*/
}

.featured-article-categorie {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Responsive pour les deux types */
@media (max-width: 768px) {
    .la-une-site,
    .la-une-categorie {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
    }
    
    .featured-article-site,
    .featured-article-categorie {
        flex-direction: column;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .last-article-site,
    .last-article-categorie {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ========================================
   MEDIA QUERIES - CodexMania Theme Atman TV
   ======================================== */

/* ========================================
   MOBILE FIRST - ÉCRANS MOBILES
   ======================================== */

/* Écrans très petits (360px et moins) */
@media (max-width: 360px) {
    .site-title {
        font-size: 1.2rem;
    }
    
    .language-elements {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
        line-height: 1;
    }
    
    .language-line {
        display: inline-block;
        width: 8px;
        min-width: 8px;
        max-width: 8px;
        height: 1px;
        margin: 0;
        flex-shrink: 0;
        background-color: var(--gray-400);
    }
    
    .line-before-fr {
        margin-right: 0;
    }
    
    .line-after-en {
        margin-left: 0;
    }
    
    .main-menu .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .secondary-menu .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
    
    .flag-icon {
        width: 20px;
        height: 20px;
    }
    
    .language-link {
        padding: 10px;
    }
}

/* Écrans petits (480px et moins) */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .language-elements {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
        line-height: 1;
    }
    
    .language-line {
        display: inline-block;
        width: 10px;
        min-width: 10px;
        max-width: 10px;
        height: 1px;
        margin: 0;
        flex-shrink: 0;
        background-color: var(--gray-400);
    }
    
    .line-before-fr {
        margin-right: 0;
    }
    
    .line-after-en {
        margin-left: 0;
    }
    
    .main-menu .nav {
        flex-direction: column;
    }
    
    .main-menu .nav-link {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .secondary-menu .nav {
        flex-direction: column;
    }
    
    .secondary-menu .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .secondary-menu .nav-link i {
        font-size: 1.2rem;
    }
    
    .secondary-menu .nav-link span {
        font-size: 0.8rem;
    }
    
    .flag-icon {
        width: 24px;
        height: 24px;
    }
    
    .language-link {
        padding: 12px;
    }
}

/* Écrans moyens (575px et moins) */
@media (max-width: 575.98px) {
    .site-title {
        font-size: 1.6rem;
    }
    
    .flag-icon {
        width: 28px;
        height: 28px;
    }
    
    .language-link {
        padding: 14px;
    }
}

/* Écrans moyens (767px et moins) */
@media (max-width: 767px) {
    /* Footer */
    .footer-nav .nav {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .reseausocial {
        font-size: 1.2rem;
        margin: 0 0.5rem;
    }
    
    /* Main section */
    .main-section .row {
        margin: 0;
    }
    
    .main-section .col-6,
    .main-section .col-md-6 {
        padding: 0.5rem;
    }
    
    .last-article,
    .featured-article {
        margin-bottom: 1rem;
    }
    
    .article-thumbnail {
        height: 200px;
    }
    
    .title-overlay {
        padding: 1rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    /* Summary */
    .summary .col {
        margin-bottom: 1rem;
    }
    
    .summary picture {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Category expertise */
    .category-expertise .article-title {
        font-size: 1.1rem;
    }
    
    .category-expertise .article-image {
        height: 150px;
    }
    
    /* Category expertises */
    .category-expertises .post {
        margin-bottom: 2rem;
    }
    
    .category-expertises .wider-side {
        margin-bottom: 1rem;
    }
    
    .category-expertises .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .category-expertises .author-info a {
        font-size: 0.9rem;
    }
    
    .category-expertises .meta-value {
        font-size: 0.8rem;
    }
    
    .category-expertises .share-section .meta-value a {
        font-size: 0.8rem;
    }
    
    .category-expertises .article-content {
        padding: 1rem;
    }
    
    .category-expertises .article-content h1 {
        font-size: 1.3rem;
    }
    
    .category-expertises .article-content .font-sans {
        font-size: 0.9rem;
    }
    
    .category-expertises picture {
        height: 200px;
    }
    
    /* Author horizontal */
    .author-horizontal {
        flex-direction: column;
        text-align: center;
    }
    
    .author-horizontal .author-avatar {
        margin-bottom: 1rem;
    }
    
    .author-horizontal .author-info {
        margin-bottom: 1rem;
    }
    
    .author-horizontal .author-name h5 {
        font-size: 1.1rem;
    }
    
    .author-horizontal .share-buttons {
        justify-content: center;
    }
    
    .author-horizontal .share-buttons span {
        display: none;
    }
    
    /* Widgets */
    .widget-redphone .module-link {
        padding: 10px 15px;
    }
    
    .widget-redphone .module-titre,
    .widget.widget_gwa_confidentiels_widget .module-titre {
        font-size: 0.9rem;
    }
    
    .widget-module-confidentiels .module-link {
        padding: 10px 15px;
    }
    
    .widget-module-confidentiels .module-titre {
        font-size: 0.9rem;
    }
    
    .widget-module-confidentiels .article-text {
        font-size: 0.8rem;
    }
    
    .widget.widget_gwa_confidentiels_widget .module-link {
        padding: 10px 15px;
    }
    
    .widget.widget_gwa_confidentiels_widget .module-titre,
    .widget.widget_gwa_redphone_widget .module-titre {
        font-size: 0.9rem;
    }
    
    .widget.widget_gwa_redphone_widget .module-link {
        padding: 10px 15px;
    }
    
    .widget.widget_gwa_meme_tags_widget .module-link {
        padding: 10px 15px;
    }
    
    .widget.widget_gwa_meme_tags_widget .article-thumbnail {
        height: 80px;
    }
    
    .widget.widget_gwa_meme_tags_widget .article-text {
        font-size: 0.8rem;
    }
}

/* Écrans moyens (768px et moins) */
@media (max-width: 768px) {
    .la-une-site,
    .la-une-categorie {
        margin-bottom: 2rem;
    }
    
    .featured-article-site,
    .featured-article-categorie {
        margin-bottom: 1rem;
    }
    
    .la-une-vedatte .article-content {
        padding: 1rem;
    }
    
    .la-une-vedatte .entry-content {
        font-size: 0.9rem;
    }
}

/* Écrans moyens (991px et moins) */
@media (max-width: 991px) {
    /* Menu bar */
    .menu-bar {
        padding: 0.5rem 1rem;
    }
    
    /* Secondary menu */
    .secondary-menu .nav {
        gap: 2rem;
        justify-content: flex-end;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    
    .secondary-menu .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem;
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
        background-color: var(--white);
        border-radius: 50%;
        /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }
    
    .secondary-menu .nav-link:hover {
        transform: none;
        background-color: var(--gray-100);
    }
    
    .secondary-menu .nav-link i {
        font-size: 1.1rem;
        margin-bottom: 0;
        color: var(--primary);
    }
    
    .secondary-menu .nav-link span {
        font-size: 0.7rem;
        display: none;
    }
    
    /* Language elements mobile */
    .language-elements {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        line-height: 1;
    }
    
    .language-elements .language-line {
        display: inline-block;
        /* width: 12px; */
        min-width: 6em;
        max-width: 10em;
        height: 2px;
        margin: 0;
        flex-shrink: 0;
        /* background-color: var(--gray-400); */
    }
    
    .language-elements .language-link {
        padding: 0.5rem;
        background-color: var(--white);
        border-radius: 50%;
        /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        line-height: 1;
    }
    
    .language-elements .js-search {
        padding: 0.5rem;
        background-color: var(--white);
        border-radius: 50%;
        /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
        border: none;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        line-height: 1;
    }
    
    .language-elements .flag-icon {
        width: 24px;
        height: 24px;
        display: block;
    }
    
    .language-elements .menu-icon {
        width: 20px !important;
        height: 20px !important;
        display: block;
        filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
    }
    
    /* Widgets */
    .widget-redphone {
        height: 600px;
    }
    
    .widget-module-confidentiels {
        height: 600px;
    }
    
    .widget.widget_gwa_confidentiels_widget {
        height: 600px;
    }
    
    .widget.widget_gwa_redphone_widget {
        height: 600px;
    }
    
    .widget.widget_gwa_meme_tags_widget {
        height: 600px;
    }
    
    /* Category expertises */
    .category-expertises .post {
        flex-direction: column;
    }
    
    .category-expertises .col-md-3,
    .category-expertises .col-md-4,
    .category-expertises .col-md-5 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Author */
    .author {
        flex-direction: column;
        text-align: center;
    }
    
    .author .name {
        margin-bottom: 0.5rem;
    }
    
    /* JS Menu */
    .js-menu {
        display: block;
        background-color: var(--white);
        border: none;
        color: var(--primary);
        font-size: 1.2rem;
        padding: 0.5rem;
        border-radius: 50%;
        /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        order: -1;
        margin-right: 0.5rem;
    }
    
    .js-menu:hover {
        background-color: var(--gray-100);
        color: var(--primary);
    }
    
    /* Container mobile header */
    .d-lg-none .d-flex {
        justify-content: space-between !important;
        align-items: center;
        width: 100%;
    }
    
    .main-menu {
        display: none;
    }
}

/* Écrans moyens (992px et plus) */
@media (min-width: 992px) {
    .js-menu {
        display: none;
    }
}

/* ========================================
   ÉCRANS LARGES
   ======================================== */

/* Écrans très larges (1200px et plus) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Écrans extra larges (1400px et plus) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (max-width: 767px) {
    .category-expertise .article-image,
    .category-expertise .article-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {
    /* Force l'affichage des images à la une dans category-expertises */
    .category-expertises .col-md-5,
    .category-expertises .col-md-5 a,
    .category-expertises .col-md-5 picture,
    .category-expertises .col-md-5 img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force l'affichage des images à la une dans category-expertise (sans s) */
    .category-expertise .article-image,
    .category-expertise .article-image img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Garde les avatars d'auteurs à leur taille normale */
    .category-expertises .author-avatar img,
    .category-expertise .author-avatar img {
        width: auto !important;
        height: auto !important;
    }
    
    /* Réduit les espaces entre les éléments sur mobile */
    .category-expertises .col-md-3,
    .category-expertises .col-md-4,
    .category-expertises .col-md-5 {
        margin-bottom: 0.5rem !important;
        padding: 0 !important;
    }
    
    .category-expertises .col-md-5 {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .category-expertises .col-md-4 {
        margin-top: 0.5rem !important;
    }
    
    .category-expertises .article-content {
        padding: 0.5rem 0 !important;
    }
    
    .category-expertises .article-content h1 {
        margin-bottom: 0.5rem !important;
    }
    
}

/*****************************  MOTEUR DE RECHERCHE - DESIGN CodexMania Theme Atman TV */
.js-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-left: 2rem;
}

.js-search:hover {
    transform: scale(1.1);
}

.js-search .search {
    width: 30px;
    height: 30px;
    color: var(--black);
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.js-search:hover .search {
    color: var(--dark-gray);
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(0%) contrast(100%);
}

/* Popup de recherche */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-popup.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.search-popup-content {
    background: var(--white);
    border: 1px solid var(--border-gray);
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-popup.active .search-popup-content {
    transform: translateY(0);
}

.search-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
}

.search-popup-title {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-popup-close:hover {
    background: var(--background-gray);
    color: var(--black);
    transform: scale(1.1);
}

.search-form {
    position: relative !important;
    margin-bottom: 2rem !important;
    background: var(--white) !important;
    padding: 2rem !important;
    border: 1px solid var(--border-gray) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.search-input {
    width: 100% !important;
    padding: 1.5rem 1rem 1.5rem 4rem !important;
    border: 2px solid var(--border-gray) !important;
    font-family: var(--font-default) !important;
    font-size: 1.1rem !important;
    background: var(--white) !important;
    transition: all 0.3s ease !important;
    color: var(--black) !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.search-input:focus {
    outline: none !important;
    border-color: var(--black) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.search-input::placeholder {
    color: var(--light-gray) !important;
    font-family: var(--font-default) !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

.search-icon-input {
    position: absolute !important;
    left: 1.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    color: var(--medium-gray) !important;
    pointer-events: none !important;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%) !important;
}

.search-button {
    background: var(--black) !important;
    color: var(--white) !important;
    border: 2px solid var(--black) !important;
    padding: 1.2rem 2.5rem !important;
    font-family: var(--font-menu) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
}

.search-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.search-button:hover {
    background: var(--white) !important;
    color: var(--black) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.search-button:hover::before {
    left: 100% !important;
}

.search-button:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Résultats de recherche */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 2rem;
    background: var(--white);
    border: 1px solid var(--border-gray);
}

.search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--background-gray);
}

.search-result-title {
    font-family: var(--font-default);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.search-result-excerpt {
    font-family: var(--font-default);
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.4;
}

.search-result-meta {
    font-family: var(--font-default);
    font-size: 0.8rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
}

/* Animation d'entrée */
@keyframes searchPopupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.search-popup.active .search-popup-content {
    animation: searchPopupIn 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .search-popup-content {
        padding: 2rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .search-popup-title {
        font-size: 1.5rem;
    }
    
    .search-input {
        padding: 1rem 0.8rem 1rem 3rem;
        font-size: 0.9rem;
    }
    
    .search-icon-input {
        left: 1rem;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .search-popup-content {
        padding: 1.5rem;
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .search-popup-title {
        font-size: 1.3rem;
    }
    
    .search-input {
        padding: 0.8rem 0.6rem 0.8rem 2.5rem;
        font-size: 0.85rem;
    }
    
    .search-icon-input {
        left: 0.8rem;
        width: 16px;
        height: 16px;
    }
    
    .search-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Widget Articles Populaires - Styles complets */
.widget.widget_gwa_popular_posts_widget .card {
    background-color: var(--white);
    border: none;
    box-shadow: none;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    width: 100% !important;
}

.widget.widget_gwa_popular_posts_widget .widget-title {
    /* Style uniforme appliqué via .widget-title global */
    border-bottom: 1px solid var(--border-gray);
    padding: 0.5rem 0;
    width: 100% !important;
}

.widget.widget_gwa_popular_posts_widget .popular-posts-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100% !important;
}

.widget.widget_gwa_popular_posts_widget .article-item {
    border-bottom: 1px solid var(--border-gray);
    width: 100% !important;
    /*padding-bottom: 1rem;
    margin-bottom: 1rem;*/
}

.widget.widget_gwa_popular_posts_widget .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.widget.widget_gwa_popular_posts_widget .module-link {
    display: block;
    padding: 0.5rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    width: 100% !important;
}

.widget.widget_gwa_popular_posts_widget .module-link:hover {
    transform: translateX(5px);
    text-decoration: none !important;
}

.widget.widget_gwa_popular_posts_widget .article-thumbnail {
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
    /*padding-top: 56.25%;  Ratio 16:9 */
}

.widget.widget_gwa_popular_posts_widget .article-thumbnail img {
    width: 100%;
    height: auto;
    border-top-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.widget.widget_gwa_popular_posts_widget .article-text {
    font-weight: 600;
    color: var(--black);
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.widget.widget_gwa_popular_posts_widget .views-count {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Classes de couleurs pour le widget Articles Populaires */
.font-popular-leger {
    color: var(--font-red-leger) !important;
}

.font-popular-fonce {
    color: var(--font-red-fonce) !important;
}

.bg-popular-leger {
    background-color: var(--bg-redphone-leger) !important;
}

.bg-popular-fonce {
    background-color: var(--bg-redphone-fonce) !important;
}

/* Media queries pour le widget Articles Populaires */
@media (max-width: 991px) {
    .widget.widget_gwa_popular_posts_widget {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-item .row {
        flex-direction: row !important;
        align-items: center;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-order {
        order: 1;
        text-align: center;
        padding: 0.15rem;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-content-wrapper {
        order: 2;
        gap: 0.75rem;
        padding: 0.15rem;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-text {
        font-size: 0.8rem !important;
        line-height: 1.3;
    }
    
    .widget.widget_gwa_popular_posts_widget .order-number {
        font-size: 1.2rem;
    }
    
    .widget.widget_gwa_popular_posts_widget .views-count {
        font-size: 0.6rem;
    }
}

@media (max-width: 767px) {
    .widget.widget_gwa_popular_posts_widget .article-item .row {
        flex-direction: column;
        text-align: center;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-order {
        order: 1;
        margin-bottom: 0.5rem;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-title {
        order: 2;
        margin-bottom: 0.5rem;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-image {
        order: 3;
    }
    
    .widget.widget_gwa_popular_posts_widget .order-number {
        font-size: 1.2rem;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-text {
        font-size: 0.9rem;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-thumbnail {
        max-width: 80%;
    }
    
    .widget.widget_gwa_popular_posts_widget .views-count {
        font-size: 0.6rem;
    }
}

/* Widget Articles Populaires - Affichage en colonnes */


.widget.widget_gwa_popular_posts_widget .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}


/* Colonne Ordre */
.widget.widget_gwa_popular_posts_widget .article-order {
    text-align: center;
    padding: 0.25rem;
}



.widget.widget_gwa_popular_posts_widget .order-number {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    /*color:  var(--border-gray)!important;*/
    color: #e0e0e0 !important;
    font-family: var(--font-logo);
    line-height: 1;
    padding: 1em;
}



.widget.widget_gwa_popular_posts_widget .views-count {
    font-size: 0.7rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
    font-family: var(--font-default);

}

/* Wrapper pour le contenu (titre + image) */
.widget.widget_gwa_popular_posts_widget .article-content-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem;
}

/* Colonne Titre */
.widget.widget_gwa_popular_posts_widget .article-title {
    flex: 1;
    min-width: 0; /* Pour permettre le rétrécissement */
}

.widget.widget_gwa_popular_posts_widget .article-link {
    text-decoration: none !important;
    color: var(--black);
    transition: color 0.3s ease;
}

.widget.widget_gwa_popular_posts_widget .article-link:hover {
    color: var(--font-red-fonce);
    text-decoration: none !important;
}

.widget.widget_gwa_popular_posts_widget .article-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    font-family: var(--font-default);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Colonne Image */
.widget.widget_gwa_popular_posts_widget .article-image {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget.widget_gwa_popular_posts_widget .article-thumbnail {
    max-width: 100%;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover;
    border-top-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.widget.widget_gwa_popular_posts_widget .article-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.widget.widget_gwa_popular_posts_widget .no-image-placeholder {
    background-color: var(--background-gray);
    border: 1px dashed var(--border-gray);
    padding: 2rem 1rem;
    border-radius: 8px;
    color: var(--medium-gray);
    font-size: 0.8rem;
    font-family: var(--font-default);
}

@media (max-width: 767px) {
    .widget.widget_gwa_popular_posts_widget .article-item .row {
        flex-direction: row !important;
        align-items: center;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-order {
        order: 1;
        text-align: center;
        padding: 0.1rem;
    }

    .widget.widget_gwa_popular_posts_widget .article-content-wrapper {
        order: 2;
        gap: 0.5rem;
        padding: 0.1rem;
        color: var(--light-gray);
        font-size: 2em;
    }

    
    .widget.widget_gwa_popular_posts_widget .article-thumbnail {
        max-height: 40px;
        width: auto;
        height: auto;
        padding-top: 0;
    }
    
    .widget.widget_gwa_popular_posts_widget .article-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .widget.widget_gwa_popular_posts_widget .order-number {
        font-size: 1rem;
    }
    
    .widget.widget_gwa_popular_posts_widget .views-count {
        font-size: 0.5rem;
    }
}

/* Styles pour la nouvelle structure de colonnes dans category.php */
.new-module-category {
    height: 100%;
    min-height: 400px;
  /*  margin: 0 4em 0 0;*/
}

.widget-module-placeholder {
    height: 100%;
    min-height: 400px;
}

.widget-module-placeholder .card {
    height: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 0;
}

.widget-module-placeholder .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.widget-module-placeholder .widget-title {
    color: var(--black);
    font-family: var(--font-default);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.widget-module-placeholder p {
    color: var(--medium-gray);
    font-family: var(--font-default);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

/* Responsive pour la nouvelle structure de colonnes */
@media (max-width: 991px) {
    .new-module-category {
        margin-top: 2rem;
        min-height: 300px;
    }
    
    .widget-module-placeholder {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .new-module-category {
        margin-top: 1.5rem;
        min-height: 250px;
    }
    
    .widget-module-placeholder {
        min-height: 250px;
    }
    
    .widget-module-placeholder .card-body {
        padding: 1.5rem;
    }
    
    .widget-module-placeholder .widget-title {
        font-size: 1.1rem;
    }
    
    .widget-module-placeholder p {
        font-size: 0.85rem;
    }
}


/* Correctif pour forcer l'affichage du contenu des pages single sur mobile */
@media (max-width: 767px) {
  /* Empêcher le débordement horizontal sur mobile */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .container, .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .col, .col-12, .col-sm-12, .col-md-12, .col-lg-12 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* CORRECTION : Masquer les éléments dupliqués du header sur mobile */
  .site-header .d-none.d-xl-block {
    display: none !important;
  }
  
  .single .entry-title, 
  .single .entry-content,
  .entry-title, 
  .entry-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--black) !important;
    position: static !important;
    z-index: 9999 !important;
    background: transparent !important;
    overflow: visible !important;
    height: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    clip: auto !important;
    clip-path: none !important;
  }
  

  
  /* Forcer l'affichage des conteneurs parents */
  .single article,
  .single .col-md-9,
  .single .col-12,
  .single .row,
  .single .container,
  .single .container-fluid {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    height: auto !important;
    width: auto !important;
  }
}


@media (max-width: 393px) {
    .single .entry-meta {

        margin: 10px 0 !important;
        padding: 0 !important;

    }
}

/* ========================================
   ICÔNES RÉSEAUX SOCIAUX - MODULES AUTEUR 40/60
   ======================================== */

/* Styles pour les icônes réseaux sociaux des modules auteur */
.author .share-section .social-icon-img,
.author-horizontal .share-buttons .social-icon-img {
    max-width: 30px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    padding: 0.3rem !important;
    transition: all 0.3s ease !important;
    object-fit: contain !important;
    background-color: transparent !important;
    mix-blend-mode: multiply !important;
    display: block !important;
    border: none !important;
    outline: none !important;
}

/* Couleurs spécifiques par réseau social pour les modules auteur */
.author .share-section a[data-social="x"] .social-icon-img,
.author-horizontal .share-buttons a[data-social="x"] .social-icon-img {
    background-color: var(--x-color) !important;
    mix-blend-mode: normal !important;
}

.author .share-section a[data-social="x"]:hover .social-icon-img,
.author-horizontal .share-buttons a[data-social="x"]:hover .social-icon-img {
    background-color: var(--x-hover) !important;
    box-shadow: 0 4px 8px rgba(29, 161, 242, 0.3) !important;
}

.author .share-section a[data-social="facebook"] .social-icon-img,
.author-horizontal .share-buttons a[data-social="facebook"] .social-icon-img {
    background-color: var(--facebook-color) !important;
    mix-blend-mode: normal !important;
}

.author .share-section a[data-social="facebook"]:hover .social-icon-img,
.author-horizontal .share-buttons a[data-social="facebook"]:hover .social-icon-img {
    background-color: var(--facebook-hover) !important;
    box-shadow: 0 4px 8px rgba(59, 89, 152, 0.3) !important;
}

.author .share-section a[data-social="instagram"] .social-icon-img,
.author-horizontal .share-buttons a[data-social="instagram"] .social-icon-img {
    background-color: var(--instagram-color) !important;
    mix-blend-mode: normal !important;
}

.author .share-section a[data-social="instagram"]:hover .social-icon-img,
.author-horizontal .share-buttons a[data-social="instagram"]:hover .social-icon-img {
    background-color: var(--instagram-hover) !important;
    box-shadow: 0 4px 8px rgba(193, 53, 132, 0.3) !important;
}


.author .share-section a[data-social="copy-site-link"] .social-icon-img,
.author-horizontal .share-buttons a[data-social="copy-site-link"] .social-icon-img {
    background-color: #20C997 !important;
    mix-blend-mode: normal !important;
    border: 1px solid #ccc !important; /* ✅ bordure grise */
    border-radius: 6px; /* optionnel : coins arrondis */
}

.author .share-section a[data-social="copy-site-link"]:hover .social-icon-img,
.author-horizontal .share-buttons a[data-social="copy-site-link"]:hover .social-icon-img {
    background-color: #20C997 !important;
    box-shadow: 0 4px 8px rgba(193, 53, 132, 0.3) !important;
    border: 1px solid #999 !important; /* ✅ bordure plus foncée au hover */
}



/* Effets hover pour les modules auteur */
.author .share-section a:hover,
.author-horizontal .share-buttons a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Forcer l'apparence ronde des icônes */
.author .share-section a,
.author-horizontal .share-buttons a {

}

/* Styles responsives pour mobile */
@media (max-width: 767px) {
    .author .share-section .social-icon-img,
    .author-horizontal .share-buttons .social-icon-img {
        width: 25px !important;
        height: 25px !important;
        padding: 0.25rem !important;
    }
}

/* ===============================================================
   category.php – STYLE DU TITRE DU DERNIER ARTICLE DE CATÉGORIE
   Cible : .la-une-categorie .entry-title
   Rôle : Couleur, taille et lisibilité du titre
   =============================================================== */

.la-une-categorie .entry-title-category {
    font-size: 1.5rem !important;     /* 🔸 Taille du texte (responsive) */
}

/* ========================================
   CORRECTIONS MOBILE - PROBLÈMES DE FLOAT
   ======================================== */

@media (max-width: 767px) {
    /* Correction des problèmes de float */
    .container, .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    
    .row {
        margin-left: -15px !important;
        margin-right: -15px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        box-sizing: border-box !important;
    }
    
    .col, .col-12, .col-sm-12, .col-md-12, .col-lg-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    /* Correction de la section principale */
    .main-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .gwa-main-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Correction des articles */
    article {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
    }
    
    /* Correction des widgets */
    .widget {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
    }
    
    /* Correction des cartes */
    .card {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
    }
    
    /* Correction de la navigation */
    .site-header {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Correction du footer */
    .site-footer {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Correction des images */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Correction des liens */
    a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Correction des titres */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Correction du contenu */
    .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Correction de la recherche */
    .search-title {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 1.5rem !important;
    }
    
    /* Correction de la pagination */
    .pagination {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .pagination .page-numbers {
        display: inline-block !important;
        margin: 0 0.25rem !important;
    }
}

@media (max-width: 480px) {
    /* Corrections supplémentaires pour très petits écrans */
    .container, .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    .col, .col-12, .col-sm-12, .col-md-12, .col-lg-12 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .search-title {
        font-size: 1.25rem !important;
    }
}




.meta-line {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;

}

.meta-line .entry-meta {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.meta-line .meta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0.5rem !important;
}

.meta-line .meta img {
    height: 20px !important;
    vertical-align: middle !important;
    margin-left: 0px !important;
    margin-right: 8px !important;
}

/*
  Surcharge de la classe Bootstrap .container
  Pour limiter la largeur maximale à 1500px sur grands écrans
  ⚠️ Ce changement affecte tous les containers du site
  💡 Utilisé pour garder un alignement cohérent avec les grilles personnalisées
*/


.container-fluid {
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}



/*
  ✅ Correctif Safari uniquement — flex-gap non pris en charge avant Safari 14.1
  ✅ Classe .fix-gap à appliquer sur les conteneurs flex pour simuler le gap
  ✅ Ne s'applique qu'à Safari grâce à la détection via @media + @supports
 */


@media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
        .fix-gap {
            gap: 0 !important;
            margin-left: -0.5rem !important;
            margin-right: -0.5rem !important;
        }

        .fix-gap > * {
            margin-left: 0.5rem !important;
            margin-right: 0.5rem !important;
        }
    }
}

/*
 * Responsive pour les écrans inférieurs à 768px (Bootstrap < md)
 * → Applique un style spécifique à la classe .last-article sur mobile et petites tablettes :
 *    - largeur 100%
 *    - marge horizontale de 10px
 *    - fond personnalisé (#857e52)
 *    - bordure rouge (via variable CSS ou rouge par défaut)
 *    - padding intérieur de 10px
 */
@media (max-width: 767.98px) {
    .last-article {
        width: 100% !important;
        /*background-color: #857e52 !important;
        border: 1px solid var(--border-red, red) !important;*/
        padding: 0 15px !important;
    }
    .last-article .article-thumbnail img {
        position: absolute!important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}


.pagination-container { text-align: center !important; }
.pagination-container .navigation { text-align: center !important; }
.pagination-container .nav-links { text-align: center !important; }
/* Pagination */
.pagination {
    margin: 2rem auto;
    text-align: center  !important;;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid var(--border-gray);
    text-decoration: none;
    color: var(--black);
}

.pagination .page-numbers.current {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.badge {
    --bs-badge-font-weight: 500 !important;
}

/* ============================
   Catégorie Émissions (portrait)
   ============================ */

.gwa-emissions-grid {
    display: grid;
    grid-template-columns: repeat(var(--emissions-cols-desktop, var(--emissions-cols, 5)), 1fr);
    gap: 12px;
}

.gwa-emission-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Bouton d'édition front pour category-emissions (admin connecté) */
.gwa-emission-card-edit {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 2px 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.gwa-emission-card-edit .gwa-title-edit-wrap {
    margin: 0;
    font-size: 0.78rem;
}

.gwa-emission-card-edit .gwa-title-edit-link {
    color: #1d2327;
}

.gwa-emission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gwa-emission-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.gwa-emission-card-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Image portrait — ratio 9:16 (shorts), taille adaptée à la card */
.gwa-emission-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    flex-shrink: 0;
}

.gwa-emission-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gwa-emission-card:hover .gwa-emission-card-img {
    transform: scale(1.05);
}

.gwa-emission-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    font-size: 2.5rem;
    color: #999;
}

.gwa-emission-card-body {
    padding: 8px 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gwa-emission-play-icon {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.75rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    transition: background 0.2s ease;
}

.gwa-emission-card:hover .gwa-emission-play-icon {
    background: rgba(200, 0, 0, 0.85);
}

.gwa-emission-card-univers {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--font-red-fonce, #c0392b);
    margin-bottom: 2px;
}

.gwa-emission-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #1d2327;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive tablette : nombre configurable */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gwa-emissions-grid {
        grid-template-columns: repeat(var(--emissions-cols-tablet, var(--emissions-cols-desktop, var(--emissions-cols, 5))), 1fr) !important;
    }
}

/* Responsive mobile : nombre configurable */
@media (max-width: 767.98px) {
    .gwa-emissions-grid {
        display: grid !important;
        grid-template-columns: repeat(var(--emissions-cols-mobile, var(--emissions-cols-tablet, var(--emissions-cols-desktop, var(--emissions-cols, 2)))), 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .gwa-emission-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .gwa-emission-card-thumb {
        aspect-ratio: 9 / 16 !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .gwa-emission-card-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .gwa-emission-card-link {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .gwa-emission-card-body {
        padding: 8px 10px 12px !important;
    }

    .gwa-emission-card-title {
        font-size: 0.85rem !important;
    }
}

/* Correctif mobile: menu "Liens et search" respecte les marges page */
@media (max-width: 767.98px) {
    .site-description .language-elements {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        gap: 0.45rem !important;
    }

    .site-description .language-elements .language-line {
        display: none !important;
    }

    .site-description .language-elements .language-link {
        width: auto !important;
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 10px !important;
        border-radius: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .site-description .language-elements .js-search {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    .site-description .language-elements .badge {
        padding: 0 !important;
        max-width: 100% !important;
        white-space: nowrap !important;
    }
}

/* Correctif modal recherche: input visible + bouton stable sur mobile */
#searchModal .search-form {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--border-gray) !important;
    box-shadow: none !important;
}

#searchModal .search-form .search-field {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid var(--border-gray) !important;
    border-radius: 8px !important;
    background: var(--white) !important;
    box-sizing: border-box !important;
    font-size: 16px !important; /* evite le zoom iOS et les sauts de layout */
    line-height: 1.2 !important;
}

#searchModal .search-form .search-field:focus {
    outline: none !important;
    border-color: var(--black) !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08) !important;
    transform: none !important;
}

#searchModal .search-form .search-submit {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    height: 44px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    transform: none !important;
}

@media (max-width: 575.98px) {
    #searchModal .search-form {
        gap: 6px !important;
        padding: 10px !important;
    }

    #searchModal .search-form .search-submit {
        padding: 0 12px !important;
        font-size: 14px !important;
    }
}


/*
body::before{content:"CSS-SERVER-OK";position:fixed;top:0;left:0;z-index:99999;background:#000;color:#fff;padding:2px 6px;font-size:11px}
*/