:root {
  --ink: #0c1f18;
  --ink-soft: #24352e;
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --moss: #1a5c3d;
  --moss-deep: #0f3d29;
  --brass: #9a7340;
  --brass-hot: #b8894a;
  --line: rgba(12, 31, 24, 0.14);
  --mist: rgba(243, 239, 230, 0.78);
  --danger: #8b2e2e;
  --radius: 2px;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Literata", "Georgia", serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.topo {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(26, 92, 61, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(154, 115, 64, 0.12), transparent 50%),
    linear-gradient(165deg, #f7f3ea 0%, #eae4d6 45%, #d9e5dc 100%);
}

.topo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cpath fill='none' stroke='%230c1f18' stroke-opacity='0.12' stroke-width='1' d='M10 90c20-40 40-40 60 0s40 40 60 0 40-40 60 0'/%3E%3Cpath fill='none' stroke='%230c1f18' stroke-opacity='0.08' stroke-width='1' d='M0 40c30-20 50-20 80 0s50 20 80 0 50-20 80 0'/%3E%3Cpath fill='none' stroke='%230c1f18' stroke-opacity='0.08' stroke-width='1' d='M0 140c30-20 50-20 80 0s50 20 80 0 50-20 80 0'/%3E%3C/svg%3E");
  animation: drift 48s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 180px 90px; }
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Hero —— */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 1.25rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(15, 61, 41, 0.92) 0%, rgba(15, 61, 41, 0.55) 38%, rgba(243, 239, 230, 0.2) 62%, transparent 75%),
    linear-gradient(180deg, transparent 40%, var(--paper) 92%);
  animation: heroIn 1.2s ease-out both;
}

.hero-panel {
  position: absolute;
  right: max(1rem, calc((100% - 72rem) / 2));
  top: 18%;
  width: min(42vw, 26rem);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(243, 239, 230, 0.28);
  background:
    linear-gradient(160deg, rgba(243, 239, 230, 0.08), rgba(26, 92, 61, 0.25)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(243, 239, 230, 0.08) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(243, 239, 230, 0.06) 24px
    );
  box-shadow: inset 0 0 0 1px rgba(12, 31, 24, 0.08);
  opacity: 0;
  animation: rise 1s 0.25s ease both;
  pointer-events: none;
}

.hero-panel::after {
  content: "Leve · Boucle · PDF";
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.75);
}

@media (max-width: 820px) {
  .hero-panel { display: none; }
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.04); }
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(4rem, 18vh, 9rem);
  color: var(--paper);
  opacity: 0;
  animation: rise 0.8s 0.15s ease both;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  text-decoration: none;
}

.nav a.quiet {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  border-bottom: 1px solid transparent;
}

.nav a.quiet:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}

.hero-copy {
  max-width: 38rem;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.9s 0.35s ease both;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
  color: var(--moss-deep);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

.hero-copy p.lede {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  max-width: 36ch;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.35rem;
  background: var(--moss);
  color: var(--paper);
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--moss-deep);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.meta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.meta strong {
  color: var(--moss-deep);
  font-weight: 700;
}

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

/* —— Sections —— */
section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.section-text {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
}

.band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
}

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

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.steps .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brass);
  min-width: 1.5rem;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.facts li {
  padding-left: 1rem;
  border-left: 2px solid var(--moss);
}

.facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.facts span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer a {
  color: var(--moss-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.err {
  color: var(--danger);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.footer-brand {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
}

.nav-logo {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  margin-right: 0.45rem;
  vertical-align: middle;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}
.tip-secure {
  margin-top: 0.85rem;
  max-width: 36rem;
  opacity: 0.9;
  font-size: 0.8rem;
  line-height: 1.45;
}
.tip-secure em {
  font-style: normal;
  font-weight: 700;
  color: var(--moss-deep);
}