/* ACAP, shared site chrome (palette, nav, footer, base) */

:root {
  --yellow: #ffc933;
  --clay: #ff5b3a;
  --moss: #6fa83a;
  --berry: #d63384;
  --sky: #2d8cff;
  --ochre: #f08a1c;
  --sand: #f3e6cd;
  --cream: #faf2e1;
  --paper: #f7eedc;
  --ink: #1a1410;
  --brown: #2a1f15;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper); color: var(--ink);
  font-family: 'Space Grotesk', sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--clay); color: var(--cream); }

/* Grain overlay */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.13; mix-blend-mode: multiply;
}

/* Cursor */
.cursor {
  position: fixed; width: 24px; height: 24px; border-radius: 50%; background: var(--clay);
  pointer-events: none; z-index: 999; mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s;
}
.cursor.lg { width: 80px; height: 80px; background: var(--moss); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 32px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.nav.is-on-dark { color: var(--yellow); }
.nav.is-on-dark .nav-cart { background: var(--yellow); color: var(--ink); }
.nav.is-on-dark .nav-cart:hover { background: var(--cream); }
.nav a, .nav .nav-logo, .nav-cart { font-weight: 700; }
.nav-logo { font-weight: 900 !important; font-family: 'Black Han Sans', sans-serif; font-size: 18px; letter-spacing: -0.01em; text-transform: none; }
.nav-left, .nav-right { display: flex; gap: 28px; align-items: center; }
.nav-right { justify-content: flex-end; }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav-cart {
  background: var(--clay); color: var(--cream);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  line-height: 1; display: inline-flex; align-items: center; gap: 8px;
  transition: background .25s, transform .25s;
}
.nav-cart:hover { background: var(--ink); transform: scale(1.05); }
.nav-cart .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: var(--yellow); font-size: 10px;
}
.nav.is-on-dark .nav-cart .count { background: var(--ink); color: var(--yellow); }

/* Footer */
.footer {
  background: var(--brown); color: var(--cream);
  padding: 80px 32px 28px;
}
.footer-big {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(120px, 26vw, 480px);
  line-height: 0.78; letter-spacing: -0.01em;
  color: var(--yellow);
  border-bottom: 1px solid rgba(250,242,225,0.18);
  padding-bottom: 32px; margin-bottom: 32px;
}
.footer-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer-col .k { color: var(--ochre); margin-bottom: 14px; font-size: 11px; }
.footer-col a { display: block; padding: 5px 0; opacity: 0.85; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: 56px; padding-top: 18px; border-top: 1px solid rgba(250,242,225,0.18);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.6;
}

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- LEGAL / POLICY PAGES ---------- */
.legal-wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 32px 40px;
  display: grid; grid-template-columns: 240px 1fr; gap: 72px;
  align-items: start;
}
.legal-aside {
  position: sticky; top: 110px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.legal-aside .k { color: var(--ochre); margin-bottom: 16px; font-size: 11px; }
.legal-aside a {
  display: block; padding: 9px 0; opacity: 0.7;
  border-bottom: 1px solid rgba(26,20,16,0.1);
  transition: opacity .2s, color .2s, padding-left .2s;
}
.legal-aside a:hover { opacity: 1; color: var(--clay); padding-left: 6px; }
.legal-aside a.is-active { opacity: 1; color: var(--clay); }
.legal-aside a.is-active::before { content: '→ '; }
.legal-updated {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(26,20,16,0.12);
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,20,16,0.5);
  line-height: 1.7;
}
.legal-body { max-width: 760px; }
.legal-lede {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45; color: var(--ink); margin-bottom: 56px;
  padding-bottom: 40px; border-bottom: 2px solid var(--ink);
}
.legal-section { margin-bottom: 52px; scroll-margin-top: 100px; }
.legal-section h2 {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(24px, 3.4vw, 38px); line-height: 1; letter-spacing: -0.01em;
  margin-bottom: 22px; display: flex; align-items: baseline; gap: 16px;
}
.legal-section h2 .n {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--clay); flex: none;
}
.legal-section h3 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 12px;
}
.legal-section p, .legal-section li {
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; line-height: 1.7;
  color: rgba(26,20,16,0.85); margin-bottom: 16px;
  text-wrap: pretty;
}
.legal-section ul { padding-left: 0; list-style: none; }
.legal-section ul li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
}
.legal-section ul li::before {
  content: '·'; position: absolute; left: 0; color: var(--clay); font-weight: 700;
}
.legal-section a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { color: var(--ink); }
.legal-section strong { font-weight: 700; color: var(--ink); }
.legal-callout {
  background: var(--cream); border-left: 3px solid var(--yellow);
  padding: 22px 26px; margin: 24px 0;
}
.legal-callout p { margin-bottom: 0; font-size: 15.5px; }
.legal-note {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.05em; line-height: 1.7; color: rgba(26,20,16,0.55);
  background: rgba(26,20,16,0.04); padding: 18px 22px; border-radius: 4px;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 0; padding: 0 20px 30px; }
  .legal-aside { position: static; margin-bottom: 44px; }
  .legal-aside a { padding: 11px 0; }
}

/* Legal links row in footer */
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding-top: 4px; margin-bottom: 24px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.footer-legal a { opacity: 0.7; transition: opacity .2s, color .2s; }
.footer-legal a:hover { opacity: 1; color: var(--yellow); }

/* Page header (used across most sub-pages) */
.page-head {
  padding: 160px 32px 80px;
  max-width: 1480px; margin: 0 auto;
  position: relative;
}
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay);
  margin-bottom: 26px;
}
.page-eyebrow .num { padding: 4px 10px; border: 1px solid var(--clay); border-radius: 999px; }
.page-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(80px, 13vw, 220px);
  line-height: 0.85; letter-spacing: -0.01em;
}
.page-title .accent {
  
  color: var(--clay);
}

@media (max-width: 900px) {
  .footer-row { grid-template-columns: 1fr 1fr; }
  .nav { grid-template-columns: 1fr auto; padding: 16px 20px; }
  .nav-left, .nav-right { display: none; }
  .nav-logo { font-size: 16px; }
  .nav .nav-burger { display: flex; }
  .page-head { padding: 110px 20px 50px; }
  .page-title { font-size: clamp(60px, 14vw, 110px); }
}

@media (max-width: 600px) {
  .footer-row { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 60px 20px 20px; }
  .footer-big { font-size: clamp(96px, 30vw, 200px); }
  .page-head { padding: 100px 18px 40px; }
}

/* ---------- MOBILE NAV (hamburger + drawer) ---------- */
.nav-burger {
  display: none;
  height: 40px; gap: 9px; padding: 0 15px;
  align-items: center; justify-content: center;
  background: var(--ink); color: var(--cream); border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.nav-burger::after { content: 'Menu'; }
.nav-burger.is-open::after { content: 'Fermer'; }
.nav.is-on-dark .nav-burger { background: var(--yellow); color: var(--ink); }
.nav-burger:hover { transform: scale(1.04); }
.nav-burger-bars {
  position: relative;
  width: 16px; height: 12px;
  display: inline-block;
}
.nav-burger-bars::before,
.nav-burger-bars::after,
.nav-burger-bars span {
  content: ''; position: absolute; left: 0; right: 0;
  height: 1.5px; background: currentColor; border-radius: 1px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s;
}
.nav-burger-bars::before { top: 0; }
.nav-burger-bars span { top: 50%; transform: translateY(-50%); }
.nav-burger-bars::after { bottom: 0; }
.nav-burger.is-open .nav-burger-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-burger.is-open .nav-burger-bars span { opacity: 0; }
.nav-burger.is-open .nav-burger-bars::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column;
  padding: 100px 32px 40px;
  transform: translateY(-100%);
  transition: transform .55s cubic-bezier(.7,0,.3,1);
  overflow-y: auto;
  pointer-events: none;
}
.mobile-drawer.is-open {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-drawer-links {
  display: flex; flex-direction: column;
  gap: 4px;
  flex: 1; justify-content: center;
}
.mobile-drawer-links a {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(40px, 11vw, 72px);
  line-height: 1.05; letter-spacing: -0.01em;
  color: var(--cream);
  padding: 8px 0;
  position: relative;
  transform: translateY(20px); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s, color .2s;
}
.mobile-drawer.is-open .mobile-drawer-links a {
  transform: translateY(0); opacity: 1;
}
.mobile-drawer.is-open .mobile-drawer-links a:nth-child(1) { transition-delay: 0.12s; }
.mobile-drawer.is-open .mobile-drawer-links a:nth-child(2) { transition-delay: 0.18s; }
.mobile-drawer.is-open .mobile-drawer-links a:nth-child(3) { transition-delay: 0.24s; }
.mobile-drawer.is-open .mobile-drawer-links a:nth-child(4) { transition-delay: 0.30s; }
.mobile-drawer.is-open .mobile-drawer-links a:nth-child(5) { transition-delay: 0.36s; }
.mobile-drawer.is-open .mobile-drawer-links a:nth-child(6) { transition-delay: 0.42s; }
.mobile-drawer-links a:hover { color: var(--yellow); }
.mobile-drawer-links a.is-active { color: var(--yellow); }
.mobile-drawer-links a.is-active::before {
  content: '→ '; color: var(--clay);
  
}
.mobile-drawer-footer {
  padding-top: 32px; margin-top: 32px;
  border-top: 1px solid rgba(250,242,225,0.18);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(250,242,225,0.7);
}
.mobile-drawer-footer a { color: inherit; }
.mobile-drawer-footer a:hover { color: var(--yellow); }

/* Lock body scroll when drawer open */
body.no-scroll { overflow: hidden; }

/* Hide cursor follower on touch */
@media (hover: none) and (pointer: coarse) {
  .cursor { display: none !important; }
}
