/* ==========================================================================
   Arbutus — feuille de style unique
   Reprise de l'identité du thème « Sampression Lite Child » (2013-2020) :
   papier crème, rouge #D70000, titres Voltaire, filets pointillés.
   Aucune requête externe : police, images et fonds sont locaux.
   ========================================================================== */

@font-face {
  font-family: "Voltaire";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/voltaire-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Voltaire";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/voltaire-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #d70000;
  --red-dark: #b00000;
  --red-soft: #ff837f;
  --ink: #4a4a4a;
  --ink-soft: #6f6f6f;
  --cream: #f7f2e8;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #fffdf9;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --display: "Voltaire", "Optima", "Palatino Linotype", serif;
  --measure: 44rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: url("../img/bg_repeat.jpg") repeat;
  color: var(--ink);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

a { color: var(--red); text-decoration: none; }
a:hover, a:focus { color: #80938f; text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- structure */
.wrap { width: 100%; max-width: calc(var(--measure) + 3rem); margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  border-bottom: 1px dashed var(--red);
  padding: 1.6rem 0 0;
  background: url("../img/bgimage.jpg") center top / cover no-repeat;
}
.site-header__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__logo { width: 58px; height: auto; }
.brand__text { display: block; }
.brand__name {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--red);
  letter-spacing: 0.02em;
}
.brand__tag {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  color: #626262;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* voix / voices --------------------------------------------------------- */
.voices { display: flex; align-items: center; gap: 0.55rem; font-family: var(--display); }
.voices__label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8a8a; }
.voices a, .voices span {
  font-size: 1.15rem;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  color: var(--red);
  border: 1px solid transparent;
}
.voices a:hover, .voices a:focus { background: rgba(255, 255, 255, 0.75); text-decoration: none; }
.voices .is-current {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

/* navigation ------------------------------------------------------------ */
.site-nav { margin: 1.1rem 0 0; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.15rem 1.35rem;
  font-family: var(--display);
  font-size: 1.1rem;
}
.site-nav a { color: var(--red); padding: 0.15rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus { text-decoration: none; border-bottom-color: var(--red-soft); }
.site-nav .is-current { border-bottom-color: var(--red); }

/* ------------------------------------------------------------------- main */
main { padding: 1.6rem 0 0; }
main.wrap { padding-bottom: 2.5rem; }

.card {
  background: var(--card);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 6px 18px rgba(80, 60, 40, 0.06);
  padding: 1.9rem 2.1rem;
  margin: 0 0 1.4rem;
}
@media (max-width: 560px) { .card { padding: 1.4rem 1.25rem; } }

.hero { padding: 0; overflow: hidden; }
.hero img { display: block; width: 100%; }
.hero__caption { padding: 0.6rem 1.2rem; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* ------------------------------------------------------------------- type */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--red);
  line-height: 1.22;
  margin: 0 0 0.7rem;
}
h1 { font-size: 2.15rem; }
h2 { font-size: 1.55rem; margin-top: 2.1rem; }
h3 { font-size: 1.25rem; margin-top: 1.7rem; }
h4 { font-size: 1.05rem; margin-top: 1.4rem; color: #626262; }
p { margin: 0 0 1.05rem; }

.post-title { font-size: 2rem; margin: 0 0 0.35rem; }
.post-title a { color: var(--red); }
.post-title a:hover { text-decoration: none; color: var(--red-dark); }

.meta {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  border-top: 1px dashed var(--red-soft);
  margin: 0 0 1.5rem;
  padding-top: 0.55rem;
}
.meta .num { color: var(--red); }

.lede { font-size: 1.1rem; color: #5c5c5c; }

/* ------------------------------------------------------------- article body */
.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose img { display: block; margin: 1.6rem auto; }
.prose a img { border: 0; }
.prose figure { margin: 1.8rem 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  padding: 0.5rem 0.5rem 0;
  line-height: 1.45;
}
.prose blockquote {
  margin: 1.5rem 0; padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 3px solid var(--red-soft);
  color: #5c5c5c; font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1.4rem 0; }
.prose th, .prose td { border: 1px solid #e2d8c8; padding: 0.4rem 0.55rem; text-align: left; }
.prose th { background: #f3ecdf; }
.prose pre {
  background: #2f2b26; color: #f2ece0; padding: 0.9rem 1rem; overflow-x: auto;
  font-size: 0.85rem; line-height: 1.5; border-radius: 3px;
}
.prose code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.92em; }
.prose pre code { font-size: inherit; }
.prose hr { border: 0; border-top: 1px dashed var(--red-soft); margin: 2rem 0; }

/* galeries --------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin: 1.8rem 0;
}
.gallery a { display: block; background: #fff; padding: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.gallery img { display: block; width: 100%; height: 150px; object-fit: cover; margin: 0; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } .gallery img { height: 190px; } }

/* --------------------------------------------------------------- comments */
.comments { margin: 2.4rem 0 0; }
.comments h2 { font-size: 1.35rem; }
.comment {
  background: var(--card-solid);
  border-left: 3px solid var(--red-soft);
  padding: 0.85rem 1.05rem;
  margin: 0 0 0.8rem;
  font-size: 0.94rem;
}
.comment__head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; margin-bottom: 0.3rem; }
.comment__author { font-family: var(--display); font-size: 1.05rem; color: var(--red); }
.comment__date { font-size: 0.78rem; color: #8a8a8a; letter-spacing: 0.05em; }
.comment__body p:last-child { margin-bottom: 0; }
.comment--reply { margin-left: 1.6rem; border-left-color: #d9c9aa; }
.comment__reply-to { font-size: 0.8rem; color: #8a8a8a; margin-bottom: 0.3rem; }

.guestbook-wall .comment { margin-bottom: 1rem; }

/* ------------------------------------------------------------ voice switch */
.other-voice {
  margin: 2.2rem 0 0;
  padding: 1.1rem 1.25rem;
  background: rgba(215, 0, 0, 0.05);
  border: 1px dashed var(--red-soft);
  font-family: var(--display);
  font-size: 1.05rem;
}
.other-voice a { color: var(--red); }

.note {
  background: #fff8e6;
  border: 1px solid #e8d9a8;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #6b5a2a;
  margin: 0 0 1.5rem;
}

/* --------------------------------------------------------------- listings */
.route { list-style: none; margin: 0; padding: 0; }
.route li { border-top: 1px dashed #e6dcc9; padding: 0.85rem 0; display: flex; gap: 0.9rem; align-items: baseline; }
.route li:first-child { border-top: 0; }
.route__num {
  font-family: var(--display);
  color: var(--red);
  font-size: 1.15rem;
  min-width: 2.4rem;
  text-align: right;
  flex: 0 0 auto;
}
.route__title { font-size: 1.05rem; }
.route__title a { color: #3d3d3d; }
.route__title a:hover { color: var(--red); }
.route__date { display: block; font-size: 0.8rem; color: #8a8a8a; letter-spacing: 0.04em; }
.year-heading {
  font-family: var(--display); font-size: 1.3rem; color: #626262;
  border-bottom: 1px dashed var(--red-soft); margin: 2rem 0 0.5rem; padding-bottom: 0.2rem;
}

/* section listings */
.page-grid { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin: 1.2rem 0 2rem; }
@media (min-width: 640px) { .page-grid { grid-template-columns: 1fr 1fr; } }
.page-link {
  display: block; background: var(--card-solid); padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--red-soft);
}
.page-link strong { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--red); font-weight: 400; }
.page-link span { font-size: 0.86rem; color: var(--ink-soft); }

/* prev / next */
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; font-family: var(--display); }
.pager a { max-width: 48%; }
.pager__dir { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #999; }
.pager .next { text-align: right; margin-left: auto; }

/* search */
.searchbox { display: flex; gap: 0.5rem; margin: 1rem 0 1.6rem; flex-wrap: wrap; }
.searchbox input {
  flex: 1 1 16rem; font: inherit; padding: 0.55rem 0.7rem;
  border: 1px solid #d9c9aa; background: #fff; border-radius: 3px;
}
.search-summary { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 2.5rem;
  padding: 0 0 2.5rem;
  color: var(--red);
}
.site-footer__cliff {
  height: clamp(120px, 18vw, 240px);
  background: url("../img/cliff_2000px.png") center bottom / contain no-repeat;
  margin-bottom: 1.6rem;
}
.site-footer__inner { text-align: center; font-family: var(--display); font-size: 0.92rem; }
.site-footer a { color: var(--red); }
.site-footer small { display: block; margin-top: 0.3rem; color: #8a8a8a; font-family: var(--sans); font-size: 0.78rem; }

/* lightbox --------------------------------------------------------------- */
.lb {
  position: fixed; inset: 0; background: rgba(20, 16, 12, 0.93);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 1.5rem;
}
.lb.is-open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb__close {
  position: absolute; top: 0.8rem; right: 1.1rem; background: none; border: 0;
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; font-family: var(--display);
}
.lb__caption { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #e8ded0; font-size: 0.9rem; }

.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;
}

@media (max-width: 560px) {
  h1, .post-title { font-size: 1.65rem; }
  .brand__name { font-size: 1.7rem; }
  .site-nav ul { font-size: 1rem; gap: 0.1rem 1rem; }
}

@media print {
  body { background: #fff; }
  .site-nav, .voices, .site-footer, .pager, .other-voice { display: none; }
  .card { box-shadow: none; background: #fff; padding: 0; }
}
