/* ============================================
   PRIÈRES DE DÉLIVRANCE — Design System
   ============================================ */
:root {
  --primary: #5b1e8e;
  --primary-dark: #3d1162;
  --primary-light: #7b3db8;
  --primary-bg: #f5f0ff;
  --gold: #c9a227;
  --gold-light: #f0d878;
  --gold-bg: #fdf8e8;
  --white: #ffffff;
  --bg: #faf8ff;
  --surface: #ffffff;
  --text: #2c2135;
  --text-light: #6e6080;
  --border: #e8e0f0;
  --shadow-sm: 0 1px 4px rgba(91,30,142,.08);
  --shadow: 0 4px 16px rgba(91,30,142,.12);
  --shadow-lg: 0 8px 32px rgba(91,30,142,.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-prayer: 'Lora', Georgia, serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text); line-height: 1.3; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none; line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a88320; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-spacer { height: var(--header-h); }
.header-inner {
  height: var(--header-h); display: flex;
  align-items: center; justify-content: space-between;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 1.25rem;
  font-weight: 700; color: var(--primary); text-decoration: none;
}
.logo-icon { font-size: 1.5rem; color: var(--gold); }
.logo-text { color: var(--primary); }

.main-nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.95rem; color: var(--text);
  transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary-bg); color: var(--primary);
}

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #7b2fbf 100%);
  color: #fff; text-align: center; padding: 90px 20px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '✝';
  position: absolute; font-size: 400px; opacity: .04;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: serif; pointer-events: none;
}
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); border-radius: 50px;
  padding: 4px 16px; font-size: 0.85rem; letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 600px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn-white {
  background: #fff; color: var(--primary); border: none;
}
.hero-btns .btn-white:hover { background: var(--gold-bg); color: var(--primary-dark); }
.hero-btns .btn-outline-white {
  background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff;
}
.hero-btns .btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ---- Stats bar ---- */
.stats-bar { background: var(--primary-dark); color: #fff; padding: 18px 0; }
.stats-inner {
  display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
  text-align: center;
}
.stat-item .stat-n { font-size: 1.8rem; font-weight: 700; color: var(--gold-light); font-family: var(--font-heading); }
.stat-item .stat-l { font-size: 0.82rem; opacity: .8; letter-spacing: .3px; }

/* ---- Section headers ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-badge {
  display: inline-block; background: var(--primary-bg); color: var(--primary);
  border-radius: 50px; padding: 4px 14px; font-size: 0.82rem;
  font-weight: 600; letter-spacing: .3px; margin-bottom: 12px;
}

/* ---- Divider ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---- Card grid ---- */
.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.cards-grid-4 {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.cards-grid-2 {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
}

/* ---- Prayer card ---- */
.prayer-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.prayer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prayer-card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: var(--primary-bg);
}
.prayer-card-img-placeholder {
  width: 100%; aspect-ratio: 16/9; background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.prayer-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.prayer-card-cat {
  font-size: 0.78rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.prayer-card-title {
  font-family: var(--font-heading); font-size: 1.05rem;
  margin-bottom: 10px; color: var(--text); line-height: 1.4;
}
.prayer-card-excerpt { font-size: 0.9rem; color: var(--text-light); flex: 1; margin-bottom: 16px; }
.prayer-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.prayer-card-date { font-size: 0.78rem; color: var(--text-light); }
.prayer-card-link { font-size: 0.88rem; font-weight: 600; color: var(--primary); }

/* ---- Category card ---- */
.cat-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; display: block;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.cat-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.cat-name { font-family: var(--font-heading); font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.cat-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; margin-bottom: 10px; }
.cat-count { font-size: 0.78rem; color: var(--primary); font-weight: 600; }

/* ---- Prayer of the Day ---- */
.pod-section { background: var(--primary-bg); }
.pod-card {
  max-width: 780px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.pod-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; padding: 28px 32px 20px; text-align: center;
}
.pod-badge {
  display: inline-block; background: rgba(255,255,255,.2);
  border-radius: 50px; padding: 4px 14px; font-size: 0.82rem;
  margin-bottom: 12px;
}
.pod-card-header h2 { color: #fff; font-size: 1.5rem; }
.pod-card-body { padding: 32px; }
.pod-excerpt {
  font-family: var(--font-prayer); font-size: 1.05rem;
  line-height: 1.8; color: var(--text); font-style: italic;
  border-left: 4px solid var(--gold); padding-left: 20px;
  margin-bottom: 24px;
}
.pod-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Bible Verse ---- */
.verse-section { background: var(--gold-bg); }
.verse-box {
  max-width: 700px; margin: 0 auto; text-align: center;
  padding: 48px 32px;
}
.verse-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.verse-text {
  font-family: var(--font-prayer); font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.6; color: var(--text); font-style: italic; margin-bottom: 12px;
}
.verse-ref { color: var(--gold); font-weight: 700; font-size: 0.95rem; }

/* ---- Book cards (boutique) ---- */
.book-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-cover {
  aspect-ratio: 3/4; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: #fff; padding: 24px; text-align: center;
}
.book-cover-icon { font-size: 3rem; }
.book-cover-title {
  font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 700; line-height: 1.3;
}
.book-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.book-title { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 8px; }
.book-desc { font-size: 0.88rem; color: var(--text-light); flex: 1; margin-bottom: 16px; }
.book-price { font-size: 1.5rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); }
.book-price-sub { font-size: 0.8rem; color: var(--text-light); font-weight: 400; }

/* ---- Newsletter section ---- */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; text-align: center; padding: 72px 20px;
}
.newsletter-section h2 { color: #fff; margin-bottom: 12px; }
.newsletter-section p { opacity: .9; margin-bottom: 32px; }
.newsletter-form {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1; padding: 13px 18px; border-radius: 50px; border: none;
  font-size: 0.95rem; min-width: 200px; outline: none;
}
.newsletter-form .btn { flex-shrink: 0; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 12px 0; font-size: 0.85rem; color: var(--text-light);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }

/* ---- Article single ---- */
.article-header { padding: 48px 0 32px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.article-cat-badge {
  background: var(--primary-bg); color: var(--primary);
  border-radius: 50px; padding: 4px 14px; font-size: 0.8rem; font-weight: 600;
}
.article-date { font-size: 0.85rem; color: var(--text-light); }
.article-title { font-size: clamp(1.5rem, 4vw, 2.4rem); margin-bottom: 14px; }
.article-excerpt { font-size: 1.1rem; color: var(--text-light); line-height: 1.7; }

.article-body {
  font-family: var(--font-prayer); font-size: 1.05rem; line-height: 1.85; color: var(--text);
  max-width: 780px;
}
.article-body h2 {
  font-size: 1.4rem; margin: 40px 0 16px; color: var(--primary);
  padding-bottom: 8px; border-bottom: 2px solid var(--primary-bg);
}
.article-body h3 { font-size: 1.15rem; margin: 28px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin-bottom: 18px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  background: var(--primary-bg); border-left: 4px solid var(--primary);
  margin: 28px 0; padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text);
}
.article-body em {
  color: var(--text-light); font-size: 0.95rem;
}

/* ---- Contact form ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--text);
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,30,142,.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

/* ---- Alert ---- */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 24px; font-size: 0.92rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 32px 0; flex-wrap: wrap; }
.page-btn {
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.9rem; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- Footer ---- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.85); padding: 64px 0 0; }
.footer-grid {
  display: grid; gap: 48px;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
}
.footer-logo {
  font-family: var(--font-heading); font-size: 1.2rem; color: #fff;
  margin-bottom: 14px; display: block;
}
.footer-about { font-size: 0.88rem; opacity: .75; line-height: 1.7; margin-bottom: 20px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 8px 16px; border-radius: 50px; font-size: 0.85rem;
  transition: background .15s; text-decoration: none;
}
.social-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: rgba(255,255,255,.7); font-size: 0.88rem; transition: color .15s; }
.site-footer ul a:hover { color: var(--gold-light); }
.footer-newsletter input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: none; font-size: 0.9rem; margin-bottom: 0; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); color: #fff; outline: none;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.footer-newsletter button {
  width: 100%; padding: 9px; background: var(--gold); color: #fff;
  border: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; cursor: pointer; font-size: 0.88rem;
  transition: background .15s;
}
.footer-newsletter button:hover { background: #a88320; }
.footer-links-row { display: flex; gap: 16px; margin-top: 14px; }
.footer-links-row a { color: rgba(255,255,255,.7); font-size: 0.85rem; }
.footer-links-row a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0; margin-top: 48px; text-align: center;
}
.footer-bottom p { font-size: 0.85rem; opacity: .6; }
.footer-verse { font-style: italic; margin-top: 6px; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-3 { gap: 24px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 56px 0 48px; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { opacity: .9; font-size: 1.05rem; }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-light); }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; display: block; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: fixed; top: var(--header-h); left: 0;
    width: 100%; background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 4px; padding: 16px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: flex; }
  .stats-inner { gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .pod-card-body { padding: 20px; }
  .pod-card-header { padding: 20px; }
  .article-body blockquote { padding: 14px 16px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 64px 20px 56px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: auto; }
}
