/*
Theme Name: Le Prêt à Peindre — Guide
Theme URI: https://lepretapeindre.fr
Author: SiteNova
Description: Guide pratique de la peinture. Direction guide pratique : fiche de preparation chiffree, sommaire ancre, nuancier de rubriques, interligne 1,75.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: peinture-guide
Template: twentytwentyfive
*/

/* ─── une : photo pleine largeur, titre dessous sur bandeau blanc ─── */
.pg-une{margin:0 0 3rem}
.pg-une .wp-block-post-template{margin:0;padding:0;list-style:none}
/* la grille porte sur l ARTICLE : le conteneur de requete n a qu un seul enfant */
.pg-une .wp-block-post{background:#fff;border:1px solid var(--wp--preset--color--bordure)}
.pg-une .wp-block-post-featured-image{margin:0}
.pg-une .wp-block-post-featured-image img{width:100%;object-fit:cover;display:block}
.pg-une__texte{padding:1.6rem 1.9rem;max-width:none}
.pg-une__texte>*{max-width:none!important;margin-left:0!important;margin-right:0!important}
.pg-une__texte .wp-block-post-title{margin:.5rem 0 .7rem;line-height:1.14}
.pg-une__texte .wp-block-post-title a{text-decoration:none;color:var(--wp--preset--color--encre)}
.pg-une__texte .wp-block-post-title a:hover{color:var(--wp--preset--color--indigo)}
.pg-une__texte .wp-block-post-excerpt{margin:0;color:var(--wp--preset--color--gris);max-width:62ch}
.pg-une__texte .wp-block-post-excerpt__more-text{display:none}
@media(max-width:900px){
  .pg-une__texte{padding:1.2rem 1.3rem}
  /* un 4/3 pleine largeur pousse le titre sous la ligne de flottaison */
  .pg-une .wp-block-post-featured-image img{aspect-ratio:16/9!important;max-height:42vh}
}

/* ─── rubrique : pastille nuancier, carre de couleur + libelle ─── */
.pg-rubrique,.pg-rubrique a{font-family:var(--wp--preset--font-family--titre);font-size:.74rem!important;
  font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;
  color:var(--wp--preset--color--indigo)}
.pg-rubrique{margin:0 0 .45rem;display:inline-flex;align-items:center;gap:.45rem}
.pg-rubrique::before{content:"";width:.85rem;height:.85rem;background:var(--wp--preset--color--indigo);
  display:inline-block;flex:0 0 auto}

/* ─── grille 3 colonnes, cartes blanches sans ombre ─── */
.pg-grille{margin-bottom:3rem}
.pg-grille .wp-block-post{background:#fff;border:1px solid var(--wp--preset--color--bordure);
  display:flex;flex-direction:column}
.pg-grille .wp-block-post-featured-image{margin:0;overflow:hidden;background:var(--wp--preset--color--pierre)}
.pg-grille .wp-block-post-featured-image img{width:100%;object-fit:cover;display:block;transition:transform .5s ease}
.pg-grille .wp-block-post:hover .wp-block-post-featured-image img{transform:scale(1.04)}
.pg-grille .wp-block-post>:not(.wp-block-post-featured-image){padding-left:1.15rem;padding-right:1.15rem}
.pg-grille .wp-block-post-terms{margin-top:1rem}
.pg-grille .wp-block-post-title{margin:.2rem 0 .45rem;line-height:1.26}
.pg-grille .wp-block-post-title a{text-decoration:none;color:var(--wp--preset--color--encre)}
.pg-grille .wp-block-post-title a:hover{color:var(--wp--preset--color--indigo)}
.pg-grille .wp-block-post-excerpt{margin:0 0 1.15rem;line-height:1.6;color:var(--wp--preset--color--gris)}
.pg-grille .wp-block-post-excerpt__more-text{display:none}
@media(max-width:980px){.pg-grille .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.pg-grille .wp-block-post-template.is-layout-grid{grid-template-columns:1fr!important}}

/* ─── titre de section ─── */
.pg-section{display:flex;align-items:baseline;gap:1rem;margin:0 0 1.4rem;
  border-bottom:2px solid var(--wp--preset--color--encre);padding-bottom:.45rem}
.pg-section h2{margin:0}
.pg-section a{margin-left:auto;font-size:.88rem;font-weight:700;text-decoration:none;
  color:var(--wp--preset--color--indigo);white-space:nowrap}

/* ─── nuancier des rubriques : la signature de l accueil ─── */
.pg-nuancier{list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem}
.pg-nuancier li{background:#fff;border:1px solid var(--wp--preset--color--bordure)}
.pg-nuancier .pg-teinte{display:block;height:5rem;background:var(--wp--preset--color--indigo)}
.pg-nuancier li:nth-child(2) .pg-teinte{background:#4F5AA8}
.pg-nuancier li:nth-child(3) .pg-teinte{background:#6A6EB8}
.pg-nuancier li:nth-child(4) .pg-teinte{background:#8589C9}
.pg-nuancier li:nth-child(5) .pg-teinte{background:#A5A8D9}
.pg-nuancier a{display:block;padding:.85rem 1rem;font-family:var(--wp--preset--font-family--titre);
  font-weight:700;text-decoration:none;color:var(--wp--preset--color--encre);line-height:1.25}
.pg-nuancier a:hover{color:var(--wp--preset--color--indigo)}
.pg-nuancier .pg-quoi{display:block;font-family:var(--wp--preset--font-family--texte);font-weight:400;
  font-size:.85rem;color:var(--wp--preset--color--gris);margin-top:.25rem}
@media(max-width:900px){.pg-nuancier{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.pg-nuancier{grid-template-columns:1fr}}

/* ─── fiche de preparation : aucune des trois references mesurees n en propose ─── */
.pg-fiche{background:#fff;border:1px solid var(--wp--preset--color--bordure);
  border-left:4px solid var(--wp--preset--color--indigo);margin:0 0 2rem;padding:1.1rem 1.3rem}
.pg-fiche__titre{font-family:var(--wp--preset--font-family--titre);text-transform:uppercase;
  font-size:.76rem;letter-spacing:.1em;color:var(--wp--preset--color--indigo);margin:0 0 .7rem}
.pg-fiche dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:.4rem 1.2rem;font-size:.97rem}
.pg-fiche dt{color:var(--wp--preset--color--gris)}
.pg-fiche dd{margin:0;font-weight:700}

/* ─── sommaire ancre ─── */
.pg-sommaire{border:1px solid var(--wp--preset--color--bordure);background:#fff;margin:0 0 2rem}
.pg-sommaire summary{font-family:var(--wp--preset--font-family--titre);text-transform:uppercase;
  font-size:.8rem;letter-spacing:.09em;padding:.7rem 1rem;cursor:pointer;list-style:none;
  border-left:4px solid var(--wp--preset--color--indigo);color:var(--wp--preset--color--encre)}
.pg-sommaire summary::-webkit-details-marker{display:none}
.pg-sommaire summary::after{content:"+";float:right;color:var(--wp--preset--color--indigo)}
.pg-sommaire[open] summary::after{content:"–"}
.pg-sommaire ol{margin:0;padding:.2rem 1rem 1rem 2.2rem;font-size:.97rem}
.pg-sommaire li{margin:.3rem 0}
.pg-sommaire a{text-decoration:none;color:var(--wp--preset--color--encre)}
.pg-sommaire a:hover{color:var(--wp--preset--color--indigo);text-decoration:underline}

/* ─── encadre d attention : filet cuivre, jamais d aplat ─── */
.pg-attention{border-left:4px solid var(--wp--preset--color--attention);background:#fff;
  padding:1rem 1.2rem;margin:1.8rem 0}
.pg-attention__titre{font-family:var(--wp--preset--font-family--titre);text-transform:uppercase;
  font-size:.74rem;letter-spacing:.1em;margin:0 0 .4rem}

/* ─── sources ─── */
.pg-sources{border-top:3px solid var(--wp--preset--color--indigo);background:#fff;
  padding:1.1rem 1.3rem;margin:2.5rem 0 0}
.pg-sources__titre{font-family:var(--wp--preset--font-family--titre);text-transform:uppercase;
  font-size:.76rem;letter-spacing:.1em;color:var(--wp--preset--color--indigo);margin:0 0 .5rem}
.pg-sources ul{margin:0;padding-left:1.1rem;font-size:.93rem;line-height:1.6}

.entry-content .pg-tableau{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.6rem 0}
.entry-content table{width:100%;border-collapse:collapse;font-size:.97rem;background:#fff}
.entry-content th,.entry-content td{border:1px solid var(--wp--preset--color--bordure);padding:.55rem .8rem;text-align:left}
.entry-content th{background:var(--wp--preset--color--pierre);font-family:var(--wp--preset--font-family--titre);
  text-transform:uppercase;font-size:.79rem;letter-spacing:.05em}
.entry-content .wp-block-image figcaption{font-size:.87rem;color:var(--wp--preset--color--gris);text-align:left}
.pg-signature{border-top:1px solid var(--wp--preset--color--bordure);margin-top:2.5rem;padding-top:1rem;
  font-size:.92rem;color:var(--wp--preset--color--gris)}
.pg-meta{gap:.5rem!important;margin-top:.6rem}
