/* ==========================================================================
   Église Évangélique Protestante de Bellocq — feuille de style principale
   ========================================================================== */

:root {
  --navy: #1c2f4a;
  --navy-dark: #12203a;
  --navy-soft: #2c4363;
  --gold: #b8863b;
  --gold-light: #d8ab5f;
  --cream: #faf6ef;
  --cream-alt: #f1e8d8;
  --white: #ffffff;
  --text: #2a2a28;
  --muted: #6b675f;
  --border: #e4dac5;
  --shadow: 0 10px 30px rgba(28, 47, 74, 0.10);
  --radius: 14px;
  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text); }
a { color: var(--navy); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 0.8em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

.section {
  padding: 84px 0;
}

.section--alt {
  background: var(--cream-alt);
}

.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,.82); }

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(184,134,59,.35);
}
.btn--gold:hover { background: var(--gold-light); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn--navy-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--navy-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__text strong {
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--navy);
}
.brand__text span {
  font-size: 0.72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--cream-alt); }
.main-nav a.is-active { color: var(--gold); }

.nav-cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 55%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 110px 0 130px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(216,171,95,.18) 0, transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(216,171,95,.12) 0, transparent 40%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255,255,255,.85); max-width: 52ch; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.hero-verse {
  margin-top: 2.2rem;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.08rem;
  color: rgba(255,255,255,.92);
  max-width: 46ch;
}
.hero-verse cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-top: 0.5em;
  letter-spacing: .04em;
}

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(4px);
}
.hero-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1.1em;
}
.hero-schedule {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
}
.hero-schedule li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: 0.96rem;
}
.hero-schedule li:last-child { border-bottom: none; }
.hero-schedule .day { color: rgba(255,255,255,.7); }
.hero-schedule .time { font-weight: 700; color: var(--gold-light); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,47,74,.14); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}
.icon-badge svg { width: 26px; height: 26px; }

.card a.card-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--gold);
}
.card a.card-link:hover { text-decoration: underline; }

/* ---------- Split / about blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-visual {
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--gold-light), var(--gold));
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-visual svg { width: 45%; opacity: .95; }
.split-visual.navy { background: linear-gradient(150deg, var(--navy-soft), var(--navy-dark)); }

/* ---------- Timeline (histoire) ---------- */
.timeline {
  border-left: 3px solid var(--border);
  margin-left: 12px;
  padding-left: 32px;
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item .tag {
  display: inline-block;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: .04em;
  margin-bottom: 0.4em;
}

/* ---------- Beliefs / accordion-style list ---------- */
.belief-list {
  display: grid;
  gap: 22px;
}
.belief {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.belief-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 600;
}
.belief h3 { margin-bottom: 0.4em; }

/* ---------- Schedule table ---------- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule-table th, .schedule-table td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.schedule-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table td.time { color: var(--gold); font-weight: 700; white-space: nowrap; }

/* ---------- Agenda / events ---------- */
.event-list {
  display: grid;
  gap: 20px;
}
.event {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  align-items: center;
}
.event-date {
  background: var(--cream-alt);
  border-radius: 10px;
  text-align: center;
  padding: 12px 6px;
}
.event-date .num { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--navy); font-weight: 700; }
.event-date .mon { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-weight: 700; }
.event h3 { margin-bottom: 0.25em; font-size: 1.15rem; }
.event .meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4em; }

/* ---------- Contact ---------- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.info-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.info-list .ic svg { width: 20px; height: 20px; }
.info-list strong { display: block; color: var(--navy); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 70px 0;
}
.cta-band .btn { margin: 0 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.2em;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-grid p, .footer-grid a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 0.94rem;
}
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 74px 0 64px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero .lead { color: rgba(255,255,255,.8); margin: 0 auto; text-align: center; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.callout {
  background: var(--cream-alt);
  border-left: 4px solid var(--gold);
  padding: 22px 26px;
  border-radius: 10px;
  margin: 1.6em 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .split-visual { order: -1; min-height: 220px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
    gap: 2px;
  }
  .site-header.is-open .main-nav a { padding: 12px 8px; }
  .nav-cta { margin-left: 0; margin-top: 10px; }
  .grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .belief { grid-template-columns: 1fr; }
  .belief-num { display: none; }
  .event { grid-template-columns: 72px 1fr; }
  .hero { padding: 80px 0 90px; }
  .section { padding: 60px 0; }
}
