/* ===== Design tokens (thème clair permanent) ===== */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --surface: #ffffff;
  --text: #1b2733;
  --text-soft: #5c6b7a;
  --border: #e6ecf2;
  --border-strong: #d5dfe8;
  --primary: #1f82d3;
  --primary-dark: #135e9c;
  --primary-light: #34a4df;
  --primary-soft: #eaf4fc;
  --ring: rgba(31, 130, 211, .22);
  --hero-grad: linear-gradient(135deg, #3aa9e4 0%, #1f82d3 52%, #145e9c 100%);
  --shadow-sm: 0 1px 2px rgba(27, 39, 51, .06);
  --shadow: 0 10px 34px -14px rgba(20, 52, 84, .28);
  --shadow-lg: 0 30px 70px -30px rgba(20, 52, 84, .45);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1160px;
  --ease: cubic-bezier(.22, .68, .18, 1);
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Onest', system-ui, sans-serif;
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name { font-family: var(--font-display); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em;
  background: var(--primary-soft); color: var(--primary-dark);
  padding: 1px 6px; border-radius: 5px;
}

/* ===== Scroll reveal (activé seulement si JS) ===== */
.js-reveal .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  cursor: pointer; border: 1.5px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-white { background: #fff; color: var(--primary-dark); box-shadow: 0 6px 20px -10px rgba(0,0,0,.35); }
.btn-white:hover { background: #f1f7fd; transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0,0,0,.4); }
.btn-outline-white { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.18); border-color: #fff; transform: translateY(-2px); }
.btn-nav { background: #fff; color: var(--primary-dark); padding: 9px 18px; font-size: 14px; }
.btn-nav:hover { background: #f1f7fd; }

/* ===== Header (fixe, apparaît au scroll) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--primary) 96%, #000);
  box-shadow: 0 8px 26px -12px rgba(15, 40, 66, .5);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: #fff; }
.brand-chip { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.brand-chip img { width: 22px; height: 22px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.88); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-links .btn-nav { color: var(--primary-dark); }
.nav-github {
  display: flex; align-items: center; color: rgba(255,255,255,.75) !important;
  transition: color .15s;
}
.nav-github:hover { color: #fff !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  background: var(--hero-grad); color: #fff;
  padding: 140px 0 170px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 85% -10%, rgba(255,255,255,.16), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-text { text-align: left; }
.hero-eyebrow { display: inline-block; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.8); margin-bottom: 14px; letter-spacing: .02em; }
.hero-text h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; }
.hero-lead { font-size: 1.1rem; color: rgba(255,255,255,.9); margin: 20px 0 32px; max-width: 42ch; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-version-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.65); }

/* Carousel screenshots dans le hero */
.hero-visual { display: flex; justify-content: center; align-items: flex-start; }
.screenshot-carousel { width: 100%; max-width: 560px; }
.screenshot-tabs {
  display: flex; gap: 4px; margin-bottom: 12px;
  background: rgba(255,255,255,.1); border-radius: 8px; padding: 4px;
  width: fit-content;
}
.stab {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,.65); font-size: 13px; font-weight: 500;
  padding: 5px 14px; border-radius: 5px;
  transition: background .2s, color .2s;
}
.stab:hover { background: rgba(255,255,255,.12); color: #fff; }
.stab.active { background: rgba(255,255,255,.22); color: #fff; }
.screenshot-frame {
  border-radius: 12px; overflow: hidden; position: relative;
  aspect-ratio: 16/9;
  box-shadow: 0 40px 80px -20px rgba(10, 30, 55, .55), 0 0 0 1px rgba(255,255,255,.15);
  background: var(--bg-alt);
}
.screenshot-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .5s ease;
}
.screenshot-img.active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .screenshot-frame { animation: float 7s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
}

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.hero-wave svg { width: 100%; height: 110px; display: block; }
.hero-wave path { fill: var(--bg); }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 14px; letter-spacing: .01em; }
.section-head h2, .about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; margin: 10px 0 14px; letter-spacing: -0.03em; }
.section-head p { color: var(--text-soft); font-size: 1.08rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--primary); background: var(--primary-soft); border-radius: 11px; margin-bottom: 20px;
  transition: transform .25s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-soft); font-size: 15px; line-height: 1.6; }

/* About */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about-text p { color: var(--text-soft); margin-bottom: 16px; font-size: 1.05rem; }
.check-list { list-style: none; margin: 22px 0 30px; display: flex; flex-direction: column; gap: 13px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.check-list li::after {
  content: ""; position: absolute; left: 6.5px; top: 11px; width: 5px; height: 9px;
  border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.about-visual { display: flex; justify-content: center; }
.glass-card {
  width: 100%; max-width: 370px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 28px; box-shadow: var(--shadow);
}
.gc-row { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.gc-row:last-child { border-bottom: none; }
.gc-icon { width: 26px; height: 26px; background: var(--primary-soft); color: var(--primary); border-radius: 7px; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* Download — bandeau dégradé */
.download-card {
  background: var(--hero-grad); color: #fff;
  border-radius: 22px; padding: 64px 44px; text-align: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.download-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 130% at 15% -20%, rgba(255,255,255,.18), transparent 45%);
  pointer-events: none;
}
.download-card > * { position: relative; z-index: 1; }
.download-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; }
.download-card p { color: rgba(255,255,255,.92); font-size: 1.08rem; max-width: 48ch; margin: 0 auto 30px; }
.download-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.download-sub { margin: 28px auto 0 !important; font-size: 13.5px !important; max-width: 56ch; color: rgba(255,255,255,.72) !important; }
.download-card code { background: rgba(255,255,255,.2); color: #fff; }

/* FAQ */
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 2px 24px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-soft); padding: 0 0 20px; font-size: 15px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 50px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 38px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand-chip, .footer-brand .brand-name { display: inline-flex; vertical-align: middle; }
.footer-brand .brand-chip { margin-right: 9px; }
.footer-brand .brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: flex-start; }
.footer-links a { color: var(--text-soft); font-size: 14.5px; transition: color .15s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 24px; text-align: center; color: var(--text-soft); font-size: 13.5px; }
.footer-vinx { color: var(--text-soft); transition: color .15s; }
.footer-vinx:hover { color: var(--primary); }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  border-radius: 11px; background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; z-index: 50;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { padding: 120px 0 140px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-text { text-align: center; }
  .hero-lead { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-visual { display: none; }
  .hero-visual { order: -1; }
  .screenshot-img { max-width: 100%; }
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: color-mix(in srgb, var(--primary) 96%, #000);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); align-items: stretch;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,.15); }
  .nav-links a { display: block; padding: 15px 24px; }
  .nav-links .btn-nav { margin: 12px 24px; text-align: center; justify-content: center; border-radius: var(--radius-sm); }
  .nav-github { justify-content: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 120px; }
  .section { padding: 66px 0; }
  .download-card { padding: 46px 24px; }
  .hero-wave svg { height: 64px; }
}

/* ===== VinX Labs : lien marque, langue, tarifs ===== */
.hero-by { display: inline-block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero-by:hover { color: #fff; }
.hero-by + .hero-eyebrow { display: block; }
.nav-links .nav-lang { border: 1px solid rgba(255,255,255,.45); border-radius: 7px; padding: 2px 9px; font-size: 13px; font-weight: 600; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.2rem; }
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--primary-dark); line-height: 1.2; margin-top: 8px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--text-soft); }
.price-note { color: var(--text-soft); font-size: 14.5px; margin-bottom: 18px; }
.price-card .check-list { margin-bottom: 26px; flex: 1; }
.price-card .btn { justify-content: center; }
.pricing-sub { text-align: center; color: var(--text-soft); font-size: 14px; margin-top: 26px; }
.pricing-sub a { color: var(--primary); }
.footer-vinx { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.footer-vinx img { width: 20px; height: auto; }

/* ===== Intégration au squelette VinX Labs ===== */
.site-header { top: 52px; transition: top .25s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.site-header.scrolled { top: 0; }
.site-footer { padding-bottom: 0; }
.footer-inner { padding-bottom: 50px; }
