:root {
  --bg: #f3eee6;
  --bg-deep: #e5ddd1;
  --paper: rgba(255, 251, 245, 0.78);
  --paper-strong: #fffaf4;
  --line: rgba(18, 43, 53, 0.1);
  --ink: #17323b;
  --ink-soft: rgba(23, 50, 59, 0.72);
  --teal: #1d697d;
  --teal-deep: #103745;
  --sand: #f0e1cc;
  --amber: #cf7a49;
  --sage: #d7eadf;
  --shadow: 0 22px 70px rgba(22, 39, 48, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(circle at top left, rgba(240, 202, 170, 0.9), transparent 34%),
    radial-gradient(circle at right 20% top 10%, rgba(29, 105, 125, 0.22), transparent 26%),
    linear-gradient(180deg, #f8f3ec 0%, var(--bg) 42%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient,
.grid-overlay {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.ambient {
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.3;
}

.ambient-left {
  top: -12rem;
  left: -8rem;
  background: #f1b68e;
}

.ambient-right {
  right: -10rem;
  top: 14rem;
  background: #7bb0bd;
}

.grid-overlay {
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 55, 69, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 55, 69, 0.03) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1220px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 1rem 0 0.8rem;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(16, 55, 69, 0.08);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-copy {
  display: grid;
  margin-right: 0.6rem;
}

.brand-copy strong {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.brand-copy small {
  color: rgba(23, 50, 59, 0.6);
  font-size: 0.78rem;
}

.jumpbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.55rem;
}

.jumpbar a {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.4rem 0 4rem;
}

.panel,
.site-footer {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 55%);
  pointer-events: none;
}

.hero,
.panel {
  padding: 1.55rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 390px);
  gap: 1.3rem;
  margin-bottom: 1.4rem;
}

.hero-copy,
.hero-side,
.section-head,
.documents-grid,
.metrics-grid,
.traveller-grid,
.dossier-layout,
.narrative-layout,
.budget-layout,
.roadmap-grid {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.mini-kicker,
.footer-label,
.metric-label,
.fact-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(23, 50, 59, 0.58);
}

.hero h1,
.section-head h2,
.comparison-head h3,
.footer-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin-top: 0.65rem;
  max-width: 11ch;
  font-size: clamp(3.2rem, 6.4vw, 5.8rem);
}

.hero-text {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.74rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(23, 50, 59, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

.chip::before,
.comparison-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(207, 122, 73, 0.14);
}

.hero-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-orb {
  min-height: 200px;
  padding: 1.25rem;
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(145deg, var(--teal-deep), #195263);
  color: #fff8f1;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.orb-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.72;
}

.hero-orb strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 7vw, 4.8rem);
  line-height: 1;
}

.hero-orb span {
  max-width: 18ch;
  color: rgba(255, 248, 241, 0.82);
  font-weight: 700;
}

.fact-stack {
  display: grid;
  gap: 0.8rem;
}

.fact-card,
.metric-card,
.document-card,
.traveller-card,
.practical-card,
.theme-card,
.objective-card,
.finance-card,
.summary-card,
.bar-card,
.comparison-card,
.day-card,
.insight-card,
.timeline-item {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 50, 59, 0.08);
}

.fact-card {
  padding: 1rem 1.05rem;
}

.fact-value {
  margin: 0.28rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.action-button {
  appearance: none;
  cursor: pointer;
  border: 0;
  padding: 0.9rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(16, 55, 69, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.action-button.ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border: 1px solid rgba(23, 50, 59, 0.1);
  box-shadow: none;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px);
}

.action-button:focus-visible {
  outline: 2px solid rgba(29, 105, 125, 0.3);
  outline-offset: 3px;
}

#documents,
#voyageurs,
#dossier,
#contexte,
#cadrage,
#budget,
#roadmap {
  margin-bottom: 1.4rem;
}

.section-head {
  margin-bottom: 1.15rem;
}

.section-head h2 {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 3.9vw, 3rem);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.document-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.05rem;
}

.document-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.document-type,
.source-pill,
.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.document-type {
  background: rgba(29, 105, 125, 0.1);
  color: var(--teal);
}

.source-pill {
  background: rgba(207, 122, 73, 0.1);
  color: var(--amber);
}

.document-card h3,
.traveller-card h3,
.comparison-card h4,
.day-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.document-card p,
.theme-card p,
.objective-card p,
.insight-card p,
.traveller-meta p,
.comparison-card p,
.day-card p,
.practical-card p,
.narrative-copy p {
  margin: 0;
}

.document-card span {
  color: var(--ink-soft);
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.metrics-grid,
.finance-card-grid,
.budget-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.metric-card,
.finance-card,
.summary-card {
  padding: 1rem;
}

.metric-value,
.finance-value,
.summary-value {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.metric-note,
.finance-note,
.summary-note {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.insight-list {
  display: grid;
  gap: 0.9rem;
}

.insight-card {
  padding: 1rem;
}

.insight-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.traveller-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.traveller-card {
  padding: 1.15rem;
}

.traveller-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.traveller-role {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.traveller-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.traveller-tag {
  padding: 0.44rem 0.68rem;
  border-radius: 999px;
  background: rgba(29, 105, 125, 0.1);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.traveller-tag.alert {
  background: rgba(207, 122, 73, 0.14);
  color: var(--amber);
}

.traveller-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin-top: 1rem;
}

.meta-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(23, 50, 59, 0.55);
}

.meta-value {
  margin-top: 0.2rem;
  font-weight: 700;
}

.traveller-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(29, 105, 125, 0.08), rgba(255, 255, 255, 0.72));
  color: var(--ink-soft);
  font-weight: 700;
}

.dossier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.95fr);
  gap: 1rem;
}

.timeline {
  display: grid;
  gap: 0.95rem;
}

.timeline-item {
  padding: 1rem 1rem 1rem 1.15rem;
  border-left: 3px solid rgba(29, 105, 125, 0.24);
  background: linear-gradient(90deg, rgba(29, 105, 125, 0.08), rgba(255, 255, 255, 0.72));
}

.timeline-date {
  margin: 0;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-title {
  margin: 0.3rem 0 0;
  font-weight: 800;
  font-size: 1.06rem;
}

.timeline-detail {
  margin-top: 0.45rem;
  color: var(--ink-soft);
}

.practical-stack {
  display: grid;
  gap: 0.9rem;
}

.practical-card {
  padding: 1rem;
}

.practical-title {
  margin: 0 0 0.32rem;
  font-weight: 800;
}

.practical-value {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.practical-note {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.narrative-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
}

.narrative-copy {
  display: grid;
  gap: 1rem;
}

.theme-grid,
.objective-list,
.comparison-stack {
  display: grid;
  gap: 0.9rem;
}

.theme-card,
.objective-card,
.comparison-block,
.bar-card {
  padding: 1rem;
}

.theme-title,
.objective-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 1rem;
}

.inner-split {
  margin-bottom: 0;
}

.budget-summary-grid {
  margin-bottom: 1rem;
}

.budget-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 1rem;
}

.budget-bars {
  display: grid;
  gap: 0.9rem;
}

.bar-card {
  display: grid;
  gap: 0.72rem;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.bar-title {
  font-weight: 800;
}

.bar-value {
  font-weight: 800;
}

.bar-track {
  width: 100%;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(23, 50, 59, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--teal));
}

.bar-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.comparison-stack {
  gap: 1rem;
}

.comparison-block {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(23, 50, 59, 0.08);
}

.comparison-head {
  margin-bottom: 0.9rem;
}

.comparison-head h3 {
  margin-top: 0.28rem;
  font-size: 1.55rem;
}

.comparison-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem;
  margin-top: 0.8rem;
}

.comparison-card:first-child {
  margin-top: 0;
}

.comparison-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.comparison-card strong {
  font-size: 1.12rem;
}

.comparison-card p {
  color: var(--ink-soft);
}

.comparison-card.is-selected {
  background: linear-gradient(135deg, rgba(29, 105, 125, 0.12), rgba(255, 255, 255, 0.8));
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.day-card {
  padding: 1rem;
}

.day-date {
  margin: 0;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-card h3 {
  margin-top: 0.45rem;
}

.day-list {
  display: grid;
  gap: 0.68rem;
  margin-top: 0.9rem;
}

.day-item {
  display: flex;
  align-items: start;
  gap: 0.72rem;
}

.day-item::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.38rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.55rem;
}

.footer-title {
  margin-top: 0.2rem;
  font-size: 1.5rem;
}

.footer-docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.55rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(1rem);
  max-width: calc(100% - 2rem);
  padding: 0.92rem 1.15rem;
  border-radius: 999px;
  background: rgba(16, 55, 69, 0.94);
  color: #fff;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 680ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .documents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .split-layout,
  .dossier-layout,
  .narrative-layout,
  .budget-layout,
  .traveller-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    justify-content: stretch;
  }

  .jumpbar {
    justify-content: start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .hero-side {
    grid-template-columns: minmax(160px, 220px) 1fr;
    align-items: start;
  }

  .hero-orb {
    min-height: 100%;
  }
}

@media (max-width: 760px) {
  .shell,
  .topbar {
    width: min(100% - 0.8rem, 1220px);
  }

  .hero,
  .panel,
  .site-footer {
    padding: 1.15rem;
  }

  .hero-side,
  .metrics-grid,
  .finance-card-grid,
  .budget-summary-grid,
  .documents-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .traveller-meta {
    grid-template-columns: 1fr;
  }

  .traveller-top,
  .comparison-top,
  .site-footer {
    flex-direction: column;
    align-items: start;
  }

  .action-row,
  .footer-docs {
    width: 100%;
    justify-content: start;
  }

  .action-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-top: 0.7rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-copy {
    margin-right: 0;
  }

  .hero h1 {
    max-width: 100%;
  }

  .chip-row {
    gap: 0.55rem;
  }

  .chip {
    width: 100%;
    justify-content: center;
  }

  .comparison-block,
  .bar-card,
  .summary-card,
  .metric-card,
  .finance-card,
  .document-card,
  .traveller-card,
  .day-card {
    padding: 0.95rem;
  }
}

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

  .reveal,
  .action-button,
  .toast {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .ambient,
  .grid-overlay,
  .topbar,
  .action-row,
  .toast {
    display: none !important;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .panel,
  .site-footer,
  .fact-card,
  .metric-card,
  .document-card,
  .traveller-card,
  .practical-card,
  .theme-card,
  .objective-card,
  .finance-card,
  .summary-card,
  .bar-card,
  .comparison-card,
  .day-card,
  .insight-card,
  .timeline-item {
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    border-color: rgba(0, 0, 0, 0.12);
  }
}
