/* ============================================================
   Self-Belt — Design System
   Dark (#0a0a0a) + Gold (#d4af37) | French | Mobile-first
   ============================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variables ── */
:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --surface-2:  #1a1a1a;
  --surface-3:  #222222;
  --gold:       #d4af37;
  --gold-light: #e8c84a;
  --gold-dim:   rgba(212,175,55,.15);
  --gold-dim2:  rgba(212,175,55,.08);
  --text:       #f0ead6;
  --text-muted: #7a7a6a;
  --text-dim:   #4a4a3a;
  --border:     rgba(212,175,55,.12);
  --border-2:   rgba(212,175,55,.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-gold: 0 4px 20px rgba(212,175,55,.12);
  --shadow-card: 0 2px 12px rgba(0,0,0,.5);

  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */

/* Logo */
.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  color: var(--gold);
  font-size: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(212,175,55,.4);
}
.logo--sm { font-size: 15px; }
.logo--lg { font-size: 28px; }

/* Gold badge pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-2);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}
.badge--filled {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.badge--filled::before { background: var(--bg); box-shadow: none; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 16px rgba(212,175,55,.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: var(--radius);
}
.btn-full { width: 100%; }

/* Section header */
.section-header {
  padding: 32px 20px 20px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  color: var(--text);
}
.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* Icon helper */
.icon {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  color: var(--text-muted);
  transition: color var(--transition);
  min-width: 56px;
}
.bottom-nav__item.active { color: var(--gold); }
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__item span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   PAGE CONTAINER
   ============================================================ */
.page {
  min-height: 100dvh;
  padding-bottom: 80px; /* nav height */
}
.page--landing { padding-bottom: 0; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Hero */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(212,175,55,.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-figure {
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
  position: relative;
}

.hero-figure::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), transparent 30%, var(--gold) 50%, transparent 80%, var(--gold));
  animation: spin 8s linear infinite;
  opacity: 0.3;
}

.hero-figure::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-2);
}

.hero-figure-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 64px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-badge {
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.1;
}

.hero-title span {
  color: var(--gold);
  display: block;
  font-style: italic;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature badges row */
.feature-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 360px;
  margin: 40px auto 0;
}
.feature-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
}
.feature-badge__icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
}
.feature-badge__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* Tagline below badges */
.hero-tagline {
  font-size: 18px;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--text-muted);
  margin-top: 32px;
}

/* Bottom feature bar */
.feature-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.feature-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.feature-bar__icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-bar__text { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.feature-bar__text strong { display: block; color: var(--text); margin-bottom: 2px; }

/* ============================================================
   APP HEADER (inner pages)
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header__left { display: flex; align-items: center; gap: 12px; }
.app-header__right { display: flex; align-items: center; gap: 12px; }
.app-header__tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition);
}
.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.belt-product {
  margin: 24px 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.belt-product::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212,175,55,.06) 0%, transparent 50%);
  pointer-events: none;
}
.belt-product__visual {
  font-size: 80px;
  margin-bottom: 16px;
  display: block;
}
.belt-product__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}
.belt-product__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}
.belt-product__sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 24px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.cat-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-gold);
}
.cat-card:hover::before { opacity: 1; }

.cat-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.cat-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.cat-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* CTA banner */
.cta-banner {
  margin: 0 20px 24px;
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--surface) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}

/* ============================================================
   TUTOS PAGE
   ============================================================ */
.video-list {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: all var(--transition);
}
.video-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-card);
}
.video-thumb {
  width: 120px;
  flex-shrink: 0;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,.15), transparent);
}
.video-thumb-play {
  position: absolute;
  z-index: 1;
  font-size: 28px;
  opacity: 0.8;
}
.video-info {
  padding: 16px;
  flex: 1;
}
.video-info__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.video-info__meta {
  font-size: 12px;
  color: var(--text-muted);
}
.video-info__duration {
  display: inline-block;
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 8px;
}

/* ============================================================
   FORMATION PAGE
   ============================================================ */
.level-grid {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.level-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}
.level-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-gold);
}
.level-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.level-card__content { flex: 1; }
.level-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.level-card__meta {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.level-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.level-card__progress {
  margin-top: 10px;
}

/* ============================================================
   CONSEILS PAGE
   ============================================================ */
.quote-block {
  margin: 0 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 20px 20px 24px;
}
.quote-block__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}
.quote-block__author {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.cat-tags {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}
.cat-tag {
  padding: 6px 16px;
  border: 1px solid var(--border-2);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--transition);
  cursor: pointer;
}
.cat-tag:hover, .cat-tag.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim2);
}

.tips-list {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition);
}
.tip-card:hover {
  border-color: var(--border-2);
}
.tip-card__icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tip-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.tip-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   COMMUNAUTÉ PAGE
   ============================================================ */
.tab-bar {
  display: flex;
  padding: 0 20px 16px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
}
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.forum-list {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.forum-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all var(--transition);
  cursor: pointer;
}
.forum-post:hover {
  border-color: var(--border-2);
}
.forum-post__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.forum-post__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.forum-post__stat {
  display: flex;
  align-items: center;
  gap: 4px;
}
.forum-post__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gold-dim2);
  color: var(--gold);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.create-btn-row {
  padding: 0 20px 16px;
}
.create-btn-row .btn {
  width: 100%;
}

/* ============================================================
   PROFIL PAGE
   ============================================================ */
.profile-header {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b8941f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(212,175,55,.3);
}
.profile-info__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.profile-info__tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.profile-progress {
  margin: 0 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.profile-progress__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.profile-progress__level {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}
.profile-progress__pct {
  font-size: 13px;
  color: var(--text-muted);
}
.profile-progress__text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.profile-links {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.profile-link:hover {
  border-color: var(--border-2);
  color: var(--gold);
}
.profile-link__icon {
  font-size: 20px;
  width: 32px;
  text-align: center;
}
.profile-link__arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .feature-badges { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .feature-bar { grid-template-columns: 1fr; }
  .video-card { flex-direction: row; }
}

@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-badges { grid-template-columns: repeat(4, 1fr); }
  .feature-bar { grid-template-columns: repeat(5, 1fr); }
  .feature-bar__item { flex-direction: column; text-align: center; gap: 8px; }
}

/* ============================================================
   SCREEN MANAGEMENT (SPA)
   ============================================================ */
.screen { display: none; }
.screen.active { display: block; }