/* Accueil « Carnet de lagune » (31.10.2026).
   Chargée uniquement par src/index.njk et src/en/index.njk, après system.css.
   Les jetons, boutons, bande photo, newsletter et appel final sont dans system.css.
   Mobile d'abord : la majorité des visites arrive d'Instagram. */

/* ---------- Hero ---------- */
.hv-hero { padding: var(--nav-h) 0 56px; overflow: hidden; }
.hv-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
.hv-hero-art {
  order: -1;
  display: block;
  position: relative;
  min-height: 0;
  height: min(60svh, 500px);
  margin: 0 calc(-1 * var(--gutter));
}
.hv-art-main {
  position: absolute; inset: 0;
  width: auto; aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
}
.hv-art-main img { object-position: 62% 55%; }
.hv-art-side { display: none; }

.hv-hero h1 {
  margin-top: 0;
  font-size: clamp(2.75rem, 11vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.hv-sub { margin-top: 20px; font-size: 1.08rem; line-height: 1.6; color: var(--ink-soft); }
.hv-hero .hero-btns { margin-top: 28px; display: grid; gap: 12px; }
.hv-hero .hero-btns .btn { width: 100%; min-height: 54px; }
.hv-trust { margin-top: 22px; font-size: 0.95rem; color: var(--ink-mute); }

@media (min-width: 561px) and (max-width: 899px) {
  .hv-hero .hero-btns { display: flex; }
  .hv-hero .hero-btns .btn { width: auto; }
}

@media (min-width: 900px) {
  .hv-hero { padding: calc(var(--nav-h) + 20px) 0 clamp(64px, 7vw, 104px); }
  .hv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
  }
  .hv-hero-art {
    order: 0;
    height: clamp(560px, calc(100svh - var(--nav-h) - 60px), 800px);
    margin: 0 calc(-1 * ((100vw - min(100vw, var(--container))) / 2 + var(--gutter))) 0 0;
  }
  .hv-art-main { border-radius: var(--r) 0 0 var(--r); }
  .hv-art-main img { object-position: 60% 50%; }
  .hv-art-side {
    display: block;
    position: absolute;
    left: -56px; bottom: 44px; top: auto; right: auto;
    width: 40%; max-width: 280px;
    aspect-ratio: 4 / 3;
    border-radius: var(--r);
    border: 6px solid #fff;
    box-shadow: var(--photo-shadow);
    overflow: hidden;
    }
  .hv-hero h1 { margin-top: 0; font-size: clamp(3.4rem, 5.6vw, 5.6rem); }
  .hv-sub { font-size: 1.15rem; max-width: 46ch; }
  .hv-hero .hero-btns { display: flex; flex-wrap: wrap; margin-top: 34px; }
  .hv-hero .hero-btns .btn { width: auto; padding-inline: 1.6rem; }
}

/* Entrée orchestrée : la photo se pose, puis le texte monte ligne par ligne.
   Aucune opacité sur l'image pour ne pas retarder le LCP. */
@media (prefers-reduced-motion: no-preference) {
  .hv-art-main img { animation: hv-settle 1.4s var(--ease) both; }
  .hv-art-side { animation: hv-rise 0.9s var(--ease) 0.55s both; }
  .hv-hero-copy > * { animation: hv-rise 0.8s var(--ease) both; }
  .hv-hero-copy > :nth-child(1) { animation-delay: 0.10s; }
  .hv-hero-copy > :nth-child(2) { animation-delay: 0.18s; }
  .hv-hero-copy > :nth-child(3) { animation-delay: 0.30s; }
  .hv-hero-copy > :nth-child(4) { animation-delay: 0.40s; }
  .hv-hero-copy > :nth-child(5) { animation-delay: 0.48s; }
}
@keyframes hv-settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes hv-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Anaïs : l'arche reste réservée à son portrait ---------- */
@media (min-width: 900px) { .hv-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.hv-arch { max-width: 520px; border-radius: 280px 280px var(--r) var(--r); }
.hv-text h2 { margin-top: 10px; font-size: clamp(2.3rem, 4.2vw, 3.7rem); max-width: 15ch; }
.hv-text .lead { margin-top: 24px; color: var(--ink); }
.hv-text p + p { font-size: 1.08rem; color: var(--ink-mute); max-width: 54ch; }

@media (max-width: 899px) {
  .hv-split { gap: 34px; }
  .hv-arch { width: 86%; aspect-ratio: 4 / 5; border-radius: 220px 220px var(--r) var(--r); }
  .hv-text .lead { font-size: 1.15rem; }
}

/* ---------- Pour qui : texte posé sur la photo, une seule superposition ---------- */
.hv-audience { padding-top: 0; }
.hv-aud-grid { display: block; }
.hv-aud-photo {
  min-height: 0;
  aspect-ratio: 4 / 5;
  margin: 0 calc(-1 * var(--gutter));
  border-radius: 0;
}
.hv-aud-photo img { object-position: 50% 40%; }
.hv-aud-panel {
  position: relative; z-index: 1;
  margin: -88px -6px 0;
  padding: 30px 24px 32px;
  background: var(--surface);
  border-radius: var(--r);
}
.hv-aud-panel h2 { margin-top: 8px; max-width: 13ch; }
.hv-aud-list { margin-top: 22px; gap: 0; }
.hv-aud-list li {
  padding: 15px 0 15px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 1.3rem;
  line-height: 1.32;
}
.hv-aud-list li::before { display: none; }
.hv-aud-panel .btn { margin-top: 26px; align-self: stretch; }

@media (min-width: 900px) {
  .hv-aud-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
  }
  .hv-aud-photo {
    grid-column: 2; grid-row: 1;
    margin: 0;
    border-radius: var(--r);
    aspect-ratio: 4 / 5;
  }
  .hv-aud-panel {
    grid-column: 1; grid-row: 1;
    margin: 0; padding: 0;
    background: transparent;
  }
  .hv-aud-list li { font-size: clamp(1.35rem, 1.8vw, 1.6rem); padding: 18px 0; }
  .hv-aud-panel .btn { align-self: flex-start; }
}

/* ---------- Lien vers la galerie ---------- */
.hv-marquee { padding-top: 8px; }
.hv-gal-link { text-align: center; padding: 22px 0 0; }
.hv-gal-link .text-link { font-size: 0.98rem; }

/* ---------- Pourquoi : grande photo, colonne de texte étroite ---------- */
.hv-why-grid { display: grid; gap: 34px; }
.hv-why-photo { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; order: 2; }
.hv-why-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hv-why-text { order: 1; display: contents; }
.hv-why .hv-head { margin-bottom: 0; order: 1; }
.hv-why .hv-cols { order: 3; display: block; }
.hv-why .hv-cols > div { padding: 20px 0; border-top: 1px solid var(--line-soft); }
.hv-why .hv-cols > div:last-child { border-bottom: 1px solid var(--line-soft); }
.hv-why .hv-cols h3 { font-size: 1.45rem; margin-bottom: 6px; }
.hv-why .hv-cols p { color: var(--ink-mute); font-size: 1rem; }

@media (min-width: 900px) {
  .hv-why-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .hv-why-photo { order: 0; position: sticky; top: 96px; aspect-ratio: 4 / 5; max-height: calc(100svh - 120px); }
  .hv-why-text { display: block; }
  .hv-why .hv-head { margin-bottom: 36px; }
  .hv-why .hv-head h2 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); }
}

/* ---------- Formules : composant .pricing dans system.css ---------- */
.hv-formules.hv-band { background: var(--mint); border-radius: 0; margin: 0; }

/* ---------- Étapes : frise .steps-line dans system.css ---------- */
.hv-proc-photo,
.hv-proc-photo[class] { border-radius: var(--r); aspect-ratio: 4 / 3; max-height: none; }
.hv-proc-photo img { object-position: 50% 60%; }
.hv-process .steps { margin-top: 8px; }
@media (min-width: 900px) {
  .hv-proc-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .hv-proc-photo, .hv-proc-photo[class] { aspect-ratio: 4 / 5; position: sticky; top: 96px; }
}

/* ---------- Avis : fond lagune, une grande citation à la fois ---------- */
.hv-testi.bg-navy { background: var(--lagoon); padding-block: clamp(72px, 10vw, 136px); }
.hv-testi.bg-navy .eyebrow { color: var(--sand-soft); }
.hv-testi .hv-head { margin-bottom: 28px; }
.hv-testi .carousel { max-width: none; margin: 0; }
.hv-testi .carousel-slide { padding: 0; }
.hv-testi .tcard { text-align: left; padding: 0; }
.hv-testi .tcard .stars { justify-content: flex-start; margin-bottom: 16px; }
.hv-testi .tcard p {
  font-style: normal; font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 2.3rem); line-height: 1.28; letter-spacing: -0.01em;
  max-width: 30ch;
}
.hv-testi .tcard .who { margin-top: 22px; }
.hv-testi.bg-navy .tcard .who span { color: var(--on-dark-mute); letter-spacing: 0; }
.hv-testi .carousel-arrows { justify-content: flex-start; margin-top: 30px; padding: 0; }
.hv-testi.bg-navy .carousel-btn { width: 48px; height: 48px; }
.hv-testi .carousel-dots { justify-content: flex-start; margin-top: 18px; }
.hv-testi .carousel-dots { gap: 2px; margin-left: -8px; }
.hv-testi.bg-navy .carousel-dot,
.hv-testi.bg-navy .carousel-dot.active { width: 26px; height: 26px; border-radius: 0; background: transparent; position: relative; }
.hv-testi .carousel-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.35); transition: width 0.3s var(--ease), margin 0.3s var(--ease);
}
.hv-testi .carousel-dot.active::after { width: 20px; margin-left: -10px; background: var(--sand-soft); }
.hv-testi .carousel-btn:focus-visible, .hv-testi .carousel-dot:focus-visible, .hv-testi a:focus-visible { outline-color: var(--sand-soft); }
.hv-testi-more { margin-top: 36px; }

@media (min-width: 900px) {
  .hv-testi > .container {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 7vw, 120px);
  }
  .hv-testi .hv-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .hv-testi .carousel { grid-column: 2; grid-row: 1 / 3; }
  .hv-testi-more { grid-column: 1; grid-row: 2; align-self: start; }
}

/* ---------- Girls Trips : grande photo, panneau de texte décalé qui la chevauche ---------- */
.hv-girls.hv-band { background: var(--surface); border-radius: 0; margin: 0; }
.hv-girls .split { display: block; }
.hv-girls .girls-mosaic { margin: 0 calc(-1 * var(--gutter)); }
.hv-girls .girls-mosaic-inner { aspect-ratio: 4 / 5; border-radius: 0; }
.hv-girls .girls-mosaic-inner:hover img { transform: none; }
.hv-girls .gm-main { object-position: 50% 72%; }
.hv-girls .split-text {
  position: relative; z-index: 1;
  margin: -96px calc(-1 * var(--gutter)) 0 34px;
  padding: 30px var(--gutter) 6px 26px;
  background: var(--surface);
  border-radius: var(--r) 0 0 var(--r);
}
.hv-girls .divider { display: none; }
.hv-girls .split-text h2 { margin-top: 8px; }
.hv-girls .split-text .lead { margin-top: 18px; font-size: 1.12rem; color: var(--ink); }
.hv-girls .feature-list li { font-size: 1rem; }
.hv-girls .split-text .btn { width: 100%; }

@media (min-width: 900px) {
  .hv-girls .split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }
  .hv-girls .girls-mosaic { grid-column: 1 / 7; grid-row: 1; margin: 0; }
  .hv-girls .girls-mosaic-inner { aspect-ratio: 4 / 5; max-height: 680px; border-radius: var(--r); }
  .hv-girls .gm-main { object-position: 50% 62%; }
  .hv-girls .split-text {
    grid-column: 6 / -1; grid-row: 1;
    align-self: center;
    margin: 0;
    padding: clamp(36px, 4vw, 56px);
    border-radius: var(--r);
    box-shadow: var(--photo-shadow);
  }
  .hv-girls .split-text .btn { width: auto; }
}

.hv-head h2, .hv-text h2, .hv-aud-panel h2, .hv-girls .split-text h2 { margin-top: 0; }

/* ---------- Autres services : grille des tuiles ---------- */
.hv-other-grid { gap: 34px; }
.tile .hv-small { margin-top: 8px; font-size: 0.95rem; font-weight: 600; color: var(--teal-deep); }
@media (min-width: 900px) {
  .hv-other-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}

/* =====================================================================
   Retours du 31.10 (2) : accueil plus court et plus varié
   ===================================================================== */

/* Hero mobile : titre et boutons dans le premier écran, la photo ensuite */
@media (max-width: 899px) {
  .hv-hero { padding-top: calc(var(--nav-h) + 18px); }
  .hv-hero-art { order: 2; height: min(70svh, 480px); margin-top: 6px; }
  .hv-hero h1 { font-size: clamp(2.5rem, 10.4vw, 3.4rem); }
  .hv-sub { margin-top: 14px; font-size: 1.04rem; }
  .hv-hero .hero-btns { margin-top: 22px; gap: 10px; }
  .hv-hero .hero-btns .btn { min-height: 52px; }
}

/* Carte de la Thaïlande : photos épinglées par lieu (bureau), carte nommée + rail de photos (mobile) */
.hv-map { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); }
.tmap { position: relative; margin: 0 auto; }
.tmap-land { display: block; width: min(64%, 240px); height: auto; margin: 0 auto; overflow: visible; }
.tmap-land path { fill: var(--mint); stroke: var(--teal); stroke-width: 1.2; stroke-linejoin: round; }
.tmap-land circle { fill: var(--teal); stroke: #fff; stroke-width: 2; }
.tmap-labels text { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--ink); }
.tmap-pins {
  list-style: none; margin: 26px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.tmap-pins::-webkit-scrollbar { display: none; }
.tmap-pin { flex: 0 0 42%; scroll-snap-align: start; }
.tmap-card { display: grid; gap: 8px; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.tmap-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.tmap-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
@media (min-width: 900px) {
  .tmap { width: 460px; aspect-ratio: 330 / 600; left: 36px; }
  .tmap-land { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
  .tmap-labels { display: none; }
  .tmap-pins { display: block; margin: 0; padding: 0; overflow: visible; }
  .tmap-pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
  .tmap-card { position: absolute; top: 0; width: 176px; }
  .tmap-card img { border: 4px solid #fff; box-shadow: var(--photo-shadow); }
  .tmap-r .tmap-card { left: 64px; transform: translateY(-30%); }
  .tmap-l .tmap-card { right: 64px; transform: translateY(-30%); text-align: right; }
  .tmap-l .tmap-card .tmap-name { justify-self: end; }
  .tmap-card::before { content: ""; position: absolute; top: 30%; width: 58px; height: 1px; background: var(--teal); }
  .tmap-r .tmap-card::before { left: -60px; }
  .tmap-l .tmap-card::before { right: -60px; }
  .tmap-pin:nth-child(4) .tmap-card { transform: translateY(-70%); }
  .tmap-pin:nth-child(4) .tmap-card::before { top: 70%; }
  .tmap-pin:nth-child(5) .tmap-card { transform: translateY(-10%); }
  .tmap-pin:nth-child(5) .tmap-card::before { top: 10%; }
  .hv-map { padding-bottom: 120px; }
}
@media (hover: hover) and (pointer: fine) {
  .tmap-card img { transition: transform 0.4s var(--ease); }
  .tmap-card:hover img { transform: scale(1.04); }
}

/* Pourquoi : grille, la photo occupe une colonne sur deux rangées */
.hv-why-v2.hv-why-grid { display: grid; gap: 28px; }
.hv-why-v2 .hv-why-text { display: contents; }
.hv-why-v2 .hv-head { order: 1; margin-bottom: 0; max-width: 680px; }
.hv-why-v2 .hv-why-photo { order: 2; position: static; aspect-ratio: 4 / 3; max-height: none; }
.hv-why-v2 .hv-why-photo img { object-position: 40% 45%; }
.hv-why-v2 .hv-cols { order: 3; display: grid; gap: 0; }
@media (min-width: 900px) {
  .hv-why-v2.hv-why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.95fr); column-gap: 36px; row-gap: 40px; }
  .hv-why-v2 .hv-head { grid-column: 1 / 3; grid-row: 1; }
  .hv-why-v2 .hv-cols { grid-column: 1 / 3; grid-row: 2; grid-template-columns: 1fr 1fr; gap: 0 36px; align-content: start; }
  .hv-why-v2 .hv-why-photo { grid-column: 3; grid-row: 1 / 3; aspect-ratio: auto; height: 100%; min-height: 520px; }
  .hv-why-v2 .hv-cols > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

/* Formules compactes : trois tuiles, le détail est sur Services */
.pricing-compact .formule h3 { font-size: 1.7rem; }
.pricing-compact .formule .price { margin-bottom: 2px; }
.hv-example { margin: 28px auto 0; max-width: 62ch; text-align: center; font-size: 1.02rem; color: var(--ink); }
.hv-example .price-chf { font-weight: 600; }
@media (max-width: 899px) {
  .pricing-compact .formules { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .pricing-compact .formule, .pricing-compact .formule + .formule, .pricing-compact .formule.featured { flex: none; width: 100%; }
}

/* Comment ça marche : frise horizontale de quatre étapes */
.hv-process .hv-head { margin-bottom: 36px; }
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: none; position: relative; }
.hstep { position: relative; padding-left: 56px; }
.hstep-num {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--teal); border-radius: 50%; background: var(--surface);
  font-size: 0.78rem; font-weight: 600; color: var(--teal-deep); font-variant-numeric: lining-nums tabular-nums;
}
.hstep h3 { font-size: 1.4rem; margin-bottom: 4px; }
.hstep p { color: var(--ink-mute); font-size: 1rem; }
.hsteps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
@media (min-width: 900px) {
  .hsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .hsteps::before { left: 17px; right: 17px; top: 17px; bottom: auto; width: auto; height: 1px; }
  .hstep { padding: 56px 0 0; }
}

/* Avis : cartes, trois visibles sur bureau, défilement aimanté sur mobile */
.hv-testi .hv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 32px; }
.g-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--r);
  color: #fff; font-weight: 600; font-variant-numeric: lining-nums;
}
.g-badge:hover { border-color: #fff; }
.reviews {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews > li { flex: 0 0 86%; scroll-snap-align: start; display: flex; }
.hv-testi .reviews .tcard {
  flex: 1; display: flex; flex-direction: column; text-align: left;
  background: var(--lagoon-soft); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r); padding: 26px 24px;
}
.hv-testi .reviews .tcard p { font-size: clamp(1.25rem, 1.6vw, 1.45rem); line-height: 1.35; max-width: none; flex: 1; }
.hv-testi .reviews .tcard .who { margin-top: 18px; }
.reviews:focus-visible { outline: 2px solid var(--sand-soft); outline-offset: 4px; }
@media (min-width: 900px) {
  .hv-testi > .container { display: block; }
  .reviews { margin: 0; padding: 0 0 8px; scroll-padding-inline: 0; gap: 20px; }
  .reviews > li { flex: 0 0 calc((100% - 40px) / 3.25); }
  .reviews { scrollbar-width: thin; }
}
.hv-testi-more { margin-top: 28px; }

/* Girls Trips : la sous-marque prend l'orange (sable) */
.girls-sand.hv-band { background: #F7EBDD; }
.girls-sand .split-text { background: #fff; }
.girls-sand .feature-list li .tick { background: var(--sand); color: var(--ink); }
.girls-sand .split-text .btn-teal { --bg: var(--sand); --fg: var(--ink); border-color: var(--sand); }
.girls-sand .split-text .btn-teal:hover { --bg: #D4924F; box-shadow: none; }
@media (max-width: 899px) { .girls-sand .split-text { background: #F7EBDD; } }

/* Autres services : titre au-dessus, deux tuiles */
.hv-other-v2.hv-other-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .hv-other-v2.hv-other-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hv-other-v2 .hv-head { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .hv-other-v2 .tile-photo { aspect-ratio: 16 / 11; } }
