/* Miam Food — feuille de style principale. Crème, terracotta, basilic ; formes rondes et damiers gourmands. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #fdf6ea;
  --creme-fonce: #f6e7d2;
  --papier: #fffdf8;
  --cacao: #2f2119;
  --cacao-doux: #6b584a;
  --trait: rgba(47, 33, 25, 0.12);
  --terracotta: #c9512c;
  --terracotta-fonce: #a03d1e;
  --basilic: #4a7a3b;
  --basilic-fonce: #3a6330;
  --miel: #d38b12;
  --ombre: 0 16px 34px -22px rgba(76, 44, 24, 0.55);
  --ombre-forte: 0 26px 48px -24px rgba(76, 44, 24, 0.55);
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;
  --titre: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tone: var(--terracotta);
  --tone-fonce: var(--terracotta-fonce);
  --tone-doux: #fbe4d9;
}

/* Six saveurs, attribuées automatiquement à chaque rubrique. */
.tone-0 { --tone: #c9512c; --tone-fonce: #9c3c1c; --tone-doux: #fbe4d9; }
.tone-1 { --tone: #4a7a3b; --tone-fonce: #39612d; --tone-doux: #e3efdc; }
.tone-2 { --tone: #d38b12; --tone-fonce: #8d5b06; --tone-doux: #fbeed2; }
.tone-3 { --tone: #b83f5e; --tone-fonce: #8f2f49; --tone-doux: #fadfe6; }
.tone-4 { --tone: #6b4577; --tone-fonce: #54355e; --tone-doux: #efe1f3; }
.tone-5 { --tone: #7a8b2c; --tone-fonce: #5b681c; --tone-doux: #eef3d6; }

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

body {
  margin: 0;
  background: var(--creme);
  color: var(--cacao);
  font: 400 1.05rem/1.7 var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }

p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; }

a { color: var(--terracotta-fonce); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

:focus-visible {
  outline: 3px solid var(--basilic-fonce);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(1180px, 100% - 2.6rem); margin-inline: auto; }
.section { padding-block: clamp(2.4rem, 5vw, 4.4rem); }
.section--tinted { background: var(--creme-fonce); }

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

.skip-link {
  position: absolute;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.8rem 1.4rem;
  background: var(--cacao);
  color: var(--creme);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-family: var(--titre);
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--creme); }

/* ---------- Motif damier, signature du thème ---------- */
.damier-strip {
  height: 10px;
  background-image: repeating-conic-gradient(var(--tone) 0% 25%, transparent 0% 50%);
  background-size: 20px 20px;
  background-color: var(--tone-doux);
}

/* ---------- Éléments d’interface ---------- */
.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tone-fonce);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--tone-doux);
  color: var(--tone-fonce);
  border: 1px solid rgba(47, 33, 25, 0.07);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.chip:hover { background: var(--tone-fonce); color: #fff; }
.chip--tag span {
  font-size: 0.72rem;
  padding: 0 0.4rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.75);
  color: var(--cacao-doux);
}
.chip--tag:hover span { color: var(--tone-fonce); }

.button,
.search-form button,
.comment-form .submit,
.post-password-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--terracotta);
  color: #fff;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 20px -12px rgba(160, 61, 30, 0.9);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.button:hover,
.search-form button:hover,
.comment-form .submit:hover,
.post-password-form input[type="submit"]:hover {
  background: var(--terracotta-fonce);
  color: #fff;
  transform: translateY(-2px);
}
.button .icon { transition: transform 0.2s ease; }
.button:hover .icon { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--titre);
  font-weight: 600;
  text-decoration: none;
  color: var(--terracotta-fonce);
}
.text-link:hover { text-decoration: underline; text-decoration-style: wavy; }
.text-link:hover .icon { transform: translateX(4px); }
.text-link .icon { transition: transform 0.2s ease; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.search-form input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.78rem 1.1rem;
  border: 2px solid var(--trait);
  border-radius: var(--r-pill);
  background: var(--papier);
  color: var(--cacao);
  font: inherit;
  font-size: 0.98rem;
}
.search-form input[type="search"]:focus { border-color: var(--basilic); }
.search-form button span { display: none; }
@media (min-width: 560px) {
  .search-form button span { display: inline; }
}

/* ---------- Bandeau et en-tête ---------- */
.taste-bar {
  background: var(--basilic-fonce);
  color: #fdf6ea;
  font-size: 0.86rem;
}
.taste-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}
.taste-bar-note { display: inline-flex; align-items: center; gap: 0.5rem; }
.taste-bar-link { color: inherit; text-decoration: none; white-space: nowrap; }
.taste-bar-link:hover { color: #fff; text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 246, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
.site-header::after {
  content: "";
  display: block;
  height: 8px;
  background-image: repeating-conic-gradient(var(--terracotta) 0% 25%, transparent 0% 50%);
  background-size: 16px 16px;
  background-color: var(--creme-fonce);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
}
.branding { margin-right: auto; }
.branding img { max-height: 58px; width: auto; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cacao);
}
.brand-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--terracotta);
  color: #fff;
  transform: rotate(-6deg);
  box-shadow: 0 8px 16px -10px rgba(160, 61, 30, 0.9);
}
.brand-badge .icon { width: 22px; height: 22px; }
.brand-text {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-text em { font-style: normal; color: var(--terracotta); }
.wordmark:hover .brand-badge { transform: rotate(6deg); }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu li { position: relative; }
.nav-menu a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  font-family: var(--titre);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--cacao);
  text-decoration: none;
}
.nav-menu a:hover { background: var(--creme-fonce); color: var(--terracotta-fonce); }
.nav-menu .current-menu-item > a,
.nav-menu [aria-current="page"] {
  color: var(--terracotta-fonce);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.nav-menu .sub-menu {
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre);
}
@media (min-width: 961px) {
  .nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 13rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-menu li:hover > .sub-menu,
  .nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.header-search { position: relative; }
.header-search summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  background: var(--creme-fonce);
  color: var(--cacao);
  cursor: pointer;
  list-style: none;
}
.header-search summary::-webkit-details-marker { display: none; }
.header-search summary:hover { background: var(--terracotta); color: #fff; }
.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(23rem, 80vw);
  padding: 0.9rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-forte);
  z-index: 5;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--trait);
  border-radius: var(--r-pill);
  background: var(--papier);
  color: var(--cacao);
  font-family: var(--titre);
  font-weight: 600;
  cursor: pointer;
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-lines { position: relative; }
.menu-lines::before,
.menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

/* ---------- Accueil : la mosaïque ---------- */
.hero { padding-block: clamp(1.6rem, 3.5vw, 2.8rem) clamp(0.5rem, 2vw, 1rem); }
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.5vw, 1.35rem);
}
.hero-copy {
  grid-column: 1 / 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.4rem, 2.5vw, 2.3rem);
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-xl);
  box-shadow: var(--ombre);
  position: relative;
  overflow: hidden;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-image: repeating-conic-gradient(var(--miel) 0% 25%, transparent 0% 50%);
  background-size: 24px 24px;
  opacity: 0.22;
}
.hero-copy > * { position: relative; }
.hero-copy h1 { margin-bottom: 0.4em; }
.hero-text {
  max-width: 44ch;
  color: var(--cacao-doux);
  font-size: 1.06rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--cacao-doux);
}
.hero-stats strong {
  display: block;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--terracotta-fonce);
}

.damier {
  grid-column: 3 / 5;
  grid-row: 1 / 4;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  min-height: 24rem;
}
.damier span {
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: var(--r-lg);
  background: var(--tone-doux);
  color: var(--tone-fonce);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}
.damier span:nth-child(3n) {
  background-image: repeating-conic-gradient(var(--tone) 0% 25%, transparent 0% 50%);
  background-size: 26px 26px;
  box-shadow: inset 0 0 0 100vmax rgba(253, 246, 234, 0.6);
}

/* ---------- Cartes ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-xl);
  box-shadow: var(--ombre);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }

.card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tone-doux);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

/* Vignette de remplacement : damier coloré + initiale de la rubrique. */
.placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--tone-doux);
  background-image: repeating-conic-gradient(var(--tone) 0% 25%, transparent 0% 50%);
  background-size: 48px 48px;
}
.placeholder-mark {
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: var(--papier);
  color: var(--tone-fonce);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1;
  box-shadow: 0 10px 22px -14px rgba(47, 33, 25, 0.8);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.3rem 1.35rem;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.card-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--cacao-doux);
}
.card-title { margin: 0; font-size: 1.16rem; line-height: 1.25; }
.card-title a { color: var(--cacao); text-decoration: none; }
.card-title a:hover { color: var(--terracotta-fonce); text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 4px; }
.card-excerpt { margin: 0; color: var(--cacao-doux); font-size: 0.96rem; }
.card-date { font-size: 0.8rem; color: var(--cacao-doux); margin-top: auto; }

.card--lead {
  grid-column: 3 / 5;
  grid-row: 1 / 4;
}
.card--lead .card-media { aspect-ratio: auto; flex: 1; min-height: 14rem; }
.card--lead .card-body { padding: 1.5rem 1.7rem 1.8rem; gap: 0.65rem; }
.card--lead .card-title { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.05rem); }
.card--lead .card-excerpt { font-size: 1.02rem; }

.card--tile .card-media { aspect-ratio: 5 / 4; }
.card--tile .card-body { padding: 0.95rem 1.1rem 1.15rem; }
.card--tile .card-title { font-size: 1.02rem; }

.card--compact {
  flex-direction: row;
  align-items: stretch;
  border-radius: var(--r-lg);
}
.card--compact .card-media { flex: none; width: 6.8rem; aspect-ratio: 1; }
.card--compact .placeholder { background-size: 26px 26px; }
.card--compact .placeholder-mark { width: 2.6rem; height: 2.6rem; font-size: 1.2rem; }
.card--compact .card-body { padding: 0.8rem 1rem; gap: 0.35rem; }
.card--compact .card-title { font-size: 1rem; }

.card--text {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.card--text:hover { transform: none; box-shadow: none; }
.card--text .card-body { padding: 0; }
.card--text .card-title { font-size: 1.02rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(15rem, 27vw, 20rem), 1fr));
  gap: clamp(1rem, 1.8vw, 1.6rem);
}
.post-grid--two { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}
.section-heading h2 {
  margin: 0;
  text-decoration: underline;
  text-decoration-color: var(--miel);
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}
.section-title {
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
  text-decoration: underline;
  text-decoration-color: var(--miel);
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}
.page-heading { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.page-heading h1 { margin: 0; }

/* ---------- Rubriques ---------- */
.rubrique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}
.rubrique {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "initial nom" "initial info";
  align-items: center;
  gap: 0.15rem 0.9rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-lg);
  background: var(--tone-doux);
  border: 1px solid rgba(47, 33, 25, 0.06);
  text-decoration: none;
  color: var(--cacao);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rubrique:hover { transform: translateY(-4px); box-shadow: var(--ombre); color: var(--cacao); }
.rubrique-initial {
  grid-area: initial;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 16px;
  background: var(--tone-fonce);
  color: #fff;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.35rem;
  transform: rotate(-4deg);
}
.rubrique:hover .rubrique-initial { transform: rotate(4deg); }
.rubrique strong {
  grid-area: nom;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}
.rubrique small { grid-area: info; color: var(--tone-fonce); font-size: 0.82rem; }
.rubrique-arrow {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  color: var(--tone-fonce);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.rubrique:hover .rubrique-arrow { opacity: 1; transform: translate(2px, -2px); }

.rubrique-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.2rem, 2vw, 1.8rem);
}
.rubrique-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-top: 6px solid var(--tone);
  border-radius: var(--r-xl);
}
.rubrique-block-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.rubrique-block-heading h2 { margin: 0; font-size: 1.35rem; color: var(--tone-fonce); }
.rubrique-block .card { box-shadow: none; }
.rubrique-block .card:hover { transform: none; box-shadow: var(--ombre); }

/* ---------- Derniers articles + carnet ---------- */
.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(1.2rem, 2.2vw, 2rem);
  align-items: start;
}
.carnet {
  position: sticky;
  top: 6.5rem;
  padding: 1.4rem 1.5rem;
  background: var(--creme-fonce);
  border: 1px solid var(--trait);
  border-radius: var(--r-xl);
}
.carnet h3 { margin-top: 0; font-size: 1.2rem; }
.carnet ol {
  counter-reset: carnet;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.carnet li {
  counter-increment: carnet;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding-top: 1rem;
  border-top: 1px dashed var(--trait);
}
.carnet li:first-child { padding-top: 0; border-top: 0; }
.carnet li::before {
  content: counter(carnet);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--papier);
  color: var(--terracotta-fonce);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.95rem;
}

.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- États vides ---------- */
.empty-state {
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--papier);
  border: 2px dashed var(--trait);
  border-radius: var(--r-xl);
  text-align: center;
}
.empty-state h2, .empty-state h3 { margin-top: 0; }
.empty-state .search-form { max-width: 26rem; margin-inline: auto; }
.empty-state--soft {
  grid-column: 1 / -1;
  padding: 1.4rem;
  text-align: left;
  color: var(--cacao-doux);
}
.empty-state--soft p { margin: 0; }

/* ---------- Archives, recherche, 404 ---------- */
.archive-heading {
  position: relative;
  padding-block: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
  background-color: var(--tone-doux);
  border-bottom: 1px solid rgba(47, 33, 25, 0.08);
  overflow: hidden;
}
.archive-heading::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(30%, 16rem);
  background-image: repeating-conic-gradient(var(--tone) 0% 25%, transparent 0% 50%);
  background-size: 34px 34px;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
}
.archive-heading > .container { position: relative; }
.archive-heading h1 { margin: 0 0 0.3em; }
.archive-heading .search-form { max-width: 28rem; margin-top: 1rem; }
.archive-description { max-width: 60ch; color: var(--cacao-doux); }
.archive-count { margin: 0; font-size: 0.9rem; color: var(--tone-fonce); font-weight: 600; }

.not-found {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-xl);
  box-shadow: var(--ombre);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.not-found-code {
  margin: 0;
  font-family: var(--titre);
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.85;
  color: var(--terracotta);
  opacity: 0.85;
}
.not-found h1 { margin-top: 0; }
.not-found .search-form { max-width: 26rem; }

/* ---------- Article ---------- */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 50;
  background: rgba(47, 33, 25, 0.08);
}
.reading-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--miel));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.single-main { max-width: 56rem; }
.article-heading { margin-bottom: 1.6rem; }
.article-heading h1 { margin: 0.6rem 0 0.4rem; }
.article-standfirst {
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--cacao-doux);
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: var(--cacao-doux);
}
.article-meta > * + *::before { content: "·"; margin-right: 0.9rem; color: var(--trait); }
.article-avatar { border-radius: 50%; }
.article-author { font-weight: 600; color: var(--cacao); }
.article-time { display: inline-flex; align-items: center; gap: 0.3rem; }

.article-cover {
  margin: 0 0 2rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--ombre);
}
.article-cover img { width: 100%; display: block; }
.article-cover figcaption {
  padding: 0.7rem 1rem;
  background: var(--creme-fonce);
  font-size: 0.85rem;
  color: var(--cacao-doux);
}

.entry-content { font-size: 1.08rem; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--terracotta); }
.entry-content img, .entry-content iframe { border-radius: var(--r-lg); }
.entry-content blockquote {
  margin: 1.8em 0;
  padding: 1rem 0 1rem 1.4rem;
  border-left: 5px solid var(--terracotta);
  font-family: var(--titre);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--cacao);
}
.entry-content blockquote cite { display: block; font-family: var(--texte); font-size: 0.9rem; color: var(--cacao-doux); }
.entry-content pre {
  padding: 1rem 1.2rem;
  background: var(--cacao);
  color: var(--creme);
  border-radius: var(--r-md);
  overflow-x: auto;
}
.entry-content code { font-size: 0.95em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--trait); text-align: left; }
.entry-content hr { border: 0; height: 8px; background-image: repeating-conic-gradient(var(--miel) 0% 25%, transparent 0% 50%); background-size: 16px 16px; }
.single-main .entry-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.05em 0.5rem 0 0;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 0.82;
  color: var(--terracotta);
}
.entry-content .alignwide { width: min(100%, 60rem); margin-inline: auto; }
.entry-content .alignfull { width: 100%; }
.entry-content figcaption { font-size: 0.86rem; color: var(--cacao-doux); }

.article-footer {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 2px dashed var(--trait);
  display: grid;
  gap: 1.1rem;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article-tags a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--creme-fonce);
  color: var(--cacao-doux);
  font-size: 0.82rem;
  text-decoration: none;
}
.article-tags a:hover { background: var(--terracotta); color: #fff; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.share-label { font-family: var(--titre); font-weight: 600; }
.share a, .copy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--trait);
  border-radius: var(--r-pill);
  background: var(--papier);
  color: var(--cacao);
  font-size: 0.88rem;
  font-family: var(--titre);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.share a:hover, .copy-link:hover { border-color: var(--terracotta); color: var(--terracotta-fonce); }
.copy-link.is-done { border-color: var(--basilic); color: var(--basilic-fonce); }

.post-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 2.4rem 0;
}
.post-navigation .nav-links { display: contents; }
.post-navigation a {
  display: block;
  padding: 1rem 1.2rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
  font-family: var(--titre);
  font-weight: 500;
  color: var(--cacao);
  text-decoration: none;
}
.post-navigation a:hover { border-color: var(--terracotta); color: var(--terracotta-fonce); }
.post-navigation .nav-next { text-align: right; }
.post-navigation span {
  display: block;
  font-family: var(--texte);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cacao-doux);
  margin-bottom: 0.3rem;
}
.related { margin-top: 3rem; }

/* ---------- Commentaires ---------- */
.comments { margin-top: 3rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.comment-list ol { list-style: none; padding-left: clamp(0.8rem, 3vw, 2.4rem); display: grid; gap: 1rem; margin-top: 1rem; }
.comment-body {
  padding: 1.1rem 1.3rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--r-lg);
}
.comment-list .bypostauthor > .comment-body { border-color: var(--terracotta); }
.comment-author { display: flex; align-items: center; gap: 0.6rem; font-family: var(--titre); font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 0.82rem; color: var(--cacao-doux); margin-bottom: 0.6rem; }
.comment-metadata a { color: inherit; }
.comment-reply-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.comment-form { display: grid; gap: 0.8rem; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.post-password-form input[type="password"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--trait);
  border-radius: var(--r-md);
  background: var(--papier);
  color: var(--cacao);
  font: inherit;
}
.comment-form textarea { min-height: 9rem; border-radius: var(--r-lg); }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--basilic); }
.comment-notes, .comment-form-cookies-consent label { font-weight: 400; font-size: 0.86rem; color: var(--cacao-doux); }
.comments-closed { color: var(--cacao-doux); }

/* ---------- Pagination ---------- */
.pagination { margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.8rem;
  border-radius: var(--r-pill);
  background: var(--papier);
  border: 1px solid var(--trait);
  font-family: var(--titre);
  font-weight: 500;
  color: var(--cacao);
  text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--terracotta); color: var(--terracotta-fonce); }
.pagination .current { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.pagination .dots { background: none; border: 0; }

/* ---------- Bandeau de recherche ---------- */
.search-band {
  position: relative;
  background: var(--basilic-fonce);
  color: #fdf6ea;
  overflow: hidden;
}
.search-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-conic-gradient(#fdf6ea 0% 25%, transparent 0% 50%);
  background-size: 120px 120px;
  opacity: 0.07;
}
.search-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.search-band h2 { margin: 0; max-width: 24ch; }
.search-band .search-form { flex: 1 1 20rem; }
.search-band .search-form button { background: var(--miel); color: #2f2119; }
.search-band .search-form button:hover { background: #fdf6ea; color: var(--cacao); }

/* ---------- Pied de page ---------- */
.site-footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--cacao);
  color: #f3e6d5;
}
.site-footer::before {
  content: "";
  display: block;
  height: 10px;
  background-image: repeating-conic-gradient(var(--terracotta) 0% 25%, transparent 0% 50%);
  background-size: 20px 20px;
  background-color: var(--miel);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
}
.footer-about .wordmark { color: #fdf6ea; }
.footer-about p { margin-top: 0.9rem; color: #d7c5b2; max-width: 34ch; }
.footer-col h2 { font-size: 1.05rem; margin-bottom: 0.7rem; color: #fdf6ea; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: #e7d8c6; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-rubriques li a::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  border-radius: 3px;
  background: var(--tone);
}
.footer-search .search-form input[type="search"] { background: rgba(255, 253, 248, 0.95); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1.2rem;
  border-top: 1px solid rgba(253, 246, 234, 0.15);
  font-size: 0.86rem;
  color: #cbb9a6;
}
.footer-note { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Divers WordPress ---------- */
.sticky .card-title a::after { content: " ★"; color: var(--miel); }
.post-password-form { display: grid; gap: 0.8rem; max-width: 26rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.86rem; color: var(--cacao-doux); }
.home-editor-content .entry-content { max-width: 46rem; margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .latest-layout { grid-template-columns: minmax(0, 1fr); }
  .carnet { position: static; }
}

@media (max-width: 1000px) {
  .hero-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy, .card--lead, .damier { grid-column: 1 / -1; grid-row: auto; }
  .damier { min-height: 18rem; }
  .card--lead .card-media { min-height: 16rem; }
}

@media (max-width: 960px) {
  .site-header { position: static; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; order: 3; }
  .header-search { order: 2; }
  /* Sans JavaScript, le menu reste dans le flux, sous l’en-tête. */
  .primary-nav {
    order: 9;
    flex: 1 0 100%;
    margin-top: 0.7rem;
    padding: 0.7rem;
    background: var(--papier);
    border: 1px solid var(--trait);
    border-radius: var(--r-lg);
  }
  .js .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.6rem);
    margin-top: 0;
    box-shadow: var(--ombre-forte);
    z-index: 20;
  }
  .js .primary-nav.is-open { display: block; }
  html:not(.js) .menu-toggle { display: none; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav-menu a { padding: 0.65rem 0.9rem; }
  .nav-menu .sub-menu { border: 0; box-shadow: none; padding-left: 0.9rem; background: none; }
}

@media (max-width: 720px) {
  .hero-mosaic { grid-template-columns: minmax(0, 1fr); }
  .not-found { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .taste-bar-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .single-main .entry-content > p:first-of-type::first-letter { font-size: 2.8rem; }
}

@media (max-width: 520px) {
  .card--compact { flex-direction: column; }
  .card--compact .card-media { width: 100%; aspect-ratio: 16 / 9; }
  .damier { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .rubrique:hover, .button:hover { transform: none; }
}

@media print {
  .taste-bar, .site-header, .site-footer, .search-band, .share, .reading-progress,
  .post-navigation, .related, .comments, .carnet, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card, .entry-content img { box-shadow: none; }
  a { text-decoration: underline; color: #000; }
}
