/* ==========================================================================
   Article de blogue : nouvelle présentation (gabarit-article.php).
   Chargée après refonte-realisation.css et refonte-hub.css : on ne définit ici
   que ce qui est propre à l'article (colonne de lecture, photos intercalées,
   encart de présentation de la firme, autrice, Instagram).
   ========================================================================== */
.ppArticle .ppOuvertureTexte .ppFiche { margin-top: clamp(24px, 3vh, 36px); }

/* le corps alterne des colonnes de lecture (800 px, centrées) et des blocs plus
   larges : les photos de projets et l'encart de présentation de la firme */
.ppCorps { padding-top: clamp(56px, 6.9vw, 100px); }
.ppTexte { max-width: 800px; margin: 0 auto; padding: 0 var(--pp-marge); box-sizing: content-box; }
.ppEncart + .ppTexte { padding-top: var(--pp-souffle); }
/* deux sections qui se suivent sans photos entre elles : l'écart d'un sous-titre */
.ppTexte + .ppTexte { padding-top: clamp(44px, 4.4vw, 64px); }
/* jamais un mot seul sur la dernière ligne */
.ppArticle .ppTitre, .ppArticle .ppTitre em, .ppArticle .ppTitre span { text-wrap: balance; }
.ppArticle .ppIntro, .pp .ppTexte p, .pp .ppTexte li, .pp .ppExergue, .pp .ppEncartTexte p, .pp .ppAuteurTexte p, .ppSuite .ppProjets h3 { text-wrap: pretty; }
.ppCorps > .ppEncart { max-width: 1200px; margin: var(--pp-souffle) auto 0; }

.pp .ppTexte h2 {
  margin: clamp(44px, 4.4vw, 64px) 0 clamp(14px, 1.4vw, 20px);
  font-size: clamp(24px, 2.1vw, 32px) !important;
  line-height: 1.2 !important;
  text-wrap: pretty;
}
.pp .ppTexte h2:first-child { margin-top: 0; }
.pp .ppTexte h3 {
  margin: clamp(28px, 2.6vw, 38px) 0 10px;
  font-family: var(--pp-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 1.5vw, 22px) !important;
  line-height: 1.3 !important;
  color: var(--pp-encre);
  text-transform: none;
  letter-spacing: 0;
}
/* articles dont les sous-titres principaux sont des h3 (ou des h4) : même allure que les h2 */
.pp .ppNiveau3 .ppTexte h3,
.pp .ppNiveau4 .ppTexte h4 {
  margin: clamp(44px, 4.4vw, 64px) 0 clamp(14px, 1.4vw, 20px);
  font-family: var(--pp-serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(24px, 2.1vw, 32px) !important;
  line-height: 1.2 !important;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pp-encre);
  text-wrap: pretty;
}
.pp .ppNiveau3 .ppTexte h3:first-child,
.pp .ppNiveau4 .ppTexte h4:first-child { margin-top: 0; }
.pp .ppNiveau3 .ppTexte h4 {
  margin: clamp(28px, 2.6vw, 38px) 0 10px;
  font-family: var(--pp-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 1.5vw, 22px) !important;
  line-height: 1.3 !important;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pp-encre);
}
.pp .ppTexte p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.8; }
.pp .ppTexte p:last-child { margin-bottom: 0; }
.pp .ppTexte ul, .pp .ppTexte ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.pp .ppTexte li { margin: 0 0 0.5em; font-family: var(--pp-serif); font-size: 17px; line-height: 1.7; list-style: disc; }
.pp .ppTexte strong { font-weight: 600; }
.pp .ppTexte a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pp .ppTexte a:hover { opacity: 0.6; }

/* tableaux comparatifs : lignes fines, pas de coupure de mots */
.pp .ppTexte table { width: 100%; margin: 1.4em 0 1.8em; border: 0 !important; border-collapse: collapse; font-family: var(--pp-sans); font-size: 14px; line-height: 1.5; }
.pp .ppTexte th, .pp .ppTexte td { padding: 12px 14px 12px 0; border: 0 !important; border-bottom: 1px solid #E3DED5 !important; text-align: left; vertical-align: top; word-break: normal; overflow-wrap: normal; hyphens: manual; background: none; }
.pp .ppTexte th { font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; color: #6B5F56; }
.pp .ppTexte td:first-child { font-weight: 500; width: 24%; }
.pp .ppTexte td strong { font-weight: 500; }

/* phrase clé mise en exergue (champ « Phrase mise en exergue » de l'article) */
.pp .ppExergue {
  margin: clamp(28px, 3vw, 44px) 0;
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 2px solid var(--pp-brun);
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 24px) !important;
  line-height: 1.5 !important;
}

/* ----- photos de projets intercalées : pas de texte, une seule mention dessous -----
   Chaque photo reçoit son format (--pp-format : 3/2 ou 2/3) du gabarit ; en grandissant
   en proportion de ce format, elles partagent la même hauteur sans être recadrées.
   --pp-largeur borne le bloc pour que la rangée ne dépasse pas 600 px de haut. */
.ppImages {
  max-width: var(--pp-largeur, 1200px);
  margin: clamp(44px, 4.6vw, 68px) auto;
  padding: 0 var(--pp-marge);
  box-sizing: content-box;
}
.ppImagesGrille { display: flex; align-items: flex-start; gap: clamp(10px, 1.4vw, 20px); }
.pp .ppImages .ppPhoto {
  display: block;
  flex: var(--pp-format, 1) 1 0%;
  min-width: 0;
  aspect-ratio: var(--pp-format, 1);
  overflow: hidden;
  cursor: pointer;
}
.pp .ppImages div.ppPhoto { cursor: default; }
.pp .ppImages figcaption {
  margin-top: 12px;
  font-family: var(--pp-sans);
  font-size: clamp(10px, 0.82vw, 12px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  text-wrap: balance;
  color: #6B5F56;
}
.pp .ppImages figcaption a { color: var(--pp-encre); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: opacity 0.25s ease; }
.pp .ppImages figcaption a:hover { opacity: 0.55; }

/* ----- l'encart : présentation de la firme dans le fil de l'article ----- */
.ppEncart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pp-ecart);
  align-items: center;
  padding: clamp(36px, 4vw, 60px) clamp(28px, 4vw, 64px);
  background: #EFEDE7;
}
.ppEncartTexte { grid-column: 1 / 7; }
.ppEncart .ppServices { grid-column: 8 / 13; }
.ppEncart .ppEtiquette { display: block; margin-bottom: 14px; opacity: 0.6; }
.pp .ppEncart h2 { margin: 0 0 clamp(12px, 1.2vw, 18px); font-size: clamp(24px, 2.1vw, 32px) !important; line-height: 1.15 !important; text-wrap: pretty; }
.pp .ppEncartTexte p { margin: 0; font-size: 16px; line-height: 1.75; max-width: 46ch; }
.pp .ppEncart .ppBouton { margin-top: clamp(20px, 2vw, 28px); font-size: 16px; padding: 11px 22px; }
.ppServices { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(43, 33, 28, 0.14); }
.ppServices li { margin: 0; padding: 0; border-bottom: 1px solid rgba(43, 33, 28, 0.14); }
.pp .ppServices .ppService {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  transition: opacity 0.25s ease;
}
.pp .ppServices a.ppService:hover { opacity: 0.65; }
.ppServices .ppService > div { aspect-ratio: 4 / 5; overflow: hidden; }
.ppServices strong { display: block; font-family: var(--pp-serif); font-weight: 400; font-size: 17px; line-height: 1.25; }
.ppServices span { display: block; margin-top: 3px; font-family: var(--pp-sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }

/* ----- autrice ----- */
.ppAuteur {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pp-ecart);
  align-items: center;
  margin-top: var(--pp-souffle);
  padding: 0 var(--pp-marge);
}
.ppAuteurPhoto { grid-column: 1 / 5; aspect-ratio: 4 / 5; overflow: hidden; }
/* case « Resserrer le cadrage du portrait » : pour une photo en vue large, on cadre sur la personne */
.ppAuteurZoom img { object-position: 38% 62%; transform: scale(1.35); transform-origin: 38% 62%; }
.ppAuteurTexte { grid-column: 6 / 12; }
.ppAuteurTexte .ppEtiquette { display: block; margin-bottom: 14px; opacity: 0.6; }
.pp .ppAuteurTexte h2 { font-size: var(--pp-titre) !important; line-height: 1.1 !important; }
.ppAuteurTexte .ppRole { margin: 8px 0 clamp(18px, 2vw, 26px); font-style: italic; font-size: 17px; }
.pp .ppAuteurTexte p { margin: 0 0 1em; font-size: 15px; line-height: 1.8; }
.pp .ppAuteurTexte .ppLien { margin-top: 8px; }

/* ----- continuer la lecture : la grille du blogue, 3 cartes ----- */
.ppSuite { padding-top: var(--pp-souffle); }
.ppSuiteTete { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--pp-marge); }
.pp .ppSuiteTete h2 { font-size: var(--pp-titre) !important; line-height: 1.15 !important; }
.ppSuite .ppProjets { padding-top: clamp(28px, 3vw, 44px); }

/* ----- instagram (règles de l'accueil, recopiées sous .pp) ----- */
.pp .blocInstagram { background-color: #EFEDE7; padding: clamp(56px, 6.4vw, 95px) 0 clamp(48px, 5.4vw, 80px); text-align: center; }
.pp .blocInstagramSurtitre { margin: 0 0 clamp(14px, 1.5vw, 22px); font-family: var(--pp-sans); font-size: clamp(10px, 0.82vw, 12px); font-weight: 500; letter-spacing: 0.2em; text-indent: 0.2em; text-transform: uppercase; color: #6B5F56; }
.pp .blocInstagramCompte { margin: 0; font-family: var(--pp-serif); font-size: clamp(26px, 2.8vw, 42px); line-height: 1.2; color: var(--pp-encre); }
.pp .blocInstagramCompte a:hover { opacity: 0.6; }
.pp .blocInstagramLien { margin: clamp(18px, 1.9vw, 27px) 0 0; }
.pp .blocInstagramLien a { display: inline-block; font-family: var(--pp-sans); font-size: var(--pp-etiquette); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; padding-bottom: 7px; border-bottom: 1px solid currentColor; }
.pp .blocInstagramImages { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; gap: 40px; margin-top: clamp(40px, 4.6vw, 68px); padding: 0 var(--pp-marge); scrollbar-width: none; }
.pp .blocInstagramImages::-webkit-scrollbar { display: none; }
.pp .blocInstagramImages a { display: block; flex: 0 0 calc((83.334vw - 80px) / 3); aspect-ratio: 387 / 591; overflow: hidden; scroll-snap-align: start; }
.pp .blocInstagramImages img { transition: opacity 0.3s ease; }
.pp .blocInstagramImages a:hover img { opacity: 0.82; }

/* ----- clôture : sans marge haute supplémentaire après Instagram ----- */
.ppArticle .ppFin { margin-top: 0; }

/* ----- tablette / mobile ----- */
@media screen and (max-width: 1100px) and (min-width: 900px) {
  .pp .ppTexte table { font-size: 13px; }
}
@media screen and (max-width: 899px) {
  .ppTexte { max-width: none; }
  .ppCorps > .ppEncart { margin-left: var(--pp-marge); margin-right: var(--pp-marge); }
  .ppEncart { display: block; padding: 32px 24px; }
  .ppEncart .ppServices { margin-top: 28px; }
  .ppAuteur { display: block; }
  .ppAuteurPhoto { max-width: 70%; margin-bottom: 24px; }
  .ppImages { max-width: none; }
  /* une horizontale et une verticale : l'une sous l'autre ; trois photos : une grande, deux petites */
  .ppImagesEmpile .ppImagesGrille { flex-direction: column; }
  .pp .ppImagesEmpile .ppPhoto { flex: none; width: 100%; }
  .ppImagesN3 .ppImagesGrille { flex-wrap: wrap; }
  .pp .ppImagesN3 .ppPhoto { flex: 1 1 40%; aspect-ratio: 2 / 3; }
  .pp .ppImagesN3 .ppPhoto:first-child { flex: 1 1 100%; aspect-ratio: 4 / 5; }
  .pp .blocInstagramImages { padding: 0 24px; gap: 20px; }
  .pp .blocInstagramImages a { flex-basis: 62vw; }
}

/* l'encart : ni puces ni soulignés hérités des styles du thème */
.pp .ppEncart .ppServices { padding: 0; margin: 0; }
.pp .ppEncart .ppServices li { list-style: none !important; margin: 0; padding: 0; font-size: inherit; }
.pp .ppEncart .ppServices .ppService { text-decoration: none !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--pp-encre) !important; font-weight: 400 !important; }
.pp .ppEncart .ppServices strong { font-family: var(--pp-serif); font-weight: 400 !important; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--pp-encre); }
.pp .ppEncart .ppServices span span { font-family: var(--pp-sans); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55; }
.pp .ppEncart .ppBouton { text-decoration: none !important; color: #fff !important; }
