/* Encoore — direction visuelle : atelier forestier / scale clair */
:root {
  --ink: #0b1f1a;
  --ink-soft: #1a332c;
  --moss: #2f6b57;
  --leaf: #3f8f6e;
  --lime: #c8f27a;
  --mist: #eef3ef;
  --paper: #f7faf7;
  --sand: #d9e4dc;
  --white: #ffffff;
  --muted: rgba(11, 31, 26, 0.68);
  --line: rgba(11, 31, 26, 0.12);
  --shadow: 0 24px 60px rgba(11, 31, 26, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;

  --radius: 14px;
  --radius-btn: 10px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(200, 242, 122, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 8%, rgba(47, 107, 87, 0.1), transparent 50%),
    linear-gradient(180deg, var(--paper), var(--mist) 40%, var(--paper));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
.hero-brand,
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 247, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 247, 0.92);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  background: linear-gradient(145deg, var(--lime), var(--leaf));
  box-shadow: 0 0 0 4px rgba(200, 242, 122, 0.25);
  transform: rotate(12deg);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:not(.nav-cta) {
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.nav a:not(.nav-cta):hover {
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--white);
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(247, 250, 247, 0.98);
}

.mobile-nav a {
  padding: 0.85rem 0.4rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  overflow: clip;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 26, 0.35) 0%, rgba(11, 31, 26, 0.55) 42%, rgba(11, 31, 26, 0.88) 100%),
    radial-gradient(800px 400px at 70% 20%, rgba(200, 242, 122, 0.18), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  max-width: 42rem;
  margin-left: max(calc((100% - var(--shell)) / 2), 1.25rem);
  margin-right: auto;
  width: min(42rem, calc(100% - 2.5rem));
}

.hero-brand {
  font-size: clamp(3.2rem, 10vw, 5.8rem);
  font-weight: 700;
  line-height: 0.92;
  margin-bottom: 1.1rem;
  letter-spacing: -0.04em;
}

.hero-title {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.hero-lead {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: #d6f79a;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

.section h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 1rem;
  max-width: 14ch;
}

.section-intro,
.section-copy {
  max-width: 38rem;
}

.section-intro p:not(.eyebrow),
.section-copy > p,
.audience-list p,
.offer > p:not(.offer-meta),
.contact-panel > div > p:not(.eyebrow) {
  color: var(--muted);
}

.section-grid {
  display: grid;
  gap: 2.5rem;
}

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

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-block: 0.35rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.step-index {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--leaf);
  line-height: 1;
  padding-top: 0.15rem;
}

.steps h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--muted);
}

/* Audience */
.section-audience {
  background:
    linear-gradient(180deg, transparent, rgba(47, 107, 87, 0.05) 20%, transparent),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(11, 31, 26, 0.015) 18px,
      rgba(11, 31, 26, 0.015) 19px
    );
}

.section-intro {
  margin-bottom: 2.5rem;
}

.audience-list {
  display: grid;
  gap: 1.75rem 2.5rem;
}

.audience-list article {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.audience-list h3 {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}

/* Offers — interaction containers, intentional bordered blocks */
.offers {
  display: grid;
  gap: 1rem;
}

.offer {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.offer:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 107, 87, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

.offer-featured {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
}

.offer-featured:hover {
  background: var(--ink-soft);
  border-color: transparent;
}

.offer-featured .offer-meta,
.offer-featured > p:not(.offer-meta) {
  color: rgba(255, 255, 255, 0.78);
}

.offer h3 {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.offer-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.85rem;
}

/* Contact */
.section-contact {
  padding-top: 2rem;
}

.contact-panel {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(200, 242, 122, 0.35), transparent 55%),
    linear-gradient(145deg, #12352c, #0b1f1a 60%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-panel .eyebrow {
  color: var(--lime);
}

.contact-panel h2 {
  max-width: 16ch;
}

.contact-panel > div > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
}

.contact-actions {
  display: grid;
  align-content: end;
  gap: 0.75rem;
}

.contact-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 0.65rem;
}

.footer-inner > p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
}

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero [data-reveal]:nth-child(1) {
  transition-delay: 0.05s;
}
.hero [data-reveal]:nth-child(2) {
  transition-delay: 0.18s;
}
.hero [data-reveal]:nth-child(3) {
  transition-delay: 0.3s;
}
.hero [data-reveal]:nth-child(4) {
  transition-delay: 0.42s;
}

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

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

  .hero-media img {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .offer:hover,
  .nav-cta:hover {
    transform: none;
  }
}

/* Responsive */
@media (min-width: 760px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .section-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 4rem;
  }

  .audience-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .offers {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .contact-panel {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

@media (max-width: 759px) {
  .hero-content {
    margin-left: 1.25rem;
  }

  .hero-brand {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }
}
