/* ════════════════════════════════════════
   PAGE COMPTE
════════════════════════════════════════ */
.compte-page {
  padding: 0 0 100px;
  background: #f5f5f5;
  min-height: 100vh;
}

/* ── Hero profil ── */
.compte-hero {
  background: #fff;
  padding: 24px 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.compte-avatar {
  display: flex;
  align-items: center;
  gap: 14px;
}
.compte-avatar-img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff5a1f;
}
.compte-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 3px;
}
.compte-email {
  font-size: 13px;
  color: #888;
  margin: 0;
}
.compte-edit-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff5f0;
  display: flex; align-items: center; justify-content: center;
  color: #ff5a1f;
  border: 1px solid #ffe0d0;
  flex-shrink: 0;
}

/* ── Stats ── */
.compte-stats {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px 0;
  margin-bottom: 8px;
}
.compte-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.compte-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
}
.compte-stat-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.compte-stat-sep {
  width: 1px;
  height: 32px;
  background: #eee;
}

/* ── Titres sections ── */
.compte-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 16px 16px 8px;
}

/* ── Menu ── */
.compte-menu {
  background: #fff;
  border-radius: 12px;
  margin: 0 12px 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.compte-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #1a1a1a;
  transition: background .15s;
}
.compte-menu-item:last-child { border-bottom: none; }
.compte-menu-item:active { background: #f9f9f9; }

.compte-menu-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.compte-menu-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.compte-menu-icon.orange  { background: #fff5f0; color: #ff5a1f; }
.compte-menu-icon.red     { background: #fff0f0; color: #e63946; }
.compte-menu-icon.blue    { background: #f0f4ff; color: #3b82f6; }
.compte-menu-icon.green   { background: #f0faf4; color: #22c55e; }
.compte-menu-icon.purple  { background: #f5f0ff; color: #8b5cf6; }

.compte-menu-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.compte-menu-label { font-size: 14px; font-weight: 600; }
.compte-menu-sub   { font-size: 12px; color: #999; }
.compte-menu-arrow { width: 16px; height: 16px; stroke: #ccc; fill: none; stroke-width: 2; flex-shrink: 0; }

/* ── Commandes ── */
.compte-orders {
  background: #fff;
  border-radius: 12px;
  margin: 0 12px 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.compte-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #1a1a1a;
}
.compte-order-info { display: flex; flex-direction: column; gap: 2px; }
.compte-order-num  { font-size: 12px; color: #999; }
.compte-order-name { font-size: 13px; font-weight: 600; }
.compte-order-date { font-size: 11px; color: #bbb; }
.compte-order-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.compte-order-price { font-size: 14px; font-weight: 700; color: #ff5a1f; }
.compte-order-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}
.status-completed  { background: #f0faf4; color: #22c55e; }
.status-processing { background: #fff5f0; color: #ff5a1f; }
.status-on-hold    { background: #fffbf0; color: #f59e0b; }
.status-cancelled  { background: #fff0f0; color: #e63946; }

.compte-orders-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #ff5a1f;
  text-decoration: none;
}

/* ── Déconnexion ── */
.compte-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 12px 20px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  color: #e63946;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.compte-logout-btn svg { stroke: #e63946; fill: none; stroke-width: 2; }

/* ── Guest (non connecté) ── */
.compte-guest {
  padding: 40px 24px;
  text-align: center;
}
.compte-guest-icon {
  width: 88px; height: 88px;
  background: #fff5f0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: #ff5a1f;
}
.compte-guest-icon svg { stroke: #ff5a1f; fill: none; stroke-width: 1.5; }
.compte-guest h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.compte-guest p  { color: #888; font-size: 14px; margin-bottom: 24px; }
.compte-guest-form .woocommerce { text-align: left; }