/* =============================================================
   Stagia — Home page styles (index.html)
   Link AFTER colors_and_type.css.
   ============================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--fg-1);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-amber-300);
  margin: 0;
}
.section-eyebrow { color: var(--fg-3); }

/* ---------------- NAV ---------------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-app) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 44px; height: 44px; }
.brand .name {
  font-family: var(--font-display); font-weight: 900; font-size: 22px;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--fg-2);
  transition: color 120ms ease;
}
.nav-links a:hover { color: var(--fg-1); }
.nav-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: var(--brand-amber-300); color: var(--fg-invert);
  padding: 9px 18px; border-radius: var(--r-md);
  transition: background 120ms ease, transform 80ms ease;
}
.nav-cta:hover { background: var(--brand-amber-200); }
.nav-cta:active { transform: scale(0.97); }

/* ---------------- HERO ---------------- */
.hero { position: relative; padding: 20px 0 48px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -180px; right: -120px; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(245,194,95,0.16) 0%, rgba(245,194,95,0.05) 38%, transparent 68%);
  pointer-events: none;
}
@media (min-width: 981px) {
  .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero-copy { order: -1; }
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.025em;
  margin: 20px 0 0; text-wrap: balance;
}
.hero .eyebrow { display: block; }
.hero .sub {
  font-size: 19px; line-height: 1.55; color: var(--fg-2);
  margin: 22px 0 0; max-width: 30em;
}
.hero .echo {
  font-size: 14px; color: var(--fg-3); margin: 12px 0 0; font-style: italic;
}
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  background: var(--brand-amber-300); color: var(--fg-invert);
  padding: 14px 26px; border-radius: var(--r-md); border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  transition: background 120ms ease, transform 80ms ease, box-shadow 160ms ease;
}
.btn-primary:hover { background: var(--brand-amber-200); box-shadow: var(--shadow-amber-glow); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  background: transparent; color: var(--fg-1);
  padding: 14px 22px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn-secondary:hover { background: var(--bg-surface-1); border-color: var(--fg-3); }
.status-chips { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-2);
  background: var(--bg-surface-1); border: 1px solid var(--border-subtle);
  padding: 7px 13px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.chip .dot.amber { background: var(--brand-amber-300); box-shadow: 0 0 8px var(--brand-amber-300); }

/* ---- Hero fan of 3 screens ---- */
.device-wrap {
  display: flex; justify-content: center; align-items: flex-end;
  position: relative; height: 420px;
}
.fan-phone {
  position: absolute; bottom: 0;
  width: 185px; border-radius: 20px; padding: 6px;
  background: linear-gradient(160deg, #211D2F, #100D1B);
  border: 1px solid var(--border-default);
  transform-origin: bottom center;
  transition: transform 300ms ease;
}
.fan-phone .screen {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.5);
}
.fan-phone .screen img { display: block; width: 100%; }
.fan-phone .fan-lbl {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; margin-top: 7px; padding-bottom: 2px;
  opacity: 0.5;
}
/* Left — Editor */
.fan-live {
  left: 50%; transform: translateX(-50%);
  z-index: 3;
  width: 178px;
  box-shadow: var(--shadow-lg), 0 0 90px rgba(46,181,174,0.38);
}
.fan-left {
  left: calc(50% - 130px);
  transform: rotate(-14deg) translateX(-30px);
  z-index: 2;
  width: 215px; border-radius: 23px; padding: 7px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 80px rgba(233,69,96,0.38);
  opacity: 0.92;
}
.fan-right {
  left: calc(50% + 130px);
  transform: rotate(14deg) translateX(-170px);
  z-index: 4;
  width: 250px; border-radius: 27px; padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 70px rgba(245,194,95,0.28);
  opacity: 1;
}
.fan-left .fan-lbl  { color: #E94560; opacity: 0.7; }
.fan-live  .fan-lbl { color: var(--brand-teal, #2EB5AE); opacity: 0.7; }
.fan-right .fan-lbl { color: var(--brand-amber-300, #F5C25F); opacity: 0.7; }


/* ---------------- VALUES ---------------- */
section.block { padding: 52px 0; }
#pourquoi { padding-top: 16px; }
.block-head { max-width: 640px; }
.block-head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 0;
}
.block-head p { font-size: 17px; color: var(--fg-2); margin: 16px 0 0; line-height: 1.55; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.value { padding: 4px; }
.value .ic {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--product-tint); color: var(--brand-amber-300); margin-bottom: 18px;
}
.value h3 { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin: 0 0 8px; }
.value p { font-size: 14px; color: var(--fg-3); line-height: 1.55; margin: 0; }

/* ---------------- PRODUCTS ---------------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
.pcard {
  position: relative; background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle); border-radius: var(--r-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--border-default); }
.pcard .strip { height: 4px; width: 100%; background: var(--p-strip); }
.pcard .shot { background: var(--bg-stage); padding: 30px 22px; display: flex; justify-content: center; align-items: center; }
.pcard .phone-mini {
  width: 204px; border-radius: 30px; padding: 8px;
  background: linear-gradient(160deg, #211D2F, #100D1B);
  border: 1px solid var(--border-default); box-shadow: var(--shadow-lg);
}
.pcard .phone-mini .screen {
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(0,0,0,0.5);
  aspect-ratio: 660 / 912;
}
.pcard .phone-mini .screen img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; border: 0; box-shadow: none;
}
/* InBeat card — ratio smartphone (9:19) au lieu du 660/912 partagé */
.pcard.inbeat .phone-mini .screen { aspect-ratio: 9 / 19; }

/* Live card — hauteur alignée sur InBeat (303px → screen 287×396px ≈ 412px total) */
.pcard.live .phone-mini { width: 303px; border-radius: 45px; }
.pcard.live .phone-mini .screen { border-radius: 33px; }

/* Editor card — pleine largeur sur 2 colonnes */
.pcard.editor { grid-column: span 2; }
.pcard.editor .browser-mini { width: 70%; max-width: none; }

/* Browser mockup for Editor card */
.pcard .browser-mini {
  width: 100%; max-width: 260px; border-radius: 10px; overflow: hidden;
  background: #100D1B; border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
}
.pcard .browser-mini .bbar {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 10px; background: var(--bg-surface-1);
  border-bottom: 1px solid var(--border-subtle);
}
.pcard .browser-mini .bbar span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex: none;
}
.pcard .browser-mini .screen {
  overflow: hidden; aspect-ratio: 16 / 10;
}
.pcard .browser-mini .screen img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top left; border: 0; box-shadow: none;
}
.pcard .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--p-hue); margin: 0 0 8px;
}
.pcard h3 { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em; }
.pcard .tag { font-size: 14.5px; color: var(--fg-1); font-weight: 600; margin: 0 0 12px; }
.pcard .desc { font-size: 14px; color: var(--fg-3); line-height: 1.55; margin: 0 0 22px; flex: 1; }
.pcard .more {
  font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--p-hue);
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  transition: gap 140ms ease;
}
.pcard:hover .more { gap: 11px; }
.pcard.live   { --p-strip: linear-gradient(90deg,#F9D77A,#F5C25F); --p-hue: var(--brand-amber-300); }
.pcard.inbeat { --p-strip: linear-gradient(90deg,#7FD8D3,#2EB5AE); --p-hue: var(--inbeat-teal-300); }
.pcard.editor { --p-hue: var(--brand-pink-500); }
.pcard.editor .strip { display: none; }
.pcard.editor .shot { min-height: 335px; }
.pcard .free { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); margin-top: 14px; }

/* ---------------- SIGNATURE BAND ---------------- */
.signature { background: var(--bg-stage); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.sig-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding: 78px 0; }
.sig-text h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px,3vw,34px); line-height: 1.12; letter-spacing: -0.02em; margin: 14px 0 0; }
.sig-text p { font-size: 16px; color: var(--fg-2); line-height: 1.6; margin: 16px 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.pill {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  padding: 6px 14px; border-radius: var(--r-pill); color: #0C0A18;
}
.pill.ghost { background: transparent; border: 1px solid currentColor; }
.sheet {
  background: var(--bg-stage); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); padding: 12px; font-family: var(--font-mono); font-size: 12px;
  box-shadow: var(--shadow-md); overflow-x: auto;
}
.lsec {
  background: var(--bg-surface-1); border-radius: 10px;
  border-left: 4px solid var(--sec); padding: 10px 13px 11px; margin-bottom: 9px;
}
.lsec:last-child { margin-bottom: 0; }
.lsec .barlabel {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 11px;
  padding: 2px 10px; border-radius: var(--r-pill); color: #0C0A18; background: var(--sec); margin-bottom: 9px;
}
.lsec .crow { font-weight: 700; white-space: pre; line-height: 1.25; }
.lsec .lrow { white-space: pre; line-height: 1.45; margin-bottom: 9px; }
.lsec .lrow:last-child { margin-bottom: 0; }
.lsec .lrow span { transition: color 550ms ease; }
/* white-text toggle: users can switch lyrics to plain white */
.sheet.plain .lrow span { color: var(--fg-1) !important; }

.sig-toggle { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sig-toggle .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.sig-toggle .state { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); }
.switch {
  position: relative; width: 46px; height: 26px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--border-default); background: var(--bg-surface-2);
  transition: background 300ms ease, border-color 300ms ease; padding: 0;
}
.switch[aria-pressed="true"] { background: var(--brand-amber-300); border-color: var(--brand-amber-300); }
.switch .knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform 300ms cubic-bezier(.4,1.3,.5,1);
}
.switch[aria-pressed="true"] .knob { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--brand-amber-300); outline-offset: 3px; }

/* ---------------- FINAL CTA ---------------- */
.final { position: relative; text-align: center; padding: 32px 0 80px; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(245,194,95,0.14), transparent 70%);
}
.final-inner { position: relative; z-index: 1; }
.final h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(32px,4.4vw,52px); line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.final p { font-size: 18px; color: var(--fg-2); margin: 20px 0 0; }
.final .hero-actions { justify-content: center; }

/* ---------------- LANGUAGE SWITCHER ---------------- */
.lang-switcher { position: relative; flex: none; }
.lang-btn { all: unset; cursor: pointer; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--fg-3); background: var(--bg-surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 6px 10px; display: flex; align-items: center; gap: 5px; transition: border-color 120ms ease, color 120ms ease; }
.lang-btn:hover { border-color: var(--fg-3); color: var(--fg-1); }
.lang-btn i { width: 11px; height: 11px; }
.lang-dropdown { position: absolute; top: calc(100% + 6px); right: 0; z-index: 200; background: color-mix(in srgb, var(--bg-app) 96%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 5px; display: none; flex-direction: column; gap: 1px; box-shadow: var(--shadow-lg); min-width: 72px; }
.lang-switcher:hover .lang-dropdown, .lang-switcher:focus-within .lang-dropdown { display: flex; }
.lang-active { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--brand-amber-300); padding: 6px 12px; border-radius: var(--r-sm); display: block; }
.lang-soon { font-family: var(--font-mono); font-size: 12px; color: var(--fg-4); padding: 6px 12px; border-radius: var(--r-sm); display: block; cursor: default; }
.lang-mobile { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 11px; }
.lang-label-m { color: var(--fg-4); letter-spacing: 0.1em; text-transform: uppercase; }
.lang-mobile-options { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-active-m { color: var(--brand-amber-300); font-weight: 700; }
.lang-soon-m { color: var(--fg-4); }

/* ---------------- FOOTER ---------------- */
footer { border-top: 1px solid var(--border-subtle); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: 14px; color: var(--fg-3); line-height: 1.6; max-width: 26em; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-4); margin: 0 0 18px; font-weight: 500; }
.foot-col a { display: block; font-size: 14px; color: var(--fg-2); margin-bottom: 12px; transition: color 120ms ease; }
.foot-col a:hover { color: var(--brand-amber-300); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 14px; }
.foot-bottom span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-4); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 940px) {
  .values { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .products { grid-template-columns: 1fr; }
  .pcard.editor { grid-column: auto; }
  .pcard.live .phone-mini { width: 204px; border-radius: 30px; }
  .pcard.live .phone-mini .screen { border-radius: 22px; }
  .sig-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 600px) {
  .wrap, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .brand img { width: 32px; height: 32px; }
  .brand .name { font-size: 19px; }
  .nav-links { display: none; }
  .values { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .phone { width: min(336px, 84vw); }
}
/* NAV — menu hamburger mobile */
.nav-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; background: var(--bg-surface-1); border: 1px solid var(--border-subtle); border-radius: var(--r-md); color: var(--fg-1); cursor: pointer; }
.nav-burger:hover { border-color: var(--product-primary); }
.nav-burger .burger-icon { position: relative; width: 20px; height: 20px; }
.nav-burger .burger-icon > span { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; transition: opacity 160ms ease, transform 160ms ease; }
.nav-burger .burger-icon i { width: 20px; height: 20px; }
.nav-burger .ic-x { opacity: 0; transform: rotate(-90deg); }
.nav-burger[aria-expanded="true"] .ic-menu { opacity: 0; transform: rotate(90deg); }
.nav-burger[aria-expanded="true"] .ic-x { opacity: 1; transform: rotate(0); }
.nav-mobile { display: none; }
@media (max-width: 600px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-mobile { display: block; position: absolute; top: 100%; left: 0; right: 0; background: color-mix(in srgb, var(--bg-app) 96%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-subtle); overflow: hidden; max-height: 0; transition: max-height 280ms ease; }
  .nav-mobile.open { max-height: 380px; }
  .nav-mobile-inner { padding: 6px 22px 20px; display: flex; flex-direction: column; }
  .nav-mobile a { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--fg-2); padding: 13px 0; border-bottom: 1px solid var(--border-subtle); transition: color 120ms ease; }
  .nav-mobile a.active, .nav-mobile a:hover { color: var(--product-primary); }
  .nav-mobile .nav-mobile-cta { margin-top: 16px; border: 0; border-radius: var(--r-md); padding: 14px 18px; text-align: center; background: var(--product-primary); color: var(--product-primary-fg); font-weight: 700; }
  .nav-mobile .nav-mobile-cta:hover { color: var(--product-primary-fg); }
}
