/* =============================================================================
   Article (Elementor single #113 — analyse/pages/_post-template.md)
   Valeurs : post-113.css + block-library (Gutenberg) + reset Hello.
   La carte « Autres articles » est dans blog.css.
   ========================================================================== */

/* 1. En-tête : dégradé + image à la une (71d390b / 691c5e9) */
.p-post__header {
  background-color: transparent;
  background-image: linear-gradient(180deg, var(--c-bg-1) 0%, var(--c-post-header) 100%);
  padding: 4% 0 0;
}
.p-post__featured { text-align: center; }
.p-post__featured img { display: inline-block; vertical-align: middle; max-width: 79%; }

/* 2. Corps : conteneur 700px (style inline), séparateur « montagnes » (048c379) */
.p-post__body { padding: 5% 0 0; }
@media (max-width: 767px) { .p-post__body { padding: 11% 0 0; } }
.p-post__shape { position: absolute; top: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; }
.p-post__shape svg {
  display: block; position: relative; left: 50%; transform: translateX(-50%);
  width: calc(134% + 1.3px); height: 143px;
}
.p-post__shape path { fill: var(--c-post-header); transform: rotateY(0deg); transform-origin: center; }

/* Contenu (91ac25b : Roboto 1.1em, aligné à gauche) — HTML issu du Markdown */
.p-post__content { font-size: 1.1em; text-align: left; }
.p-post__content figure { margin: 0 0 1em; }                       /* :where(figure) WordPress */
.p-post__content img { height: auto; max-width: 100%; }
.p-post__content .wp-block-image > a { display: inline-block; }
.p-post__content .wp-block-image img { box-sizing: border-box; vertical-align: bottom; }
.p-post__content .wp-block-image figcaption { margin: .5em 0 1em; }
.p-post__content blockquote { margin: 1em 40px; overflow-wrap: break-word; }
.p-post__content blockquote > :first-child { margin-block-start: 0; }   /* is-layout-flow */
.p-post__content blockquote > :last-child { margin-block-end: 0; }

/* Vidéo YouTube 16:9 : vignette + bouton, iframe youtube-nocookie chargée au clic (post.js) */
.p-post__content .wp-block-embed { overflow-wrap: break-word; }
.p-post__content .wp-block-embed__wrapper { position: relative; }
.p-post__content .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.p-post__content .wp-block-embed__wrapper > iframe,
.yt-lite { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite { display: block; overflow: hidden; background: #000; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-lite::before {                                   /* bouton lecture façon YouTube */
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px;
  background: #f00; border-radius: 12px; opacity: .85; transition: opacity .2s; z-index: 1;
}
.yt-lite::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -6px; z-index: 2;
  border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #fff;
}
.yt-lite:hover::before, .yt-lite:focus-visible::before { opacity: 1; }

/* Filet vert (cc7ca11 : 1px #61CE70, padding 15px 0) */
.p-post__divider { display: flex; padding-block: 15px; }
.p-post__divider > span { display: flex; width: 100%; margin: 0; border-block-start: 1px solid var(--c-green-2); }

/* Autres articles (8c8fb5b : 2 colonnes, padding-bas 5%) */
.p-post__related { padding-bottom: 5%; }
