:root {
  --bg: #08131f;
  --panel: rgba(9, 24, 40, 0.92);
  --line: rgba(70, 197, 255, 0.24);
  --text: #edf8ff;
  --muted: #afc3d5;
  --cyan: #39dcff;
  --green: #29eb7e;
  --orange: #ffb347;
  --shadow: 0 18px 60px rgba(0,0,0,.30);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(57,220,255,0.10), transparent 24%),
    linear-gradient(180deg, #07111c 0%, #08131f 100%);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1200px, calc(100% - 30px)); margin: 0 auto; }

.hero { padding: 22px 0 18px; text-align: center; }
.shop-hero {
  background:
    radial-gradient(circle at top left, rgba(255,47,143,.10), transparent 30%),
    radial-gradient(circle at top right, rgba(57,220,255,.12), transparent 30%);
}
.hero-project {
  width: min(760px, 100%);
  margin: 0 auto 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: .78rem;
}
h1,h2,h3 { line-height: 1.12; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.05rem; color: var(--cyan); }
.lead, .card p { color: var(--muted); }
.hero-actions, .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: 14px; font-weight: 800;
  transition: transform .18s ease, border-color .18s ease;
  border: 0; cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--cyan), #52efff); color: #03111d; }
.btn.secondary { background: transparent; border: 1px solid rgba(237,248,255,.22); color: var(--text); }
.btn.disabled { opacity: .55; pointer-events: none; }
.section { padding: 26px 0; }
.card {
  background: linear-gradient(180deg, rgba(10,26,44,.95), rgba(8,18,30,.95));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section-head { margin-bottom: 20px; }
.section-head.center { text-align: center; }

.compact-info, .product-section, .cart-section, .signup-section {
  background:
    radial-gradient(circle at center, rgba(57, 220, 255, .05), transparent 34%),
    linear-gradient(180deg, rgba(7, 17, 28, .98), rgba(8, 19, 31, .96));
}
.info-grid, .signup-grid, .cart-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.info-card, .signup-card, .cart-card, .checkout-card { padding: 22px; }
.payment-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.payment-badges span {
  display: inline-flex; padding: 9px 12px; border-radius: 999px;
  color: #90ffb9; background: rgba(41,235,126,.10); border: 1px solid rgba(41,235,126,.26);
  font-weight: 900;
}
.payment-badges .pending { color: #ffd59a; background: rgba(255,179,71,.12); border-color: rgba(255,179,71,.28); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shop-card { padding: 18px; display: flex; flex-direction: column; min-height: 100%; }
.shop-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.shop-tag, .shop-status {
  display: inline-flex; padding: 7px 10px; border-radius: 999px; font-weight: 800; font-size: .78rem;
}
.shop-tag { color: #dffaff; background: rgba(57,220,255,.10); border: 1px solid rgba(57,220,255,.28); }
.shop-status { color: #ffd59a; background: rgba(255,179,71,.12); border: 1px solid rgba(255,179,71,.28); }
.shop-price {
  margin: 4px 0 10px; padding: 9px 11px; border-radius: 14px;
  background: rgba(41,235,126,.10); border: 1px solid rgba(41,235,126,.26);
  color: #90ffb9; font-weight: 900;
}
.shop-list { list-style: none; padding: 0; margin: 0 0 14px; }
.shop-list li { position: relative; padding-left: 22px; margin-bottom: 6px; color: #def2ff; font-size: .95rem; }
.shop-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.card-btn {
  margin-top: auto; width: 100%; background: rgba(57,220,255,.10); color: #dffaff;
  border: 1px solid rgba(57,220,255,.30); padding: 10px 12px;
}

.cart-items { display: grid; gap: 10px; }
.cart-empty {
  padding: 14px; border-radius: 16px; border: 1px dashed rgba(70,197,255,.28);
  color: var(--muted); margin-bottom: 14px;
}
.cart-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 16px; background: rgba(57,220,255,.06); border: 1px solid rgba(57,220,255,.18);
}
.cart-row-main { display: grid; gap: 4px; }
.cart-row-main span { color: #90ffb9; font-weight: 800; }
.cart-row-actions { display: flex; gap: 8px; align-items: center; }
.cart-row-actions input {
  width: 70px; padding: 9px; border-radius: 12px; border: 1px solid var(--line); background: #06101b; color: var(--text);
}
.cart-row-actions button {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,179,71,.35);
  background: rgba(255,179,71,.10); color: #ffd59a; font-size: 1.3rem; cursor: pointer;
}
.cart-total {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(70,197,255,.18);
}
.cart-total strong { color: #90ffb9; font-size: 1.35rem; }
.cart-note { font-size: .92rem; }
label { display: block; color: #dff3ff; font-weight: 800; margin-top: 12px; }
select, textarea {
  width: 100%; margin-top: 7px; padding: 11px 12px; border-radius: 13px;
  border: 1px solid var(--line); background: #06101b; color: var(--text);
  outline: none; font-family: inherit; font-size: 1rem;
}
select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(57,220,255,.10); }
.vertical-actions { flex-direction: column; align-items: stretch; }
.vertical-actions .btn { width: 100%; }

.footer { padding: 20px 0 28px; color: #96acbd; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-pro { align-items: center; }
.footer-pro p { margin: 0 0 6px; }
.footer-mails { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.footer-mails a {
  display: inline-flex; padding: 8px 10px; border-radius: 999px;
  color: #dffaff; background: rgba(57,220,255,.10); border: 1px solid rgba(57,220,255,.24); font-weight: 800;
}
.footer-mails a.main { color: #90ffb9; background: rgba(41,235,126,.10); border-color: rgba(41,235,126,.24); }

@media (max-width: 1120px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .shop-grid, .info-grid, .signup-grid, .cart-layout { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shop-grid, .info-grid, .signup-grid { grid-template-columns: 1fr; }
  .hero-actions, .actions { flex-direction: column; }
  .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .footer-mails { justify-content: flex-start; }
  .cart-row { grid-template-columns: 1fr; }
  .cart-row-actions { justify-content: space-between; }
}

/* V0.9 - port estimé */
.cart-summary {
  margin-top: 16px;
  border-top: 1px solid rgba(70,197,255,.18);
}
.cart-summary .cart-total {
  margin-top: 0;
  padding: 10px 0;
  border-top: 0;
  border-bottom: 1px solid rgba(70,197,255,.12);
}
.cart-summary .cart-total:last-child {
  border-bottom: 0;
}
.cart-grand-total strong {
  font-size: 1.45rem;
}
@media (min-width: 980px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* V0.11 - bloc statut / paiement déplacé en bas */
.low-info {
  padding-top: 10px;
  padding-bottom: 22px;
}
.low-info .info-grid {
  grid-template-columns: 1fr 1fr;
}
.small-info-card h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
}
.small-info-card p {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .low-info .info-grid {
    grid-template-columns: 1fr;
  }
}


/* V0.12 - newsletter uniquement, sans compte client */
.newsletter-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.newsletter-card {
  text-align: center;
}
.newsletter-card .card-btn {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* V0.14 - CGV */
.legal-hero {
  padding-bottom: 24px;
}
.legal-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 980px;
}
.legal-card {
  padding: 24px;
}
.legal-card h2 {
  color: var(--cyan);
}
.legal-card p {
  color: var(--muted);
}
.legal-card a {
  color: #dffaff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(57,220,255,.45);
}
.warning-card {
  border-color: rgba(255, 179, 71, .38);
  background: linear-gradient(180deg, rgba(44,30,8,.86), rgba(8,18,30,.96));
}
.legal-box {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(70,197,255,.20);
  background: rgba(6,16,27,.85);
}
.legal-box p {
  margin: 0 0 10px;
  color: #dff3ff;
}
@media (max-width: 640px) {
  .legal-card {
    padding: 18px;
  }
}
