/* ============================================
   PROPHETE.FR — CSS Principal
   Design spirituel, violet royal & doré
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ---- Variables ---- */
:root {
  --primary: #7B2D8B;
  --primary-dark: #5a1f68;
  --primary-light: #9b4dab;
  --secondary: #F0C040;
  --secondary-dark: #c9a020;
  --gold: #D4AF37;
  --gold-light: #f0d080;
  --bg: #faf8f5;
  --bg-warm: #f5f0e8;
  --bg-dark: #1a0f2e;
  --text: #2c1a3e;
  --text-light: #6b5a7e;
  --text-muted: #9e8fb0;
  --white: #ffffff;
  --border: #e8dff0;
  --shadow: 0 4px 24px rgba(123, 45, 139, 0.12);
  --shadow-lg: 0 12px 48px rgba(123, 45, 139, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --font-title: 'Cinzel', serif;
  --font-body: 'EB Garamond', serif;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary-dark); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 500; }
p { font-size: 1.1rem; margin-bottom: 1rem; }
.lead { font-size: 1.25rem; line-height: 1.8; color: var(--text-light); }

/* ---- Layout helpers ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ---- Section titles ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-title);
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.title-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  margin: 1.25rem auto;
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(123,45,139,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123,45,139,0.4);
  color: var(--white);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--secondary-dark));
  color: var(--text);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.4);
  color: var(--text);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- HEADER / NAV ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.nav-logo svg { color: var(--gold); }
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all var(--transition);
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(123,45,139,0.07);
}
.nav-cta { margin-left: 1rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/12098624/pexels-photo-12098624.jpeg?auto=compress&cs=tinysrgb&h=650&w=940');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,15,46,0.88) 0%, rgba(123,45,139,0.65) 50%, rgba(26,15,46,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(240,192,64,0.2);
  border: 1px solid rgba(240,192,64,0.5);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.82);
  max-width: 700px;
  margin: 1rem auto 2.5rem;
  line-height: 1.8;
  font-style: italic;
}
.hero-verse {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.75rem; }
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-title);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(123,45,139,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.card p { color: var(--text-light); font-size: 1rem; margin-bottom: 1rem; }
.card-link {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.05em;
}
.card-link:hover { color: var(--secondary-dark); }

/* ---- PROPHETS GRID ---- */
.prophet-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}
.prophet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prophet-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
}
.prophet-card-body { padding: 1.5rem; }
.prophet-era {
  font-size: 0.75rem;
  font-family: var(--font-title);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.prophet-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.prophet-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }
.prophet-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(123,45,139,0.85);
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
}

/* ---- VERSE BLOCK ---- */
.verse-block {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.verse-block::before {
  content: '✝';
  position: absolute;
  font-size: 20rem;
  color: rgba(255,255,255,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
}
.verse-block blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.verse-block blockquote::before,
.verse-block blockquote::after {
  content: '"';
  font-size: 3rem;
  color: var(--gold);
  line-height: 0;
  vertical-align: -0.5rem;
}
.verse-block cite {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ---- TIMELINE ---- */
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--gold));
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}
.timeline-item:nth-child(odd) .timeline-content { order: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-dot { order: 2; }
.timeline-item:nth-child(odd) .timeline-empty { order: 3; }
.timeline-item:nth-child(even) .timeline-empty { order: 1; }
.timeline-item:nth-child(even) .timeline-dot { order: 2; }
.timeline-item:nth-child(even) .timeline-content { order: 3; }
.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--gold);
  border-radius: 50%;
  margin-top: 0.4rem;
  box-shadow: 0 0 0 4px rgba(123,45,139,0.15);
}
.timeline-content { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.timeline-date {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.timeline-content h4 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.timeline-content p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-question {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(123,45,139,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--primary);
  font-size: 1rem;
}
.faq-item.open .faq-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding-top: 0.75rem;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

/* ---- FEATURE BOXES ---- */
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(123,45,139,0.12), rgba(240,192,64,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.feature-box { padding: 2rem; }
.feature-box h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.feature-box p { color: var(--text-light); font-size: 1rem; line-height: 1.7; }

/* ---- SECTION BG variants ---- */
.bg-warm { background: var(--bg-warm); }
.bg-purple { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark) 100%); }
.bg-purple * { color: var(--white); }
.bg-purple .section-title, .bg-purple h2, .bg-purple h3 { color: var(--white); }
.bg-purple p { color: rgba(255,255,255,0.8); }
.bg-purple .section-subtitle { color: rgba(255,255,255,0.7); }

/* ---- SPLIT SECTIONS ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.split-img { position: relative; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-content {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- SCROLL REVEAL ---- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll.delay-1 { transition-delay: 0.1s; }
.reveal-on-scroll.delay-2 { transition-delay: 0.2s; }
.reveal-on-scroll.delay-3 { transition-delay: 0.3s; }
.reveal-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-verse {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1rem;
}
.footer-verse p {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}
.footer-verse cite { font-size: 0.8rem; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* ---- PAGE HERO (pages internes) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/7520353/pexels-photo-7520353.jpeg?auto=compress&cs=tinysrgb&h=350') center/cover;
  opacity: 0.08;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb {
  justify-content: center;
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a, .page-hero .breadcrumb span { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }

/* ---- STATS BAND ---- */
.stats-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 3rem 0;
}
.stats-band .stat-item { text-align: center; }
.stats-band .stat-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--gold-light);
  display: block;
}
.stats-band .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}

/* ---- NEWSLETTER ---- */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form input::placeholder { color: var(--text-muted); }

/* ---- TAG CLOUD ---- */
.tag { 
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  background: rgba(123,45,139,0.1);
  color: var(--primary);
  margin: 0.25rem;
  transition: all var(--transition);
}
.tag:hover { background: var(--primary); color: var(--white); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 24px; }
  .timeline-item { grid-template-columns: auto 1fr; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { order: 2; text-align: left; }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { order: 1; }
  .timeline-empty { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .nav-cta.open { display: block; padding: 0 1.5rem 1.5rem; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-img { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding: 100px 0 4rem; }
  .stats-band .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .stats-band .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
 * MOBILE ACCESSIBILITY — tap targets & readable text
 * WCAG 2.2 AA: min 24x24 tap target, body text >=12px
 * ============================================================ */
@media (max-width: 1024px) {

  /* --- Breadcrumb (Accueil › X) --- */
  .breadcrumb {
    font-size: 0.9rem;
    padding: 0.75rem 0;
    gap: 0.6rem;
  }
  .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.3rem 0.4rem;
    margin: 0 -0.4rem;
    border-radius: 6px;
  }

  /* --- Footer column links --- */
  .footer-col a {
    display: block;
    padding: 0.45rem 0;
    margin-bottom: 0.1rem;
    min-height: 32px;
  }

  /* --- Minimum readable size on inline-styled small text --- */
  [style*="font-size:0.5"],
  [style*="font-size: 0.5"],
  [style*="font-size:0.6"],
  [style*="font-size: 0.6"],
  [style*="font-size:0.7"],
  [style*="font-size: 0.7"] {
    font-size: 0.78rem !important;
  }

  /* --- Section label always readable --- */
  .section-label {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
  }

  /* --- Inline CTA text-links ("Lire → ", "Découvrir →") need height --- */
  a[style*="font-size:0.75rem"],
  a[style*="font-size: 0.75rem"],
  a[style*="font-size:0.78rem"],
  a[style*="font-size: 0.78rem"] {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.25rem 0;
  }

  /* --- Footer "Tous les saints →" and lone-arrow links --- */
  .footer-col a[href$="/saints"],
  a:has(> svg:only-child),
  a:empty {
    min-width: 44px;
    min-height: 32px;
  }
}

/* Prevent horizontal overflow on any mobile page */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  /* Force single column on inline flex layouts that would overflow */
  .split-content, .split-img { width: 100%; }

  /* Card-link & btn-link — CTAs like "Lire son histoire →" */
  .card-link, .btn-link, a.card-link, a.btn-link {
    min-height: 32px;
    padding: 0.35rem 0;
  }

  /* Footer "Site ami" partner link */
  .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0.5rem;
    margin: 0 -0.25rem;
  }
}