/* shared-layout.css — Chemin de Foi */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #faf8f4;
  --white: #ffffff;
  --ink: #1a1814;
  --ink-light: #4a4540;
  --gold: #c9a84c;
  --gold-light: #e8d49a;
  --gold-pale: #f5efd6;
  --blue: #2d5a8e;
  --blue-light: #e8f0f8;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

/* ── BANNIÈRE LITURGIQUE DU JOUR ── */
.liturgy-bar {
  background: var(--blue);
  color: rgba(255,255,255,0.92);
  font-size: 0.78rem;
  padding: 0 5vw;
}
.liturgy-bar-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 7px 0;
}
.liturgy-date {
  font-weight: 500; color: var(--gold-light);
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.liturgy-fete {
  font-style: italic; opacity: 0.85;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 260px; flex-shrink: 1;
}
.liturgy-readings {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0;
}
.reading-label { opacity: 0.6; font-size: 0.72rem; }
.reading-ref {
  background: rgba(255,255,255,0.15);
  border-radius: 4px; padding: 2px 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem; font-style: italic;
  white-space: nowrap;
}
.liturgy-sep { opacity: 0.3; font-size: 0.7rem; }
.liturgy-loading { opacity: 0.5; font-style: italic; }
.liturgy-aelf-link {
  color: var(--gold-light); text-decoration: none;
  font-size: 0.72rem; opacity: 0.75; white-space: nowrap; flex-shrink: 0;
}
.liturgy-aelf-link:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 860px) { .liturgy-fete { display: none; } }
@media (max-width: 640px) { .liturgy-aelf-link { display: none; } .reading-label { display: none; } }
@media (max-width: 400px) { .liturgy-bar { font-size: 0.7rem; } }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 0 5vw;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .cross { color: var(--gold); font-size: 1.1rem; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-light); text-decoration: none;
  padding: 6px 12px; border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--gold-pale); color: var(--ink); }
.nav-links a.active { background: var(--gold); color: white; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ── PAGE HEADER ── */
.page-header {
  padding: 64px 5vw 48px;
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 24px;
}
.page-header-icon {
  font-size: 3.5rem; line-height: 1;
  flex-shrink: 0;
}
.page-header-text {}
.page-header-text .breadcrumb {
  font-size: 0.78rem; color: var(--gold); font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px;
}
.page-header-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.15;
}
.page-header-text p { color: var(--ink-light); margin-top: 10px; max-width: 560px; }

.page-divider {
  max-width: 1100px; margin: 0 auto 48px; padding: 0 5vw;
  height: 1px; background: linear-gradient(90deg, var(--gold) 0%, transparent 60%);
}

/* ── CONTENT AREA ── */
.page-content {
  max-width: 1100px; margin: 0 auto;
  padding: 0 5vw 80px;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
}
@media (max-width: 900px) {
  .page-content { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

/* ── ARTICLE PROSE ── */
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; font-weight: 600;
  margin: 40px 0 16px; color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--blue); margin: 28px 0 10px; text-transform: uppercase; font-size: 0.82rem;
}
.prose p { margin-bottom: 16px; color: var(--ink-light); line-height: 1.8; }
.prose strong { color: var(--ink); font-weight: 500; }

.prose .highlight-box {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 28px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-style: italic; line-height: 1.6;
  color: var(--blue);
}
.prose .gold-box {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 28px 0;
}
.prose .gold-box p { margin: 0; }

/* ── NUMBERED LIST ── */
.num-list { list-style: none; margin: 20px 0 28px; padding: 0; }
.num-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.num-list li:last-child { border-bottom: none; }
.num-list .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: white;
  font-size: 0.78rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: 1px;
}
.num-list .num-text { font-size: 0.95rem; color: var(--ink-light); line-height: 1.65; }
.num-list .num-text strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }

/* ── CARDS IN CONTENT ── */
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.mini-card {
  background: white; border-radius: 12px; padding: 20px;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}
.mini-card .icon { font-size: 2rem; margin-bottom: 10px; }
.mini-card strong { display: block; font-size: 0.9rem; color: var(--ink); margin-bottom: 4px; }
.mini-card span { font-size: 0.8rem; color: var(--ink-light); }

/* ── SIDEBAR ── */
.sidebar {}
.sidebar-widget {
  background: white; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  margin-bottom: 24px; border: 1px solid rgba(0,0,0,0.05);
}
.sidebar-widget h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; margin-bottom: 14px; color: var(--ink);
}
.sidebar-widget .verse {
  font-style: italic; font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; line-height: 1.6; color: var(--ink-light);
  margin-bottom: 8px;
}
.sidebar-widget .ref { font-size: 0.78rem; color: var(--gold); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar-nav a {
  display: block; padding: 8px 0;
  font-size: 0.88rem; color: var(--ink-light); text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.2s; display: flex; align-items: center; gap: 8px;
}
.sidebar-nav a:hover { color: var(--blue); }
.sidebar-nav a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--ink-light); text-decoration: none;
  max-width: 1100px; margin: 24px auto 0; padding: 0 5vw;
  display: block;
}
.back-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-light); text-decoration: none; font-size: 0.85rem;
  transition: color 0.2s;
}
.back-link a:hover { color: var(--blue); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 40px 5vw;
  text-align: center;
  font-size: 0.85rem;
}
footer .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; color: white; margin-bottom: 12px;
}

/* ── MOBILE NAV ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); padding: 16px; border-bottom: 1px solid rgba(201,168,76,0.2); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .page-header { padding: 40px 5vw 32px; flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.prose, .sidebar { animation: fadeUp 0.5s ease both; }
.sidebar { animation-delay: 0.1s; }
