/*
Theme Name: GeneratePress Child — JRM Avocat
Theme URI: https://jrmavocat.fr
Description: Thème enfant GeneratePress pour le Cabinet JRM Avocat. Charge les polices, harmonise la typographie des titres sur tout le site et réécrit le pied de page.
Author: BLEUPIMENT
Author URI: https://bleupiment.fr
Template: generatepress
Version: 1.0.3
Text Domain: generatepress-jrm-child
*/

/* ================================================================
   Styles GLOBAUX (tout le site : accueil, Actus, articles, pages…)
   Les styles spécifiques à la page d'accueil restent dans
   Personnaliser > CSS additionnel (classes .jrm-*).
   ================================================================ */

/* ---- Typo des titres : identique partout ---- */
.entry-title,
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6,
h1.wp-block-heading, h2.wp-block-heading,
h3.wp-block-heading, h4.wp-block-heading,
h5.wp-block-heading, h6.wp-block-heading,
.widget-title, .sidebar h2, .sidebar h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
}

/* ---- Corps de texte : cohérent avec l'accueil ---- */
body,
.entry-content p, .entry-content li {
  font-family: "Hanken Grotesque", system-ui, sans-serif;
}

/* ---- Chapô des articles : classe CHAPO ----
   Usage : bloc Paragraphe > Avancé > Classe(s) CSS additionnelle(s) : CHAPO
   Reprend : taille 25px, texte + liens couleur Accent, fond Base 3,
   marges intérieures des paragraphes avec fond (WordPress). */
.entry-content p.CHAPO,
p.CHAPO {
  font-size: 25px;
  color: var(--accent);
  background-color: var(--base-3);
  padding: 1.25em 2.375em;
}
.entry-content p.CHAPO a,
p.CHAPO a {
  color: var(--accent);
}
/* Mobile : taille et marges réduites */
@media (max-width: 768px) {
  .entry-content p.CHAPO,
  p.CHAPO {
    font-size: 20px;
    padding: 1em 1.25em;
  }
}

/* ---- Articles de blog : espace au-dessus des H2 ---- */
.single-post .entry-content h2 {
  margin-top: 3.1rem;
}
.single-post .entry-content > h2:first-child {
  margin-top: 0; /* pas d'espace si l'article commence par un H2 */
}
@media (max-width: 768px) {
  .single-post .entry-content h2 {
    margin-top: 2rem;
  }
}

/* ---- Pied de page : notre ligne, sans mention GeneratePress ---- */
.site-info .copyright-bar {
  text-align: center;
  font-size: .9rem;
  line-height: 1.7;
  color: #5f7278;
}
.site-info .copyright-bar a { color: #2f8da1; text-decoration: none; }
.site-info .copyright-bar a:hover { text-decoration: underline; }
