/* ===== COMMANDES PAGE ===== */

/* Override espacement des sections pour cette page */
.cmd-header ~ .section,
body .section {
  --section-padding: 2rem 1rem;
}

/* Header */
.cmd-header {
  position: relative;
  text-align: center;
  padding: 7rem 2rem 3rem;
  background: #120000;
  overflow: hidden;
}

.cmd-header-bg {
  position: absolute;
  inset: 0;
  background: url('../img/mapmonde.png') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}

.cmd-header h1 {
  font-family: var(--font-body);
  font-size: 2.8rem;
  color: #a78a7f;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.cmd-header h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: #735751;
  margin: 0.8rem auto 0;
}

.cmd-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: #c9b89a;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* Steps */
.cmd-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: #e7d7c1;
  background: linear-gradient(145deg, #3f0418, #370617);
  border: 1px solid #735751;
  border-radius: 50%;
}

.step-content {
  flex: 1;
}

.step-content h2 {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.step-content h2::after {
  display: none;
}

.step-content > p {
  color: #e7d7c1;
  margin-bottom: 1.2rem;
}

/* Command boxes */
.cmd-box {
  background: linear-gradient(145deg, #1a0508, #120000);
  border: 1px solid #3f0418;
  border-left: 3px solid #735751;
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cmd-box code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: #a78a7f;
  background: rgba(167, 138, 127, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 700;
}

.cmd-box code em {
  color: #735751;
  font-style: italic;
  font-weight: 400;
}

.cmd-desc {
  color: #e7d7c1;
  font-size: 0.9rem;
  opacity: 0.85;
}

.cmd-note {
  font-style: italic;
  color: #735751;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

/* Classes grid */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.class-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(145deg, #1a0508, #120000);
  border: 1px solid #3f0418;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
  border-color: #735751;
  box-shadow: 0 0 12px rgba(231, 215, 193, 0.1);
}

.class-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease;
}

.class-card:hover .class-icon {
  filter: drop-shadow(0 0 8px rgba(231, 215, 193, 0.35));
}

.class-info {
  flex: 1;
  min-width: 0;
}

.class-info h3 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: #a78a7f;
  margin-bottom: 0.3rem;
}

.class-info p {
  font-size: 0.85rem;
  color: #e7d7c1;
  opacity: 0.8;
  margin-bottom: 0.4rem;
  font-style: italic;
}

.class-info code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #735751;
  background: rgba(115, 87, 81, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

/* CTA footer */
.cmd-footer-section {
  text-align: center;
  padding-bottom: 3rem;
}

.cmd-cta-text {
  color: #e7d7c1;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ── Onboarding steps override pour comment-rejoindre ── */
.onboarding-step .step-number {
  margin: 0 auto 0.6rem;
}

/* ── Command buttons grid (comment-rejoindre) ── */
.cmd-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 650px;
  margin: 0 auto;
}

.cmd-button-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: rgba(60, 30, 40, 0.35);
  border: 1px solid rgba(167, 138, 127, 0.15);
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.cmd-button-card:hover {
  border-color: rgba(167, 138, 127, 0.4);
  transform: translateY(-2px);
}

.cmd-button-card code {
  font-family: 'MedievalSharp', cursive;
  font-size: 1.1rem;
  color: #a78a7f;
  background: rgba(167, 138, 127, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(167, 138, 127, 0.2);
}

.cmd-button-card span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #a89080;
  font-style: italic;
}

.cmd-mini-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 5px 14px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: #a78a7f;
  border: 1px solid rgba(167, 138, 127, 0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}

.cmd-mini-btn:hover {
  border-color: rgba(167, 138, 127, 0.6);
  color: #e8dcc8;
}

/* Responsive */
@media (max-width: 768px) {
  .cmd-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-content h2 {
    text-align: center;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .cmd-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cmd-header h1 {
    font-size: 1.8rem;
  }
}
