/* Voyages Passion — présentation. Palette chaude (papier / soleil), touche de
   classe : titres en serif, or brûlé + vert lagon. Le thème est choisi par
   l'heure locale dans theme.js. Aucune dépendance externe (polices système). */

:root {
  color-scheme: light;
  --bg: #faf6ef;          /* ivoire chaud, papier */
  --bg-alt: #fffdf8;
  --surface: #fffdf8;
  --border: #ece1cf;      /* sable */
  --text: #2a2018;        /* brun-noir, encre */
  --text-soft: #6c5d4e;   /* taupe chaud */
  --accent: #c07a2b;      /* or brûlé / soleil bas */
  --accent-ink: #a2621d;
  --accent-2: #2c7d6e;    /* vert lagon */
  --glow-1: rgba(224, 160, 74, .30);
  --glow-2: rgba(44, 125, 110, .18);
  --shadow: 0 1px 2px rgba(58, 42, 22, .06), 0 20px 44px rgba(58, 42, 22, .10);
  --shadow-sm: 0 1px 2px rgba(58, 42, 22, .05), 0 8px 22px rgba(58, 42, 22, .07);
  --radius: 14px;
  --wrap: 1080px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #16110c;          /* nuit chaude, désert */
    --bg-alt: #1d1711;
    --surface: #221b13;
    --border: #3a2f24;
    --text: #f3ead8;        /* crème */
    --text-soft: #b7a58c;
    --accent: #e6a552;      /* or lumineux sur fond sombre */
    --accent-ink: #f0b96f;
    --accent-2: #5cbca9;
    --glow-1: rgba(230, 165, 82, .22);
    --glow-2: rgba(92, 188, 169, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 22px 48px rgba(0, 0, 0, .55);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 22px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-ink); }

h1, h2, .brand-text {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.005em;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.brand-text { font-size: 1.2rem; }

.nav-list { list-style: none; display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--text-soft); font-weight: 600; font-size: .93rem; }
.nav-list a:hover { color: var(--text); }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--text); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .74rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.2rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -45% -25% auto -25%; height: 130%;
  background:
    radial-gradient(46% 46% at 78% 6%, var(--glow-1), transparent 70%),
    radial-gradient(60% 55% at 22% 26%, var(--glow-2), transparent 72%);
  pointer-events: none;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 700;
  color: var(--accent-ink); margin: 0 0 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.1; margin: 0 0 1.2rem; }
.lede { font-size: clamp(1.05rem, 2.1vw, 1.26rem); color: var(--text-soft); max-width: 44ch; margin: 0 0 1.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-strip { margin-top: 2.8rem; }
.hero-strip svg { width: 100%; height: 90px; display: block; }
.route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .9; }
.pin { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.pin-end { fill: var(--accent-2); stroke: var(--accent-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.8rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 46ch; margin: 0 0 2.6rem; }
.kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 700;
  color: var(--accent-ink); margin: 0 0 .8rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }
.section h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); line-height: 1.22; margin: 0 0 .85rem; }
.section-lede { color: var(--text-soft); font-size: 1.04rem; margin: 0; }

/* Steps */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-ink);
  font-family: var(--font-serif); font-weight: 700; margin-bottom: .9rem;
}
.step h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-soft); }

/* Feature grid */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.45rem; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-sm); }
.ico { font-size: 1.5rem; display: block; margin-bottom: .6rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* Security */
.security { background: linear-gradient(180deg, var(--glow-1), transparent 42%); }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sec-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.4rem 3rem; position: relative; box-shadow: var(--shadow-sm);
}
.sec-list li::before {
  content: ""; position: absolute; left: 1.2rem; top: 1.55rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.sec-list h3 { margin: 0 0 .3rem; font-size: 1.03rem; }
.sec-list p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* Why */
.why { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.why div { border-left: 2px solid color-mix(in srgb, var(--accent) 60%, var(--border)); padding: .3rem 0 .3rem 1rem; color: var(--text-soft); }
.why strong { color: var(--text); font-weight: 600; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: .7rem; }
.final-cta p { max-width: 54ch; margin: 0 auto 1.7rem; color: var(--text-soft); }
.final-cta .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner { padding: 2.1rem 0; display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner .brand-text { font-size: 1rem; }
.muted { color: var(--text-soft); font-size: .9rem; }

/* Page 404 */
.err { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.err-cta { margin-top: 1.4rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Mobile nav */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .5rem 1.4rem 1rem;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
  .nav-list li:last-child { border-bottom: 0; padding-top: .9rem; }
  .nav-list .btn { width: 100%; }
}
