/* =========================================================================
   Boutique Mini App — theme sobre "monochrome luxe"
   ========================================================================= */

:root {
  color-scheme: dark;

  /* Surfaces (vert nature / farming) */
  --bg: #0a0e0a;
  --bg-soft: #0d120d;
  --surface: #131a13;
  --surface-2: #19221a;
  --surface-3: #202b21;

  /* Bordures */
  --line: rgba(190, 240, 200, 0.08);
  --line-2: rgba(190, 240, 200, 0.14);
  --line-3: rgba(190, 240, 200, 0.22);

  /* Texte */
  --text: #eef3ec;
  --text-dim: #9db0a0;
  --text-faint: #62756a;

  /* Action principale (vert feuille, plus frais) */
  --accent: #62cf72;
  --accent-2: #9be3a6;
  --accent-soft: rgba(98, 207, 114, 0.15);
  --accent-ink: #07140a;

  /* Details */
  --ok: #7bd389;
  --warn: #e7b06b;

  /* Rayons */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Ombres */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 -10px 50px rgba(0, 0, 0, 0.55);

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  color: var(--text);
  background:
    radial-gradient(130% 60% at 50% -10%, rgba(120, 220, 140, 0.22), transparent 62%),
    radial-gradient(100% 50% at 8% 8%, rgba(70, 170, 95, 0.10), transparent 55%),
    radial-gradient(95% 50% at 100% 104%, rgba(60, 150, 80, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }

button {
  border: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

/* ---- Icones --------------------------------------------------------- */

.ic {
  display: inline-flex;
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
/* Toutes les icones SVG sont en trait (jamais remplies) + taillees sur le texte.
   Corrige les icones non enveloppees (ex: + invisible, chevron en triangle noir). */
svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic svg { width: 100%; height: 100%; }
button svg { width: 1.15em; height: 1.15em; }

/* ---- Barre superieure ----------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: linear-gradient(to bottom, rgba(11, 20, 13, 0.92), rgba(11, 18, 12, 0.62));
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
}
/* Fine ligne d'accent vegetale sous le header. */
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #8fe39a, #3f9c52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.4);
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(143, 227, 154, 0.25);
}
.brand-name {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 20px;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.cart-button:active { transform: scale(0.93); }
.cart-button.bump { animation: bump 0.4s var(--ease); }
/* Panier un peu plus "cartoon" : trait plus epais et dodu. */
.cart-button .ic svg { stroke-width: 2.1; }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid var(--bg);
}

/* ---- Page ----------------------------------------------------------- */

.page {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px 16px calc(var(--safe-bottom) + 40px);
}

.intro {
  padding: 26px 2px 18px;
}
.intro-title {
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.intro-sub {
  margin-top: 10px;
  max-width: 30ch;
  color: var(--text-dim);
  font-size: 0.98rem;
}
.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.assure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
}
.assure .ic { font-size: 15px; color: var(--text); }

/* ---- Filtres (chips) ------------------------------------------------ */

.chips {
  position: sticky;
  top: calc(var(--safe-top) + 58px);
  z-index: 30;
  display: flex;
  gap: 8px;
  margin: 0 -16px 16px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), color 0.2s, background 0.2s, border-color 0.2s;
}
.chip:active { transform: scale(0.95); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

/* ---- Grille produits ------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s;
  animation: cardIn 0.5s var(--ease-out) both;
}
.card:active { transform: scale(0.98); }
@media (hover: hover) {
  .card:hover { border-color: var(--line-2); background: var(--surface-2); }
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(150, 230, 170, 0.07), transparent 60%),
    linear-gradient(150deg, var(--tone-a, #1f2c20), var(--tone-b, #0f160f));
  overflow: hidden;
}
.card-media img,
.card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Petit indicateur "video" (visible surtout si l'autoplay est bloque). */
.media-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(10, 12, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.media-play svg {
  width: 13px;
  height: 13px;
  fill: #fff;
  stroke: none;
}
.card-media .ic {
  font-size: 46px;
  color: rgba(255, 255, 255, 0.82);
}
.card-media .ic svg { stroke-width: 1.25; }

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.66);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.card-sold {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(2px);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px 14px;
}
.card-name {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card-desc {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}
.card-foot {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}
.card-price {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-add {
  display: grid;
  place-items: center;
  width: 100%;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 19px;
  transition: transform 0.16s var(--ease), filter 0.16s;
}
.card-add:active { transform: scale(0.86); }
.card-add.added { animation: pop 0.4s var(--ease); }

/* Stepper de quantite (grammes) sur la carte */
.card-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 4px 6px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(95, 191, 106, 0.25);
}
.card-step-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--accent-ink);
  font-size: 16px;
  transition: transform 0.14s var(--ease), background 0.14s;
}
.card-step-btn:active { transform: scale(0.84); background: rgba(7, 20, 10, 0.14); }
.card-step-val {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

/* ---- Skeletons ------------------------------------------------------ */

.skeleton {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.skeleton .sk-media { aspect-ratio: 1/1; }
.skeleton .sk-line {
  height: 11px;
  margin: 12px 14px 0;
  border-radius: 6px;
}
.skeleton .sk-line.short { width: 50%; }
.sk-media,
.sk-line {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ---- Feuille modale (sheet) ----------------------------------------- */

.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.sheet-root.open { pointer-events: auto; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.sheet-root.open .sheet-backdrop { opacity: 1; }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  background: var(--bg-soft);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
  border-top: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  transform: translateY(100%);
  transition: transform 0.42s var(--ease-out);
  width: min(720px, 100%);
  margin: 0 auto;
}
.sheet-root.open .sheet { transform: translateY(0); }

.sheet-grip {
  width: 38px;
  height: 4px;
  margin: 9px auto 2px;
  border-radius: 999px;
  background: var(--line-3);
}

.sheet-top {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 10px;
}
.sheet-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ghost-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 20px;
  transition: transform 0.16s var(--ease), background 0.16s, color 0.16s;
}
.ghost-btn:active { transform: scale(0.9); }
@media (hover: hover) {
  .ghost-btn:hover { background: var(--surface-2); color: var(--text); }
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 18px 14px;
}
.sheet-foot {
  padding: 12px 18px calc(var(--safe-bottom) + 16px);
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, var(--bg-soft), rgba(14, 14, 17, 0.86));
}
.sheet-foot:empty { display: none; }

/* ---- Fiche produit -------------------------------------------------- */

.detail-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(150, 230, 170, 0.08), transparent 60%),
    linear-gradient(150deg, var(--tone-a, #1f2c20), var(--tone-b, #0f160f));
  overflow: hidden;
  margin-bottom: 18px;
}
.detail-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-media .ic { font-size: 76px; color: rgba(255, 255, 255, 0.85); }
.detail-media .ic svg { stroke-width: 1.1; }

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.detail-name { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; }
.detail-cat { margin-top: 3px; color: var(--text-faint); font-size: 0.82rem; text-transform: capitalize; }
.detail-price { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }

.detail-text { margin-top: 16px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.82rem;
}
.spec::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--text-faint);
}

/* ---- Boutons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.16s var(--ease), filter 0.16s, opacity 0.16s;
}
.btn .ic { font-size: 19px; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .btn-primary:hover { filter: brightness(1.05); } }
.btn-primary[disabled] { opacity: 0.4; pointer-events: none; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-2);
}

.btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.btn-row .price-col { display: flex; flex-direction: column; line-height: 1.2; }
.btn-row .price-col small { color: var(--text-faint); font-size: 0.74rem; }
.btn-row .price-col strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.btn-row .btn { width: auto; flex: 1; max-width: 60%; }

/* ---- Selecteur de quantite ------------------------------------------ */

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.stepper button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--text);
  font-size: 17px;
  transition: transform 0.14s var(--ease), background 0.14s;
}
.stepper button:active { transform: scale(0.88); background: var(--surface-3); }
.stepper button[disabled] { color: var(--text-faint); pointer-events: none; }
.stepper .val { min-width: 46px; text-align: center; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }

/* Quantites rapides (grammes) sur la fiche produit */
.qty-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.qty-presets button {
  flex: 1;
  min-width: 52px;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.14s var(--ease), border-color 0.18s, color 0.18s, background 0.18s;
}
.qty-presets button:active { transform: scale(0.95); }
.qty-presets button.on {
  background: var(--accent-soft, rgba(95, 191, 106, 0.16));
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Paliers de poids (fiche produit) ------------------------------- */
.tiers-label {
  margin: 22px 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-align: center;
  transition: transform 0.14s var(--ease), border-color 0.18s, background 0.18s;
}
.tier:active { transform: scale(0.96); }
.tier .tier-g { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.tier .tier-price { font-size: 0.9rem; color: var(--text-dim); }
.tier .tier-rate { font-size: 0.7rem; color: var(--text-faint); }
.tier .tier-save { font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.tier.on {
  background: var(--accent-soft, rgba(95, 191, 106, 0.16));
  border-color: var(--accent);
}
.tier.on .tier-price { color: var(--text); }
/* Palier epuise : grise, barre, non selectionnable. */
.tier.out {
  opacity: 0.5;
  pointer-events: none;
}
.tier.out .tier-price { text-decoration: line-through; }
.tier .tier-out { font-size: 0.7rem; font-weight: 700; color: var(--warn); text-transform: uppercase; }

/* ---- Provenance (drapeau) ------------------------------------------- */
.origin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.card-origin { margin: 2px 0 4px; }
.card-origin .origin { font-size: 0.78rem; }
.detail-origin { margin-top: 5px; }
.detail-origin .origin { font-size: 0.9rem; color: var(--text); }

/* ---- Effets lumineux par produit (couleur via --fx) ----------------- */
.card.fx-glow, .detail-media.fx-glow,
.card.fx-led, .detail-media.fx-led,
.card.fx-ice, .detail-media.fx-ice,
.card.fx-flame, .detail-media.fx-flame {
  border: 1px solid var(--fx, var(--accent));
}
.card.fx-glow, .detail-media.fx-glow {
  box-shadow: 0 0 16px -3px var(--fx, #5fbf6a), 0 0 5px -1px var(--fx, #5fbf6a);
}
.card.fx-shadow, .detail-media.fx-shadow {
  box-shadow: 0 12px 28px -8px var(--fx, rgba(0, 0, 0, 0.85));
}
.card.fx-led, .detail-media.fx-led {
  animation: fxPulse 1.8s ease-in-out infinite;
}
.card.fx-ice, .detail-media.fx-ice {
  animation: fxPulse 3s ease-in-out infinite;
}
.card.fx-flame, .detail-media.fx-flame {
  animation: fxFlicker 0.7s ease-in-out infinite;
}
@keyframes fxPulse {
  0%, 100% { box-shadow: 0 0 9px -3px var(--fx, #5fbf6a); }
  50%      { box-shadow: 0 0 26px 0 var(--fx, #5fbf6a); }
}
@keyframes fxFlicker {
  0%, 100% { box-shadow: 0 0 13px -3px var(--fx, #ff7a2f); }
  45%      { box-shadow: 0 0 24px 0 var(--fx, #ff7a2f); }
  70%      { box-shadow: 0 0 16px -2px var(--fx, #ff7a2f); }
}

/* ---- Themes pousses : decor + effets -------------------------------- */
/* Decor thematique : plusieurs emojis flottants aux coins (bien voyants). */
.fx-deco { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.fx-deco i {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 11, 14, 0.62), rgba(8, 11, 14, 0.34));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 7px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: fxDecoFloat 3s ease-in-out infinite;
}
/* Les decorations gardent leurs couleurs : on neutralise la regle globale svg{}. */
.fx-deco i svg {
  width: 82%; height: 82%; display: block; fill: none; stroke: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.fx-deco i:nth-child(1) { top: 6px; right: 6px; animation-delay: 0s; }
.fx-deco i:nth-child(2) { top: 6px; left: 6px; animation-delay: 0.5s; }
.fx-deco i:nth-child(3) { bottom: 8px; left: 6px; animation-delay: 1s; }
.fx-deco i:nth-child(4) { bottom: 8px; right: 6px; animation-delay: 1.5s; }
.detail-media .fx-deco i { width: 52px; height: 52px; }
@keyframes fxDecoFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
}
/* Pastille teintee selon le theme : anneau + halo colore (rendu premium). */
.fx-space .fx-deco i {
  background: radial-gradient(circle, rgba(42, 22, 72, 0.76), rgba(18, 10, 38, 0.46));
  box-shadow: inset 0 0 0 1px rgba(190, 150, 255, 0.55), 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(150, 90, 240, 0.6);
  animation: fxUfoFloat 3.2s ease-in-out infinite;
}
.fx-cali .fx-deco i {
  background: radial-gradient(circle, rgba(60, 36, 10, 0.74), rgba(28, 16, 4, 0.44));
  box-shadow: inset 0 0 0 1px rgba(255, 205, 95, 0.55), 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 11px rgba(255, 150, 40, 0.55);
}
.fx-pirate .fx-deco i {
  background: radial-gradient(circle, rgba(32, 24, 9, 0.76), rgba(14, 10, 4, 0.46));
  box-shadow: inset 0 0 0 1px rgba(232, 202, 112, 0.55), 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 11px rgba(200, 160, 60, 0.5);
}
.fx-hypno .fx-deco i {
  background: radial-gradient(circle, rgba(40, 18, 60, 0.74), rgba(18, 8, 30, 0.44));
  box-shadow: inset 0 0 0 1px rgba(205, 125, 255, 0.6), 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(180, 100, 255, 0.55);
}
.fx-power .fx-deco i {
  background: radial-gradient(circle, rgba(60, 22, 10, 0.74), rgba(26, 10, 6, 0.44));
  box-shadow: inset 0 0 0 1px rgba(255, 145, 65, 0.6), 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 90, 30, 0.6);
}
.fx-chill .fx-deco i {
  background: radial-gradient(circle, rgba(14, 40, 48, 0.72), rgba(8, 22, 30, 0.42));
  box-shadow: inset 0 0 0 1px rgba(125, 225, 220, 0.55), 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 11px rgba(120, 200, 255, 0.5);
}

/* fx-space — galaxie PRONONCEE : gros halo, voile cosmique sur la photo, comete, OVNI */
.card.fx-space, .detail-media.fx-space {
  position: relative;
  isolation: isolate;
  border-color: rgba(185, 135, 255, 0.7) !important;
  box-shadow:
    0 0 0 2px rgba(180, 130, 255, 0.6),
    0 0 26px -2px rgba(150, 90, 240, 0.9),
    0 0 60px -3px rgba(205, 70, 235, 0.72),
    0 0 110px -8px rgba(120, 60, 230, 0.6);
  animation: fxSpaceBreathe 3.6s ease-in-out infinite;
  will-change: box-shadow;
}
/* Voile galaxie + etoiles sur la PHOTO (pas sur le texte de la carte). */
.card.fx-space .card-media::before, .detail-media.fx-space::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background-image:
    radial-gradient(3.4px 3.4px at 18% 22%, #ffffff, rgba(255,255,255,0.2) 38%, transparent 70%),
    radial-gradient(2.6px 2.6px at 72% 14%, #ffffff, transparent 66%),
    radial-gradient(3.6px 3.6px at 40% 66%, #f1e8ff, transparent 66%),
    radial-gradient(2.6px 2.6px at 86% 56%, #ffffff, transparent 66%),
    radial-gradient(3.2px 3.2px at 12% 82%, #ffe9ff, transparent 66%),
    radial-gradient(2.6px 2.6px at 60% 90%, #ffffff, transparent 66%),
    radial-gradient(3.6px 3.6px at 90% 30%, #dcc6ff, transparent 66%),
    radial-gradient(2.4px 2.4px at 30% 44%, #ffffff, transparent 66%),
    radial-gradient(3px 3px at 52% 34%, #ffffff, transparent 66%),
    radial-gradient(2.8px 2.8px at 78% 76%, #ffffff, transparent 66%),
    radial-gradient(150% 115% at 50% 40%, transparent 36%, rgba(126, 40, 210, 0.58) 100%);
  background-repeat: no-repeat;
  opacity: 0.95;
  animation: fxSpaceTwinkle 2.4s ease-in-out infinite;
  will-change: opacity;
}
/* Comete qui traverse la photo. */
.card.fx-space .card-media::after, .detail-media.fx-space::after {
  content: "";
  position: absolute;
  top: -24%;
  left: -32%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(214, 194, 255, 0.85) 55%, #ffffff 78%, transparent);
  border-radius: 3px;
  filter: blur(0.6px) drop-shadow(0 0 7px rgba(195, 150, 255, 0.95));
  transform: rotate(32deg);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  animation: fxSpaceComet 5.5s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes fxSpaceBreathe {
  0%, 100% { box-shadow: 0 0 0 2px rgba(180,130,255,0.5), 0 0 22px -3px rgba(150,90,240,0.72), 0 0 50px -5px rgba(205,70,235,0.55), 0 0 95px -10px rgba(120,60,230,0.5); }
  50% { box-shadow: 0 0 0 2px rgba(205,160,255,0.75), 0 0 36px 0 rgba(175,115,255,0.98), 0 0 78px 0 rgba(228,95,238,0.82), 0 0 135px -4px rgba(150,80,245,0.72); }
}
@keyframes fxSpaceTwinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes fxSpaceComet {
  0%, 62% { opacity: 0; transform: translate(0, 0) rotate(32deg); }
  68% { opacity: 1; }
  90%, 100% { opacity: 0; transform: translate(240%, 360%) rotate(32deg); }
}
@keyframes fxUfoFloat {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50% { transform: translate(-3px, -5px) rotate(6deg); }
}

/* fx-power */
.card.fx-power, .detail-media.fx-power {
  position: relative;
  isolation: isolate;
  --fx-pwr-red: #ff2d1a;
  --fx-pwr-orange: #ff7a18;
  --fx-pwr-amber: #ffc233;
  border-color: rgba(255, 110, 40, 0.7) !important;
  box-shadow: 0 0 0 2px rgba(255,120,40,0.6), 0 0 24px 1px rgba(255,60,20,0.7), 0 0 60px 4px rgba(255,120,35,0.45);
  animation: fxPowerThrob 1.15s cubic-bezier(0.36, 0, 0.16, 1) infinite;
  will-change: box-shadow, filter;
}
.card.fx-power::before, .detail-media.fx-power::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--fx-pwr-red) 0%, var(--fx-pwr-amber) 12%, var(--fx-pwr-orange) 22%, var(--fx-pwr-red) 34%, var(--fx-pwr-orange) 46%, var(--fx-pwr-amber) 58%, var(--fx-pwr-red) 70%, var(--fx-pwr-orange) 82%, var(--fx-pwr-amber) 92%, var(--fx-pwr-red) 100%);
  background-size: 280% 280%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  filter: saturate(1.25) brightness(1.05);
  animation: fxPowerSweep 2.2s linear infinite, fxPowerFlicker 0.9s steps(1, end) infinite;
  will-change: background-position, opacity, filter;
}
.card.fx-power::after, .detail-media.fx-power::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(255,45,20,0.16) 0%, rgba(255,120,30,0.07) 38%, rgba(255,120,30,0) 70%),
    linear-gradient(155deg, rgba(255,70,20,0.05) 0%, rgba(255,120,30,0) 45%, rgba(255,190,60,0.06) 100%);
  mix-blend-mode: screen;
  opacity: 0.3;
  animation: fxPowerEmber 1.15s cubic-bezier(0.36, 0, 0.16, 1) infinite;
  will-change: opacity, transform;
}
@keyframes fxPowerThrob {
  0% { box-shadow: 0 0 0 2px rgba(255,110,40,0.55), 0 0 18px 1px rgba(255,60,20,0.5), 0 0 40px 3px rgba(255,110,30,0.28); filter: brightness(1); }
  14% { box-shadow: 0 0 0 2px rgba(255,140,55,0.9), 0 0 34px 4px rgba(255,75,25,0.85), 0 0 78px 12px rgba(255,140,45,0.6); filter: brightness(1.14); }
  28% { box-shadow: 0 0 0 2px rgba(255,110,40,0.55), 0 0 20px 1px rgba(255,60,20,0.5), 0 0 44px 4px rgba(255,110,30,0.3); filter: brightness(1); }
  42% { box-shadow: 0 0 0 2px rgba(255,160,70,1), 0 0 44px 7px rgba(255,90,35,0.95), 0 0 100px 18px rgba(255,165,60,0.7); filter: brightness(1.2); }
  60% { box-shadow: 0 0 0 2px rgba(255,110,40,0.55), 0 0 18px 1px rgba(255,60,20,0.5), 0 0 40px 3px rgba(255,110,30,0.28); filter: brightness(1); }
  100% { box-shadow: 0 0 0 2px rgba(255,110,40,0.55), 0 0 18px 1px rgba(255,60,20,0.5), 0 0 40px 3px rgba(255,110,30,0.28); filter: brightness(1); }
}
@keyframes fxPowerSweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 280% 50%; }
}
@keyframes fxPowerFlicker {
  0% { opacity: 1; filter: saturate(1.25) brightness(1.05); }
  20% { opacity: 0.78; filter: saturate(1.5) brightness(1.18); }
  40% { opacity: 1; filter: saturate(1.2) brightness(1); }
  55% { opacity: 0.9; filter: saturate(1.45) brightness(1.22); }
  75% { opacity: 1; filter: saturate(1.25) brightness(1.05); }
  100% { opacity: 0.95; filter: saturate(1.35) brightness(1.1); }
}
@keyframes fxPowerEmber {
  0% { opacity: 0.1; transform: scale(1); }
  14% { opacity: 0.16; transform: scale(1.012); }
  28% { opacity: 0.1; transform: scale(1); }
  42% { opacity: 0.16; transform: scale(1.015); }
  60% { opacity: 0.1; transform: scale(1); }
  100% { opacity: 0.1; transform: scale(1); }
}

/* fx-chill */
.card.fx-chill, .detail-media.fx-chill {
  position: relative;
  isolation: isolate;
  --fx-chill-a: #5fe3d8;
  --fx-chill-b: #7fb8ff;
  --fx-chill-c: #b9a8ff;
  animation: fxChillBreath 9s ease-in-out infinite;
  will-change: transform;
}
.card.fx-chill::before, .detail-media.fx-chill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0.13;
  background:
    radial-gradient(120% 90% at 25% 20%, var(--fx-chill-a) 0%, transparent 55%),
    radial-gradient(120% 90% at 80% 85%, var(--fx-chill-c) 0%, transparent 55%),
    linear-gradient(120deg, var(--fx-chill-b) 0%, transparent 60%);
  background-size: 220% 220%, 220% 220%, 200% 200%;
  background-position: 0% 50%, 100% 50%, 0% 50%;
  mix-blend-mode: screen;
  opacity: 0.24;
  animation: fxChillDrift 14s ease-in-out infinite, fxChillFade 7s ease-in-out infinite;
  will-change: background-position, opacity;
}
.card.fx-chill::after, .detail-media.fx-chill::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  border: 1px solid color-mix(in srgb, var(--fx-chill-a) 40%, transparent);
  box-shadow:
    0 0 14px 1px color-mix(in srgb, var(--fx-chill-a) 32%, transparent),
    0 0 30px 4px color-mix(in srgb, var(--fx-chill-b) 22%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--fx-chill-c) 18%, transparent);
  animation: fxChillAura 9s ease-in-out infinite;
  will-change: box-shadow, filter;
}
@keyframes fxChillBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}
@keyframes fxChillAura {
  0%, 100% { box-shadow: 0 0 18px 2px color-mix(in srgb, var(--fx-chill-a) 45%, transparent), 0 0 40px 6px color-mix(in srgb, var(--fx-chill-b) 30%, transparent), inset 0 0 20px color-mix(in srgb, var(--fx-chill-c) 22%, transparent); border-color: color-mix(in srgb, var(--fx-chill-a) 50%, transparent); filter: brightness(1); }
  50% { box-shadow: 0 0 34px 5px color-mix(in srgb, var(--fx-chill-a) 65%, transparent), 0 0 70px 12px color-mix(in srgb, var(--fx-chill-b) 45%, transparent), inset 0 0 30px color-mix(in srgb, var(--fx-chill-c) 32%, transparent); border-color: color-mix(in srgb, var(--fx-chill-a) 75%, transparent); filter: brightness(1.08); }
}
@keyframes fxChillDrift {
  0%, 100% { background-position: 0% 50%, 100% 50%, 0% 50%; }
  50% { background-position: 100% 50%, 0% 50%, 100% 50%; }
}
@keyframes fxChillFade {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.3; }
}

/* fx-cali — Californie : coucher de soleil dore (palmier/soleil/truck/ours) */
.card.fx-cali, .detail-media.fx-cali {
  position: relative;
  isolation: isolate;
  border-color: rgba(255, 190, 70, 0.7) !important;
  box-shadow: 0 0 0 2px rgba(255,190,70,0.6), 0 0 26px -2px rgba(255,150,40,0.75), 0 0 64px -4px rgba(255,110,30,0.5);
  animation: fxCaliGlow 4s ease-in-out infinite;
}
.card.fx-cali .card-media::before, .detail-media.fx-cali::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background:
    radial-gradient(70% 55% at 82% 10%, rgba(255,225,130,0.65), transparent 60%),
    linear-gradient(180deg, rgba(255,170,55,0.30) 0%, transparent 42%),
    radial-gradient(130% 80% at 50% 122%, rgba(255,120,40,0.34), transparent 70%);
  opacity: 0.9;
  animation: fxCaliSun 5s ease-in-out infinite;
}
@keyframes fxCaliGlow {
  0%,100% { box-shadow: 0 0 0 2px rgba(255,190,70,0.55), 0 0 22px -3px rgba(255,150,40,0.6), 0 0 54px -6px rgba(255,110,30,0.42); }
  50% { box-shadow: 0 0 0 2px rgba(255,210,100,0.82), 0 0 36px 0 rgba(255,165,55,0.92), 0 0 92px -2px rgba(255,130,45,0.62); }
}
@keyframes fxCaliSun { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* fx-pirate — or et bois sombre, butin */
.card.fx-pirate, .detail-media.fx-pirate {
  position: relative;
  isolation: isolate;
  border-color: rgba(214, 175, 70, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(214,175,70,0.6), 0 0 22px -2px rgba(190,150,50,0.62), 0 0 56px -6px rgba(90,70,20,0.55);
  animation: fxPirateGlint 3.5s ease-in-out infinite;
}
.card.fx-pirate .card-media::before, .detail-media.fx-pirate::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background:
    radial-gradient(120% 100% at 50% 50%, transparent 38%, rgba(18,11,3,0.52) 100%),
    linear-gradient(115deg, transparent 35%, rgba(255,222,135,0.32) 50%, transparent 65%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, 0% 50%;
  opacity: 0.92;
  animation: fxPirateSheen 4.5s linear infinite;
}
@keyframes fxPirateGlint {
  0%,100% { box-shadow: 0 0 0 2px rgba(214,175,70,0.55), 0 0 18px -2px rgba(190,150,50,0.5), 0 0 48px -6px rgba(90,70,20,0.45); }
  50% { box-shadow: 0 0 0 2px rgba(245,212,115,0.88), 0 0 30px 0 rgba(220,180,80,0.72), 0 0 72px -2px rgba(120,90,30,0.55); }
}
@keyframes fxPirateSheen {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 260% 50%; }
}

/* fx-hypno — spirale hypnotique qui tourne + halo psychedelique */
.card.fx-hypno, .detail-media.fx-hypno {
  position: relative;
  isolation: isolate;
  border-color: rgba(190, 110, 255, 0.7) !important;
  box-shadow: 0 0 0 2px rgba(180,90,255,0.6), 0 0 28px -2px rgba(120,200,255,0.7), 0 0 66px -4px rgba(255,90,220,0.5);
  animation: fxHypnoGlow 3s linear infinite;
}
.card.fx-hypno .card-media::before, .detail-media.fx-hypno::before {
  content: "";
  position: absolute; inset: -28%; pointer-events: none; z-index: 3;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(20,0,40,0.55) 0deg 11deg, rgba(255,255,255,0) 11deg 22deg);
  opacity: 0.24;
  mix-blend-mode: overlay;
  animation: fxHypnoSpin 7s linear infinite;
  will-change: transform;
}
.card.fx-hypno .card-media::after, .detail-media.fx-hypno::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  background: radial-gradient(circle at 50% 50%, transparent 0, transparent 16%, rgba(180,90,255,0.28) 21%, transparent 26%, transparent 40%, rgba(120,200,255,0.24) 45%, transparent 50%);
  opacity: 0.5;
  animation: fxHypnoZoom 3.2s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes fxHypnoSpin { to { transform: rotate(360deg); } }
@keyframes fxHypnoZoom {
  0%,100% { transform: scale(0.7); opacity: 0.15; }
  50% { transform: scale(1.28); opacity: 0.55; }
}
@keyframes fxHypnoGlow {
  0% { box-shadow: 0 0 0 2px rgba(180,90,255,0.6), 0 0 28px -2px rgba(120,200,255,0.7), 0 0 66px -4px rgba(255,90,220,0.5); }
  33% { box-shadow: 0 0 0 2px rgba(120,200,255,0.6), 0 0 28px -2px rgba(255,90,220,0.7), 0 0 66px -4px rgba(180,90,255,0.5); }
  66% { box-shadow: 0 0 0 2px rgba(255,90,220,0.6), 0 0 28px -2px rgba(180,90,255,0.7), 0 0 66px -4px rgba(120,200,255,0.5); }
  100% { box-shadow: 0 0 0 2px rgba(180,90,255,0.6), 0 0 28px -2px rgba(120,200,255,0.7), 0 0 66px -4px rgba(255,90,220,0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .card[class*="fx-"], .detail-media[class*="fx-"],
  .card[class*="fx-"]::before, .card[class*="fx-"]::after,
  .card[class*="fx-"] .card-media::before, .card[class*="fx-"] .card-media::after,
  .detail-media[class*="fx-"]::before, .detail-media[class*="fx-"]::after,
  .fx-deco i {
    animation: none !important;
  }
}

/* ---- Panier --------------------------------------------------------- */

.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  animation: rowIn 0.35s var(--ease-out) both;
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--tone-a, #1f2c20), var(--tone-b, #0f160f));
  overflow: hidden;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ic { font-size: 24px; color: rgba(255, 255, 255, 0.8); }
.cart-meta { min-width: 0; }
.cart-meta .nm { font-weight: 600; font-size: 0.95rem; }
.cart-meta .pr { color: var(--text-dim); font-size: 0.83rem; margin-top: 2px; }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.summary {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 4px 0;
}
.summary-row.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---- Etat vide ------------------------------------------------------ */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 50px 20px;
  text-align: center;
  color: var(--text-dim);
}
.empty .ic { font-size: 40px; color: var(--text-faint); }
.empty p { font-size: 0.95rem; }

/* ---- Formulaire (message optionnel) --------------------------------- */

.field { margin-top: 6px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}
.field textarea {
  width: 100%;
  min-height: 96px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color 0.18s;
}
.field textarea::placeholder { color: var(--text-faint); }
.field textarea:focus { border-color: var(--line-3); }

.recap {
  margin-top: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.recap-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.recap-row:last-child { border-bottom: 0; }
.recap-row span { color: var(--text-dim); }
.recap-row strong { font-weight: 600; }

.note-info {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}
.note-info .ic { font-size: 18px; color: var(--text); flex: none; margin-top: 1px; }

/* ---- Succes --------------------------------------------------------- */

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 8px 8px;
}
.success-check {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(95, 210, 154, 0.12);
  color: var(--ok);
  font-size: 38px;
  margin-bottom: 18px;
  animation: pop 0.5s var(--ease) both;
}
.success h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.success .order-id {
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.success p { margin-top: 14px; max-width: 32ch; color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; }

/* ---- Toast ---------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 24px);
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.96);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---- Animations ----------------------------------------------------- */

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
@keyframes bump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.18); }
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- Reglages ergonomie --------------------------------------------- */

@media (max-width: 360px) {
  .grid { gap: 10px; }
  .card-body { padding: 11px 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
