/* Lumyo Theme · partagé entre toutes les pages publiques
   v10 · 14 mai 2026 · iridescent light + sunrise dark */

:root {
  /* DAY · light iridescent (default) */
  --bg: #fafafc;
  --bg-2: #f1f1f5;
  --ink: #0c0c14;
  --ink-2: #4a4a55;
  --ink-3: #8a8a95;
  --line: #e8e8ee;
  --line-2: #d8d8e0;
  --halo-1: #ffd1e3;
  --halo-2: #c6b8ff;
  --halo-3: #b6e3ff;
  --halo-4: #fff5b8;
  --accent: #6a4cff;
  --pad: clamp(20px, 5vw, 80px);
  --col: 1280px;
  --glass-bg: rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.8);
  --card-shadow-inset: rgba(255,255,255,0.9);
  color-scheme: light;
}

/* SUNRISE · warm dusk · easier on eyes at night */
[data-theme="sunrise"] {
  --bg: #1a1018;
  --bg-2: #261826;
  --ink: #f9e8d4;
  --ink-2: #d4bfa8;
  --ink-3: #8c7e6f;
  --line: rgba(255, 200, 150, 0.10);
  --line-2: rgba(255, 200, 150, 0.18);
  --halo-1: #ff7a4d;
  --halo-2: #8c5fce;
  --halo-3: #ffaa6e;
  --halo-4: #ffd17a;
  --accent: #ff9a5a;
  --glass-bg: rgba(40, 22, 32, 0.55);
  --glass-border: rgba(255, 200, 150, 0.18);
  --card-shadow-inset: rgba(255, 200, 150, 0.12);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; background: var(--bg); }
body {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  line-height: 1.45;
  overflow-x: clip;
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  background: var(--bg);
  isolation: isolate;
}

/* Iridescent rays · 3 traits fins · TOUS iridescents (rose · lavande · ciel) */
body::before {
  content: ""; position: fixed; inset: -10vh -10vw; z-index: -2; pointer-events: none;
  background:
    linear-gradient(155deg,
      transparent 48%,
      hsla(330, 100%, 75%, 0.85) 50%,
      hsla(280, 100%, 78%, 0.9) 51.5%,
      hsla(210, 100%, 80%, 0.85) 53%,
      transparent 55%),
    linear-gradient(20deg,
      transparent 62%,
      hsla(330, 100%, 75%, 0.65) 64%,
      hsla(270, 100%, 78%, 0.75) 65.5%,
      hsla(210, 100%, 80%, 0.65) 67%,
      transparent 69%),
    linear-gradient(-15deg,
      transparent 36%,
      hsla(280, 100%, 78%, 0.6) 38%,
      hsla(210, 100%, 80%, 0.55) 40%,
      transparent 42%);
  filter: blur(8px) saturate(160%);
  animation: raysShift 24s ease-in-out infinite alternate;
  will-change: transform;
}
/* Mobile · réduire blur + skip animation pour perf (blur sur viewport = GPU costly) */
@media (max-width: 760px) {
  body::before {
    filter: blur(3px) saturate(140%);
    animation: none;
  }
}
@keyframes raysShift {
  0%   { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-2vw) translateY(1vh); }
}
[data-theme="sunrise"] body::before {
  background:
    linear-gradient(155deg,
      transparent 48%,
      hsla(15, 100%, 70%, 0.95) 50%,
      hsla(35, 100%, 75%, 1) 51.5%,
      hsla(280, 80%, 65%, 0.8) 53%,
      transparent 55%),
    linear-gradient(20deg,
      transparent 62%,
      hsla(45, 100%, 75%, 0.85) 64%,
      hsla(10, 100%, 65%, 0.9) 65.5%,
      transparent 67%),
    linear-gradient(-15deg,
      transparent 36%,
      hsla(290, 100%, 72%, 0.7) 38%,
      transparent 40%);
  filter: blur(10px) saturate(140%);
}

a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.gradient-text {
  background: linear-gradient(135deg, #ff5aa3 0%, #b18cff 40%, #6cb6ff 75%, #ffb86e 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-style: italic; font-weight: 600;
  display: inline-block;
  line-height: 1.2;
  padding: 0.1em 0.25em 0.22em 0.06em;
  margin: -0.1em -0.25em -0.22em -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* CURSOR SPOTLIGHT */
.spotlight {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 100;
  width: 700px; height: 700px; transform: translate(-50%, -50%);
  background:
    radial-gradient(circle,
      hsla(var(--cursor-h1, 330), 100%, 75%, 0.22) 0%,
      hsla(var(--cursor-h2, 270), 100%, 78%, 0.15) 30%,
      hsla(var(--cursor-h3, 210), 100%, 80%, 0.09) 50%,
      transparent 70%);
  mix-blend-mode: plus-lighter;
  transition: opacity 0.3s;
  filter: blur(2px);
}
.spotlight-core {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 100;
  width: 60px; height: 60px; transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    hsla(var(--cursor-h1, 330), 100%, 80%, 0.35),
    hsla(var(--cursor-h2, 270), 100%, 80%, 0.18) 50%,
    transparent 75%);
  mix-blend-mode: plus-lighter;
  filter: blur(6px);
}
body.cursor-on-action .spotlight {
  background: radial-gradient(circle,
    hsla(var(--cursor-h1, 330), 100%, 75%, 0.38) 0%,
    hsla(var(--cursor-h2, 270), 100%, 78%, 0.25) 30%,
    hsla(var(--cursor-h3, 210), 100%, 80%, 0.14) 50%,
    transparent 70%);
}
body.cursor-on-action .spotlight-core {
  transform: translate(-50%, -50%) scale(1.3);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1);
}
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .spotlight, .spotlight-core { display: none; }
}

/* CURSOR BEAM */
.beams { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.beam {
  position: absolute; pointer-events: none;
  filter: blur(50px);
  opacity: 0.75;
}
.beam.cursor {
  top: 0; left: 0;
  width: 280px; height: 75vh; transform: translate(-50%, -50%) rotate(0deg);
  background: linear-gradient(180deg,
    hsla(var(--cursor-h1, 330), 90%, 72%, 0.65) 0%,
    hsla(var(--cursor-h2, 270), 85%, 75%, 0.5) 50%,
    transparent 100%);
  opacity: 0.7;
  transition: opacity 0.3s;
}
@media (max-width: 760px) { .beam.cursor { display: none; } }

/* MOTES */
.motes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mote {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle,
    hsla(var(--mh, 330), 100%, 70%, 1) 0%,
    hsla(var(--mh, 330), 100%, 75%, 0.6) 40%,
    transparent 75%);
  box-shadow:
    0 0 12px hsla(var(--mh, 330), 100%, 70%, 0.6),
    0 0 24px hsla(var(--mh, 330), 100%, 70%, 0.3);
  filter: blur(0.5px);
  animation: motefloat linear infinite;
  opacity: 0;
}
[data-theme="sunrise"] .mote { filter: blur(0.5px) brightness(1.2); }
@keyframes motefloat {
  0%   { transform: translateY(20px) translateX(0); opacity: 0; }
  10%  { opacity: 0.85; }
  85%  { opacity: 0.55; }
  100% { transform: translateY(-110vh) translateX(var(--mx, 30px)); opacity: 0; }
}

/* LOGO LUMI + sun-disk */
.brand-mark {
  display: inline-flex; align-items: baseline; gap: 0;
  font-weight: 800; font-size: 26px; letter-spacing: -0.05em;
  text-transform: uppercase; line-height: 1; color: var(--ink);
}
.brand-mark .sun {
  display: inline-block; width: 0.78em; height: 0.78em; border-radius: 50%;
  margin-left: 0.04em; position: relative;
  background: radial-gradient(circle at 32% 30%, #ffffff 0%, #fff5b8 28%, #ff9ec7 55%, #b18cff 85%, #6cb6ff 100%);
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.7),
    0 0 14px rgba(255,158,199,0.7),
    0 0 30px rgba(177,140,255,0.55),
    0 0 50px rgba(108,182,255,0.35);
  animation: shimmer 12s ease-in-out infinite;
}
.brand-mark .sun::after {
  content: ""; position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0) 65%);
}
@keyframes shimmer {
  0%, 100% { filter: hue-rotate(0deg); transform: scale(1); }
  50%      { filter: hue-rotate(35deg); transform: scale(1.04); }
}

/* NAV */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--col); margin: 0 auto;
  padding: 16px var(--pad);
  height: 64px;
}
nav.top .links { display: flex; gap: 28px; align-items: center; }
nav.top .links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  position: relative; transition: color 0.2s;
}
nav.top .links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1.5px;
  background: linear-gradient(90deg, #ff7eb6, #b18cff, #6cb6ff);
  transform: scaleX(0); transform-origin: left;
  transition: transform 300ms cubic-bezier(.2,.7,.3,1);
}
nav.top .links a:hover { color: var(--ink); }
nav.top .links a:hover::after, nav.top .links a.active::after { transform: scaleX(1); }
.cta-pill {
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(12,12,20,0.15);
}
.cta-pill:hover {
  background: var(--accent); transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(106,76,255,0.35);
}

/* THEME TOGGLE · sun/moon */
.theme-toggle {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass-bg); backdrop-filter: blur(10px);
  border: 1px solid var(--line); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; overflow: hidden;
  color: var(--ink);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), background 0.3s, border-color 0.3s, color 0.3s;
  margin-right: 4px;
}
.theme-toggle:hover { transform: scale(1.08) rotate(15deg); }
.theme-toggle .t-icon {
  position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  transition: transform 0.5s cubic-bezier(.2,.7,.3,1), opacity 0.3s ease;
}
.theme-toggle .t-sun { color: #f0a040; opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .t-moon { color: #d4bfa8; opacity: 0; transform: rotate(-60deg) scale(0.5); }
[data-theme="sunrise"] .theme-toggle .t-sun { opacity: 0; transform: rotate(60deg) scale(0.5); }
[data-theme="sunrise"] .theme-toggle .t-moon { opacity: 1; transform: rotate(0) scale(1); }

.burger { display: none; width: 36px; height: 36px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--line); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.burger span { display: block; width: 14px; height: 1.5px; background: var(--ink); margin: 2.5px 0; transition: 0.3s; }
@media (max-width: 760px) {
  nav.top .links { display: none; }
  .burger { display: inline-flex; flex-direction: column; }
  .cta-pill { display: none; }
  body.menu-open .links {
    display: flex; flex-direction: column; gap: 32px; align-items: center; justify-content: center;
    position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px);
    z-index: 49; padding-top: 100px; font-size: 24px;
  }
  body.menu-open .burger span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); }
}

/* TICKER */
.ticker {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 40;
  height: 32px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  overflow: hidden; display: flex; align-items: center;
  transition: background 0.4s ease;
}
.ticker-track {
  display: flex; gap: 48px; animation: tick 70s linear infinite;
  white-space: nowrap; padding-left: var(--pad);
}
.ticker span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-2); letter-spacing: 0.05em; text-transform: uppercase;
}
.ticker span b { font-weight: 500; color: var(--accent); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* THEME SWEEP transition */
.theme-sweep {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0;
}
.theme-sweep.run {
  animation: themeSweep 1100ms cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes themeSweep {
  0%   { opacity: 0; background: radial-gradient(circle at 100% 0%, hsla(15, 100%, 60%, 0.0), transparent); }
  20%  { opacity: 1; background: radial-gradient(circle at 100% 0%, hsla(15, 100%, 60%, 0.6) 0%, hsla(35, 100%, 65%, 0.4) 30%, hsla(280, 80%, 55%, 0.3) 60%, transparent 80%); }
  60%  { opacity: 1; background: radial-gradient(circle at 50% 50%, hsla(15, 100%, 60%, 0.45) 0%, hsla(35, 100%, 65%, 0.35) 35%, hsla(280, 80%, 55%, 0.25) 70%, transparent 100%); }
  100% { opacity: 0; background: radial-gradient(circle at 0% 100%, transparent, transparent); }
}

/* Smooth theme switches */
body, .glass, nav.top, .ticker, .theme-toggle, .burger {
  transition: background 0.7s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.7s ease;
}

/* ─── MOBILE PERF · réduire blur partout ──────────────── */
@media (max-width: 760px) {
  nav.top { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .ticker { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .theme-toggle, .burger, .eyebrow { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* moins de backdrop sur les cards (l'usage principal de GPU sur mobile) */
  .line-card, .carnet-card, .tile { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  /* base bg plus opaque pour compenser */
  .line-card, .carnet-card, .tile { background: var(--bg-2) !important; }
}

/* VIEW TRANSITIONS API · between pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 320ms cubic-bezier(.4, 0, .2, 1) both fadeOutUp; }
::view-transition-new(root) { animation: 420ms cubic-bezier(.2, .7, .3, 1) both fadeInUp; }
@keyframes fadeOutUp {
  to { opacity: 0; transform: translateY(-12px) scale(0.98); filter: blur(4px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
nav.top .brand-mark { view-transition-name: brand-mark; }

/* FOOTER · réutilisable */
footer { padding: 80px 0 40px; border-top: 1px solid var(--line); margin-top: 80px; }
.foot-wrap { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.foot-grid .sig p { font-size: 14px; color: var(--ink-2); margin-top: 16px; max-width: 280px; line-height: 1.55; }
.foot-col h5 { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--ink-3); letter-spacing: 0.08em; margin-bottom: 16px; font-weight: 500; }
.foot-col a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-2); transition: color 0.2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
