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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  color: var(--primary-color);
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light-gray);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #8b5e3c);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(122, 70, 31, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5d3516, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 70, 31, 0.4);
}

/* Presentation Section */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.problem,
.solution {
  padding: var(--spacing-lg);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem:hover,
.solution:hover {
  transform: translateY(-5px);
}

.problem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #d32f2f;
}

.solution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--secondary-color);
}

.problem h3 {
  color: #d32f2f;
}
.solution h3 {
  color: var(--secondary-color);
}
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-md) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: block;
}

.logo-img {
  width: 150px;
  height: 40px;
  background-color: var(--primary-color);
  -webkit-mask: url("../assets/images/icon_title.png") no-repeat center center /
    contain;
  mask: url("../assets/images/icon_title.png") no-repeat center center / contain;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-lg);
}

.main-nav a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-color);
}

.main-nav a:hover {
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: 0.3s;
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(80, 100, 35, 0.1) 0%,
    rgba(122, 70, 31, 0.1) 100%
  );
  position: relative;
  padding-bottom: 60px; /* Space for scroll indicator */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  opacity: 0.8;
}

.arrow {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Presentation Section */

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background-color: transparent;
  perspective: 1000px; /* Enable 3D perspective */
  height: 200px; /* Fix height for flip consistency */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.feature-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-back {
  background-color: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.feature-card h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.qa-content .question {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-heading);
}

.qa-content .answer {
  font-style: italic;
  opacity: 0.9;
}

/* Pricing Section */
.pricing-card {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 10px 30px rgba(80, 100, 35, 0.1);
}

.price-tag {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  font-family: var(--font-family-heading);
  margin: var(--spacing-md) 0;
}

.pricing-card .note {
  font-size: 0.9rem;
  color: #666;
  margin-top: var(--spacing-md);
  font-style: italic;
}

/* Members Section */
.member-profile {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  text-align: left;
}

.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--secondary-color);
  flex-shrink: 0;
}

.member-profile .status {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

@media (max-width: 768px) {
  .member-profile {
    flex-direction: column;
    text-align: center;
  }
}

/* Contact Section */
.contact-email {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: var(--spacing-md);
  border-bottom: 2px solid transparent;
}

.contact-email:hover {
  border-bottom-color: var(--primary-color);
}

#contact {
  text-align: center;
}

/* Footer */
.main-footer {
  background-color: #2c1a0e; /* Darker brown */
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.footer-links {
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 40px;
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
  }

  .problem-solution {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* Roadmap Section */
.roadmap-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

/* La ligne verticale centrale */
.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(80, 100, 35, 0.2); /* Couleur primaire légère */
  left: 20px; /* Aligné à gauche sur mobile */
}

@media (min-width: 768px) {
  .roadmap-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.roadmap-item {
  position: relative;
  margin-bottom: 40px;
  width: 100%;
}

/* Les marqueurs (points) sur la ligne */
.roadmap-marker {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary-color);
  z-index: 2;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .roadmap-marker {
    left: 50%;
  }
}

/* États des marqueurs */
.roadmap-item.completed .roadmap-marker {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Style pour la version ACTUELLE (Charlie) - Version Subtile */
.roadmap-item.current .roadmap-content {
  background-color: var(--white);
  /* Bordure latérale épaisse pour marquer l'importance */
  border-left: 5px solid var(--secondary-color);
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

/* Sur desktop, on alterne la bordure si c'est à droite */
@media (min-width: 768px) {
  .roadmap-item.current:nth-child(odd) .roadmap-content {
    border-left: none;
    border-right: 5px solid var(--secondary-color);
  }
}

/* On remet les textes en couleurs standards mais on accentue le titre */
.roadmap-item.current .version-tag {
  color: var(--secondary-color);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.roadmap-item.current .roadmap-content h3 {
  color: var(--primary-color);
  font-weight: 800;
}

/* Le badge "Actuel" devient plus discret */
.status-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  background-color: rgba(80, 100, 35, 0.1); /* Vert très pâle */
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Animation du marqueur (on garde l'effet d'appel visuel discret) */
.roadmap-item.current .roadmap-marker {
  background: var(--secondary-color);
  border-color: var(--white);
  box-shadow: 0 0 0 4px rgba(80, 100, 35, 0.2);
  animation: pulse-soft 2.5s infinite;
}

@keyframes pulse-soft {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

/* Les versions passées restent légèrement en retrait */
.roadmap-item.completed {
  filter: grayscale(0.5);
  opacity: 0.8;
}

/* Contenu des cartes */
.roadmap-content {
  position: relative;
  width: calc(100% - 60px);
  margin-left: 60px;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .roadmap-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
  }

  .roadmap-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
  }

  .roadmap-content {
    width: 85%;
    margin-left: 0;
  }

  .roadmap-item:nth-child(even) .roadmap-content {
    margin-left: 40px;
  }

  .roadmap-item:nth-child(odd) .roadmap-content {
    margin-right: 40px;
    text-align: right;
  }
}

.version-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.roadmap-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.roadmap-content ul {
  list-style: none;
}

@media (min-width: 768px) {
  .roadmap-item:nth-child(odd) ul {
    direction: rtl; /* Aligne les puces à droite pour les cartes de gauche */
  }
}

.roadmap-content li {
  font-size: 0.95rem;
  margin-bottom: 5px;
  opacity: 0.8;
}

.roadmap-content li::before {
  content: "•";
  color: var(--secondary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
}

/* Style spécifique pour la section "À venir" */
.roadmap-item.future .roadmap-content {
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--primary-color);
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: var(--spacing-lg);
  text-align: left;
}

.hero-section {
  padding: 120px 0 80px;
  min-height: 90vh;
}

/* Texte Reworké */
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(80, 100, 35, 0.1);
  color: var(--secondary-color);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: var(--spacing-md);
}

.highlight {
  color: var(--primary-color);
  position: relative;
}

.hero-subtitle {
  margin-left: 0;
  max-width: 600px;
  font-size: 1.2rem;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

/* Phone Mockup Placeholder */
.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: min(320px, 100%);
  aspect-ratio: 9 / 16;
  background: #111;
  border-radius: 34px;
  padding: 8px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f9f9f9;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-screenshot {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Optionnel : Supprime les anciens styles du placeholder pour nettoyer ton fichier */
.app-placeholder,
.app-header,
.app-card,
.app-fab {
  display: none;
}

.hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(80, 100, 35, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    order: 1;
  }
  .hero-subtitle {
    margin: 0 auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-image-container {
    order: 2;
    margin-top: var(--spacing-xl);
  }
  .phone-mockup {
    width: min(320px, 100%);
  }
}
