:root {
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ink: #07142F;
  --navy: #0A1628;
  --navy-deep: #0A1E45;
  --brand: #003DA5;
  --brand-hover: #2D6EDB;
  --sky: #86E1FF;
  --paper: #F7FBFF;
  --ink-muted: #4A5A74;
  --dark-muted: #C9D7EC;
  --border: #E3EAF4;
  --footer-muted: #A7BAD7;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-hover);
}

[hidden] {
  display: none !important;
}

.site {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  color: var(--ink);
}

.trail {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(247, 251, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11.6%;
  overflow: hidden;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.brand-slogan {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #5A6B85;
}

.nav-cta {
  flex: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--brand-hover);
  color: var(--paper);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 96px clamp(20px, 6vw, 96px) 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url(../assets/terrain-charlevoix.jpg) center 30% / cover;
  filter: brightness(0.5) saturate(0.85);
}

.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 44, 0.5) 0%, rgba(7, 21, 44, 0.3) 45%, rgba(7, 21, 44, 0.85) 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(255, 190, 125, 0.28) 0%, rgba(255, 170, 110, 0) 45%);
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(620px, 56%);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-lead {
  margin: 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark-muted);
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.eyebrow-dark {
  color: var(--sky);
}

.eyebrow-light {
  color: var(--brand-hover);
}

.trail-start {
  position: absolute;
  left: 76%;
  top: 50%;
  width: 2px;
  height: 2px;
}

.journey {
  position: relative;
  z-index: 2;
  padding: 8vh clamp(20px, 6vw, 96px) 0;
  display: flex;
  flex-direction: column;
  gap: 30vh;
}

.cp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: center;
  gap: 0 48px;
}

.cp-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
}

.cp h2,
.arrivee-title {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.cp-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.cp-zone {
  height: max(58vh, 440px);
}

.arrivee {
  position: relative;
  margin-top: 30vh;
  background: var(--navy);
  color: var(--paper);
  padding: 26vh clamp(20px, 6vw, 96px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.arrivee > * {
  position: relative;
  z-index: 2;
}

#arrivee {
  scroll-margin-top: 90px;
}

.logo-tile-wrap {
  width: clamp(120px, 12vw, 168px);
  aspect-ratio: 1;
}

.logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 15%;
  border: 2px solid var(--sky);
  opacity: 0;
}

.logo-tile {
  position: absolute;
  inset: 0;
  border-radius: 11.6%;
  background: var(--brand);
}

.trail-end {
  position: absolute;
  left: 45.7%;
  top: 0;
  width: 2px;
  height: 2px;
  margin: -1px 0 0 -1px;
}

.arrivee-title {
  margin-top: 20px;
  font-size: clamp(40px, 5.6vw, 84px);
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.arrivee-lead {
  margin: 24px 0 0;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark-muted);
  text-wrap: pretty;
}

.form-wrap {
  margin-top: 36px;
  width: 100%;
  max-width: 520px;
}

#pilot-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#pilot-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(247, 251, 255, 0.22);
  background: rgba(247, 251, 255, 0.06);
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  outline: none;
}

#pilot-form input::placeholder {
  color: rgba(247, 251, 255, 0.55);
}

#pilot-form input:focus-visible {
  border-color: var(--sky);
}

.form-error {
  font-size: 13px;
  color: #FFB4A8;
}

.form-submit {
  align-self: center;
  margin-top: 4px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--sky);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.form-submit:hover {
  background: var(--paper);
  color: var(--brand);
}

.form-success {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid rgba(134, 225, 255, 0.4);
  background: rgba(134, 225, 255, 0.08);
  text-align: left;
}

.form-success-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sky);
}

.form-success-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
}

.site-footer {
  align-self: stretch;
  margin-top: 22vh;
  padding: 26px 0 30px;
  border-top: 1px solid rgba(247, 251, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--footer-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--footer-muted);
}

.footer-links a:hover {
  color: var(--paper);
}

.pin-flag {
  transform: scale(0);
  transition: transform 0.55s cubic-bezier(.3, 1.6, .5, 1);
}

.pin-pulse {
  opacity: 0;
}

[data-reveal]:not([data-reveal="h"]) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease) var(--reveal-delay, 0ms),
    transform 1.1s var(--ease) var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal]:not([data-reveal="h"]) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pin-flag {
    transition: none;
  }
}

@media (max-width: 719px) {
  .brand-slogan {
    display: none;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .hero-content {
    max-width: 100%;
    min-width: 0;
  }

  .trail-start {
    left: calc(100% - 40px);
    top: 90%;
  }

  .journey {
    gap: 16vh;
  }

  .cp {
    display: block;
    position: relative;
  }

  .cp-zone {
    position: absolute;
    top: -24px;
    bottom: -24px;
    width: 56px;
    height: auto;
  }

  .cp[data-side="right"] .cp-zone {
    right: -8px;
  }

  .cp[data-side="left"] .cp-zone {
    left: -8px;
  }

  .cp[data-side="right"] .cp-copy {
    padding-right: 64px;
  }

  .cp[data-side="left"] .cp-copy {
    padding-left: 64px;
  }

  .arrivee {
    margin-top: 16vh;
    padding-top: 18vh;
  }
}

/* ---------- Contenu éditorial (page confidentialité) ---------- */
.page {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 130px clamp(20px, 5vw, 40px) 60px;
}

.page-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.page-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.page-meta {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #5A6B85;
}

.note {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  background: #F4F8FF;
}

.prose h2 {
  margin: 48px 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.prose h3 {
  margin: 30px 0 10px;
  font-size: 18px;
  font-weight: 650;
}

.prose p,
.prose li {
  font-size: 15.5px;
  line-height: 1.7;
  color: #24324F;
}

.prose ul {
  margin: 12px 0;
  padding-left: 22px;
}

.prose li {
  margin: 6px 0;
}

.prose table {
  margin: 16px 0;
  border-collapse: collapse;
  width: 100%;
  max-width: 560px;
}

.prose th {
  padding: 10px 14px;
  border-bottom: 2px solid var(--brand);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: left;
  color: var(--brand);
}

.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Bande de pied de page sombre (page confidentialité) ---------- */
.footer-band {
  background: var(--navy);
  margin-top: 80px;
  padding: 0 clamp(20px, 6vw, 96px);
}

.footer-band .site-footer {
  margin-top: 0;
}

/* ---------- FAQ (accueil) ---------- */
.hero-note {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--footer-muted);
  text-wrap: pretty;
}

.faq {
  margin: 44px auto 0;
  width: 100%;
  max-width: 640px;
  text-align: left;
}

.faq h3 {
  margin: 14px 0 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--paper);
}

.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--sky);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark-muted);
  text-wrap: pretty;
}

@media (max-width: 719px) {
  .page {
    padding-top: 104px;
  }
}
