:root {
  --green: #97c000;
  --green-dark: #5f7a06;
  --green-soft: #e9f2c9;
  --cream: #faf7f0;
  --sand: #f0e9da;
  --ink: #1f2a1c;
  --muted: #5d6658;
  --line: rgba(31, 42, 28, 0.12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

/* Lenis */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 999px;
}

/* Découpage du texte animé */

.line {
  display: block;
  overflow: hidden;
  padding: 0.12em 0.08em 0.06em 0;
  margin-bottom: -0.1em;
}

.char {
  display: inline-block;
  will-change: transform;
}

/* Loader */

.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  background: var(--green);
  color: #fff;
}

.js .loader {
  display: grid;
}

.loader__logo {
  width: clamp(8rem, 22vw, 13rem);
  height: auto;
  border-radius: 50%;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.blob--one {
  width: min(70vw, 720px);
  aspect-ratio: 1;
  top: -22%;
  right: -18%;
  background: var(--green);
}

.blob--two {
  width: min(46vw, 420px);
  aspect-ratio: 1;
  bottom: -18%;
  left: -12%;
  background: var(--sand);
}

.header,
.hero__content,
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo__img {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}

.header__link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.header__link:hover {
  background: #fff;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: clamp(2rem, 6vh, 4rem) clamp(4rem, 10vh, 6rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green-dark);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.8); }
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.25rem, min(12vw, 17vh), 9rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.title em,
.outro__title em,
.gallery__title em,
.universe__item em {
  font-style: italic;
  font-weight: 400;
}

.title em {
  color: var(--green-dark);
}

.lead {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.actions {
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--green-dark);
}

.button--light {
  background: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  padding: 1.15rem 1.9rem;
}

.button--light:hover {
  background: #fff;
  color: var(--ink);
}

.actions__note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint__line {
  width: 1px;
  height: 2.25rem;
  background: var(--ink);
  transform-origin: top;
  animation: hint 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hint {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Bandeau défilant */

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.marquee__group span:nth-of-type(even) {
  font-style: italic;
  color: var(--green);
}

.marquee__group i {
  flex-shrink: 0;
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background: var(--green);
}

/* Univers */

.universe {
  overflow: hidden;
  padding: clamp(5rem, 16vh, 10rem) var(--gutter);
}

.universe__label {
  max-width: var(--max);
  margin: 0 auto clamp(2rem, 6vh, 4rem);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.universe__list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.universe__item {
  padding-block: clamp(0.75rem, 2vh, 1.5rem);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 10vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.universe__word {
  display: block;
  will-change: transform, opacity;
}

.universe__item:last-child {
  border-bottom: 1px solid var(--line);
}

.universe__item:nth-child(even) {
  text-align: right;
  color: var(--green-dark);
}

/* Galerie */

.gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 3rem);
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(2rem, 6vh, 4rem);
  overflow: hidden;
  background: var(--sand);
}

.gallery__head {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gallery__label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.gallery__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.gallery__title em {
  color: var(--green-dark);
}

.gallery__viewport {
  overflow-x: auto;
}

.js .gallery__viewport {
  overflow: visible;
}

.gallery__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}

.gallery__item {
  flex-shrink: 0;
  height: clamp(16rem, 50vh, 34rem);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--cream);
}

.gallery__item:nth-child(even) {
  margin-top: clamp(1rem, 5vh, 3rem);
}

.gallery__item:nth-child(3n) {
  aspect-ratio: 1;
}

.gallery__item img {
  display: block;
  width: 116%;
  max-width: none;
  height: 100%;
  margin-left: -8%;
  object-fit: cover;
  will-change: transform;
}

/* Final */

.outro {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--green);
}

.js .outro {
  background: var(--cream);
}

.outro__circle {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240vmax;
  height: 240vmax;
  margin: -120vmax 0 0 -120vmax;
  border-radius: 50%;
  background: var(--green);
  will-change: transform;
}

.js .outro__circle {
  display: block;
}

.outro__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  padding: 4rem var(--gutter);
  text-align: center;
}

.outro__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.25rem, 14vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.outro__title .line {
  padding-inline: 0.08em;
}

.outro__title em {
  color: #fff;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.85rem;
}

@media (max-height: 760px) {
  .scroll-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .blob--one {
    width: 95vw;
    top: -14%;
    right: -45%;
  }

  .header__link {
    font-size: 0.8rem;
  }

  .actions {
    width: 100%;
  }

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

  .scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge__dot,
  .scroll-hint__line {
    animation: none;
  }
}
