/* DJIBSUUQ — page « Mon compte » haut de gamme (chargée uniquement par /compte via extraCss).
   Variables du thème (clair et sombre), propriétés logiques (arabe : droite à gauche), aucune animation hors transform/opacity,
   et seulement si la personne accepte les animations. */

.acc-hero {
  display: flex; align-items: center; gap: 1.1rem;
  padding: clamp(1.1rem, 4vw, 1.75rem);
  border-radius: 1.4rem;
  color: var(--on-hero);
  background:
    radial-gradient(22rem 14rem at 100% -3rem, rgb(130 203 36 / 38%), transparent 70%),
    radial-gradient(18rem 12rem at -2rem 110%, rgb(212 242 112 / 22%), transparent 70%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  box-shadow: 0 2px 4px rgb(16 40 24 / 8%), 0 18px 36px -14px rgb(4 99 35 / 55%);
  margin-block-end: 1rem;
  overflow: hidden;
}
.acc-hero__avatar {
  flex: none; inline-size: clamp(3.6rem, 16vw, 4.6rem); block-size: clamp(3.6rem, 16vw, 4.6rem);
  display: grid; place-items: center; border-radius: 50%;
  font-size: clamp(1.25rem, 6vw, 1.6rem); font-weight: 800; letter-spacing: 0.02em;
  color: var(--color-on-accent); background: linear-gradient(160deg, var(--color-leaf), var(--color-accent));
  box-shadow: 0 0 0 3px rgb(255 255 255 / 35%), 0 8px 18px -8px rgb(0 0 0 / 45%);
}
.acc-hero__text { min-inline-size: 0; }
.acc-hero__kicker { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-hero-muted); }
.acc-hero h1 { margin: 0.1rem 0 0; font-size: clamp(1.35rem, 5.4vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--on-hero); overflow-wrap: anywhere; }
.acc-hero__meta { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--on-hero-muted); overflow-wrap: anywhere; }
.acc-hero__roles { margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.acc-chip {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; color: var(--on-hero);
  background: rgb(255 255 255 / 16%); border: 1px solid rgb(255 255 255 / 30%);
}

.acc-stats { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.acc-stats li { min-inline-size: 0; }
.acc-stats a, .acc-stats li > .acc-stats__n { text-decoration: none; }
.acc-stats li {
  display: flex; flex-direction: column; justify-content: center; gap: 0.15rem;
  padding: 0.8rem 0.9rem; border-radius: 1rem;
  background: var(--color-bg); border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgb(16 40 24 / 6%);
}
.acc-stats a { display: flex; flex-direction: column; gap: 0.15rem; color: inherit; }
.acc-stats__n { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.acc-stats__n.is-alert { color: var(--color-error); }
.acc-stats__u { font-size: 0.55em; font-weight: 700; letter-spacing: 0.02em; }
.acc-stats__n--long { font-size: 1.25rem; }
.acc-stats__l { font-size: 0.78rem; font-weight: 600; color: var(--color-text-muted); }

.acc-callout { border-inline-start: 4px solid var(--color-accent); margin-block-end: 1.25rem; }

.acc-hero__last { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--on-hero-muted); }

.acc-alert {
  display: flex; align-items: center; gap: 0.7rem; margin-block-end: 1.25rem; padding: 0.8rem 1rem; border-radius: 1rem;
  font-weight: 700; color: var(--color-text); text-decoration: none;
  background: var(--color-tint); border: 1px solid var(--color-border);
}
.acc-alert > span { flex: 1; min-inline-size: 0; }
.acc-alert .dash-icon { inline-size: 1.3rem; block-size: 1.3rem; color: var(--color-primary); }
.acc-alert__go { transform: rotate(-90deg); color: var(--color-text-muted); }
:root[dir="rtl"] .acc-alert__go, [dir="rtl"] .acc-alert__go { transform: rotate(90deg); }
.acc-alert:hover { border-color: var(--color-green-mid); }
.acc-alert:focus-visible, .acc-order a:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.acc-section { margin-block-end: 1.5rem; }
.acc-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1rem; margin-block-end: 0.7rem; }
.acc-section__head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.acc-section__head a { font-weight: 700; font-size: 0.9rem; }

.acc-orders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.acc-order {
  display: flex; flex-direction: column; gap: 0.65rem; min-inline-size: 0;
  padding: 1rem; border-radius: 1.1rem;
  background: var(--color-bg); border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgb(16 40 24 / 6%);
}
.acc-order__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.acc-order__no { font-weight: 800; color: var(--color-primary); text-decoration: none; overflow-wrap: anywhere; }
.acc-order__no:hover { text-decoration: underline; }
.acc-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.acc-thumb {
  inline-size: 4rem; block-size: 4rem; border-radius: 0.8rem; overflow: hidden;
  background: var(--color-tint); border: 1px solid var(--color-border);
  display: grid; place-items: center;
}
.acc-thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.acc-thumb__empty { display: grid; place-items: center; inline-size: 100%; block-size: 100%; color: var(--color-primary); }
.acc-thumb__empty .dash-icon { inline-size: 1.5rem; block-size: 1.5rem; }
.acc-thumb--more { font-weight: 800; color: var(--color-primary); }
.acc-order__meta { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.acc-order__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-block-start: auto; }
.acc-order__total { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.acc-order__foot a { font-weight: 700; font-size: 0.9rem; }

@media (min-width: 40rem) {
  .acc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .acc-stats__n { font-size: 1.9rem; }
  .acc-orders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .acc-hero { padding: 2rem 2.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .acc-order:hover { transform: translateY(-2px); }
  .acc-order { transition: transform 0.18s ease; }
  .acc-hero, .acc-stats li, .acc-order { animation: acc-in 0.4s ease both; }
  .acc-stats li:nth-child(2) { animation-delay: 0.05s; }
  .acc-stats li:nth-child(3) { animation-delay: 0.1s; }
  .acc-stats li:nth-child(4) { animation-delay: 0.15s; }
  @keyframes acc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .acc-order { transition: none; } }
:root[data-theme="dark"] .acc-order, :root[data-theme="dark"] .acc-stats li { box-shadow: 0 1px 2px rgb(0 0 0 / 40%); }
@media print { .acc-hero { color: #000; background: none; box-shadow: none; } .acc-hero h1, .acc-hero__kicker, .acc-hero__meta, .acc-chip { color: #000; } }

/* montant haut de gamme : chiffre en grand, devise en petit, sur une seule ligne (View::moneyHtml) */
.amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt__n { font-weight: 800; }
.amt__u { margin-inline-start: 0.1em; font-size: 0.6em; font-weight: 700; letter-spacing: 0.05em; color: var(--color-green-mid); }
