/* ─── Design tokens (cf. design_handoff_sok_kai_gym_site/README.md) ─── */
:root {
  --bg: oklch(0.15 0.015 50);
  --bg-alt: oklch(0.10 0.01 50);
  --gold: oklch(0.74 0.13 85);
  --gold-hover: oklch(0.82 0.12 85);
  --gold-dark: oklch(0.55 0.12 80);
  --cream: oklch(0.95 0.01 80);
  --cream-2: oklch(0.96 0.01 80);
  --text-90: oklch(0.90 0.01 80);
  --text-85: oklch(0.85 0.01 80);
  --text-85-2: oklch(0.85 0.02 80);
  --text-80: oklch(0.80 0.02 80);
  --text-75: oklch(0.75 0.02 80);
  --text-72: oklch(0.72 0.02 80);
  --text-70: oklch(0.70 0.02 80);
  --text-68: oklch(0.68 0.02 80);
  --text-65: oklch(0.65 0.02 80);
  --text-55: oklch(0.55 0.02 80);
  --on-gold: oklch(0.12 0.01 50);
  --card-bg: oklch(0.13 0.015 50);
  --stripe-a: oklch(0.20 0.015 50);
  --stripe-b: oklch(0.17 0.015 50);
  --border-25: oklch(0.55 0.12 80 / 0.25);
  --border-35: oklch(0.55 0.12 80 / 0.35);
  --border-40: oklch(0.55 0.12 80 / 0.4);
  --border-50: oklch(0.55 0.12 80 / 0.5);
  --radius-sm: 2px;
  --radius-md: 4px;
  --pad-v: clamp(60px, 10vw, 120px);
  --pad-h: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Work Sans', sans-serif;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold-hover); }

h1, h2, h3 { font-family: 'Oswald', sans-serif; margin: 0; }

.eyebrow {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--cream-2);
}

.section-subtitle { font-size: 16px; color: var(--text-75); margin: 12px 0 0; }

.body-text { font-size: 17px; line-height: 1.7; color: var(--text-80); }

.section-inner, .contact__inner { max-width: 1280px; margin: 0 auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
}
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 15px; font-weight: 600; border: none; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn--outline { border-color: var(--gold); color: var(--text-90); background: transparent; }
.btn--outline:hover { color: var(--cream); border-color: var(--gold-hover); }

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad-h);
  background: oklch(0.10 0.01 50 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-35);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { height: 44px; width: 44px; object-fit: cover; border-radius: 50%; }
.nav__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--cream);
  white-space: nowrap;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 15px;
  font-weight: 500;
}
.nav__links a:not(.btn) { color: var(--text-90); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}
.hero__stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 26px, var(--stripe-b) 26px 52px);
  /* Placeholder tant qu'aucune photo n'a été envoyée depuis l'onglet
     "Images" du panel admin (remplacé alors par .hero__bg). */
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.10 0.01 50 / 0.55) 0%, oklch(0.10 0.01 50 / 0.85) 100%);
}
.hero__flag {
  position: absolute;
  top: 24px;
  right: 24px;
  width: clamp(52px, 7vw, 72px);
  aspect-ratio: 5 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 16px oklch(0.10 0.01 50 / 0.6);
}
.hero__flag img { width: 100%; height: 100%; object-fit: cover; }
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero__title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__logo {
  width: clamp(48px, 7vw, 84px);
  height: clamp(48px, 7vw, 84px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.hero__title {
  font-weight: 700;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--cream-2);
  text-shadow: 0 2px 24px oklch(0.10 0.01 50 / 0.8);
}
.hero__subtitle {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--gold);
  letter-spacing: 0.06em;
}
.hero__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-85);
  max-width: 560px;
  margin: 8px 0 0;
}
.hero__actions { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }

/* ─── Photo / map placeholders (prêts à recevoir vos médias) ─── */
.photo-slot {
  border: 2px solid var(--border-50);
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(45deg, var(--stripe-a) 0 14px, var(--stripe-b) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-slot--portrait { aspect-ratio: 4 / 5; }
.photo-slot--square { aspect-ratio: 1 / 1; border-width: 0; border-radius: var(--radius-md); }
.photo-slot__label {
  font-family: monospace;
  font-size: 13px;
  color: var(--text-70);
  text-align: center;
  padding: 0 24px;
}
.photo-slot--square .photo-slot__label { font-size: 11px; padding: 0 8px; }
.photo-slot__img { width: 100%; height: 100%; object-fit: cover; }

/* Les photos (fond du hero, photo "histoire", vignettes Instagram) se
   gèrent depuis l'onglet "Images" du panel admin — pas besoin de coder. */

/* ─── Histoire ─── */
.histoire {
  padding: var(--pad-v) var(--pad-h);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.eyebrow-row__line { width: 36px; height: 2px; background: var(--gold); display: inline-block; }
.histoire .section-title { margin: 0 0 20px; }
.histoire .body-text { margin: 0 0 16px; }
.tag-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  padding: 8px 16px;
  border: 1px solid var(--border-50);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-85-2);
}

/* ─── Horaires ─── */
.horaires {
  padding: var(--pad-v) var(--pad-h);
  background: var(--bg-alt);
  border-top: 1px solid var(--border-25);
  border-bottom: 1px solid var(--border-25);
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head .section-title { margin: 0 0 12px; }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card {
  border: 1px solid var(--border-40);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.course-card__title { font-weight: 600; font-size: 22px; margin: 0 0 8px; color: var(--cream-2); }
.course-card__price { font-weight: 700; font-size: 26px; color: var(--gold); font-family: 'Oswald', sans-serif; }
.course-card__sessions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-25);
  padding-top: 18px;
}
.course-card__session { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-85); gap: 12px; }
.course-card__day { font-weight: 600; }
.course-card__time { color: var(--text-72); text-align: right; }
.horaires__note { text-align: center; font-size: 14px; color: var(--text-65); margin: 32px 0 0; }

/* ─── Instagram ─── */
.instagram { padding: var(--pad-v) var(--pad-h); max-width: 1280px; margin: 0 auto; }
.instagram .section-head { margin-bottom: 48px; }
.instagram .section-subtitle { margin-bottom: 28px; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

/* ─── Contact ─── */
.contact { padding: var(--pad-v) var(--pad-h); background: var(--bg-alt); border-top: 1px solid var(--border-25); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.contact .eyebrow { display: block; margin-bottom: 14px; }
.contact .section-title { margin: 0 0 20px; }
.contact .body-text { margin: 0 0 28px; }
.address-block { display: flex; gap: 16px; margin-bottom: 32px; align-items: flex-start; }
.address-block__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold);
  gap: 2px;
}
.address-block__icon span:nth-child(1),
.address-block__icon span:nth-child(3) { width: 6px; height: 14px; background: var(--gold); border-radius: 1px; }
.address-block__icon span:nth-child(2) { width: 16px; height: 4px; background: var(--gold); border-radius: 1px; margin: 0 2px; }
.address-block__venue { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; color: var(--cream-2); margin-bottom: 4px; }
.address-block__lines { font-size: 15px; color: var(--text-80); line-height: 1.6; }
.address-block__extra { font-size: 14px; color: var(--text-75); margin-top: 4px; }
.map-slot { aspect-ratio: 4 / 3; border: 2px solid var(--border-50); border-radius: var(--radius-md); overflow: hidden; }
.map-slot iframe { width: 100%; height: 100%; border: 0; }

/* ─── Contact form ─── */
.contact-form-wrap {
  max-width: 640px;
  margin: clamp(48px, 8vw, 80px) auto 0;
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--border-25);
}
.contact-form__title {
  font-weight: 600;
  font-size: 22px;
  color: var(--cream-2);
  margin: 0 0 24px;
  text-align: center;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__row { display: flex; flex-direction: column; gap: 8px; }
.contact-form__row label { font-size: 14px; color: var(--text-80); font-weight: 600; }
.contact-form__row input,
.contact-form__row textarea {
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  color: var(--cream);
  background: var(--card-bg);
  border: 1px solid var(--border-40);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  resize: vertical;
}
.contact-form__row input:focus,
.contact-form__row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form__submit { align-self: flex-start; }
.contact-form__status { margin: 0; font-size: 14px; min-height: 1.4em; }
.contact-form__status[data-state="ok"] { color: var(--gold); }
.contact-form__status[data-state="error"] { color: oklch(0.65 0.19 25); }
.contact-form__legal { margin: 0; font-size: 12px; color: var(--text-55); line-height: 1.5; }

/* ─── Footer ─── */
.footer {
  padding: 40px var(--pad-h);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-25);
}
.footer__brand { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 16px; color: var(--text-85); letter-spacing: 0.03em; }
.footer__links { display: flex; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.footer__copy { font-size: 13px; color: var(--text-55); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .histoire, .contact__inner { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: oklch(0.10 0.01 50 / 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-35);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav__links.is-open { max-height: 320px; }
  .nav__links a { padding: 16px var(--pad-h); border-bottom: 1px solid var(--border-25); }
  .nav__links a.btn { margin: 16px var(--pad-h); }

  .courses-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .contact-form__submit { align-self: stretch; }
}
