/* =======================
   CS Harmonia – styles.css
   (hero/accueil corrigé)
   ======================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --bg: #0b1220;
  --panel: #111a2c;
  --muted: #8fa3c9;
  --text: #e6eefc;
  --brand: #5b7cff;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;

  --btn-radius: 12px;
  --btn-pad-y: 0.65rem;
  --btn-pad-x: 1rem;
  --btn-font: 500;

  --ring: 0 0 0 3px color-mix(in oklab, var(--brand), #000 80%);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial;
  line-height: 1.5;
  color: var(--text);
  background: radial-gradient(
      1200px 800px at 20% -10%,
      #1b2640 0%,
      transparent 60%
    ),
    radial-gradient(1200px 800px at 120% 10%, #152036 0%, transparent 60%),
    var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 20px;
}

/* ===================== NAV ===================== */

@media (max-width: 640px) {
  header.nav .row {
    flex-wrap: wrap;
    gap: 8px;
  }

  header.nav nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  header.nav nav a,
  header.nav nav button {
    flex: 1 1 auto;
    justify-content: center;
  }
}


header.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(6px);
  background: color-mix(in oklab, var(--bg), #fff 3% / 8%);
  border-bottom: 1px solid #1c2a47;
}
header.nav .row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;          /* taille maîtrisée */
  height: 44px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* respecte le ratio */
  display: block;
}

button,
.input,
.qty input {
  min-height: 40px;
}

nav a,
nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
nav a:hover {
  background: #1a2645;
}

/* ===================== HERO (ACCUEIL) ===================== */
@media (max-width: 480px) {
  .hero-card {
    padding: 18px;
  }

  .hero-left,
  .hero-right {
    min-width: 100%;
  }

  .hero-metas {
    font-size: 0.9rem;
  }
}

.hero {
  padding: 72px 0 36px;
}
.hero .wrap {
  display: flex;
  justify-content: center;
}
.hero .card {
  width: min(900px, 100%);
  padding: clamp(20px, 4vw, 32px);
  border-radius: 20px;
  background: linear-gradient(180deg, #101a2f, #0e172b) padding-box,
    linear-gradient(145deg, rgba(138, 165, 255, 0.35), rgba(16, 24, 48, 0))
      border-box;
  border: 1px solid #1f2c4c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 26px);
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #101a2f;
  border: 1px solid #1e2a49;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}
.hero .text {
  flex: 1 1 320px;
  min-width: 280px;
}
.title {
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.12;
  margin: 0.2rem 0 0;
}
.subtitle {
  color: var(--muted);
  max-width: 70ch;
  margin-top: 0.35rem;
}
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
@media (max-width: 820px) {
  .cta {
    margin-left: 0;
  }
}

/* ===================== SECTIONS / CARTES ===================== */
.section {
  padding: 36px 0;
}
.section-title {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.card {
  background: linear-gradient(180deg, #101a2f, #0e172b);
  border: 1px solid #1f2c4c;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.card--elev {
  border-color: #23355a;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
}

/* ===================== GRIDS GENERIQUES ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== PRODUITS ===================== */
.product .thumb {
  aspect-ratio: 16/11;
  border-radius: 14px;
  background: #0a1427;
  display: grid;
  place-items: center;
  border: 1px solid #1f2c4c;
}
.price {
  font-weight: 700;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================== INPUTS / QTÉ ===================== */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

@media (max-width: 520px) {
  .cart-list .line {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .qty {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .qty input {
    width: 70px;
  }
}

.qty {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qty input {
  width: 60px;
  text-align: center;
  border: 1px solid #243356;
  background: #0f1830;
  color: var(--text);
  border-radius: 10px;
  padding: 6px;
  height: 36px;
}
.qty button {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: 32px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}
.qty button:hover {
  transform: translateY(-1px);
}
.qty .remove-btn {
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fca5a5;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.qty .remove-btn:hover {
  background: rgba(255, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ===================== MODALES ===================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.open {
  display: flex;
}
.modal .dialog {
  background: var(--panel);
  border-radius: 14px;
  max-width: 460px;
  width: 92%;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}
.dialog {
  width: min(580px, 92vw);
}
.dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dialog h3 {
  margin: 0;
}
.modal header button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.modal header button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.modal header button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.tabs {
  display: flex;
  background: #0f1931;
  border: 1px solid #21325a;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.tabs button {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: #172448;
  color: var(--text);
}

form .field {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}
.input {
  border: 1px solid #263659;
  background: #0f1830;
  color: var(--text);
  padding: 10px;
  border-radius: 10px;
}
.input:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: #3b56a4;
}
.help {
  font-size: 12px;
  color: var(--muted);
}

.req-list {
  margin: 8px 0 12px;
  padding-left: 0;
  list-style: none;
}
.req-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  color: var(--muted);
}
.req-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7f1d1d;
}
.req-list li.ok {
  color: #a7f3d0;
}
.req-list li.ok .req-dot {
  background: #065f46;
}
.req-list li.bad {
  color: #fca5a5;
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  z-index: 50;
}
.toast .t {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #243356;
  background: #101a2f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ===================== PANIER ===================== */
.cart-list .line {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr 0.4fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #1f2c4c;
}
.cart-list .head {
  font-size: 12px;
  color: var(--muted);
}
.cart-total {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.remove {
  background: #311d1d;
  border: 1px solid #4e2a2a;
  color: #ffd1d1;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

/* ===================== BADGES, BOUTONS ===================== */
.btn {
  --bg: linear-gradient(180deg, var(--brand), #4f6cf8);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg);
  color: var(--fg);
  font-weight: var(--btn-font);
  letter-spacing: 0.2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  filter: saturate(1.05);
}
.btn--ghost {
  --fg: #dbe4ff;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.btn--sm {
  --btn-pad-y: 0.45rem;
  --btn-pad-x: 0.75rem;
  font-size: 0.9rem;
  border-radius: 10px;
}
.btn--tab {
  background: #0f1830;
  border: 1px solid #23355a;
  box-shadow: none;
}
.btn--tab.is-active {
  background: #182443;
  border-color: #3250a8;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
  white-space: nowrap;
}
.badge--mats {
  background: #3a5b86;
}
.badge--fab {
  background: #6f42c1;
}
.badge--test {
  background: #f59e0b;
  color: #0c0c0c;
}
.badge--ship {
  background: #10b981;
}
/* ===================== ACCUEIL : HERO PREMIUM (compatible JS) ===================== */
.hero .wrap {
  display: flex;
  justify-content: center;
}
.hero-card {
  position: relative;
  overflow: hidden;
  width: min(1000px, 100%);
  padding: clamp(22px, 4.5vw, 36px);
  border-radius: 22px;
  background: linear-gradient(180deg, #101a2f, #0e172b);
  border: 1px solid #1f2c4c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 28px);
}
.hero-left {
  flex: 1 1 520px;
  min-width: 260px;
}
.hero-right {
  flex: 1 1 360px;
  min-width: 260px;
  position: relative;
  min-height: 180px;
}
@media (max-width: 920px) {
  .hero-right {
    order: -1;
    min-height: 140px;
  }
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
      800px 220px at 85% 20%,
      rgba(91, 124, 255, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      600px 220px at 20% 100%,
      rgba(158, 119, 255, 0.16) 0%,
      transparent 60%
    );
  mix-blend: screen;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #101a2f;
  border: 1px solid #1e2a49;
  color: #9fb2d7;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}
.badge--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.title {
  margin: 0.15rem 0 0;
  font-weight: 800;
  font-size: clamp(28px, 4.3vw, 44px);
  line-height: 1.12;
}
.gradient {
  background: linear-gradient(90deg, #ffffff 0%, #dbe4ff 40%, #b8c6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  color: #8fa3c9;
  max-width: 70ch;
  margin-top: 0.35rem;
}
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.btn--lg {
  padding: 12px 18px;
  font-size: 1rem;
}

.hero-metas {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.hero-metas .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5b7cff;
  margin-right: 8px;
}

.floating-card {
  position: absolute;
  right: 4%;
  top: 6%;
  width: min(300px, 72%);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f1830, #0d162c);
  border: 1px solid #26365b;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  animation: float 6s ease-in-out infinite;
}
.fc-thumb {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #26365b, #192642);
  border: 1px solid #2d3f67;
}
.fc-meta {
  display: grid;
}
.fc-title {
  font-weight: 700;
}
.fc-price {
  color: #b8c6ff;
  font-weight: 600;
  font-size: 0.95rem;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.spark,
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.55;
  pointer-events: none;
}
.spark-1 {
  width: 120px;
  height: 120px;
  right: 6%;
  bottom: 8%;
  background: #5b7cff33;
}
.spark-2 {
  width: 90px;
  height: 90px;
  right: 28%;
  top: 14%;
  background: #9e77ff2b;
}
.orb-1 {
  width: 140px;
  height: 140px;
  right: 10%;
  top: 12%;
  background: #5b7cff33;
}
.orb-2 {
  width: 110px;
  height: 110px;
  right: 30%;
  bottom: 8%;
  background: #9e77ff2a;
}

/* ===================== AVANTAGES / CARDS ===================== */
.home-grid {
  margin: 18px auto 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  max-width: min(1000px, 100%);
}
@media (max-width: 960px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}
.h-card {
  background: linear-gradient(180deg, #101a2f, #0e172b);
  border: 1px solid #1f2c4c;
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  gap: 2px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.h-ico {
  font-size: 20px;
  margin-bottom: 2px;
}
.h-title {
  font-weight: 700;
}
.h-sub {
  color: #8fa3c9;
  font-size: 0.95rem;
}

.fc-thumb {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1427;
  border: 1px solid #2d3f67;
}
.fc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== COMPTE : fiche utilisateur ===== */
.account-card {
  display: grid;
  gap: 14px;
}
.avatar--xl {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #dbe4ff;
  position: relative;
  background: radial-gradient(80px 80px at 30% 30%, #1b2950, #141f3b);
  border: 1px solid #26365b;
}
.avatar--xl::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 180deg,
    #5b7cff66,
    #9e77ff44,
    transparent 40%,
    transparent 60%,
    #5b7cff33
  );
  filter: blur(6px);
  z-index: -1;
}
.account-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.account-head .title-sm {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.account-head .subtitle-sm {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-info.card {
  padding: 14px 16px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
@media (max-width: 560px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}
.info-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.info-label {
  color: var(--muted);
  font-size: 0.95rem;
}
.info-value {
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #243356;
  background: #0f1830;
  color: #cdd9ff;
}
.chip--admin {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}
.chip--client {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  color: #cfe7ff;
}
.chip--unverified {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.account-actions .btn {
  height: 42px;
}

.account-wrap {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .account-wrap {
    grid-template-columns: 1fr;
  }
}

.account-card,
.account-info {
  background: linear-gradient(180deg, #101a2f, #0e172b);
  border: 1px solid #1f2c4c;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.avatar-ring {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #dbe4ff;
  background: radial-gradient(70px 70px at 30% 30%, #1b2950, #141f3b);
  border: 1px solid #26365b;
  position: relative;
}
.avatar-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 180deg,
    #5b7cff55,
    #9e77ff44,
    transparent 50%,
    #5b7cff33
  );
  filter: blur(6px);
  z-index: -1;
}
.profile-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}
.profile-mail {
  color: var(--muted);
  margin: 0.15rem 0 0;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #243356;
  background: #0f1830;
  color: #cdd9ff;
}
.chip--warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.profile-actions .btn {
  height: 40px;
}

.info-list {
  display: grid;
  gap: 10px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #223459;
  border-radius: 12px;
  background: #0f1830;
}
.info-label {
  color: var(--muted);
}
.info-value {
  font-weight: 700;
}

/* ==== Cartes produit : layout propre, alignements fixes ==== */
.card.product {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.card.product h3 {
  font-size: 1.06rem;
  line-height: 1.35;
  margin: 0;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card.product .row-between {
  margin-top: auto;
  align-items: center;
  gap: 10px;
}
.card.product .price {
  white-space: nowrap;
  font-size: 1.05rem;
  letter-spacing: 0.1px;
}
.card.product .btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  border-radius: 10px;
}
.card.product > div:first-child {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1f2c4c;
}
.card.product > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.remove-btn {
  height: 36px;
  line-height: 1;
  padding: 0 10px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.remove-btn svg {
  flex-shrink: 0;
}
.remove-btn:hover {
  transform: translateY(-1px);
}

.only-auth,
.only-guest {
  display: none;
}
html.auth .only-auth {
  display: block;
}
html.noauth .only-guest {
  display: block;
}
.inline.only-auth,
.inline.only-guest {
  display: inline-flex;
}

/* ===================== ADMIN ===================== */
.admin-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 16px;
}
@media (max-width: 920px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.admin-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.admin-count {
  color: var(--muted);
  font-size: 13px;
}

/* Barre de filtres */
.filters {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
  padding: 10px;
  border: 1px dashed #26365a;
  border-radius: 12px;
  background: #0e1731;
}
.filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filters-label {
  color: var(--muted);
  font-size: 13px;
}
.btn-group {
  display: flex;
  gap: 6px;
}
.btn-group .btn.is-active {
  filter: saturate(1.15);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* Liste */
.admin-list .line {
  padding: 14px 0;
  border-bottom: 1px dashed #1f2c4c;
}
.admin-list .line:last-child {
  border-bottom: 0;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row--status {
  margin-top: 8px;
  align-items: center;
  gap: 10px;
}

.select {
  appearance: none;
  background: #0f1830;
  color: var(--text);
  border: 1px solid #243356;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 20px;
  transition: 0.15s border, 0.15s background, 0.15s transform;
  min-width: 220px;
}
.select:hover {
  border-color: #3b56a4;
}
.select:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: #3b56a4;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  cursor: pointer;
}
.switch input {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* ===================== SKELETON (chargement) ===================== */
.sk {
  display: inline-block;
  background: #0f1830;
  border: 1px solid #1f2c4c;
  border-radius: 8px;
}
.sk--xs {
  width: 90px;
  height: 14px;
}
.sk--sm {
  width: 120px;
  height: 14px;
}
.sk--line {
  display: block;
  margin-top: 8px;
  width: 60%;
  height: 12px;
}

/* Bouton danger (Supprimer) */
.btn--danger {
  --fg: #fff;
  color: var(--fg);
  background: linear-gradient(180deg, #ef4444, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
}
.btn--danger:hover {
  filter: saturate(1.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}
.btn--danger:active {
  transform: translateY(0);
  filter: saturate(1);
}

/* Mon compte – espacements doux entre les blocs */
.account-inner {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px 16px;
}

.account-info {
  display: grid;
  gap: 12px; /* espace vertical global dans la fiche */
}

/* chaque ligne d’info mieux espacée entre elles */
.account-info .info-row + .info-row {
  margin-top: 10px;
}

/* un peu plus d’air avant les actions */
.profile-actions {
  margin-top: 14px;
  gap: 10px;
}

/* badges / chips : petit espace supplémentaire */
.profile-chips {
  margin-top: 10px;
  gap: 10px;
}

/* === NAV MOBILE (≤ 640px) === */
@media (max-width: 640px) {
  header.nav .row {
    min-height: 72px;
    height: auto;
    padding: 8px 0;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  /* Logo + bouton de connexion sur la première ligne */
  header.nav .brand {
    flex: 1 1 auto;
  }

  header.nav nav {
    order: 2;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
  }

  header.nav nav a,
  header.nav nav button {
    flex: 1 1 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 10px 8px;
  }

  /* compteur panier bien visible mais pas énorme */
  #cart-count.badge {
    font-size: 11px;
    min-width: 20px;
    text-align: center;
  }
}
