/* ── Section Trois Mondes — home-worlds.css ── */

.r2l-worlds {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245,95,42,.09) 0%, rgba(245,95,42,.04) 22%, rgba(245,95,42,0) 46%),
    var(--r2l-fiche-dark);
}

.r2l-worlds__inner {
  width: 100%;
  max-width: var(--r2l-container-max);
  margin: 0 auto;
  padding: 80px var(--r2l-gutter);
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* ── Colonne texte ── */

/* Eyebrow sur fond sombre — filet et texte clairs */
.r2l-worlds .r2l-eyebrow {
  color: rgba(247,243,238,.65);
  margin-bottom: 26px;
}

.r2l-worlds__title {
  font-family: var(--r2l-font-titres);
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.02;
  font-weight: 700;
  color: var(--r2l-sable-1);
  margin: 0 0 26px;
  letter-spacing: -.01em;
}

.r2l-worlds__title em {
  font-style: normal;
  color: var(--r2l-accent-titre); /* hérite #C2A98F via .r2l-worlds { --r2l-accent-titre: #C2A98F } */
}

.r2l-worlds__intro {
  font-size: 17px;
  line-height: 1.6;
  color: #cabfb4;
  max-width: 420px;
  margin: 0 0 40px;
}

/* ── Liste navigation ── */
.r2l-worlds__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.r2l-world {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 20px 22px 4px;
  border-top: 1px solid rgba(247,243,238,.12);
  text-decoration: none;
  color: inherit;
  transition: padding-left .35s ease, background .35s ease;
  outline: none;
}

.r2l-world:last-child {
  border-bottom: 1px solid rgba(247,243,238,.12);
}

.r2l-world:hover,
.r2l-world:focus-visible {
  padding-left: 14px;
  background: linear-gradient(to right, rgba(247,243,238,.08) 0%, transparent 65%);
}

.r2l-world:focus-visible {
  box-shadow: inset 3px 0 0 var(--r2l-flamingo);
}

.r2l-world__num {
  font-size: 18px;
  font-weight: 700;
  color: var(--r2l-flamingo);
  min-width: 28px;
}

.r2l-world__label {
  font-family: var(--r2l-font-titres);
  font-size: 21px;
  font-weight: 600;
  flex: 1;
  color: var(--r2l-sable-1);
}

.r2l-world__cta {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a99e92;
  white-space: nowrap;
  transition: color .3s ease, transform .3s ease;
}

.r2l-world:hover .r2l-world__cta,
.r2l-world:focus-visible .r2l-world__cta {
  color: var(--r2l-sable-1);
  transform: translateX(4px);
}

.r2l-world__cta span {
  color: var(--r2l-flamingo);
}

/* ── Colonne globe ── */
.r2l-globe-wrap {
  position: relative;
  width: 100%;
}

/* max-width réduit (~13 %) + margin auto : globe recentré dans sa
   colonne, ne l'écrase plus, reste grand et lisible. */
.r2l-globe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  margin: 0 auto;
}

#r2l-globe {
  position: absolute;
  inset: 0;
}

.r2l-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7066;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Card au survol d'un point ── */
.r2l-globe-card {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  width: 230px;
  padding: 16px 18px;
  background: rgba(28,22,19,.92);
  border: 1px solid rgba(245,95,42,.35);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.r2l-globe-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.r2l-globe-card__cont {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--r2l-flamingo);
  margin: 0 0 6px;
}

.r2l-globe-card__label {
  font-family: var(--r2l-font-titres);
  font-size: 19px;
  font-weight: 700;
  color: var(--r2l-sable-1);
  margin: 0 0 8px;
}

.r2l-globe-card__blurb {
  font-size: 13px;
  line-height: 1.5;
  color: #bcb1a6;
  margin: 0 0 14px;
}

.r2l-globe-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--r2l-sable-1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.r2l-globe-card__link span {
  color: var(--r2l-flamingo);
  transition: transform .25s ease;
}

.r2l-globe-card__link:hover span {
  transform: translateX(4px);
}

/* ── Poster mobile (image statique) ── */
.r2l-globe-poster {
  display: none;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #231b1d;
}

.r2l-globe-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Mobile ── */
@media (max-width: 880px) {
  .r2l-worlds__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 24px;
  }

  .r2l-globe-wrap {
    order: -1;
  }

  /* Globe WebGL affiché aussi sur mobile (chargé en lazy). pan-y : drag
     horizontal = rotation du globe, swipe vertical = scroll page. Le canvas
     est repassé à pan-y en JS (globe.gl y force touchAction:'none'). */
  .r2l-globe-container {
    display: block;
    max-width: 420px;
    touch-action: pan-y;
  }

  /* Poster statique conservé comme repli si le globe ne charge pas
     (JS le laisse masqué quand WebGL est OK). */
  .r2l-globe-poster {
    display: none;
  }
}
