/* =============================================================
   LA SÈVE — Style global
   Fonts : Instrument Serif · Switzer
   Palette : #1F2C12 · #C6F135 · #FAF8F5
============================================================= */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic;
}
@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal;
}
@font-face {
  font-family: 'Switzer';
  src: url('fonts/Switzer-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal;
}

/* ── Variables — Charte officielle La Sève ── */
:root {
  /* Charte exacte */
  --green:        #1F2C12;   /* Vert Profond */
  --lime:         #C6F135;   /* Vert de Vie */
  --cream:        #FAF8F5;   /* Beige Papier */
  --teal:         #006C7A;   /* Bleu H2O */

  /* Dérivés fonctionnels */
  --green-deep:   #141c0d;   /* Fond plus profond pour footer / sections */
  --green-dark:   #0f1509;   /* Fond le plus sombre (hero) */
  --lime-glow:    rgba(198,241,53,0.07);
  --lime-soft:    rgba(198,241,53,0.12);
  --teal-glow:    rgba(0,108,122,0.15);
  --cream-body:   rgba(250,248,245,0.55);
  --cream-dim:    rgba(250,248,245,0.20);
  --cream-faint:  rgba(250,248,245,0.05);
  --border:       rgba(250,248,245,0.07);
  --border-hover: rgba(198,241,53,0.35);
  --glass-bg:     rgba(15,21,9,0.58);
  --glass-border: rgba(255,255,255,0.05);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Switzer', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }

/* ── Cursor global ── */
* { cursor: none !important; }
@media (hover: none) {
  * { cursor: auto !important; }
  .c-dot, .c-ring { display: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--green-dark);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   CURSOR PERSONNALISÉ — La Sève mark
══════════════════════════════════════════ */
.c-dot {
  position: fixed;
  top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transition: opacity 0.2s;
}
.c-dot.hide { opacity: 0; }

.c-ring {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  transition: opacity 0.3s;
}
.c-ring svg {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s;
  overflow: visible;
}
.c-ring.hover svg  { transform: scale(1.65); }
.c-ring.click svg  { transform: scale(0.78); transition-duration: 0.12s; }
.c-ring .cr-outer  { transition: stroke-opacity 0.3s; }
.c-ring.hover .cr-outer { stroke-opacity: 0.8; }
.c-ring .cr-center { transition: r 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.c-ring.hover .cr-center { r: 6; }

/* ══════════════════════════════════════════
   GRAIN OVERLAY
══════════════════════════════════════════ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9985;
  opacity: 1;
}
.grain-overlay svg { width: 100%; height: 100%; display: block; }

/* ══════════════════════════════════════════
   PAGE ENTRY
══════════════════════════════════════════ */
body {
  animation: pageEntry 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes pageEntry {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════
   SCROLL REVEALS
══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal clip (titre hero) */
.title-line {
  display: block;
  overflow: hidden;
  line-height: 1.05;
}
.title-line-inner {
  display: block;
  transform: translateY(108%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-title-ready .title-line-inner { transform: translateY(0); }
.title-line:nth-child(2) .title-line-inner { transition-delay: 0.1s; }
.title-line:nth-child(3) .title-line-inner { transition-delay: 0.2s; }

/* ══════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(0,0,0,0.15);
  user-select: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream-body);
  padding: 0 36px;
  letter-spacing: 0.01em;
}
.marquee-sep {
  color: var(--lime);
  font-size: 1.2rem;
  opacity: 0.7;
}

/* ══════════════════════════════════════════
   NAV — Glass
══════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 56px;
  justify-content: space-between;
  /* Glass effect */
  background: var(--glass-bg);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(198,241,53,0.06),
    0 8px 32px rgba(0,0,0,0.25);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  display: flex;
  align-items: baseline;
  gap: 1px;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo .dot { color: var(--lime); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  color: var(--cream-body);
  transition: color 0.15s;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-cta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 3px;
  background: var(--lime);
  color: var(--green);
  transition: opacity 0.15s,
              box-shadow 0.3s cubic-bezier(0.16,1,0.3,1),
              transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 0 0 rgba(198,241,53,0);
  will-change: transform;
}
.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198,241,53,0.25);
}

/* ══════════════════════════════════════════
   TYPOGRAPHIE
══════════════════════════════════════════ */
h1 {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8.5vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
}
p {
  font-size: 1rem;
  line-height: 1.74;
  color: var(--cream-body);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 60px; }
section { padding: 155px 0; }
hr { border: none; border-top: 1px solid var(--border); }

/* ══════════════════════════════════════════
   BOUTONS
══════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s,
              border-color 0.2s,
              color 0.2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn-lime {
  background: var(--lime);
  color: var(--green);
  box-shadow: 0 0 0 rgba(198,241,53,0);
}
.btn-lime:hover {
  opacity: 0.92;
  box-shadow: 0 8px 28px rgba(198,241,53,0.28), 0 2px 8px rgba(198,241,53,0.15);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--cream-body);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--green-deep);
  padding: 72px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--cream);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: 10px;
}
.footer-brand .dot { color: var(--lime); }
.footer-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.footer-col h4 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--cream-body);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
}
.footer-copy { font-size: 0.7rem; color: var(--cream-dim); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
  .nav  { padding: 0 28px; }
  section { padding: 90px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
}
