/* ============================================================
   Mesure. — feuille de style, v2
   Palette Encrier & Aurore. Lora servie en local.
   Fondations volontairement classiques (flex, marges, filets) :
   rendu identique sur tous les moteurs, y compris anciens.
   ============================================================ */

@font-face {
  font-family: "Lora";
  src: url("fonts/Lora-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/Lora-Italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/Lora-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ivoire: #faf5ed;
  --encre: #15233a;
  --terracotta: #c97b5c;
  --petrole: #2c4a6b;
  --filet: rgba(201, 123, 92, 0.5);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --large: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: var(--large);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- petits éléments ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0;
}

.filet { border: 0; border-top: 1px solid var(--filet); margin: 0; }

.filet-court {
  width: 5.5rem;
  border: 0;
  border-top: 1.5px solid var(--terracotta);
  margin: 2.25rem 0;
}

a {
  color: var(--petrole);
  text-decoration-color: var(--filet);
  text-underline-offset: 0.22em;
}
a:hover { color: var(--terracotta); }
a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.sr-only {
  position: absolute;
  left: -99em;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- manchette ---------- */

.manchette { padding-top: 1.5rem; }
.manchette .eyebrow { padding-bottom: 0.55rem; border-bottom: 1px solid var(--filet); }

.marque { margin: 1.1rem 0 0.2rem; }
.marque:after { content: ""; display: block; clear: both; }

/* Wordmark : filets terracotta entre les lettres, jamais après le e. */
.wordmark {
  float: left;
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.05;
  white-space: nowrap;
  font-weight: 400;
}
.wordmark span {
  display: inline-block;
  position: relative;
  padding-right: 0.11em;
}
.wordmark span + span:before {
  content: "";
  position: absolute;
  left: -0.055em;
  bottom: 0.26em;
  height: 0.44em;
  border-left: 1px solid var(--terracotta);
}
.wordmark .point { color: var(--terracotta); padding-right: 0; margin-left: 0.02em; }
.wordmark .point:before { content: none; }

.wordmark.grand { font-size: 3.9rem; }
.wordmark.grand span + span:before { border-left-width: 1.5px; }

.devise {
  float: right;
  margin: 0;
  padding-top: 0.55em;
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.1rem;
}
.marque.grande .devise { padding-top: 1.55em; }

/* navigation, fermée par un double filet de manchette */
.nav {
  clear: both;
  margin-top: 0.9rem;
  padding: 0.55rem 0 0.6rem;
  border-top: 1px solid var(--filet);
  border-bottom: 2px solid var(--terracotta);
  position: relative;
}
.nav:after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  border-bottom: 1px solid var(--terracotta);
}
.nav a {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
  margin-right: 1.7rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--terracotta); }

/* ---------- corps ---------- */

main { padding-top: 2.75rem; padding-bottom: 1rem; }

h1 { font-size: 2.1rem; line-height: 1.15; font-weight: 700; margin: 0.4rem 0 0.75rem; }
h1 + .filet { margin-bottom: 2rem; }

h2 { font-size: 1.25rem; font-weight: 700; color: var(--petrole); margin: 2.5rem 0 0.35rem; }

p { margin: 0 0 1.1rem; }

.chapeau { font-style: italic; color: var(--terracotta); font-size: 1.15rem; }

.source { font-style: italic; color: var(--terracotta); font-size: 0.9375rem; }

.kessel { font-size: 0.9375rem; color: var(--petrole); margin-top: 2rem; }

/* ---------- accueil : dernier numéro ---------- */

.une {
  background: var(--petrole);
  color: var(--ivoire);
  padding: 1.5rem;
  margin: 2.25rem 0;
}
.une:after { content: ""; display: block; clear: both; }
.une-couv { float: left; width: 7.5rem; margin: 0.2rem 1.4rem 0.4rem 0; }
.une-couv img { display: block; width: 100%; height: auto; }
.une .eyebrow { color: var(--ivoire); opacity: 0.72; }
.une h2 { color: var(--ivoire); font-size: 1.45rem; margin: 0.45rem 0 0.55rem; }
.une p { color: var(--ivoire); }
.une a { color: var(--ivoire); font-weight: 700; }
.une a:hover { color: var(--terracotta); }

/* ---------- accueil : les portes, en colonnes de journal ---------- */

.portes { margin: 2.5rem 0 1rem; padding: 0; list-style: none; }
.portes:after { content: ""; display: block; clear: both; }
.portes li {
  float: left;
  width: 33.33%;
  padding: 0.2rem 1.25rem 0.4rem;
  border-left: 1px solid var(--filet);
}
.portes li:first-child { border-left: 0; padding-left: 0; }
.portes h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.portes p { font-size: 0.9375rem; margin-bottom: 0.7rem; }
.portes a { font-weight: 700; text-decoration: none; font-size: 0.9375rem; }
.portes a:hover { text-decoration: underline; }

/* ---------- la collection ---------- */

.sommaire { list-style: none; margin: 0; padding: 0; }
.sommaire li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--filet);
}
.sommaire li:first-child { border-top: 1px solid var(--filet); }
.sommaire li:after { content: ""; display: block; clear: both; }
.sommaire li > div:first-child {
  float: left;
  width: 6.25rem;
  margin-right: 1.4rem;
}
.sommaire li > div + div { overflow: hidden; }

.numero {
  display: block;
  font-size: 1.2rem;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.couverture {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--filet);
}
.titre { margin: 0 0 0.15rem; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.titre a { color: var(--encre); text-decoration: none; }
.titre a:hover { color: var(--terracotta); text-decoration: underline; }
.date {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrole);
  margin: 0 0 0.45rem;
}
.resume { margin: 0; font-size: 0.9375rem; }

/* ---------- contact ---------- */

.adresse { font-size: 1.55rem; margin: 1.75rem 0 0.5rem; word-break: break-all; }
.adresse a { text-decoration: none; }
.adresse a:hover { text-decoration: underline; }

/* ---------- pied ---------- */

.pied {
  margin-top: 4rem;
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--filet);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pied:after { content: ""; display: block; clear: both; }
.pied .gauche { float: left; color: var(--encre); }
.pied .droite { float: right; }
.pied a { color: var(--terracotta); text-decoration: none; }
.pied a:hover { text-decoration: underline; }

/* ---------- écrans étroits ---------- */

@media (max-width: 36rem) {
  .wordmark.grand { font-size: 2.9rem; }
  .devise { float: none; clear: both; padding-top: 0.35em; }
  .marque.grande .devise { padding-top: 0.35em; }
  .nav a { margin-right: 1.15rem; }
  .une-couv { width: 5.5rem; margin-right: 1.1rem; }
  .portes li {
    float: none;
    width: auto;
    padding: 1rem 0;
    border-left: 0;
    border-top: 1px solid var(--filet);
  }
  .portes li:first-child { border-top: 0; padding-top: 0.2rem; }
  .sommaire li > div:first-child { width: 4.75rem; margin-right: 1rem; }
  .adresse { font-size: 1.2rem; }
  .pied .gauche, .pied .droite { float: none; display: block; margin-bottom: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
