/* ============================================================
   MyPostureAtDesk — landing page stylesheet
   Palette & typo cohérentes avec kanga.fr
   ============================================================ */

/* ---- tokens ---- */
:root {
  --bg:     #F4F5F5;
  --bg2:    #FFFFFF;
  --fg:     #0D0F12;
  --fg2:    #4A5158;
  --accent: #D4146C;
  --blue:   #00A7D5;
  --green:  #13C26C;
  --yellow: #FBCA67;
  --border: #DADEE1;
  --stripe: linear-gradient(90deg, #ED1A7C 0 25%, #00A7D5 25% 50%, #FBCA67 50% 75%, #13C26C 75% 100%);
  --grid:   linear-gradient(#DADEE1 1px, transparent 1px),
            linear-gradient(90deg, #DADEE1 1px, transparent 1px);
  --mono:   'IBM Plex Mono', monospace;
  --sans:   'Archivo', system-ui, sans-serif;
}

/* ---- dark mode ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0F12; --bg2: #181B1F; --fg: #F4F5F5; --fg2: #9AA0A6; --border: #2A2E33;
    --grid: linear-gradient(#2A2E33 1px, transparent 1px),
            linear-gradient(90deg, #2A2E33 1px, transparent 1px);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0F12; --bg2: #181B1F; --fg: #F4F5F5; --fg2: #9AA0A6; --border: #2A2E33;
  --grid: linear-gradient(#2A2E33 1px, transparent 1px),
          linear-gradient(90deg, #2A2E33 1px, transparent 1px);
  color-scheme: dark;
}

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

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--fg); }
img { max-width: 100%; display: block; }

/* ---- layout ---- */
.inner {
  max-width: 1248px;
  margin: 0 auto;
  padding-left:  max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---- stripe kanga ---- */
.stripe {
  height: 6px;
  background: var(--stripe);
}

/* ---- topbar ---- */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
}
.topbar .inner {
  padding-block: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-appname {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--fg);
}
.topbar-appicon {
  height: 32px;
  width: 32px;
  border-radius: 7px;
  flex-shrink: 0;
}
.topbar-apptitle {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--fg);
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.topbar-logo img { height: 32px; width: auto; }
.topbar-logo span { font-family: var(--mono); font-size: 12px; color: var(--fg2); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- lang switcher ---- */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg2);
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .04em;
}
.lang-btn:hover  { border-color: var(--fg2); color: var(--fg); }
.lang-btn.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.topbar-cta {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s;
  white-space: nowrap;
}
.topbar-cta:hover { background: var(--accent); color: #fff; }

/* ---- hero ---- */
.hero {
  background-color: var(--bg);
  background-image: var(--grid);
  background-size: 96px 96px;
  border-bottom: 1px solid var(--border);
}
.hero .inner {
  padding-block: 64px 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  align-items: center;
}
.hero-text {
  flex: 999 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.hero-h1 {
  font-size: clamp(42px, 6.5vw, 92px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  max-width: 560px;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  color: var(--fg2);
  font-size: 18px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--fg2);
  background: var(--bg2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }

/* Badge promo au-dessus du bouton hero */
.hero-cta-wrap { display: flex; flex-direction: column; gap: 6px; }
.hero-promo-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
  align-self: flex-start;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 16px;
  transition: background .2s;
}
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-primary svg { flex-shrink: 0; }

.btn-secondary {
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.btn-secondary:hover { color: var(--accent); }

.hero-visual {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.app-preview {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .08);
}
.app-preview img {
  border-radius: 10px;
  width: 100%;
}
.status-good {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(19, 194, 108, .12);
  color: #0B8A4A;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 10px;
}
.app-status-row { display: flex; justify-content: center; }

/* ---- sections ---- */
section { border-bottom: 1px solid var(--border); }
.section-inner {
  max-width: 1248px;
  margin: 0 auto;
  padding-left:  max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-block: 72px;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: 48px;
}

/* ---- features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  border: 1px solid var(--border);
  background: var(--border);
}
.feature-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.feature-title { font-size: 17px; font-weight: 600; }
.feature-desc { font-size: 15px; color: var(--fg2); line-height: 1.55; }

/* ---- how it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 48px;
  counter-reset: steps;
}
.step {
  counter-increment: steps;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step::before {
  content: "0" counter(steps);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .04em;
}
.step-title { font-size: 17px; font-weight: 600; }
.step-desc  { font-size: 15px; color: var(--fg2); }

/* ---- hero carousel (vignette haut droite) ---- */
.hero-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: none; /* affiché par JS selon la langue active */
}
.hc-slide {
  width: 100%;
  border-radius: 10px;
  display: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.hc-slide.active {
  display: block;
  opacity: 1;
}
/* dots du carousel hero */
.hc-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.hc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s;
}
.hc-dot.active { background: var(--accent); }

/* ---- screenshots section — carousel pleine largeur ---- */
.screenshots-bg {
  background: var(--fg);
  color: var(--bg);
  border-bottom: 1px solid var(--border);
}
.screenshots-bg .section-eyebrow { color: var(--accent); }
.screenshots-bg .section-title   { color: var(--bg); }

/* wrap général */
.sc-track-wrap {
  position: relative;
}

/* une piste par langue — affichage conditionné par [data-lang].active */
.sc-track {
  display: none;
}
.sc-track[data-lang].active,
.sc-track.active {
  display: block;
}

/* les slides à l'intérieur d'une piste */
.sc-slide {
  display: none;
}
.sc-slide.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scFadeIn .4s ease;
}
@keyframes scFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.sc-slide img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  object-fit: contain;
  max-width: 860px;
  margin: 0 auto;
  display: block;
}

.sc-label {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(244, 245, 245, .55);
  text-align: center;
}

/* contrôles nav */
.sc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.sc-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(244,245,245,.8);
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.sc-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.sc-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ---- privacy ---- */
.privacy-band { background: var(--bg2); }
.privacy-row  { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.privacy-col  { flex: 1 1 280px; min-width: 0; }
.privacy-col h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.privacy-col p  { font-size: 15px; color: var(--fg2); }
.privacy-icon   { font-size: 28px; margin-bottom: 8px; }

/* ---- pricing ---- */
.price-box {
  max-width: 520px;
  border: 2px solid var(--fg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.price-amount {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.price-amount span {
  font-size: 28px;
  font-weight: 500;
  color: var(--fg2);
  vertical-align: super;
}
.price-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.price-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg2);
  margin-top: 6px;
}
.price-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-list li { font-size: 15px; color: var(--fg2); display: flex; gap: 10px; }
.price-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ---- language flags ---- */
.lang-flags { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.lang-flag  { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--fg2); }
.lang-flag .fl { font-size: 22px; }

/* ---- footer ---- */
footer {
  background: var(--fg);
  color: var(--bg);
  padding-block: 40px;
}
footer .inner {
  padding-left:  max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(244, 245, 245, .5);
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo a  { color: rgba(244, 245, 245, .7); text-decoration: none; }
.footer-logo a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.footer-links a { color: rgba(244, 245, 245, .6); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-support {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  border-top: 1px solid rgba(244,245,245,.1);
  margin-top: 28px;
}
.btn-support {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(244,245,245,.75);
  border: 1px solid rgba(244,245,245,.2);
  border-radius: 6px;
  padding: 10px 22px;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.btn-support:hover {
  color: #fff;
  border-color: rgba(244,245,245,.5);
  background: rgba(244,245,245,.07);
}

/* ---- responsive ---- */
@media (max-width: 600px) {
  .hero-h1         { letter-spacing: -.03em; }
  .section-inner   { padding-block: 48px; }
  .price-amount    { font-size: 52px; }
  .price-box       { padding: 28px 24px; }
  .lang-switcher   { flex-wrap: wrap; }
}

/* ---- i18n visibility ---- */
[data-lang]           { display: none; }
[data-lang].active    { display: block; }
span[data-lang].active { display: inline; }
