/* ============================================================
   PATTES & PRESTIGE — account.css
   ============================================================ */

/* ── PAGE ── */
.account-page {
  min-height: 100vh;
  padding-top: var(--nav-h, 80px);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════
   AUTH SCREEN
   ══════════════════════════════════════════════════ */

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h, 80px));
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 3rem 2.5rem;
  text-align: center;
  animation: fadeInUp 0.5s var(--ease) both;
}

.auth-logo { font-size: 3rem; margin-bottom: 0.8rem; }

.auth-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  em { font-style: italic; color: var(--season-text-accent, #c4748a); }
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(58,47,39,0.06);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.auth-tab.active {
  background: rgba(255,255,255,0.85);
  color: var(--text);
  font-weight: 400;
  box-shadow: 0 3px 12px rgba(160,130,100,0.12);
}

/* Panels */
.auth-panel { display: none; text-align: left; }
.auth-panel.active { display: block; animation: fadeInUp 0.3s ease both; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.1rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-input {
  padding: 12px 18px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  width: 100%;
}
.form-input:focus { outline: none; }
.form-input::placeholder { color: var(--text-light); }

select.form-input { appearance: none; cursor: pointer; }

/* Password toggle */
.input-with-toggle {
  position: relative;
}
.input-with-toggle .form-input { padding-right: 44px; }
.pwd-toggle {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 1rem;
  opacity: 0.5; transition: opacity 0.2s;
}
.pwd-toggle:hover { opacity: 1; }

/* Animal picker */
.animal-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.animal-option {
  cursor: pointer;
}

.animal-option input { display: none; }

.animal-option span {
  display: block;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  border: 1px solid rgba(58,47,39,0.15);
  background: rgba(255,255,255,0.35);
  color: var(--text-mid);
  transition: all 0.2s;
}

.animal-option:has(input:checked) span {
  background: color-mix(in srgb, var(--season-primary, #e8a4b8) 15%, rgba(255,255,255,0.8));
  border-color: color-mix(in srgb, var(--season-primary, #e8a4b8) 45%, transparent);
  color: var(--text);
  font-weight: 400;
}

.auth-error {
  font-size: 0.78rem;
  color: #c07060;
  min-height: 1em;
  margin-bottom: 0.5rem;
}

.btn-auth {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all 0.25s;
}
.btn-auth:hover { transform: translateY(-2px); }

.auth-forgot {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  transition: color 0.2s;
}
.auth-forgot:hover { color: var(--season-text-accent, #c4748a); }

/* ══════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════ */

.account-dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 5vw 6rem;
}

/* Header */
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.account-header__info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.account-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: color-mix(in srgb, var(--season-primary, #e8a4b8) 15%, rgba(255,255,255,0.6));
  border: 2px solid color-mix(in srgb, var(--season-primary, #e8a4b8) 30%, transparent);
}

.account-header__name {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  em { font-style: italic; color: var(--season-text-accent, #c4748a); }
}

.account-header__email {
  font-size: 0.82rem;
  color: var(--text-light);
}

.btn-logout {
  padding: 9px 22px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: var(--text-light);
  background: transparent;
  border: 1px solid rgba(58,47,39,0.18);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-logout:hover { color: #c07060; border-color: rgba(192,96,96,0.3); }

/* Nav tabs */
.account-nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  margin-bottom: 2rem;
  border-radius: 50px;
  width: fit-content;
  flex-wrap: wrap;
}

.account-nav__tab {
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.account-nav__tab:hover { color: var(--text); }
.account-nav__tab.active {
  background: rgba(255,255,255,0.8);
  color: var(--text);
  font-weight: 400;
  box-shadow: 0 3px 12px rgba(160,130,100,0.12),
              inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Panels */
.account-panel { display: none; animation: fadeInUp 0.3s ease both; }
.account-panel.active { display: block; }

.account-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
}
.account-panel__header h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

.btn-account-action {
  padding: 9px 20px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(160,130,100,0.1);
}
.btn-account-action:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(160,130,100,0.15); }

/* ── COMMANDES ── */
.order-card {
  padding: 1.5rem 1.8rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.25s;
}
.order-card:hover { transform: translateY(-3px); }

.order-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 8px;
}

.order-card__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.order-card__date { font-size: 0.78rem; color: var(--text-light); }

.order-status {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.order-status.delivered { background: rgba(154,187,154,0.2); color: #3a6a3a; border: 1px solid rgba(154,187,154,0.4); }
.order-status.shipped   { background: rgba(126,184,208,0.2); color: #2a5878; border: 1px solid rgba(126,184,208,0.4); }
.order-status.processing { background: rgba(245,200,66,0.2); color: #7a6010; border: 1px solid rgba(245,200,66,0.4); }
.order-status.cancelled  { background: rgba(192,96,80,0.1); color: #8a3030; border: 1px solid rgba(192,96,80,0.2); }

.order-card__items {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.order-item-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 0.78rem;
  color: var(--text-mid);
}

.order-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.order-card__total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
}
.order-card__action {
  font-size: 0.78rem;
  color: var(--season-text-accent, #c4748a);
}

.orders-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}
.orders-empty span { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.4; }
.orders-empty p { font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ── FAVORIS ── */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.wishlist-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}
.wishlist-empty span { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.4; }

.wishlist-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wishlist-card:hover { transform: translateY(-4px); }

.wishlist-card__img {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.wishlist-card__info { padding: 1rem 1.2rem; }
.wishlist-card__name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; margin-bottom: 0.3rem; }
.wishlist-card__price { font-size: 0.9rem; color: var(--text-light); }
.wishlist-card__remove {
  float: right;
  background: none; border: none; cursor: pointer;
  font-size: 0.75rem; color: var(--text-light);
  margin-top: 0.3rem; transition: color 0.2s;
}
.wishlist-card__remove:hover { color: #c07060; }

/* ── ADRESSES ── */
.address-card {
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.address-card__content strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.3rem;
}
.address-card__content p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; }

.address-default {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(154,187,154,0.2);
  color: #3a6a3a;
  border: 1px solid rgba(154,187,154,0.35);
  margin-top: 6px;
  display: inline-block;
}

.address-card__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.btn-addr-action {
  padding: 5px 12px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  cursor: pointer;
  border: 1px solid rgba(58,47,39,0.15);
  background: rgba(255,255,255,0.4);
  color: var(--text-mid);
  transition: all 0.2s;
}
.btn-addr-action:hover { background: rgba(255,255,255,0.75); }
.btn-addr-action.delete { color: #c07060; border-color: rgba(192,96,96,0.2); }
.btn-addr-action.delete:hover { background: rgba(192,96,96,0.1); }

.addresses-empty {
  text-align: center; padding: 3rem 2rem; color: var(--text-light);
}
.addresses-empty span { font-size: 2.5rem; display: block; margin-bottom: 1rem; opacity: 0.4; }

/* ── ANIMAUX ── */
.animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.animal-card {
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s;
}
.animal-card:hover { transform: translateY(-4px); }

.animal-card__emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.animal-card__name { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; margin-bottom: 0.3rem; }
.animal-card__info { font-size: 0.78rem; color: var(--text-light); line-height: 1.5; }

.animal-card__remove {
  margin-top: 1rem;
  background: none; border: none; cursor: pointer;
  font-size: 0.72rem; color: var(--text-light);
  transition: color 0.2s;
}
.animal-card__remove:hover { color: #c07060; }

.animals-empty {
  text-align: center; padding: 3rem 2rem; color: var(--text-light);
  grid-column: 1 / -1;
}
.animals-empty span { font-size: 2.5rem; display: block; margin-bottom: 1rem; opacity: 0.4; }

/* ── PARAMÈTRES ── */
.settings-sections { display: flex; flex-direction: column; gap: 1.5rem; }

.account-settings-card {
  padding: 2rem;
}
.account-settings-card h3 { font-size: 1.1rem; margin-bottom: 1.5rem; }

.btn-account-save {
  padding: 11px 24px;
  border-radius: 50px;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 12px rgba(160,130,100,0.12);
  transition: all 0.25s;
}
.btn-account-save:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(160,130,100,0.18); }

.save-feedback {
  font-size: 0.78rem;
  margin-top: 0.5rem;
  min-height: 1em;
}
.save-feedback.ok  { color: #3a7a3a; }
.save-feedback.err { color: #c07060; }

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(58,47,39,0.06);
}
.pref-row:last-child { border: none; }
.pref-row strong { display: block; font-weight: 400; font-size: 0.9rem; margin-bottom: 2px; }
.pref-row p { font-size: 0.78rem; color: var(--text-light); }

.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 11px;
  background: rgba(58,47,39,0.15); transition: background 0.25s; cursor: pointer;
}
.toggle-track::after {
  content: ''; position: absolute;
  left: 3px; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.25s var(--ease);
}
input:checked + .toggle-track { background: var(--season-primary, #e8a4b8); }
input:checked + .toggle-track::after { transform: translateX(18px); }

.danger-zone strong { color: #c07060; }
.btn-danger-sm {
  padding: 7px 16px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  color: #c07060;
  background: rgba(192,96,80,0.08);
  border: 1px solid rgba(192,96,80,0.25);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-danger-sm:hover { background: rgba(192,96,80,0.18); }

/* ── MODALS ── */
.account-modal {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.account-modal.open { display: flex; }

.account-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(58,47,39,0.2); backdrop-filter: blur(6px);
}

.account-modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  border-radius: var(--radius-lg);
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modalIn { from { opacity:0; transform: scale(0.9) translateY(20px); } to { opacity:1; transform: scale(1) translateY(0); } }

.account-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.8rem 1rem;
  border-bottom: 1px solid rgba(58,47,39,0.08);
}
.account-modal__header h3 { font-size: 1.2rem; }
.account-modal__close {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(58,47,39,0.12); background: rgba(255,255,255,0.5);
  cursor: pointer; font-size: 0.85rem; color: var(--text-light);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.account-modal__close:hover { background: rgba(255,255,255,0.9); color: var(--text); }
.account-modal__body { padding: 1.5rem 1.8rem 2rem; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 1.5rem; }

.addr-default-check {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--text-mid); cursor: pointer; margin-top: 0.8rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .auth-card { padding: 2rem 1.5rem; }
  .account-nav { border-radius: var(--radius-lg); }
  .account-nav__tab { font-size: 0.75rem; padding: 8px 14px; }
  .form-group-row { grid-template-columns: 1fr; }
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════
   DÉTAIL COMMANDE
   ══════════════════════════════════════════════════ */

.order-detail-status { margin-bottom: 2rem; }

.order-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.8rem;
}

.order-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.order-timeline__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  border: 2px solid rgba(58,47,39,0.15);
  background: rgba(255,255,255,0.4);
  color: var(--text-light);
  transition: all 0.3s;
}

.order-timeline__step.done .order-timeline__icon {
  background: color-mix(in srgb, var(--season-primary, #e8a4b8) 20%, white);
  border-color: var(--season-primary, #e8a4b8);
  color: var(--season-text-accent, #c4748a);
  font-weight: 500;
}

.order-timeline__step span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-light);
  white-space: nowrap;
}

.order-timeline__step.done span { color: var(--text-mid); font-weight: 400; }

.order-timeline__line {
  flex: 1;
  height: 2px;
  background: rgba(58,47,39,0.1);
  margin: 0 6px;
  margin-bottom: 22px;
  transition: background 0.3s;
}
.order-timeline__line.done {
  background: color-mix(in srgb, var(--season-primary, #e8a4b8) 50%, transparent);
}

/* Sections */
.order-detail-section { margin-bottom: 1.8rem; }

.order-detail-title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
}

/* Article */
.order-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  margin-bottom: 8px;
  border-radius: var(--radius-md) !important;
}

.order-detail-item__img {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--season-primary, #e8a4b8) 10%, rgba(255,255,255,0.5));
  border-radius: var(--radius-sm);
}

.order-detail-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-detail-item__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text);
}

.order-detail-item__option {
  font-size: 0.72rem;
  color: var(--text-light);
}

.order-detail-item__qty {
  font-size: 0.78rem;
  color: var(--text-light);
}

.order-detail-item__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}

/* Récap */
.order-detail-recap {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md) !important;
}

.order-recap-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 1px solid rgba(58,47,39,0.05);
}
.order-recap-line:last-child { border: none; }

.order-recap-line--total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  padding-top: 10px;
}

/* Actions */
.order-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}
