@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --fond:         #f0eeeb;
  --fond-carte:   #e9e6e1;
  --fond-image:   #e2deda;
  --header:       #1a0f0e;
  --rouge:        #8b1a1a;
  --rouge-clair:  #a82020;
  --pierre:       #857870;
  --texte:        #3a312a;
  --titre:        #1a0f0e;
  --blanc:        #faf8f5;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--fond);
  color: var(--texte);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.78;
  min-height: 100vh;
}

/* ── EN-TÊTE ─────────────────────────────────────────────── */

header {
  background-color: var(--header);
  padding: 3.2rem 1rem 2.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(139,26,26,.18) 0%, transparent 65%);
  pointer-events: none;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--rouge);
}

.site-titre {
  font-family: 'Bebas Neue', 'Playfair Display', serif;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 400;
  color: var(--blanc);
  letter-spacing: .12em;
  text-shadow: 0 2px 40px rgba(139,26,26,.4);
  line-height: 1;
}

/* ── NAVIGATION ──────────────────────────────────────────── */

nav {
  background-color: var(--fond-carte);
  border-bottom: 1px solid rgba(139,26,26,.18);
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: .4rem 1rem;
}

nav a {
  display: block;
  padding: .5rem 1.6rem;
  color: var(--pierre);
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .2s;
}

nav a:hover, nav a.actif {
  color: var(--rouge-clair);
}

/* ── CONTENEUR ───────────────────────────────────────────── */

.conteneur {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.conteneur--home {
  max-width: 1100px;
  padding-top: 3.5rem;
}

/* grille article + sidebar */
.grille {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

.grille--article {
  grid-template-columns: 3fr 1fr;
}

.conteneur--plein {
  max-width: 100%;
}

/* ── MANCHETTE (article vedette) ─────────────────────────── */

.manchette {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  min-height: 260px;
  background: var(--fond-carte);
  border-top: 2px solid var(--rouge);
  border-bottom: 1px solid rgba(139,26,26,.14);
  overflow: hidden;
}

.manchette-texte {
  padding: 2.2rem 2.5rem 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.manchette-meta {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.8rem;
}

.manchette-cat {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rouge);
  font-family: 'Lora', Georgia, serif;
}

.manchette-sep {
  width: 28px;
  height: 1px;
  background: rgba(139,26,26,.35);
  flex-shrink: 0;
}

.manchette-date {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pierre);
}

.manchette-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--titre);
  margin-bottom: 1.6rem;
}

.manchette-titre a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.manchette-titre a:hover { color: var(--rouge-clair); }

.manchette-extrait {
  font-size: .92rem;
  line-height: 1.72;
  color: var(--texte);
  margin-bottom: 1.4rem;
  flex: 1;
}

.manchette-lien {
  align-self: flex-start;
  color: var(--rouge);
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(139,26,26,.4);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}

.manchette-lien:hover {
  color: var(--rouge-clair);
  border-bottom-color: var(--rouge-clair);
}

.manchette-image {
  display: block;
  background: var(--fond-image);
  border-left: 1px solid rgba(139,26,26,.1);
  position: relative;
}

.manchette-image::after {
  content: '';
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(139,26,26,.2);
  border-radius: 1px;
}

/* Image réelle — masque le placeholder pointillé */
.manchette-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.manchette-image img ~ *,
.manchette-image:has(img)::after { display: none; }

/* ── ARTICLES (liste chronologique) ─────────────────────── */

/* Séparateur de section */
.section-titre {
  font-family: 'Playfair Display', serif;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pierre);
  margin: 4rem 0 2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(139,26,26,.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-titre::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(139,26,26,.1);
}

.articles { display: flex; flex-direction: column; gap: 0; }

.article-carte {
  display: flex;
  background: transparent;
  border-bottom: 1px solid rgba(139,26,26,.1);
  overflow: hidden;
  transition: background .2s;
}

.article-carte:first-child {
  border-top: 1px solid rgba(139,26,26,.1);
}

.article-carte:hover {
  background: rgba(139,26,26,.03);
}

/* Bloc image vignette */
.article-image {
  flex: 0 0 180px;
  background: var(--fond-image);
  border-right: 1px solid rgba(139,26,26,.08);
  display: block;
  position: relative;
  min-height: 150px;
}

.article-image::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(139,26,26,.2);
  border-radius: 1px;
}

/* Corps texte de la carte */
.article-corps {
  flex: 1;
  padding: 1.8rem 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .8rem;
}

.article-categorie {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rouge);
}

.article-date {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pierre);
}

.article-titre {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--titre);
  line-height: 1.28;
  margin-bottom: .7rem;
}

.article-titre a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.article-titre a:hover { color: var(--rouge-clair); }

.article-extrait {
  color: var(--texte);
  font-size: .94rem;
  line-height: 1.72;
  margin-bottom: 1rem;
}

.lire-suite {
  display: inline-block;
  color: var(--rouge);
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(139,26,26,.35);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.lire-suite:hover {
  color: var(--rouge-clair);
  border-bottom-color: var(--rouge-clair);
}

/* ── ARTICLE COMPLET ─────────────────────────────────────── */

.article-complet {
  background: var(--fond-carte);
  border: 1px solid rgba(139,26,26,.13);
  border-top: 2px solid var(--rouge);
  border-radius: 2px;
  padding: 3rem 3.5rem 3.5rem;
}

.article-complet h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--titre);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-complet .article-meta { margin-bottom: 2rem; }

.article-complet p {
  margin-bottom: 1.35rem;
  color: var(--texte);
}

.article-complet h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--rouge);
  margin: 2.2rem 0 .8rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(139,26,26,.18);
}

.article-complet blockquote {
  border-left: 2px solid var(--rouge);
  margin: 1.8rem 0;
  padding: .8rem 1.6rem;
  background: rgba(139,26,26,.04);
  font-style: italic;
  color: var(--titre);
}

.retour-lien {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.8rem;
  color: var(--pierre);
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s;
}

.retour-lien:hover { color: var(--rouge-clair); }

/* ── HERO IMAGE (article) ────────────────────────────────── */

.article-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 2px;
}

.article-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */

aside { display: flex; flex-direction: column; gap: 1.8rem; }

.widget {
  background: var(--fond-carte);
  border: 1px solid rgba(139,26,26,.12);
  border-top: 2px solid var(--rouge);
  border-radius: 2px;
  padding: 1.4rem 1.5rem;
}

.widget-titre {
  font-family: 'Playfair Display', serif;
  font-size: .8rem;
  color: var(--rouge);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(139,26,26,.15);
}

.widget ul { list-style: none; }

.widget ul li {
  padding: .4rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .88rem;
}

.widget ul li:last-child { border-bottom: none; }

.widget a {
  color: var(--texte);
  text-decoration: none;
  transition: color .2s;
}

.widget a:hover { color: var(--rouge-clair); }

.widget-a-propos p {
  font-size: .88rem;
  line-height: 1.68;
  color: var(--texte);
}

.separateur-or {
  width: 32px;
  height: 1px;
  background: var(--rouge);
  margin: .6rem 0 1rem;
  opacity: .5;
}

/* ── PAGINATION ──────────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 3rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(139,26,26,.25);
  color: var(--texte);
  text-decoration: none;
  font-size: .8rem;
  border-radius: 1px;
  transition: background .2s, color .2s;
}

.pagination a:hover, .pagination .actif {
  background: var(--rouge);
  color: var(--blanc);
  border-color: var(--rouge);
}

/* ── PIED DE PAGE ────────────────────────────────────────── */

footer {
  background: var(--header);
  border-top: 2px solid var(--rouge);
  text-align: center;
  padding: 2rem 1rem;
  font-size: .72rem;
  color: rgba(255,255,255,.32);
  letter-spacing: .1em;
  text-transform: uppercase;
}

footer em { color: rgba(255,255,255,.6); font-style: normal; }

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 860px) {
  .manchette {
    grid-template-columns: 1fr;
  }
  .manchette-image {
    border-left: none;
    border-top: 1px solid rgba(139,26,26,.1);
    min-height: 220px;
  }
  .manchette-texte {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 720px) {
  .grille, .grille--article {
    grid-template-columns: 1fr;
  }

  .conteneur { padding: 2rem 1.2rem 4rem; }
  .conteneur--home { padding: 2rem 1.2rem 4rem; }

  .article-carte { flex-direction: column; }
  .article-image {
    flex: 0 0 auto;
    min-height: 120px;
    border-right: none;
    border-bottom: 1px solid rgba(139,26,26,.08);
  }
  .article-corps { padding: 1.4rem 1.2rem; }
  .article-complet { padding: 1.8rem 1.3rem 2.5rem; }
}
