/* Trottle — style partagé (identique à la charte de l'application) */

:root {
  --trottle-main: #0095FF;
  --trottle-bg-dark: #051B2C;
  --trottle-dark: #394955;
  --trottle-light-blue: #238BD5;
  --trottle-mid-gray: #397BAA;
  --trottle-light-gray: #95C1DD;
  --trottle-gray: #9AA7B0;
  --trottle-white: #FFFFFF;

  --font-display: 'League Spartan', 'Montserrat', sans-serif;
  --font-text: 'Montserrat', 'Roboto', sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--trottle-bg-dark);
  color: var(--trottle-white);
  font-family: var(--font-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--trottle-white);
}

p { color: var(--trottle-light-gray); }

.divider {
  height: 1px;
  background: var(--trottle-dark);
  border: none;
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 27, 44, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trottle-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 132px;
  transition: height 0.3s ease;
}

.site-header.scrolled .wrap { height: 72px; }

.brand {
  flex-shrink: 0;
}

.brand img {
  height: 88px;
  width: auto;
  max-width: none;
  transition: height 0.3s ease;
}

.site-header.scrolled .brand img { height: 44px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--trottle-light-gray);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--trottle-white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}

.btn-primary {
  background: var(--trottle-main);
  color: var(--trottle-white);
  box-shadow: 0 8px 24px -8px rgba(0, 149, 255, 0.6);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(0, 149, 255, 0.75); }

.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero-bg.webp') center 30% / cover no-repeat;
  opacity: 0.22;
  filter: blur(1px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,27,44,0.55) 0%, rgba(5,27,44,0.92) 65%, var(--trottle-bg-dark) 100%);
}

.hero .wrap { position: relative; z-index: 1; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--trottle-main);
  padding: 6px 16px;
  border: 1px solid rgba(0, 149, 255, 0.4);
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero h1 span { color: var(--trottle-main); }

.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: var(--trottle-light-gray);
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.store-badges img { height: 52px; width: auto; }
.store-badges a { transition: transform 0.15s ease; }
.store-badges a:hover { transform: translateY(-2px); }

.stats-row {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--trottle-mid-gray);
}

/* ---------- Sections ---------- */

section { padding: 90px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow { margin-bottom: 16px; }

.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 14px;
}

.section-head p { font-size: 16px; }

/* ---------- Synced showcase / carousel ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .showcase { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
}

.showcase-captions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-caption {
  cursor: pointer;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.showcase-caption h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--trottle-light-gray);
  transition: color 0.25s;
}

.showcase-caption p {
  font-size: 14px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.showcase-caption .bar {
  height: 2px;
  width: 28px;
  background: var(--trottle-dark);
  border-radius: 2px;
  margin-bottom: 12px;
  transition: background 0.25s, width 0.25s;
}

.showcase-caption.active {
  background: rgba(0, 149, 255, 0.08);
  border-color: rgba(0, 149, 255, 0.25);
}

.showcase-caption.active h3 { color: var(--trottle-white); }
.showcase-caption.active .bar { background: var(--trottle-main); width: 44px; }

.showcase-caption.active p {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 2px;
}

.showcase-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  border: 1px solid rgba(0, 149, 255, 0.35);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

.showcase-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.showcase-frame img.active { opacity: 1; transform: scale(1); }

.showcase-frame .gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,27,44,0.85) 100%);
  pointer-events: none;
}

.showcase-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.showcase-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.25s, width 0.25s;
}

.showcase-dots span.active { background: var(--trottle-white); width: 18px; border-radius: 4px; }

/* ---------- Features grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--trottle-dark);
  border-radius: 20px;
  padding: 28px 26px;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover { border-color: rgba(0,149,255,0.45); transform: translateY(-3px); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(0, 149, 255, 0.12);
  color: var(--trottle-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  margin: 0;
}

/* ---------- Download CTA ---------- */

.cta-band {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 64px 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,149,255,0.18), rgba(5,27,44,0.4));
  border: 1px solid rgba(0,149,255,0.3);
}

.cta-band h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 14px; }
.cta-band p { max-width: 480px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */

.site-footer { padding: 64px 0 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; max-width: 260px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--trottle-mid-gray);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--trottle-light-gray); transition: color 0.2s; }
.footer-col a:hover { color: var(--trottle-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 12.5px;
  color: var(--trottle-mid-gray);
}

/* ---------- Legal pages ---------- */

.legal-page { padding: 56px 0 100px; }

.legal-header { max-width: 720px; margin: 0 auto 48px; text-align: left; }
.legal-header .eyebrow { margin-bottom: 18px; }
.legal-header h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.legal-header .updated { font-size: 13px; color: var(--trottle-mid-gray); }

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 18px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--trottle-white);
}

.legal-content h3 {
  font-size: 15px;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--trottle-white);
}

.legal-content p { font-size: 14.5px; color: var(--trottle-light-gray); margin: 0 0 12px; }

.legal-content ul { margin: 0 0 12px; padding-left: 20px; }
.legal-content li { font-size: 14.5px; color: var(--trottle-light-gray); margin-bottom: 6px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--trottle-main);
  margin-bottom: 28px;
}

/* ---------- Utility ---------- */

.mobile-nav-toggle { display: none; background: none; border: none; color: var(--trottle-white); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}
