/* Momento Shots — journal (copié automatiquement dans assets/ quand un article est construit) */

/* Cartes d'articles (accueil, liste, « à lire aussi ») */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 34px; max-width: 1240px; margin: 0 auto; }
.post-card { display: flex; flex-direction: column; }
.post-card-img { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); margin-bottom: 20px; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-meta { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--label); margin: 0 0 10px; }
.post-card-title { font-weight: 300; font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
.post-card-title a { text-decoration: none; color: var(--ink); transition: color .3s; }
.post-card-title a:hover { color: var(--accent-ink); }
.post-card-excerpt { font-weight: 300; font-size: 15px; line-height: 1.75; color: var(--body); margin: 0 0 18px; flex: 1; }
.post-card .link-line { align-self: flex-start; }
@media (max-width: 1060px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; gap: 40px; } }

.journal-home { padding: clamp(10px, 3vh, 40px) var(--gutter) 0; max-width: 1240px; margin: 0 auto; scroll-margin-top: 60px; }
.journal-more { text-align: center; margin: 50px 0 0; }
.journal-list { padding: 0 var(--gutter) clamp(90px, 12vh, 130px); }

/* Article */
.post-head { max-width: 860px; }
.post-head h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }
.crumbs { display: flex; justify-content: center; gap: 10px; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--label); margin: 0 0 26px; }
.crumbs a { color: var(--label); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.page-head > p.post-meta { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--label); margin-top: 24px; }
.post-cover { margin: 0 auto; max-width: 1100px; padding: 0 var(--gutter); }
.post-cover img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; display: block; }
.post-cover figcaption, .post-figure figcaption { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--label); margin-top: 12px; }

.post-body { max-width: 720px; margin: 0 auto; padding: clamp(50px, 8vh, 80px) var(--gutter) clamp(70px, 10vh, 110px); }
.post-body > p, .post-body li, .post-body td, .post-body th { font-weight: 300; font-size: 18px; line-height: 1.85; color: var(--body); }
.post-body > p { margin: 0 0 22px; }
.post-body strong { font-weight: 500; color: var(--ink); }
.post-body a:not([class]):not(.toc a) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post-body h2 { font-weight: 200; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; color: var(--ink); margin: 64px 0 22px; scroll-margin-top: 90px; }
.post-body h3 { font-weight: 300; font-size: 23px; line-height: 1.3; color: var(--ink); margin: 36px 0 12px; scroll-margin-top: 90px; }
.post-body ul, .post-body ol { margin: 0 0 26px; padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 1px solid var(--accent); }
.post-body blockquote p { font-style: italic; font-weight: 300; font-size: 19px; line-height: 1.75; color: var(--ink-soft); margin: 0; }

/* Sommaire */
.toc { border-top: 1px solid rgba(42, 37, 32, .14); border-bottom: 1px solid rgba(42, 37, 32, .14); padding: 22px 0 14px; margin: 8px 0 44px; }
.toc-title { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--label); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; }
.post-body .toc li { font-size: 16px; line-height: 1.6; margin-bottom: 8px; }
.post-body .toc a { text-decoration: none; color: var(--ink); }
.post-body .toc a:hover { color: var(--accent-ink); }

/* Encadré « en bref » */
.key-points { border: 1px solid rgba(166, 137, 93, .55); background: rgba(166, 137, 93, .07); padding: 26px 30px 14px; margin: 0 0 44px; }
.key-title { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; }
.key-points ul { padding-left: 20px; }
.post-body .key-points li { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* Images et tableaux */
.post-figure { margin: 40px 0; }
.post-figure img { width: 100%; height: auto; display: block; }
.table-wrap { overflow-x: auto; margin: 0 0 32px; border-top: 1px solid rgba(42, 37, 32, .14); }
.post-body table { width: 100%; border-collapse: collapse; min-width: 520px; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.6; }
.post-body thead th { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.post-body tbody th { font-weight: 400; color: var(--ink); }

/* Questions fréquentes */
.post-faq { margin: 64px 0 0; }
.post-faq details { border-bottom: 1px solid rgba(42, 37, 32, .14); }
.post-faq details:first-of-type { border-top: 1px solid rgba(42, 37, 32, .14); }
.post-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary h3 { margin: 0; font-weight: 300; font-size: 20px; line-height: 1.4; }
.post-faq summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 300; font-size: 22px; line-height: 1; color: var(--accent-ink); transition: rotate .5s var(--ease); }
.post-faq details[open] summary::after { rotate: 45deg; }
.post-faq details p { margin: -4px 0 22px; }
.post-faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .6s var(--ease), content-visibility .6s allow-discrete; }
.post-faq details[open]::details-content { block-size: auto; }

/* Appel à l'action et auteur */
.post-cta { margin: 70px 0 0; padding: 44px 40px; background: var(--paper-2); text-align: center; }
.post-cta .kicker { margin-bottom: 16px; }
.post-body .post-cta h2 { margin: 0 0 14px; font-size: clamp(26px, 3.2vw, 34px); }
.post-cta p:not(.kicker) { font-style: italic; font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--body); margin: 0 auto 26px; max-width: 480px; }
.post-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 30px; }
.post-cta-actions .btn-dark { margin-top: 0; }
.author { margin: 50px 0 0; padding-top: 30px; border-top: 1px solid rgba(42, 37, 32, .14); }
.author-label { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--label); margin: 0 0 8px; }
.author-name { font-style: italic; font-weight: 300; font-size: 28px; color: var(--ink); margin: 0 0 10px; }
.author-bio { font-weight: 300; font-size: 16px; line-height: 1.8; color: var(--body); margin: 0 0 18px; }

/* À lire aussi */
.related { padding: clamp(70px, 10vh, 110px) var(--gutter); border-top: 1px solid rgba(42, 37, 32, .08); background: var(--paper-2); }
.related .h2-big { margin-bottom: 50px; }

/* Passages à compléter (visibles seulement dans l'aperçu : la publication est bloquée tant qu'il en reste) */
mark.todo { background: #ffe58a; color: #5a3d00; padding: 0 4px; font-style: normal; }

@media (max-width: 560px) {
  .post-body > p, .post-body li { font-size: 17px; }
  .post-cta { padding: 34px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card-img img, .post-faq details::details-content, .post-faq summary::after { transition: none !important; }
}
