:root {
  --bg: #0c0a08;
  --bg2: #17120c;
  --gold: #d4af37;
  --gold2: #f3d77a;
  --gold3: #fff1b8;
  --cream: #f7efe0;
  --muted: #bfb193;
  --wa: #25d366;
  --red: #e26b5b;
  --line: rgba(212, 175, 55, 0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ---------- En-tête ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(12, 10, 8, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.bar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.brand { display: flex; flex-direction: column; }
.brand .crown { color: var(--gold); font-size: 16px; line-height: 1; }
.brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 26px;
  background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-wa { background: var(--wa); color: #06230f; }
.btn-gold { background: linear-gradient(90deg, var(--gold), var(--gold2)); color: #1a1305; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(226, 107, 91, 0.45); }
.btn:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }

.count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1305;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

/* ---------- Site visiteur ---------- */
.hero-banner {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #0a0705;
}
.hero-bg {
  position: absolute;
  inset: -2%;
  background-image: url("hero.jpg");
  background-size: cover;
  background-position: 70% center;
  animation: hero-zoom 24s ease-in-out infinite alternate;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 7, 5, 0.92) 0%, rgba(10, 7, 5, 0.6) 38%, rgba(10, 7, 5, 0) 65%),
    linear-gradient(0deg, rgba(10, 7, 5, 0.6) 0%, rgba(10, 7, 5, 0) 30%);
}
.hero-dust { position: absolute; inset: 0; pointer-events: none; }
.hero-dust i {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold2);
  box-shadow: 0 0 8px 2px rgba(246, 226, 122, 0.7);
  opacity: 0;
  animation: hero-drift 9s linear infinite;
}
.hero-dust i:nth-child(1) { left: 8%;  animation-delay: 0s; }
.hero-dust i:nth-child(2) { left: 18%; animation-delay: 2s;   width: 3px; height: 3px; }
.hero-dust i:nth-child(3) { left: 30%; animation-delay: 4.5s; }
.hero-dust i:nth-child(4) { left: 44%; animation-delay: 1s;   width: 5px; height: 5px; }
.hero-dust i:nth-child(5) { left: 58%; animation-delay: 6s; }
.hero-dust i:nth-child(6) { left: 70%; animation-delay: 3s;   width: 3px; height: 3px; }
.hero-dust i:nth-child(7) { left: 82%; animation-delay: 7s; }
.hero-dust i:nth-child(8) { left: 92%; animation-delay: 5s;   width: 3px; height: 3px; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
}
.hero-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold2);
  animation: hero-fade 1.2s ease-out both;
}
.hero-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  line-height: 0.92;
  animation: hero-fade 1.4s ease-out 0.2s both;
}
.hero-title .eden {
  display: block;
  font-size: clamp(72px, 13vw, 176px);
  letter-spacing: 0.04em;
  background: linear-gradient(100deg, #8a6a1c 0%, var(--gold3) 22%, var(--gold) 40%, #8a6a1c 52%, var(--gold2) 70%, var(--gold) 85%, #8a6a1c 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  animation: hero-shine 7s linear infinite;
}
.hero-title .byfa {
  display: block;
  margin-top: 6px;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3.6vw, 42px);
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--gold2);
}
.hero-line {
  width: 0;
  height: 2px;
  margin: 26px 0 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
  animation: hero-grow 1.6s ease-out 0.8s forwards;
}
.hero-slogan {
  margin: 0;
  max-width: 520px;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--cream);
  animation: hero-fade 1.4s ease-out 0.6s both;
}
.hero-sub {
  margin: 12px 0 0;
  max-width: 480px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  animation: hero-fade 1.4s ease-out 0.8s both;
}
.hero-cta {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  color: #1a1305;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.35);
  animation: hero-fade 1.4s ease-out 1s both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(212, 175, 55, 0.5); }

@keyframes hero-zoom {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@keyframes hero-shine { to { background-position: 220% center; } }
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-grow { to { width: 180px; } }
@keyframes hero-drift {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.9; }
  100% { transform: translateY(-100vh) translateX(40px) scale(1.2); opacity: 0; }
}

.section-title {
  margin: 8px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 28px;
  color: var(--gold2);
}
.collection { max-width: 1100px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar input, .toolbar select, .stack input, .stack select, .stack textarea {
  flex: 1 1 180px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--cream);
  font: inherit;
  width: 100%;
}
.toolbar input::placeholder, .stack input::placeholder, .stack textarea::placeholder { color: var(--muted); }

.status { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.card.off { opacity: 0.78; }

.media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2b2215, #0c0a08);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.monogram { font-family: Georgia, "Times New Roman", serif; font-size: 64px; color: var(--gold); opacity: 0.85; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge.gold { background: var(--gold); color: #1a1305; }
.badge.promo { top: auto; bottom: 10px; left: 10px; background: var(--red); color: #fff; }
.badge.dark { left: auto; right: 10px; background: #000; color: var(--cream); border: 1px solid var(--line); }

.body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 14px 16px; }
.cat { font-size: 11px; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }
.card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 18px;
  line-height: 1.3;
}
.desc { margin: 0; color: var(--muted); font-size: 14px; }
.price { margin: 4px 0 0; font-weight: 600; color: var(--gold2); }
.old-price {
  margin-right: 8px;
  font-weight: 400;
  font-size: 0.9em;
  color: var(--muted);
  text-decoration: line-through;
}
.stock-note { margin: 0; font-size: 12px; color: var(--muted); min-height: 1em; }

.opt {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--cream);
  font: inherit;
  font-size: 15px;
}

.add-row { display: flex; gap: 8px; margin-top: 8px; }
.add-row .qty {
  flex: 0 0 64px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  text-align: center;
}
.btn-add { flex: 1; padding: 10px 14px; font-size: 14px; }

.link {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

footer {
  margin-top: 48px;
  padding: 28px 0 96px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--gold2); text-decoration: none; }
.slogans { color: var(--gold2); letter-spacing: 0.04em; }
.small { font-size: 12px; opacity: 0.7; }

/* ---------- Panier ---------- */
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}
.cart-box {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow: auto;
  padding: 18px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
}
@media (min-width: 700px) {
  .cart-panel { align-items: center; }
  .cart-box { border-radius: 18px; }
}
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cart-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 22px;
  color: var(--gold2);
}
.line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.line.bad { opacity: 0.55; }
.line-info { display: flex; flex-direction: column; font-size: 14px; }
.line-info span { color: var(--muted); font-size: 13px; }
.qty-ctl { display: flex; align-items: center; gap: 8px; }
.qty-ctl button, .rm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font: inherit;
  cursor: pointer;
}
.qty-ctl button:disabled { opacity: 0.3; cursor: not-allowed; }
.cart-total { margin: 12px 0; font-weight: 600; color: var(--gold2); }
.cart-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}
.cart-name input {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
}
.cart-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cart-actions .btn-wa { flex: 1; }
.cart-box .small { margin-top: 12px; }

/* ---------- Espace gestion ---------- */
.admin { padding-top: 20px; padding-bottom: 60px; }

.panel {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}
.panel h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  font-size: 22px;
  color: var(--gold2);
}
.login { max-width: 420px; margin: 40px auto; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label, .checks label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.checks label { flex-direction: row; align-items: center; gap: 8px; color: var(--cream); }
.checks { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.checks input { width: 18px; height: 18px; accent-color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.stack input, .stack select, .stack textarea {
  flex: none;
  font-size: 16px; /* évite le zoom automatique sur iPhone */
}

.variants {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.variants legend { color: var(--gold2); padding: 0 6px; font-size: 14px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.variant-head,
.row-variant {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 0.9fr auto;
  gap: 8px;
  align-items: center;
}
.variant-head span { font-size: 12px; color: var(--gold2); letter-spacing: 0.05em; }
.variant-list { display: flex; flex-direction: column; gap: 8px; }
.row-variant input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
}
.variants > .btn { align-self: flex-start; }
.vfield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vfield input { min-width: 0; }
.vlabel { display: none; }

.composer-box { padding: 14px; }
.composer-open {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.composer-open:hover { color: var(--gold2); border-color: var(--gold); }

.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.photo-pick img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.photo-btn { cursor: pointer; }

.actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.err { color: var(--red); font-size: 14px; margin: 0; min-height: 1em; }

.feed { display: flex; flex-direction: column; gap: 16px; }
.post {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.post-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}
.when { font-family: inherit; font-size: 12px; color: var(--muted); }
.post-img { width: 100%; max-height: 360px; object-fit: cover; margin-top: 10px; }
.post-info { padding: 10px 16px 0; }
.post-info p { margin: 4px 0; }
.post-info .price { color: var(--gold2); font-weight: 600; }
.tags { font-size: 13px; color: var(--muted); }
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }

/* ---------- Téléphone ---------- */
@media (max-width: 560px) {
  .hero-banner { min-height: 80vh; align-items: flex-end; }
  .hero-bg { background-position: 62% center; }
  .hero-veil {
    background:
      linear-gradient(0deg, rgba(10, 7, 5, 0.97) 0%, rgba(10, 7, 5, 0.85) 42%, rgba(10, 7, 5, 0.1) 75%),
      linear-gradient(180deg, rgba(10, 7, 5, 0.4) 0%, rgba(10, 7, 5, 0) 30%);
  }
  .hero-content { padding: 24px 20px 48px; }
  .hero-title .eden { font-size: clamp(64px, 24vw, 110px); }
  .hero-title .byfa { letter-spacing: 0.38em; }
  .hero-cta { width: 100%; text-align: center; }
  .hero-dust i:nth-child(2), .hero-dust i:nth-child(8) { display: none; }
  html, body { overflow-x: hidden; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card, .body { min-width: 0; }
  .toolbar > * { flex: none; min-width: 0; }
  .btn-add {
    border-radius: 12px;
    min-height: 44px;
    padding: 10px 6px;
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
  }
  .add-row { align-items: stretch; }
  .opt { font-size: 14px; text-overflow: ellipsis; }
  .brand h1 { font-size: 22px; }
  .btn-sm { padding: 7px 12px; font-size: 13px; }
  .card h3 { font-size: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .variant-head { display: none; }
  .variant-head { display: none; }
  .row-variant {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .vlabel { display: block; margin-bottom: 4px; font-size: 12px; color: var(--gold2); }
  .row-variant .btn { justify-self: start; min-height: 40px; }
  .variants > .btn { align-self: stretch; min-height: 44px; }
  .actions .btn { flex: 1 1 140px; min-height: 46px; }
  .post-actions .btn { flex: 1 1 auto; min-height: 40px; }
  .composer-open { font-size: 15px; }
  .brand h1 { font-size: 22px; }
  .cart-actions .btn-wa { flex-basis: 100%; }
  .toolbar { flex-direction: column; }
  .toolbar select { width: 100%; }
  .add-row .qty { flex-basis: 56px; }
  .body { padding: 12px 12px 14px; }
  .price { font-size: 15px; }
  .bar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner *, .hero-banner *::before { animation: none !important; }
  .hero-line { width: 180px; }
}
