/* =====================================================================
   Fastcheck — feuille de style publique
   Direction : éditorial moderne (magazine), clair/sombre, sans dépendance.
   ===================================================================== */

:root {
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #fbfaf8;
  --bg-alt: #f4f1ec;
  --surface: #ffffff;
  --ink: #12141a;
  --ink-soft: #3a3f48;
  --muted: #6b707a;
  --line: #e9e4dc;
  --line-strong: #d9d3c8;
  --accent: #e0361f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(224, 54, 31, 0.08);

  --shell: 1200px;
  --radius: 18px;
  --radius-sm: 11px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18, 20, 26, 0.05);
  --shadow-md: 0 12px 30px -18px rgba(18, 20, 26, 0.35);
  --shadow-lg: 0 28px 60px -30px rgba(18, 20, 26, 0.45);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.dark {
  --bg: #0c0e12;
  --bg-alt: #12151b;
  --surface: #14171e;
  --ink: #f3f1ec;
  --ink-soft: #c7ccd4;
  --muted: #98a0ab;
  --line: #232830;
  --line-strong: #333a45;
  --accent: #ff5c3d;
  --accent-ink: #17110f;
  --accent-soft: rgba(255, 92, 61, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 28px 60px -30px rgba(0, 0, 0, 0.85);
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.62;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 1.35rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; display: inline-block; }

/* ------------------------------------------------------------- top strip */

.topstrip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.topstrip__in {
  display: flex; align-items: center; gap: 1rem;
  min-height: 38px;
}
.topstrip__date { color: var(--muted); text-transform: capitalize; }
.topstrip__links { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.topstrip__link {
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
  transition: color 0.15s var(--ease);
}
.topstrip__link:hover { color: var(--accent); }

/* ----------------------------------------------------------- site header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.masthead { display: flex; align-items: center; gap: 1rem; padding-block: 1.05rem; }
.masthead__in { display: flex; align-items: center; gap: 1rem; width: 100%; }

.wordmark { display: inline-flex; align-items: baseline; gap: 0.65rem; min-width: 0; }
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1;
  font-variation-settings: "opsz" 120, "SOFT" 0, "WONK" 1;
}
.wordmark__dot { color: var(--accent); }

.masthead__tools { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

.iconbtn {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease);
}
.iconbtn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }

.searchbox {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 0.15rem 0.2rem 0.15rem 0.9rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbox input {
  border: 0; background: transparent; color: var(--ink); padding: 0.5rem 0;
  font: inherit; font-size: 0.9rem; width: 15ch; min-width: 0;
}
.searchbox input::placeholder { color: var(--muted); }
.searchbox input:focus { outline: none; }
.searchbox button {
  display: grid; place-items: center; width: 34px; height: 34px; border: 0;
  border-radius: 50%; background: var(--ink); color: var(--bg); cursor: pointer;
  transition: background 0.15s var(--ease);
}
.searchbox button:hover { background: var(--accent); color: var(--accent-ink); }

.search-toggle { display: none; }
@media (max-width: 860px) {
  .searchbox {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    padding: 0.7rem 1.35rem; background: var(--surface); box-shadow: var(--shadow-md);
  }
  .searchbox input { flex: 1; width: auto; }
  body.search-open .searchbox { display: flex; }
  .search-toggle { display: grid; }
}

/* ------------------------------------------------------------- category nav */

.catnav { border-top: 1px solid var(--line); }
.catnav__in { display: flex; align-items: center; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; }
.catnav__in::-webkit-scrollbar { display: none; }
.catnav__list { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.catnav__link {
  display: block; white-space: nowrap; padding: 0.75rem 0.8rem;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-soft); position: relative; transition: color 0.15s var(--ease);
}
.catnav__link::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.catnav__link:hover { color: var(--ink); }
.catnav__link:hover::after, .catnav__link.is-active::after { transform: scaleX(1); }
.catnav__link.is-active { color: var(--accent); }

.nav-burger { display: none; }
@media (max-width: 720px) {
  .nav-burger {
    display: grid; place-items: center; gap: 4px; width: 40px; height: 40px;
    border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer;
  }
  .nav-burger span { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .catnav__in { display: block; overflow: visible; }
  .catnav__list {
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  body.nav-open .catnav__list { max-height: 34rem; }
  .catnav__link { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
  .catnav__link::after { display: none; }
  .catnav__list li:last-child .catnav__link { border-bottom: 0; }
}

/* ------------------------------------------------------------------- main */

main { display: block; padding-block: 2.5rem 3.5rem; }

.kicker, .card__cat, .page-head__kicker, .post__kicker, .hero__kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.card__cat:hover, .hero__kicker:hover { text-decoration: underline; text-underline-offset: 3px; }

.meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  color: var(--muted); font-size: 0.78rem; letter-spacing: 0.01em;
}
.meta time { font-variant-numeric: tabular-nums; }

.section-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin: 0 0 1.5rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line);
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.65rem);
  letter-spacing: -0.02em; margin: 0;
}
.section-head .section-title { position: relative; }
.section-head .section-title::before {
  content: ""; position: absolute; left: 0; bottom: -0.95rem; width: 2.5rem; height: 3px; background: var(--accent);
}
.section-head__link { margin-left: auto; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; transition: color 0.15s var(--ease); }
.section-head__link:hover { color: var(--accent); }

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid; grid-template-columns: 1.12fr 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}
.hero__media { position: relative; overflow: hidden; min-height: 340px; background: var(--bg-alt); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.hero:hover .hero__media img { transform: scale(1.035); }
.hero__body { padding: clamp(1.6rem, 1rem + 2vw, 2.9rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.9rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.85rem);
  letter-spacing: -0.03em; line-height: 1.05; margin: 0;
  font-variation-settings: "opsz" 100, "SOFT" 0, "WONK" 1;
}
.hero__title a { transition: color 0.15s var(--ease); }
.hero__title a:hover { color: var(--accent); }
.hero__excerpt { color: var(--ink-soft); font-size: 1.02rem; margin: 0; max-width: 46ch; }
.hero__more { margin-top: 0.4rem; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 0; aspect-ratio: 16 / 10; }
  .hero__body { padding: 1.5rem; }
}
.hero--solo { grid-template-columns: 1fr; }
.hero--solo .hero__body { padding: clamp(1.8rem, 1.2rem + 3vw, 3.4rem); }

/* ----------------------------------------------------------------- cards */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; gap: 2.5rem; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 1.6rem; margin-bottom: 2.5rem; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.3rem 1.35rem 1.4rem; flex: 1; }
.card__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: -0.02em; line-height: 1.22; margin: 0;
}
.card__title a { transition: color 0.15s var(--ease); }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1; }
.card__meta { margin-top: 0.35rem; }

.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media { flex: 0 0 40%; aspect-ratio: auto; }
.card--row .card__body { padding: 1.2rem 1.3rem; }
@media (max-width: 520px) {
  .card--row { flex-direction: column; }
  .card--row .card__media { flex: none; aspect-ratio: 16 / 10; }
}

/* ---------------------------------------------------------- page headings */

.page-head { max-width: 46rem; margin-bottom: 2.2rem; }
.page-head__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); letter-spacing: -0.035em; margin: 0.35rem 0 0.6rem; }
.page-head__desc { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 0.6rem; }
.page-head__count { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--bg);
  padding: 0.72rem 1.35rem; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  border: 1px solid var(--ink); cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.74rem; }

.bigsearch { display: flex; gap: 0.6rem; margin-top: 1.2rem; max-width: 34rem; }
.bigsearch input {
  flex: 1; min-width: 0; padding: 0.85rem 1.1rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
}
.bigsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ------------------------------------------------------------- pagination */

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.5rem 0 1rem; }
.pager__link {
  padding: 0.6rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.pager__link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager__link.is-disabled { opacity: 0.4; pointer-events: none; }
.pager__pos { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------------------------------------------------------------- sidebar */

.sidebar { display: flex; flex-direction: column; gap: 1.6rem; position: sticky; top: 8.5rem; }
@media (max-width: 980px) { .sidebar { position: static; } }

.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; }
.widget__title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line);
}
.cat-list { list-style: none; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.92rem; transition: color 0.15s var(--ease), padding-left 0.2s var(--ease);
}
.cat-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.cat-list a:hover { color: var(--accent); padding-left: 0.3rem; }
.cat-list em { font-style: normal; font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.rank-list { list-style: none; counter-reset: rank; }
.rank-list li { counter-increment: rank; }
.rank-list a {
  display: flex; gap: 0.85rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.92rem; line-height: 1.35; transition: color 0.15s var(--ease);
}
.rank-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.rank-list a::before {
  content: counter(rank, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1;
  color: var(--line-strong); flex: 0 0 auto; transition: color 0.15s var(--ease);
}
.rank-list a:hover { color: var(--accent); }
.rank-list a:hover::before { color: var(--accent); }

.tagcloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.32rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 0.76rem; color: var(--ink-soft); background: var(--bg-alt);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.tag span { color: var(--muted); font-size: 0.68rem; }
.tag:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tag:hover span { color: var(--accent-ink); }

.widget--feed p { font-size: 0.9rem; color: var(--muted); }
.widget--feed .btn { margin-top: 0.3rem; }

/* ------------------------------------------------------------------ post */

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.1s linear; }

.post, .static-page { max-width: 44rem; margin-inline: auto; }
.post__head { margin-bottom: 1.8rem; }
.post__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.1rem, 1.2rem + 4vw, 3.6rem);
  letter-spacing: -0.04em; line-height: 1.02; margin: 0.6rem 0 0.9rem;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}
.post__lede { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.32rem); line-height: 1.45; color: var(--ink-soft); margin: 0 0 1.2rem; }
.post__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; color: var(--muted); font-size: 0.82rem; }
.post__cover { margin: 0 0 2.2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post__cover img { width: 100%; }

.post__body { font-size: 1.11rem; line-height: 1.78; color: var(--ink-soft); }
/* Texte de lecture justifié (rendu « presse ») ; césure pour éviter les trous,
   titres et tableaux non justifiés. */
.post__body, .post__lede, .post__faq {
  text-align: justify; text-justify: inter-word;
  -webkit-hyphens: auto; hyphens: auto;
}
.post__body h2, .post__body h3, .post__body h4, .post__body th, .post__body td,
.post__faq__title, .faq-item__q { text-align: left; -webkit-hyphens: none; hyphens: none; }
.post__body > p:first-of-type { font-size: 1.16rem; }
.post__body h2, .post__body h3, .post__body h4 {
  font-family: var(--font-display); color: var(--ink); letter-spacing: -0.02em;
  margin: 2.2rem 0 0.8rem; line-height: 1.2;
}
.post__body h2 { font-size: 1.75rem; }
.post__body h3 { font-size: 1.35rem; }
.post__body h4 { font-size: 1.12rem; }
.post__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post__body a:hover { text-decoration-thickness: 2px; }
.post__body strong { color: var(--ink); }
.post__body ul, .post__body ol { margin: 0 0 1.2em; padding-left: 1.4rem; }
.post__body li { margin-bottom: 0.45em; }
.post__body blockquote {
  margin: 1.8rem 0; padding: 0.4rem 0 0.4rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 1.32rem; line-height: 1.4; color: var(--ink);
}
.post__body blockquote p { margin: 0; }
.post__body img { border-radius: var(--radius-sm); margin: 1.6rem 0; }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem auto; width: 5rem; }
.post__body code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: var(--bg-alt); padding: 0.15em 0.4em; border-radius: 5px; }
.post__body pre { background: var(--bg-alt); padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); overflow-x: auto; border: 1px solid var(--line); }
.post__body pre code { background: none; padding: 0; }
.post__body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.post__body th, .post__body td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; text-align: left; }

.post__corrections {
  margin: 2.4rem 0 0; padding: 1.1rem 1.3rem 1.2rem;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
}
.post__corrections__title {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 0.7rem;
}
.post__corrections__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.post__corrections__list li { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }
.post__corrections__date { font-weight: 600; color: var(--ink); white-space: nowrap; }
.post__corrections__sep { color: var(--accent); font-weight: 700; }

.post__faq { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.post__faq__title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.01em; margin: 0 0 1.2rem;
}
.faq-item { margin: 0 0 1.25rem; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item__q { font-size: 1.02rem; font-weight: 700; margin: 0 0 0.35rem; }
.faq-item__a { margin: 0; color: var(--ink-soft); line-height: 1.6; }

.post__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.share__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-right: 0.3rem; }
.share__btn {
  display: inline-flex; align-items: center; padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: transparent; font-size: 0.8rem; color: var(--ink-soft); cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.share__btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.related { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.static-page__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.035em; margin-bottom: 1.4rem; }

/* --------------------------------------------------------- misc / states */

.empty-state, .notfound { max-width: 40rem; margin: 4rem auto; text-align: center; }
.empty-state h1, .notfound h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); margin-bottom: 0.8rem; }
.notfound__code { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 900; line-height: 1; color: var(--accent); margin: 0 0 0.5rem; letter-spacing: -0.05em; }
.empty-note { color: var(--muted); padding: 1.5rem 0; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #b9b6b0; color: color-mix(in srgb, var(--bg) 72%, transparent); margin-top: 3rem; }
html.dark .site-footer { background: #080a0d; }
.site-footer__in { display: grid; grid-template-columns: 1.5fr 2fr; gap: 3rem; padding-block: 3.2rem 2.4rem; }
.site-footer__brand .wordmark__name { color: var(--bg); font-size: 1.9rem; }
.site-footer__note { margin-top: 1rem; font-size: 0.85rem; line-height: 1.6; max-width: 34ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.site-footer__nav h3 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: #e8e6e2; color: color-mix(in srgb, var(--bg) 92%, transparent); margin: 0 0 0.9rem; }
.site-footer__nav ul { list-style: none; }
.site-footer__nav li { margin-bottom: 0.5rem; }
.site-footer__nav a { font-size: 0.9rem; transition: color 0.15s var(--ease); }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between;
  padding-block: 1.3rem; border-top: 1px solid #2c2f36; border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  font-size: 0.78rem;
}
.site-footer__made { color: #8b8880; color: color-mix(in srgb, var(--bg) 55%, transparent); }
@media (max-width: 760px) {
  .site-footer__in { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.4rem 1.8rem; }
}

/* --------------------------------------------------------- suivre sur X */

/* Pastille X : visible dans la barre du haut dès 721px (grand écran),
   et proposée dans le menu déroulant en dessous (voir .catnav__x). */
.iconbtn--x { display: none; }
@media (min-width: 721px) { .iconbtn--x { display: grid; } }

.catnav__x { display: none; }

.footer-x {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.15rem; padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  color: #e8e6e2;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.footer-x:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.footer-x svg { flex: none; }

@media (max-width: 720px) {
  .catnav__x { display: block; }
  .catnav__x-link {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 0.2rem; font-size: 0.86rem; font-weight: 600; color: var(--accent);
  }
}

/* --------------------------------------------------------- scroll reveal */

html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- fil d'Ariane */

.breadcrumbs { margin: 0.4rem 0 1.6rem; font-size: 0.78rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.45rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); transition: color 0.15s var(--ease); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }

/* ------------------------------------------------------------- sommaire */

.toc {
  margin: 2rem 0; padding: 1.2rem 1.4rem;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius-sm); max-width: 34rem;
}
.toc__title {
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 0.7rem;
}
.toc__list { list-style: none; counter-reset: toc; }
.toc__list li { margin-bottom: 0.35rem; }
.toc__list a { color: var(--ink-soft); font-size: 0.95rem; text-decoration: none; }
.toc__list a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post__body h2, .post__body h3 { scroll-margin-top: 5.5rem; }

/* ------------------------------------------------- pied d'article / dates */

.post__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.post__foot .post__tags { margin: 0; padding: 0; border: 0; }
.post__updated { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ------------------------------------------------------------- archives */

.archive-month { margin-bottom: 3rem; }
.archive-month .section-title { margin-bottom: 1.4rem; }

/* -------------------------------------------------------------- notices */

.notice {
  padding: 0.9rem 1.15rem; border-radius: var(--radius-sm); margin: 1.2rem 0;
  font-size: 0.92rem; border: 1px solid var(--line); background: var(--bg-alt);
}
.notice--ok { border-color: rgba(46, 145, 90, 0.35); background: rgba(46, 145, 90, 0.09); color: #1c6b43; }
.notice--err { border-color: rgba(200, 40, 40, 0.35); background: rgba(200, 40, 40, 0.08); color: #a2231c; }
html.dark .notice--ok { color: #7fd6a4; }
html.dark .notice--err { color: #ff9a8a; }

/* -------------------------------------------------- formulaire de contact */

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.6rem; max-width: 40rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field__label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.field__label em { font-weight: 400; color: var(--muted); font-style: normal; }
.field__input {
  width: 100%; padding: 0.72rem 0.85rem; font: inherit; font-size: 0.98rem;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field__input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.field__input { resize: vertical; min-height: 9rem; }
.field__hint { font-size: 0.76rem; color: var(--muted); }
.field__error { font-size: 0.78rem; color: #c02828; }
html.dark .field__error { color: #ff9a8a; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--ink-soft); }
.check input { margin-top: 0.25rem; accent-color: var(--accent); }
.contact-form__submit { align-self: flex-start; }
.contact-form__legal { font-size: 0.76rem; color: var(--muted); margin: 0; }
.contact-page__intro { margin-bottom: 1.4rem; }

/* piège à robots : invisible pour les humains, pas pour les aspirateurs */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form__submit { align-self: stretch; text-align: center; }
}

/* ------------------------------------------------------- images (picture) */

/* Le <picture> n'est qu'un conteneur : ses enfants se placent directement
   dans la mise en page, et l'<img> garde donc les règles existantes. */
picture { display: contents; }

/* --------------------------------------------------------------- notions */

.post__notions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem;
  margin: 0 0 2rem; padding: 0.9rem 1.1rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.post__notions__label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600;
}

.notion-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.notion-chip {
  display: inline-flex; align-items: center;
  padding: 0.34rem 0.78rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 0.8rem; color: var(--ink-soft); font-weight: 600;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.notion-chip:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.notion-list { list-style: none; }
.notion-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.92rem; transition: color 0.15s var(--ease), padding-left 0.2s var(--ease);
}
.notion-list li:last-child a { border-bottom: 0; }
.notion-list a:hover { color: var(--accent); padding-left: 0.3rem; }
.notion-list em { font-style: normal; font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.widget__more { margin: 1rem 0 0; font-size: 0.8rem; font-weight: 600; }
.widget__more a { color: var(--accent); }

.grid--dossiers { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dossier-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.3rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.dossier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.dossier-card__kicker {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); font-weight: 700; margin: 0 0 0.5rem;
}
.dossier-card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; margin: 0 0 0.7rem; line-height: 1.2; }
.dossier-card__title a:hover { color: var(--accent); }
.dossier-card__def { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 1rem; flex: 1; }
.dossier-card__meta { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.78rem; margin-bottom: 1rem; }
.dossier-card__more { font-size: 0.82rem; font-weight: 600; color: var(--accent); }

.notion-def {
  background: var(--accent-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; margin: 0 0 2.2rem;
}
.notion-def__title {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem;
}
.notion-def__text { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

@media print {
  .site-header, .site-footer, .sidebar, .share, .progress, .topstrip, .related, .toc, .breadcrumbs, .contact-form { display: none !important; }
  .post, .static-page { max-width: none; }
  .post__body { color: #000; }
}

/* ---- Recherche instantanée (bandeau) ---- */
.searchbox { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 8px); right: 0; left: auto;
  min-width: min(340px, 92vw); z-index: 60; overflow: hidden; text-align: left;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.search-suggest__item {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--line);
  color: inherit; transition: background 0.12s var(--ease);
}
.search-suggest__item:last-of-type { border-bottom: 0; }
.search-suggest__item:hover, .search-suggest__item.is-active { background: var(--bg-alt); }
.search-suggest__type {
  flex: none; min-width: 3.6rem; padding-top: 0.18rem;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 700;
}
.search-suggest__body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.search-suggest__title { font-weight: 600; font-size: 0.9rem; }
.search-suggest__sub { font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-suggest__all { display: block; padding: 0.6rem 0.85rem; font-size: 0.78rem; font-weight: 600; color: var(--accent); background: var(--bg-alt); }
.search-suggest__empty { padding: 0.8rem 0.85rem; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 640px) { .search-suggest__type { display: none; } }

/* ---- « Lire ensuite » ---- */
.nextread {
  margin: 0 0 2.6rem; padding: 1.3rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.nextread__label { margin: 0 0 0.4rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.11em; color: var(--accent); font-weight: 700; }
.nextread__title { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; }
.nextread__title:hover { color: var(--accent); }

/* ---- Page de recherche & maillage ---- */
.search-block { margin-bottom: 2.8rem; }
.search-pages { list-style: none; display: grid; gap: 0.5rem; }
.search-pages a { font-weight: 600; }
.search-pages a:hover { color: var(--accent); }
.page-head__notions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: -1rem 0 2rem; }
.page-head__notions .post__notions__label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.dossiers-foot { max-width: 46rem; margin-top: 2rem; color: var(--muted); font-size: 0.9rem; }
.dossier__allnotions { margin-top: 1.4rem; font-weight: 600; font-size: 0.85rem; }
.dossier__allnotions a { color: var(--accent); }

/* ---- Page de maintenance (503) — voir inc/maintenance.php ---- */
.maintenance { max-width: 40rem; margin: clamp(3rem, 9vh, 6.5rem) auto; text-align: center; }
.maintenance__brand { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); letter-spacing: -0.02em; margin: 0; }
.maintenance__brand span { color: var(--accent); }
.maintenance__code { font-family: var(--font-display); font-size: clamp(3.2rem, 2.4rem + 6vw, 6rem); font-weight: 900; line-height: 1; color: var(--accent); margin: 1.4rem 0 0.6rem; letter-spacing: -0.05em; }
.maintenance h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.3rem); margin: 0 0 0.9rem; }
.maintenance__message { color: var(--ink-soft); font-size: 1.02rem; max-width: 34rem; margin: 0 auto 1.6rem; }
.maintenance__actions { margin: 0 0 2.2rem; }
.maintenance__note { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.01em; margin: 0; }
.maintenance__note a { color: var(--muted); text-decoration: underline; }
.maintenance__note a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- commentaires */
.comments { margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.comments__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; box-shadow: var(--shadow-sm); }
.comment__head { margin: 0 0 0.4rem; font-size: 0.92rem; }
.comment__head time { color: var(--muted); font-weight: 400; margin-left: 0.5rem; font-size: 0.85rem; }
.comment__body { margin: 0; line-height: 1.6; overflow-wrap: break-word; }
.comments__form { margin-top: 1.5rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; }
.comments__formtitle { margin: 0 0 0.8rem; font-size: 1.05rem; }
.comments__submit { margin-top: 0.9rem; }
