/* ==================================================
   HOME CSS — DÉVELOPPÉ, ANIMÉ
   ================================================== */

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services {
  padding: 6rem 0;
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  padding: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card--featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(37, 99, 235, 0.03) 100%);
}

.service-card__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card__number {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  opacity: 0.5;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-card__list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.service-card__arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 50%;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover .service-card__arrow {
  background: var(--primary);
  color: #fff;
  transform: translateX(3px);
}

/* ===== TRUST / LOGOS ===== */
.trust {
  padding: 3rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.trust__label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.trust__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.trust__logo:hover {
  opacity: 1;
  color: var(--text);
}

.trust__logo i {
  font-size: 1.5rem;
}

/* ===== BENEFITS ===== */
.benefits {
  padding: 6rem 0;
  background: var(--surface);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit {
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.benefit:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.benefit__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  color: var(--primary);
}

.benefit h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.benefit p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== TECH STACK ===== */
.tech {
  padding: 6rem 0;
  background: var(--surface);
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.tech__category {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.tech__category:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.tech__category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.tech__category-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.tech__category-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.tech__list {
  list-style: none;
}

.tech__list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.tech__list li:last-child {
  border-bottom: none;
}

.tech__list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.tech__list span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== PROCESS ===== */
.process {
  padding: 6rem 0;
  background: var(--bg);
}

.process__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
  padding: 0 1rem;
  position: relative;
}

.process__step-icon {
  position: absolute;
  top: -10px;
  right: calc(50% - 40px);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--primary);
  z-index: 1;
}

.process__step-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.process__step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process__step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.process__connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin-top: 30px;
  flex-shrink: 0;
}

/* ===== CTA ===== */
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cta__content .section-label {
  text-align: left;
}

.cta__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta__content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq {
  padding: 6rem 0;
  background: var(--bg);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate]:nth-child(2) { transition-delay: 0.1s; }
[data-animate]:nth-child(3) { transition-delay: 0.2s; }
[data-animate]:nth-child(4) { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 5rem 0 4rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .hero__scroll {
    display: none;
  }

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

  .trust__logos {
    gap: 1.5rem;
  }

  .trust__logo {
    flex-direction: column;
    gap: 0.25rem;
  }

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

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

  .cta__inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .cta__content .section-label,
  .cta__content h2,
  .cta__content p {
    text-align: center;
  }

  .cta__actions {
    width: 100%;
  }

  .cta__actions .btn {
    width: 100%;
  }

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

  .process__connector {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .process__step {
    max-width: 100%;
  }
}
