/* Annuaire de Blog — annuaire clair et dense : notices, index alphabétique, pastilles de thème. */

:root {
  --papier: #fbfbfd;
  --papier-2: #f2f4f8;
  --blanc: #ffffff;
  --encre: #141821;
  --texte: #39404f;
  --ardoise: #5a6273;
  --filet: #dfe2ea;
  --filet-fort: #c5cad6;
  --bleu: #2b53d6;
  --violet: #7040c9;
  --vert: #1d8a5e;
  --orange: #c25611;
  --rose: #c03464;
  --ton: var(--bleu);
  --ton-fond: #e8edfc;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --measure: 42rem;
  --radius: 8px;
  --radius-lg: 16px;
  --ombre: 0 1px 2px rgba(20, 24, 33, 0.05), 0 8px 24px -16px rgba(20, 24, 33, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Pastilles de thème : une couleur stable par rubrique. */
.cat-0 { --ton: var(--bleu); --ton-fond: #e8edfc; }
.cat-1 { --ton: var(--violet); --ton-fond: #f0e9fb; }
.cat-2 { --ton: var(--vert); --ton-fond: #e2f4ec; }
.cat-3 { --ton: var(--orange); --ton-fond: #fbeade; }
.cat-4 { --ton: var(--rose); --ton-fond: #fce8ef; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font: 400 1rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  color: var(--encre);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.024em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1em; }

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(1120px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.section--pale { background: var(--papier-2); border-block: 1px solid var(--filet); }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--encre);
  color: var(--blanc);
  padding: 0.75rem 1.2rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ardoise);
}
.cat-tick {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--ton);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  background: var(--bleu);
  color: var(--blanc);
  border: 0;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.button:hover { background: #1d3fb4; transform: translateY(-1px); }
.button .icon { width: 1.05em; height: 1.05em; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bleu);
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 1.05em; height: 1.05em; }

.icon { width: 1.2rem; height: 1.2rem; flex: none; }

/* --- En-tête --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 251, 253, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
}
.ribbon {
  background: var(--encre);
  color: #d7dbe5;
  font-size: 0.74rem;
}
.ribbon-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.45rem;
}
.ribbon-item { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.ribbon-item > :last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ribbon-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--bleu); flex: none; }
.ribbon-meta { display: inline-flex; gap: 1rem; align-items: center; }
.ribbon-meta a { text-decoration: none; color: #9fb4f5; }
.ribbon-meta a:hover { color: var(--blanc); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 0.85rem;
}
.branding { margin-right: auto; }
.custom-logo { max-height: 52px; width: auto; }

.wordmark { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.wordmark-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--bleu);
  color: var(--blanc);
  border-radius: var(--radius);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.wordmark-badge span { color: #a8bdfb; }
.wordmark-text { display: grid; line-height: 1.15; }
.wordmark-text strong { font-size: 1.16rem; font-weight: 700; color: var(--encre); letter-spacing: -0.026em; }
.wordmark-text span { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ardoise); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--texte);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-menu a:hover,
.nav-menu [aria-current="page"] { color: var(--bleu); border-color: var(--bleu); }
.nav-menu li { position: relative; }
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .sub-menu a { padding: 0.45rem 1rem; border: 0; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--blanc);
  border: 1px solid var(--filet-fort);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--encre);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), background 0.2s;
}
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -5px; }
.menu-lines::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-5px) rotate(-45deg); }

.header-search { position: relative; }
.header-search summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--blanc);
  border: 1px solid var(--filet-fort);
  border-radius: var(--radius);
  cursor: pointer;
}
.header-search summary::-webkit-details-marker { display: none; }
.header-search summary .icon:last-child,
.header-search[open] summary .icon:first-child { display: none; }
.header-search[open] summary .icon:last-child { display: block; }
.header-search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.7rem);
  width: min(380px, 80vw);
  padding: 0.9rem;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre);
}

.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.95rem;
  background: var(--blanc);
  border: 1px solid var(--filet-fort);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.search-form input[type="search"]:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 3px rgba(43, 83, 214, 0.15); }
.search-form button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.05rem;
  background: var(--encre);
  color: var(--blanc);
  border: 0;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.search-form button:hover { background: var(--bleu); }
.search-form button span { display: none; }

/* --- Ouverture --- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.8rem, 4vw, 3rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: center;
  gap: clamp(1.8rem, 5vw, 4rem);
}
.hero-text { max-width: 40rem; font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ardoise); }
.hero-search { max-width: 30rem; margin-block: 1.4rem; }
.hero-search .search-form button span { display: inline; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }

.hero-stats {
  display: grid;
  gap: 0.6rem;
  padding: 1.3rem;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre);
}
.stat { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; }
.stat-number { font-size: 1.9rem; font-weight: 700; color: var(--bleu); letter-spacing: -0.03em; }
.stat-label { font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ardoise); }
.stat + .stat { padding-top: 0.6rem; border-top: 1px solid var(--filet); }

/* --- Index alphabétique --- */
.alphabet-band {
  padding-block: 1.2rem;
  background: var(--blanc);
  border-block: 1px solid var(--filet);
}
.alphabet-title {
  margin: 0 0 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ardoise);
}
.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.alphabet a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--filet);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--encre);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.alphabet a:hover { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }

/* --- Titres de section --- */
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--encre);
}
.section-heading h2 { margin: 0; }

/* --- Notices --- */
.notice-list { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.notice-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notice-list--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.notice {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.1rem;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-left: 3px solid var(--ton);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.notice:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ton-fond);
  aspect-ratio: 1;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-blank {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--ton-fond);
}
.card-blank-letter {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ton);
}

.card-body { display: flex; flex-direction: column; min-width: 0; }
.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
}
.card-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.55rem;
  background: var(--ton-fond);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ton);
}
.card-date { color: var(--ardoise); }
.card-title { margin: 0 0 0.35rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--bleu); }
.card-excerpt { margin: 0 0 0.8rem; font-size: 0.92rem; color: var(--ardoise); }
.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: auto 0 0;
  font-size: 0.78rem;
  color: var(--ardoise);
}
.card-meta .icon { width: 0.95rem; height: 0.95rem; }

/* Notice en vedette. */
.vedette-layout .notice--lead {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border-left-width: 5px;
}
.vedette-layout .card-media { aspect-ratio: 4 / 3; }
.vedette-layout .card-body { justify-content: center; }
.vedette-layout .card-title { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.vedette-layout .card-excerpt { font-size: 1rem; }

/* --- Thèmes --- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.theme-item a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.2rem 0.8rem;
  height: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.theme-item a:hover { border-color: var(--ton); box-shadow: var(--ombre); }
.theme-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  grid-row: span 2;
  background: var(--ton-fond);
  border-radius: var(--radius);
  color: var(--ton);
}
.theme-icon .icon { width: 1.05rem; height: 1.05rem; }
.theme-name { font-weight: 600; color: var(--encre); }
.theme-count { font-size: 0.8rem; color: var(--ardoise); }

/* --- Bandeau de recherche --- */
.search-band {
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
  background: var(--encre);
  color: #d7dbe5;
}
.search-band h2 { color: var(--blanc); margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.9rem); max-width: 30ch; }
.search-band .eyebrow { color: #9fb4f5; }
.search-band .cat-tick { background: var(--bleu); }
.search-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.search-band .search-form { min-width: min(420px, 100%); }
.search-band .search-form input[type="search"] { background: #1d2230; border-color: #2c3346; color: var(--blanc); }
.search-band .search-form button { background: var(--bleu); }
.search-band .search-form button span { display: inline; }

/* --- En-têtes de page --- */
.page-heading { padding-block: clamp(2rem, 4.5vw, 3.2rem) clamp(1.1rem, 2.5vw, 1.8rem); }
.page-heading h1 { margin: 0 0 0.35em; }
.page-heading--archive { border-bottom: 1px solid var(--filet); }
.archive-description { max-width: var(--measure); color: var(--ardoise); }
.archive-count {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ton);
}
.page-heading-search { max-width: 420px; margin-top: 1.2rem; }

/* --- Article --- */
.reading-progress { position: sticky; top: 0; z-index: 45; height: 3px; background: transparent; }
.reading-progress span {
  display: block;
  height: 100%;
  background: var(--ton);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.single-main { padding-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.entry-header { max-width: var(--measure); }
.entry-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
}
.entry-ref {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ton-fond);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--ton);
}
.entry-title { margin-bottom: 0.35em; }
.entry-chapo {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ardoise);
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.3rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet);
  font-size: 0.84rem;
  color: var(--ardoise);
}
.entry-meta-time { display: inline-flex; align-items: center; gap: 0.35rem; }
.entry-meta-time .icon { width: 0.95rem; height: 0.95rem; }

.entry-cover { margin: clamp(1.6rem, 3.5vw, 2.6rem) auto; }
.entry-cover img { width: 100%; border-radius: var(--radius-lg); }
.entry-cover figcaption { margin-top: 0.6rem; font-size: 0.84rem; color: var(--ardoise); }

.entry-content { max-width: var(--measure); font-size: 1.05rem; line-height: 1.75; }
.entry-content > * { margin-bottom: 1.2em; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--ton); }
.entry-content blockquote {
  margin-inline: 0;
  padding: 0.9rem 1.2rem;
  background: var(--ton-fond);
  border-left: 3px solid var(--ton);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--encre);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption { font-size: 0.84rem; color: var(--ardoise); margin-top: 0.5rem; }
.entry-content pre {
  overflow-x: auto;
  padding: 1.1rem;
  background: var(--papier-2);
  border: 1px solid var(--filet);
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.entry-content code { background: var(--papier-2); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.entry-content th, .entry-content td { padding: 0.65rem; border: 1px solid var(--filet); text-align: left; }
.entry-content th { background: var(--papier-2); color: var(--encre); }
.entry-content hr { border: 0; border-top: 1px solid var(--filet); margin-block: 2.2rem; }

.alignwide { width: min(1060px, 100%); max-width: none; margin-inline: auto; }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; max-width: 45%; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; max-width: 45%; }
.aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }

.page-links { display: flex; gap: 0.5rem; font-size: 0.9rem; }

.entry-footer { max-width: var(--measure); margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.84rem; }
.entry-tags span { font-weight: 600; color: var(--ardoise); margin-right: 0.3rem; }
.entry-tags a {
  padding: 0.22rem 0.7rem;
  background: var(--papier-2);
  border: 1px solid var(--filet);
  border-radius: 999px;
  text-decoration: none;
}
.entry-tags a:hover { border-color: var(--bleu); color: var(--bleu); }

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--filet);
  font-size: 0.86rem;
}
.share-label { font-weight: 600; color: var(--ardoise); }
.share-link, .copy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  background: var(--blanc);
  border: 1px solid var(--filet-fort);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.share-link:hover, .copy-link:hover { border-color: var(--bleu); color: var(--bleu); }
.copy-link .icon { width: 0.95rem; height: 0.95rem; }
.copy-link.is-done { border-color: var(--vert); color: var(--vert); }

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: clamp(1.8rem, 4vw, 3rem);
}
.post-nav-link {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.post-nav-link:hover { border-color: var(--bleu); }
.post-nav-link span { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ardoise); }
.post-nav-link strong { font-size: 1.02rem; color: var(--encre); font-weight: 600; }
.post-nav-next { text-align: right; }

.related { margin-block: clamp(1.8rem, 4vw, 3rem); }

/* --- Pagination --- */
.pagination { margin-top: clamp(1.8rem, 4vw, 3rem); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.7rem;
  background: var(--blanc);
  border: 1px solid var(--filet);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.page-numbers:hover { border-color: var(--bleu); color: var(--bleu); }
.page-numbers.current { background: var(--bleu); color: var(--blanc); border-color: var(--bleu); }

/* --- États vides et 404 --- */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.2rem) 1.4rem;
  text-align: center;
  background: var(--blanc);
  border: 1px dashed var(--filet-fort);
  border-radius: var(--radius-lg);
}
.empty-code {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.empty-state .search-form { margin-top: 1rem; width: min(420px, 100%); }

.not-found {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.not-found-code {
  margin: 0;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--filet-fort);
}
.not-found .search-form { max-width: 420px; }

/* --- Commentaires --- */
.comments {
  max-width: var(--measure);
  margin: clamp(1.8rem, 4vw, 3rem) auto;
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--filet);
}
.comments-title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: clamp(0.9rem, 3.5vw, 2.2rem); }
.comment-body { padding: 1.1rem 0; border-bottom: 1px solid var(--filet); }
.comment-author { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--encre); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.8rem; color: var(--ardoise); }
.comment-metadata a { text-decoration: none; }
.comment-content { margin-top: 0.5rem; }
.comment-reply-link { font-size: 0.84rem; font-weight: 600; text-decoration: none; color: var(--bleu); }
.comment-respond { margin-top: 1.8rem; }
.comment-form p { margin-bottom: 0.9rem; }
.comment-form label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ardoise); margin-bottom: 0.3rem; }
.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--blanc);
  border: 1px solid var(--filet-fort);
  border-radius: var(--radius);
}
.comment-form-cookies-consent { display: flex; align-items: center; gap: 0.55rem; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-notes { font-size: 0.86rem; color: var(--ardoise); }

/* --- Pied de page --- */
.footer-zone {
  background: var(--papier-2);
  border-top: 1px solid var(--filet);
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.6rem;
}
.footer-zone-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
  padding-bottom: 2rem;
}
.footer-zone-about p { margin-top: 0.9rem; font-size: 0.92rem; color: var(--ardoise); max-width: 30rem; }
.footer-zone-col h2 {
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ardoise);
}
.footer-zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.93rem; }
.footer-zone-list a { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; }
.footer-zone-list a:hover { color: var(--ton); }
.footer-zone-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--filet);
  font-size: 0.82rem;
  color: var(--ardoise);
}

/* --- Blocs WordPress --- */
.wp-block-button__link { background: var(--bleu); color: var(--blanc); border-radius: var(--radius); }
.wp-block-separator { border: 0; border-top: 1px solid var(--filet); }
.wp-caption { max-width: 100%; }
.sticky { border-left-color: var(--encre); }

/* --- Adaptatif --- */
@media (max-width: 1080px) {
  .footer-zone-grid { grid-template-columns: 1fr 1fr; }
  .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; }
  .primary-nav { order: 4; flex-basis: 100%; }
  .menu-toggle { display: inline-flex; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: block; padding-block: 0.4rem 0.9rem; border-top: 1px solid var(--filet); }
  .js .primary-nav.is-open .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .js .primary-nav.is-open .nav-menu > li { border-bottom: 1px solid var(--filet); }
  .js .primary-nav.is-open .nav-menu a { padding: 0.8rem 0; border: 0; font-size: 1rem; }
  .js .primary-nav.is-open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: none;
    padding: 0 0 0.4rem 1rem;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat + .stat { padding-top: 0; border-top: 0; border-left: 1px solid var(--filet); padding-left: 1rem; }
  .notice-list--two, .notice-list--three { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vedette-layout .notice--lead { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .notice { grid-template-columns: 78px minmax(0, 1fr); gap: 0.9rem; padding: 0.9rem; }
  .card-blank-letter { font-size: 1.8rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; padding-top: 0.6rem; border-top: 1px solid var(--filet); }
  .theme-grid { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .not-found { grid-template-columns: 1fr; }
  .search-band-inner { flex-direction: column; align-items: stretch; }
  .alignleft, .alignright { float: none; max-width: 100%; margin-inline: 0; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 0; position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media (forced-colors: active) {
  .card-blank, .cat-tick, .theme-icon { forced-color-adjust: none; }
  .notice, .button, .page-numbers.current { border: 1px solid currentColor; }
}

@media print {
  .site-header, .footer-zone, .share, .post-navigation, .related, .comments, .reading-progress, .search-band, .alphabet-band { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .entry-content a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
