
:root{--bg:#0b0512;--card:#12041b;--accent:#7c3cff;--muted:#a89fcf;--glass:rgba(255,255,255,0.04)}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;color:#e8e6f3;background:linear-gradient(180deg,#06020a 0%,#0b0512 50%,#12041b 100%);-webkit-font-smoothing:antialiased}
header{padding:28px 48px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{display:flex;align-items:center;gap:14px}
.logo .mark{width:54px;height:54px;border-radius:10px;background:radial-gradient(circle at 30% 20%,#8a4bff 0%,#5b0ef0 30%,#23003a 100%);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 30px rgba(124,60,255,0.18)}
.logo h1{font-size:18px;margin:0;letter-spacing:1px}
.logo p{margin:0;font-size:12px;color:var(--muted)}
.search{flex:1;max-width:540px;margin-left:12px}
.search input{width:100%;padding:12px 16px;border-radius:12px;border:1px solid rgba(255,255,255,0.04);background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));color:inherit;outline:none}
.nav-actions{display:flex;gap:12px}
.btn{padding:10px 14px;border-radius:10px;background:linear-gradient(90deg,var(--accent),#4a1fb7);border:none;color:white;font-weight:600;cursor:pointer;box-shadow:0 8px 30px rgba(124,60,255,0.12)}
main{padding:28px 48px}
.intro{display:flex;align-items:center;gap:24px;margin-bottom:20px}
.intro .title{flex:1}
.intro h2{margin:0;font-size:28px;line-height:1.05}
.intro p{margin:6px 0 0;color:var(--muted)}
.filters{display:flex;gap:10px;margin-top:14px}
.chip{padding:8px 12px;border-radius:999px;background:var(--glass);border:1px solid rgba(255,255,255,0.03);color:var(--muted);font-size:13px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}
@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){header{padding:18px}main{padding:18px} .grid{grid-template-columns:1fr}}
.card{background:linear-gradient(180deg,rgba(255,255,255,0.01),rgba(255,255,255,0.02));border:1px solid rgba(255,255,255,0.03);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;min-height:320px;box-shadow:0 10px 40px rgba(2,0,12,0.6)}
.thumb{flex:1;display:grid;place-items:center;background:linear-gradient(135deg,rgba(124,60,255,0.06),rgba(26,2,45,0.2));position:relative;height:220px}
.thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s cubic-bezier(.2,.9,.2,1)}
.ribbon{position:absolute;left:12px;top:12px;padding:6px 10px;border-radius:8px;background:linear-gradient(90deg,#ff5c70,#ff7bd6);color:white;font-weight:700;font-size:12px;box-shadow:0 6px 20px rgba(255,92,112,0.12)}
.meta{padding:16px;display:flex;flex-direction:column;gap:10px}
.meta h3{margin:0;font-size:18px}
.meta p{margin:0;color:var(--muted);font-size:13px}
.price{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.price .amt{font-weight:800;color:var(--accent);font-size:16px}
.actions{display:flex;gap:8px;margin-top:12px}
.ghost{padding:10px 12px;border-radius:10px;background:transparent;border:1px solid rgba(255,255,255,0.04);color:var(--muted);cursor:pointer}
.buy{flex:1;padding:10px 12px;border-radius:10px;background:linear-gradient(90deg,#a66cff,var(--accent));border:none;color:#0b0512;font-weight:700;cursor:pointer}
.desc{font-size:13px;color:var(--muted);line-height:1.4}
footer{padding:28px 48px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:linear-gradient(90deg,rgba(124,60,255,0.08),rgba(74,31,183,0.06));border:1px solid rgba(255,255,255,0.03)}
.hero{position:relative;padding:28px;border-radius:12px;margin-bottom:18px;background:linear-gradient(90deg,rgba(124,60,255,0.06),rgba(26,2,45,0.16));overflow:hidden}
.hero:after{content:'';position:absolute;right:-120px;top:-120px;width:320px;height:320px;background:radial-gradient(circle,#7c3cff55,transparent 40%);filter:blur(36px);transform:rotate(15deg)}
.hero h1{margin:0;font-size:28px}
.tags{display:flex;gap:8px;margin-top:8px}
.product-row{display:flex;gap:12px;align-items:center}
.small{width:86px;height:86px;border-radius:10px;overflow:hidden;background:#15061a;border:1px solid rgba(255,255,255,0.02)}
.small img{width:100%;height:100%;object-fit:cover}
.empty{display:grid;place-items:center;padding:60px;border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,0.01),rgba(255,255,255,0.02));border:1px dashed rgba(255,255,255,0.03);color:var(--muted)}
.hover-zoom:hover{transform:scale(1.04)}
.glow{position:relative}
.glow:before{content:'';position:absolute;inset:0;border-radius:14px;box-shadow:0 0 40px rgba(124,60,255,0.06);pointer-events:none}
.sold{opacity:.6}
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.6);backdrop-filter:blur(6px);justify-content:center;align-items:center;z-index:9999}
.modal-content{background:#120015;border:1px solid rgba(255,255,255,0.1);padding:20px;border-radius:14px;width:90%;max-width:380px}
/* ------------------------------
   VERSION MOBILE RESPONSIVE
--------------------------------*/
@media (max-width: 900px) {
  header {
    padding: 16px !important;
    flex-direction: column;
    gap: 12px;
  }

  .search input {
    width: 100%;
  }

  .nav-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .card h3 {
    font-size: 15px;
  }

  .thumb img {
    border-radius: 12px;
  }
}

@media (max-width: 650px) {

 
  header {
    padding: 12px !important;
  }

  .logo h1 {
    font-size: 18px !important;
  }

  .logo p {
    font-size: 12px !important;
  }

  /* Grille 1 colonne */
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Cart (panier) mobile fullscreen */
  .cart-panel {
    width: 100%;
    right: -100%;
    padding: 20px;
  }

  .cart-panel.open {
    right: 0;
  }

  .cart-header {
    font-size: 22px;
  }

  .pay-btn {
    font-size: 16px;
    padding: 12px;
  }

  /* Popup repositionné */
  .popup {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    text-align: center;
  }

  /* Formulaires (Contact) */
  form .input,
  form textarea {
    font-size: 16px;
    padding: 12px;
  }
}

/* Ultra small screens (iPhone SE, Android Mini) */
@media (max-width: 420px) {
  header {
    padding: 10px !important;
  }

  .logo img {
    width: 38px;
    height: 38px;
  }

  h1, h2 {
    font-size: 20px !important;
  }

  .chip,
  .btn,
  .buy {
    font-size: 14px;
    padding: 8px 12px;
  }

  .thumb img {
    height: auto;
    max-height: 220px;
  }
}
