/* La Gauche par l'exemple — revue d'histoire politique et sociale
   Direction artistique : encre, papier, rouge discret.
   Typographie classique, filets d'imprimerie, maillage sobre. */

:root {
  --papier: #f6f1e4;
  --papier-2: #efe7d3;
  --papier-3: #e7dcc2;
  --encre: #221c13;
  --encre-2: #4c4231;
  --encre-3: #6f6350;
  --rouge: #8e1f1f;
  --rouge-2: #a32a26;
  --filet: #c9bb9c;
  --filet-2: #a8977a;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--encre);
  background:
    radial-gradient(1200px 600px at 15% -5%, rgba(255, 252, 243, 0.9), rgba(255, 252, 243, 0) 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(163, 42, 38, 0.05), rgba(163, 42, 38, 0) 55%),
    var(--papier);
  line-height: 1.62;
  font-size: 1.06rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- accessibilité ---------- */
.saut {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: var(--papier);
  padding: 0.6rem 1rem; z-index: 100;
}
.saut:focus { left: 0; }

/* ---------- bandeau supérieur ---------- */
.bandeau-haut {
  border-bottom: 1px solid var(--filet-2);
  background: linear-gradient(180deg, rgba(34, 28, 19, 0.035), rgba(34, 28, 19, 0));
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--encre-3);
}
.bandeau-haut .int {
  max-width: 1080px; margin: 0 auto; padding: 0.45rem 1.2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.bandeau-haut .rouge { color: var(--rouge); }

/* ---------- titre de tête (masthead) ---------- */
.masthead { text-align: center; padding: 2rem 1.2rem 1.1rem; }
.masthead .surtitre {
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--rouge); margin: 0 0 0.7rem;
}
.masthead h1 { margin: 0; line-height: 1.05; }
.masthead .titre a {
  color: var(--encre); text-decoration: none;
  font-size: clamp(2.1rem, 6.2vw, 3.9rem);
  font-weight: 700; letter-spacing: 0.01em;
}
.masthead .titre em { font-style: italic; font-weight: 400; }
.masthead .sous-titre {
  margin: 0.8rem auto 0; max-width: 640px; color: var(--encre-2);
  font-style: italic; font-size: 1.02rem;
}
.filet-double {
  max-width: 1080px; margin: 1.1rem auto 0; padding: 0 1.2rem;
}
.filet-double i {
  display: block; border-top: 3px double var(--filet-2);
}

/* ---------- navigation ---------- */
.nav-main {
  max-width: 1080px; margin: 0.55rem auto 0; padding: 0 1.2rem;
}
.nav-main ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 1.6rem;
  font-variant: small-caps; letter-spacing: 0.06em; font-size: 1rem;
}
.nav-main a {
  color: var(--encre-2); text-decoration: none; padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav-main a:hover { color: var(--rouge); }
.nav-main a[aria-current="page"] {
  color: var(--encre); border-bottom-color: var(--rouge); font-weight: 600;
}

/* ---------- héros de une (dégradé CSS, aucune image) ---------- */
.hero {
  margin: 1.4rem 1.2rem 0;
}
.hero .cadre {
  position: relative; overflow: hidden;
  border: 1px solid var(--filet-2);
  outline: 4px double var(--filet);
  outline-offset: 6px;
  background:
    radial-gradient(85% 130% at 50% -30%, #fbf7ec 0%, #f1e9d5 46%, #e2d3ae 100%),
    var(--papier-2);
  padding: clamp(2.4rem, 7vw, 4.6rem) clamp(1.4rem, 6vw, 5rem);
  text-align: center;
}
.hero .cadre::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(34, 28, 19, 0.028) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(34, 28, 19, 0.02) 0 1px, transparent 1px 9px),
    radial-gradient(140% 100% at 50% 120%, rgba(142, 31, 31, 0.12), transparent 55%);
}
.hero .etiquette {
  position: relative; display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--rouge); border-top: 1px solid var(--filet-2);
  border-bottom: 1px solid var(--filet-2); padding: 0.4rem 0.9rem; margin: 0 0 1.4rem;
}
.hero h2 {
  position: relative; margin: 0 auto; max-width: 820px;
  font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.14; font-weight: 700;
}
.hero h2 em { font-style: italic; }
.hero p.chapo-hero {
  position: relative; margin: 1.3rem auto 0; max-width: 660px;
  font-size: 1.12rem; color: var(--encre-2); font-style: italic;
}

/* ---------- gabarit de page ---------- */
.int { max-width: 1080px; margin: 0 auto; padding: 0 1.2rem; }

.fil-ariane {
  font-size: 0.82rem; color: var(--encre-3); margin: 1.6rem 0 0;
  letter-spacing: 0.04em;
}
.fil-ariane a { color: var(--encre-3); text-decoration: none; }
.fil-ariane a:hover { color: var(--rouge); }
.fil-ariane .sep { margin: 0 0.45rem; color: var(--filet-2); }

.article { max-width: 760px; margin: 0 auto 3rem; }

.tete-article { border-bottom: 3px double var(--filet-2); padding-bottom: 1.3rem; }
.rubrique-etiquette {
  display: inline-block; font-variant: small-caps; letter-spacing: 0.12em;
  color: var(--rouge); font-size: 0.92rem; text-decoration: none;
  border: 1px solid var(--filet-2); padding: 0.15rem 0.7rem; border-radius: 2px;
  background: rgba(255, 252, 243, 0.6);
}
.rubrique-etiquette:hover { border-color: var(--rouge); }
.tete-article h1 {
  margin: 0.9rem 0 0; font-size: clamp(1.75rem, 4.4vw, 2.6rem);
  line-height: 1.15; font-weight: 700;
}
.tete-article .chapo {
  margin: 1rem 0 0; font-size: 1.15rem; font-style: italic; color: var(--encre-2);
}
.tete-article .meta {
  margin: 1.1rem 0 0; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--encre-3);
}

.corps h2 {
  font-size: 1.42rem; margin: 2.2rem 0 0.8rem; line-height: 1.25;
}
.corps h2::before {
  content: "§"; color: var(--rouge); font-weight: 400;
  margin-right: 0.55rem; font-size: 1.1em;
}
.corps p { margin: 0 0 1.05rem; text-align: justify; hyphens: auto; }
.corps p + p { text-indent: 1.6rem; }
.corps a { color: var(--rouge); text-decoration: none; border-bottom: 1px solid rgba(142, 31, 31, 0.35); }
.corps a:hover { border-bottom-color: var(--rouge); }
.corps blockquote {
  margin: 1.6rem 0; padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--rouge); font-style: italic; color: var(--encre-2);
}
.corps blockquote cite {
  display: block; margin-top: 0.4rem; font-style: normal; font-size: 0.85rem;
  letter-spacing: 0.08em; color: var(--encre-3);
}
.lettrine::first-letter {
  float: left; font-size: 3.4em; line-height: 0.82; padding: 0.06em 0.12em 0 0;
  color: var(--rouge); font-weight: 700;
}
.notes-date {
  margin-top: 2rem; padding: 0.8rem 1rem; border: 1px dashed var(--filet-2);
  font-size: 0.88rem; color: var(--encre-3); background: rgba(255, 252, 243, 0.55);
}

/* ---------- lire aussi ---------- */
.lire-aussi { border-top: 3px double var(--filet-2); margin-top: 2.6rem; padding-top: 1.2rem; }
.lire-aussi h2 { font-variant: small-caps; letter-spacing: 0.14em; font-size: 1.15rem; margin: 0 0 0.8rem; }
.lire-aussi ul { list-style: none; margin: 0; padding: 0; }
.lire-aussi li { border-top: 1px solid var(--filet); padding: 0.7rem 0; }
.lire-aussi li:first-child { border-top: 0; }
.lire-aussi a { color: var(--encre); text-decoration: none; display: flex; gap: 0.8rem; align-items: baseline; }
.lire-aussi a:hover .t { color: var(--rouge); }
.lire-aussi .n { color: var(--rouge); font-size: 0.85rem; min-width: 1.4rem; }
.lire-aussi .t { font-weight: 600; }
.lire-aussi .r { color: var(--encre-3); font-size: 0.82rem; font-style: italic; margin-left: auto; text-align: right; }

/* ---------- sommaire de la une ---------- */
.rubrique-bloc { margin: 3rem 0 0; }
.rubrique-bloc > h2 {
  display: flex; align-items: center; gap: 1rem;
  font-variant: small-caps; letter-spacing: 0.16em; font-size: 1.3rem;
  margin: 0 0 1.2rem; font-weight: 600;
}
.rubrique-bloc > h2::before, .rubrique-bloc > h2::after {
  content: ""; height: 1px; background: var(--filet-2); flex: 1;
}
.grille-cartes {
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.carte {
  border: 1px solid var(--filet-2); background: linear-gradient(180deg, rgba(255, 252, 243, 0.75), rgba(239, 231, 211, 0.55));
  padding: 1.15rem 1.2rem 1.05rem; text-decoration: none; color: var(--encre);
  display: flex; flex-direction: column; gap: 0.55rem;
  position: relative; transition: border-color 0.15s ease, transform 0.15s ease;
}
.carte:hover { border-color: var(--rouge); transform: translateY(-2px); }
.carte .c-rub {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rouge);
}
.carte .c-titre { font-size: 1.18rem; line-height: 1.3; font-weight: 700; }
.carte .c-resume { color: var(--encre-2); font-size: 0.95rem; margin: 0; }
.carte .c-chemin {
  margin-top: auto; padding-top: 0.5rem; border-top: 1px dotted var(--filet-2);
  font-size: 0.76rem; color: var(--encre-3); letter-spacing: 0.05em;
}

/* ---------- edito de la une ---------- */
.edito-une {
  max-width: 760px; margin: 3.2rem auto 0; padding-top: 1.6rem;
  border-top: 3px double var(--filet-2);
}
.edito-une .signee { text-align: right; font-style: italic; color: var(--encre-3); margin-top: 1rem; }

/* ---------- pied de page ---------- */
.pied {
  margin-top: 4rem; border-top: 4px double var(--filet-2);
  background: linear-gradient(180deg, rgba(34, 28, 19, 0.03), rgba(34, 28, 19, 0.065));
  padding: 2rem 0 2.6rem; font-size: 0.9rem; color: var(--encre-2);
}
.pied .colonnes {
  display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pied h2 { font-variant: small-caps; letter-spacing: 0.14em; font-size: 1rem; margin: 0 0 0.6rem; color: var(--encre); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: 0.18rem 0; }
.pied a { color: var(--encre-2); text-decoration: none; border-bottom: 1px dotted var(--filet-2); }
.pied a:hover { color: var(--rouge); border-bottom-color: var(--rouge); }
.pied .mention-legale {
  margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--filet);
  font-size: 0.8rem; color: var(--encre-3); line-height: 1.55;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .corps p { text-align: left; }
  .corps p + p { text-indent: 0; }
  .lire-aussi .r { display: none; }
  .bandeau-haut .int { justify-content: center; text-align: center; }
}
@media print {
  .nav-main, .bandeau-haut, .lire-aussi, .pied { display: none; }
  body { background: #fff; }
}

/* ---------- bloc auteur ---------- */
.bloc-auteur { border-top: 3px double var(--filet-2); margin-top: 2.4rem; padding: 1.1rem 0 0.2rem; }
.bloc-auteur__nom { font-variant: small-caps; letter-spacing: 0.14em; font-size: 1.05rem; margin: 0 0 0.45rem; }
.bloc-auteur__nom a { color: var(--rouge-2); text-decoration: none; }
.bloc-auteur__nom a:hover { text-decoration: underline; }
.bloc-auteur p:last-child { margin: 0 0 0.6rem; font-size: 0.97rem; color: var(--encre-2); }
.tete-article .meta a { color: var(--encre-2); text-decoration: none; }
.tete-article .meta a:hover { text-decoration: underline; }

/* ---- pipeline photos ---- */
.hero .cadre .photo-hero { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 45%; display: block; filter: sepia(.22) contrast(.98); }
figure.gravure { margin: 0 0 1.1rem; }
figure.gravure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border: 1px solid var(--filet-2); filter: sepia(.25) contrast(.97); }
figure.gravure figcaption { font-size: .8rem; font-style: italic; margin-top: .4rem; color: var(--encre-2, #5a5243); }
