/* ==========================================================================
   VANWAVE — accueil (FR / EN / ZH)
   Direction : « Paris à la tombée de la nuit » — bleu nuit, lampadaire ambre,
   pierre de taille. Chargé en plus de styles.css (modales, formulaire, toast).
   ========================================================================== */

/* Polices hébergées (licence SIL OFL) : plus de requête vers Google Fonts */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/bodoni-moda-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html.home { background: #0F1E3C; scroll-behavior: smooth; }

body.home {
  --night: #0F1E3C;
  --night-2: #172B52;
  --stone: #E8E2D5;
  --paper: #FAF8F3;
  --lamp: #E4A84B;
  --lamp-deep: #C98E34;
  --mute: #566074;
  --rule: rgba(15, 30, 60, 0.16);
  --rule-light: rgba(255, 255, 255, 0.22);

  /* variables lues par styles.css (modales, formulaire, toast) */
  --ink: #0F1E3C;
  --cream: #FAF8F3;
  --line-dark: rgba(15, 30, 60, 0.18);
  --font-serif: "Bodoni Moda", "Didot", "Playfair Display", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  background: var(--paper);
  color: var(--night);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 0;
}

html:lang(zh) body.home {
  --font-serif: "Bodoni Moda", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --font-sans: "Hanken Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

body.home :where(a, button):focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

body.home [id] { scroll-margin-top: 72px; }

.h-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- En-tête ---------- */
.h-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  color: #fff;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.h-header.is-scrolled {
  background: rgba(15, 30, 60, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.h-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding: 16px 0;
}
.h-mark {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.16em;
}
.h-nav { display: flex; gap: 30px; font-size: 0.95rem; }
.h-nav a { opacity: 0.88; padding-block: 6px; border-bottom: 1px solid transparent; transition: border-color 0.25s ease, opacity 0.25s ease; }
.h-nav a:hover { opacity: 1; border-color: var(--lamp); }
.h-tools { display: flex; align-items: center; gap: 22px; }
.h-lang { display: flex; gap: 14px; font-size: 0.9rem; }
.h-lang a { opacity: 0.8; }
.h-lang a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.h-book {
  background: var(--lamp);
  color: var(--night);
  border: 0;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease;
}
.h-book:hover { background: #F0BD6A; }

/* ---------- Héros ---------- */
.h-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--night);
}
.h-hero > picture, .h-hero > img { position: absolute; inset: 0; }
.h-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
}
.h-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 30, 60, 0.9) 0%, rgba(15, 30, 60, 0.58) 40%, rgba(15, 30, 60, 0.04) 72%),
    linear-gradient(0deg, rgba(15, 30, 60, 0.7) 0%, rgba(15, 30, 60, 0) 38%);
}
.h-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding: 0 0 clamp(56px, 11vh, 112px);
}
.h-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  max-width: 17ch;
  text-wrap: balance;
}
.h-hero-sub { margin-top: 22px; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, 0.88); }
.h-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.h-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.h-btn-primary { background: var(--lamp); color: var(--night); }
.h-btn-primary:hover { background: #F0BD6A; }
.h-btn-line { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.h-btn-line:hover { background: #fff; color: var(--night); border-color: #fff; }
.h-btn svg { width: 20px; height: 20px; }
.h-hero-note { margin-top: 18px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }

@keyframes h-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes h-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Titres de section ---------- */
.h-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 20ch;
  text-wrap: balance;
}

/* ---------- Tarifs : les trois prestations ---------- */
.h-board { background: var(--paper); padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 104px); }
.h-board-list { margin-top: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.h-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) auto;
  gap: 16px clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}
.h-row h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.15; }
.h-row p { color: var(--mute); max-width: 36em; }
.h-price { text-align: right; min-width: 9.5rem; }
.h-price strong { display: block; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.1; }
.h-price span { display: block; font-size: 0.9rem; color: var(--mute); }
.h-link {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: 0;
  font-weight: 600;
  color: var(--night);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--lamp);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.h-link:hover { text-decoration-color: var(--night); }

/* ---------- Excursions ---------- */
.h-trips { background: var(--night); color: #fff; padding: clamp(72px, 10vw, 128px) 0; }
.h-trips .h-h2 { color: #fff; }
.h-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); margin-top: clamp(36px, 5vw, 60px); }
.h-card { display: flex; flex-direction: column; }
.h-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-2); }
.h-card-img img { width: 100%; height: 100%; object-fit: cover; }
.h-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.7rem; line-height: 1.15; margin-top: 20px; }
.h-card p { margin-top: 6px; color: rgba(255, 255, 255, 0.78); }
.h-card-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.h-trips .h-link { color: #fff; text-decoration-color: var(--lamp); margin-top: 0; }
.h-trips .h-link:hover { text-decoration-color: #fff; }
.h-card-links a.h-link { font-weight: 400; opacity: 0.85; text-decoration-color: var(--rule-light); }
.h-more { margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--rule-light); }
.h-more p { color: rgba(255, 255, 255, 0.78); margin-bottom: 12px; }
.h-more ul { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.h-more .h-link { font-weight: 500; }

/* ---------- Flotte (une ligne) ---------- */
.h-fleet { background: var(--stone); padding: clamp(28px, 4vw, 44px) 0; }
.h-fleet p { font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.5; max-width: 52em; }
.h-fleet a, .h-fleet span.h-v { white-space: nowrap; }
.h-fleet a { text-decoration: underline; text-decoration-color: var(--lamp-deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.h-fleet a:hover { text-decoration-color: var(--night); }

/* ---------- Film (la seule vidéo du site) ---------- */
.h-film { position: relative; height: min(76vh, 58vw); min-height: 340px; background: var(--night); overflow: hidden; }
.h-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 30, 60, 0.78) 0%, rgba(15, 30, 60, 0) 55%); }
.h-film-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(24px, 5vw, 56px); color: #fff; }
.h-film-cap p { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.12; max-width: 18ch; text-wrap: balance; }

/* ---------- Avis ---------- */
.h-review { background: var(--paper); padding: clamp(64px, 9vw, 112px) 0; }
.h-review-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.h-review blockquote { max-width: 34em; }
.h-review blockquote p { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; }
.h-review .h-tr { margin-top: 14px; font-family: var(--font-sans); font-size: 1rem; color: var(--mute); line-height: 1.55; }
.h-review cite { display: block; margin-top: 22px; font-style: normal; font-weight: 600; }
.h-review cite span { font-weight: 400; color: var(--mute); }

/* ---------- Réservation / contact ---------- */
.h-contact { background: var(--night); color: #fff; padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.h-contact .h-h2 { color: #fff; max-width: 14ch; }
.h-contact-sub { margin-top: 18px; max-width: 30em; color: rgba(255, 255, 255, 0.82); }
.h-contact-lines { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule-light); }
.h-contact-lines a { opacity: 0.9; }
.h-contact-lines a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Pied de page ---------- */
.h-foot { background: #0A1630; color: rgba(255, 255, 255, 0.78); padding: 44px 0 36px; font-size: 0.95rem; }
.h-foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.h-foot .h-mark { color: #fff; font-size: 1.25rem; }
.h-foot p { margin-top: 8px; }
.h-foot-cols { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.h-foot ul { display: grid; gap: 8px; }
.h-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.h-foot h4 { font-weight: 600; color: #fff; margin-bottom: 10px; font-size: 0.95rem; }
.h-foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule-light); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.85rem; }

/* ---------- Mentions de société (pied de page) et page de texte ---------- */
.h-foot .h-legal { font-size: 0.85rem; opacity: 0.75; max-width: 32em; }
.h-doc { background: var(--paper); padding: 120px 0 88px; }
.h-doc .h-wrap { max-width: 760px; }
.h-doc h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; margin-bottom: 36px; }
.h-doc h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; margin: 40px 0 10px; }
.h-doc p, .h-doc li { color: var(--night); max-width: 40em; }
.h-doc p + p, .h-doc ul { margin-top: 10px; }
.h-doc ul { padding-left: 1.2em; list-style: disc; }
.h-doc a { text-decoration: underline; text-decoration-color: var(--lamp-deep); text-underline-offset: 4px; }

/* ---------- Fenêtres (réservation, programme) : adoucies aux couleurs de la page ---------- */
body.home .modal-overlay { background: rgba(10, 22, 48, 0.72); }
body.home .modal-content { border-radius: 2px; }
body.home .modal-content h2 { font-family: var(--font-serif); }
body.home .modal-content label,
body.home .opts legend { text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 600; }
body.home .modal-content label.check { font-weight: 400; }
body.home .modal-content .btn-solid { background: var(--night); color: #fff; text-transform: none; letter-spacing: 0.01em; font-size: 1rem; font-weight: 600; padding: 15px 28px; }
body.home .modal-content .btn-solid:hover { background: #000; }
body.home .section-tag { text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 600; color: var(--lamp-deep); }
body.home .toast { background: var(--paper); color: var(--night); }
body.home .whatsapp-float { font-family: var(--font-sans); }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .h-nav { display: none; }
  .h-review-grid { grid-template-columns: 1fr; }
  .h-cards { grid-template-columns: 1fr; }
  .h-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 4px 20px; align-items: start; }
  .h-card-img { grid-row: 1 / span 3; aspect-ratio: 4 / 5; }
  .h-card h3 { margin-top: 0; }
}
@media (max-width: 720px) {
  .h-wrap, .h-bar, .h-hero-copy { width: calc(100% - 36px); }
  .h-mark { font-size: 1.2rem; letter-spacing: 0.13em; }
  .h-tools { gap: 14px; }
  .h-lang { gap: 10px; font-size: 0.85rem; }
  .h-book { padding: 9px 16px; }
  .h-hero img { object-position: 54% 40%; }
  .h-hero::after { background: linear-gradient(0deg, rgba(15, 30, 60, 0.92) 0%, rgba(15, 30, 60, 0.55) 55%, rgba(15, 30, 60, 0.15) 100%); }
  .h-actions .h-btn { flex: 1 1 100%; justify-content: center; }
  .h-row { grid-template-columns: 1fr; padding: 28px 0; }
  .h-price { text-align: left; order: 1; }
  .h-row > div:nth-child(2) { order: 2; }
  .h-card { display: block; }
  .h-card-img { aspect-ratio: 4 / 3; }
  .h-card h3 { margin-top: 18px; }
  .h-film { height: 70vw; min-height: 300px; }
  .h-review-grid { grid-template-columns: 1fr; }
  .h-foot-top { display: block; }
  .h-foot-cols { margin-top: 28px; }
}
@media (max-width: 420px) {
  .h-lang { display: none; }
}

html:lang(zh) .h-hero h1 { line-height: 1.22; letter-spacing: 0.02em; max-width: 14em; }
html:lang(zh) .h-h2, html:lang(zh) .h-row h3, html:lang(zh) .h-card h3 { line-height: 1.3; letter-spacing: 0.02em; }
html:lang(zh) .h-mark { letter-spacing: 0.14em; }

@media (prefers-reduced-motion: reduce) {
  .h-hero img { animation: none; }
  html.home { scroll-behavior: auto; }
}
