/* =======================================================================
   FEUILLE DE STYLE ÉDITORIALE — COLLECTION SOUVERAINETÉ (ARTICLES DE FOND)
   Maison Beaulieu · AB Éditions · Plume d'Adrien Beaulieu
   ======================================================================= */

:root {
  --cream: #f4ecda;
  --cream-card: #fbf7ee;
  --cream-light: #fffdf9;
  --ink: #1f1913;
  --ink-soft: #382c1f;
  --brown: #6b4c20;
  --gold: #a8742a;
  --gold-l: #c79a4e;
  --gold-pale: #ecd9b5;
  --bordeaux: #6e2f28;
  --bordeaux-deep: #4d1c17;
  --line: rgba(120, 85, 30, 0.28);
  --line-strong: rgba(120, 85, 30, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: #efe4c8 url(/img/fond-papier-v4.db450abb.webp);
  background-size: 1520px auto;
  font-size: 20px;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 252, 245, 0.55) 0%, rgba(255, 252, 245, 0) 55%),
              radial-gradient(ellipse 150% 130% at 50% 108%, rgba(0, 0, 0, 0) 60%, rgba(150, 120, 70, 0.16) 100%);
}

a {
  color: var(--bordeaux);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* --- Container & Breadcrumb --- */
.art-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.art-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0 12px;
  font-family: 'Playfair Display', serif;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
}

.art-breadcrumb a {
  color: var(--brown);
  border-bottom: 1px dotted var(--line-strong);
}

.art-breadcrumb a:hover {
  color: var(--gold);
}

.art-breadcrumb .sep {
  color: var(--gold);
  opacity: 0.6;
}

/* --- Hero de l'Article --- */
.art-hero {
  padding: 38px 0 32px;
  border-bottom: 2px double var(--line);
  margin-bottom: 38px;
  text-align: center;
}

.art-kicker {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.art-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  color: var(--bordeaux-deep);
  margin: 8px 0 18px;
  font-weight: 700;
  line-height: 1.15;
}

.art-chapo {
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: center;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.88rem;
  font-style: italic;
  color: #7d6545;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.art-meta .author-name {
  font-weight: 600;
  color: var(--ink);
  font-style: normal;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.05em;
}

.art-meta .reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Sommaire de lecture --- */
.art-sommaire {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 22px 28px;
  margin: 32px auto 44px;
  box-shadow: 0 4px 18px rgba(70, 50, 20, 0.06);
}

.art-sommaire-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}

.art-sommaire ol {
  margin: 0;
  padding-left: 22px;
}

.art-sommaire li {
  margin: 7px 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.art-sommaire li a {
  color: var(--ink-soft);
  border-bottom: 1px dotted transparent;
}

.art-sommaire li a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* --- Corps du texte --- */
.art-body {
  font-size: 1.2rem;
  line-height: 1.82;
  color: var(--ink);
}

.art-body p {
  margin: 0 0 24px;
  text-align: justify;
}

.art-body p.intro-lead:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  float: left;
  line-height: 0.78;
  padding: 8px 12px 0 0;
  color: var(--bordeaux);
  font-weight: 700;
}

.art-body h2 {
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  color: var(--bordeaux);
  margin: 54px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.art-body h2::before {
  content: "§ ";
  color: var(--gold);
  font-weight: 400;
  opacity: 0.7;
}

.art-body h3 {
  font-size: 1.35rem;
  color: var(--brown);
  margin: 34px 0 14px;
  font-style: italic;
  font-weight: 600;
}

/* --- Encadrés d'Archives Historiques --- */
.archive-box {
  background: linear-gradient(145deg, #fdf8ee 0%, #f6ebd1 100%);
  border: 1px solid var(--gold);
  border-left: 5px solid var(--bordeaux);
  border-radius: 4px;
  padding: 24px 30px;
  margin: 38px 0;
  box-shadow: 0 8px 24px rgba(80, 50, 15, 0.08);
  position: relative;
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.archive-badge {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bordeaux);
  font-weight: 700;
}

.archive-date {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--brown);
}

.archive-quote {
  font-style: italic;
  font-size: 1.16rem;
  line-height: 1.7;
  color: #2b1f14;
  margin: 0 0 14px;
}

.archive-source {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
  margin-top: 10px;
}

/* --- Cartouches Passerelles (Collection Souveraineté & Gaullomètre) --- */
.passerelle-container {
  margin: 54px 0 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .passerelle-container {
    grid-template-columns: 1fr;
  }
}

.passerelle-card {
  background: var(--cream-card);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(60, 40, 10, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.passerelle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(60, 40, 10, 0.14);
}

.passerelle-card.featured {
  background: linear-gradient(155deg, #fdf8ee 0%, #f4e3be 100%);
  border: 1.5px solid var(--gold);
  border-left: 5px solid var(--gold);
}

.passerelle-kicker {
  font-family: 'Playfair Display', serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.passerelle-card h4 {
  font-size: 1.25rem;
  color: var(--bordeaux);
  margin: 0 0 10px;
  line-height: 1.25;
}

.passerelle-card p {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--brown);
  flex: 1;
  margin-bottom: 18px;
  text-align: left;
}

.passerelle-btn {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 3px;
  border: 1px solid var(--bordeaux);
  color: var(--bordeaux);
  background: transparent;
  transition: all 0.2s ease;
}

.passerelle-btn:hover {
  background: var(--bordeaux);
  color: #fffdf6;
}

.passerelle-card.featured .passerelle-btn {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.passerelle-card.featured .passerelle-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

/* --- Cartouche Auteur Adrien Beaulieu --- */
.art-author-box {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 28px;
  margin: 50px 0 34px;
}

.art-author-seal {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.art-author-info h4 {
  font-size: 1.2rem;
  color: var(--bordeaux);
  margin: 0 0 4px;
}

.art-author-info p {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--brown);
  margin: 0;
  text-align: left;
}

/* --- Navigation Suivant / Précédent --- */
.art-pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: 'Playfair Display', serif;
}

@media (max-width: 600px) {
  .art-pagination {
    flex-direction: column;
  }
}

.art-pagination a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
  color: var(--ink);
}

.art-pagination a:hover {
  color: var(--gold);
}

.art-pagination .pag-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.art-pagination .pag-title {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.3;
}

.art-pagination .next {
  text-align: right;
  margin-left: auto;
}

/* --- Grille Index des Articles --- */
.articles-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0 60px;
}

@media (max-width: 760px) {
  .articles-index-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(60, 40, 10, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(60, 40, 10, 0.16);
  border-top-color: var(--bordeaux);
}

.article-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 1.32rem;
  color: var(--bordeaux-deep);
  margin: 0 0 12px;
  line-height: 1.25;
}

.article-card p {
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 20px;
  text-align: left;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--brown);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.article-card-link {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bordeaux);
  font-style: normal;
  font-weight: 600;
}

.article-card-link:hover {
  color: var(--gold);
}

/* --- Mobile Responsiveness Enhancements --- */
@media (max-width: 640px) {
  .art-author-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }
  .art-author-info p {
    text-align: center;
  }
  .archive-box {
    padding: 18px 20px;
    margin: 28px 0;
  }
  .archive-quote {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  .passerelle-card {
    padding: 20px;
  }
  .article-card {
    padding: 20px;
  }
  .article-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .art-container {
    padding: 0 16px;
  }
  .art-body {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  .art-body p.intro-lead:first-of-type::first-letter {
    font-size: 3.2rem;
    padding: 4px 8px 0 0;
  }
}
