/* Oya — slider de pitch (/presentation/). Source : prestentation/oya/oya.css ; photos = photo-charte-0X.jpg du site. Tokens repris de oya-charte.css. */
:root {
  --sapin: #22685C;
  --sapin-deep: #1A5046;
  --sapin-soft: #3F886C;
  --lime: #ABCC40;
  --orange: #F6A20E;
  --ink: #2B3A47;
  --ink-soft: #5B6B78;
  --paper: #F6F4EF;
  --line: #E5E2DA;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--sapin-deep);
  font-family: var(--font);
  color: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Scène 16:9 qui tient toujours dans l'écran ; les tailles suivent sa largeur (cqw). */
.stage {
  position: relative;
  width: min(100vw, 177.78vh);
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  background: var(--paper);
  overflow: hidden;
}
.stage .carousel, .stage .carousel-inner, .stage .carousel-item { height: 100%; }

.sl {
  position: relative;
  height: 100%;
  padding: 5cqw 6cqw 6.5cqw;
  display: flex;
  flex-direction: column;
}
.sl h2 {
  font-size: 3.4cqw;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 3cqw;
  color: var(--sapin-deep);
}
.points { list-style: none; padding: 0; margin: 0; }
.points li {
  position: relative;
  padding-left: 1.6cqw;
  font-size: 1.45cqw;
  line-height: 1.5;
  margin-bottom: .55cqw;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0; top: .72cqw;
  width: .55cqw; height: .55cqw;
  border-radius: 50%;
  background: var(--lime);
}

/* ---------- 1. Couverture ---------- */
.sl--cover {
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(26,80,70,.94) 0%, rgba(26,80,70,.72) 45%, rgba(26,80,70,0) 75%),
    url("../img/photo-charte-01.jpg") center / cover;
}
.cover-title { margin: 0 0 3cqw; }
.cover-title img { width: 30cqw; display: block; }
.sl--cover .points li { font-size: 1.7cqw; color: #fff; }
.sl--cover .signature { margin-top: 2.4cqw; font-size: 1.2cqw; color: rgba(255,255,255,.75); }

/* ---------- 2. Deux besoins ---------- */
.duo {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3cqw;
}
.duo-side { text-align: center; }
.duo-side .who { white-space: nowrap; font-size: 4.6cqw; font-weight: 600; color: var(--sapin); line-height: 1; }
.duo-side .what { font-size: 1.6cqw; color: var(--ink-soft); margin-top: 1.2cqw; }
.duo-link {
  display: flex; flex-direction: column; align-items: center; gap: 1.2cqw;
  font-size: 1.4cqw; font-weight: 600; color: var(--sapin-deep);
}
.duo-link::before, .duo-link::after {
  content: ""; width: .25cqw; height: 8cqw; background: var(--lime); border-radius: 1cqw;
}

/* ---------- 3 & 4. Slides avec photo latérale ---------- */
.sl--split { flex-direction: row; padding: 0; }
.split-photo { width: 34%; background-size: cover; background-position: center; }
.split-body { flex: 1; padding: 5cqw 5cqw 6.5cqw; display: flex; flex-direction: column; }

.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; flex: 1; }
.need h3 {
  font-size: 1.75cqw; font-weight: 600; color: var(--sapin);
  padding-top: 1.2cqw; margin: 0 0 1.4cqw;
  border-top: .3cqw solid var(--lime);
}
.need .points li { font-size: 1.3cqw; }
.figures { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.2cqw; }
.figures b { display: block; font-size: 3.4cqw; font-weight: 700; color: var(--sapin-deep); line-height: 1; }
.figures span { font-size: 1.05cqw; color: var(--ink-soft); }

.question {
  align-self: flex-start;
  background: var(--sapin);
  color: #fff;
  font-size: 1.5cqw;
  padding: .7cqw 1.6cqw;
  border-radius: 999px;
  margin: -1.4cqw 0 2.8cqw;
}
/* Le parcours est une vraie séquence : numérotation justifiée. */
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; counter-reset: etape; }
.path .need { counter-increment: etape; }
.path .need h3::before {
  content: counter(etape);
  display: inline-grid; place-items: center;
  width: 2.4cqw; height: 2.4cqw; margin-right: .9cqw;
  border-radius: 50%;
  background: var(--orange); color: #fff;
  font-size: 1.25cqw; vertical-align: .15cqw;
}

/* ---------- 5. Agents + RAG ---------- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4cqw; counter-reset: agent; }
.agent {
  counter-increment: agent;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .8cqw;
  padding: 1.6cqw 1.4cqw;
}
.agent:not(:last-child)::after {
  content: "";
  position: absolute; right: -1.4cqw; top: 50%;
  width: 1.4cqw; height: .25cqw; background: var(--lime);
}
.agent strong { display: block; font-size: 1.4cqw; font-weight: 600; color: var(--sapin); }
.agent strong::before { content: counter(agent) ". "; color: var(--orange); }
.agent span { display: block; font-size: 1.15cqw; color: var(--ink-soft); margin-top: .5cqw; line-height: 1.4; }

.rag {
  margin-top: 4cqw;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3cqw;
  background: var(--sapin);
  color: #fff;
  border-radius: 1cqw;
  padding: 2.2cqw 2.8cqw;
}
.rag h3 { font-size: 2cqw; font-weight: 600; margin: 0; }
.rag .points { display: grid; grid-template-columns: repeat(2, auto); gap: 1cqw 3cqw; }
.rag .points li { font-size: 1.35cqw; margin: 0; }

/* ---------- 6. Stack ---------- */
.sl--stack { background: var(--sapin-deep); color: #fff; }
.sl--stack h2 { color: #fff; }
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.6cqw; }
.stack h3 {
  font-size: 1.3cqw; font-weight: 400; color: var(--lime);
  margin: 0 0 1.2cqw; padding-bottom: .8cqw;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.stack .points li { font-size: 1.5cqw; }
.live {
  margin-top: auto;
  display: flex; align-items: center; gap: 1cqw;
  font-size: 1.6cqw;
}
.live::before {
  content: ""; width: 1cqw; height: 1cqw; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 .45cqw rgba(171,204,64,.25);
}
.live img { width: 8cqw; margin-left: auto; }

/* ---------- Navigation ---------- */
.nav-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 1.2cqw;
  padding: 0 2.4cqw 1.6cqw;
  pointer-events: none;
}
.nav-bar > * { pointer-events: auto; }
.progress-track { flex: 1; height: .3cqw; background: rgba(43,58,71,.12); border-radius: 1cqw; overflow: hidden; }
.progress-grow { height: 100%; width: 0; background: var(--lime); transition: width .6s ease; }
.nav-count { font-size: 1.1cqw; color: var(--ink); background: rgba(246,244,239,.9); padding: .3cqw .9cqw; border-radius: 999px; font-variant-numeric: tabular-nums; }
.nav-btn {
  width: 3cqw; height: 3cqw;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(246,244,239,.9); color: var(--sapin-deep);
  box-shadow: inset 0 0 0 1px rgba(34,104,92,.3);
  font-size: 1.4cqw; line-height: 1;
}
.nav-btn:hover { background: var(--lime); }
.nav-btn:focus-visible { outline: .2cqw solid var(--orange); outline-offset: .2cqw; }

/* Barre sur fond sombre (couverture, stack). */
.stage.on-dark .progress-track { background: rgba(255,255,255,.2); }
.stage.on-dark .nav-count { color: #fff; background: rgba(255,255,255,.14); }
.stage.on-dark .nav-btn { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.stage.on-dark .nav-btn:hover { background: var(--lime); color: var(--sapin-deep); }

@media (prefers-reduced-motion: reduce) {
  .carousel-item, .progress-grow { transition: none !important; }
}

/* Retour au site (ajout du portage dans le site). */
.nav-back { font-size: 1.1cqw; color: var(--sapin-deep); background: rgba(246,244,239,.9); padding: .3cqw .9cqw; border-radius: 999px; text-decoration: none; }
.nav-back:hover { background: var(--lime); color: var(--sapin-deep); }
.stage.on-dark .nav-back { color: #fff; background: rgba(255,255,255,.14); }
.stage.on-dark .nav-back:hover { background: var(--lime); color: var(--sapin-deep); }
