/* =============================================================================
   LOGUETOWN — Account pages harmonization (2026)
   Unifies the bespoke hero / tabs / toolbar styles of the remaining account
   pages (commandes, offres, favoris, notifications, boosts, portefeuille,
   profil, chasseur) onto the premium token language.

   Scoped under .compte-content so it beats each page's own polish CSS
   (bundle-commandes.css, offres-polish.css, …) which load AFTER this bundle.
   Card bodies are already covered by lt-premium-universal.css.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Shared premium hero for every account namespace
   ----------------------------------------------------------------------------- */
.compte-content .orders-hero,
.compte-content .offers-hero,
.compte-content .favoris-hero,
.compte-content .notifications-hero,
.compte-content .boosts-hero,
.compte-content .wallet-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--lt-s-5, 1.25rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: var(--lt-s-5, 1.25rem);
  background:
    radial-gradient(ellipse at 100% 0%, var(--lt-gold-wash, rgba(184,132,26,0.08)) 0%, transparent 55%),
    var(--lt-color-surface, #fff);
  border: 1px solid var(--lt-color-border, rgba(11,13,16,0.08));
  border-radius: var(--lt-r-2xl, 28px);
  box-shadow: var(--lt-elev-1, 0 1px 3px rgba(11,13,16,0.06));
  overflow: hidden;
}

/* Eyebrows */
.compte-content .orders-eyebrow,
.compte-content .offers-kicker,
.compte-content .boosts-eyebrow,
.compte-content .favoris-eyebrow {
  display: inline-block;
  font-family: var(--lt-font-body, "Inter", sans-serif);
  font-size: var(--lt-text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: var(--lt-tracking-eyebrow, 0.14em);
  text-transform: uppercase;
  color: var(--lt-color-accent, #b8841a);
  margin: 0 0 0.5rem;
}

/* Titles */
.compte-content .orders-hero h1,
.compte-content .offers-hero h1,
.compte-content .favoris-hero h1,
.compte-content .notifications-hero h1,
.compte-content .boosts-hero h1 {
  font-family: var(--lt-font-display, "Fraunces", Georgia, serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--lt-color-primary-strong, #0b0d10);
  margin: 0 0 0.4rem;
}
.compte-content .orders-hero p,
.compte-content .offers-hero p,
.compte-content .favoris-lead,
.compte-content .notifications-hero p {
  font-size: var(--lt-text-md, 0.9375rem);
  color: var(--lt-color-text-muted, #5b6470);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}

/* Favoris hero icon → premium gold badge */
.compte-content .favoris-hero-icon {
  width: 52px; height: 52px;
  border-radius: var(--lt-r-lg, 16px);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lt-gold-wash, rgba(184,132,26,0.08));
  color: var(--lt-color-accent, #b8841a);
  font-size: 1.3rem;
  margin-bottom: var(--lt-s-3, 0.75rem);
}

/* -----------------------------------------------------------------------------
   2. Segmented tabs (orders role tabs, offers tabs, notifications filters)
   ----------------------------------------------------------------------------- */
.compte-content .orders-role-tabs,
.compte-content .offers-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--lt-color-surface-muted, #f7f5f1);
  border: 1px solid var(--lt-color-border, rgba(11,13,16,0.08));
  border-radius: var(--lt-r-pill, 999px);
  flex-shrink: 0;
}
.compte-content .orders-role-tab,
.compte-content .offers-tabs button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.1rem;
  border: 0;
  background: transparent;
  border-radius: var(--lt-r-pill, 999px);
  font-family: var(--lt-font-body, "Inter", sans-serif);
  font-size: var(--lt-text-sm, 0.8125rem);
  font-weight: 600;
  color: var(--lt-color-text-muted, #5b6470);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--lt-dur-fast,160ms) ease, color var(--lt-dur-fast,160ms) ease;
}
.compte-content .orders-role-tab:hover,
.compte-content .offers-tabs button:hover { color: var(--lt-color-text, #1c2024); }
.compte-content .orders-role-tab.is-active,
.compte-content .offers-tabs button.is-active {
  background: var(--lt-color-primary-strong, #0b0d10);
  color: #fff;
}

/* Offers tabs need to lay out as a row */
.compte-content .offers-tabs {
  margin-bottom: var(--lt-s-5, 1.25rem);
}

/* -----------------------------------------------------------------------------
   3. Toolbar filter chips (orders, favoris, notifications)
   ----------------------------------------------------------------------------- */
.compte-content .orders-toolbar,
.compte-content .favoris-toolbar,
.compte-content .notifications-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lt-s-2, 0.5rem);
  margin-bottom: var(--lt-s-5, 1.25rem);
  align-items: center;
}
.compte-content .orders-filter-btn,
.compte-content .notifications-filters a,
.compte-content .notifications-filters button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--lt-r-pill, 999px);
  background: var(--lt-color-surface, #fff);
  border: 1px solid var(--lt-color-border, rgba(11,13,16,0.10));
  color: var(--lt-color-text, #1c2024);
  font-family: var(--lt-font-body, "Inter", sans-serif);
  font-size: var(--lt-text-sm, 0.8125rem);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--lt-dur-fast,160ms) ease, border-color var(--lt-dur-fast,160ms) ease,
              color var(--lt-dur-fast,160ms) ease, transform var(--lt-dur-fast,160ms) ease;
}
.compte-content .orders-filter-btn:hover,
.compte-content .notifications-filters a:hover,
.compte-content .notifications-filters button:hover {
  background: var(--lt-color-surface-muted, #f7f5f1);
  border-color: var(--lt-color-border-strong, rgba(11,13,16,0.16));
  transform: translateY(-1px);
}
.compte-content .orders-filter-btn.is-active,
.compte-content .orders-filter-btn.active,
.compte-content .notifications-filters .is-active {
  background: var(--lt-color-primary-strong, #0b0d10);
  color: #fff;
  border-color: var(--lt-color-primary-strong, #0b0d10);
}
.compte-content .orders-filter-btn span[data-count] {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--lt-r-pill, 999px);
  background: rgba(11,13,16,0.08);
  font-size: 10px; font-weight: 700;
}
.compte-content .orders-filter-btn.is-active span[data-count],
.compte-content .orders-filter-btn.active span[data-count] { background: rgba(255,255,255,0.25); }

/* -----------------------------------------------------------------------------
   4. Favoris stats row
   ----------------------------------------------------------------------------- */
.compte-content .favoris-stats {
  display: flex; flex-wrap: wrap; gap: var(--lt-s-5, 1.25rem);
}
.compte-content .favoris-stat {
  display: flex; flex-direction: column; gap: 1px;
}

/* -----------------------------------------------------------------------------
   5. Profil — avatar section premium
   ----------------------------------------------------------------------------- */
.compte-content .profil-avatar-section {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--lt-s-3, 0.75rem);
  padding: var(--lt-s-6, 1.5rem);
  background: var(--lt-color-surface, #fff);
  border: 1px solid var(--lt-color-border, rgba(11,13,16,0.08));
  border-radius: var(--lt-r-xl, 20px);
  margin-bottom: var(--lt-s-5, 1.25rem);
}
.compte-content .profil-avatar-img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--lt-color-surface,#fff), 0 0 0 4px var(--lt-gold-line, rgba(184,132,26,0.22)), var(--lt-elev-2, 0 4px 12px rgba(11,13,16,0.06));
}
.compte-content .profil-avatar-change {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: var(--lt-r-pill, 999px);
  background: var(--lt-color-surface-muted, #f7f5f1);
  border: 1px solid var(--lt-color-border-strong, rgba(11,13,16,0.16));
  color: var(--lt-color-text, #1c2024);
  font-size: var(--lt-text-sm, 0.8125rem);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--lt-dur-fast,160ms) ease, border-color var(--lt-dur-fast,160ms) ease;
}
.compte-content .profil-avatar-change:hover {
  background: var(--lt-gold-wash, rgba(184,132,26,0.08));
  border-color: var(--lt-color-accent, #b8841a);
  color: var(--lt-color-accent, #b8841a);
}
.compte-content .profil-avatar-hint {
  font-size: var(--lt-text-xs, 0.75rem);
  color: var(--lt-color-text-subtle, #8b95a3);
  margin: 0;
}
/* Profil forms inherit generic field styling from lt-premium-universal.css */
.compte-content .profil-page__title {
  font-family: var(--lt-font-display, "Fraunces", serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lt-color-primary-strong, #0b0d10);
  margin: 0.35rem 0 0.4rem;
}

/* -----------------------------------------------------------------------------
   6. Boosts page
   ----------------------------------------------------------------------------- */
.compte-content .boosts-title {
  font-family: var(--lt-font-display, "Fraunces", serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lt-color-primary-strong, #0b0d10);
  margin: 0 0 0.4rem;
}

/* -----------------------------------------------------------------------------
   7. Mes alertes chasseur (own layout, NOT compte-layout) — harmonize hero
   ----------------------------------------------------------------------------- */
.chasseur-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  background:
    radial-gradient(ellipse at 50% 0%, var(--lt-gold-wash, rgba(184,132,26,0.10)) 0%, transparent 55%),
    var(--lt-color-bg, #fdfcfa);
  text-align: center;
}
.chasseur-hero__title {
  font-family: var(--lt-font-display, "Fraunces", serif);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--lt-color-primary-strong, #0b0d10);
  margin: 0;
}

/* -----------------------------------------------------------------------------
   8. Dark / Grand-Line
   ----------------------------------------------------------------------------- */
[data-theme="dark"] .compte-content .orders-hero,
[data-theme="dark"] .compte-content .offers-hero,
[data-theme="dark"] .compte-content .favoris-hero,
[data-theme="dark"] .compte-content .notifications-hero,
[data-theme="dark"] .compte-content .profil-avatar-section,
body.lt26-grain .compte-content .orders-hero,
body.lt26-grain .compte-content .offers-hero,
body.lt26-grain .compte-content .favoris-hero,
body.lt26-grain .compte-content .notifications-hero,
body.lt26-grain .compte-content .profil-avatar-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212,160,23,0.10) 0%, transparent 55%),
    var(--lt-color-surface, #0e1a2e);
  border-color: var(--lt-color-border, rgba(240,236,226,0.08));
}
[data-theme="dark"] .compte-content .orders-role-tabs,
[data-theme="dark"] .compte-content .offers-tabs,
body.lt26-grain .compte-content .orders-role-tabs,
body.lt26-grain .compte-content .offers-tabs {
  background: var(--lt-color-surface-muted, #0a1424);
  border-color: var(--lt-color-border, rgba(240,236,226,0.08));
}

/* -----------------------------------------------------------------------------
   9. Mobile
   ----------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .compte-content .orders-hero,
  .compte-content .offers-hero,
  .compte-content .favoris-hero,
  .compte-content .notifications-hero { flex-direction: column; }
  .compte-content .orders-role-tabs,
  .compte-content .offers-tabs { width: 100%; }
  .compte-content .orders-role-tab,
  .compte-content .offers-tabs button { flex: 1; justify-content: center; }
  .compte-content .orders-toolbar { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .compte-content .orders-toolbar::-webkit-scrollbar { display: none; }
}

/* -----------------------------------------------------------------------------
   10. Reduced motion
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .compte-content .orders-filter-btn,
  .compte-content .notifications-filters a,
  .compte-content .profil-avatar-change { transition: none !important; }
  .compte-content .orders-filter-btn:hover { transform: none !important; }
}
