/* Journal du souffle : une revue éditoriale, crème et bleu Release, typographie Hanken Grotesk. */
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/hanken-grotesk-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dm-sans-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

body[data-page^="/journal/"] {
  --j-ink: #1f2152; --j-soft: #8d8fc4; --j-peach: #f3b58d; --j-blue: #192c44;
  --j-title: 'Hanken Grotesk', var(--sans); --j-label: 'DM Sans', var(--sans);
  --j-gutter: clamp(1.4rem, 7vw, 9rem);
  background: #f6efe6; color: var(--j-ink); font-family: var(--j-title);
}
body[data-page^="/journal/"] .site-header { background: linear-gradient(to bottom, #f6efe6e6 30%, #f6efe600); color: var(--j-ink); }
body[data-page^="/journal/"] .site-header .release-wordmark { filter: brightness(0) saturate(100%) invert(12%) sepia(30%) saturate(2400%) hue-rotate(220deg) opacity(.85); }
.journal-visually-hidden, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.journal-kicker, .journal-theme { display: inline-flex; align-items: center; gap: .6rem; font: 650 .68rem/1.3 var(--j-label); letter-spacing: .15em; text-transform: uppercase; color: var(--j-ink); }
.journal-kicker::before, .journal-theme::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--j-peach); flex: none; }
.journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; font: 650 .62rem/1.3 var(--j-label); letter-spacing: .14em; text-transform: uppercase; color: #6b6ea0; }
.journal-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.journal-glow i { position: absolute; border-radius: 50%; filter: blur(70px); }
.journal-glow i:nth-child(1) { width: 44vw; height: 38vw; left: -10vw; top: 10%; background: radial-gradient(closest-side, #f3d3bd99, transparent); animation: j-a 24s ease-in-out infinite alternate; }
.journal-glow i:nth-child(2) { width: 40vw; height: 34vw; right: -8vw; top: -12%; background: radial-gradient(closest-side, #cdd2f2bb, transparent); animation: j-b 28s ease-in-out infinite alternate; }
@keyframes j-a { to { transform: translate(12vw, -6vh) scale(1.1); } }
@keyframes j-b { to { transform: translate(-10vw, 10vh) scale(.9); } }

/* ---------- Accueil du journal ---------- */
.journal-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; text-align: center; padding: calc(var(--header) + clamp(3rem, 9vh, 6rem)) var(--j-gutter) clamp(3rem, 8vh, 5rem); background: linear-gradient(170deg, #fbf8f3, #f2ece7 55%, #e9e6f1); }
.journal-hero h1 { margin-top: 1.3rem; font: 300 clamp(3rem, 6.4vw, 7.4rem)/.98 var(--j-title); letter-spacing: -.045em; }
.journal-hero h1 span { color: var(--j-soft); }
.journal-lead { max-width: 42ch; margin-top: 1.4rem; font-size: clamp(1.1rem, 1.35vw, 1.35rem); line-height: 1.5; color: #33366c; }
.journal-search { display: flex; align-items: center; gap: .8rem; width: min(100%, 36rem); margin-top: 2.4rem; padding: .3rem .4rem .3rem 1.3rem; border-radius: 999px; background: #ffffffcc; border: 1px solid #1f215222; box-shadow: 0 24px 60px -36px #1f215266; }
.journal-search svg { width: 1.2rem; flex: none; fill: none; stroke: var(--j-ink); stroke-width: 1.6; opacity: .6; }
.journal-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .95rem 0; font: 400 1.05rem/1 var(--j-title); color: var(--j-ink); }
.journal-search input:focus { outline: none; }
.journal-search:focus-within { border-color: #3c4fa6; }
.journal-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.journal-filters button { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid #1f215226; background: transparent; cursor: pointer; font: 650 .64rem/1 var(--j-label); letter-spacing: .14em; text-transform: uppercase; color: var(--j-ink); transition: background .4s, color .4s; }
.journal-filters button span { opacity: .55; }
.journal-filters button[aria-pressed="true"] { background: var(--j-blue); color: #fff; border-color: var(--j-blue); }

.journal-featured { padding: clamp(2rem, 6vh, 4rem) var(--j-gutter) 0; }
.journal-featured-link { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; text-decoration: none; color: inherit; }
.journal-featured-image { overflow: hidden; border-radius: 40px; }
.journal-featured-image img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform 1.2s var(--ease); }
.journal-featured-link:hover img { transform: scale(1.03); }
.journal-featured-copy h2 { margin-top: 1.2rem; font: 300 clamp(2.2rem, 3.6vw, 4rem)/1.04 var(--j-title); letter-spacing: -.035em; }
.journal-featured-copy > p:not(.journal-meta) { margin-top: 1.2rem; max-width: 42ch; font-size: 1.15rem; line-height: 1.55; color: #33366c; }
.journal-read { display: inline-flex; gap: .6rem; margin-top: 1.6rem; font: 650 .7rem/1 var(--j-label); letter-spacing: .16em; text-transform: uppercase; color: #3c4fa6; }

.journal-collection { padding: clamp(3rem, 8vh, 5rem) var(--j-gutter) clamp(5rem, 12vh, 8rem); }
.journal-status { min-height: 1.5em; margin-bottom: 1.2rem; color: #4b4f84; }
.journal-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.journal-entry { animation: j-in .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes j-in { from { opacity: 0; transform: translateY(16px); } }
.journal-entry-link { position: relative; display: grid; gap: .8rem; height: 100%; padding: .7rem .7rem 1.6rem; border-radius: 32px; text-decoration: none; color: inherit; background: #ffffff70; border: 1px solid #1f215214; transition: background .6s, transform .6s var(--ease), box-shadow .6s; }
.journal-entry-link:hover { background: #fff; transform: translateY(-5px); box-shadow: 0 30px 60px -40px #1f215266; }
.journal-entry-image { overflow: hidden; border-radius: 24px; }
.journal-entry-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.journal-entry-link > :not(.journal-entry-image) { padding-inline: .9rem; }
.journal-entry h3 { font: 330 1.5rem/1.15 var(--j-title); letter-spacing: -.025em; }
.journal-entry-link > p:not(.journal-meta) { color: #3d4074; line-height: 1.5; }
.journal-entry-arrow { position: absolute; top: 1.4rem; right: 1.4rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: #ffffffd9; transition: transform .5s var(--ease); }
.journal-entry-link:hover .journal-entry-arrow { transform: rotate(-45deg); }

/* ---------- Article ---------- */
.journal-progress { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.journal-progress span { display: block; height: 100%; background: linear-gradient(90deg, #f3b58d, #8d8fc4); transform-origin: left; transform: scaleX(0); }
.journal-article-header { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; text-align: center; padding: calc(var(--header) + clamp(2.6rem, 8vh, 5rem)) var(--j-gutter) clamp(2.6rem, 7vh, 4rem); background: linear-gradient(170deg, #fbf8f3, #f2ece7 55%, #ece9f2); }
.journal-back { margin-bottom: 1.6rem; font: 650 .64rem/1 var(--j-label); letter-spacing: .14em; text-transform: uppercase; color: #4b4f84; text-decoration: none; }
.journal-article-header h1 { max-width: 20ch; margin-top: 1.2rem; font: 300 clamp(2.6rem, 5vw, 5.6rem)/1.02 var(--j-title); letter-spacing: -.04em; }
.journal-article-intro { max-width: 52ch; margin-top: 1.4rem; font-size: clamp(1.12rem, 1.4vw, 1.4rem); line-height: 1.5; color: #33366c; }
.journal-article-photo { margin: 0 var(--j-gutter); overflow: hidden; border-radius: 40px; }
.journal-article-photo img { display: block; width: 100%; max-height: 70vh; object-fit: cover; }
.journal-body { display: grid; grid-template-columns: 16rem minmax(0, 42rem); justify-content: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 9vh, 6rem) var(--j-gutter); }
.journal-toc { position: sticky; top: calc(var(--header) + 2rem); align-self: start; }
.journal-toc ol { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .1rem; counter-reset: toc; }
.journal-toc li { counter-increment: toc; }
.journal-toc a { display: flex; gap: .7rem; padding: .55rem 0; border-top: 1px solid #1f215214; text-decoration: none; color: #3d4074; line-height: 1.35; font-size: .95rem; }
.journal-toc a::before { content: '0' counter(toc); font: 650 .6rem/1.9 var(--j-label); letter-spacing: .1em; color: #8d8fc4; }
.journal-toc a:hover { color: #3c4fa6; }
.journal-prose { font-size: 1.15rem; line-height: 1.72; color: #262a5c; }
.journal-prose section { scroll-margin-top: calc(var(--header) + 1.5rem); }
.journal-prose h2 { margin: 2.8rem 0 1rem; font: 330 clamp(1.7rem, 2.4vw, 2.3rem)/1.15 var(--j-title); letter-spacing: -.025em; color: var(--j-ink); }
.journal-prose p + p { margin-top: 1.1rem; }
.journal-prose h3 { margin: 2rem 0 .7rem; font: 400 clamp(1.25rem, 1.6vw, 1.45rem)/1.25 var(--j-title); letter-spacing: -.015em; color: var(--j-ink); }
.journal-prose p a { color: #3c4fa6; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.journal-keypoints { padding: 1.8rem 2rem; border-radius: 32px; background: linear-gradient(150deg, #ffffffd0, #ffffff70); border: 1px solid #1f21521c; }
.journal-keypoints ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.journal-keypoints li { display: flex; gap: .8rem; line-height: 1.5; font-size: 1.05rem; }
.journal-keypoints li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .65em; border-radius: 50%; background: var(--j-peach); }
.journal-faq details { border-top: 1px solid #1f21521c; }
.journal-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; display: flex; justify-content: space-between; gap: 1rem; font: 400 1.15rem/1.35 var(--j-title); }
.journal-faq summary::-webkit-details-marker { display: none; }
.journal-faq summary::after { content: '+'; color: #8d8fc4; transition: transform .4s; }
.journal-faq details[open] summary::after { transform: rotate(45deg); }
.journal-faq details p { padding-bottom: 1.1rem; color: #3d4074; }
.journal-sources { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid #1f21521c; display: grid; gap: .5rem; font-size: .95rem; }
.journal-sources h2 { margin: 0 0 .4rem; font: 650 .64rem/1 var(--j-label); letter-spacing: .14em; text-transform: uppercase; }
.journal-sources a { color: #3c4fa6; text-underline-offset: .25em; }
.journal-cta { display: inline-flex; align-items: center; gap: .6rem; margin-top: 2.4rem; padding: 1rem 1.6rem; border-radius: 999px; color: #fff; text-decoration: none; background: linear-gradient(120deg, var(--j-blue), #3c4fa6); font: 650 .7rem/1 var(--j-label); letter-spacing: .16em; text-transform: uppercase; }
.journal-cta::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #8fe0f0; }
.journal-next { padding: 0 var(--j-gutter) clamp(4rem, 10vh, 7rem); }
.journal-next a { display: grid; grid-template-columns: 1fr 22rem; gap: 2rem; align-items: center; padding: 1rem 1rem 1rem 2.2rem; border-radius: 36px; text-decoration: none; color: inherit; background: #ffffff80; border: 1px solid #1f215214; transition: background .6s; }
.journal-next a:hover { background: #fff; }
.journal-next h2 { margin-top: .8rem; font: 330 clamp(1.6rem, 2.4vw, 2.4rem)/1.1 var(--j-title); letter-spacing: -.03em; }
.journal-next p:not(.journal-kicker) { margin-top: .7rem; color: #3d4074; line-height: 1.5; }
.journal-next img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; }

@media (max-width: 960px) {
  .journal-featured-link, .journal-body, .journal-next a { grid-template-columns: 1fr; }
  .journal-entries { grid-template-columns: 1fr 1fr; }
  .journal-toc { position: static; }
  .journal-next a { padding: 1.4rem; }
}
@media (max-width: 620px) { .journal-entries { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .journal-glow i, .journal-entry { animation: none !important; } }

/* Pages du Journal */
.journal-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 2.5rem 0 1rem; }
.journal-pages button { min-width: 2.8rem; height: 2.8rem; padding: 0 1rem; border-radius: 999px; border: 1px solid #1f215233; background: transparent; color: #1f2152; font: 650 .78rem/1 'DM Sans', var(--sans); letter-spacing: .1em; cursor: pointer; }
.journal-pages button[aria-current="page"] { background: #1f2152; color: #f6efe6; }
.journal-pages .journal-next-page { text-transform: uppercase; }
