/* ==========================================================================
   IziChurch — feuille de style du site vitrine
   Charte de marque appliquée : indigo (confiance/techno), corail
   (chaleur/proximité), bleu nuit (sérieux/lisibilité), typographie arrondie.
   Toutes les couleurs sont des variables CSS (voir :root ci-dessous) : pour
   ajuster la charte plus tard, il suffit de modifier les valeurs ici.
   ========================================================================== */

:root {
  /* Charte de marque IziChurch */
  --primary: #4338CA;        /* indigo — confiance et technologie */
  --primary-mid: #372FAE;    /* indigo, un ton plus soutenu (survol) */
  --primary-dark: #172033;   /* bleu nuit — sérieux et lisibilité */
  --primary-tint: #EEEDFB;   /* indigo très clair, pour fonds discrets */
  --accent: #F97066;         /* corail — chaleur et proximité */
  --accent-dark: #DC4F42;    /* corail soutenu, texte lisible sur fond clair */
  --accent-tint: #FDEBE9;    /* corail très clair, pour fonds discrets */
  --bg: #ffffff;
  --bg-alt: #FBF7F2;         /* crème chaude, même famille que le logo */
  --text: #172033;
  --muted: #5b6478;
  --border: #EAE3D7;
  --white: #ffffff;
  --success: #1f9d55;

  --font-body: "Nunito", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Nunito", -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px -14px rgba(23, 32, 51, 0.20);
  --shadow-sm: 0 6px 18px -8px rgba(23, 32, 51, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 780px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 800; }

p { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-mid); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-tint); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.logo-img { height: 30px; width: auto; }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0.8;
}
.main-nav a:hover { opacity: 1; color: var(--primary); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(circle at 85% -10%, rgba(249,112,102,0.16), transparent 55%),
    radial-gradient(circle at 0% 0%, rgba(67,56,202,0.10), transparent 45%);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--accent-tint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { margin-bottom: 22px; color: var(--primary-dark); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 0.86rem; color: var(--muted); opacity: 0.85; }

/* ---------- Bandeau de confiance ---------- */
.trust-strip {
  background: var(--primary-dark);
  padding: 30px 0;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 4px;
}
.trust-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- Sections génériques ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.section-lead {
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 48px;
}

/* ---------- Pourquoi IziChurch ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.why-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 16px;
  margin-bottom: 16px;
  background: var(--primary-tint);
}
.why-card:nth-child(even) .why-icon { background: var(--accent-tint); }
.why-card h3 { font-size: 1.05rem; }
.why-card p { font-size: 0.93rem; }

/* ---------- Fonctionnalités ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 16px;
  margin-bottom: 16px;
  background: var(--accent-tint);
}
.feature-card:nth-child(even) .feature-icon { background: var(--primary-tint); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.93rem; }

/* ---------- Tarifs ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}
.price-card-outline { background: var(--bg-alt); }
.price-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-badge-alt { background: #E7F7EE; color: #0F6B37; }
.price-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.price { margin-bottom: 12px; }
.price .amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--primary-dark);
  font-weight: 800;
}
.price .period { font-size: 0.85rem; color: var(--muted); }
.price-desc { font-size: 0.88rem; margin-bottom: 20px; min-height: 60px; }
.price-features { margin-bottom: 26px; flex: 1; }
.price-features li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}
.pricing-footnote {
  text-align: center;
  margin-top: 36px;
  font-size: 0.9rem;
}
.pricing-footnote a { color: var(--primary); font-weight: 800; text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-answer p { padding: 0 4px 22px; font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 320px; }

/* ---------- CTA final ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 90px 0;
  text-align: center;
}
.final-cta-inner { max-width: 620px; margin: 0 auto; }
.final-cta h2 { color: var(--white); margin-bottom: 14px; }
.final-cta p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; }
.final-cta .btn-primary { background: var(--accent); }
.final-cta .btn-primary:hover { background: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); padding-top: 64px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand .logo-img { height: 26px; margin-bottom: 4px; }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; max-width: 260px; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary-dark); margin-bottom: 14px; font-weight: 800; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .why-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card-featured { transform: none; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
}

@media (max-width: 680px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: 260px;
    left: 24px;
  }
  .why-grid, .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}
