/* ═══════════════════════════════════════════════════════════
   Le7 Store — Feuille de style
   Design identique à ftp/style.css + composants boutique
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0a0a0f;
  --surface: #14141f;
  --border:  #2a2a40;
  --accent:  #00e5ff;
  --accent2: #7b2fff;
  --success: #00e676;
  --error:   #ff1744;
  --warn:    #ffab00;
  --text:    #f0f0fa;
  --muted:   #9090b8;
  --radius:  12px;
  --sidebar-w: 220px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed; top: -25%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,229,255,.07) 0%, rgba(123,47,255,.04) 55%, transparent 75%);
  pointer-events: none; z-index: 0;
}
body.page-auth {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideIn { from { opacity:0; transform:translateY(8px);  } to { opacity:1; transform:translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }

/* ── Sidebar nav ─────────────────────────────────────────────── */
nav.sidenav {
  position: fixed; top:0; left:0; bottom:0; width:var(--sidebar-w);
  z-index: 200; background: rgba(10,10,15,.97);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 0; overflow-y: auto; overflow-x: hidden;
  transition: transform .3s ease;
}
.nav-brand {
  font-size: 1.05rem; font-weight: 800;
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}
.nav-brand { display: flex; align-items: center; gap: .5rem; }
.nav-brand span { color: var(--accent); }
.nav-logo  { width: 33px; height: 32px; object-fit: contain; flex-shrink: 0; }
.nav-user { padding: 1rem 1.4rem .8rem; border-bottom: 1px solid var(--border); }
.nav-user-name {
  display: block; font-family: 'DM Mono', monospace; font-size: .72rem;
  color: var(--text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .35rem;
}
.nav-links { display: flex; flex-direction: column; padding: .8rem; gap: .25rem; flex: 1; }
.nav-links-bottom {
  display: flex; flex-direction: column; padding: .8rem .8rem 1.2rem;
  gap: .25rem; border-top: 1px solid var(--border);
}
.btn-nav {
  display: flex; align-items: center; gap: .55rem; width: 100%;
  font-family: 'DM Mono', monospace; font-size: .75rem;
  padding: .55rem .85rem; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--muted); cursor: pointer;
  text-decoration: none; transition: all .18s; white-space: nowrap;
}
.btn-nav:hover { color: var(--text); background: rgba(255,255,255,.06); border-color: var(--border); }
.btn-nav.active { color: var(--accent); background: rgba(0,229,255,.08); border-color: rgba(0,229,255,.2); }
.btn-nav.admin:hover { background: rgba(123,47,255,.1); border-color: rgba(123,47,255,.3); color: var(--accent2); }
.btn-nav.logout:hover { color: var(--error); border-color: rgba(255,23,68,.2); background: rgba(255,23,68,.05); }
.btn-nav.register { color: var(--success); }
.btn-nav.register:hover { background: rgba(0,230,118,.07); border-color: rgba(0,230,118,.2); }
.nav-sep { height: 1px; background: var(--border); margin: .4rem; }

.page-content { margin-left: var(--sidebar-w); min-height: 100vh; }

/* ── Nav toggle (mobile) ─────────────────────────────────────── */
.nav-toggle {
  display: none; position: fixed; top: .9rem; left: .9rem;
  z-index: 300; width: 40px; height: 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; }

/* ── Role badges ────────────────────────────────────────────── */
.role-badge {
  display: inline-block; font-family: 'DM Mono', monospace; font-size: .65rem;
  letter-spacing: .1em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 100px;
}
.role-admin    { background: rgba(123,47,255,.2); color: var(--accent2); border: 1px solid rgba(123,47,255,.3); }
.role-customer { background: rgba(0,229,255,.1);  color: var(--accent);  border: 1px solid rgba(0,229,255,.2); }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--error); color: #fff; font-size: .6rem;
  min-width: 16px; height: 16px; border-radius: 100px; padding: 0 4px; margin-left: 2px;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: 8px; font-size: .85rem; margin-bottom: 1.2rem; font-family: 'DM Mono', monospace; }
.alert.error   { background: rgba(255,23,68,.1);  color: var(--error);   border: 1px solid rgba(255,23,68,.2); }
.alert.success { background: rgba(0,230,118,.1);  color: var(--success); border: 1px solid rgba(0,230,118,.2); }
.alert.info    { background: rgba(0,229,255,.08); color: var(--accent);  border: 1px solid rgba(0,229,255,.2); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  padding: .75rem 1.6rem;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff; border: none; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 700;
  cursor: pointer; letter-spacing: .04em;
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn:hover    { opacity: .9; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0,229,255,.2); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-full     { width: 100%; }
.btn-danger   { background: linear-gradient(135deg, #c62828, var(--error)); }
.btn-ghost    { background: none; border: 1px solid var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.25); }

/* ── Forms ──────────────────────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-family: 'DM Mono', monospace; font-size: .76rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: .7rem .9rem; color: var(--text);
  font-family: 'Syne', sans-serif; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,229,255,.1);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select option { background: var(--surface); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.6rem; animation: fadeUp .35s ease;
}
.card-title { font-size: 1rem; font-weight: 800; margin-bottom: 1.4rem; display: flex; align-items: center; gap: .5rem; }
.card-title span { color: var(--accent); }

/* ── Section title ───────────────────────────────────────────── */
.section-title {
  font-size: .72rem; font-family: 'DM Mono', monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 2rem 0 1rem; display: flex; align-items: center; gap: .6rem;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table       { width: 100%; border-collapse: collapse; font-size: .83rem; }
thead tr    { background: rgba(255,255,255,.03); }
th { font-family: 'DM Mono', monospace; font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .8rem 1rem; text-align: left; }
td { padding: .75rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.02); }
.empty-state { text-align: center; padding: 2.5rem; color: var(--muted); font-size: .85rem; font-family: 'DM Mono', monospace; }

/* ── Status badges ───────────────────────────────────────────── */
.badge { font-family: 'DM Mono', monospace; font-size: .62rem; padding: .2rem .55rem; border-radius: 100px; text-transform: uppercase; letter-spacing: .08em; }
.s-active   { background: rgba(0,230,118,.12); color: var(--success); border: 1px solid rgba(0,230,118,.2); }
.s-draft    { background: rgba(255,171,0,.1);  color: var(--warn);    border: 1px solid rgba(255,171,0,.2); }
.s-paid     { background: rgba(0,230,118,.12); color: var(--success); border: 1px solid rgba(0,230,118,.2); }
.s-pending  { background: rgba(255,171,0,.1);  color: var(--warn);    border: 1px solid rgba(255,171,0,.2); }
.s-failed   { background: rgba(255,23,68,.1);  color: var(--error);   border: 1px solid rgba(255,23,68,.2); }
.s-archived { background: rgba(144,144,184,.1); color: var(--muted);  border: 1px solid rgba(144,144,184,.2); }

/* ── Actions ─────────────────────────────────────────────────── */
.actions { display: flex; gap: .4rem; }
.act-btn { font-family: 'DM Mono', monospace; font-size: .65rem; padding: .25rem .6rem; border-radius: 5px; border: 1px solid; cursor: pointer; background: none; transition: background .2s; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.act-edit   { color: var(--accent);  border-color: rgba(0,229,255,.3); }
.act-edit:hover { background: rgba(0,229,255,.08); }
.act-delete { color: var(--error);   border-color: rgba(255,23,68,.3); }
.act-delete:hover { background: rgba(255,23,68,.08); }
.act-pub    { color: var(--success); border-color: rgba(0,230,118,.3); }
.act-pub:hover { background: rgba(0,230,118,.08); }

/* ── Toast ───────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .8rem 1.3rem;
  font-size: .82rem; font-family: 'DM Mono', monospace;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); z-index: 9999;
  transform: translateY(8px); opacity: 0;
  transition: all .3s; pointer-events: none;
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.ok  { color: var(--success); border-color: rgba(0,230,118,.3); }
#toast.err { color: var(--error);   border-color: rgba(255,23,68,.3); }

/* ── Auth card ───────────────────────────────────────────────── */
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 480px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: fadeUp .4s ease;
}
.logo { text-align: center; margin-bottom: 2rem; }
.logo .badge-logo {
  display: inline-block; font-family: 'DM Mono', monospace; font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(0,229,255,.3); padding: .25rem .7rem; border-radius: 100px; margin-bottom: .8rem;
}
.logo h1 { font-size: 1.7rem; font-weight: 800; }
.logo h1 span { color: var(--accent); }
.tabs { display: flex; gap: .4rem; margin-bottom: 2rem; background: var(--bg); border-radius: 8px; padding: .3rem; }
.tab { flex: 1; text-align: center; padding: .55rem; border-radius: 6px; font-size: .85rem; font-weight: 600; cursor: pointer; border: none; background: none; color: var(--muted); transition: all .2s; text-decoration: none; display: block; }
.tab.active { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: #07070d; border-bottom: 1px solid var(--border); }
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,229,255,.13) 0%, rgba(123,47,255,.09) 40%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem; border-bottom: 1px solid rgba(255,255,255,.05);
}
.hero-brand { display: flex; align-items: center; gap: .5rem; font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 800; }
.hero-logo  { width: 33px; height: 32px; object-fit: contain; flex-shrink: 0; }
.hero-name em { color: var(--accent); font-style: normal; }
.hero-nav { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.hero-greeting { font-family: 'DM Mono', monospace; font-size: .75rem; color: var(--muted); margin-right: .3rem; }
.hero-greeting strong { color: var(--accent); }
.hbtn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .85rem;
  padding: .5rem 1.1rem; border-radius: 8px; cursor: pointer;
  text-decoration: none; border: none; transition: all .2s; white-space: nowrap;
}
.hbtn-primary { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; }
.hbtn-primary:hover { opacity: .88; transform: translateY(-1px); }
.hbtn-outline { background: none; color: var(--text); border: 1px solid rgba(255,255,255,.15); }
.hbtn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hbtn-ghost { background: rgba(255,255,255,.04); color: var(--muted); border: 1px solid var(--border); }
.hbtn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .3rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
  background: #07070d; border-bottom: 1px solid var(--border); z-index: 50; padding: 1rem 1.5rem; gap: .5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: .9rem; font-weight: 600; color: var(--muted); padding: .6rem .5rem; text-decoration: none; border-bottom: 1px solid var(--border); transition: color .2s; }
.mobile-menu a:hover { color: var(--accent); }

/* ── Hero content ─────────────────────────────────────────────── */
.hero-content { position: relative; z-index: 2; text-align: center; padding: 4rem 1.5rem 3rem; }
.hero-tag {
  display: inline-block; font-family: 'DM Mono', monospace; font-size: .68rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(0,229,255,.3); padding: .3rem .9rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; margin-bottom: .8rem; }
.hero-title span { color: var(--accent); }
.hero-sub { font-size: .9rem; color: var(--muted); font-family: 'DM Mono', monospace; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hbtn-lg { font-size: .95rem; padding: .75rem 1.6rem; border-radius: 10px; }

/* ═══════════════════════════════════════════════════════════
   CATALOGUE
   ═══════════════════════════════════════════════════════════ */
.catalog-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.catalog-title { font-size: 1.4rem; font-weight: 800; }
.catalog-sub { font-family: 'DM Mono', monospace; font-size: .72rem; color: var(--muted); margin-top: .25rem; }

/* Filtres catégories */
.cat-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.cat-btn {
  font-family: 'DM Mono', monospace; font-size: .72rem; padding: .35rem .9rem;
  border: 1px solid var(--border); border-radius: 100px; background: none;
  color: var(--muted); cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block;
}
.cat-btn:hover, .cat-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(0,229,255,.06); }

/* Grille produits */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  animation: fadeUp .4s ease;
}
.product-card:hover {
  border-color: rgba(0,229,255,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,229,255,.08);
}
.product-img {
  width: 100%; height: 180px; object-fit: cover; display: block;
  background: linear-gradient(135deg, rgba(123,47,255,.2), rgba(0,229,255,.1));
}
.product-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, rgba(123,47,255,.15), rgba(0,229,255,.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--border);
}
.product-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.3; color: var(--text); }
.product-desc { font-size: .82rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); font-family: 'Syne', sans-serif; }
.product-price.free { color: var(--success); }
.btn-buy {
  padding: .5rem 1.1rem;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff; border: none; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-size: .85rem; font-weight: 700;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem;
  transition: opacity .2s, transform .15s;
}
.btn-buy:hover { opacity: .9; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════
   PAGE PRODUIT
   ═══════════════════════════════════════════════════════════ */
.product-page { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.product-page-header { margin-bottom: 2rem; }
.product-page-cat { font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.product-page-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: .8rem; }
.product-page-price { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 1.5rem; }
.product-page-price.free { color: var(--success); }
.product-page-desc { font-size: .92rem; line-height: 1.9; color: var(--muted); }
.product-page-img { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; border: 1px solid var(--border); }

.checkout-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  position: sticky; top: 1.5rem;
}
.checkout-price { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin-bottom: 1.2rem; }
.checkout-price.free { color: var(--success); }
.checkout-info { font-family: 'DM Mono', monospace; font-size: .75rem; color: var(--muted); margin-bottom: 1.4rem; line-height: 1.7; }
.checkout-info li { margin-left: 1rem; margin-bottom: .2rem; }

#paypal-button-container { margin-top: 1rem; }
#paypal-button-container.loading { min-height: 50px; display: flex; align-items: center; justify-content: center; }

.product-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 740px) { .product-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD CLIENT
   ═══════════════════════════════════════════════════════════ */
.dash-wrap { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.order-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
  margin-bottom: 1rem; animation: fadeUp .35s ease;
}
.order-ref { font-family: 'DM Mono', monospace; font-size: .78rem; color: var(--accent); margin-bottom: .4rem; }
.order-date { font-family: 'DM Mono', monospace; font-size: .7rem; color: var(--muted); }
.order-items { margin: .8rem 0; }
.order-item { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.order-item:last-child { border-bottom: none; }
.order-item-name { font-size: .88rem; font-weight: 600; }
.order-item-price { font-family: 'DM Mono', monospace; font-size: .82rem; color: var(--accent); }
.order-total { font-weight: 800; font-size: 1rem; margin-top: .6rem; display: flex; justify-content: space-between; }
.btn-dl {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: 6px; font-size: .78rem; font-weight: 600;
  background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.2); color: var(--accent);
  text-decoration: none; transition: all .2s;
}
.btn-dl:hover { background: rgba(0,229,255,.15); }

/* ═══════════════════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════════════════ */
.admin-wrap { padding: 2rem 2rem; max-width: 1200px; }
.admin-tabs {
  display: flex; gap: .4rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--border); padding-bottom: .6rem;
}
.admin-tab {
  font-family: 'DM Mono', monospace; font-size: .78rem; font-weight: 600;
  padding: .5rem 1.1rem; border-radius: 8px 8px 0 0;
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; transition: all .2s;
}
.admin-tab.active { color: var(--accent); border-color: var(--border); border-bottom-color: var(--bg); background: var(--surface); margin-bottom: -1px; }
.admin-tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,.04); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.stat-label { font-family: 'DM Mono', monospace; font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: 1.6rem; font-weight: 800; margin-top: .3rem; }
.c-accent  { color: var(--accent); }
.c-accent2 { color: var(--accent2); }
.c-success { color: var(--success); }
.c-warn    { color: var(--warn); }

/* Modal produit */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px); z-index: 9000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem; overflow-y: auto;
}
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem 1.8rem; width: 100%; max-width: 640px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: fadeUp .25s ease;
}
.modal-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.4rem; display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; transition: color .2s; }
.modal-close:hover { color: var(--error); }

/* Upload fichier admin */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-area:hover, .upload-area.dragover { border-color: var(--accent); background: rgba(0,229,255,.04); }
.upload-area input[type=file] { display: none; }

/* ── Success page ─────────────────────────────────────────────── */
.success-wrap { max-width: 600px; margin: 4rem auto; padding: 0 1.5rem; text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-title { font-size: 1.8rem; font-weight: 800; margin-bottom: .8rem; color: var(--success); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav.sidenav { transform: translateX(-100%); }
  nav.sidenav.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,.5); }
  .nav-toggle { display: flex; }
  .page-content { margin-left: 0; padding-top: 3.5rem; }
  .nav-overlay.show { display: block; }
}
@media (max-width: 700px) {
  .hero-nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner { padding: 1rem 1.2rem; }
  .products-grid { grid-template-columns: 1fr; }
  .admin-wrap { padding: 1rem; }
}

/* ── Password strength ───────────────────────────────────────── */
.strength-wrap  { margin-top: .4rem; }
.strength-bar   { height: 4px; border-radius: 100px; background: var(--border); overflow: hidden; }
.strength-fill  { height: 100%; width: 0%; border-radius: 100px; transition: width .3s, background .3s; }
.strength-label { font-family: 'DM Mono', monospace; font-size: .66rem; color: var(--muted); margin-top: .25rem; }


/* Franck */
.hero-stats{
  display: none;
}
