/* ==========================================================================
   RNA Solutions — Page Automatisation IA
   Scoped stylesheet — all rules prefixed with .page-ia-
   ========================================================================== */

.page-ia-root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0b0f2e;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

.page-ia-root section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
}

.page-ia-root,
.page-ia-root div,
.page-ia-root section,
.page-ia-root article,
.page-ia-root ul,
.page-ia-root ol,
.page-ia-root li,
.page-ia-root blockquote,
.page-ia-root footer,
.page-ia-root span,
.page-ia-root a,
.page-ia-root button,
.page-ia-root p,
.page-ia-root h1,
.page-ia-root h2,
.page-ia-root h3 {
  box-sizing: border-box;
}

.page-ia-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Override page-ia-container/page-ia-root when they wrap the entire page
   (Astra applies max-width/padding to #content, #primary, .site-main via
   higher-specificity or ID-based rules — force override here) */
.site-main.page-ia-container,
.page-ia-root.site-main,
#content .page-ia-container,
#primary .page-ia-container,
#content .page-ia-root,
#primary .page-ia-root {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ---------- Reveal / fade animations ---------- */
.page-ia-fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: page-ia-fade-in 0.8s ease forwards;
}
.page-ia-fade-in:nth-of-type(2) { animation-delay: 0.12s; }
.page-ia-fade-in:nth-of-type(3) { animation-delay: 0.24s; }
.page-ia-fade-in:nth-of-type(4) { animation-delay: 0.36s; }

@keyframes page-ia-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

.page-ia-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.page-ia-reveal.page-ia-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.page-ia-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: 2px solid transparent;
}
.page-ia-btn--primary {
  background: linear-gradient(135deg, #0070f3, #ff6b35);
  color: #ffffff;
  box-shadow: 0 12px 24px -10px rgba(0, 112, 243, 0.5);
}
.page-ia-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -10px rgba(0, 112, 243, 0.6);
}
.page-ia-btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.page-ia-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}
.page-ia-btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.page-ia-btn--outline:hover {
  background: #ffffff;
  color: #0b0f2e;
  transform: translateY(-3px);
}
.page-ia-btn--large {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* ---------- Section titles ---------- */
.page-ia-section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
  color: #0b0f2e;
}
.page-ia-section-title--light {
  color: #ffffff;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.page-ia-hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #141a45, #0b0f2e 60%);
  color: #ffffff;
  padding: 140px 0 100px;
  overflow: hidden;
}
.page-ia-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}
.page-ia-hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.page-ia-hero-glow--blue {
  background: #0070f3;
  top: -120px;
  right: -100px;
}
.page-ia-hero-glow--orange {
  background: #ff6b35;
  bottom: -140px;
  left: -100px;
}
.page-ia-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}
.page-ia-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.page-ia-hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 24px;
}
.page-ia-gradient-text {
  color: #4d9bff;
}
.page-ia-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 36px;
}
.page-ia-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ==========================================================================
   METRICS
   ========================================================================== */
.page-ia-metrics {
  background: #0b0f2e;
  padding: 0 0 80px;
}
.page-ia-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transform: translateY(-60px);
}
.page-ia-metric-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 20px 40px -20px rgba(11, 15, 46, 0.25);
}
.page-ia-metric-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: #0070f3;
}
.page-ia-metric-label {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

/* ==========================================================================
   WHY (Problem/Solution)
   ========================================================================== */
.page-ia-why {
  padding: 40px 0 100px;
  background: #ffffff;
}
.page-ia-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.page-ia-why-card {
  background: #f5f6fa;
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-ia-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(11, 15, 46, 0.25);
}
.page-ia-why-icon {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0070f3;
  margin-bottom: 12px;
}
.page-ia-why-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.page-ia-why-card-text {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.page-ia-services {
  background: #0b0f2e;
  padding: 100px 0;
}
.page-ia-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.page-ia-service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  color: #ffffff;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-ia-service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
}
.page-ia-service-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.page-ia-service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.page-ia-service-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ==========================================================================
   USE CASES (chips)
   ========================================================================== */
.page-ia-usecases {
  padding: 100px 0;
  background: #f5f6fa;
}
.page-ia-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-ia-chip {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0b0f2e;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-ia-chip:hover {
  transform: translateY(-3px);
  border-color: #0070f3;
  color: #0070f3;
}

/* ==========================================================================
   METHODE (timeline)
   ========================================================================== */
.page-ia-methode {
  padding: 100px 0;
  background: #ffffff;
}
.page-ia-timeline {
  list-style: none;
  padding: 0;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.page-ia-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27px;
  width: 2px;
  background: #e5e7eb;
}
.page-ia-timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 48px;
  position: relative;
}
.page-ia-timeline-item:last-child {
  padding-bottom: 0;
}
.page-ia-timeline-marker {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0070f3, #ff6b35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}
.page-ia-timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 6px 0 8px;
}
.page-ia-timeline-text {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   TESTIMONIALS (carousel)
   ========================================================================== */
.page-ia-testimonials {
  background: #0b0f2e;
  padding: 100px 0;
  text-align: center;
}
.page-ia-testimonials-intro {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: -24px auto 40px;
}
.page-ia-carousel {
  position: relative;
}
.page-ia-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.page-ia-carousel-track::-webkit-scrollbar {
  display: none;
}
.page-ia-testimonial-card {
  flex: 0 0 100%;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  text-align: left;
}
.page-ia-testimonial-text {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 20px;
}
.page-ia-testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.page-ia-testimonial-name {
  color: #ffffff;
  font-weight: 700;
}
.page-ia-testimonial-role {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}
.page-ia-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.page-ia-carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-ia-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */
.page-ia-faq {
  padding: 100px 0;
  background: #f5f6fa;
}
.page-ia-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-ia-accordion-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}
.page-ia-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #0b0f2e;
  text-align: left;
}
.page-ia-accordion-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #0070f3;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-ia-accordion-trigger[aria-expanded="true"] .page-ia-accordion-icon {
  transform: rotate(45deg);
}
.page-ia-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.page-ia-accordion-panel p {
  padding: 0 24px 20px;
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.page-ia-cta {
  background: linear-gradient(135deg, #0b0f2e, #141a45);
  padding: 100px 0;
  text-align: center;
}
.page-ia-cta-inner {
  max-width: 680px;
}
.page-ia-cta-title {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 16px;
}
.page-ia-cta-text {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 32px;
}
.page-ia-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .page-ia-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-ia-hero {
    padding: 100px 0 80px;
  }
  .page-ia-hero-title {
    font-size: 2.2rem;
  }
  .page-ia-section-title {
    font-size: 1.8rem;
    margin-bottom: 32px;
  }
  .page-ia-cta-title {
    font-size: 1.8rem;
  }
  .page-ia-metrics-grid {
    grid-template-columns: 1fr;
    transform: translateY(-40px);
  }
  .page-ia-why-grid {
    grid-template-columns: 1fr;
  }
  .page-ia-services-grid {
    grid-template-columns: 1fr;
  }
  .page-ia-timeline::before {
    left: 23px;
  }
  .page-ia-timeline-marker {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-ia-hero-title {
    font-size: 2.6rem;
  }
  .page-ia-section-title {
    font-size: 2.2rem;
  }
  .page-ia-cta-title {
    font-size: 2.1rem;
  }
}
