/* Fitness Pilot — Site public */
:root {
  --bg: #0A0A0A;
  --bg2: #111113;
  --bg3: #1A1A1E;
  --card: #161619;
  --border: #252528;
  --accent: #00F0FF;
  --accent2: #00B8CC;
  --text: #FFFFFF;
  --muted: #8A8A95;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
       background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
  background: rgba(10,10,10,.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: .9rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: .4rem 1rem; background: var(--accent); color: #000 !important;
  border-radius: 999px; font-weight: 600; font-size: .85rem;
}
.nav-cta:hover { background: var(--accent2); }
.lang-btn {
  font-size: .8rem; color: var(--muted) !important;
  border: 1px solid var(--border); border-radius: 999px; padding: .2rem .7rem;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  min-height: 90vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,240,255,.12), transparent 70%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,240,255,.1); border: 1px solid rgba(0,240,255,.25);
  color: var(--accent); padding: .3rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 em { -webkit-text-fill-color: var(--accent); font-style: normal; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 2.5rem; }
.hero-cta {
  display: inline-flex; flex-direction: column; align-items: center; gap: .6rem;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--accent); color: #000; font-weight: 700;
  font-size: 1.05rem; padding: .9rem 2rem; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(0,240,255,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(0,240,255,.5); color: #000; }
.btn-sub { font-size: .8rem; color: var(--muted); }

/* ── SECTION WRAPPER ─────────────────────────────── */
.section { padding: 6rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: .5rem; }
.section-title p { color: var(--muted); }

/* ── FEATURES ────────────────────────────────────── */
.features { background: var(--bg2); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: rgba(0,240,255,.3); transform: translateY(-4px); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0,240,255,.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 1.2rem;
}
.feat-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.feat-card p { color: var(--muted); font-size: .95rem; }

/* ── SCREENSHOTS ─────────────────────────────────── */
/* Flexbox centré : fonctionne quelle que soit la largeur d'écran,
   pas de colonne fantôme quand le nombre d'items change. */
.screens-grid {
  display: flex; flex-wrap: wrap;
  gap: 1.25rem; justify-content: center; align-items: flex-end;
}
.screen-item { width: clamp(120px, 17vw, 180px); text-align: center; flex-shrink: 0; }
.screen-frame {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 30px;
  overflow: hidden; margin-bottom: .75rem; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: zoom-in;
}
.screen-frame:hover {
  border-color: rgba(0,240,255,.4);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 28px 70px rgba(0,0,0,.7);
}
.screen-frame img { width: 100%; display: block; }
.screen-frame .placeholder {
  width: 100%; padding-bottom: 216%; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .75rem; position: relative;
}
.screen-frame .placeholder span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.screen-label { font-size: .8rem; color: var(--muted); }

/* Overlay agrandi au survol —
   pointer-events TOUJOURS à none : l'overlay ne capte pas la souris,
   donc pas de mouseleave parasite sur la vignette (fin du clignotement). */
#hover-zoom {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.88); backdrop-filter: blur(12px);
  pointer-events: none;             /* ← clé : jamais auto */
  opacity: 0; transition: opacity .18s ease;
}
#hover-zoom.visible { opacity: 1; }
#hover-zoom img {
  max-height: 88vh; max-width: min(420px, 88vw);
  border-radius: 28px; box-shadow: 0 40px 100px rgba(0,0,0,.8);
  object-fit: contain;
  transform: scale(.94); transition: transform .22s ease;
}
#hover-zoom.visible img { transform: scale(1); }

/* ── GUIDE TEASER ────────────────────────────────── */
.guide-teaser {
  background: linear-gradient(135deg, rgba(0,240,255,.08), rgba(0,240,255,.02));
  border: 1px solid rgba(0,240,255,.2); border-radius: var(--radius);
  padding: 3rem; text-align: center;
}
.guide-teaser h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.guide-teaser p { color: var(--muted); margin-bottom: 1.5rem; }
.btn-outline {
  display: inline-block; border: 1px solid var(--accent); color: var(--accent);
  padding: .7rem 1.5rem; border-radius: 999px; font-weight: 600;
}
.btn-outline:hover { background: rgba(0,240,255,.1); }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 3rem 2rem;
  text-align: center; color: var(--muted); font-size: .85rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }

/* ── COOKIE MODAL ────────────────────────────────── */
#cookie-modal {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  width: min(90vw, 600px); z-index: 9999;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem; display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
#cookie-modal.show { display: block; animation: slideUp .3s ease; }
@keyframes slideUp { from { opacity:0; transform: translateX(-50%) translateY(20px); } to { opacity:1; } }
.cookie-title { font-weight: 600; margin-bottom: .5rem; }
.cookie-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cookie-btn { padding: .5rem 1.2rem; border: none; border-radius: 999px; cursor: pointer; font-weight: 500; }
.cookie-accept { background: var(--accent); color: #000; }
.cookie-refuse { background: var(--border); color: var(--text); }
.cookie-more { background: none; color: var(--muted); text-decoration: underline; }

/* ── LEGAL PAGES ─────────────────────────────────── */
.legal-page { max-width: 820px; margin: 0 auto; padding: 4rem 2rem; }
.legal-page h1 { font-size: 2rem; margin-bottom: .5rem; }
.legal-page .updated { color: var(--muted); margin-bottom: 2.5rem; font-size: .9rem; }
.legal-page h2 { font-size: 1.2rem; margin: 2rem 0 .75rem; color: var(--accent); }
.legal-page p, .legal-page li { color: rgba(255,255,255,.85); margin-bottom: .75rem; font-size: .95rem; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page a { color: var(--accent); }

/* ── GUIDE ───────────────────────────────────────── */
.guide-step {
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center;
  margin-bottom: 4rem;
}
.guide-step.reverse { direction: rtl; }
.guide-step.reverse > * { direction: ltr; }
.guide-step img { border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.guide-step .step-num {
  display: inline-block; background: var(--accent); color: #000;
  font-weight: 700; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem;
  margin-bottom: .75rem;
}
.guide-step h2 { font-size: 1.4rem; margin-bottom: .75rem; }
.guide-step p { color: var(--muted); }

/* ── SUPPORT ─────────────────────────────────────── */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.support-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center;
}
.support-card h3 { margin-bottom: .5rem; }
.support-card p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links .nav-link-hide { display: none; }
  /* Sur mobile flex wraps naturellement à 3 puis 2 colonnes via clamp() */
  .screens-grid .screen-item:nth-child(n+4) { display: none; }
  .guide-step { grid-template-columns: 1fr; }
  .guide-step.reverse { direction: ltr; }
}
