/* ============================================================
   RÉCITS DU LAOS — Accueil
   Chargée uniquement par index.php, après site.css. Ne concerne que
   le hero (orienté conversion) et le fil du Mékong ; toutes les autres
   sections de l'accueil gardent leurs styles de site.css.
   ============================================================ */


/* ── HERO ─────────────────────────────────────────────────────
   Un bloc centré au milieu de l'écran (accroche, titre, promesse,
   deux boutons), en grands caractères.
   Mouvement : le bloc apparaît en fondu, légèrement remonté. */
.is-home .hx-hero { align-items: center; text-align: center; }
.is-home .hx-hero::after {
  background:
    radial-gradient(ellipse at center, rgba(14, 20, 15, 0.62) 0%, rgba(14, 20, 15, 0.4) 55%, rgba(14, 20, 15, 0.22) 100%);
}
.is-home .hx-hero .hero-inner { padding-top: clamp(6rem, 12vh, 8rem); padding-bottom: clamp(3rem, 8vh, 5rem); }
.hx-hero-box {
  max-width: 62rem; margin: 0 auto;
  animation: hxIn 900ms var(--ease-out) 120ms both;
}
@keyframes hxIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hx-hero-kicker {
  display: block; margin: 0 0 1.3rem;
  font-style: normal; font-weight: 400; line-height: 1.5;
  font-family: var(--f-label); font-size: clamp(0.9rem, 1.1vw, 1.05rem); letter-spacing: 0.1em;
  color: var(--gold);
}
.is-home .hx-h1 {
  max-width: none; margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1.08;
  color: #fff; text-wrap: balance;
}
.hx-h1-gold { display: block; color: var(--gold); font-style: italic; }
.hx-hero-sub {
  margin: 1.6rem auto 0; max-width: 42rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.6;
}
.is-home .hx-hero .h-cta { margin-top: 2.4rem; justify-content: center; }
.hx-hero-note {
  margin: 1rem 0 0;
  font-family: var(--f-label); font-size: 0.95rem; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 560px) {
  .is-home .hx-h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .hx-hero-sub { font-size: 1.08rem; }
}


/* ── LE FIL DU MÉKONG ─────────────────────────────────────────
   En marge droite, un fleuve dessiné à la main descend de Houay Xay
   aux 4000 îles pendant la lecture ; la ville où l'on se trouve s'écrit
   à côté du point. Décoratif (aria-hidden), réservé aux grands écrans. */
.hx-river { display: none; }
@media (min-width: 1180px) and (hover: hover) {
  .hx-river {
    display: block; position: fixed; z-index: 40; pointer-events: none;
    right: clamp(0.8rem, 1.4vw, 1.5rem); top: 7.4rem; bottom: 2.4rem; width: 2.3rem;
    color: var(--ink);
    opacity: 0; transition: opacity 700ms ease, color 500ms ease;
  }
  .hx-river.is-on { opacity: 1; }
  .hx-river.is-dark { color: var(--cream); }
}
.hx-river-svg { position: absolute; left: 0; top: 6rem; width: 14px; height: calc(100% - 12rem); overflow: visible; }
.hx-river-bed { fill: none; stroke: currentColor; stroke-opacity: 0.22; stroke-width: 1; }
.hx-river-flow { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.hx-river-dot {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 164, 107, 0.2);
}
.hx-river-town, .hx-river-end {
  position: absolute; writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--f-label); letter-spacing: 0.1em;
}
.hx-river-town { left: 15px; top: 0; font-size: 0.8rem; line-height: 1; color: currentColor; transition: opacity 350ms ease; }
.hx-river-town.is-swap { opacity: 0; }
.hx-river-end { left: 0; font-size: 0.68rem; line-height: 14px; opacity: 0.5; }
.hx-river-end--top { top: 0; transition: opacity 400ms ease; }
.hx-river-end--bottom { bottom: 0; transition: opacity 400ms ease; }
.hx-river.is-end .hx-river-end--bottom, .hx-river.is-start .hx-river-end--top { opacity: 0; }


/* Mouvement réduit : tout est posé d'emblée */
@media (prefers-reduced-motion: reduce) {
  .hx-hero-box { animation: none; }
}
