/* Pages editoriales Riftbound - DA actuelle, statique, sans JS applicatif */
:root {
  --rb-bg: #07070d;
  --rb-panel: rgba(15, 15, 25, 0.66);
  --rb-panel-strong: rgba(20, 20, 32, 0.82);
  --rb-border: rgba(255, 255, 255, 0.11);
  --rb-border-strong: rgba(255, 255, 255, 0.2);
  --rb-accent: #f2a93b;
  --rb-accent-hover: #ffbe54;
  --rb-text: #f4f4f8;
  --rb-text-soft: rgba(235, 235, 245, 0.72);
  --rb-text-muted: rgba(235, 235, 245, 0.48);
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--rb-bg);
  color: var(--rb-text-soft);
  font-family: "Instrument Sans", var(--font-body), sans-serif;
}

.rb-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.rb-bg-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(100% 70% at 50% 30%, rgba(7, 7, 13, 0) 0%, rgba(7, 7, 13, 0.55) 70%, rgba(7, 7, 13, 0.85) 100%);
}

a {
  color: var(--rb-accent);
  text-decoration: none;
}

a:hover {
  color: var(--rb-accent-hover);
}

.rb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(235, 235, 245, 0.65);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.rb-back:hover {
  color: var(--rb-text);
}

.rb-brand {
  color: var(--rb-text);
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rb-brand span {
  color: var(--rb-accent);
}

.rb-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px 12px;
  background: transparent;
}

.rb-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.rb-nav a {
  color: rgba(235, 235, 245, 0.62);
}

.rb-nav a:hover {
  color: var(--rb-text);
}

.rb-cta,
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.rb-cta {
  padding: 10px 20px;
  background: var(--rb-text);
  color: #0b0b13 !important;
}

.rb-cta:hover {
  background: #fff;
  color: #0b0b13 !important;
  transform: translateY(-1px);
}

.rb-main {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 88px 32px 110px;
}

.rb-eyebrow {
  margin-bottom: 18px;
  color: var(--rb-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rb-main h1 {
  max-width: 860px;
  margin: 0 0 26px;
  color: var(--rb-text);
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
  text-shadow: 0 22px 80px rgba(0, 0, 0, 0.58);
}

.rb-lede {
  max-width: 790px;
  margin: 0 0 38px;
  color: var(--rb-text-soft);
  font-size: 19px;
  line-height: 1.68;
}

.rb-video-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 46px;
  align-items: center;
  margin: 38px 0 44px;
}

.rb-video-copy {
  max-width: 460px;
}

.rb-video-copy h2 {
  margin: 0 0 16px;
  color: var(--rb-text);
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 34px;
  line-height: 1.1;
}

.rb-video-copy p {
  margin: 0 0 18px;
  color: var(--rb-text-soft);
  font-size: 16.5px;
  line-height: 1.68;
}

.rb-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rb-video-tag {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(235, 235, 245, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.rb-video-tag-accent {
  border-color: rgba(242, 169, 59, 0.45);
  background: rgba(242, 169, 59, 0.08);
  color: var(--rb-accent);
}

.rb-video-shell {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(242, 169, 59, 0.16), rgba(80, 116, 255, 0.08)),
    var(--video-poster, linear-gradient(135deg, rgba(242, 169, 59, 0.16), rgba(80, 116, 255, 0.08)));
  background-position: center top;
  background-size: cover;
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, 0.82);
}

.rb-video-shell.has-video {
  background: #07070d;
}

.rb-video-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rb-video-shell.rb-video-contain .rb-video-media {
  box-sizing: border-box;
  padding: 8px;
  object-fit: contain;
}

.rb-chapter-video-panel .rb-video-shell.rb-video-contain {
  min-height: 180px;
}

.rb-video-media[hidden] {
  display: none;
}

.rb-video-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 7, 13, 0.08), rgba(7, 7, 13, 0.76));
}

.rb-video-shell::after {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.rb-video-caption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  pointer-events: none;
}

.rb-video-play {
  display: none;
  width: 58px;
  height: 58px;
  flex: none;
  place-items: center;
  border-radius: 999px;
  background: var(--rb-accent);
  color: #16191f;
  box-shadow: 0 14px 44px -12px rgba(242, 169, 59, 0.8);
}

.rb-video-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.rb-video-title {
  color: var(--rb-text);
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.78);
}

.rb-video-meta {
  display: none;
  margin-top: 3px;
  color: rgba(235, 235, 245, 0.58);
  font-size: 13px;
}

.rb-mini-video {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 780px;
  margin: 20px 0 34px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(15, 15, 25, 0.5);
}

.rb-mini-video .rb-video-shell {
  min-height: 124px;
  border-radius: 14px;
  box-shadow: none;
}

.rb-mini-video .rb-video-caption {
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.rb-mini-video .rb-video-play {
  width: 42px;
  height: 42px;
}

.rb-mini-video .rb-video-play::before {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 11px;
}

.rb-mini-video-body {
  padding: 4px 6px 4px 0;
}

.rb-mini-video-kicker {
  margin-bottom: 7px;
  color: var(--rb-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rb-mini-video-title {
  color: var(--rb-text);
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.rb-mini-video-meta {
  margin-top: 6px;
  color: rgba(235, 235, 245, 0.58);
  font-size: 13px;
}

.rb-chapter-video {
  display: grid;
  width: min(1180px, calc(100vw - 64px));
  margin: 48px 0 62px 50%;
  transform: translateX(-50%);
  grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.6fr);
  gap: 34px;
  align-items: start;
}

.rb-chapter-list {
  display: grid;
  gap: 10px;
}

.rb-chapter-item {
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
}

.rb-chapter-item.is-active {
  box-shadow: none;
}

.rb-chapter-item h2 {
  margin: 0;
}

.rb-chapter-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 15px 54px 15px 22px;
  border: 1px solid rgba(242, 169, 59, 0.34);
  border-radius: 14px;
  background: rgba(242, 169, 59, 0.08);
  color: var(--rb-text);
  cursor: pointer;
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.14;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.rb-chapter-item.is-active .rb-chapter-button {
  border-color: rgba(242, 169, 59, 0.72);
  background: rgba(242, 169, 59, 0.14);
  box-shadow: 0 16px 44px -34px rgba(242, 169, 59, 0.82);
}

.rb-chapter-button::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(242, 169, 59, 0.5);
  border-radius: 999px;
  color: var(--rb-accent);
  font-family: "Instrument Sans", var(--font-body), sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  transform: translateY(-50%);
}

.rb-chapter-item.is-active .rb-chapter-button::after {
  content: "-";
  border-color: rgba(242, 169, 59, 0.42);
  color: var(--rb-accent);
}

.rb-chapter-text {
  max-height: 0;
  margin: 0 8px;
  padding: 0 14px;
  border-left: 1px solid rgba(242, 169, 59, 0.28);
  color: var(--rb-text-soft);
  font-size: 15.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.22s ease, padding 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
}

.rb-chapter-item.is-active .rb-chapter-text {
  max-height: 220px;
  margin-top: 10px;
  padding: 4px 14px 10px;
  opacity: 1;
  transform: translateY(0);
}

.rb-chapter-video-panel {
  position: sticky;
  top: 94px;
}

.rb-chapter-video-panel .rb-video-shell {
  min-height: 430px;
}

.rb-chapter-video-panel .rb-video-title {
  font-size: 22px;
}

.rb-main h2 {
  margin: 60px 0 18px;
  color: var(--rb-text);
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.rb-main .rb-chapter-item h2 {
  margin: 0;
  font-size: inherit;
  line-height: 1;
}

.rb-main h3 {
  margin: 30px 0 10px;
  color: var(--rb-text);
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 21px;
}

.rb-main p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.72;
}

.rb-main ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.rb-main li {
  position: relative;
  padding-left: 24px;
  font-size: 16.5px;
  line-height: 1.65;
}

.rb-main li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--rb-accent);
  box-shadow: 0 0 18px rgba(242, 169, 59, 0.72);
}

.rb-main strong {
  color: var(--rb-text);
}

.rb-cta-block {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 52px;
}

.rb-btn {
  padding: 14px 26px;
  font-size: 15px;
}

.rb-btn-primary {
  background: var(--rb-accent);
  color: #16191f !important;
  box-shadow: 0 16px 46px -16px rgba(242, 169, 59, 0.75);
}

.rb-btn-primary:hover {
  background: var(--rb-accent-hover);
  color: #16191f !important;
  transform: translateY(-1px);
}

.rb-btn-secondary {
  border: 1px solid var(--rb-border-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--rb-text) !important;
  backdrop-filter: blur(10px);
}

.rb-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
  color: var(--rb-text) !important;
  transform: translateY(-1px);
}

.rb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 28px 0 46px;
}

.rb-card,
.rb-faq details,
.rb-stat {
  background: var(--rb-panel);
  border: 1px solid var(--rb-border);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 80px -44px rgba(0, 0, 0, 0.75);
}

.rb-card {
  display: block;
  padding: 24px;
  color: var(--rb-text-soft);
}

.rb-card:hover {
  border-color: rgba(242, 169, 59, 0.45);
  background: var(--rb-panel-strong);
  color: var(--rb-text-soft);
}

.rb-card-title {
  margin-bottom: 8px;
  color: var(--rb-text);
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.rb-card-desc {
  font-size: 15.5px;
  line-height: 1.6;
}

.rb-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 26px 0 42px;
}

.rb-stat {
  padding: 20px;
  color: var(--rb-text-soft);
  font-size: 15px;
  line-height: 1.45;
}

.rb-stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rb-accent);
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 28px;
  line-height: 1;
}

.rb-faq {
  display: grid;
  gap: 12px;
}

.rb-faq details {
  padding: 18px 20px;
}

.rb-faq summary {
  color: var(--rb-text);
  cursor: pointer;
  font-family: "Space Grotesk", var(--font-title), sans-serif;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}

.rb-faq summary::-webkit-details-marker {
  display: none;
}

.rb-faq p {
  margin: 12px 0 0;
  color: var(--rb-text-soft);
  font-size: 15.5px;
}

.rb-sibling-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 12px;
}

.rb-sibling-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(242, 169, 59, 0.28);
  border-radius: 999px;
  background: rgba(242, 169, 59, 0.09);
  color: var(--rb-accent) !important;
  font-weight: 700;
}

.rb-sibling-links a:hover {
  border-color: rgba(242, 169, 59, 0.5);
  background: rgba(242, 169, 59, 0.15);
}

.rb-disclaimer {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(235, 235, 245, 0.42);
  font-size: 13px;
  line-height: 1.65;
}

.rb-footer {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px 46px;
  color: rgba(235, 235, 245, 0.42);
  font-size: 13px;
}

.rb-footer a {
  color: rgba(235, 235, 245, 0.58);
}

.rb-footer a:hover {
  color: var(--rb-text);
}

@media (max-width: 760px) {
  .rb-topbar {
    padding: 16px 20px 0;
  }

  .rb-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 20px 10px;
  }

  .rb-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
    overflow: visible;
    padding-bottom: 0;
    font-size: 13px;
  }

  .rb-nav a {
    white-space: nowrap;
  }

  .rb-cta {
    margin-left: auto;
  }

  .rb-main {
    padding: 58px 20px 82px;
  }

  .rb-main h1 {
    font-size: 42px;
  }

  .rb-lede {
    font-size: 17px;
  }

  .rb-main h2 {
    font-size: 28px;
  }

  .rb-video-feature {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 34px 0 42px;
  }

  .rb-video-copy h2 {
    font-size: 28px;
  }

  .rb-video-shell {
    min-height: 240px;
  }

  .rb-video-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .rb-video-play {
    width: 50px;
    height: 50px;
  }

  .rb-mini-video {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
  }

  .rb-mini-video .rb-video-shell {
    min-height: 180px;
  }

  .rb-mini-video-body {
    padding: 4px 4px 8px;
  }

  .rb-chapter-video {
    width: 100%;
    transform: none;
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 38px 0 52px;
  }

  .rb-chapter-button {
    padding: 17px 52px 17px 18px;
    font-size: 21px;
  }

  .rb-chapter-text {
    padding-right: 18px;
    padding-left: 18px;
  }

  .rb-chapter-item.is-active .rb-chapter-text {
    padding: 4px 18px 10px;
  }

  .rb-chapter-video-panel {
    position: static;
  }

  .rb-chapter-video-panel .rb-video-shell {
    min-height: 260px;
  }

  .rb-cta-block,
  .rb-btn {
    width: 100%;
  }
}
