/* ============================================================
   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 lisible en bas à gauche (accroche, titre, promesse, deux boutons),
   puis une ligne de réassurance sur toute la largeur.
   Mouvement : le bloc apparaît en fondu, légèrement remonté. */
.is-home .hx-hero::after {
  background:
    linear-gradient(90deg, rgba(14, 20, 15, 0.72) 0%, rgba(14, 20, 15, 0.45) 45%, rgba(14, 20, 15, 0.12) 80%),
    linear-gradient(to top, rgba(14, 20, 15, 0.6) 0%, rgba(14, 20, 15, 0) 40%);
}
.is-home .hx-hero .hero-inner { padding-bottom: clamp(1.6rem, 4vh, 2.6rem); }
.hx-hero-box {
  max-width: 48rem;
  animation: hxIn 900ms var(--ease-out) 120ms both;
}
@keyframes hxIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hx-hero-kicker {
  margin: 0 0 1rem;
  font-family: var(--f-label); font-size: 0.86rem; letter-spacing: 0.1em;
  color: var(--gold);
}
.is-home .hx-h1 {
  max-width: none; margin: 0;
  font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1.12;
  color: #fff; text-wrap: balance;
}
.hx-h1-gold { display: block; color: var(--gold); font-style: italic; }
.hx-hero-sub { margin: 1.2rem 0 0; max-width: 34rem; color: rgba(255, 255, 255, 0.9); font-size: var(--t-lead); line-height: 1.65; }
.is-home .hx-hero .h-cta { margin-top: 1.8rem; justify-content: flex-start; }
.hx-hero-note {
  margin: 0.9rem 0 0;
  font-family: var(--f-label); font-size: 0.86rem; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}
.hx-trust {
  list-style: none; margin: clamp(2rem, 5vh, 3.2rem) 0 0; padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0.8rem 2rem;
  animation: hxIn 900ms var(--ease-out) 380ms both;
}
.hx-trust li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.9);
}
.hx-trust svg { flex: none; color: var(--gold); }
@media (max-width: 1100px) {
  .hx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
}
@media (max-width: 560px) {
  .hx-trust { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
  .hx-trust li { font-size: 0.9rem; }
}


/* ── 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, .hx-trust { animation: none; }
}
