/* Karate Training — marketing & legal site.
   Same structure as the 2Fresh Studio template (Cube Solver AI), kept on the
   premium light identity: near-white canvas, Inter Tight, soft shadows,
   blue→purple accent, dark rounded buttons. */

:root {
  --bg: #fafafa;
  --bg2: #f3f2f9;
  --surface: #ffffff;
  --ink: #101114;
  --ink2: #51525a;
  --muted: #8a8b93;
  --line: rgba(16, 17, 20, 0.08);
  --accent1: #5b86ff;
  --accent2: #a35cff;
  --accent: linear-gradient(135deg, #5b86ff 0%, #a35cff 100%);
  --sm: 0 2px 8px rgba(0, 0, 0, 0.03), 0 8px 30px rgba(0, 0, 0, 0.05);
  --md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 20px 50px rgba(0, 0, 0, 0.08);
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08 }

/* ---- nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; padding: 13px 22px; backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(255, 255, 255, 0.72); border-bottom: 1px solid var(--line) }
.nav .brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem }
.nav .brand img { width: 34px; height: 34px; border-radius: 10px }
.nav .links { display: flex; gap: 24px; font-size: 0.95rem; font-weight: 600 }
.nav .links a { color: var(--ink2); transition: 0.2s }
.nav .links a:hover { color: var(--ink) }
@media (max-width: 680px) { .nav .links { display: none } }

/* ---- store badges ---- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; align-items: center }
.badge { display: inline-flex; align-items: center; gap: 11px; background: var(--ink);
  border-radius: 15px; padding: 10px 20px 10px 16px; box-shadow: var(--md); transition: transform 0.14s }
.badge:hover { transform: translateY(-3px) }
.badge svg { flex: 0 0 auto }
.badge .bt { display: flex; flex-direction: column; line-height: 1.05; color: #fff }
.badge .bt small { font-size: 0.62rem; letter-spacing: 0.4px; text-transform: uppercase; color: #cfd0d6 }
.badge .bt b { font-size: 1.16rem; font-weight: 700 }
.soon { font-size: 0.82rem; color: var(--muted); font-weight: 600 }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden;
  background: radial-gradient(1100px 540px at 78% -8%, #ece9ff 0%, rgba(236, 233, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg2) 100%) }
/* padding latéral obligatoire : .hero-grid est posé sur le même élément que .wrap,
   son padding écrase donc le `padding: 0 22px` du .wrap */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center;
  width: 100%; padding: 132px 22px 92px }
.brand-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 22px }
.app-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--md); flex: 0 0 auto }
.wordmark { display: flex; flex-direction: column; line-height: 0.95 }
.wordmark span { font-weight: 800; font-size: 2rem; letter-spacing: -0.04em }
.wordmark .w-grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 4px 0 14px }
.hero h1 .grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent }
.hero p.sub { font-size: 1.12rem; color: var(--ink2); margin-bottom: 24px; max-width: 500px; font-weight: 500 }
.hero .stores { margin-bottom: 20px }
.hero .pills { display: flex; gap: 9px; flex-wrap: wrap }
.pill { background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.84rem;
  padding: 7px 14px; border-radius: 30px; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--sm) }

/* ---- hero phone mockup (pre-rendered PNG) ---- */
.hero-phone { justify-self: center; width: min(340px, 88%); transform: rotate(2deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.18)) }
.trial-note { color: var(--ink2); font-weight: 600; font-size: 0.92rem; margin: 28px 0 20px }
@media (max-width: 820px) {
  /* padding latéral explicite : sans lui le contenu du hero est collé aux bords */
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 116px 18px 72px }
  .hero p.sub { margin-left: auto; margin-right: auto }
  .hero .stores, .hero .pills, .brand-hero { justify-content: center }
  .hero-phone { display: none }
}

/* ---- sections ---- */
section { padding: 84px 0 }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px }
.sec-head .kick { display: inline-block; color: #fff; background: var(--accent); font-weight: 700;
  letter-spacing: 0.6px; font-size: 0.74rem; text-transform: uppercase; padding: 6px 15px; border-radius: 30px }
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 16px 0 12px }
.sec-head p { color: var(--ink2) }

.features { background: var(--surface) }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  box-shadow: var(--sm); transition: transform 0.15s, box-shadow 0.15s }
.card:hover { transform: translateY(-4px); box-shadow: var(--md) }
.card .ico { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 1.55rem; margin-bottom: 16px; color: #fff }
.card:nth-child(1) .ico { background: linear-gradient(135deg, #4f8cff, #2f6bff) }
.card:nth-child(2) .ico { background: linear-gradient(135deg, #a35cff, #7b3fe4) }
.card:nth-child(3) .ico { background: linear-gradient(135deg, #34c77b, #1f9e63) }
.card:nth-child(4) .ico { background: linear-gradient(135deg, #ff9f43, #f67e1b) }
.card:nth-child(5) .ico { background: linear-gradient(135deg, #ff5e8a, #ff3d71) }
.card:nth-child(6) .ico { background: linear-gradient(135deg, #2bc4d4, #1d9fb0) }
.card h3 { font-size: 1.16rem; margin-bottom: 6px; font-weight: 700 }
.card p { color: var(--ink2); font-size: 0.95rem }

/* ---- alternating feature rows (image + text) ---- */
.frows { background: var(--bg) }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 64px }
.frow:last-child { margin-bottom: 0 }
.frow:nth-child(even) .fimg { order: 2 }
.fimg img { width: 100%; border-radius: 28px; box-shadow: var(--md) }
.ftxt .kick { display: inline-block; color: #fff; background: var(--accent); font-weight: 700;
  letter-spacing: 0.6px; font-size: 0.74rem; text-transform: uppercase; padding: 6px 15px; border-radius: 30px }
.ftxt h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 14px 0 10px }
.ftxt p { color: var(--ink2); font-size: 1.02rem }
@media (max-width: 820px) {
  .frow { grid-template-columns: 1fr; gap: 22px; margin-bottom: 52px; text-align: center }
  .frow:nth-child(even) .fimg { order: 0 }
}

/* ---- testimonials ---- */
.quotes { background: var(--surface) }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
@media (max-width: 860px) { .tgrid { grid-template-columns: 1fr } }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  box-shadow: var(--sm) }
.tcard .who { display: flex; align-items: center; gap: 13px; margin-bottom: 14px }
.tcard .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover }
.tcard .who b { font-size: 1.02rem }
.tcard .who .stars { display: block; color: #f6a723; font-size: 0.82rem; letter-spacing: 1px }
.tcard p { color: var(--ink2); font-size: 0.94rem }

/* ---- stats band ---- */
.stats { background: var(--bg) }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  text-align: center; box-shadow: var(--sm) }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 6px; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent }
.stat span { color: var(--ink2); font-size: 0.9rem; font-weight: 500 }

/* ---- FAQ ---- */
.faq { background: var(--surface) }
.faq-list { max-width: 760px; margin: 0 auto }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--sm) }
.faq-list summary { font-weight: 700; cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 12px }
.faq-list summary::-webkit-details-marker { display: none }
.faq-list summary::after { content: '+'; font-size: 1.3rem; font-weight: 700; color: var(--muted); transition: transform 0.2s }
.faq-list details[open] summary::after { transform: rotate(45deg) }
.faq-list details p { color: var(--ink2); margin-top: 10px; font-size: 0.96rem }

.cta-band { background: var(--accent); text-align: center; color: #fff }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 10px }
.cta-band p { opacity: 0.95; margin-bottom: 24px; font-weight: 500 }
.cta-band .badge { background: #0c0d11 }
.cta-band .stores { justify-content: center }
.cta-band .soon { color: rgba(255, 255, 255, 0.85) }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; border-radius: 16px;
  padding: 14px 26px; font-size: 1.02rem; cursor: pointer; border: none; transition: transform 0.12s }
.btn:hover { transform: translateY(-2px) }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--md) }

/* ---- legal / content pages ---- */
.page { max-width: 800px; margin: 0 auto; padding: 130px 22px 72px }
.page h1 { font-size: 2.3rem; margin-bottom: 6px }
.page .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px }
.page h2 { font-size: 1.25rem; margin: 32px 0 10px; font-weight: 700 }
.page p, .page li { color: var(--ink2); margin-bottom: 12px }
.page strong { color: var(--ink) }
.page ul { padding-left: 22px; margin-bottom: 12px }
.page a.link { font-weight: 600; background: var(--accent); -webkit-background-clip: text; background-clip: text;
  color: transparent; border-bottom: 1.5px solid rgba(124, 92, 255, 0.35) }
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-weight: 600 }
.back:hover { color: var(--ink) }

/* ---- scroll reveal (animé par le script en bas d'index.html) ---- */
.reveal { opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) }
.reveal.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none }
}

/* ---- footer ---- */
footer { background: var(--ink); color: #fff; padding: 44px 0 32px }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px }
.foot .brand { display: flex; align-items: center; gap: 11px; font-weight: 800 }
.foot .brand img { width: 32px; height: 32px; border-radius: 9px }
.foot .flinks { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.92rem; font-weight: 600 }
.foot .flinks a { color: #b9bac2 }
.foot .flinks a:hover { color: #fff }
.copy { color: #71727c; font-size: 0.82rem; text-align: center; margin-top: 24px }
