/* ==========================================================================
   Super Sister — feuille de style du magazine
   Direction : éditoriale, sobre, typographie Didone (Playfair Display) + Inter.
   ========================================================================== */

@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #FBF8F3;
  --paper-alt: #F3EEE6;
  --white: #FFFFFF;
  --ink: #18221E;
  --ink-soft: #46524D;
  --muted: #6F7A75;
  --line: #E2DBCF;
  --line-strong: #CFC6B7;
  --green: #1D4A3B;
  --green-dark: #123128;
  --green-tint: #E6ECE7;
  --rose: #B36A68;
  --rose-light: #D9A19E;
  --rose-tint: #F4E6E3;

  --serif: 'Playfair Display', 'Didot', 'Bodoni MT', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(.25, .7, .25, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.65; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--rose-tint); color: var(--ink); }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--green); color: var(--white); padding: 10px 16px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Libellés éditoriaux */
.label {
  display: block; margin: 0 0 .9rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rose);
}
.label-light { color: var(--rose-light); }
.kicker {
  display: inline-block; margin: 0 0 .6rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose);
  position: relative; z-index: 2;
}
a.kicker:hover, .kicker a:hover { color: var(--green); }
.meta { margin: 0; font-size: .8rem; color: var(--muted); letter-spacing: 0; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.8em; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--green-dark); }
.btn-light:hover { background: var(--white); }
.btn-sm { padding: .85em 1.3em; font-size: .68rem; }
.btn-block { width: 100%; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; color: var(--ink); transition: color .2s; }
.icon-btn:hover { color: var(--green); }
.icon-btn .icon { width: 20px; height: 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: .55em; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--green); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.topbar { background: var(--green-dark); color: rgba(251, 248, 243, .82); font-size: .72rem; letter-spacing: .04em; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 36px; }
.topbar p { margin: 0; }
.topbar-tagline { text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; }
.topbar-date { position: absolute; left: 50%; transform: translateX(-50%); }
.topbar-social { list-style: none; display: flex; gap: .25rem; }
.topbar-social a { display: grid; place-items: center; width: 28px; height: 28px; color: inherit; }
.topbar-social a:hover { color: var(--white); }
.topbar-social .icon { width: 15px; height: 15px; }
.topbar-inner { position: relative; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(18, 49, 40, .25); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); transition: height .3s var(--ease); }
.is-scrolled .header-inner { height: 68px; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; }
.main-nav a, .mega-toggle {
  display: inline-flex; align-items: center; gap: .35em; padding: .5rem 0; border: 0; background: none;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  position: relative;
}
.main-nav a::after, .mega-toggle::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .mega-toggle:hover::after, .main-nav a[aria-current]::after, .mega-toggle[data-current]::after, .mega-toggle[aria-expanded="true"]::after { transform: scaleX(1); }
.chevron { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.mega-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.brand { display: flex; flex-direction: column; align-items: center; gap: .25rem; color: var(--ink); }
.brand img { height: 44px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .brand img { height: 34px; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: .02em; line-height: 1; }
.is-scrolled .brand .brand-name { display: none; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.menu-toggle { display: none; }

/* Méga-menu Thèmes */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(18, 49, 40, .25); }
.mega[hidden] { display: none; }
.mega-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; padding-block: 2.25rem 2.5rem; }
.mega-inner > div { flex: 1; }
.mega-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.mega-list a { display: block; padding: .95rem 0; border-top: 1px solid var(--line); }
.mega-name { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); transition: color .2s; }
.mega-desc { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; line-height: 1.45; }
.mega-list a:hover .mega-name { color: var(--green); }
.mega-all { display: inline-flex; align-items: center; gap: .5em; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; padding-bottom: 1rem; }
.mega-all:hover { color: var(--green); }

/* Tiroir mobile */
.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(18, 34, 30, .45); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(420px, 88vw); background: var(--paper); padding: 1.25rem var(--gutter) 2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.75rem; animation: slideIn .35s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.drawer-main { list-style: none; }
.drawer-main a { display: block; padding: .7rem 0; font-family: var(--serif); font-size: 1.6rem; }
.drawer-main a[aria-current] { color: var(--green); font-style: italic; }
.drawer-themes { list-style: none; }
.drawer-themes a { display: flex; justify-content: space-between; padding: .8rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.drawer-themes span { color: var(--muted); font-size: .8rem; }
.drawer .btn { margin-top: auto; }

/* Recherche */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(251, 248, 243, .97); display: flex; align-items: flex-start; justify-content: center; padding: 18vh var(--gutter) 0; animation: fade .25s ease; }
.search-overlay[hidden] { display: none; }
.search-panel { width: min(760px, 100%); position: relative; }
.search-row { display: flex; gap: 1rem; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: .75rem; }
.search-row input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.4rem); padding: .2rem 0; }
.search-row input::placeholder { color: #B8B0A3; }
.search-close { position: absolute; top: -64px; right: -8px; }

/* ==========================================================================
   Accueil
   ========================================================================== */
.intro { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.intro-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem 4rem; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: clamp(2rem, 4vw, 3rem); }
.intro-title { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.04; letter-spacing: -0.02em; font-weight: 400; }
.intro-title em { display: block; }
.intro-text { font-size: 1.02rem; color: var(--ink-soft); max-width: 30em; margin: 0; }

.lead { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.lead-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.lead-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-alt); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lead-main:hover .lead-media img { transform: scale(1.03); }
.lead-body { padding-top: 1.75rem; max-width: 46rem; }
.lead-body .kicker span { color: var(--ink); }
.lead-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; margin-bottom: 1rem; }
.lead-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .5s var(--ease); }
.lead-title a:hover { background-size: 100% 1px; }
.lead-excerpt { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1rem; }

.lead-side { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; }
.lead-side .label { padding-bottom: .9rem; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.lead-side .link-arrow { margin-top: 1.5rem; }

.card-compact { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.card-compact-media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-alt); }
.card-compact-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card-compact:hover .card-compact-media img { transform: scale(1.06); }
.card-compact .kicker { margin-bottom: .35rem; }
.card-compact-title { font-size: 1.05rem; line-height: 1.3; margin-bottom: .4rem; }
.card-compact-title a:hover { color: var(--green); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper-alt); }
.section-top-0 { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); padding-bottom: 1.25rem; border-bottom: 1px solid var(--ink); }
.section-head .label { margin-bottom: .6rem; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 400; }

/* Index des thèmes */
.theme-index { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4rem); }
.theme-index a { display: grid; grid-template-columns: 3rem 1fr auto 1.5rem; align-items: baseline; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line-strong); transition: color .25s; }
.theme-num { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1rem; }
.theme-name { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.theme-count { font-size: .76rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.theme-arrow { width: 18px; height: 18px; align-self: center; opacity: .35; transition: transform .3s var(--ease), opacity .3s; }
.theme-index a:hover { color: var(--green); }
.theme-index a:hover .theme-arrow { opacity: 1; transform: translateX(4px); }

/* Cartes */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-alt); margin-bottom: 1.25rem; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-title { font-size: 1.4rem; line-height: 1.22; margin-bottom: .7rem; }
.card-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .45s var(--ease); }
.card:hover .card-title a { background-size: 100% 1px; }
.card-excerpt { color: var(--ink-soft); font-size: .95rem; margin-bottom: .9rem; }
.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--paper-alt); }
.img-placeholder img { width: 64px !important; height: auto !important; opacity: .35; }

/* Manifeste */
.manifesto { background: var(--green); color: rgba(251, 248, 243, .88); padding: clamp(4rem, 9vw, 7rem) 0; }
.manifesto-head { max-width: 900px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.manifesto h2 { color: var(--paper); font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 400; line-height: 1.15; }
.manifesto h2 em { color: var(--rose-light); }
.commitments { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.commitments li { border-top: 1px solid rgba(251, 248, 243, .25); padding-top: 1.5rem; }
.commitment-num { display: block; font-family: var(--serif); font-style: italic; color: var(--rose-light); font-size: 1.05rem; margin-bottom: 1rem; }
.commitments h3 { color: var(--paper); font-size: 1.35rem; margin-bottom: .7rem; }
.commitments p { margin: 0; font-size: .95rem; line-height: 1.7; }

/* Les plus lus */
.popular { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); }
.popular-head .section-title { max-width: 12em; }
.popular-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 4vw, 3rem); }
.popular-list li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line-strong); }
.popular-num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: .9; color: var(--rose-light); }
.popular-list h3 { font-size: 1.18rem; line-height: 1.3; margin-bottom: .45rem; }
.popular-list h3 a:hover { color: var(--green); }

/* Newsletter */
.newsletter { background: var(--green); color: rgba(251, 248, 243, .85); padding: clamp(3.5rem, 7vw, 5rem) 0; }
.newsletter-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: center; }
.newsletter h2 { color: var(--paper); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; margin-bottom: 1rem; }
.newsletter-text p:last-child { margin: 0; max-width: 32em; }
.newsletter-row { display: flex; border-bottom: 1px solid rgba(251, 248, 243, .5); }
.newsletter-row input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--paper); padding: 1rem 0; font-size: 1rem; }
.newsletter-row input::placeholder { color: rgba(251, 248, 243, .55); }
.newsletter-row:focus-within { border-color: var(--paper); }
.newsletter .btn-light { margin: .4rem 0; }
.form-note { font-size: .76rem; margin: .9rem 0 0; color: rgba(251, 248, 243, .6); }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.form-feedback { margin: .6rem 0 0; font-size: .9rem; min-height: 1.4em; }
.form-feedback.is-ok { color: #CFE3D6; }
.form-feedback.is-error { color: var(--rose-light); }

/* ==========================================================================
   Pages de liste
   ========================================================================== */
.page-header { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.page-title { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 1rem; max-width: 18em; }
.page-intro { font-size: 1.08rem; color: var(--ink-soft); max-width: 38em; }
.page-count { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

.breadcrumb { margin-bottom: 1.75rem; font-size: .76rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: .4rem; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink-soft); }

.inline-search { display: flex; align-items: center; gap: .75rem; max-width: 560px; margin-top: 1.75rem; border-bottom: 1px solid var(--ink); padding-bottom: .5rem; }
.inline-search > .icon { color: var(--muted); }
.inline-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: .5rem 0; font-size: 1rem; }

.filter-tabs { display: flex; gap: .25rem 1.75rem; flex-wrap: wrap; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.filter-tabs a { padding: .35rem 0; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.filter-tabs a:hover { color: var(--ink); }
.filter-tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }

.empty-state { padding: 4rem 0; border-top: 1px solid var(--line); text-align: center; }
.empty-state h2 { font-size: 1.6rem; margin-bottom: .75rem; }
.empty-state p { color: var(--ink-soft); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.page-numbers { list-style: none; display: flex; gap: .25rem; }
.page-link { display: inline-flex; align-items: center; gap: .5em; min-width: 40px; height: 40px; justify-content: center; padding: 0 .6rem; font-size: .85rem; border: 1px solid transparent; transition: border-color .2s; }
.page-link:hover { border-color: var(--line-strong); }
.page-link.is-current { background: var(--ink); color: var(--paper); }
.page-prev, .page-next { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.page-link .icon { width: 16px; }
.page-gap { display: inline-grid; place-items: center; width: 28px; height: 40px; color: var(--muted); }

/* Thèmes */
.theme-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
.theme-card { display: flex; flex-direction: column; height: 100%; }
.theme-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-alt); margin-bottom: 1.25rem; }
.theme-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.theme-card:hover .theme-card-media img { transform: scale(1.04); }
.theme-card-body { display: flex; flex-direction: column; flex: 1; }
.theme-card-count { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: .6rem; }
.theme-card h2 { font-size: 1.6rem; margin-bottom: .6rem; transition: color .2s; }
.theme-card:hover h2 { color: var(--green); }
.theme-card-desc { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.1rem; }
.theme-card .link-arrow { margin-top: auto; }

/* À propos */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.about-photo img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.lede { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--ink); }

/* ==========================================================================
   Article
   ========================================================================== */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; background: var(--green); transform-origin: left; transform: scaleX(0); }
.preview-banner { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; padding: .8rem 1rem; background: #FFF3D6; color: #5E4700; font-size: .85rem; }
.preview-banner a { text-decoration: underline; font-weight: 600; }

.post-header { text-align: center; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); max-width: 980px; }
.post-header .breadcrumb ol { justify-content: center; }
.post-title { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; margin: .25rem auto 1.5rem; text-wrap: balance; }
.post-standfirst { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); max-width: 40em; margin: 0 auto 2rem; text-wrap: pretty; }
.post-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; padding: 1.1rem 0; border-block: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.post-byline strong { color: var(--ink); font-weight: 600; }
.post-byline .reviewed { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); }
.post-byline .reviewed strong { color: var(--green); }
.post-byline .icon { width: 15px; height: 15px; }

.post-cover { margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: 220px minmax(0, 700px); justify-content: center; gap: clamp(2rem, 6vw, 6rem); }
.post-aside-inner { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 2.5rem; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -1px; border-left: 1px solid transparent; font-size: .84rem; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--ink); }
.toc-mobile { display: none; }

.share-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.share-list li:has(> [hidden]) { display: none; }
.share-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.share-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.share-btn .icon { width: 16px; height: 16px; }

/* Corps de texte */
.prose { font-size: 1.125rem; line-height: 1.8; color: #26302C; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; margin: 2.4em 0 .8em; line-height: 1.2; }
.prose h3 { font-size: clamp(1.25rem, 2.2vw, 1.45rem); font-weight: 500; margin: 2em 0 .6em; }
.prose h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 1.6em 0 .5em; }
.prose a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--rose); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.6em; padding-left: 1.3em; }
.prose li { margin-bottom: .6em; padding-left: .35em; }
.prose ul li::marker { color: var(--rose); }
.prose ol li::marker { color: var(--rose); font-family: var(--serif); font-style: italic; }
.prose blockquote { margin: 2.5em 0; padding: 1.75em 0; border-block: 1px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.4; color: var(--ink); text-align: center; }
.prose blockquote p { margin: 0; }
.prose img { margin: 2.2em auto; }
.prose figure { margin: 2.2em 0; }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: .6em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose mark { background: var(--rose-tint); padding: 0 .15em; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { margin-left: 1.5em; }
.prose .ql-indent-2 { margin-left: 3em; }
.prose-about h2 { margin-top: 1.8em; }

.notice { margin: 3rem 0 2.5rem; padding: 1.5rem 1.75rem; background: var(--green-tint); border-left: 2px solid var(--green); font-size: .92rem; color: var(--ink-soft); }
.notice .label { color: var(--green); margin-bottom: .5rem; }
.notice p:last-child { margin: 0; }

.sources { margin: 2.5rem 0; }
.sources .label { color: var(--ink); padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.sources ol { padding-left: 1.4em; display: grid; gap: .5rem; font-size: .88rem; color: var(--ink-soft); }
.sources a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.sources a:hover { color: var(--green); text-decoration-color: currentColor; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.tags a { display: inline-block; padding: .45em .9em; border: 1px solid var(--line-strong); font-size: .76rem; color: var(--ink-soft); transition: border-color .2s, color .2s; }
.tags a:hover { border-color: var(--ink); color: var(--ink); }

.share-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0; border-block: 1px solid var(--line); margin: 2.5rem 0; }
.share-bottom p { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.author-box { padding: 2rem; background: var(--paper-alt); }
.author-name { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 .5rem; }
.author-bio { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.post-nav a { display: block; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.post-nav .label { display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.post-nav .label .icon { width: 14px; }
.post-nav strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.3; }
.post-nav a:hover strong { color: var(--green); }
.post-nav-next { text-align: right; }
.post-nav-next .label { justify-content: flex-end; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--green-dark); color: rgba(251, 248, 243, .72); padding-top: clamp(3.5rem, 7vw, 5rem); border-top: 1px solid rgba(251, 248, 243, .08); font-size: .9rem; }
.newsletter + .site-footer, main + .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .9rem; color: var(--paper); margin-bottom: 1.25rem; }
.footer-logo img { height: 46px; width: auto; }
.footer-logo .brand-name { font-size: 1.45rem; }
.footer-brand p { max-width: 26em; line-height: 1.7; }
.footer-title { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-light); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a:hover { color: var(--paper); }
.footer-note p:last-child { line-height: 1.7; }
.footer-social { list-style: none; display: flex; gap: .5rem; margin-top: 1.5rem; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(251, 248, 243, .25); border-radius: 50%; color: var(--paper); transition: background-color .2s, color .2s; }
.footer-social a:hover { background: var(--paper); color: var(--green-dark); }
.footer-social .icon { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(251, 248, 243, .12); font-size: .78rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--paper); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; background: var(--ink); color: var(--paper); padding: .9rem 1.4rem; font-size: .88rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); }

/* Erreurs */
.error-page { padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.error-code { font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 14vw, 8rem); line-height: 1; color: var(--rose-light); margin-bottom: 1.5rem; }
.error-page .page-title, .error-page .page-intro { margin-inline: auto; }
.error-links { list-style: none; max-width: 560px; margin: 2.5rem auto; text-align: left; border-top: 1px solid var(--ink); }
.error-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.1rem; }
.error-links a:hover { color: var(--green); }
.error-links .icon { width: 18px; }

/* ==========================================================================
   Animations
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 700px); }
  .post-aside { display: none; }
  .toc-mobile { display: block; margin-bottom: 2.5rem; border-block: 1px solid var(--line); }
  .toc-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; cursor: pointer; list-style: none; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile[open] summary .icon { transform: rotate(180deg); }
  .toc-mobile ol { padding: 0 0 1.25rem 1.2rem; display: grid; gap: .5rem; font-size: .95rem; }
  .toc-mobile a:hover { color: var(--green); }
  .mega-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .popular { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .topbar { display: none; }
  .header-inner, .is-scrolled .header-inner { grid-template-columns: 44px 1fr auto; height: var(--header-h); }
  .menu-toggle { display: inline-grid; margin-left: -10px; }
  .main-nav, .mega { display: none !important; }
  .brand { flex-direction: row; gap: .6rem; justify-self: center; }
  .brand img, .is-scrolled .brand img { height: 36px; }
  .brand .brand-name, .is-scrolled .brand .brand-name { display: block; font-size: 1.2rem; }
  .header-cta { display: none; }
  .header-actions { gap: 0; margin-right: -10px; }
  .intro-inner { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-side { border-left: 0; padding-left: 0; }
  .card-grid, .theme-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commitments { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 520px; }
}

@media (max-width: 640px) {
  .header-inner .brand .brand-name { font-size: 1.1rem; }
  .intro { padding-top: 2rem; }
  .intro-title em { display: inline; }
  .lead-media { margin-inline: calc(var(--gutter) * -1); }
  .theme-index { grid-template-columns: 1fr; }
  .theme-index a { grid-template-columns: 2.25rem 1fr auto; }
  .theme-arrow { display: none; }
  .card-grid, .theme-cards { grid-template-columns: 1fr; }
  .card-compact { grid-template-columns: 84px 1fr; }
  .popular-list { grid-template-columns: 1fr; }
  .post-cover { padding-inline: 0; }
  .post-byline { gap: .35rem 1.25rem; }
  .prose { font-size: 1.06rem; line-height: 1.75; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-nav-next .label { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .filter-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs a { flex-shrink: 0; }
  .newsletter-row { flex-direction: column; border: 0; gap: .75rem; }
  .newsletter-row input { border-bottom: 1px solid rgba(251, 248, 243, .5); }
  .pagination .page-prev span, .pagination .page-next span { display: none; }
  .search-row { flex-direction: column; align-items: stretch; }
}

@media print {
  .topbar, .site-header, .site-footer, .post-aside, .share-bottom, .newsletter, .reading-progress, .toc-mobile, .post-nav, .section-alt { display: none !important; }
}

/* Légende de la photo de couverture */
.post-cover figcaption { margin-top: .7rem; font-size: .78rem; color: var(--muted); text-align: right; }
@media (max-width: 640px) { .post-cover figcaption { padding-inline: var(--gutter); text-align: left; } }
