/* =========================================================
   VEHLAU · Édition Studio — Design System v2
   Inspiré visionOS / iOS 18 · Swiss typography · Liquid Glass
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@200;300;400;500;600&display=swap');

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

:root {
  /* — Ink — */
  --ink-900: #0a0b09;
  --ink-800: #11120f;
  --ink-700: #1e1f1d;
  --ink-600: #2f312c;
  --ink-500: #55574f;
  --ink-400: #6f716a;
  --ink-300: #9a9c95;
  --ink-200: #c7c8c2;

  /* — Surfaces — */
  --bg: #ebeae6;
  --surface-1: rgba(255,255,255,0.32);
  --surface-2: rgba(255,255,255,0.48);
  --surface-3: rgba(255,255,255,0.66);
  --line: rgba(40,41,36,0.10);
  --line-strong: rgba(40,41,36,0.18);

  /* — Accent sauge — */
  --accent: #6f7563;
  --accent-deep: #4f5444;
  --accent-glow: rgba(111,117,99,0.20);

  /* — Glass physics — */
  --glass-blur: blur(48px) saturate(200%);
  --glass-shadow-1:
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -1px 0 rgba(255,255,255,0.10),
    inset 1px 0 0 rgba(255,255,255,0.16),
    inset -1px 0 0 rgba(255,255,255,0.08),
    inset 0 0 0 0.5px rgba(255,255,255,0.28);
  --glass-shadow-2:
    var(--glass-shadow-1),
    0 1px 2px rgba(12,16,12,0.03),
    0 8px 32px rgba(12,16,12,0.05);
  --glass-shadow-3:
    var(--glass-shadow-1),
    0 1px 2px rgba(12,16,12,0.04),
    0 20px 60px rgba(12,16,12,0.10);

  /* — Geometry — */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --gap: 18px;
  --pad: 22px;

  --rail-w: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink-800);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "cv11","ss01","ss03","tnum","liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  text-rendering: optimizeLegibility;
}

@supports (height: 100dvh) { html, body { height: 100dvh; } }

/* =========================================================
   ATMOSPHERE — fond photo + calque
   ========================================================= */
.app {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.atmosphere {
  position: absolute; inset: 0;
  z-index: 0;
  background: url("./imagefond.png") center center / cover no-repeat;
  transform: scale(1.05);
  filter: saturate(0.85) brightness(1.02);
}

.atmosphere::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 15% 20%, rgba(248,248,245,0.65), transparent 55%),
    radial-gradient(100% 100% at 100% 100%, rgba(12,16,12,0.14), transparent 60%),
    linear-gradient(100deg, rgba(248,248,245,0.30) 0%, rgba(248,248,245,0.06) 60%, transparent 100%);
}

.grain {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =========================================================
   RAIL FLOTTANT
   ========================================================= */
.rail {
  position: absolute;
  z-index: 10;
  top: max(18px, var(--safe-top));
  left: max(18px, var(--safe-left));
  bottom: max(18px, var(--safe-bottom));
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 14px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-2);
}

.rail::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), transparent 40%);
}

.rail-logo {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
}

.rail-logo img {
  width: 30px; height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(12,16,12,0.08));
}

.rail-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
}

.nav {
  position: relative;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 14px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--ink-600);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .3s var(--ease), background .3s var(--ease);
}

.nav svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s var(--ease);
}

.nav:hover:not(.active):not(.is-locked) {
  background: rgba(255,255,255,0.42);
  color: var(--ink-800);
}

.nav.active {
  color: #fff;
  background: linear-gradient(160deg, #232320, #0b0c0a);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 6px 18px rgba(12,16,12,0.18);
}

.nav-pill {
  position: absolute;
  left: -14px;
  top: 50%;
  width: 3px; height: 0;
  border-radius: 2px;
  background: var(--ink-800);
  transform: translateY(-50%);
  transition: height .35s var(--ease);
}

.nav.active .nav-pill { height: 20px; }

.nav.is-locked {
  opacity: 0.28;
  pointer-events: none;
  filter: grayscale(0.6);
}

.nav-settings { margin-top: auto; }

/* =========================================================
   STAGE — colonne principale
   ========================================================= */
.stage {
  position: relative;
  z-index: 5;
  height: 100%;
  margin-left: calc(var(--rail-w) + max(18px, var(--safe-left)) + 22px);
  margin-right: max(22px, var(--safe-right));
  margin-top: max(18px, var(--safe-top));
  margin-bottom: max(18px, var(--safe-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
}

/* =========================================================
   MASTHEAD ÉDITORIAL
   ========================================================= */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0;
}

.masthead-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wordmark {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--ink-800);
  text-indent: 0.34em;
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  text-transform: uppercase;
}

.masthead-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-300);
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn, .avatar {
  width: 40px; height: 40px;
  flex: none;
  border: 0;
  border-radius: 13px;
  display: grid; place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.icon-btn {
  background: var(--surface-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-1);
}

.icon-btn svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--ink-800);
  stroke-width: 1.6; stroke-linecap: round;
}

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

.icon-btn.is-locked {
  opacity: 0.3; pointer-events: none; filter: grayscale(0.6);
}

.avatar {
  background: linear-gradient(160deg, #232320, #0b0c0a);
  color: #fff;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 6px 18px rgba(12,16,12,0.14);
}

.avatar:hover { transform: translateY(-1px); }

/* =========================================================
   GRID ÉDITORIALE
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: minmax(280px, 32%) minmax(0, 1fr) minmax(240px, 26%);
  grid-template-rows: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--gap);
  min-height: 0;
  overflow: hidden;
}

/* =========================================================
   HERO — manifeste
   ========================================================= */
.hero {
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-2);
  position: relative;
  overflow: hidden;
  animation: fade-up .8s var(--ease-out) both;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 120%; height: 120%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.32), transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.hero-title {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 200;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: var(--ink-900);
  margin: 12px 0 16px;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-500);
}

.hero-sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink-500);
  max-width: 26ch;
}

.hero-sub em {
  font-style: normal;
  color: var(--ink-800);
  font-weight: 500;
}

.hero-rule {
  width: 28px; height: 1px;
  margin: 20px 0;
  background: var(--ink-500);
  opacity: 0.55;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hero-stat:last-child { border-bottom: 0; padding-bottom: 0; }

.hero-stat strong {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 200;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.hero-stat .pct {
  font-size: 0.5em;
  font-weight: 300;
  color: var(--ink-500);
  margin-left: 2px;
}

.hero-stat span {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
  text-align: right;
}

/* =========================================================
   MODULE — base commune
   ========================================================= */
.module {
  padding: var(--pad);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow-2);
  display: flex;
  flex-direction: column;
  min-width: 0; min-height: 0;
  position: relative;
  overflow: hidden;
  animation: fade-up .8s var(--ease-out) both;
}

.module::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.05) 38%, transparent 68%);
}

.module-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.module-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 4px;
}

.module-title {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}

.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  background: rgba(255,255,255,0.48);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.6);
}

.module-badge.live { color: var(--accent-deep); }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: pulse 2s var(--ease) infinite;
}

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

.module-link {
  border: 0; background: transparent;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.module-link:hover {
  background: rgba(255,255,255,0.42);
  color: var(--ink-900);
}

/* =========================================================
   ÉNERGIE
   ========================================================= */
.energy { grid-column: 2; grid-row: 1; animation-delay: .08s; }

.energy-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.sphere-wrap {
  position: relative;
  aspect-ratio: 1;
  max-height: 100%;
  justify-self: center;
  width: min(100%, 220px);
  display: grid;
  place-items: center;
}

.sphere {
  width: 100%; height: 100%;
  display: block;
  transform: rotate(-90deg);
}

.sphere .ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.55);
  stroke-width: 6;
}

.sphere .ring-fg {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}

.sphere-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.sphere-value {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 200;
  font-size: clamp(46px, 5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.sphere-unit {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-top: 6px;
}

.energy-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.meta-row:last-of-type { border-bottom: 0; }

.meta-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.meta-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-800);
}

.mini-chart {
  position: relative;
  height: 42px;
  margin-top: 4px;
}

.mini-chart svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}

.mini-area { fill: url(#area); opacity: 0.9; }

.mini-line {
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mini-line.fc {
  stroke: rgba(79,84,68,0.42);
  stroke-dasharray: 3 4;
  stroke-width: 1.4;
}

.mini-marker {
  fill: none;
  stroke: rgba(40,41,36,0.18);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}

.mini-dot {
  position: absolute;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--ink-800);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.85);
  pointer-events: none;
  transition: left .6s var(--ease), top .6s var(--ease);
}

.mini-axis {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-300);
  margin-top: 4px;
}

.mini-axis span { transition: color .3s var(--ease); }
.mini-axis span.cur { color: var(--ink-900); }
.mini-axis span.fc  { opacity: 0.4; }

/* =========================================================
   ROUTINE — timeline horizontale
   ========================================================= */
.routine { grid-column: 2; grid-row: 2; animation-delay: .16s; }

.timeline {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 4px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
  pointer-events: none;
}

.tl-day {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  filter: blur(var(--b, 0px));
  opacity: var(--o, 1);
  transform: scale(var(--s, 1));
  transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}

.tl-day small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.tl-day b {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.6);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-800);
  font-variant-numeric: tabular-nums;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}

.tl-day.today b {
  width: 40px; height: 40px;
  font-size: 15px;
  font-weight: 300;
  background: linear-gradient(160deg, #232320, #0b0c0a);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 8px 22px rgba(12,16,12,0.20);
  transform: scale(1);
}

/* =========================================================
   PRODUCT — objet flottant
   ========================================================= */
.product {
  grid-column: 3;
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #1a1c17 0%, #0d0e0a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--glass-shadow-3);
  animation: fade-up .8s var(--ease-out) .24s both;
}

.product-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: -20% -10% 40% -10%;
  background: radial-gradient(circle at 50% 30%, rgba(111,117,99,0.35), transparent 60%);
  filter: blur(20px);
}

.product-object {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  width: 62%;
  aspect-ratio: 1 / 3.2;
  border-radius: 14px;
  background:
    linear-gradient(155deg, #f2f0ea 0%, #d8d6cf 40%, #b8b6ae 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -2px 8px rgba(12,16,12,0.14),
    0 20px 50px rgba(0,0,0,0.42),
    0 40px 80px rgba(0,0,0,0.30);
  animation: float 6s var(--ease) infinite;
}

.product-object::before {
  content: "VEHLAU";
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink-700);
  text-indent: 0.32em;
  white-space: nowrap;
}

.product-object::after {
  content: "MYRTILLE · GEL";
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ink-500);
  white-space: nowrap;
}

.product-reflection {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg) scaleY(-1);
  width: 62%;
  aspect-ratio: 1 / 3.2;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 60%);
  filter: blur(8px);
  opacity: 0.5;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 70%);
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) rotate(-6deg) translateY(0); }
  50%      { transform: translateX(-50%) rotate(-6deg) translateY(-8px); }
}

.product-content {
  position: relative;
  z-index: 2;
  padding: 24px 22px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(8,10,8,0.85) 45%, rgba(8,10,8,0.98) 100%);
}

.product-eyebrow {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}

.product-title {
  font-family: Montserrat, Inter, sans-serif;
  font-weight: 200;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 10px;
}

.product-sub {
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}

.product-cta {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: #fff;
  font: 500 10.5px Inter, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    inset 0 0 0 0.5px rgba(255,255,255,0.18);
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.product-cta:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

.product-cta svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease);
}

.product-cta:hover svg { transform: translateX(3px); }

/* =========================================================
   AUTH MODAL
   ========================================================= */
.auth-overlay { position: fixed; inset: 0; z-index: 90; }

.auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(12,16,12,0.20);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.auth-panel {
  position: absolute;
  top: max(18px, var(--safe-top));
  right: max(18px, var(--safe-right));
  width: min(340px, calc(100vw - 36px));
  max-height: calc(100vh - 36px - var(--safe-top) - var(--safe-bottom));
  padding: 22px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.32) 48%, rgba(255,255,255,0.18) 100%);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    inset 0 -1px 0 rgba(255,255,255,0.16),
    inset 0 0 0 0.5px rgba(255,255,255,0.36),
    0 28px 70px rgba(12,16,12,0.20);
  overflow: hidden;
  opacity: 0;
  transform: translateX(calc(100% + 32px));
  transition: transform .55s var(--ease), opacity .4s var(--ease);
}

.auth-overlay.open .auth-backdrop { opacity: 1; }
.auth-overlay.open .auth-panel { opacity: 1; transform: translateX(0); }

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.auth-head h2 {
  font-family: Montserrat, Inter, sans-serif;
  font-size: 16px; font-weight: 400;
  letter-spacing: -0.015em;
}

.auth-close {
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.48);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.62);
  color: var(--ink-800);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease);
}

.auth-close:hover { background: rgba(255,255,255,0.66); }

.auth-intro {
  font-size: 11.5px;
  color: var(--ink-500);
  margin-bottom: 16px;
}

.auth-field { display: block; margin-bottom: 12px; }

.auth-field span {
  display: block;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.auth-field input {
  width: 100%; height: 42px;
  padding: 0 14px;
  border: 0; border-radius: 13px;
  background: rgba(255,255,255,0.52);
  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,0.72),
    inset 0 1px 2px rgba(12,16,12,0.03);
  font: 400 13px Inter, sans-serif;
  color: var(--ink-900);
  -webkit-appearance: none; appearance: none; outline: none;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}

.auth-field input:focus {
  background: rgba(255,255,255,0.78);
  box-shadow:
    inset 0 0 0 1px rgba(30,31,29,0.34),
    inset 0 1px 2px rgba(12,16,12,0.04);
}

.auth-error {
  margin: 2px 0 10px;
  font-size: 10.5px; font-weight: 500;
  color: #b3261e;
}

.auth-submit {
  width: 100%; height: 46px;
  margin-top: 6px;
  border: 0; border-radius: 14px;
  background: linear-gradient(160deg, #232320 0%, #0b0c0a 100%);
  color: #fff;
  font: 500 10.5px Inter, sans-serif;
  letter-spacing: 0.24em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  transition: transform .25s var(--ease);
}

.auth-submit:hover { transform: translateY(-1px); }

.auth-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-300);
}

.auth-profile { display: flex; flex-direction: column; text-align: left; }

.auth-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-avatar {
  width: 56px; height: 56px;
  flex: none; border-radius: 17px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #232320 0%, #0b0c0a 100%);
  color: #fff;
  font-size: 17px; font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 18px rgba(12,16,12,0.14);
}

.auth-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.auth-name {
  display: flex; align-items: center; gap: 5px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 15px; font-weight: 400; line-height: 1.2;
}

.auth-name .bi-patch-check { font-size: 13px; color: var(--accent-deep); }

.auth-member {
  font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-400);
}

.auth-stats {
  width: 100%;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
}

.auth-stats li {
  padding: 12px 4px;
  border-radius: 14px;
  background: rgba(255,255,255,0.42);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.6);
  text-align: center;
}

.auth-stats b {
  display: block;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 17px; font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.auth-stats span {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.auth-logout {
  width: 100%; height: 42px;
  border: 0; border-radius: 13px;
  background: rgba(255,255,255,0.46);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.72);
  color: var(--ink-800);
  font: 500 9.5px Inter, sans-serif;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease);
}

.auth-logout:hover { background: rgba(255,255,255,0.62); }

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.auth-form.shake { animation: auth-shake .35s ease; }

/* =========================================================
   ROTATE HINT
   ========================================================= */
#rotate-hint {
  position: fixed; inset: 0; z-index: 99999;
  display: grid; place-items: center;
  background: rgba(10,11,9,0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  color: #fff;
  padding: max(20px, var(--safe-top)) max(20px, var(--safe-right)) max(20px, var(--safe-bottom)) max(20px, var(--safe-left));
  font-family: Inter, sans-serif;
  text-align: center;
}

#rotate-hint[hidden] { display: none; }

.rotate-card {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
  max-width: 240px;
}

.rotate-card svg { animation: rotate-pulse 2.4s var(--ease) infinite; }

.rotate-card p {
  margin: 0;
  font-size: 13px; font-weight: 300;
  line-height: 1.5; letter-spacing: 0.04em;
}

.rotate-card strong { font-weight: 500; letter-spacing: 0.10em; }

@keyframes rotate-pulse {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(90deg); }
}

/* =========================================================
   ENTRÉES
   ========================================================= */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .product-object, .rotate-card svg { animation: none !important; }
  .module, .hero, .product { animation: none !important; opacity: 1 !important; transform: none !important; }
}

:focus-visible { outline: 2px solid var(--ink-800); outline-offset: 2px; border-radius: 6px; }
button:focus:not(:focus-visible) { outline: none; }

/* =========================================================
   LANDSCAPE ONLY
   ========================================================= */
@media (orientation: portrait) {
  .rail, .stage { display: none; }
  #rotate-hint { display: grid !important; }
}

/* =========================================================
   ADAPTATIONS TAILLE
   ========================================================= */
@media (max-height: 760px) {
  :root { --pad: 18px; --gap: 14px; }
  .hero-title { font-size: clamp(32px, 4vw, 50px); }
  .sphere-value { font-size: clamp(40px, 4vw, 60px); }
  .product-object { top: 5%; width: 55%; }
}

@media (max-height: 640px) {
  :root { --pad: 16px; --gap: 12px; }
  .hero-title { font-size: 30px; }
  .hero-stat strong { font-size: 26px; }
  .sphere-value { font-size: 38px; }
  .module-title { font-size: 17px; }
  .tl-day b { width: 22px; height: 22px; font-size: 10px; }
  .tl-day.today b { width: 34px; height: 34px; font-size: 13px; }
}