@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/frankruhl-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/frankruhl-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/frankruhl-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122;
}

/* ── Couleurs et mesures (maquette.png) ─────────────────────────────── */
:root {
  --bg: #f9f5ec;          /* crème */
  --ink: #1f1d1a;
  --ink-soft: #4a4744;
  --accent: #a65a14;      /* ocre (#b66112 de la maquette, assombri pour un contraste AA de 4,7) */
  --filet: #ddb47f;       /* filets décoratifs */
  --rule: #e8dfcc;
  --max-width: 42rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hébreu : la police couvre l'alphabet ; dir="rtl" isole le sens de lecture. */
.hebreu { font-weight: 400; unicode-bidi: isolate; }

/* Petites capitales espacées en ocre, suivies d'un filet. */
.etiquette {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.4;
}
.etiquette::after {
  content: "";
  flex: 0 1 3.5rem;
  min-width: 1.25rem;
  height: 1px;
  background: var(--filet);
}

.filet {
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: 0 auto;
  background: var(--filet);
}

.dates {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.05rem;
}
.dates .sep { margin: 0 0.6rem; font-style: normal; }
.dates sup { font-size: 0.6em; line-height: 0; }

.resume { margin: 0 0 1rem; color: var(--ink); }

/* ── En-tête : texte seul sur fond crème (maquette.png) ── */
header.site {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}
.entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.nom {
  margin: 0;
  font-size: clamp(1.7rem, 4.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1.15;
}
.nom a { color: var(--ink); text-decoration: none; }
.nom .hebreu { color: var(--accent); font-size: 0.72em; margin-inline-start: 0.35rem; }
.devise { margin: 0; color: var(--ink-soft); font-style: italic; font-size: 1rem; line-height: 1.4; }

.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 1.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
}
.menu a { color: var(--ink-soft); text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--accent); }

main { padding-bottom: 3rem; }

/* ── Accueil ─────────────────────────────────────────────────────────── */
.une { margin-bottom: 4rem; }
.une-image {
  display: block;
  width: 100%;
  margin: 0 0 2rem;
}

/* Grandes images : affichées en entier, à la largeur de la colonne, jamais recadrées.
   Pas de masque : le papier de la gravure reste visible et fait cadre. */
.une-image,
article.devar .illustration {
  display: block;
  width: 100%;
  height: auto;
}

/* Fleuron ocre (partiel fleuron.html) */
.fleuron { display: block; width: 4.5rem; height: auto; margin: 0 auto; color: var(--accent); opacity: 0.85; }
.separateur { margin: 2.75rem 0 2.25rem; }

/* Lettrine ocre sur trois lignes, première lettre de l'article */
.texte > p:first-child::first-letter {
  float: left;
  margin: 0.075em 0.1em 0 -0.02em;
  color: var(--accent);
  font-size: 5.6em;      /* hauteur de capitale ≈ 3 lignes à line-height 1.7 */
  font-weight: 400;
  line-height: 0.74;
}
.une-titre {
  margin: 0 0 0.6rem;
  font-size: clamp(2.4rem, 9vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
}
.une-titre a { color: var(--ink); text-decoration: none; }
.une-titre a:hover { color: var(--accent); }
.une .resume { font-size: 1.2rem; }
.lire {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
}
.lire span { display: inline-block; margin-left: 0.6rem; transition: transform 0.15s; }
.lire:hover span { transform: translateX(4px); }

.precedentes .etiquette { margin-bottom: 1.75rem; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.75rem;
}
.vignette { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.vignette.vide { background: var(--rule); }
.liste h3 { margin: 0 0 0.15rem; font-size: 1.55rem; font-weight: 400; line-height: 1.2; }
.liste h3 a { color: var(--ink); text-decoration: none; }
.liste h3 a:hover { color: var(--accent); }
.liste .dates { font-size: 0.95rem; margin-bottom: 0.6rem; }
.liste .resume { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ── Article ─────────────────────────────────────────────────────────── */
article.devar h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.3rem, 8vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
}
article.devar .dates { margin-bottom: 2rem; }
article.devar .illustration { margin: 0 0 2rem; }
article.page-texte h1 { margin-bottom: 2rem; }

.texte p { margin: 0 0 1.15rem; }
.texte h2 {
  margin: 2.5rem 0 0.9rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
}
.texte h3 {
  margin: 2.25rem 0 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.texte strong { font-weight: 600; }
.texte ul, .texte ol { padding-left: 1.25rem; }
.texte li { margin-bottom: 0.35rem; }
.texte h3 + ul { font-size: 0.95rem; color: var(--ink-soft); }
.texte blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--filet);
  font-style: italic;
}

.suite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.suite a { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: var(--ink); }
.suite .suiv { grid-column: 2; text-align: right; align-items: flex-end; }
.suite .suiv .etiquette { flex-direction: row-reverse; }
.suite .nom { font-size: 1.3rem; }
.suite a:hover .nom { color: var(--accent); }

/* ── Pages de navigation ─────────────────────────────────────────────── */
.page-nav h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 7vw, 2.6rem); font-weight: 400; line-height: 1.15; }
.intro { margin: 0 0 2.5rem; color: var(--ink-soft); font-style: italic; }
.livre { margin-bottom: 2.5rem; }
.livre .etiquette .hebreu { letter-spacing: 0; font-size: 1.15rem; text-transform: none; }
.liste-courte { list-style: none; margin: 0; padding: 0; }
.liste-courte li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.liste-courte a { font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.liste-courte a:hover { color: var(--accent); }
.liste-courte .dates { margin: 0; font-size: 0.92rem; }
.vide { margin: 0; color: var(--ink-soft); font-style: italic; font-size: 0.98rem; }

/* Pagefind UI aux couleurs du site */
#recherche,
#recherche .pagefind-ui {
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--bg);
  --pagefind-ui-border: var(--rule);
  --pagefind-ui-tag: var(--rule);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 2px;
  --pagefind-ui-font: "Frank Ruhl Libre", Georgia, serif;
  margin-top: 1.5rem;
}
#recherche mark { background: #f1dfb8; color: inherit; }

/* ── Pied de page ────────────────────────────────────────────────────── */
footer.site {
  padding: 1rem 1.25rem 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
footer.site .filet { width: 12rem; margin-bottom: 1rem; }
footer.site p { margin: 0; }
footer.site .hebreu { letter-spacing: 0; font-size: 0.95rem; text-transform: none; }
footer.site .liens { margin-top: 0.6rem; }
footer.site .liens a { color: inherit; text-decoration-color: var(--accent); }

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 34rem) {
  body { font-size: 1.125rem; }
  header.site { padding-top: 0.9rem; margin-bottom: 1.75rem; gap: 1.25rem; }
  .menu { gap: 0.1rem 1rem; font-size: 0.66rem; letter-spacing: 0.12em; }
  .devise { font-size: 0.85rem; }
  .etiquette { gap: 0.8rem; font-size: 0.7rem; letter-spacing: 0.14em; }
  .dates { font-size: 0.95rem; }
  .dates .sep { margin: 0 0.4rem; }
  .liste li { grid-template-columns: 6.5rem 1fr; gap: 1rem; margin-bottom: 2rem; }
  .liste h3 { font-size: 1.3rem; }
  .liste .dates .sep, .liste .dates span:last-child { display: none; }
  .liste .resume { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .suite { grid-template-columns: 1fr; }
  .suite .suiv { grid-column: 1; }
  .suite .nom { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lire span { transition: none; }
}

/* Finitions */
.dates > span { white-space: nowrap; }
#recherche input, #recherche button { font-family: inherit; }
