/* Design System - Rouler Landing Page */

:root {
  --accent-color: #c6ef1c; /* Jaune/vert fluo premium */
  --accent-hover: #b8de15;
  --text-primary: #000000;
  --text-secondary: #6e6e73; /* Couleur de texte secondaire style Apple */
  --bg-primary: #ffffff;
  --bg-menu: #f5f5f7;
  --bg-menu-hover: #e8e8ed;
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Réinitialisation de base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container de l'application - simule un écran mobile centré sur desktop */
.app-container {
  width: 100%;
  max-width: 430px; /* Largeur type iPhone 14/15 Pro */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 0 24px;
  background-color: var(--bg-primary);
  position: relative;
  overflow-x: hidden;
}

/* Screen Reader Only (Hidden visually for SEO and Accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header & Navigation */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 40px; /* Remonté pour rapprocher le trait */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.menu-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--bg-menu);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s ease;
}

.menu-btn:hover {
  background-color: var(--bg-menu-hover);
  transform: scale(1.04);
}

.menu-btn:active {
  transform: scale(0.96);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding-top: 100px; /* Descendu beaucoup plus bas */
}

.hero-title {
  font-size: 40px;
  font-weight: 600; /* Poids moyen/semi-bold plus épuré, identique à l'image */
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-description {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 auto 36px auto;
  max-width: 95%;
  letter-spacing: -0.01em;
}

/* CTA Buttons */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn-icon {
  margin-right: 8px;
  flex-shrink: 0;
}

.btn-icon-right {
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Bouton Principal - Fluo */
.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-primary);
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198, 239, 28, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Bouton Secondaire - Blanc soft */
.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: #f9f9fb;
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover .btn-icon-right {
  transform: translateX(4px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Image principale avec espacement */
/* Image principale en bas */
.image-wrapper {
  margin-top: auto; /* Pousse l'image tout en bas du viewport */
  width: calc(100% + 48px); /* Dépasse des paddings gauche/droite */
  margin-left: -24px;
  margin-right: -24px;
  position: relative;
  display: block;
  pointer-events: none; /* Laisse l'image purement décorative */
}



.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Menu latéral (Drawer) & Overlay effet verre flou */
.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15); /* Voile sombre très léger */
  backdrop-filter: blur(8px); /* Effet flouté de l'arrière-plan */
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%; /* Largeur à 3/4 */
  height: 100%;
  background: rgba(255, 255, 255, 0.82); /* Blanc semi-transparent */
  backdrop-filter: blur(25px) saturate(180%); /* Effet liquide verre givré + saturation */
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  z-index: 1000;
  transform: translateX(100%); /* Masqué à droite par défaut */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.03);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.side-menu.open {
  transform: translateX(0); /* Glisse vers la gauche */
}

.menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 60px;
}

.close-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.04);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s ease;
}

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.08);
  transform: scale(1.04);
}

.close-btn:active {
  transform: scale(0.96);
}

.close-btn svg path {
  transition: stroke 0.2s ease;
}

.close-btn:hover svg path {
  stroke: #ff3b30; /* Changement de couleur au survol de la croix */
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.menu-nav-link {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
  display: inline-block;
}

.menu-nav-link:hover {
  transform: translateX(6px);
  opacity: 0.7;
}

.menu-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  background-color: var(--accent-color);
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.menu-cta-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.menu-contact {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Smooth Scroll & Reset --- */
html {
  scroll-behavior: smooth;
}

/* --- Hero Viewport Layout --- */
.hero-viewport {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 70px); /* Ajusté pour remonter légèrement l'image */
  width: 100%;
}

/* --- Global Section Styles --- */
section {
  padding: 56px 0 28px 0;
  border-top: 1px solid var(--border-light);
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 32px;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.highlight-text {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 5px; /* Remontée sous le texte */
  left: 0;
  width: 100%;
  height: 8px; /* Un peu plus épaisse et visible */
  background-color: var(--accent-color);
  z-index: -1;
  border-radius: 4px;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered transition delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Features Section (La méthode Rouler) --- */
.details-section {
  border-top: none; /* First section after hero image doesn't need top border */
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.feature-card {
  background-color: var(--bg-menu);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Steps Section (Parcours) --- */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 8px;
  margin-top: 8px;
}

/* Line connecting steps */
.steps-list::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 23px;
  bottom: 12px;
  width: 2px;
  background-color: var(--border-light);
  z-index: 1;
}

.step-item {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Testimonials Section (Marquee) --- */
.testimonials-section {
  overflow: hidden;
}

.marquee-container {
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
  overflow: hidden;
  position: relative;
  display: flex;
  padding: 16px 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* Effet de floutage progressif (sans bande blanche) */
.marquee-blur {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
}

.marquee-blur-left {
  left: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to right, black 20%, transparent);
  -webkit-mask-image: linear-gradient(to right, black 20%, transparent);
}

.marquee-blur-right {
  right: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to left, black 20%, transparent);
  -webkit-mask-image: linear-gradient(to left, black 20%, transparent);
}

.marquee-content {
  display: flex;
  gap: 16px;
  animation: marquee 25s linear infinite;
  padding-left: 24px;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: 280px;
  flex-shrink: 0;
  background-color: var(--bg-menu);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}

.stars {
  color: #ffb800; /* Beautiful orange-yellow stars */
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.comment {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 8px)); }
}

/* --- Pricing Section --- */
.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.pricing-card.premium {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid var(--accent-color);
  box-shadow: 0 12px 32px rgba(198, 239, 28, 0.15);
}

.pricing-card .badge {
  position: absolute;
  top: 16px;
  right: 24px;
  background-color: var(--accent-color);
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-card.premium .price span {
  color: #a1a1a6;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.card-features li {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.card-features li::before {
  content: "✓";
  color: var(--accent-color);
  font-weight: 800;
}

.pricing-card:not(.premium) .card-features li::before {
  color: #34c759; /* Green checkmark on white card */
}

.card-btn {
  width: 100%;
  margin-top: auto;
}

/* --- FAQ Section --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.faq-item {
  background-color: var(--bg-menu);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.is-open {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  padding: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-primary);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Horizontal line */
.faq-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

/* Vertical line */
.faq-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* Accordéon fluide avec transition Grid Height (0fr -> 1fr) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-content {
  overflow: hidden;
  padding: 0 20px 20px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Footer & Contact Section --- */
.footer-section {
  text-align: center;
  padding-bottom: 40px;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background-color: var(--bg-menu);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.contact-method:hover {
  background-color: var(--bg-menu-hover);
  transform: scale(1.02);
}

.footer-bottom {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 24px;
}

/* Responsive pour mobile - s'assure du plein écran */
@media (max-width: 480px) {
  .app-container {
    max-width: 100%;
    padding: 24px 20px 0 20px;
  }
  
  .hero-viewport {
    min-height: calc(100vh - 55px); /* Ajusté pour remonter légèrement l'image */
  }
  
  .header {
    margin-bottom: 16px; /* Remonté pour rapprocher la barre */
  }

  .hero-section {
    padding-top: 80px; /* Descendu beaucoup plus bas */
  }

  .hero-title {
    font-size: 38px;
    margin-bottom: 16px; /* Rapprochement du titre */
  }
  
  .hero-description {
    font-size: 15px;
    margin-bottom: 24px; /* Rapprochement de la description */
  }

  .cta-container {
    margin-bottom: 24px; /* Rapprochement des boutons */
  }

  .image-wrapper {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    height: auto;
    margin-top: auto; /* Force l'image en bas sur mobile */
    margin-bottom: 0;
  }
  
  .marquee-container {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }

  .marquee-blur {
    width: 50px;
  }
}


