:root {
  --ink: #0f2a22;
  --haze: #e7f2ec;
  --lime: #d4f06a;
  --lime-ink: #163028;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--haze);
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 500;
  overflow-x: hidden;
  background: #0b211b;
}

.hero {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  transform: scale(1.06);
  animation: drift 28s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.04);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(6, 22, 18, 0.88) 0%,
      rgba(6, 22, 18, 0.72) 38%,
      rgba(6, 22, 18, 0.28) 62%,
      rgba(6, 22, 18, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(6, 22, 18, 0.35) 0%, rgba(6, 22, 18, 0.1) 40%, rgba(6, 22, 18, 0.82) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    calc(1.5rem + var(--safe-top))
    clamp(1.25rem, 4vw, 2.5rem)
    calc(5.5rem + var(--safe-bottom));
  max-width: 40rem;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: "Bricolage Grotesque", Figtree, sans-serif;
  font-weight: 800;
  font-size: clamp(2.55rem, 9vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #f7fdf9;
  text-shadow: 0 1px 18px rgba(6, 22, 18, 0.45);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.stage h1 {
  margin: 0;
  max-width: 16ch;
  font-family: "Bricolage Grotesque", Figtree, sans-serif;
  font-weight: 600;
  font-size: clamp(1.45rem, 4.4vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #f1f8f3;
  text-shadow: 0 1px 14px rgba(6, 22, 18, 0.4);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.lede {
  margin: 0.95rem 0 0;
  max-width: 34ch;
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  line-height: 1.5;
  color: rgba(241, 248, 243, 0.94);
  text-shadow: 0 1px 12px rgba(6, 22, 18, 0.35);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.cta {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--lime);
  color: var(--lime-ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #dff58a;
}

.btn-ghost {
  background: rgba(6, 22, 18, 0.45);
  color: #f7fdf9;
  border: 1px solid rgba(247, 253, 249, 0.55);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(6, 22, 18, 0.62);
}

.hero-foot {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem) calc(0.85rem + var(--safe-bottom));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(231, 242, 236, 0.58);
  opacity: 0;
  animation: fade 1s ease 0.9s forwards;
}

.hero-foot a,
.site-foot a {
  color: rgba(231, 242, 236, 0.78);
  text-decoration: none;
}

.hero-foot a:hover,
.site-foot a:hover {
  color: #f7fdf9;
}

.foot-sep {
  opacity: 0.55;
}

.story {
  position: relative;
  z-index: 1;
  padding:
    clamp(3.5rem, 8vw, 5.5rem)
    clamp(1.25rem, 4vw, 2.5rem)
    clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(212, 240, 106, 0.1), transparent 55%),
    linear-gradient(180deg, #12352a 0%, #0f2a22 55%, #0b211b 100%);
}

.story-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.story h2 {
  margin: 0;
  max-width: 16ch;
  font-family: "Bricolage Grotesque", Figtree, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f7fdf9;
}

.story-copy {
  margin-top: 1.35rem;
  max-width: 38rem;
}

.story-copy p {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  line-height: 1.65;
  color: rgba(231, 242, 236, 0.9);
}

.story-copy a {
  color: #e8f7a8;
}

.story-copy a:hover {
  color: #f4ffc4;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem) calc(1.25rem + var(--safe-bottom));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(231, 242, 236, 0.55);
  background: #0b211b;
  border-top: 1px solid rgba(231, 242, 236, 0.08);
}

/* Mentions légales */
.legal-page {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(212, 240, 106, 0.12), transparent 50%),
    linear-gradient(180deg, #12352a 0%, #0f2a22 45%, #0b211b 100%);
  color: var(--haze);
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding:
    calc(1.1rem + var(--safe-top))
    clamp(1.25rem, 4vw, 2.5rem)
    0.5rem;
}

.legal-brand {
  font-family: "Bricolage Grotesque", Figtree, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #f7fdf9;
  text-decoration: none;
}

.legal-back {
  color: rgba(231, 242, 236, 0.78);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.legal-back:hover {
  color: #f7fdf9;
}

.legal {
  max-width: 40rem;
  padding:
    1.5rem
    clamp(1.25rem, 4vw, 2.5rem)
    calc(3rem + var(--safe-bottom));
}

.legal h1 {
  margin: 0 0 1.5rem;
  font-family: "Bricolage Grotesque", Figtree, sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.03em;
  color: #f7fdf9;
}

.legal section + section {
  margin-top: 1.6rem;
}

.legal h2 {
  margin: 0 0 0.55rem;
  font-family: "Bricolage Grotesque", Figtree, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lime);
}

.legal p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: rgba(231, 242, 236, 0.9);
}

.legal a {
  color: #e8f7a8;
}

.legal a:hover {
  color: #f4ffc4;
}

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

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

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

  .hero-image,
  .brand,
  .stage h1,
  .lede,
  .cta,
  .hero-foot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 900px) {
  .stage {
    justify-content: center;
    padding-bottom: calc(2.5rem + var(--safe-bottom));
  }
}
