/* ==========================================================================
   FEEDER — CONTENT SECTIONS
   ========================================================================== */

/* ---------- Solutions ---------- */
.solution-card {
  background: var(--bg-700);
  border: 1px solid var(--border-subtle);
}

.solution-card:hover {
  border-color: var(--border-strong);
}

.solution-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.solution-card .card-tags span {
  font-size: var(--fs-2xs);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

/* ---------- Context : horizontal scroll story ---------- */
.context-story {
  position: relative;
  background: var(--bg-950);
}

.context-track {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
  padding: var(--sp-11) var(--sp-6);
  max-width: 1200px;
  margin-inline: auto;
}

.context-panel--intro {
  max-width: 680px;
}

.context-panel--intro h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}

.context-lead {
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

.context-panel--stat {
  padding: var(--sp-8);
  border-radius: var(--radius-xl);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.context-stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.context-stat-label {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
}

@media (min-width: 901px) {
  html.has-motion .context-story {
    height: 100svh;
  }
  html.has-motion .context-pin {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: clip;
    perspective: 1400px;
  }
  html.has-motion .context-track {
    flex-direction: row;
    align-items: stretch;
    gap: clamp(2rem, 4vw, 4.5rem);
    padding-inline: 14vw;
    width: max-content;
    max-width: none;
    will-change: transform;
  }
  html.has-motion .context-panel {
    width: min(560px, 58vw);
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-style: preserve-3d;
  }
  html.has-motion .context-panel--stat {
    min-height: 340px;
  }
}

/* ---------- Constat : word reveal + sequential cards ---------- */
.constat-stage {
  max-width: 920px;
  margin-inline: auto;
  padding: var(--sp-11) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.constat-title {
  color: var(--text-primary);
}

.constat-body {
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-xl));
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 780px;
}

.constat-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.constat-card {
  padding: var(--sp-7);
  border-radius: var(--radius-xl);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}

.constat-card-index {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-2);
}

.constat-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.constat-card p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.constat-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

.constat-progress-label {
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.constat-progress-track {
  flex: 1;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.constat-progress-fill {
  height: 100%;
  width: 100%;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
}

html[dir="rtl"] .constat-progress-fill {
  transform-origin: right;
}

.constat-progress-pct {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: end;
}

@media (min-width: 901px) {
  html.has-motion .constat {
    height: 100svh;
  }
  html.has-motion .constat-pin {
    height: 100%;
    display: grid;
    place-items: center;
    overflow: clip;
  }
  html.has-motion .constat-stage {
    width: min(920px, 100%);
    position: relative;
  }
  html.has-motion .constat-cards {
    position: relative;
    height: 270px;
    display: block;
  }
  html.has-motion .constat-card {
    position: absolute;
    inset-inline: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
  }
}

/* ---------- Notre rôle : 3D timeline ---------- */
.role-stage {
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--sp-11) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-9);
}

.role-text h2 {
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}

.role-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  max-width: 520px;
}

.role-timeline {
  position: relative;
}

.role-line {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

html[dir="rtl"] .role-line {
  transform: translateX(50%);
}

.role-line-fill {
  height: 100%;
  width: 100%;
  background: var(--accent-gradient);
  transform: scaleY(0);
  transform-origin: top;
}

.role-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}

.role-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  gap: var(--sp-5);
}

.role-step-dot {
  grid-column: 2;
  justify-self: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18), 0 0 18px rgba(168, 85, 247, 0.45);
}

.role-step-card {
  grid-column: 1;
  padding: var(--sp-6);
  border-radius: var(--radius-xl);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.role-step:nth-child(even) .role-step-card {
  grid-column: 3;
}

@media (max-width: 900px) {
  .role-step {
    grid-template-columns: 28px 1fr;
  }
  .role-step-dot {
    grid-column: 1;
  }
  .role-step-card,
  .role-step:nth-child(even) .role-step-card {
    grid-column: 2;
  }
  .role-line {
    inset-inline-start: 13px;
    transform: none;
  }
}

.role-step-index {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-2);
}

.role-step-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.role-step-card p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

@media (min-width: 901px) {
  html.has-motion .role {
    height: 100svh;
  }
  html.has-motion .role-pin {
    height: 100%;
    display: grid;
    place-items: center;
    overflow: clip;
    perspective: 1600px;
  }
  html.has-motion .role-stage {
    width: min(1280px, 100%);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--sp-9);
    align-items: center;
  }
  html.has-motion .role-timeline {
    transform: rotateY(-9deg) rotateX(3deg);
    transform-style: preserve-3d;
    will-change: transform;
  }
  html[dir="rtl"].has-motion .role-timeline {
    transform: rotateY(9deg) rotateX(3deg);
  }
  html.has-motion .role-step {
    will-change: transform, opacity;
  }
}

/* ---------- Partner showcase ---------- */
.partners-showcase {
  padding-block: var(--sp-11) 0;
}

.brand-stories {
  display: flex;
  flex-direction: column;
}

.brand-story {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--sp-11);
  position: relative;
  overflow: clip;
}

.brand-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 15% 20%, rgba(168, 85, 247, 0.07), transparent 70%);
  pointer-events: none;
}

.brand-story:nth-child(even)::before {
  background: radial-gradient(ellipse 60% 50% at 85% 80%, rgba(124, 58, 237, 0.07), transparent 70%);
}

.brand-story-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--sp-9);
  align-items: start;
}

.brand-story:nth-child(even) .brand-story-inner {
  direction: rtl;
}

.brand-story:nth-child(even) .brand-story-inner > * {
  direction: ltr;
}

.brand-story-visual {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.brand-index {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.5;
  margin-bottom: var(--sp-3);
}

.brand-name {
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-3xl));
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.brand-domain {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.brand-tagline {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-xl));
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  line-height: var(--lh-snug);
}

.brand-description {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
  max-width: 620px;
}

.brand-points {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.brand-points li {
  position: relative;
  padding-inline-start: var(--sp-5);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.brand-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: var(--accent-cyan);
}

html[dir="rtl"] .brand-points li {
  padding-inline-start: 0;
  padding-inline-end: var(--sp-5);
}

html[dir="rtl"] .brand-points li::before {
  left: auto;
  right: 0;
}

.brand-complement {
  padding: var(--sp-4) var(--sp-5);
  border-inline-start: 2px solid var(--accent-cyan);
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-style: italic;
  max-width: 620px;
}

@media (max-width: 900px) {
  .brand-story-inner,
  .brand-story:nth-child(even) .brand-story-inner {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .brand-story-visual {
    position: static;
  }
}

/* ---------- Why Feeder ---------- */
.why-grid {
  align-items: center;
}

.why-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.14), rgba(124, 58, 237, 0.08));
}

.why-visual .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 90%);
}

.why-visual .core-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-cyan-strong), var(--accent-blue) 55%, var(--accent-violet) 100%);
  box-shadow: 0 0 90px rgba(168, 85, 247, 0.35);
}

.why-visual .orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.why-item {
  display: flex;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
}

.why-item:first-child {
  border-top: none;
  padding-top: 0;
}

.why-item-num {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--accent-cyan);
  min-width: 32px;
}

.why-item h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.why-item p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

/* ---------- Process ---------- */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.process-track::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}

html[dir="rtl"] .process-track::before {
  background: linear-gradient(270deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.process-step-index {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--bg-900);
  border: 1px solid var(--border-strong);
  color: var(--accent-cyan-strong);
}

.process-step h3 {
  font-size: var(--fs-lg);
}

.process-step p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

@media (max-width: 900px) {
  .process-track {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .process-track::before {
    inset-inline: 27px;
    top: 0;
    bottom: 0;
    left: 27px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
  }
}

/* ---------- Stats band ---------- */
.stats-band {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-1);
}

.stats-band .grid {
  padding-block: var(--sp-9);
}

/* ---------- Values ---------- */
.value-card {
  background: var(--bg-700);
  border: 1px solid var(--border-subtle);
  text-align: start;
}

/* ---------- Partners ---------- */
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--bg-700);
  border: 1px solid var(--border-subtle);
  min-height: 168px;
  justify-content: center;
}

.partner-card .icon-box {
  background: var(--surface-2);
}

.partner-card h3 {
  font-size: var(--fs-md);
  color: var(--text-primary);
}

.partner-card p {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.partner-card.is-cta {
  border-color: var(--accent-cyan);
  background: rgba(168, 85, 247, 0.05);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--sp-11) var(--sp-8);
  text-align: center;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05)), var(--bg-900);
  border: 1px solid var(--border-subtle);
}

.cta-banner h2 {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  max-width: 720px;
  margin-inline: auto var(--sp-5);
}

.cta-banner p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-secondary);
  margin-bottom: var(--sp-7);
}

.cta-banner .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-700);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-primary);
  text-align: start;
}

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  transition: transform var(--dur-fast) ease;
}

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

.faq-answer {
  height: 0;
  overflow: hidden;
}

.faq-answer-inner {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
