/* ==========================================================================
   FlashFit — mon compte (espace client)
   ========================================================================== */
.acc { max-width: 1040px; }

/* --- Non connecté : connexion + ce que contient l'espace ----------------- */
.acc__login {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) { .acc__login { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

.acc__card,
.acc__perks {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 32px);
}
.acc__perks { background: var(--canvas); }

.acc__intro { font-size: 14px; line-height: 1.7; color: var(--body); margin: 10px 0 22px; }

.acc__form .ff-label { display: block; margin-bottom: 8px; }
.acc__row { display: flex; gap: 10px; flex-wrap: wrap; }
.acc__row .ff-input { flex: 1 1 240px; }

.acc__msg { font-size: 13px; color: var(--body); margin: 12px 0 0; min-height: 1em; }
.acc__msg.is-err { color: #B91C1C; }
.acc__msg.is-ok  { color: #15803D; }

.acc__perks ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.acc__perks li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.acc__perks li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue-wash) center / 10px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* --- Connecté : barre + commandes ---------------------------------------- */
.acc__bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.acc__bar p { font-size: 13.5px; color: var(--body); margin: 4px 0 0; }
.acc__bar strong { color: var(--ink-soft); overflow-wrap: anywhere; }

.acc__empty { padding: 40px 0 0; font-size: 14px; color: var(--muted); }
.acc__empty .ff-btn { margin-top: 18px; }

.acc__ord {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 24px;
}

.acc__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.acc__num {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--ink-soft);
}
.acc__date { font-size: 12px; color: var(--muted); margin-top: 3px; }

.acc__pill {
  background: var(--blue-wash);
  color: var(--blue);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.acc__pill.is-done { background: #DCFCE7; color: #15803D; }

.acc__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.acc__img {
  width: 52px; height: 52px; flex-shrink: 0;
  background: #FAFAFA;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.acc__img img { width: 100%; height: 100%; object-fit: contain; }
.acc__info { flex: 1; min-width: 0; }
.acc__nm { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.acc__vr { font-size: 12px; color: var(--muted); margin-top: 2px; }
.acc__pr { font-size: 14px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

.acc__foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding: 16px 22px;
  font-size: 13.5px; color: var(--body);
}
.acc__foot strong { font-family: 'Sora', system-ui, sans-serif; font-size: 16px; color: var(--ink-soft); margin-left: 6px; }

/* Actions d'une commande */
.acc__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.acc__actions .ff-btn { padding: 11px 20px; }

/* --- Raccourcis d'aide ---------------------------------------------------- */
.acc__help { margin-top: clamp(40px, 5vw, 56px); }
.acc__links {
  list-style: none;
  margin: 16px 0 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px)  { .acc__links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .acc__links { grid-template-columns: repeat(4, 1fr); } }

.acc__link {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.acc__link:hover { border-color: var(--line-strong); box-shadow: 0 14px 30px -20px rgba(10,22,40,.4); transform: translateY(-2px); }
.acc__link svg {
  width: 22px; height: 22px;
  margin-bottom: 8px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.acc__link strong { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.acc__link span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* --- Chargement ---------------------------------------------------------- */
.acc__loading {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 50px 20px;
  font-size: 13.5px; color: var(--muted);
}
.acc__spin {
  width: 20px; height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: acc-spin .8s linear infinite;
}
@keyframes acc-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .acc__head, .acc__item, .acc__foot { padding-left: 16px; padding-right: 16px; }
  .acc__actions .ff-btn { flex: 1 1 100%; }
}
