/* ═══════════════════════════════════════════════════
   INDONÉSIE SAUVAGE — style dérivé du PDF
   Palette : crème #f6efe4 · encre #1f2d3a
   Étapes : teal #1b7f8c · corail #e2725b · or #d9a441
            violet #7a5ea8 · vert #3a9a5c
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #f6efe4;
  --bg-soft: #fbf6ec;
  --ink: #1f2d3a;
  --muted: #6b7680;
  --faint: #8a8a8a;
  --line: #e4d9c4;
  --c1: #1b7f8c; --c2: #e2725b; --c3: #d9a441; --c4: #7a5ea8; --c5: #3a9a5c;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(31, 45, 58, .18);
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

::selection { background: rgba(27, 127, 140, .25); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* ── Topbar ─────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-color: var(--line); }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px;
  white-space: nowrap;
}
.brand-sun {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--c3) 0 38%, #f9e6a0 38% 55%, var(--c3) 55%);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, .22);
}
.brand-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--c1); background: rgba(27, 127, 140, .1);
  padding: 2px 8px; border-radius: 999px;
}

.nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
/* Indice de scroll sur mobile : fondu à droite */
@media (max-width: 719px) {
  .topbar { position: relative; }
  .topbar::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none; z-index: 1;
  }
  .topbar.scrolled::after { background: linear-gradient(to right, transparent, color-mix(in srgb, var(--bg) 82%, transparent)); }
}
.nav-link {
  text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-link:hover { background: rgba(31, 45, 58, .07); }
.nav-link.active { background: var(--ink); color: var(--bg); }

.install-btn {
  font: 700 12.5px var(--font); color: #fff; background: var(--c1);
  border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap;
}
.install-btn:hover { filter: brightness(1.08); }

/* ── Nav compacte sur mobile ──────────────────── */
@media (max-width: 719px) {
  .nav-link { font-size: 12px; padding: 6px 9px; }
  .topbar { padding: 8px 10px; gap: 6px; }
  .brand-name { font-size: 13px; }
  .brand-badge { display: none; }
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  background-image: url("img/hero.png");
  background-size: cover;
  background-position: center 28%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px 20px 60px;
}
.hero::after {
  /* léger voile haut pour la lisibilité du titre */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 47, 58, .34) 0%, rgba(10, 47, 58, 0) 46%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; color: #fff; max-width: 760px; }

.hero-title {
  font-size: clamp(46px, 11vw, 88px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(10, 47, 58, .35);
}
.hero-islands { margin-top: 22px; font-size: clamp(15px, 2.4vw, 19px); font-weight: 600; letter-spacing: .04em; }
.hero-sub { margin-top: 10px; font-size: clamp(13px, 2vw, 15.5px); font-style: italic; opacity: .95; }
.hero-meta {
  display: inline-block; margin-top: 16px;
  font-size: clamp(11px, 1.8vw, 13px); font-weight: 600; letter-spacing: .06em;
  color: #fde3bd;
  border: 1px solid rgba(253, 227, 189, .45); border-radius: 999px;
  padding: 6px 16px;
}
.hero-cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 12px 22px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .65); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .75); border-radius: 14px;
  z-index: 1;
}
.hero-scroll span {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: #fff;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0%, 100% { opacity: 1; transform: translate(-50%, 0); }
  60% { opacity: .2; transform: translate(-50%, 10px); }
}

/* ── Sections ───────────────────────────────────── */
.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) clamp(18px, 4vw, 40px) 0;
  scroll-margin-top: 76px;
}
#etapes { padding-top: clamp(30px, 5vw, 56px); }

.section-head h2 {
  font-size: clamp(26px, 4.2vw, 32px);
  font-weight: 800; letter-spacing: .01em;
}
.section-intro { margin-top: 10px; max-width: 640px; color: var(--ink); font-size: 15.5px; }
.section-head::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5));
  margin-top: 16px;
}

/* ── Schéma parcours ────────────────────────────── */
.schema { margin-top: 34px; }
.schema-canvas {
  position: relative;
  container-type: inline-size;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schema-canvas > img { width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.sc-num {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  font-weight: 800; color: #fff;
  font-size: clamp(11px, 2.6cqw, 17px);
  text-align: center;
  line-height: 1;
}
.sc-label {
  position: absolute; left: var(--x); top: var(--y);
  transform: translateX(-50%);
  text-align: center; line-height: 1.25; white-space: nowrap;
}
.sc-label b { display: block; font-size: clamp(10px, 2.15cqw, 14.5px); font-weight: 700; color: var(--ink); }
.sc-label i { display: block; font-style: normal; font-size: clamp(9px, 1.85cqw, 12.5px); color: var(--muted); }
.schema figcaption {
  margin-top: 10px; text-align: right; font-style: italic;
  font-size: 12.5px; color: #4a6a74;
}

/* Schéma mobile : liste verticale */
.steps-mobile {
  list-style: none; margin-top: 26px;
  display: none; flex-direction: column; gap: 10px;
  position: relative;
}
.steps-mobile li {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-soft); border: 1.5px dashed color-mix(in srgb, var(--c) 45%, #fff);
  border-radius: 999px; padding: 10px 16px;
  position: relative;
}
.steps-mobile li:not(:last-child)::after {
  content: ""; position: absolute; left: 36px; top: 100%; height: 10px;
  border-left: 2px dashed color-mix(in srgb, var(--c) 55%, #fff);
}
.steps-mobile b {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--c); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 15px;
}
.steps-mobile strong { display: block; font-size: 15px; }
.steps-mobile span { display: block; font-size: 12.5px; color: var(--muted); }

@media (max-width: 719px) {
  .schema { display: none; }
  .steps-mobile { display: flex; }
}
@media (min-width: 720px) {
  .steps-mobile { display: none; }
}

/* ── Info cards parcours ────────────────────────── */
.info-grid {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.info-ico {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(27, 127, 140, .1); color: var(--c1);
  display: grid; place-items: center; margin-bottom: 12px;
}
.info-ico svg { width: 21px; height: 21px; }
.info-card h3 { font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.info-card p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 719px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ── Étapes ─────────────────────────────────────── */
.etape { margin-top: clamp(40px, 7vw, 72px); scroll-margin-top: 76px; }
.etape:first-of-type { margin-top: 0; }

.etape-ill {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  container-type: inline-size;
}
.etape-ill img { width: 100%; height: auto; max-height: 280px; object-fit: cover; }

.etape-num {
  position: absolute; left: 6.8%; top: 11.8%;
  transform: translate(-50%, -50%);
  font-size: clamp(18px, 4.4cqw, 30px);
  font-weight: 800; color: #fff; line-height: 1;
}
.etape-nuits {
  position: absolute; right: 3.4%; top: 7.5%;
  background: rgba(246, 239, 228, .92);
  color: var(--ink);
  font-weight: 700; font-size: clamp(12px, 2.6cqw, 16px);
  padding: .35em .9em; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(31, 45, 58, .12);
}

.etape-body { padding-top: 26px; max-width: 780px; }
.etape-body h3 { font-size: clamp(22px, 3.4vw, 27px); font-weight: 800; }
.etape-body h3::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c); margin-right: 12px; vertical-align: 6%;
}
.etape-intro { margin-top: 12px; font-size: 15px; }

.label {
  margin-top: 26px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--c);
}
.list { list-style: none; margin-top: 10px; display: grid; gap: 7px; }
.list li {
  position: relative; padding-left: 22px;
  font-size: 15px;
}
.list li::before {
  content: ""; position: absolute; left: 4px; top: .52em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c);
}

.hebergement {
  margin-top: 10px;
  background: color-mix(in srgb, var(--t) 55%, var(--bg-soft));
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
}

/* Slots photos */
.slots {
  margin-top: 30px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.slot {
  border: 1.5px dashed #c5b794;
  border-radius: 14px;
  min-height: 130px;
  display: grid; align-items: end; justify-items: center;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(31, 45, 58, .05) 0 16px, transparent 17px),
    var(--bg-soft);
  transition: border-color .2s, background-color .2s;
}
.slot:hover { border-color: var(--c); }
.slot::after {
  content: "+";
  position: relative; top: -22px;
  font-size: 20px; color: #b3a88e; font-weight: 300; line-height: 1;
}
.slot span {
  font-style: italic; font-size: 12.5px; color: var(--ink); opacity: .8;
  padding-bottom: 2px;
}
.slot-wide { grid-column: 1 / -1; min-height: 190px; }

/* Slots remplis avec photo */
.slot-filled {
  position: relative;
  overflow: hidden;
  border: 0; padding: 0;
  background: var(--t, var(--bg-soft));
  box-shadow: 0 6px 20px -8px rgba(31, 45, 58, .25);
}
.slot-filled::after { content: none; }
.slot-filled img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.slot-filled:hover img { transform: scale(1.035); }
.slot-filled span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  text-align: center;
  font-style: italic; font-size: 12.5px; color: #fff;
  text-shadow: 0 1px 6px rgba(10, 47, 58, .55);
  background: linear-gradient(180deg, rgba(10, 47, 58, 0) 0%, rgba(10, 47, 58, .55) 100%);
  opacity: 1;
}
.slot-filled { aspect-ratio: 4 / 3; min-height: 0; }
.slot-filled.slot-wide { aspect-ratio: 5 / 2; min-height: 0; }

@media (max-width: 639px) {
  .slots { grid-template-columns: 1fr; }
  .slot, .slot-wide { min-height: 110px; }
  .slot-filled, .slot-filled.slot-wide { aspect-ratio: 16 / 9; }
}

/* ── Jour par jour ──────────────────────────────── */
.days {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.day {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; display: flex; align-items: center; gap: 11px;
}
.day b {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--c); color: #fff; font-size: 12.5px; font-weight: 800;
  display: grid; place-items: center;
}
.day strong { display: block; font-size: 13.5px; line-height: 1.2; }
.day span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }

@media (max-width: 899px) { .days { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .days { grid-template-columns: 1fr; } }

/* ── Logistique ─────────────────────────────────── */
.table-wrap {
  margin-top: 28px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; background: var(--bg-soft); font-size: 14.5px; min-width: 540px; }
thead th {
  background: var(--c1); color: #fff; text-align: left;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  padding: 13px 18px;
}
tbody th, tbody td { padding: 13px 18px; text-align: left; border-top: 1px solid var(--line); }
tbody th { font-weight: 700; white-space: nowrap; }
tbody td:nth-child(2) { color: var(--muted); }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .35); }

.knowhow {
  margin-top: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.know-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.know-card h3 {
  color: var(--c2); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.know-card p { margin-top: 8px; font-size: 14.5px; }
@media (max-width: 719px) { .knowhow { grid-template-columns: 1fr; } }

.vignettes { margin-top: 30px; }
.vignettes img {
  width: 100%; height: auto; max-height: 260px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  margin-top: clamp(56px, 9vw, 96px);
  border-top: 1px solid var(--line);
  padding: 40px 20px 48px;
  text-align: center;
}
.footer-brand { font-size: 13px; color: var(--faint); letter-spacing: .04em; }
.footer-bye { margin-top: 6px; font-style: italic; font-size: 14px; color: var(--muted); }

/* ── Reveal animations ──────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
}

/* ── Recherche / Liens ─────────────────────────── */
.recherche-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.recherche-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rc, var(--c1));
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.recherche-card h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.recherche-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recherche-card li {
  font-size: 13.5px;
  line-height: 1.6;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.recherche-card li:last-child { border-bottom: 0; }
.recherche-card a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.recherche-card a:hover {
  color: var(--rc, var(--c1));
  text-decoration: underline;
}
.recherche-card a em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}
.recherche-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
  font-style: italic;
}
@media (max-width: 719px) {
  .recherche-grid { grid-template-columns: 1fr; }
}

/* ── Croisière ─────────────────────────────────── */
.croisiere-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}
.croisiere-intro p { margin: 0; }

.croisiere-boats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.boat-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--bc, var(--c4));
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
}
.boat-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}
.boat-type {
  font-size: 12px;
  color: var(--faint);
  font-style: italic;
  margin-bottom: 8px;
}
.boat-card p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.boat-card .boat-link {
  margin-top: auto;
  padding-top: 10px;
}
.boat-card .boat-link a {
  font-size: 13px;
  font-weight: 700;
  color: var(--bc, var(--c4));
  text-decoration: none;
}
.boat-card .boat-link a:hover { text-decoration: underline; }

.croisiere-timeline {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-day {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c4);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.tl-day b {
  display: inline-block;
  background: var(--c4);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  padding: 1px 7px;
  margin-right: 8px;
  letter-spacing: .03em;
}

.budget-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.budget-item {
  background: var(--bgc, var(--bg-soft));
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
}
.budget-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.budget-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}

.croisiere-tips {
  margin-top: 16px;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.croisiere-tips li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.croisiere-tips li strong {
  color: var(--c4);
  font-weight: 700;
}

@media (max-width: 719px) {
  .croisiere-boats { grid-template-columns: 1fr; }
  .budget-grid { grid-template-columns: 1fr 1fr; }
  .croisiere-tips { grid-template-columns: 1fr; }
}
