/* ============================================
   Institute For God Work — Feuille de style
   Couleurs inspirées du logo : bleu profond & or
   ============================================ */

:root {
  --primary: #1e4d6b;        /* Bleu profond du globe */
  --primary-dark: #143548;
  --primary-light: #2c6e94;
  --accent: #c9a35b;          /* Or doux */
  --accent-light: #e0c084;
  --accent-dark: #a8842f;
  --bg: #fbf9f4;              /* Crème très clair */
  --bg-alt: #f3ede1;
  --text: #2a2a2a;
  --text-soft: #5a5a5a;
  --white: #ffffff;
  --border: #e8dfc9;
  --shadow: 0 4px 20px rgba(30, 77, 107, 0.08);
  --shadow-strong: 0 10px 40px rgba(30, 77, 107, 0.15);
  --radius: 8px;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  color: var(--primary-dark);
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }

p { margin-bottom: 1em; color: var(--text-soft); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--accent-dark); }

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 56px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--accent-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.nav-menu a {
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
}
.nav-cta:hover {
  background: var(--accent-dark);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background:
    linear-gradient(135deg, rgba(20, 53, 72, 0.85) 0%, rgba(30, 77, 107, 0.75) 100%),
    radial-gradient(circle at 30% 30%, rgba(201, 163, 91, 0.3), transparent 60%);
  background-color: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 100px 20px 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201, 163, 91, 0.15), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.hero img.hero-logo {
  height: 130px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--accent-light);
  font-style: italic;
}

.hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

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

/* ============================================
   PAGE HEADER (pour les pages internes)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto; }

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 { margin-bottom: 10px; }
.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 18px;
}
.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-soft);
}

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

/* Verset biblique */
.verse-block {
  background: var(--white);
  border-left: 5px solid var(--accent);
  padding: 36px 40px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  position: relative;
}
.verse-block::before {
  content: '"';
  font-family: Georgia, serif;
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.5;
}
.verse-block p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-dark);
  line-height: 1.7;
  margin-bottom: 14px;
}
.verse-block .reference {
  display: block;
  text-align: right;
  font-style: normal;
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.95rem;
  font-family: 'Lora', serif;
}

/* Cards / Grid */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}
.card-icon {
  font-size: 2.2rem;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.card h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

/* Type pill (Audio / Podcast / Écrit) */
.type-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.tag.audio { background: #d8e6ee; color: var(--primary-dark); }
.tag.podcast { background: #f1e1c4; color: var(--accent-dark); }
.tag.ecrit { background: #e4dcc7; color: #6b5424; }

/* Resource list */
.resource-item {
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  border-left: 4px solid var(--accent);
}
.resource-item .resource-content { flex: 1; min-width: 240px; }
.resource-item h3 { margin-bottom: 6px; }
.resource-item .resource-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
}
.empty-state strong { color: var(--primary-dark); display: block; margin-bottom: 8px; }

/* ============================================
   FORMS
   ============================================ */
.form-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.tab-btn {
  background: transparent;
  border: 0;
  padding: 14px 22px;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--accent);
}

.form-panel { display: none; }
.form-panel.active { display: block; }

.form-panel h3 {
  margin-bottom: 6px;
}
.form-panel .form-intro {
  margin-bottom: 24px;
  color: var(--text-soft);
}

form { display: grid; gap: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.field .required { color: #b03a2e; }
.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 163, 91, 0.2);
}
.field textarea { resize: vertical; min-height: 100px; }

.checkbox-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 0;
}
.checkbox-group label, .radio-group label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-alt);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--primary-dark);
}
.checkbox-group input, .radio-group input { accent-color: var(--accent-dark); }

.btn-submit {
  background: var(--primary);
  color: var(--white);
  padding: 14px 30px;
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.5px;
  transition: var(--transition);
  justify-self: start;
}
.btn-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

/* Newsletter */
.newsletter-block {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 30px;
  border-radius: var(--radius);
  text-align: center;
}
.newsletter-block h2 { color: var(--white); }
.newsletter-block p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 24px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}
.newsletter-form button {
  background: var(--accent);
  color: var(--primary-dark);
  border: 0;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--accent-light); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #0f2735;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 20px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent-light); }
.footer-brand img { height: 60px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.social-links { display: flex; gap: 12px; margin-top: 14px; }
.social-links a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.05rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--accent); color: var(--primary-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.footer-bottom .verse-mini {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--accent-light);
  margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-menu a.active::after { display: none; }
  .nav-cta { margin-top: 10px; text-align: center; }

  section { padding: 60px 0; }
  .hero { padding: 70px 20px 80px; }
  .verse-block { padding: 30px 24px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: 0.65rem; }
  .brand img { height: 46px; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: fadeUp 0.8s ease forwards; }
.hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
