/* Hero Section Redesign */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Animation titre h1 */
.animated-word {
  position: relative;
  color: #fff;
  display: inline-block;
  background: transparent;
  padding: 0 5px;
  border-radius: 4px;
}

.animated-word::before {
  content: "imprimer";
  animation: wordRotation 6s infinite;
  background: #ffeb3b;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
}

@keyframes wordRotation {
  0%,
  33% {
    content: "imprimer";
    background: #20a7d8;
  }
  34%,
  66% {
    content: "télécharger";
    background: #cd921e;
  }
  67%,
  100% {
    content: "envoyer";
    background: #c10528;
  }
}

/* Animation d'apparition fluide */
.animated-word::before {
  animation: wordRotation 6s infinite, fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0%,
  90%,
  100% {
    opacity: 1;
  }
  95% {
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.hero-title .highlight {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 18px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-teal));
  color: white;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
  color: white;
}

.btn-hero-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.btn-hero-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
}

/* Stats Section */
.stats-section {
  background: white;
  padding: 60px 0;
  border-top: 1px solid #e5e7eb;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-pink));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 26px 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-pink));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: white;
  position: relative;
}

.feature-icon.icon-1 {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-teal));
}
.feature-icon.icon-2 {
  background: linear-gradient(135deg, var(--accent-pink), var(--secondary-color));
}
.feature-icon.icon-3 {
  background: linear-gradient(135deg, var(--accent-teal), var(--primary-color));
}
.feature-icon.icon-4 {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-pink));
}
.feature-icon.icon-5 {
  background: linear-gradient(135deg, var(--accent-pink), var(--primary-color));
}
.feature-icon.icon-6 {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-description {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-feature {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-pink));
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  color: white;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: pattern-move 30s linear infinite;
}

@keyframes pattern-move {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(50px) translateY(50px);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.btn-cta {
  background: white;
  color: var(--primary-color);
  pointer-events: auto !important;
  position: relative !important;
  z-index: 1 !important;
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .cta-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 568px) {
  .cta-section {
    padding: 80px 12px;
  }
}

/* Animation classes */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
