:root {
  --ink: #0b1730;
  --ink-2: #40506b;
  --muted: #7a8aa5;
  --navy: #07132e;
  --navy-2: #0f2a63;
  --action: #1a62f0;
  --action-hover: #3d7bf5;
  --gold: #eab308;
  --depart: #16a34a;
  --very-hard: #ef4444;
  --medium: #f59e0b;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-dark: rgba(7, 19, 46, 0.66);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: #040a18;
  color: #fff;
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

a {
  color: #9dc0ff;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* ---------- backdrop: sky, sun, ridges, fog ---------- */

.decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky {
  position: absolute;
  inset: -10%;
}

#sky1 {
  background: linear-gradient(
    180deg,
    #03070f 0%,
    #07132e 42%,
    #102a5e 78%,
    #1b3c7d 100%
  );
}

#sky2 {
  background: linear-gradient(180deg, #0b1f4c 0%, #1a62f0 58%, #8fb8ff 100%);
  opacity: 0;
}

#sky3 {
  background: linear-gradient(
    180deg,
    #10214a 0%,
    #4b3f96 38%,
    #c07a3a 82%,
    #eab308 100%
  );
  opacity: 0;
}

#stars {
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 31% 9%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 54% 22%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 72% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 86% 26%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 22% 34%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 64% 38%, #fff, transparent),
    radial-gradient(1px 1px at 44% 5%, #fff, transparent),
    radial-gradient(1px 1px at 92% 8%, #fff, transparent);
}

#sun {
  position: absolute;
  left: 30%;
  top: 22%;
  width: 26vw;
  height: 26vw;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 236, 178, 0.95) 0%,
    rgba(234, 179, 8, 0.55) 32%,
    rgba(234, 179, 8, 0) 68%
  );
  opacity: 0;
  filter: blur(2px);
}

.haze {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52vh;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 46, 0),
    rgba(7, 19, 46, 0.55) 62%,
    rgba(4, 10, 24, 0.9)
  );
}

.ridge {
  position: absolute;
  width: 124%;
  display: block;
}

#r1 {
  bottom: 0;
  height: 80vh;
  opacity: 0.62;
}

#r2 {
  bottom: 0;
  height: 60vh;
  opacity: 0.82;
}

#r3 {
  bottom: 0;
  height: 42vh;
}

#near {
  position: absolute;
  left: -14%;
  bottom: -8vh;
  width: 128%;
  height: 32vh;
  display: block;
}

.fog {
  position: absolute;
  left: -25%;
  width: 150%;
  height: 34vh;
  background:
    radial-gradient(
      60% 60% at 30% 50%,
      rgba(219, 232, 255, 0.6),
      rgba(219, 232, 255, 0) 70%
    ),
    radial-gradient(
      50% 50% at 72% 46%,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0) 72%
    );
  filter: blur(6px);
}

/* `anim` is set once at boot and never toggled during the scroll (sentier.js). It used to
   be `walking`, which frame() flips on and off as you scroll — and each flip builds then
   discards a compositor layer, which costs more than never promoting these at all. */
html.anim .ridge,
html.anim #near,
html.anim #sun,
html.anim #head {
  will-change: transform;
}

html.anim .fog {
  will-change: transform, opacity;
}

#fog1 {
  bottom: 26vh;
}

#fog2 {
  bottom: 6vh;
  height: 26vh;
  opacity: 0.5;
}

/* ---------- the trace ---------- */

#trail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

#trail path {
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: none;
}

#trail-corridor {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 18;
}

#trail-ghost {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 4;
  stroke-dasharray: 2 11;
}

/* Both groups hold one <path> per band of the page; stroke properties inherit down to
   them. The three halo widths stand in for what used to be an feGaussianBlur on the
   trace — see index.html — and stack to roughly the same bloom at the centre line. */
#trail-halo {
  stroke: url(#traceGrad);
}

#trail-halo .halo-a {
  stroke-width: 18;
  opacity: 0.06;
}

#trail-halo .halo-b {
  stroke-width: 12;
  opacity: 0.09;
}

#trail-halo .halo-c {
  stroke-width: 7;
  opacity: 0.14;
}

#trail-done {
  stroke: url(#traceGrad);
  stroke-width: 4.5;
}

#pins {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 4;
  pointer-events: none;
}

#head-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.pin-dot {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow:
    0 0 0 4px rgba(234, 179, 8, 0.22),
    0 6px 18px rgba(3, 10, 28, 0.5);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.4s,
    transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.pin-card {
  position: absolute;
  left: 20px;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 13px;
  border-radius: 14px;
  background: rgba(7, 19, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(3, 10, 28, 0.45);
  white-space: nowrap;
  opacity: 0;
  transform: translate(0, calc(-50% + 8px));
  transition:
    opacity 0.5s 0.08s,
    transform 0.6s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pin[data-side="l"] .pin-card {
  left: auto;
  right: 20px;
  align-items: flex-end;
  text-align: right;
}

.pin-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.pin-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.pin-meta {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.pin.on .pin-card {
  opacity: 1;
  transform: translate(0, -50%);
}

.pin.on .pin-dot {
  opacity: 1;
  transform: scale(1);
}

.pin-key .pin-dot {
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  background: #fff;
  box-shadow:
    0 0 0 5px rgba(234, 179, 8, 0.5),
    0 8px 22px rgba(3, 10, 28, 0.6);
}

#head {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.2),
    0 0 26px 8px rgba(234, 179, 8, 0.45);
  opacity: 0;
  transition: opacity 0.3s;
}

#head::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
}

/* The only looping animation on the page, and only while the walker is on screen. */
.walking #head::after {
  animation: ring 2.2s ease-out infinite;
}

@keyframes ring {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ---------- structure ---------- */

.page {
  position: relative;
  z-index: 2;
}

.sec {
  position: relative;
  padding: clamp(80px, 10vw, 158px) 22px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(3, 10, 28, 0.42);
  color: var(--ink);
  padding: clamp(30px, 4.4vw, 60px);
}

.panel-dark {
  background: var(--panel-dark);
  backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(3, 10, 28, 0.5);
  color: #fff;
  padding: clamp(30px, 4.4vw, 60px);
}

h2.t {
  font-size: clamp(28px, 3.5vw, 45px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.panel .lede {
  color: var(--ink-2);
}

.panel-dark .lede {
  color: rgba(255, 255, 255, 0.76);
}

.head-block {
  max-width: 680px;
}

.panel .head-block .eyebrow {
  color: var(--action);
}

.panel-dark .head-block .eyebrow {
  color: var(--gold);
}

.head-block h2 {
  margin-top: 14px;
}

.head-block .carte-hikes {
  margin-top: 18px;
}

.head-block .lede {
  margin-top: 14px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

.js.reduit [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 10, 24, 0.74);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
}

.brand span {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
  min-width: 0;
}

.navlinks > a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.navlinks > a:hover {
  color: #fff;
}

.navcta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 19px;
  border-radius: 999px;
  background: var(--action);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(26, 98, 240, 0.4);
  white-space: nowrap;
}

.navcta:hover {
  background: var(--action-hover);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
}

.lang a:hover {
  color: #fff;
}

html[lang="fr"] .lang a[data-lang="fr"],
html[lang="en"] .lang a[data-lang="en"] {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- buttons, tags, chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 98, 240, 0.35);
}

.btn-primary:hover {
  background: var(--action-hover);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.panel .btn-secondary {
  background: #f1f5f9;
  border-color: #e3e9f5;
  color: var(--ink);
}

.panel .btn-secondary:hover {
  background: #fff;
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-premium {
  background: var(--gold);
  color: var(--navy);
}

.tag-soon {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
}

.panel .tag-soon {
  background: #eef3fc;
  border-color: #d6e0f2;
  color: var(--navy-2);
}

.tag-live {
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: var(--gold);
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-very-hard {
  background: var(--very-hard);
  color: #fff;
}

.badge-medium {
  background: var(--medium);
  color: #1a1200;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.chip-depart {
  background: var(--depart);
  border-color: var(--depart);
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(50px, 6.5vw, 98px);
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(30px, 5vw, 62px);
}

.hero-copy {
  flex: 1 1 430px;
  min-width: 288px;
}

.chipline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.chipline i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  display: block;
}

.chipline span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.038em;
  text-shadow: 0 18px 50px rgba(3, 10, 28, 0.5);
}

.hero-copy > p {
  margin-top: 21px;
  max-width: 540px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.stats {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat {
  flex: 1 1 150px;
  padding: 15px 17px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

/* Direct children only: the number's unit sits in a nested <i>, and a bare `.stat span`
   would catch the value span inside <b> and shrink it. */
.stat > b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat > b i {
  font-size: 15px;
  font-style: normal;
}

.stat > span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.64);
}

.phone-col {
  flex: 0 1 380px;
  min-width: 278px;
  display: flex;
  justify-content: center;
}

.phone-stack {
  position: relative;
  width: 326px;
  max-width: 100%;
}

.float {
  position: absolute;
  z-index: 3;
  border-radius: 16px;
  box-shadow: 0 26px 54px rgba(3, 10, 28, 0.5);
}

.float-a {
  left: -16px;
  top: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  background: #fff;
  color: var(--ink);
}

.float-a i {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #e7f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--action);
  font-size: 19px;
  font-weight: 800;
  font-style: normal;
  flex: none;
}

.float-a b {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.float-a span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.float-b {
  right: -14px;
  bottom: 140px;
  padding: 11px 15px;
  background: var(--gold);
  color: var(--navy);
}

.float-b span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.74;
}

.float-b b {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.phone {
  position: relative;
  width: 326px;
  max-width: 100%;
  filter: drop-shadow(0 44px 80px rgba(3, 10, 28, 0.6));
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.startline {
  margin-top: clamp(44px, 6.5vw, 80px);
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.startline i {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px dashed rgba(234, 179, 8, 0.6);
  background: rgba(234, 179, 8, 0.1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
}

.startline u {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(234, 179, 8, 0.5),
    rgba(255, 255, 255, 0)
  );
  text-decoration: none;
}

.startline em {
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
}

/* ---------- cards and tiles ---------- */

.cards {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid #e3e9f5;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(15, 42, 99, 0.08);
}

.card h3 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.58;
  font-weight: 500;
  color: var(--ink-2);
}

.ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ico svg {
  width: 26px;
  height: 26px;
}

.ico-navy {
  background: var(--navy);
  color: #fff;
}

.ico-action {
  background: var(--action);
  color: #fff;
}

.ico-gold {
  background: var(--gold);
  color: var(--navy);
}

.ticks {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ticks li {
  display: flex;
  gap: 9px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
}

.ticks li::before {
  content: "•";
  color: var(--action);
}

.panel-dark .ticks li {
  color: rgba(255, 255, 255, 0.86);
}

.panel-dark .ticks li::before {
  color: var(--gold);
}

/* map */

.carte-head {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-end;
  justify-content: space-between;
}

.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.zones span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.zones span.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.carte-grid {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.shot {
  flex: 1 1 420px;
  min-width: 272px;
  filter: drop-shadow(0 36px 70px rgba(3, 10, 28, 0.6));
}

.shot img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: 34px;
}

.side {
  flex: 1 1 300px;
  min-width: 258px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tile {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tile .lbl {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.tile .big {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tile h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tile p {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
}

.row {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tiles4 {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 16px;
}

/* image + text pairs (proches, community) */

.duo {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3.6vw, 44px);
  align-items: center;
}

.duo-txt {
  flex: 1 1 340px;
  min-width: 268px;
}

.duo-img {
  flex: 1 1 360px;
  min-width: 250px;
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: flex-start;
}

/* Author display:flex would otherwise win over the hidden attribute. */
[data-optional-host][hidden] {
  display: none;
}

.pshot {
  width: min(222px, 46%);
  filter: drop-shadow(0 26px 44px rgba(3, 10, 28, 0.5));
}

.pshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.pshot-b {
  margin-top: 38px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini {
  padding: 20px 22px;
  border-radius: 20px;
}

.panel .mini {
  background: #f6f9fd;
  border: 1px solid #e3e9f5;
}

.panel-dark .mini {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mini h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mini p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}

.panel .mini h3 {
  color: var(--ink);
}

.panel .mini p {
  color: var(--ink-2);
}

.panel-dark .mini p {
  color: rgba(255, 255, 255, 0.76);
}

.grid4 {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
  gap: 16px;
}

.pill-note {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-note {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

/* made in Réunion */

.made {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.made-txt {
  flex: 1 1 460px;
  min-width: 280px;
}

.made-txt .eyebrow {
  color: var(--gold);
}

.made-txt h2,
.made-txt .lede {
  margin-top: 16px;
}

.made-stats {
  flex: 1 1 280px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.made-stats div {
  padding: 17px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.made-stats b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.made-stats span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
}

.made-note {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.07);
}

.made-note p {
  flex: 1 1 240px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

/* Small on purpose: a face to put behind the app, not a portrait on a wall. */
.made-portrait {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(3, 10, 28, 0.45);
}

.made-note a {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.made-note a:hover {
  color: #fff;
}

/* reviews */

.quotes {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}

figure {
  margin: 0;
  background: #f7f9fd;
  border: 1px solid #e3e9f5;
  border-radius: 26px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stars {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
}

blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

figcaption i {
  width: 41px;
  height: 41px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  font-style: normal;
  flex: none;
}

.av-navy {
  background: var(--navy);
  color: #fff;
}

.av-navy2 {
  background: var(--navy-2);
  color: #fff;
}

.av-action {
  background: var(--action);
  color: #fff;
}

.av-gold {
  background: var(--gold);
  color: var(--navy);
}

figcaption b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

figcaption em {
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}

/* finish line */

.arrivee-sec {
  padding-bottom: clamp(110px, 13vw, 190px);
}

.arrive-card {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(
    140deg,
    rgba(15, 42, 99, 0.9) 0%,
    rgba(26, 98, 240, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  box-shadow: 0 44px 110px rgba(3, 10, 28, 0.55);
  color: #fff;
  padding: clamp(34px, 5.6vw, 72px);
}

.arrive-card .blob {
  position: absolute;
  right: -140px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.34), transparent 68%);
}

.arrive-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.arrive-card h2 {
  position: relative;
  margin-top: 21px;
  font-size: clamp(29px, 4vw, 51px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.arrive-card > p {
  position: relative;
  margin-top: 15px;
  max-width: 600px;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.stores {
  position: relative;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Official store badges, untouched artwork: Apple's SVG has no padding, Google's PNG
   ships with its own transparent margin, so the Play badge is drawn taller and pulled in
   to line the two up visually. */
.store {
  display: block;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.store:hover {
  opacity: 0.86;
}

.store img {
  display: block;
  height: 56px;
  width: auto;
}

.store-play img {
  height: 72px;
  margin: -8px -9px;
}

/* ---------- footer ---------- */

footer {
  position: relative;
  z-index: 2;
  background: rgba(3, 8, 20, 0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 22px 34px;
}

.fgrid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
}

.fgrid p {
  margin-top: 13px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 330px;
}

.fcols {
  display: flex;
  flex-wrap: wrap;
  gap: 46px;
}

.fcol {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fcol .h {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
}

.fcol a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.74);
}

.fbot {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
}

/* ---------- HUD ---------- */

.hud {
  position: fixed;
  z-index: 45;
  transition:
    opacity 0.4s,
    transform 0.4s;
}

#hud-rail {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  height: min(50vh, 420px);
  display: flex;
  gap: 12px;
  pointer-events: none;
}

.hud-off #hud-rail {
  opacity: 0;
  transform: translateY(-50%) translateX(-10px);
}

.rail-track {
  position: relative;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

/* Filled with scaleY, not height: a height is a layout on every frame, a transform is not.
   The gradient spans the track and is squashed with it, which renders the same ramp; the
   only visible difference is the bottom cap, which the scale turns into a flat ellipse on
   a 3px-wide bar. */
#rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), #fff);
}

.rail-stages {
  position: relative;
  width: 0;
}

.rail-stage {
  position: absolute;
  left: -10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.rail-stage i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 2px solid rgba(4, 10, 24, 0.6);
  flex: none;
  transition:
    background 0.3s,
    transform 0.3s;
}

.rail-stage span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.44);
  transition: color 0.3s;
}

.rail-stage.on i {
  background: var(--gold);
  transform: scale(1.35);
}

.rail-stage.on span {
  color: #fff;
}

#hud-prof {
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  width: min(520px, calc(100vw - 40px));
  padding: 12px 16px 8px;
  border-radius: 20px;
  background: rgba(4, 10, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(3, 10, 28, 0.5);
  pointer-events: none;
}

.hud-off #hud-prof {
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  pointer-events: none;
}

.prof-read {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
}

.prof-read b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.prof-read u {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.54);
  text-decoration: none;
}

.prof-read i {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.66);
}

.prof-read i + i {
  margin-left: 12px;
}

#hud-prof svg {
  display: block;
  width: 100%;
  height: 58px;
  margin-top: 4px;
  overflow: visible;
}

#prof-fill {
  fill: rgba(255, 255, 255, 0.07);
}

#prof-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

#prof-done {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

#prof-cursor line {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 3;
}

#prof-cursor-dot {
  fill: #fff;
}

.arrivee #hud-prof {
  border-color: rgba(234, 179, 8, 0.55);
}

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  #hud-rail {
    display: none;
  }
}

@media (max-width: 920px) {
  .pin-meta {
    display: none;
  }
}

@media (max-width: 720px) {
  /* Phones: no nav links (sections are one swipe away), and no backdrop blur — it
     re-renders on every scrolled pixel over a moving background and eats the battery. */
  nav,
  .navlinks {
    flex-wrap: nowrap;
  }

  .navlinks > a:not(.navcta) {
    display: none;
  }

  .panel,
  .panel-dark,
  .stat,
  .pin-card,
  header,
  footer,
  #hud-prof,
  .arrive-card {
    backdrop-filter: none;
  }

  /* Same reason for these two: both sit on layers that move on every frame, and a blur
     forces a re-rasterization where a plain move would only have to re-composite. The
     fog is already a soft radial gradient and the sun a radial falloff. */
  .fog,
  #sun {
    filter: none;
  }

  .panel {
    background: rgba(255, 255, 255, 0.97);
  }

  .panel-dark {
    background: rgba(7, 19, 46, 0.9);
  }

  header {
    background: rgba(4, 10, 24, 0.92);
  }

  .float-a {
    left: -6px;
  }

  .float-b {
    right: -6px;
  }
}

@media (max-width: 600px) {
  .pin-card {
    display: none;
  }

  /* One-row header on phones: logo only, compact language toggle and CTA. */
  nav {
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .navlinks {
    gap: 10px;
  }

  .lang a {
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
  }

  .navcta {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
    max-width: 48vw;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    line-height: 38px;
    text-align: center;
  }

  .sec {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel,
  .panel-dark {
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
