/* ilodionysiens.fr — Centre Biblique de l'Île-Saint-Denis */

:root {
  --bg: #1a1a2e;
  --bg-alt: #16213e;
  --text: #f5f0e8;
  --text-muted: #a0a0b0;
  --accent: #e8a838;
  --accent2: #4a9ead;
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-anim {
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 15vw, 140px);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  position: relative;
}

/* Letters — ILE visible, B's hidden initially */
.letter {
  display: inline-block;
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.letter-i, .letter-l, .letter-e {
  color: var(--accent);
}

.letter-b1, .letter-b2 {
  color: var(--text);
  opacity: 0;
  transform: translateX(0) scale(0.5);
  width: 0;
  overflow: hidden;
}

/* Phase 2: B's slide in */
.hero-anim.reveal .letter-b1 {
  opacity: 1;
  transform: translateX(0) scale(1);
  width: auto;
}

.hero-anim.reveal .letter-b2 {
  opacity: 1;
  transform: translateX(0) scale(1);
  width: auto;
}

.hero-anim.reveal .letter-i,
.hero-anim.reveal .letter-l,
.hero-anim.reveal .letter-e {
  color: var(--text);
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3vw, 28px);
  color: var(--accent);
  margin-top: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 2.5s;
}

.hero-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 3s;
}

.hero-tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTIONS ─────────────────────────────────────────────── */

.section {
  padding: 80px 0;
}

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

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

.section p {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text);
}

.section p.highlight {
  font-size: 20px;
  text-align: center;
  padding: 20px 0;
}

.section ul {
  list-style: none;
  margin: 20px 0;
}

.section li {
  padding: 10px 0;
  padding-left: 20px;
  position: relative;
  font-size: 16px;
}

.section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.section strong {
  color: var(--accent);
}

/* ── CONTACT FORM ─────────────────────────────────────────── */

.contact-form {
  max-width: 480px;
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.btn-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #d09530;
}

.form-status {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}

.form-status.success { color: #4caf50; }
.form-status.error { color: #e53935; }

.contact-alt {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

.contact-alt a {
  color: var(--accent2);
  text-decoration: none;
}

.contact-alt a:hover {
  text-decoration: underline;
}

/* ── FOOTER ───────────────────────────────────────────────── */

.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 6px;
}

.footer-addr {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-legal a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text);
}
