@font-face {
  font-family: "Fraunces";
  src: url("/blog/assets/fonts/Fraunces-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/blog/assets/fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/blog/assets/fonts/SourceSans3-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F7F4;
  --ink: #18252F;
  --muted: #52616B;
  --accent: #1F5B55;
  --rule: #D8E0E3;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", sans-serif;
  --measure: 66ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --content: 1280px;
}

html { background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: -0.011em;
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 0;
}

.wrap { width: min(100% - 40px, var(--content)); margin-inline: auto; }

.kicker {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}

h1, .display {
  font-family: var(--font-display);
  font-weight: 360;
  font-style: normal;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0.4;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 7vw, 5.25rem);
}

.dek {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 40rem;
  margin: 0 0 28px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 20;
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 3.25em 0 0.65em;
  text-wrap: pretty;
}

h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.4em 0 0.7em;
}

.article-body p { margin: 0 0 1.25em; max-width: var(--measure); }
.article-body p:last-child { margin-bottom: 0; }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 180ms var(--ease);
}
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body a:visited { color: var(--accent); }

blockquote.pull {
  margin: 2.5em 0;
  max-width: 38rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 360;
  font-variation-settings: "opsz" 72, "SOFT" 50;
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.note-box {
  max-width: var(--measure);
  margin: 2em 0;
  padding: 16px 0 16px 20px;
  border-left: 2px solid var(--accent);
}
.note-box__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}
.note-box p { margin: 0; font-size: 16.5px; line-height: 1.55; }
/* MOB-FIX-02 — note-box CTA links : cible tactile minimale */
.note-box p a { display: inline-block; padding: 8px 0; }

.byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  max-width: var(--measure);
  padding: 16px 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--muted);
}
.byline strong { color: var(--ink); font-weight: 600; display: block; }
.byline__dates { font-variant-numeric: tabular-nums; }

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 0 20px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.masthead__name {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 40;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}
.masthead__meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead { margin-bottom: 80px; }
.lead .display { max-width: 18ch; }
@media (min-width: 960px) {
  .lead { display: grid; grid-template-columns: 8fr 4fr; gap: 48px; align-items: end; }
}

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index-list li { display: grid; grid-template-columns: 48px 1fr; gap: 8px 16px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.index-list .n { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 10px; }
.index-list a { color: inherit; text-decoration: none; }
.index-list .t {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60, "SOFT" 25;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 400ms var(--ease), color 180ms var(--ease);
}
.index-list a:hover .t { color: var(--accent); background-size: 100% 1px; }
.index-list .row2 { grid-column: 2; display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }

.article { padding-bottom: 96px; }
.article-body { max-width: var(--measure); }
@media (min-width: 1200px) {
  .article-frame { display: grid; grid-template-columns: 1fr var(--measure) 220px 1fr; column-gap: 40px; }
  .article-frame > .kicker, .article-frame > h1, .article-frame > .dek,
  .article-frame > .byline, .article-frame > .article-body { grid-column: 2; }
  .sidenote { grid-column: 3; font-size: 13px; color: var(--muted); margin-top: 0.35em; }
}

.progress { position: sticky; top: 0; z-index: 20; height: 2px; background: var(--rule); }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); }

.sources { max-width: var(--measure); margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); }
.sources ol { margin: 0; padding-left: 1.2em; font-size: 15px; color: var(--ink); }
.sources a { color: var(--muted); }

footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  margin-top: 64px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
}
footer.site-footer a { color: var(--muted); text-decoration: none; }
footer.site-footer a:hover { color: var(--ink); }
/* MOB-FIX-01 — footer nav : cible tactile minimale sur mobile */
footer.site-footer nav a { padding: 6px 3px; display: inline-block; }

/* Focus keyboard — WCAG 2.1 §2.4.7 */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 639px) {
  body { font-size: 17.5px; line-height: 1.65; }
  .index-list li { grid-template-columns: 36px 1fr; padding: 22px 0; }
  /* MOB-01 — tap targets share-bar ≥ 44px (WCAG 2.5.5) */
  .share-bar__btn { min-height: 44px; padding: 10px 14px; }
  /* MOB-02 — masthead : cacher tagline, réduire police pour tenir sur une ligne */
  .masthead__meta { display: none; }
  .masthead__name { font-size: 18px; }
}

/* ── Masthead hover (lien) ── */
.masthead__name { transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1); }
.masthead__name:hover { color: var(--accent); }

/* ── Section "À lire aussi" ── */
.also-section { max-width: var(--measure); margin: 56px 0 48px; }
.also-section > h3 { margin: 0; }
.sources h3 { margin-top: 0; }
.index-list .kicker { margin-bottom: 8px; }
.lead__disclaimer { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }
.note-box--final { margin-top: 48px; background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.sources__verified { margin-top: 16px; font-size: 13px; color: var(--muted); }

.also-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.also-list li { display: grid; grid-template-columns: 32px 1fr; gap: 6px 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.also-list .n { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 6px; }
.also-list a { color: inherit; text-decoration: none; }
.also-list .t {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48, "SOFT" 20;
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 400ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.also-list a:hover .t { color: var(--accent); background-size: 100% 1px; }
.also-list .sub { grid-column: 2; font-size: 13px; color: var(--muted); }

/* ── Page Communauté — Ressources ── */
.resource-list { margin: 24px 0 40px; }
.resource-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.resource-item:last-child { border-bottom: none; }
.resource-item__name { font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.resource-item p:last-child { margin: 0; font-size: 15px; color: var(--muted); }

/* ── Page Communauté — Checklist recours ── */
.checklist-question { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 16px; }
#recours-checklist button {
  display: inline-block; margin: 0 8px 8px 0; padding: 10px 18px;
  border: 1px solid var(--accent); background: none; color: var(--accent);
  font-family: var(--font-body); font-size: 15px; cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
#recours-checklist button:hover { background: var(--accent); color: white; }

/* E3 — barre d'identification légale */
.identification-bar {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.identification-bar strong { color: var(--ink); font-weight: 600; }
.identification-bar a { color: var(--muted); }
/* F2 — Barre de partage article */
.share-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 32px 0 24px; padding: 16px 0; border-top: 1px solid var(--rule);
}
.share-bar__label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.share-bar__btn {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border: 1px solid var(--rule); border-radius: 4px; font-size: 13px;
  text-decoration: none; color: var(--ink); background: none; cursor: pointer;
  font-family: var(--font-body); transition: border-color 150ms, background 150ms;
}
.share-bar__btn:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.share-bar__btn--wa::before { content: "💬 "; }
.share-bar__btn--li::before { content: "in "; font-weight: 700; font-style: italic; }
.share-bar__btn--copy::before { content: "🔗 "; }
.share-bar__btn--copy.copied { color: #065f46; border-color: #065f46; }
