/* Reset minimal */
*{box-sizing:border-box} html,body{margin:0;padding:0}
:root{
  --bg:#0c0f14;           /* fond sombre */
  --panel:#121720;        /* panneaux */
  --text:#e8ecf3;         /* texte clair */
  --muted:#9aa3b2;        /* texte secondaire */
  --primary:#7cf4e0;      /* cyan néon */
  --primary-2:#9b7cff;    /* violet néon */
  --stroke:#1a2130;       /* bordures discrètes */
  --glass:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  --radius:16px;
  --shadow:0 12px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);

  /* palette néon supp */
  --neon1:#00f0ff; --neon2:#6a5cff; --neon3:#00ffa8;
}

body{
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(124,244,224,.15), transparent),
    radial-gradient(1000px 500px at -10% 10%, rgba(155,124,255,.14), transparent),
    var(--bg);
  color:var(--text);
  font:15px/1.6 ui-sans-serif,system-ui,Segoe UI,Roboto,Inter,Arial
}

a{color:inherit;text-decoration:none}
img{display:block;width:100%;height:auto;border-radius:12px}

/* Topbar */
.topbar{position:sticky;top:0;z-index:10;background:rgba(7,10,14,.6);backdrop-filter:blur(10px);border-bottom:1px solid var(--stroke)}
.topbar__inner{max-width:1100px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;gap:16px}
.brand{font-weight:700;letter-spacing:.4px}
.nav{display:flex;gap:14px;margin-left:auto}
.nav__actions{display:flex;gap:10px}

/* Buttons */
.btn{padding:10px 14px;border-radius:12px;border:1px solid var(--stroke);background:var(--glass);color:var(--text);box-shadow:var(--shadow);cursor:pointer;transition:.2s}
.btn:hover{transform:translateY(-1px)}
.btn--primary{background:linear-gradient(135deg, var(--primary), var(--primary-2));color:#0a0d12;border:0;box-shadow:0 8px 28px rgba(124,244,224,.25)}
.btn--primary:hover{transform:translateY(-1px);box-shadow:0 12px 36px rgba(124,244,224,.35)}
.btn--ghost{background:transparent}
.btn--sm{padding:8px 12px;border-radius:10px}
.btn--tiny{padding:6px 10px;border-radius:10px;font-size:13px}

/* Hero */
.hero{position:relative;max-width:1100px;margin:28px auto 10px;padding:40px 16px}
.hero__inner{border:1px solid var(--stroke);border-radius:var(--radius);padding:36px;background:var(--glass);box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero__badge{display:inline-block;border:1px solid var(--stroke);border-radius:999px;padding:4px 10px;margin-bottom:10px;background:rgba(255,255,255,.04)}
.hero h1{margin:8px 0 6px;font-size:34px;letter-spacing:.3px}
.hero p{margin:0 0 16px;color:var(--muted)}
.hero__cta{display:flex;gap:10px}
.hero__glow{position:absolute;inset:-60px -40px auto auto; width:420px;height:420px;
  background:radial-gradient(closest-side,rgba(124,244,224,.18),transparent 70%),
             radial-gradient(closest-side,rgba(155,124,255,.14),transparent 70%);
  filter:blur(30px);opacity:.7;pointer-events:none;animation:glowPulse 7s ease-in-out infinite}
@keyframes glowPulse{0%,100%{transform:scale(1) translateY(0)}50%{transform:scale(1.04) translateY(6px)}}

/* TITRES néon (gradient text) */
.section-title, .hero h1{
  background: linear-gradient(90deg, var(--neon1), var(--neon2) 50%, var(--neon3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 18px rgba(0,240,255,.15);
}

/* Grid section */
.grid-wrap{max-width:1100px;margin:14px auto;padding:0 16px}
.section-title{margin:22px 0 12px;font-size:20px;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.card{background:var(--panel);border:1px solid var(--stroke);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.card .p{padding:12px}
.card h3{margin:0 0 4px;font-size:16px}
.muted{color:var(--muted);margin:0 0 10px}
.card__foot{display:flex;align-items:center;justify-content:space-between}
.price{font-weight:700}

/* Cartes : hover néon (global) */
.card{transform:translateZ(0);will-change:transform,box-shadow,border-color;transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease}
.card:hover{transform:translateY(-4px) scale(1.01);box-shadow:0 18px 60px rgba(0,0,0,.45), 0 0 22px rgba(0,240,255,.12);border-color:rgba(0,240,255,.28)}
.card img{filter:saturate(1.02);transition:transform .25s ease, filter .25s ease}
.card:hover img{transform:scale(1.03);filter:saturate(1.08)}

/* Features */
.features{max-width:1100px;margin:18px auto 32px;padding:0 16px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feat{border:1px solid var(--stroke);border-radius:var(--radius);padding:16px;background:var(--glass);box-shadow:var(--shadow)}
.feat__icon{font-size:22px;margin-bottom:6px}

/* Footer */
.sitefoot{border-top:1px solid var(--stroke);margin-top:24px;background:rgba(7,10,14,.6);backdrop-filter:blur(10px)}
.sitefoot__inner{max-width:1100px;margin:0 auto;padding:16px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.sitefoot nav{display:flex;gap:14px}

/* Toolbar (filtres / recherche) – EN DEHORS du media query */
.toolbar{display:flex;align-items:center;justify-content:space-between;margin:12px 0 18px;gap:12px}
.toolbar__left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.toolbar__right{display:flex;align-items:center;gap:8px}

.chip{display:inline-block;padding:6px 10px;border:1px solid var(--stroke);border-radius:999px;background:var(--glass);font-size:13px}
.chip:hover{transform:translateY(-1px)}
.chip--active{border-color:transparent;background:linear-gradient(135deg, var(--primary), var(--primary-2));color:#0a0d12}

.input{padding:10px 12px;border:1px solid var(--stroke);border-radius:12px;background:rgba(255,255,255,.03);color:var(--text);min-width:220px}

/* Small screens */
@media (max-width:720px){
  .features{grid-template-columns:1fr}
  .nav{display:none}
}

/* Onglet actif dans la nav */
.nav a{padding:8px 10px;border-radius:10px}
.nav a.is-active{background:linear-gradient(135deg, var(--primary), var(--primary-2)); color:#0a0d12}

/* Fil d’Ariane */
.breadcrumb{max-width:1100px;margin:14px auto 0;padding:0 16px;display:flex;gap:8px;align-items:center;color:var(--muted)}
.breadcrumb a{opacity:.9}
.breadcrumb span{opacity:.7}

/* Layout fiche produit */
.product{max-width:1100px;margin:12px auto;padding:12px 16px;display:grid;grid-template-columns:1.1fr .9fr;gap:22px}
.product__media{background:var(--panel);border:1px solid var(--stroke);border-radius:var(--radius);padding:12px;box-shadow:var(--shadow)}
.product__hero{width:100%;height:auto;border-radius:12px}
.product__thumbs{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
.thumb{border:1px solid var(--stroke);border-radius:10px;overflow:hidden;background:rgba(255,255,255,.03);cursor:pointer;padding:0}
.thumb img{display:block;width:84px;height:64px;object-fit:cover}

.product__info{display:grid;gap:12px}
.product__title{margin:0}
.product__short{color:var(--muted);margin:0}
.tags{display:flex;gap:8px;flex-wrap:wrap}
.product__price{font-size:24px;font-weight:800;margin-top:6px}
.product__cta{display:flex;gap:10px}
.specs{margin-top:8px}
.specs__table{width:100%;border-collapse:collapse;border:1px solid var(--stroke);border-radius:12px;overflow:hidden}
.specs__table th,.specs__table td{padding:10px;border-bottom:1px solid var(--stroke)}
.specs__table th{width:36%;text-align:left;color:var(--muted);background:rgba(255,255,255,.02)}
.specs__table tr:last-child th,.specs__table tr:last-child td{border-bottom:0}

@media (max-width:920px){
  .product{grid-template-columns:1fr}
}

/* Lien panier dans le header */
.cart-link{position:relative;display:inline-flex;align-items:center;gap:6px;margin-right:8px}
.cart-badge{display:inline-block;min-width:22px;padding:2px 6px;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#0a0d12;font-weight:700;text-align:center}

/* Panier */
.cart{max-width:1100px;margin:16px auto;padding:0 16px}
.cart__row{display:grid;grid-template-columns:110px 1fr 160px 140px 120px;gap:12px;align-items:center;padding:12px;border:1px solid var(--stroke);border-radius:12px;background:var(--glass);box-shadow:var(--shadow);margin-bottom:10px}
.cart__thumb img{width:100%;height:70px;object-fit:cover;border-radius:10px}
.cart__title{font-weight:700}
.cart__qty .input{padding:8px 10px;border-radius:10px}
.cart__qty{text-align:center}
.cart__line{text-align:right;font-weight:700}
.cart__line strong{font-size:16px}
.cart__total{display:flex;align-items:center;justify-content:space-between;padding:14px;border:1px solid var(--stroke);border-radius:12px;background:var(--panel);margin-top:10px}
.cart__actions{display:flex;gap:10px;justify-content:flex-end;margin-top:10px}

@media (max-width:820px){
  .cart__row{grid-template-columns:90px 1fr 1fr; grid-template-areas:
    "thumb title title"
    "thumb qty   price"
    "thumb remove remove";
  }
  .cart__thumb{grid-area:thumb}
  .cart__info{grid-area:title}
  .cart__qty{grid-area:qty}
  .cart__line{grid-area:price}
  .cart__remove{grid-area:remove}
}
/* Images : arrondis cohérents (déjà en place) et lazy partout via attribut HTML */

/* Cookie banner futuriste */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 640px;
  width: 90%;
  background: rgba(0, 0, 30, 0.8);
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.6);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  backdrop-filter: blur(6px);
  z-index: 9999;
  animation: fadeInUp 0.8s ease;
}
#cookie-banner p { margin: 0; line-height: 1.4; }
#cookie-banner a { color: #0ff; text-decoration: underline; }
#cookie-banner button {
  background: linear-gradient(135deg, #0ff, #09f);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,200,255,0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#cookie-banner button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,200,255,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Section légale futuriste */
.legal-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 16px;
  background: rgba(0, 0, 20, 0.85);
  color: #eee;
  box-shadow: 0 0 25px rgba(0,200,255,0.4);
  backdrop-filter: blur(6px);
}
.legal-section h2 {
  color: #0ff;
  margin-top: 24px;
  border-left: 4px solid #0ff;
  padding-left: 8px;
}
.legal-section p {
  line-height: 1.6;
  margin-bottom: 14px;
  color: #ccc;
}
.legal-section strong {
  color: #0af;
}
.legal-section a {
  color: #0ff;
  text-decoration: underline;
}
/* ====== Mobile burger & menu ====== */
.burger {
  display:none;
  width:42px;height:36px;
  border:1px solid var(--stroke);
  border-radius:10px;
  background:var(--glass);
  box-shadow:var(--shadow);
  align-items:center;justify-content:center;gap:4px;
  cursor:pointer;
}
.burger span {
  display:block;
  width:20px;height:2px;
  background:#cfe9ff;
  border-radius:2px;
  transition: transform .2s ease, opacity .2s ease;
}
@media (max-width: 720px){
  .burger{display:inline-flex}
  .nav{display:none}
}

/* Menu mobile */
.mobile-menu {
  flex-direction:column;
  gap:8px;
  padding:12px 16px;
  background:rgba(7,10,14,.9);
  backdrop-filter:blur(10px);
  border-top:1px solid var(--stroke);
}
.mobile-menu a {
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--stroke);
  background:var(--glass);
}

/* ====== Mobile polish (≤ 720px) ====== */
@media (max-width: 720px){
  .topbar__inner, .grid-wrap, .breadcrumb, .hero { padding-left:12px; padding-right:12px; }
  .hero{ margin:18px auto 6px; padding-top:24px; padding-bottom:24px; }
  .hero__inner{ padding:20px; border-radius:14px; }
  .hero h1{ font-size:26px; line-height:1.2; letter-spacing:.1px; }
  .hero p{ font-size:14px; opacity:.85 }
  .hero__glow{ opacity:.45; filter: blur(24px); width:300px; height:300px; inset:-40px -24px auto auto; }

  .grid{ grid-template-columns: 1fr; gap:12px; }
  .card{ border-radius:14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
  .card .p{ padding:10px }
  .card h3{ font-size:15px }
  .price{ font-size:15px }

  .hero__cta{ flex-direction:column; align-items:stretch; }
  .btn, .input{ width:100% }

  .mobile-menu{
    position: absolute; left:0; right:0; top:100%;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
  }

  .sitefoot__inner{ flex-direction:column; align-items:flex-start; gap:8px }
  .sitefoot nav{ flex-wrap:wrap; gap:10px }
}

/* Micro-ajustements (≤ 520px & ≤ 420px) */
@media (max-width: 520px){
  .btn{width:100%; text-align:center}
  .product__cta{flex-direction:column; align-items:stretch}
  .product__cta .input{width:100%}
  .hero h1{font-size:22px}
}
@media (max-width: 420px){
  .hero__badge{ font-size:12px; padding:3px 8px }
  .hero h1{ font-size:24px }
  .product{ padding-left:12px; padding-right:12px }
}

/* Fiche produit mobile */
@media (max-width: 720px){
  .product{ gap:14px }
  .product__media{ padding:10px; border-radius:14px }
  .product__viewer{ aspect-ratio: 16 / 9; height:auto; }
  .product__thumbs{ gap:6px; overflow-x:auto; padding-bottom:4px }
  .thumb img{ width:76px; height:56px; }
  .product__price{ font-size:20px }
  .specs__table th, .specs__table td{ padding:8px }
}

/* Burger animé en X + overlay */
.burger.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-overlay{
  position: fixed; inset:0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
  z-index: 9;
  display:none;
}
.mobile-overlay.is-show{ display:block; }
/* Toujours cacher par défaut (et si [hidden]) */
.mobile-menu { display: none; }
.mobile-menu[hidden] { display: none !important; }

/* Afficher seulement en mobile */
@media (max-width: 720px){
  .mobile-menu { display: flex; }
}
/* ===== Auth forms (register/login) ===== */
.auth-wrap{max-width:680px}
.form-auth{background:var(--glass); box-shadow:var(--shadow); border:1px solid var(--stroke); border-radius:16px; padding:18px}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.form-grid .full{grid-column:1 / -1}
.field label{display:block; font-weight:700; margin:4px 0 6px}
.field .hint{color:var(--muted); font-size:13px; margin-top:6px}
.field .input{width:100%}
.notice{padding:10px 12px; border-radius:10px; background:rgba(0,240,255,.08); border:1px solid rgba(0,240,255,.25); color:#cfefff; margin-bottom:12px}
.error{padding:10px 12px; border-radius:10px; background:rgba(255,68,68,.08); border:1px solid rgba(255,68,68,.35); color:#ffd2d2; margin-bottom:12px}
.auth-actions{display:flex; gap:10px; margin-top:6px}
@media (max-width:720px){
  .form-grid{grid-template-columns:1fr}
}
/* ===== Mon compte – tableau commandes (polish) ===== */
.orders{width:100%; border-collapse:separate; border-spacing:0 8px;}
.orders thead th{font-weight:700; color:var(--muted); letter-spacing:.2px; padding:10px 12px; text-transform:none}
.orders tbody tr{background:var(--glass); box-shadow:var(--shadow); border:1px solid var(--stroke)}
.orders tbody td{padding:12px}
.orders tbody tr td:first-child{border-top-left-radius:12px; border-bottom-left-radius:12px}
.orders tbody tr td:last-child{border-top-right-radius:12px; border-bottom-right-radius:12px}

.badge{display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700; font-size:12px}
.badge--paid{background:linear-gradient(135deg, #00f0ff, #6a5cff); color:#0a0d12}
.badge--pending{background:rgba(255,200,0,.15); color:#ffd66b; border:1px solid rgba(255,200,0,.35)}
.badge--cancel{background:rgba(255,80,80,.12); color:#ffb3b3; border:1px solid rgba(255,80,80,.35)}

.btn--chip{border-radius:999px; padding:6px 10px; font-size:13px}
.dl-list{display:flex; flex-wrap:wrap; gap:8px}
.dl-list .btn{white-space:nowrap}

/* Mobile: passe en cartes empilées */
@media (max-width:760px){
  .orders thead{display:none}
  .orders, .orders tbody, .orders tr, .orders td{display:block; width:100%}
  .orders tbody tr{margin:10px 0; border-radius:12px; overflow:hidden}
  .orders tbody td{border-bottom:1px solid var(--stroke)}
  .orders tbody td[data-label]{display:flex; align-items:center; justify-content:space-between; gap:12px}
  .orders tbody td[data-label]::before{content:attr(data-label); color:var(--muted)}
  .dl-list{gap:6px}
}

/* ===== Filtres & recherche (boutique + admin) ===== */
.shop-filters, .admin-filters{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:10px 0 16px}
.shop-filters .input, .admin-filters .input{height:38px}
.shop-filters .btn, .admin-filters .btn{height:38px; padding:0 14px; display:inline-flex; align-items:center}
.results-count{margin:6px 0; color:var(--muted)}

/* Petites largeurs: champs sur toute la ligne */
@media (max-width:720px){
  .shop-filters .input, .admin-filters .input{min-width:unset; width:100%}
  .shop-filters .btn, .admin-filters .btn{width:auto}
}
/* Product description formatting */
.prose p{margin:0 0 10px}
.prose ul{margin:0 0 12px 20px}
.prose li{margin:4px 0}
.product-desc{margin-top:24px}

/* Badge catégorie sous le titre produit */
.product__category{
  margin:4px 0 0;
  font-size:13px;
  color:var(--muted);
}

/* Sticky CTA mobile produit */
.product-sticky-cta{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  padding:8px 16px;
  background:rgba(7,10,14,.96);
  border-top:1px solid var(--stroke);
  backdrop-filter:blur(10px);
  z-index:50;
  display:none;
}
.product-sticky-cta__inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.product-sticky-cta__price{
  font-weight:700;
  font-size:15px;
}

@media (max-width:780px){
  .product-sticky-cta{display:block;}
  body{padding-bottom:72px;}
}

.card__category{
  margin:2px 0 0;
  font-size:12px;
  color:var(--muted);
}
