/* ==========================================================================
   Generus V1 Clone - Faithful reproduction
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-cream: #FBF5EB;
  --navy: #1E293B;
  --gold: #E5A833;
  --text-dark: #1E293B;
  --text-body: #475569;
  --white: #FFFFFF;
  --card-yellow: #FFF3CD;
  --card-pink: #FFD6C0;
  --card-blue: #D2F1F0;
  --card-lavender: #E8DEF8;
  --card-white: #FFFFFF;
  --radius-pill: 999px;
  --radius-card: 32px;
  --radius-large: 48px;
  --font: 'Manrope', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--navy);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* ---------- Header / Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-cream);
}

.navbar .logo img {
  height: 48px;
  width: auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
}

.nav-pill a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s;
}

.nav-pill a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

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

/* Mobile menu */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-cream);
}

.mobile-header .logo img {
  height: 42px;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger img {
  width: 28px;
  height: 28px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-cream);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.mobile-nav .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-dark);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 80px 40px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero .subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero .sparky-img {
  width: 180px;
  height: auto;
  margin: 0 auto 32px;
  border-radius: 24px;
}

.hero .btn-primary {
  margin-top: 16px;
}

/* ---------- Section Titles ---------- */
.section-title {
  font-size: 52px;
  font-weight: 800;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  color: var(--text-body);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ---------- Pourquoi Generus ---------- */
.pourquoi {
  padding: 80px 40px;
  position: relative;
}

.pourquoi .sparkles {
  position: absolute;
  font-size: 24px;
  color: var(--text-dark);
  pointer-events: none;
}

.value-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.value-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px;
  border-radius: var(--radius-card);
  min-height: 200px;
  position: sticky;
  top: 140px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  will-change: transform;
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transform-style: preserve-3d;
}

.value-card:nth-child(1) { background-color: var(--card-yellow); }
.value-card:nth-child(2) { background-color: var(--card-pink); }
.value-card:nth-child(3) { background-color: var(--card-blue); }
.value-card:nth-child(4) { background-color: var(--card-lavender); }
.value-card:nth-child(1) { z-index: 1; }
.value-card:nth-child(2) { z-index: 2; }
.value-card:nth-child(3) { z-index: 3; }
.value-card:nth-child(4) { z-index: 4; }

.value-card .card-content {
  flex: 1;
}

.value-card .card-number {
  font-size: 48px;
  font-weight: 200;
  color: var(--text-dark);
  opacity: 0.5;
  margin-bottom: 16px;
}

.value-card .card-question {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.value-card .card-answer {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

.value-card .card-img {
  width: 120px;
  height: auto;
  margin-left: 40px;
  flex-shrink: 0;
}

/* ---------- Comment Ca Marche ---------- */
.comment-section {
  padding: 80px 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.step-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: left;
}

.step-card .step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step-card .step-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 12px;
}

.step-card .step-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.5;
}

/* ---------- Profil Donateur ---------- */
.profil-section {
  padding: 80px 40px;
}

.profil-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-large);
  padding: 60px;
}

.profil-text {
  flex: 1;
}

.profil-text .section-title {
  text-align: left;
  font-size: 44px;
  margin-bottom: 16px;
}

.profil-text .section-subtitle {
  text-align: left;
  margin-bottom: 32px;
}

.profil-text .btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.profil-image {
  flex: 0 0 280px;
}

.profil-image img {
  width: 100%;
  border-radius: 24px;
}

/* ---------- Temoignages ---------- */
.temoignages-section {
  padding: 80px 40px;
}

.temoignages-slider {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

.temoignage-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  min-width: 320px;
  flex: 1;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.temoignage-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.temoignage-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.temoignage-card .quote {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.temoignage-card .author {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
}

/* ---------- CTA Banner ---------- */
.cta-section {
  padding: 80px 40px;
  text-align: center;
}

.cta-section .section-title {
  margin-bottom: 16px;
}

.cta-section .section-subtitle {
  margin-bottom: 32px;
}

/* ---------- Sparky Narrative Slider ---------- */
.sparky-section {
  padding: 60px 40px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.narrative-slider {
  position: relative;
  overflow: hidden;
}

.narrative-slides {
  display: flex;
  transition: transform 0.4s ease;
}

.narrative-slide {
  min-width: 100%;
  text-align: center;
  padding: 40px;
}

.narrative-slide p {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.narrative-slide p.quote-text {
  font-style: italic;
  font-weight: 400;
  color: var(--text-body);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dot.active {
  background: var(--navy);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer .logo img {
  height: 42px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.footer-social a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--text-dark);
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-body);
}

/* Decorative sparkles */
.sparkle {
  position: absolute;
  pointer-events: none;
  color: var(--text-dark);
  font-size: 20px;
  will-change: transform;
}

.sparkle-container {
  position: relative;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profil-content {
    flex-direction: column;
    text-align: center;
  }

  .profil-text .section-title,
  .profil-text .section-subtitle {
    text-align: center;
  }

  .profil-text .btn-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero .subtitle {
    font-size: 17px;
  }

  .section-title {
    font-size: 34px;
  }

  .section-subtitle {
    font-size: 17px;
  }

  .pourquoi,
  .comment-section,
  .profil-section,
  .temoignages-section,
  .cta-section,
  .sparky-section {
    padding: 40px 20px;
  }

  .value-card {
    flex-direction: column;
    padding: 32px;
    text-align: center;
    position: sticky;
    top: 92px;
  }

  .value-card .card-img {
    margin: 24px auto 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .profil-content {
    padding: 32px;
  }

  .profil-image {
    flex: 0 0 auto;
    max-width: 250px;
  }

  .temoignages-slider {
    flex-direction: column;
  }

  .temoignage-card {
    min-width: unset;
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .narrative-slide p {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
  }

  .section-title {
    font-size: 28px;
  }

  .value-card .card-answer {
    font-size: 22px;
  }
}
