﻿:root {
  --ink: #111112;
  --paper: #fffaf2;
  --muted: #706b62;
  --line: rgba(17, 17, 18, .13);
  --gold: #ffc247;
  --pink: #ff4f8b;
  --mint: #12c8a3;
  --card: rgba(255, 255, 255, .76);
  --shadow: 0 20px 70px rgba(17, 17, 18, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 194, 71, .34), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(255, 79, 139, .18), transparent 28%),
    linear-gradient(180deg, #fff7e8 0%, #fffdf8 44%, #f6f1e8 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(255, 250, 242, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .02em; }
.gem-mark, .big-gem {
  display: inline-block;
  background: linear-gradient(135deg, #fff, var(--gold) 42%, var(--pink));
  clip-path: polygon(50% 0, 92% 28%, 75% 100%, 25% 100%, 8% 28%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4), 0 12px 30px rgba(255,79,139,.28);
}
.gem-mark { width: 28px; height: 28px; }
.big-gem { width: 118px; height: 118px; animation: float 4s ease-in-out infinite; }

.nav { display: flex; align-items: center; gap: 18px; font-weight: 750; }
.nav a { color: #4d473e; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(16px, 4vw, 72px) 34px;
}

.hero-copy h1, .section-head h2 {
  margin: 0;
  max-width: 820px;
  font-weight: 950;
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy h1 { font-size: clamp(42px, 7vw, 86px); }
.section-head h2 { font-size: clamp(30px, 4vw, 52px); }
.hero-copy p, .section-head p { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 720px; }
.eyebrow { color: #986600; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .11em; }

.hero-actions, .cart-head, .product-top, .track-form, .chat-form { display: flex; gap: 12px; align-items: center; }
.primary, .secondary, .ghost {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.primary { background: var(--ink); color: white; box-shadow: 0 14px 32px rgba(17,17,18,.22); }
.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.ghost { background: transparent; color: var(--ink); padding: 9px 10px; }
.small { font-size: 13px; }
.full { width: 100%; justify-content: center; }
.primary:hover, .secondary:hover { transform: translateY(-2px); }

.hero-panel { display: grid; gap: 16px; }
.orbital-card, .cart-card, .checkout, .modal-card, .product-card, .trust-strip > div {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.orbital-card {
  min-height: 360px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 28px;
}
.orbital-card p, .orbital-card span { color: var(--muted); margin: 8px 0 0; }
.orbital-card strong { font-size: 34px; margin-top: 8px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-row div { background: var(--ink); color: white; border-radius: 18px; padding: 16px; }
.metric-row b, .metric-row span { display: block; }
.metric-row span { color: rgba(255,255,255,.64); font-size: 13px; margin-top: 4px; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 12px clamp(16px, 4vw, 72px) 42px; }
.trust-strip > div { border-radius: 18px; padding: 18px; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip span { color: var(--muted); margin-top: 5px; }

.shop-layout, .checkout-grid { padding: 28px clamp(16px, 4vw, 72px); }
.section-head { margin-bottom: 22px; }
.compact { margin-bottom: 16px; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { border-radius: 22px; padding: 18px; display: flex; flex-direction: column; min-height: 292px; }
.product-card h3 { margin: 34px 0 6px; font-size: 26px; }
.product-badge { background: rgba(255,194,71,.28); color: #684500; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900; }
.stock { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 800; }
.price { font-size: 31px; font-weight: 950; margin: 0 0 12px; }
.compare { color: var(--muted); display: grid; gap: 6px; margin-bottom: 18px; font-size: 13px; line-height: 1.35; }
.compare b { color: var(--ink); }
.product-card .add { margin-top: auto; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .55fr); gap: 18px; align-items: start; padding-bottom: 64px; }
.checkout, .cart-card { border-radius: 24px; padding: 22px; }
.checkout { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #504a42; font-weight: 850; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  padding: 14px 14px;
  outline: none;
}
input:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,79,139,.12); }
.fineprint { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0; }
.cart-card { position: sticky; top: 88px; }
.cart-head { justify-content: space-between; }
.cart-head h2 { margin: 0; }
.cart-items { display: grid; gap: 10px; min-height: 70px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.qty { display: inline-flex; gap: 7px; align-items: center; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: white; font-weight: 900; }
.totals { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; display: grid; gap: 10px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals span { color: var(--muted); }

.modal { position: fixed; inset: 0; background: rgba(17,17,18,.48); z-index: 20; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { width: min(820px, 100%); max-height: 92vh; overflow: auto; border-radius: 24px; padding: 22px; position: relative; }
.close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: white; font-size: 23px; }
.track-form { align-items: stretch; }
.track-form input { flex: 1; }
.order-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 16px; background: white; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.step { height: 8px; border-radius: 999px; background: #e7ded0; }
.step.done { background: var(--mint); }
.chat-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.messages { display: grid; gap: 10px; max-height: 250px; overflow: auto; }
.message { padding: 10px 12px; border-radius: 14px; background: white; border: 1px solid var(--line); }
.message.admin { background: #111112; color: white; justify-self: end; max-width: 80%; }
.message.client { background: #fff0f5; justify-self: start; max-width: 80%; }
.message small { display: block; opacity: .65; margin-bottom: 3px; font-weight: 900; }
.chat-form { margin-top: 12px; }
.chat-form input { flex: 1; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 24px clamp(16px, 4vw, 72px); color: var(--muted); border-top: 1px solid var(--line); }

.admin-body { background: #f7f2e8; }
.admin-shell { padding: 26px clamp(16px, 4vw, 52px); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .7fr); gap: 18px; align-items: start; }
.admin-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 14px 38px rgba(17,17,18,.08); }
.admin-list { display: grid; gap: 12px; }
.admin-order, .admin-product { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 130px; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi div { background: var(--ink); color: white; border-radius: 16px; padding: 14px; }
.kpi span { display: block; opacity: .68; font-size: 12px; }
.kpi strong { font-size: 24px; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-12px) rotate(5deg); } }

@media (max-width: 1050px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero, .checkout-grid, .admin-grid { grid-template-columns: 1fr; }
  .cart-card { position: static; }
}

@media (max-width: 720px) {
  .topbar { align-items: flex-start; }
  .nav { gap: 10px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { padding-top: 30px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-actions, .track-form, .chat-form { flex-direction: column; align-items: stretch; }
  .trust-strip, .products, .metric-row, .steps, .kpi { grid-template-columns: 1fr; }
  .orbital-card { min-height: 270px; }
  .checkout, .cart-card, .modal-card { padding: 16px; border-radius: 18px; }
  .footer { flex-direction: column; }
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(.2px);
}
body::before {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 95px;
  background: radial-gradient(circle, rgba(18,200,163,.22), transparent 62%);
  animation: auraDrift 11s ease-in-out infinite;
}
body::after {
  width: 360px;
  height: 360px;
  left: -90px;
  bottom: 15%;
  background: radial-gradient(circle, rgba(255,79,139,.18), transparent 64%);
  animation: auraDrift 13s ease-in-out infinite reverse;
}

.brand span:last-child {
  background: linear-gradient(90deg, #111112, #9b6411, #ff4f8b, #111112);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 5s linear infinite;
}

.hero-copy h1 {
  text-shadow: 0 0 34px rgba(255,194,71,.22);
  animation: heroGlow 5.5s ease-in-out infinite;
}

.star-pack {
  appearance: none;
  color: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.star-pack::before {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.58), transparent 58%);
  transform: translateX(-65%) rotate(12deg);
  animation: sweep 3.6s ease-in-out infinite;
}
.star-pack::after {
  content: "Cliquer pour ajouter";
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111112;
  color: white;
  font-size: 12px;
  font-weight: 950;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(17,17,18,.2);
}
.star-pack:hover { transform: translateY(-4px) rotateX(2deg); }

.product-card {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -48px;
  top: -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,194,71,.34), transparent 68%);
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,79,139,.32);
  box-shadow: 0 26px 78px rgba(17,17,18,.18);
}
.product-card .price { animation: pricePulse 4.8s ease-in-out infinite; }

.support-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  font-family: inherit;
}
.support-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: #111112;
  color: white;
  padding: 9px 14px 9px 8px;
  box-shadow: 0 18px 55px rgba(17,17,18,.32);
  font-weight: 950;
}
.support-launcher img,
.support-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,194,71,.9);
}
.support-online {
  position: absolute;
  left: 43px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(18,200,163,.2), 0 0 18px rgba(18,200,163,.75);
}
.support-panel {
  width: min(372px, calc(100vw - 24px));
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 22px;
  background: rgba(255,250,242,.94);
  box-shadow: 0 24px 80px rgba(17,17,18,.28);
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.support-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #111112, #2a171f 55%, #73460f);
  color: white;
}
.support-head div { display: grid; gap: 2px; flex: 1; }
.support-head span { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; }
.support-head i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.support-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: white; font-size: 22px; }
.support-intro { padding: 12px 14px 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.support-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; }
.support-fields input { padding: 11px 12px; border-radius: 12px; font-size: 13px; }
.support-messages { display: grid; gap: 9px; max-height: 240px; min-height: 126px; overflow: auto; padding: 0 14px 12px; }
.support-message { border-radius: 15px; padding: 10px 12px; border: 1px solid var(--line); background: white; max-width: 84%; line-height: 1.35; font-size: 13px; }
.support-message.admin { justify-self: start; background: #111112; color: white; }
.support-message.client { justify-self: end; background: #fff0f5; }
.support-message small { display: block; opacity: .68; font-weight: 950; margin-bottom: 3px; }
.support-form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.support-form input { min-width: 0; padding: 12px; }
.support-form button { border: 0; border-radius: 999px; background: var(--ink); color: white; font-weight: 950; padding: 0 14px; }

.support-admin-layout { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(220px,1fr); gap: 12px; }
.support-session { text-align: left; display: grid; gap: 5px; border: 1px solid var(--line); background: white; border-radius: 14px; padding: 11px; }
.support-session.active { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,79,139,.1); }
.support-session span, .support-session small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-thread { border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-height: 240px; background: #fffdf8; }
.support-thread-messages { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.support-admin-form { display: flex; gap: 8px; margin-top: 12px; }
.support-admin-form input { min-width: 0; }

@keyframes shimmerText { to { background-position: 240% 0; } }
@keyframes heroGlow { 0%,100% { filter: drop-shadow(0 0 0 rgba(255,194,71,0)); } 50% { filter: drop-shadow(0 0 20px rgba(255,194,71,.22)); } }
@keyframes sweep { 0%, 42% { transform: translateX(-72%) rotate(12deg); } 68%, 100% { transform: translateX(72%) rotate(12deg); } }
@keyframes pricePulse { 0%, 100% { color: var(--ink); } 50% { color: #b36b00; } }
@keyframes auraDrift { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(18px,-16px,0) scale(1.07); } }

@media (max-width: 720px) {
  .support-widget { right: 12px; bottom: 12px; }
  .support-launcher { padding: 8px; width: 60px; height: 60px; justify-content: center; }
  .support-launcher-text { display: none; }
  .support-launcher img { width: 44px; height: 44px; }
  .support-online { left: 42px; top: 8px; }
  .support-panel { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; }
  .support-fields { grid-template-columns: 1fr; }
  .support-messages { max-height: 34dvh; }
  .support-form { align-items: stretch; }
  .support-form button { min-height: 44px; }
  .star-pack::after { bottom: 14px; }
  .support-admin-layout { grid-template-columns: 1fr; }
  .support-thread { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.support-panel[hidden],
.support-launcher[hidden] {
  display: none !important;
}

.admin-order-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.danger { border: 1px solid rgba(180, 35, 24, .18); border-radius: 999px; background: #fff1f1; color: #b42318; padding: 9px 10px; font-weight: 950; }
.danger:hover { background: #ffe3e3; }
.support-profile-saved { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 0; color: var(--muted); font-size: 13px; }
.support-profile-saved span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-badge { position: absolute; right: -4px; top: -6px; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: #ff3158; color: white; border: 2px solid white; font-size: 12px; font-weight: 950; box-shadow: 0 10px 24px rgba(255,49,88,.34); }
.support-badge-panel { position: static; border-color: rgba(255,255,255,.35); margin-left: auto; }
.support-session { position: relative; }
.support-session-badge { position: absolute; top: 8px; right: 8px; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: #ff3158; color: white; font-size: 12px; font-weight: 950; }
.support-fields[hidden],
.support-profile-saved[hidden],
.support-badge[hidden] {
  display: none !important;
}
