/* CaveXpert, thème « magazine » (17/09/2026)
   Papier crème, encre noire, bordeaux pour les rubriques, filets or.
   Newsreader (titres et corps), Inter (surtitres, navigation, métadonnées). */

:root {
  --paper: #faf6ef;
  --paper-2: #fffdf8;
  --ink: #1c1315;
  --ink-2: #453a37;
  --muted: #7c6e69;
  --rule: #dccfbd;
  --rule-2: #ece4d6;
  --wine: #6e1b2e;
  --wine-2: #4a1120;
  --gold: #b8923b;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: 16px;
  --measure: 700px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.mz {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.mz-main { display: block; }
.mz-main > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Masthead ---------- */
.mz-mast { background: var(--paper); border-bottom: 1px solid var(--ink); }
.mz-mast__toggle { display: none; }
.mz-mast__row {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter) 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.mz-mast__baseline {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: none;
}
.mz-mast__brand { grid-column: 2; display: inline-flex; }
.mz-mast__logo { height: 52px; width: auto; }
.mz-mast__burger {
  grid-column: 3;
  justify-self: end;
  width: 40px; height: 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 8px;
  cursor: pointer;
}
.mz-mast__burger span { display: block; height: 2px; background: var(--ink); }
.mz-nav { display: none; border-top: 1px solid var(--rule); }
.mz-nav__list {
  list-style: none;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6px var(--gutter);
  display: flex;
  flex-direction: column;
}
.mz-nav__item { border-bottom: 1px solid var(--rule-2); }
.mz-nav__item:last-child { border-bottom: 0; }
.mz-nav__link {
  display: block;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.mz-nav__link:hover, .mz-nav__link.is-current { color: var(--wine); }
.mz-mast__toggle:checked ~ .mz-nav { display: block; }

@media (min-width: 720px) {
  .mz-mast__baseline { display: block; }
  .mz-mast__burger { display: none; }
  .mz-mast__logo { height: 60px; }
  .mz-nav { display: block; border-top: 1px solid var(--ink); border-bottom: 0; }
  .mz-nav__list { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 18px; row-gap: 0; padding: 0 var(--gutter); }
  .mz-nav__item { border-bottom: 0; }
  .mz-nav__link { padding: 13px 0 11px; border-bottom: 2px solid transparent; }
  .mz-nav__link:hover, .mz-nav__link.is-current { border-bottom-color: var(--wine); }
}

/* ---------- Surtitres, métadonnées, titres de section ---------- */
.mz-kicker {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}
.mz-kicker a { text-decoration: none; }
.mz-kicker a:hover { text-decoration: underline; }
.mz-kicker--lg { font-size: 0.76rem; }
.mz-meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.mz-section { padding-top: 40px; padding-bottom: 8px; }
.mz-section__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.mz-section__title::after { content: ""; flex: 1; height: 1px; background: var(--ink); order: 1; align-self: center; }
.mz-section__title a { text-decoration: none; }
.mz-section__title a:hover { color: var(--wine); }
.mz-section__more {
  order: 2;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Grilles ---------- */
.mz-grid { display: grid; grid-template-columns: 1fr; gap: 28px 24px; }
@media (min-width: 720px) {
  .mz-grid--3, .mz-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .mz-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .mz-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Une : édito + article de tête ---------- */
.mz-front { padding-top: 22px; }
.mz-front__title {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 22px;
}
.mz-front__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.mz-front__lead { order: -1; }
.mz-edito { border-top: 1px solid var(--ink); padding-top: 16px; }
.mz-edito__portrait { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 0 14px; }
.mz-edito__copy { font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.mz-edito__copy p:last-child { margin-bottom: 0; }
@media (min-width: 992px) {
  .mz-front__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .mz-edito { border-top: 0; border-left: 1px solid var(--rule); padding: 0 0 0 28px; }
}

.mz-media { display: block; position: relative; overflow: hidden; background: var(--rule-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23c9b99f' stroke-width='1.4'><path d='M14 6h20l-1 12a9 9 0 0 1-18 0z'/><path d='M24 27v12M16 39h16'/></svg>") center / 44px no-repeat; }
.mz-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.mz-lead__media { aspect-ratio: 3 / 2; }
.mz-lead__body { padding-top: 18px; }
.mz-lead__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 12px; }
.mz-lead__title a { text-decoration: none; }
.mz-lead__title a:hover { color: var(--wine); }
.mz-lead__excerpt { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 10px; max-width: 60ch; }

/* ---------- Cartes ---------- */
.mz-card { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; }
.mz-card__media { aspect-ratio: 3 / 2; margin-bottom: 14px; }
.mz-card__title { font-size: 1.22rem; margin: 0 0 8px; }
.mz-card__title a { text-decoration: none; }
.mz-card__title a:hover { color: var(--wine); }
.mz-card__excerpt { font-size: 0.95rem; color: var(--ink-2); margin: 0 0 10px; }
.mz-card .mz-meta { margin-top: auto; }

.mz-mini { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 14px; align-items: start; border-top: 1px solid var(--rule); padding-top: 12px; }
.mz-mini__media { grid-row: 1 / span 2; aspect-ratio: 4 / 3; }
.mz-mini__title { font-size: 1.05rem; line-height: 1.3; margin: 0 0 6px; }
.mz-mini__title a { text-decoration: none; }
.mz-mini__title a:hover { color: var(--wine); }
@media (min-width: 720px) {
  .mz-mini { display: block; }
  .mz-mini__media { margin-bottom: 12px; }
}

/* ---------- Page de rubrique ---------- */
.mz-rubric { padding-top: 26px; padding-bottom: 40px; }
.mz-rubric__head { border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: 28px; }
.mz-rubric__title { font-size: clamp(2rem, 4.5vw, 3rem); }
.mz-grid--rubric > :first-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .mz-grid--rubric > :first-child { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: center; border-top: 0; padding-top: 0; }
  .mz-grid--rubric > :first-child .mz-card__media { margin: 0; }
  .mz-grid--rubric > :first-child .mz-card__title { font-size: 1.7rem; }
  .mz-grid--rubric > :first-child .mz-card__excerpt { font-size: 1.05rem; }
}
.mz-pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; font-family: var(--sans); font-size: 0.85rem; }
.mz-pager:not(:has(a)) { display: none; }
.mz-pager__link { padding: 6px 12px; border: 1px solid var(--rule); text-decoration: none; }
.mz-pager__link.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Fil d'Ariane ---------- */
.mz-crumbs { font-family: var(--sans); font-size: 0.74rem; color: var(--muted); margin-bottom: 18px; }
.mz-crumbs ol, .mz-crumbs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.mz-crumbs a { color: var(--muted); text-decoration: none; }
.mz-crumbs a:hover { color: var(--wine); }
.mz-crumbs__current { color: var(--ink-2); }

/* ---------- Article ---------- */
.mz-article { padding-top: 26px; padding-bottom: 40px; }
.mz-article__head { max-width: 860px; margin-bottom: 26px; }
.mz-article__title { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 16px; }
.mz-article__byline { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin: 0; }
.mz-article__author { color: var(--ink); font-weight: 600; }
.mz-article__hero { margin: 0 0 32px; }
.mz-article__img { width: 100%; max-height: 600px; object-fit: cover; }
.mz-article__layout { display: grid; grid-template-columns: 1fr; gap: 36px; }
.mz-article__rail { order: -1; }
@media (min-width: 992px) {
  .mz-article__layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
  .mz-article__rail { order: 0; position: sticky; top: 24px; }
}
.mz-rail__block { border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 26px; font-family: var(--sans); }
.mz-rail__title { margin: 0 0 10px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mz-toc ul { list-style: none; }
.mz-toc li { padding: 5px 0; border-bottom: 1px solid var(--rule-2); font-family: var(--serif); font-size: 0.95rem; line-height: 1.35; }
.mz-toc li:last-child { border-bottom: 0; }
.mz-toc a { text-decoration: none; color: var(--ink-2); }
.mz-toc a:hover { color: var(--wine); }
.mz-history__list { list-style: none; font-size: 0.76rem; color: var(--muted); }
.mz-history__list li { padding: 3px 0; }

.mz-prose { max-width: var(--measure); font-size: 1.15rem; line-height: 1.68; color: var(--ink); }
.mz-prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.6rem;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  font-weight: 600;
  color: var(--wine);
}
.mz-prose h2 { font-size: 1.7rem; margin: 2.2em 0 0.6em; }
.mz-prose h3 { font-size: 1.32rem; margin: 1.8em 0 0.5em; }
.mz-prose p { margin: 0 0 1.2em; }
.mz-prose a { color: var(--wine); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.mz-prose a:hover { text-decoration-color: var(--wine); }
.mz-prose img { margin: 1.6em 0; width: 100%; }
.mz-prose ul, .mz-prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.mz-prose li { margin-bottom: 0.4em; }
.mz-prose blockquote {
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--ink-2);
}
.mz-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1.4em; }
.mz-prose th, .mz-prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.mz-prose th { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Avis ---------- */
.mz-reviews__list, .mz-reviews__form { max-width: var(--measure); font-family: var(--sans); font-size: 0.95rem; }
.mz-reviews__form form { display: grid; gap: 12px; }
.mz-reviews__form label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mz-reviews__form input[type="text"], .mz-reviews__form input[type="email"], .mz-reviews__form textarea, .mz-reviews__form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); background: var(--paper-2); font: inherit; color: var(--ink);
}
.mz-reviews__form button, .mz-reviews__form input[type="submit"] {
  justify-self: start; padding: 10px 18px; border: 0; background: var(--wine); color: var(--paper); font: inherit; font-weight: 600; cursor: pointer;
}
.mz-reviews__form button:hover, .mz-reviews__form input[type="submit"]:hover { background: var(--wine-2); }

/* ---------- Pied de page ---------- */
.mz-foot { margin-top: 64px; background: var(--wine-2); color: var(--paper); font-family: var(--sans); }
.mz-foot__grid { max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 28px; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .mz-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.mz-foot__brand { display: inline-flex; margin-bottom: 12px; }
.mz-foot__logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.mz-foot__baseline { margin: 0 0 10px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.mz-foot__text { margin: 0; font-family: var(--serif); font-size: 1rem; color: rgba(250,246,239,0.78); max-width: 42ch; }
.mz-foot__title { margin: 0 0 12px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.mz-foot__list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.mz-foot__link { color: var(--paper); text-decoration: none; font-size: 0.9rem; }
.mz-foot__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mz-foot__legal { margin: 0; text-align: center; font-size: 0.74rem; color: rgba(250,246,239,0.55); padding: 16px var(--gutter) 24px; border-top: 1px solid rgba(250,246,239,0.14); }
