/* ===================================
   OPTIMUSCLE — Responsive Design
   =================================== */

/* ===== TABLETTE (600px+) ===== */
@media (min-width: 600px) {
  body {
    max-width: 100%;
    padding-bottom: 0;
  }

  .container {
    padding: 0 32px;
    max-width: 1200px;
    margin: 0 auto;
  }

  header {
    padding: 18px 32px;
  }

  .logo-text { font-size: 28px; }
  .logo-icon { width: 44px; height: 44px; }

  /* Hero plus grand */
  .hero { height: 380px; margin-bottom: -40px; }
  .hero-content {
    bottom: 60px;
    left: 32px;
    right: 32px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero-title { font-size: 64px; }
  .hero-sub { font-size: 18px; }

  /* Login en grand */
  #page-login { padding: 60px 24px; }
  .login-card { max-width: 440px; padding: 36px; }
  .login-logo-icon { width: 90px; height: 90px; }
  .login-logo-text { font-size: 56px; }

  /* Onboarding */
  .onb-hero { height: 320px; }
  .onb-hero-text {
    left: 32px;
    right: 32px;
    max-width: 700px;
    margin: 0 auto;
  }
  .onb-hero-text .display { font-size: 56px; }
  .step {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .question { font-size: 44px; }
  .options { grid-template-columns: 1fr 1fr; }

  /* Stats agrandis */
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .stat-card { padding: 20px 12px; }
  .stat-value { font-size: 36px; }

  /* Days en 2 colonnes */
  #days-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .day-card {
    margin-bottom: 0;
    height: 120px;
  }
  .day-name { font-size: 24px; }

  /* Workout */
  .workout-hero { height: 380px; }
  .workout-hero-content {
    padding: 24px 32px;
    max-width: 1200px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }
  .workout-title { font-size: 64px; }
  #exercise-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .exercise { margin-bottom: 0; }

  /* Badges en 4 colonnes */
  .badges-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .badge { padding: 18px 10px; }
  .badge-emoji { font-size: 40px; }
  .badge-name { font-size: 16px; }

  /* History en 2 colonnes */
  #history-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .history-card { margin-bottom: 0; }

  /* Titres plus grands */
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }

  /* Modal plus grande */
  .modal {
    max-width: 480px;
    padding: 32px;
  }

  /* Bottom nav centrée flottante */
  nav.tabs {
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
  }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
    padding-left: 240px;
    transition: padding-left .3s var(--ease-smooth);
  }

  body.sidebar-collapsed { padding-left: 0; }

  header {
    padding-left: 272px;
    padding-right: 40px;
    transition: padding-left .3s var(--ease-smooth);
  }

  body.sidebar-collapsed header { padding-left: 40px; }

  .container {
    padding: 0 40px;
    max-width: 1400px;
  }

  /* Hero ajusté */
  .hero { height: 420px; }
  .hero-content { padding: 0 40px; }
  .hero-title { font-size: 72px; }

  /* SIDEBAR NAVIGATION */
  nav.tabs {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    max-width: 240px;
    transform: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 90px 16px 20px;
    border-right: 1px solid var(--border);
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    gap: 4px;
    transition: transform .3s var(--ease-smooth);
  }

  body.sidebar-collapsed nav.tabs {
    transform: translateX(-100%);
  }

  .tab {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    gap: 12px;
  }

  .tab.active {
    background: var(--card);
    color: var(--accent);
  }

  .tab.active::before {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    border-radius: 0 2px 2px 0;
  }

  .tab svg { width: 20px; height: 20px; }

  /* Grilles plus larges */
  #days-list { grid-template-columns: repeat(3, 1fr); }
  #exercise-list { grid-template-columns: repeat(2, 1fr); }
  .badges-grid { grid-template-columns: repeat(6, 1fr); }
  #history-list { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }

  .stat-value { font-size: 42px; }

  /* Onboarding centré */
  .onb-hero { height: 360px; }
  .step { max-width: 800px; }
  .options {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .option { padding: 18px 20px; }
  .option-title { font-size: 17px; }

  /* Login centré */
  #page-login { padding: 80px 24px; }
}

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
  .hero-title { font-size: 84px; }
  #days-list { grid-template-columns: repeat(3, 1fr); }
  .badges-grid { grid-template-columns: repeat(6, 1fr); }
}
