/* =====================================================================
   Blog (ancien WordPress, thème Twenty Twelve) habillé à la charte commune.
   Chargé après le thème : ne change que la police, les couleurs et les espacements.
   La colonne de droite (articles et commentaires récents) est gardée.
   ===================================================================== */

/* Le thème réduit la taille de base à 87,5 % : on revient à 100 % (la barre d'accessibilité agrandit à partir de là) */
html { font-size: 100%; }
body.wp-theme-twentytwelve, body.wp-theme-twentytwelve.custom-font-enabled {
  background: var(--blanc); color: var(--texte); font-family: var(--police); font-size: 1.125rem; line-height: 1.65;
}
/* Luciole partout, y compris dans les articles collés depuis d'autres sites ; le code garde sa police */
#page *:not(pre):not(code):not(kbd):not(samp) { font-family: var(--police) !important; }
/* Noir sur blanc : les gris du thème (#444 à #9f9f9f) passent au noir ; les couleurs écrites dans un article restent */
#page, #page * { color: var(--texte); }
#page .entry-meta, #page .entry-meta *, #page .wp-block-latest-comments__comment-meta,
#page .wp-caption-text, #page figcaption, #page .comment-meta, #page .comment-meta * { color: var(--texte-2); }

/* Cadre de page : plus d'ombre ni de fond gris autour, même largeur que l'en-tête */
body .site#page, body.custom-background-empty .site#page {
  box-sizing: border-box; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; box-shadow: none; background: var(--blanc); overflow: visible;
}
#page #main.wrapper { overflow: hidden; padding-bottom: 3rem; }

/* Liens : noirs et soulignés */
#page a { color: var(--texte); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
#page a:hover, #page a:focus-visible { text-decoration-thickness: 0.15em; }
#page .entry-title a, #page .widget-area a, #page .blog-categories a { text-decoration: none; }
#page .entry-title a:hover, #page .entry-title a:focus-visible,
#page .widget-area a:hover, #page .widget-area a:focus-visible,
#page .blog-categories a:hover, #page .blog-categories a:focus-visible { text-decoration: underline; }

/* ---------- Bandeau du blog : titre, accroche et catégories (texte d'origine) ---------- */
.blog-bandeau { padding: 2rem 0 0; border-bottom: 1px solid var(--filet); }
#page .blog-titre { margin: 0; font-size: var(--t1); font-weight: 700; line-height: 1.2; }
#page .blog-titre a { text-decoration: none; }
#page .blog-titre a:hover, #page .blog-titre a:focus-visible { text-decoration: underline; }
#page .blog-description { margin: 0.375rem 0 0.75rem; font-size: var(--t3); color: var(--texte-2); }
.blog-categories ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.blog-categories li { margin: 0; }
#page .blog-categories a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
#page .blog-categories .current-menu-item > a, #page .blog-categories .current-menu-ancestor > a,
#page .blog-categories a[aria-current] { text-decoration: underline; text-decoration-thickness: 0.15em; text-underline-offset: 0.3em; }

/* ---------- Titres ---------- */
#page h1, #page h2, #page h3, #page h4, #page h5, #page h6 { font-weight: 700; line-height: 1.25; }
#page .entry-header .entry-title { font-size: var(--t1); line-height: 1.2; font-weight: 700; }
#page .archive-header, #page .page-header { border-bottom: 1px solid var(--filet); padding-bottom: 1rem; margin-bottom: 2rem; }
#page .archive-title, #page .page-title { font-size: var(--t2); line-height: 1.3; font-weight: 400; text-transform: none; color: var(--texte-2); }
#page .archive-title span, #page .page-title span { color: var(--texte); font-weight: 700; }
#page .entry-content h2, #page .comment-content h2 { font-size: var(--t2); line-height: 1.3; }
#page .entry-content h3, #page .comment-content h3 { font-size: 1.3125rem; line-height: 1.35; }
#page .entry-content h4, #page .entry-content h5, #page .entry-content h6 { font-size: var(--t3); }

/* ---------- Texte des articles ---------- */
#page .entry-content, #page .entry-summary, #page .comment-content, #page .page-content { font-size: 1.125rem; line-height: 1.7; }
#page .entry-content p, #page .entry-content li, #page .entry-content td, #page .entry-content th { font-size: inherit; line-height: inherit; }
#page article.post, #page article.page { border-bottom: 1px solid var(--filet); }
#page .entry-meta { font-size: 1rem; line-height: 1.6; clear: both; }
#page blockquote, #page .wp-block-quote { border-left: 4px solid var(--vert); padding: 0.25rem 0 0.25rem 1.25rem; margin-left: 0; font-style: normal; }
#page .has-very-light-gray-background-color { background: var(--vert-pale); }
#page img { max-width: 100%; height: auto; }
#page iframe { max-width: 100%; }
#page table { border-color: var(--filet-fort); }
#page .wp-caption .wp-caption-text, #page .entry-caption, #page figcaption { font-size: 1rem; font-style: normal; }

/* Navigation entre articles et entre pages de liste */
#page .nav-single, #page .navigation, #page .nav-previous, #page .nav-next { font-size: 1.0625rem; line-height: 1.5; }
#page .nav-single a, #page .navigation a { display: inline-block; padding: 0.5rem 0; font-weight: 700; }

/* Commentaires d'origine (affichage seul) */
#page .comments-title { font-size: var(--t2); line-height: 1.3; }
#page .commentlist > li, #page .comments-area article { border-bottom: 1px solid var(--filet); }

/* ---------- Colonne de droite : articles récents, commentaires récents ---------- */
#page .widget-area .widget { margin-bottom: 2.5rem; font-size: 1.0625rem; line-height: 1.5; word-wrap: break-word; }
#page .widget-area .widget h2, #page .widget-area .widget h3, #page .widget-area .widget-title {
  font-size: var(--t3); font-weight: 700; text-transform: none; line-height: 1.3;
  margin: 0 0 0.75rem; padding-top: 0.75rem; border-top: 4px solid var(--vert);
}
#page .widget-area ul, #page .widget-area ol { list-style: none; margin: 0; padding: 0; }
#page .widget-area li { margin: 0; padding: 0.5rem 0; border-bottom: 1px solid var(--filet); }
#page .widget-area .wp-block-latest-comments__comment { line-height: 1.5; margin: 0; }
#page .widget-area .wp-block-latest-comments__comment-meta { font-size: 1rem; }
#page .widget-area .wp-block-latest-comments__comment-meta a { color: var(--texte); }

/* Grand écran : la colonne de droite un peu plus large pour le texte en Luciole */
@media screen and (min-width: 600px) {
  #page .site-content { width: 66%; }
  #page .widget-area { width: 28%; }
}
/* Texte très agrandi (150 % et plus) ou petit écran : une seule colonne */
html.a11y-grand #page .site-content, html.a11y-grand #page .widget-area { float: none; width: auto; }
@media (max-width: 47.5em) {
  body .site#page { padding: 0 1rem; }
  #page .entry-header .entry-title { font-size: 1.625rem; }
  #page .blog-titre { font-size: 1.625rem; }
}
