/* ===============================
   FONTS (Playfair Display + Lora)
==================================*/

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;700&family=Playfair+Display:wght@700;800&display=swap');
html {
    scroll-behavior: smooth;
}
/* ===============================
   VARIABLES
==================================*/
:root{
  --red:#D21034;              /* rouge révolution */
  --green:#006633;            /* vert écolo */
  --text:#222;
  --muted:#777;
  --light:#f5f5f5;
  --line:#e5e5e5;
  --dark:#111;
}

/* ===============================
   RESET GLOBAL & TYPO
==================================*/
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Lora','Work Sans', 'Montserrat','Bebas Neue', 'Merriweather', serif; /* corps */
  color:var(--text);
  background:#fff;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background: url('https://ruptures-populaires.com/wp-content/uploads/2025/12/Gemini_Generated_Image_iqmfmniqmfmniqmf.png') no-repeat center center fixed;
  background-size: cover; /* ✅ couvre tout l’écran */
}
h1,h2,h3,h4,h5,h6{
  font-family:'Playfair Display', 'Montserrat', 'Merriweather', serif; /* titres */
  color:var(--text);
  margin:0 0 .5em;
  line-height:1.25;
  letter-spacing:.2px;
}
h1{font-size:2.2rem}
h2{font-size:1.75rem}
h3{font-size:1.3rem}
p{margin:0 0 1em}
a{color:var(--red);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--green)}

/* ===============================
   HEADER (Citation au-dessus)
==================================*/
/* ===============================
   HEADER (Citation au-dessus)
==================================*/
/* On s'assure que le header d'origine ne gêne pas */
#site-header {
    position: absolute;
    width: 100%;
    z-index: 100;
}
.site-description {
  color: #333333;
  font-family: 'Playfair Display', serif; /* police élégante */
  font-style: italic;
  font-size: 0.9em; /* taille réduite */
  margin: 0.2em auto;
  line-height: 1.4;
  display: inline-block;
  max-width: 75%;
  background: #f9f9f9;
  padding: 0.4em 0.8em;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}




.site-description::before {
  content: "“";
  left: -0.6em;
  top: -0.2em;
}

.site-description::after {
  content: "”";
  right: -0.6em;
  bottom: -0.2em;
}

/* Effet léger pour la modernité */
.site-description {
  background: #f9f9f9;
  padding: 0.5em 1em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


/* ===============================
   MENU PRINCIPAL (centré, noir transparent)
==================================*/
.main-navigation{
  background:rgba(0,0,0,.85);
  backdrop-filter:blur(6px);
  width:100%;
  position:sticky; top:0; z-index:1000;
  padding:1em 3em;
}
.main-menu-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* aligne tout à gauche */
  gap: 4.5em; /* espace entre le titre/logo et le menu */
}

.site-title {
  margin: 0;
  display: flex;
  align-items: center;
   font-family: 'Bebas Neue', serif !important;
}

.site-title a {
  color:  #b30000;
  font-weight: 800;
   font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;   /* taille augmentée */
  letter-spacing: 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5em; /* espace logo / texte */
}

.site-logo {
  width: 80px;
  height: auto;
  display: block;
}

.main-menu-list{
  list-style:none; margin:0; padding:0;
  display:flex; gap:4em;
}
.main-menu-list li{display:inline-block}
/* Couleur des catégorie du menu principal */
.main-menu-list a{
  color:#ffffffa1; font-weight:600; transition:opacity .25s,color .25s;
}
.main-menu-list a:hover{opacity:.85; color:rgb(255, 255, 255)}

/* ===============================
   MENU SECONDAIRE (thèmes)
==================================*/
.secondary-menu{
  background:#f9f9f9;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:.6em 0;
}
.secondary-menu-list{
  list-style:none; margin:0; padding:0;
  display:flex; justify-content:center; gap:2em;
}
.secondary-menu-list li{
  position:relative; padding:0 1em; display:inline-block;
}
/* séparateurs verticaux */
.secondary-menu-list li:not(:last-child)::after{
  content:""; position:absolute; right:0; top:20%;
  width:1px; height:60%; background:#ccc;
}
.secondary-menu-list a{
  color:rgba(0, 0, 0, 0.506); font-weight:500;
  padding:.3em .6em; border-radius:4px;
  transition:color .2s,border-color .2s,background .2s;
}
.secondary-menu-list a:hover{color:black}
/* catégorie active (WordPress ajoute .current-cat / .current-menu-item) */
.secondary-menu-list .current-cat a,
.secondary-menu-list .current-menu-item a{
  background:#eaeaea;   /* gris clair */
  color:#000;           /* texte noir */
  font-weight:600;
  border-radius:6px;    /* coins arrondis modernes */
}



/* ===============================
   GRILLE D'ARTICLES (Accueil/Catégories)
==================================*/
/* ===============================
   GRILLE D'ARTICLES (Accueil/Catégories)
==================================*/
.articles-grid{

  display:grid;
  grid-template-columns:repeat(3, 1fr); /* 3 colonnes plein écran */
  gap:20px; /* espace entre les blocs */
  width:calc(100% - 40px); /* marge latérale */
  margin:0 20px;
}
.article-horizontal-block {
    display: flex; 
    flex-direction: column;
    width: 100%;
    height: 400px; /* hauteur fixe pour uniformité */
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.article-horizontal-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Image occupe toujours 3/5 du bloc */
.article-thumb {
    width: 100%;
    height: 60%; /* exactement 3/5 */
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: #ddd;
}

.article-thumb img {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform .4s ease;
}

.article-horizontal-block:hover .article-thumb img {
    transform: scale(1.05);
}

/* Contenu texte prend le reste */
.article-content {
    flex: 1;
    height: 40%; /* reste 2/5 */
    padding: 17px;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
    font-family: 'Lora', serif;
    overflow: hidden; /* évite de dépasser si le texte est trop long */
}

.article-category {
    display: inline-block;
    background: #d7d2d2; /* gris foncé */
    color: #222;
    font-size: 0.7rem; /* taille légèrement réduite */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: .25em .6em; /* un peu plus petit */
    border-radius: 8px;
    margin-right: 0.5rem; /* espace entre les catégories */
    margin-bottom: 0.6rem; /* espace vertical */
    transition: background .3s, color .3s;
}

.article-category:hover {
    background: #a9a9a9; /* gris foncé au survol */
    color: #000;
}


.article-title a {
    color: #000; /* noir */
    font-family: 'Playfair Display', serif; /* police du menu secondaire */
    font-weight: 700; /* plus gras */
    font-size: 1.6rem; /* plus grand que le texte normal */
    line-height: 1.3;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.article-title a:hover {
    color: #5b2b2b;
}

.article-excerpt {
    color: #444;
    font-size: .95rem;
    line-height: 1.5;
    margin-top: .8rem;

    /* Limite le texte à 3 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

/* Ajoute [...] à la fin pour signaler la continuation */
.article-excerpt::after {
    content: ' [...]';
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff; /* même couleur que le bloc */
    padding-left: 0.2em;
    font-weight: 600;
}

.single-post-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
/* Marge avec le second menu seulement sur la page d’accueil */
.home .articles-grid {
  margin-top: 30px;
}

.single-post-meta .meta-icon {
  width: 20px;   /* adapte la taille selon ton image */
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
}
/* ===============================
   TITRE & DESCRIPTION DE CATÉGORIE
==================================*/
/* Style générique du bloc catégorie */
.category-title {
  display: inline-block;
  padding: 0.6em 0.6em;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 8px;
  color: black;

  /* Ajout des marges */
  margin-top: 1.5rem;     /* espace entre menu secondaire et bloc */
  margin-bottom: 0rem; /* espace sous le bloc */
  margin-left: 1.4rem;    /* espace par rapport au bord gauche */
  margin-right: 1rem;   /* espace par rapport au bord droit */
}



.category-description{color:#555; margin-bottom:24px}


/* FOOTER (partie inférieure) */
footer, .site-footer{
  background:#1a1a1a;
  color:#eee;
  padding:28px 20px;
  margin-top:32px;
  border-top:4px solid var(--red);
}

.site-footer-inner{
  max-width:1200px; 
  margin:0 auto;
  display:flex; 
  flex-wrap:wrap; 
  gap:24px; 
  align-items:flex-start;
}

.site-footer .footer-col{flex:1 1 260px}

.site-footer h4{
  margin:0 0 .6em; 
  font-size:1.1rem; 
  color:#fff;
}

.site-footer p, .site-footer li, .site-footer a{
  color:#d9d9d9; 
  font-size:.95rem;
}

.site-footer a{transition:color .2s}
.site-footer a:hover{color:#9cffb1} 

.site-footer .copyright{
  margin-top:18px; 
  font-size:.9rem; 
  color:#bfbfbf;
  border-top:1px solid #2a2a2a; 
  padding-top:14px;
}

/* ===== Réseaux sociaux sur la même ligne que "Suivez-nous" ===== */
.footer-contact-social {
  display: inline-flex;       /* texte et icônes sur la même ligne */
  align-items: center;
  gap: 10px;                  /* espace entre le texte et les icônes */
}

.footer-contact-social span {
  font-weight: 600;           /* pour le texte "Suivez-nous:" */
}

.footer-contact-social a {
  margin: 0 4px;              /* petit espace entre icônes */
  font-size: 1.2em;           /* taille des icônes */
  color: #d9d9d9;
  transition: color 0.2s;
}

.footer-contact-social a:hover {
  color: #9cffb1;             /* couleur au survol */
}


/* RESPONSIVE */
@media (max-width:1100px){
  .articles-grid{grid-template-columns:1fr; width:calc(100% - 20px); margin:0 10px;}
  .article-horizontal-block{flex-direction:column; min-height:auto}
  .article-thumb{flex:none; width:100%; height:220px}
}

@media (max-width:640px){
  .main-menu-list{gap:1.5em; font-size:.95rem}
  .site-title a{font-size:1.5rem}
  .secondary-menu-list{gap:1em}
}
@media (max-width:640px){
    .article-title a {
        font-size: 1.3rem;
    }
}

/* ====== FOOTER ====== */
#site-footer {
    background: #111;
    color: #eee;
    padding: 2em 1.5em 1em; /* Réduit de 3em à 2em en haut, 1em en bas */
    font-family: 'Lora', serif;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em; /* Réduit l'espace entre colonnes */
    max-width: 1100px;
    margin: 0 auto;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em; /* Légèrement plus petit */
    margin-bottom: 0.5em; /* Moins d'espace sous le titre */
    color: #fff;
    border-bottom: 1px solid #b30000; /* Ligne plus fine */
    padding-bottom: 0.3em;
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5em; /* Réduit de 2em */
    font-size: 0.8em;
    border-top: 1px solid #222;
    padding-top: 1em;
}

.footer-column {
    font-size: 0.95em;
    line-height: 1.6;
}



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

.footer-links li {
    margin-bottom: 0.5em;
}

.footer-links a {
    text-decoration: none;
    color: #bbb;
    transition: color 0.3s;
}

.footer-links a i {
    margin-right: 8px;
    color: #b30000;
}

.footer-links a:hover {
    color: #fff;
}

/* Footer - icônes sociales seules */
.footer-socials {
    display: flex;
    justify-content: flex-start; /* tu peux mettre center si tu veux centré */
    align-items: center;
    gap: 12px;              /* espace entre les icônes */
    margin: 10px 0 0;       /* marge en haut */
}

.footer-socials a {
    color: #d9d9d9;
    font-size: 1.2em;       /* taille des icônes */
    transition: color 0.25s;
}

.footer-socials a:hover {
    color: #9cffb1;         /* vert doux au survol */
}

.footer-bottom {
    text-align: center;
    margin-top: 2em;
    font-size: 0.85em;
    border-top: 1px solid #333;
    padding-top: 1em;
    color: #aaa;
}

/* ====== POLICES ====== */

/* Menus principaux et secondaires en Playfair Display */



.main-menu-list a,
.secondary-menu-list a {
    font-family: 'Playfair Display', serif;
}
/* === Icônes pour le menu principal === */

/* Accueil */
.main-menu-list li.menu-accueil > a {
  background: url('https://ruptures-populaires.com/wp-content/uploads/2025/08/icons8-page-daccueil-64-1.png') no-repeat left center;
  background-size: 20px 20px;
  padding-left: 30px;
}

/* Analyses graphiques */
.main-menu-list li.menu-analyses > a {
  background: url('https://ruptures-populaires.com/wp-content/uploads/2025/08/icons8-graphique-combine-64.png') no-repeat left center;
  background-size: 20px 20px;
  padding-left: 30px;
}

/* Articles */
.main-menu-list li.menu-articles > a {
  background: url('https://ruptures-populaires.com/wp-content/uploads/2025/08/icons8-document-64.png') no-repeat left center;
  background-size: 20px 20px;
  padding-left: 30px;
}

/* Notre bibliothèque */
.main-menu-list li.menu-bibliotheque > a {
  background: url('https://ruptures-populaires.com/wp-content/uploads/2025/08/icons8-livre-de-philosophie-50-1.png') no-repeat left center;
  background-size: 20px 20px;
  padding-left: 30px;
}


.single-article {
    max-width: 1000px;   
    margin: 0 auto;
    padding: 2em 1em;
    font-family: 'Lora', serif;
}

.single-post-container {
  max-width: 1000px;       
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.single-post-header {
    padding-left: 260px;    
    padding-right: 20px;    
}

.single-post-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin: 18px auto 12px;
  line-height: 1.2;
  background: linear-gradient(90deg, #111, #444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.single-post-excerpt {
    font-family: 'Martel', 'Open Sans', Arial, sans-serif;
    font-size: 1.2em;
    font-style: italic;
    color: #444;
    margin-bottom: 1.5em;
    text-align: left;       
}

.single-post-meta {
    font-size: 1em;
    color: #666;
    display: flex;
    justify-content: flex-start; 
    gap: 1.2em;
    flex-wrap: wrap;
    padding-left: 260px;    
}
    
.single-post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-post-meta img.meta-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* Contenu principal */
.single-post-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  max-width: 860px;
  margin: 0 auto;
}
/* ✅ Nouvelle police pour tout le texte des articles */
.single-post-content p {
    font-family: 'Martel', 'Open Sans', Arial, sans-serif; /* police spéciale */
    text-align: justify;   /* ✅ texte justifié */
    line-height: 1.65;
    margin-bottom: 1em;
}
/* Titres dans l’article */
.single-post-content h2 {
  font-size: 1.6rem;
  margin: 36px 0 14px;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
}
.single-post-content h3 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
  color: #222;
}
.single-post-content h4 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #111;
}

.single-post-content h2 { scroll-margin-top: 110px; }

/* Séparateur */
.title-divider {
  width: 80px;
  height: 4px;
  margin: 14px auto 20px;
  border: none;
  background: linear-gradient(90deg, #ec9237, #ffb84d);
  border-radius: 3px;
}

/* ====== TOC ====== */
.article-content-wrapper { display: block; }

.article-toc {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  padding: 16px 20px 24px;
  margin: 20px 0 32px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  text-align: left; /* ✅ le sommaire reste lisible */
}

.article-toc > h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ddd;
}

.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.article-toc li { margin: 0; }

.article-toc a {
  color: #444;
  text-decoration: none;
  font-size: .95rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background .25s, color .25s;
}
.article-toc a:hover { background:#eee; color:#d72638; }

.article-toc::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:4px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(90deg,#d72638,#ff9800);
}

/* ====== VERSION STICKY (desktop) ====== */
.has-sticky-toc {
  display: grid;
  grid-template-columns: 220px 1fr; /* ✅ sommaire un peu réduit */
  gap: 32px;
  align-items: start;
  max-width: 1100px;   /* ✅ centré avec largeur cohérente */
  margin: 0 auto;
}

.has-sticky-toc .article-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  width: 100%;
  margin-left: -60px;   /* ✅ décalage doux vers la gauche */
}

.has-sticky-toc .article-toc ul { display: block; }
.has-sticky-toc .article-toc li { margin: 6px 0; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .has-sticky-toc {
    display: block;
    max-width: 95%;
  }
  .has-sticky-toc .article-toc {
    position: static;
    max-height: none;
    overflow: visible;
    margin-left: 0;
  }
}
/* ===============================
   META d'un article(Date, Auteur, Catégories)
==================================*/
.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center; /* centré comme dans ton code */
    gap: 20px;
    font-size: 0.95rem;
    font-family: 'Lora', serif;
    color: #555;
    margin-bottom: 25px;
    flex-wrap: wrap; /* pour éviter les soucis sur mobile */
}

/* Icônes */
.single-post-meta .meta-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    opacity: 0.8;
}

/* Catégories : ajout de la barre verticale sur l'article*/
.single-post-meta .single-post-categories {
    position: relative;
    padding-left: 20px; /* espace entre barre et texte */
    border-left: 2px solid rgba(0,0,0,0.1); /* barre fine et discrète */
}

/* Version plus moderne avec un dégradé */
.single-post-meta .single-post-categories::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #ec9237, #ffb84d);
    border-radius: 2px;
}
/* ===============================
   RESPONSIVE DESIGN
==================================*/

/* ✅ Tablettes (≤ 1024px) */
@media (max-width: 1024px) {
  /* Grille : passe à 2 colonnes */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer : 2 colonnes au lieu de 3 */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ✅ Mobiles (≤ 768px) */
@media (max-width: 768px) {
  /* Menu principal : aligné verticalement */
  .main-menu-wrapper {
    flex-direction: column;
    gap: 1.5em;
    padding: 1em;
  }

  .main-menu-list {
    flex-direction: column;
    gap: 1em;
    align-items: center;
  }

  .site-title a {
    font-size: 2rem;
    text-align: center;
  }

  /* Grille d’articles : 1 colonne */
  .articles-grid {
    grid-template-columns: 1fr;
  }

  /* Footer : 1 colonne */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }

  /* Titre + sommaire sans sticky */
  .has-sticky-toc {
    display: block;
  }
  .has-sticky-toc .article-toc {
    position: static;
    margin: 20px 0;
  }
}

/* ✅ Petits mobiles (≤ 480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }

  .article-title a {
    font-size: 1.2rem;
  }

  .single-post-meta {
    flex-direction: column;
    gap: 10px;
  }
}
/* ===============================
   Menu secondaire responsive (fix)
==================================*/
@media (max-width: 768px) {
  .secondary-menu-list {
    display: flex !important;
    flex-wrap: nowrap !important;        /* pas de retour à la ligne */
    overflow-x: auto !important;         /* scroll horizontal */
    -webkit-overflow-scrolling: touch;   /* fluide sur iOS */
    gap: 1em !important;
    padding: 0 10px !important;
    justify-content: flex-start !important; /* pas centré, aligné à gauche */
  }

  .secondary-menu-list li {
    flex: 0 0 auto !important;           /* chaque élément garde sa largeur */
  }

  /* Cacher scrollbar */
  .secondary-menu-list::-webkit-scrollbar {
    display: none;
  }
  .secondary-menu-list {
    scrollbar-width: none;
  }
}
@media (max-width: 768px) {
  .secondary-menu-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 1em !important;
    padding: 0 10px 0 15px !important;  /* 🔥 marge à gauche pour voir le 1er */
    justify-content: flex-start !important;
  }

  .secondary-menu-list li {
    flex: 0 0 auto !important;
    scroll-margin-left: 15px; /* sécurité si scroll auto est déclenché */
  }

  .secondary-menu-list::-webkit-scrollbar {
    display: none;
  }
  .secondary-menu-list {
    scrollbar-width: none;
  }
}
/* =========================================
   FIX RESPONSIVE — titre & métadonnées
   (à coller en fin de fichier)
========================================= */

/* Titre : taille fluide + wrap correct */
body.single .single-post-header .single-post-title {
  font-size: clamp(1.4rem, 6.2vw, 2.8rem) !important;
  line-height: 1.2 !important;
  margin: 8px auto 10px !important;
  padding: 0 6px;
  max-width: 94%;
  word-break: break-word;
  hyphens: auto;
}

/* Meta : wrap propre, centré, sans débordement */
body.single .single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  max-width: 100%;
  padding: 0 8px;
  text-align: center;
  font-size: 0.95rem;
}

body.single .single-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

/* Catégories en badges qui passent à la ligne si besoin */
body.single .single-post-categories {
  position: static;          /* neutralise la barre décorative à gauche */
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
body.single .single-post-categories::before { display: none; }

body.single .single-post-categories a {
  display: inline-block;
  background: #f6f6f6;
  border: 1px solid #eee;
  color: #222;
  padding: .22em .6em;
  font-size: 0.78rem;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: all .22s ease;
}
body.single .single-post-categories a:hover {
  background: #111;
  color: #fff;
}

/* Icônes */
body.single .single-post-meta .meta-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: .9;
}

/* ====== Breakpoints ====== */
@media (max-width: 768px) {
  body.single .single-post-header .single-post-title {
    font-size: clamp(1.35rem, 7.5vw, 2.1rem) !important;
  }
  body.single .single-post-meta {
    font-size: 0.9rem !important;
    gap: 8px 10px;
  }
  body.single .single-post-meta .meta-icon {
    width: 16px; height: 16px;
  }
  body.single .single-post-categories a {
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  body.single .single-post-header .single-post-title {
    font-size: clamp(1.2rem, 8vw, 1.6rem) !important;
  }
  body.single .single-post-meta {
    font-size: 0.85rem !important;
  }
  body.single .single-post-meta .meta-icon {
    width: 14px; height: 14px;
  }
}

/* === FIX TITRE ARTICLE RESPONSIVE === */

/* Desktop : on conserve l'alignement avec la colonne TOC */
@media (min-width: 1100px) {
  .single-post-header {
    padding-left: 260px;
    padding-right: 20px;
  }
}

/* Mobile / Tablette : on remet le header plein écran */
@media (max-width: 1099.98px) {
  .single-post-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .single-post-title {
    display: block !important;
    max-width: 100% !important;
    margin: 12px 16px !important;
    white-space: normal !important;
    word-break: normal !important;       /* pas de coupure agressive */
    overflow-wrap: anywhere !important;  /* autorise la coupure si besoin */
    text-align: center !important;
    line-height: 1.25 !important;
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
  }
}
/* === FIX MENU PRINCIPAL MOBILE et afficher le menu principal de gauche à droite=== */
@media (max-width: 768px) {
  .main-navigation {
    padding: 0.4em 0.8em !important;  /* réduit la hauteur */
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .main-menu-wrapper {
    flex-direction: row !important;
    justify-content: flex-start;
    gap: 1em;
    overflow-x: auto;         
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .main-menu-list {
    display: flex;
    gap: 1em;
  }

  .main-menu-list li {
    flex: 0 0 auto;
  }

  .site-title a {
    font-size: 1.6rem !important;  /* titre du site plus petit */
  }
}
/* === Menu principal en bas, version mobile uniquement === */
.primary-menu-bottom {
  background: #111; /* fond sombre */
  border-top: 2px solid var(--line);
  padding: 0.6em 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  overflow-x: auto;  /* scroll horizontal */
  -webkit-overflow-scrolling: touch; /* scroll fluide sur mobile */
}

.primary-menu-bottom-list {
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0 1em;
  list-style: none;
  white-space: nowrap; /* empêche le retour à la ligne */
}

.primary-menu-bottom-list li {
  display: inline-block;
}

.primary-menu-bottom-list a {
  color: #f5f5f5;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.primary-menu-bottom-list a:hover {
  color: #ec9237; /* orange moderne */
}


/* === BLOCS D’ARTICLES MODERNES (Accueil / Catégories) === */

/* Ajoute un overlay sur l’image */
.article-thumb {
  position: relative;
  overflow: hidden;
}
.article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.article-horizontal-block:hover .article-thumb::after {
  opacity: 1;
}

/* Effet hover global */
.article-horizontal-block {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.article-horizontal-block:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Badge catégorie modernisé */
.article-category {
  display: inline-block;
  padding: .35em .75em;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--light);
  color: var(--dark);
  transition: all .3s ease;
}
.article-category:hover {
  background: var(--dark);
  color: #fff;
}

/* Responsive accueil : 1 bloc par ligne en mobile */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .article-title a {
    font-size: 1.3rem;
  }
}

/* Caché sur desktop */
@media (min-width: 769px) {
  .primary-menu-bottom {
    display: none;
  }
}
/* === Mobile : masquer le menu principal du header et activer la barre bottom === */
@media (max-width: 768px) {

  /* masque uniquement les items du menu en haut (garde site-title/logo) */
  .main-navigation .main-menu-list,
  .main-navigation .main-menu-wrapper .main-menu-list {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* assure que la barre bottom (footer) s'affiche bien */
  .primary-menu-bottom {
    display: flex !important;
    -webkit-overflow-scrolling: touch;
  }

  /* ajoute un padding en bas pour éviter que la barre fixe recouvre le contenu */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  /* si la barre bottom a un height différent, ajuste padding-bottom en conséquence */
  /* ex: si primary-menu-bottom height = 56px -> padding-bottom: calc(56px + env(safe-area-inset-bottom)); */
}
/* Résumé en haut de l'article */
.single-post-excerpt {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #444;
  background: #f9f9f9;
  border-left: 4px solid #ec9237;
  padding: 14px 18px;
  margin: 0 auto 24px;
  border-radius: 6px;
  max-width: 760px;
  line-height: 1.6;
}
/* === ALIGNEMENT GLOBAL ARTICLE === */
body.single .single-post-header,
body.single .single-post-excerpt,
body.single .single-post-meta,
body.single .single-post-content {
  max-width: 900px;        /* largeur identique */
  margin: 0 auto;          /* centré horizontalement */
  padding-left: 0;         /* supprime les décalages */
  padding-right: 0;
  text-align: left;        /* alignement propre */
}

body.single .single-post-title {
  text-align: left;        /* ou center si tu préfères */
  margin: 0 auto 0.6em;
  max-width: 900px;
  padding: 0;
}

body.single .single-post-excerpt {
  text-align: left;
  margin: 0 auto 1.2em;
  padding: 0;
  max-width: 900px;
}

body.single .single-post-content img {
  display: block;
  margin: 1.5em auto;
  max-width: 100%;
  border-radius: 10px;
}
/* Image de couverture de l'article*/
.single-post-content img:first-of-type {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Blockquote modernisé */
.single-post-content blockquote {
  font-style: italic;
  background: #fafafa;
  border-left: 4px solid #b30000;
  padding: 16px 20px;
  margin: 22px auto;
  color: #555;
  border-radius: 6px;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .single-post-title {
    font-size: 1.9rem;
    padding: 0 10px;
  }
  .single-post-excerpt {
    font-size: 1rem;
    padding: 12px;
    margin: 0 10px 20px;
  }
  .single-post-meta {
    flex-direction: column;
    align-items: center;
  }
  .single-post-content {
    padding: 0 12px;
  }
}
/* === Effet dynamique façon magazine (Frustration / Orient XXI) === */
.article-horizontal-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 400px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1), 
              box-shadow 0.35s ease;
  cursor: pointer;
  will-change: transform;
}

.article-horizontal-block:hover {
  transform: translateY(-8px) rotate(-1deg) scale(1.02); /* 🔥 mouvement */
  box-shadow: 0 16px 42px rgba(0,0,0,0.18);
}

/* Image */
.article-thumb {
  position: relative;
  height: 60%;
  overflow: hidden;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-horizontal-block:hover .article-thumb img {
  transform: scale(1.08) rotate(1deg); /* 🔥 zoom + léger pivot */
}

/* Overlay sombre subtil */
.article-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.article-horizontal-block:hover .article-thumb::after {
  opacity: 1;
}

/* Contenu */
.article-content {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-family: 'Lora', serif;
  transition: transform 0.3s ease;
}
.article-horizontal-block:hover .article-content {
  transform: translateY(-4px); /* petit mouvement du texte */
}

/* Titre */
.article-title a {
  color: #111;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.3s ease;
}
.article-horizontal-block:hover .article-title a {
  color: var(--red);
}

/* Extrait */
.article-excerpt {
  color: #444;
  font-size: .95rem;
  line-height: 1.5;
  margin-top: .8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Catégorie */
.article-category {
  display: inline-block;
  border-radius: 20px;
  padding: .3em .9em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: #f4f4f4;
  color: #222;
  margin-bottom: 0.6rem;
  transition: all 0.3s ease;
}
.article-horizontal-block:hover .article-category {
  background: var(--dark);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .article-horizontal-block {
    height: auto !important;
    min-height: 320px;
  }
  .article-excerpt {
    -webkit-line-clamp: 5;
  }
  .article-title a {
    font-size: 1.3rem;
  }
}
/* --- RESET ET STRUCTURE DE BASE --- */
.modern-article-page {
    background-color: #fff;
    font-family: 'Lora', serif; /* Police de lecture principale */
    color: #333;
}

.article-container {
    max-width: 1100px; /* Largeur max du contenu */
    margin: 0 auto;
    padding: 60px 20px;
}

/* --- HEADER DE L'ARTICLE --- */
.article-header-modern {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.meta-cat-badge {
    display: inline-block;
    background-color: #d21034; /* Ton rouge */
    color: #fff;
    padding: 4px 12px;
    text-transform: uppercase;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 20px;
}

.entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; /* Gros titre */
    line-height: 1.15;
    color: #111;
    margin-bottom: 25px;
}

.entry-chapeau {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 30px;
}

/* Méta (Auteur / Date) */
.meta-info-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
}
.author-block img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

/* --- CORRECTION IMAGE À LA UNE --- */
.featured-image-wrapper {
    width: 100%;             /* Prend la largeur du conteneur */
    max-width: 1100px;       /* Ne dépasse pas la largeur du site */
    height: auto;            /* Hauteur automatique */
    margin: 0 auto 50px auto; /* Centré avec une marge en bas */
    overflow: hidden;        /* Coupe ce qui dépasse */
    border-radius: 12px;     /* Jolis coins arrondis */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Ombre légère */
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 550px;       /* Limite la hauteur pour ne pas prendre tout l'écran */
    object-fit: cover;       /* Recadre l'image proprement sans la déformer */
    display: block;
}

.image-caption {
    text-align: right;
    font-size: 0.85rem;
    color: #777;
    margin-top: 8px;
    font-style: italic;
    font-family: 'Work Sans', sans-serif;
}

/* --- LAYOUT GRILLE (Sidebar + Texte) --- */
.article-body-grid {
    display: grid;
    grid-template-columns: 360px 1fr; /* Sidebar gauche fixe + Texte fluide */
    gap: 50px;
    align-items: start;
}

/* --- SIDEBAR GAUCHE --- */
/* --- CORRECTION SOMMAIRE (POSITION) --- */
.sidebar-sticky-left {
    position: -webkit-sticky;
    position: sticky;
    top: 180px !important; /* On force la descente */
    z-index: 90;
    align-self: start;
    height: auto;
    overflow: visible;
}

/* Sommaire */
.toc-widget h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    border-bottom: 2px solid #d21034;
    padding-bottom: 5px;
    margin-bottom: 15px;
    display: inline-block;
}
/* =========================================
   CADRES DÉLIMITEURS POUR LE SOMMAIRE (TOC)
========================================= */

.toc-widget ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}
.toc-widget li {
    margin-bottom: 12px;
    line-height: 1.3;
}
.toc-widget a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.toc-widget a:hover {
    color: #d21034;
    font-weight: 600;
}
/* Partage */
.share-title {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: #999;
}
.share-icons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.share-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}
.share-icon:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* --- CONTENU TEXTE --- */
.entry-content-text {
    font-size: 1.15rem; /* Taille confortable ~18px */
    line-height: 1.8;
    color: #2c2c2c;
    max-width: 100%; /* Prend toute la place restante */
}

/* --- CORRECTION LETTRINE --- */
/* Cible le tout premier paragraphe, même s'il y a des div avant */
.entry-content-text p:first-of-type::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem; /* Un peu plus gros */
    line-height: 0.8;
    margin-right: 16px;
    margin-top: 8px;
    margin-bottom: -8px; /* Évite de décaler le texte en dessous */
    color: #d21034;
    font-weight: 700;
}



/* =========================================
   CADRE DÉLIMITEUR POUR LES TITRES DE L'ARTICLE
========================================= */
/* =========================================
   CADRE DÉLIMITEUR POUR LES TITRES (CORRIGÉ)
========================================= */

.entry-content-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #111;
    
    /* Couleur de fond plus contrastée */
    background: #f1f3f5; /* Un gris clair neutre qui tranche avec le blanc */
    
    /* Bordures plus nettes */
    border: 1px solid #dee2e6; 
    border-left: 6px solid var(--red); /* Votre rouge Ruptures pour l'accentuation */
    
    /* Espacement et forme */
    padding: 25px 30px;
    margin: 60px 0 30px;
    display: block;
    clear: both;
    border-radius: 4px 12px 12px 4px;
    
    /* Ombre un peu plus profonde pour décoller le titre du fond */
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.05);
    
    /* Correction pour le lien du sommaire */
    scroll-margin-top: 120px; 
}
/* Style optionnel pour les sous-titres h3 */
.entry-content-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

/* Citations */
.entry-content-text blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #d21034;
    border-left: 4px solid #d21034;
    margin: 40px 0;
    padding: 10px 30px;
    background: #fafafa;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .article-body-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
    
   /* --- CORRECTION SIDEBAR STICKY --- */
  .sidebar-sticky-left {
    position: -webkit-sticky; /* Pour Safari */
    position: sticky;
    top: 120px; /* ✅ Augmenté pour passer sous le menu du haut */
    z-index: 90; /* S'assure qu'il reste au-dessus du contenu standard */
    align-self: start;
}
    
    .featured-image-wrapper {
        margin-left: 0;
        margin-right: 0;
        left: 0;
        width: 100%;
    }
    
    .entry-title {
        font-size: 2rem;
    }
}
/* --- BARRE DE PROGRESSION --- */
#reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Un peu plus épais */
    background: transparent;
    z-index: 999999; /* ✅ Très haut pour être visible par dessus le menu */
}

#reading-progress-bar {
    height: 100%;
    background: #d21034; /* Rouge Ruptures */
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
/* La première lettre du premier paragraphe de l'article */
.entry-content-text > p:first-of-type::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem; /* Très gros */
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 4px;
    color: #d21034; /* Rouge */
    font-weight: 700;
}
.entry-content-text a {
    text-decoration: none;
    background-image: linear-gradient(#d21034, #d21034); /* Ligne rouge */
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px; /* Invisible au début */
    transition: background-size .3s;
    color: #d21034;
    font-weight: 600;
}

.entry-content-text a:hover {
    background-size: 100% 2px; /* Se remplit au survol */
}
.entry-content-text blockquote {
    position: relative;
    background: #f9f9f9;
    border-left: none; /* On enlève la barre simple */
    padding: 30px 40px;
    margin: 40px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #333;
    border-radius: 8px;
}

/* Ajoute des guillemets géants en fond */
.entry-content-text blockquote::before {
    content: "\201C"; /* Guillemet ouvrant */
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: rgba(210, 16, 52, 0.15); /* Rouge très transparent */
    font-family: sans-serif;
}
/* =========================================
   SECTION HERO "À LA UNE" SOPHISTIQUÉE
========================================= */

.featured-hero-section {
    margin-bottom: 80px;
    padding: 0 10px;
}

.featured-hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Image plus large que le texte */
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

.featured-hero-image {
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.featured-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.featured-hero-container:hover .featured-hero-image img {
    transform: scale(1.03);
}

.featured-hero-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

/* Labels et Catégories */
.featured-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.featured-cat-label {
    background: var(--red);
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.featured-category {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
}

/* Titre */
.featured-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.featured-hero-title a {
    color: #111;
    text-decoration: none;
    background: linear-gradient(to right, var(--red), var(--red)) no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size 0.4s;
}

.featured-hero-title a:hover {
    background-size: 100% 2px;
    color: #000;
}

/* Texte */
.featured-hero-excerpt {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.featured-hero-footer {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.featured-author strong {
    color: #333;
}

/* Bouton */
.featured-read-more {
    display: inline-block;
    padding: 12px 28px;
    background: #111;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: fit-content;
}

.featured-read-more:hover {
    background: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(210, 16, 52, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-hero-container {
        grid-template-columns: 1fr;
    }
    .featured-hero-content {
        padding: 30px;
    }
    .featured-hero-title {
        font-size: 2.2rem;
    }
}
/* =========================================
   RESTAURATION DU MENU SECONDAIRE
========================================= */
.secondary-menu {
    background: #fdfdfd; /* Blanc très pur */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    text-align: center;
}

.secondary-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap; /* Assure le bon affichage sur mobile */
}

.secondary-menu-list li {
    position: relative;
    display: inline-block;
}

.secondary-menu-list a {
    color: #666;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.secondary-menu-list a:hover {
    color: var(--red); /* Utilise votre variable --red #D21034 */
    background: #f9f9f9;
}

/* Style de la catégorie active */
.secondary-menu-list .current-menu-item a,
.secondary-menu-list .current-cat a {
    background: #f1f3f5;
    color: #000;
    font-weight: 700;
    border-bottom: 2px solid var(--red);
}
/* =========================================
   AFFICHAGE CATÉGORIE : STYLE RAFFINÉ
========================================= */

.category-modern-header {
    padding: 80px 0 40px;
    background-color: #fcfcfc; /* Un blanc très légèrement teinté pour le fini */
    border-bottom: 1px solid #eee;
    margin-bottom: 50px;
    text-align: center;
}

.category-header-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Le petit sur-titre */
.category-kicker {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--red); /* Votre rouge #D21034 */
    margin-bottom: 15px;
}

/* Le Titre principal */
.category-title-main {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    color: #111;
    margin: 0 0 20px;
    font-weight: 800;
    line-height: 1.1;
}

/* La Description */
.category-description-text {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* La ligne de finition */
.category-accent-line {
    width: 40px;
    height: 4px;
    background-color: #111; /* Noir pour le contraste avec le sur-titre rouge */
    margin: 0 auto;
    border-radius: 2px;
}

/* Ajustement de la grille */
.category-archive-wrapper .articles-grid {
    margin-top: 0;
}

/* Pagination modernisée */
.pagination-modern {
    margin-top: 60px;
    text-align: center;
    font-family: 'Work Sans', sans-serif;
}

.pagination-modern .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-modern a, .pagination-modern span {
    padding: 8px 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-modern span.current {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.pagination-modern a:hover {
    background: #f4f4f4;
}

/* Responsive */
@media (max-width: 768px) {
    .category-modern-header {
        padding: 50px 0 30px;
    }
    .category-title-main {
        font-size: 2.2rem;
    }
    .category-description-text {
        font-size: 1.05rem;
    }
}
/* =========================================
   STYLE SOBRE EXTRÊME GAUCHE (CADRE BLANC)
========================================= */

.category-sober-header {
    background: #ffffff; /* Cadre blanc qui masque le background du site */
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    width: 100%;
}

.category-sober-container {
    max-width: 100%; /* Suppression de la limite de 1200px */
    margin: 0;       /* Suppression du centrage auto */
    padding: 0 40px; /* Petit espace de sécurité par rapport au bord de l'écran */
}

.category-sober-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    text-align: left;
}

.category-sober-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0;
    padding-left: 15px;
    border-left: 10px solid #ccc; /* Barre épaisse colorée */
    line-height: 1;
    white-space: nowrap;
}

.category-sober-desc {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #666;
    margin: 0;
    border-left: 1px solid #ddd;
    padding-left: 20px;
    max-width: 800px;
}

/* --- COULEURS REPRISES DE VOTRE CODE --- */
.category-politique .category-sober-title { border-left-color: #f97316; color: #f97316; }
.category-societe .category-sober-title { border-left-color: #d272e1; color: #d272e1; }
.category-economie .category-sober-title { border-left-color: #3b82f6; color: #3b82f6; }
.category-ecologie .category-sober-title { border-left-color: #22c55e; color: #22c55e; }
.category-culture .category-sober-title { border-left-color: rgb(241, 71, 71); color: rgb(241, 71, 71); }

@media (max-width: 850px) {
    .category-sober-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .category-sober-desc {
        border-left: none;
        padding-left: 0;
    }
}
/* =========================================
   HERO ACCUEIL : TITRE HAUT + CADRE NOIR
========================================= */
.hero-home-fullscreen {
    position: relative;
    height: 100vh;
    width: 100%;
    
    /* CORRECTION IMAGE MOBILE : On utilise un chemin relatif */
    background: #000 url('/wp-content/uploads/2025/12/images-I-4487.jpg') no-repeat center center;
    background-size: cover;
    
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    padding-top: 6vh; 
    z-index: 5;
}

/* L'overlay reste pour assombrir légèrement l'image globale */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 6;
}

.hero-content-box {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre la flèche sous le rectangle */
}

/* LE RECTANGLE NOIR SUR LE TITRE */
/* LE RECTANGLE NOIR RÉDUIT */
.hero-site-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem); 
    color: #ffffff !important;
    background-color: #000000;
    display: inline-block;
    padding: 10px 25px; 
    letter-spacing: 5px; 
    margin: 0;
    text-transform: uppercase;
    text-shadow: none;
}

/* La flèche de scroll reste en bas */
.scroll-arrow {
    position: relative; /* Elle n'est plus bloquée en bas */
    margin-top: 20px;   /* Distance exacte sous le rectangle noir */
    color: #ffffff;
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: bounceVertical 2s infinite;
    cursor: pointer;
}

/* Animation de la flèche */
@keyframes bounceVertical {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}
/* Le reste du contenu */
.main-content-wrapper {
    position: relative;
    z-index: 20;
    background: #fff;
    padding-top: 50px;
}
/* Fix pour éviter que le footer ne remonte */
.main-content-wrapper {
    position: relative;
    z-index: 20;
    background: #fff;
    padding-top: 50px;
}

.hero-site-tagline {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-style: italic;
}

.scroll-arrow {
    margin-top: 30px;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* FIX DU FOOTER : On s'assure que le contenu pousse bien le footer vers le bas */
.main-content-wrapper {
    position: relative;
    background: #fff; /* Fond blanc pour cacher l'image quand on scrolle */
    z-index: 30;
    padding-top: 50px;
}

/* =========================================
   TITRE CATÉGORIE : EXTRÊME GAUCHE DANS CADRE
========================================= */

.category-sober-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important; /* On colle au bord */
}

.category-sober-content {
    background: #ffffff; /* Cadre blanc */
    display: inline-flex; /* Le cadre s'adapte à la taille du texte */
    align-items: center;
    padding: 20px 40px 20px 0; /* Pas de padding à gauche pour être à l'extrême */
    border-bottom: 1px solid #eee;
    width: 100%;
}

.category-sober-title {
    padding-left: 20px; /* Petit espace après la barre de couleur */
    margin: 0;
    border-left: 12px solid #ccc; /* La barre de couleur */
}
/* =========================================
   FINITIONS HERO & RESPONSIVE MOBILE
========================================= */

/* Adaptation du titre Ruptures sur mobile */
@media (max-width: 768px) {
    .hero-home-fullscreen {
        padding-top: 15vh; /* On le descend un peu plus que sur desktop pour le mobile */
        height: 100dvh;   /* Utilise la hauteur dynamique de l'écran mobile */
    }

    .hero-site-title {
        font-size: 2rem !important; /* Réduction de la taille pour mobile */
        padding: 8px 15px !important;
        letter-spacing: 3px !important;
    }

    .scroll-arrow {
        font-size: 1.4rem !important;
        margin-top: 15px !important;
    }
}

/* =========================================
   HEADER CAMÉLÉON : ÉTAT INITIAL
========================================= */

/* Par défaut sur toutes les pages (Noir) */
.main-navigation {
    background: rgba(0, 0, 0, 0.85); /* */
    backdrop-filter: blur(6px);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1em 3em;
    transition: background 0.4s ease, backdrop-filter 0.4s ease; /* Transition fluide */
}

/* SPECIFIQUE PAGE D'ACCUEIL : Transparent au chargement */
body.home .main-navigation {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}
/* Grille d'articles : Correction des espacements mobiles */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr !important; /* Une seule colonne sur mobile */
        width: calc(100% - 30px) !important;
        margin: 0 15px !important;
        gap: 25px !important;
    }

    .article-horizontal-block {
        height: auto !important; /* La hauteur fixe casse sur mobile */
        min-height: 400px;
    }
}
/* =========================================
   FINITIONS HERO & RESPONSIVE MOBILE
========================================= */

/* Adaptation du titre Ruptures sur mobile */
@media (max-width: 768px) {
    .hero-home-fullscreen {
        padding-top: 15vh; /* On le descend un peu plus que sur desktop pour le mobile */
        height: 100dvh;   /* Utilise la hauteur dynamique de l'écran mobile */
    }

    .hero-site-title {
        font-size: 2rem !important; /* Réduction de la taille pour mobile */
        padding: 8px 15px !important;
        letter-spacing: 3px !important;
    }

    .scroll-arrow {
        font-size: 1.4rem !important;
        margin-top: 15px !important;
    }
}

/* Menu principal : Translucide pour la modernité */
.main-navigation {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px); /* Effet de flou moderne derrière le menu */
    transition: background 0.4s ease;
}

/* Grille d'articles : Correction des espacements mobiles */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr !important; /* Une seule colonne sur mobile */
        width: calc(100% - 30px) !important;
        margin: 0 15px !important;
        gap: 25px !important;
    }

    .article-horizontal-block {
        height: auto !important; /* La hauteur fixe casse sur mobile */
        min-height: 400px;
    }
}
/* =========================================
   FINITIONS CATÉGORIES (RESPONSIVE)
========================================= */

@media (max-width: 768px) {
    .category-sober-container {
        padding: 0 !important;
    }

    .category-sober-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 15px 20px !important;
    }

    .category-sober-title {
        font-size: 1.5rem !important;
        border-left-width: 8px !important;
    }

    .category-sober-desc {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 8px !important;
        font-size: 0.9rem !important;
    }
}
/* =========================================
   FINITIONS ARTICLES (SINGLE)
========================================= */

@media (max-width: 1024px) {
    .article-body-grid {
        grid-template-columns: 1fr !important; /* On empile tout sur mobile */
    }

    .sidebar-sticky-left {
        position: static !important; /* Le sommaire redevient normal */
        margin-bottom: 30px;
    }

    .entry-content-text h2 {
        font-size: 1.6rem !important;
        padding: 15px 20px !important;
    }
}

/* Lettrine mobile */
@media (max-width: 600px) {
    .entry-content-text > p:first-of-type::first-letter {
        font-size: 3rem !important;
    }
}
.reading-time-block {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
}

.reading-time-block i {
    font-size: 0.85rem;
    color: var(--red); /* Rappel de votre rouge pour l'icône */
}

/* On s'assure que la ligne meta est bien centrée sur mobile */
@media (max-width: 768px) {
    .meta-info-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}
/* =========================================
   ANIMATION RÉVÉLATION (REVEAL EFFECT)
========================================= */

/* État initial : caché et légèrement décalé vers le bas */
.article-horizontal-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

/* État final : visible et à sa place d'origine */
.article-horizontal-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* On désactive l'animation sur le tout premier article (À la une) 
   pour qu'il soit visible immédiatement au chargement de la page */
.featured-hero-section .article-horizontal-block,
.featured-hero-container {
    opacity: 1 !important;
    transform: none !important;
}
/* =========================================
   STYLE SPÉCIFIQUE : NOTRE BIBLIOTHÈQUE
========================================= */

/* Header en mode Livre */
.library-header .book-info-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
    align-items: start;
}

.book-cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.2); /* Effet profondeur couverture */
}

/* Style du Plan de l'ouvrage */
.book-plan-box {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.book-plan-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--red);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.book-plan-list {
    list-style: none;
    padding: 0;
}

.book-plan-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: #444;
}

/* Bloc Avertissement */
.library-disclaimer {
    background: #fff5f5; /* Rouge très pâle */
    border-left: 4px solid var(--red);
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
    color: #666;
    margin: 40px 0;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .library-header .book-info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .book-cover {
        max-width: 180px;
        margin: 0 auto;
    }
}
