/* ===== Coquely — feuille de style ===== */
:root {
  --bg: #0b0c10;
  --surface: #ffffff;
  --page: #f5f6f8;
  --text: #14161a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(99,102,241,.35); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.icon-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; font: inherit; padding: 0; }
.link-btn.center { display: block; margin: 12px auto 0; }
.link-btn:hover { text-decoration: underline; }

/* ---- En-tête ---- */
#nova-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.brand span { color: var(--primary); }
.main-nav { display: flex; gap: 22px; margin-left: 8px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--text); }
.account-link {
  margin-left: auto; color: var(--text); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; transition: .15s;
  white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis;
}
.account-link:hover { border-color: var(--primary); color: var(--primary); }
.cart-btn {
  margin-left: 4px; position: relative; background: none; border: none;
  font-size: 22px; cursor: pointer;
}
.cart-count {
  position: absolute; top: -6px; right: -10px; display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---- Hero ---- */
.hero {
  background: radial-gradient(1200px 400px at 80% -10%, rgba(99,102,241,.18), transparent),
              linear-gradient(180deg, #ffffff, var(--page));
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 70px 0; }
.hero h1 { font-size: 52px; line-height: 1.05; margin: 0 0 18px; letter-spacing: -1.5px; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 1; border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), #a855f7 60%, var(--accent));
  display: grid; place-items: center; font-size: 130px; box-shadow: var(--shadow-lg);
}
.hero-badges { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-badge { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.hero-badge b { color: var(--text); display: block; font-size: 15px; }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; margin: 0; letter-spacing: -.5px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

/* ---- Catégories ---- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; cursor: pointer; transition: .18s; text-align: left;
}
.cat-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .ico { font-size: 30px; }
.cat-card h3 { margin: 12px 0 2px; font-size: 17px; }
.cat-card span { font-size: 13px; color: var(--muted); }

/* ---- Bande défilante (marquee) ---- */
.marquee-section { padding: 30px 0 44px; }
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee-scroll 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-img {
  height: 210px; width: auto; flex: none; border-radius: 16px;
  box-shadow: var(--shadow); background: #f3f4f6;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 560px) { .marquee-img { height: 150px; } }

/* ---- Barre d'outils catalogue ---- */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px;
}
.search input { border: none; outline: none; padding: 12px 0; width: 100%; font: inherit; background: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 14px; font-weight: 500;
  transition: .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
select.sort { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 11px 14px; font: inherit; cursor: pointer; }

/* ---- Grille produits ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--accent);
}
.badge.Nouveau { background: var(--primary); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.card-title { font-size: 16px; font-weight: 600; margin: 0; }
.card-title a:hover { color: var(--primary); }
.card-rating { font-size: 13px; color: var(--accent); }
.card-rating span { color: var(--muted); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.price { font-size: 19px; font-weight: 700; }
.price .old { font-size: 14px; color: var(--muted); text-decoration: line-through; margin-right: 6px; font-weight: 500; }
.add-btn {
  display: grid; place-items: center; text-decoration: none; line-height: 1;
  border: none; background: var(--primary); color: #fff; width: 40px; height: 40px;
  border-radius: 10px; font-size: 20px; cursor: pointer; transition: .15s;
}
.add-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.empty-state { text-align: center; padding: 60px 0; color: var(--muted); grid-column: 1/-1; }

/* ---- Bandeau livraison ---- */
.promo-banner {
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: #fff; border-radius: var(--radius); padding: 30px; text-align: center; margin-top: 8px;
}
.promo-banner h3 { margin: 0 0 6px; font-size: 24px; }
.promo-banner p { margin: 0; opacity: .9; }

/* ---- Fiche produit ---- */
.breadcrumb { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a:hover { color: var(--primary); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 34px 0 70px; }
.product-detail .media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.product-detail h1 { font-size: 38px; margin: 6px 0 10px; letter-spacing: -1px; }
.product-detail .price { font-size: 30px; }
.product-detail .desc { color: #374151; margin: 20px 0; }
.qty-select { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-right: 14px; }
.qty-select button { width: 42px; height: 46px; border: none; background: #fff; font-size: 20px; cursor: pointer; }
.qty-select button:hover { background: var(--page); }
.qty-select span { width: 44px; text-align: center; font-weight: 600; }
.detail-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.features li { display: flex; gap: 10px; align-items: center; color: #374151; }
.features li::before { content: "✓"; color: #10b981; font-weight: 800; }

/* ---- Sélecteur de design (fiche produit) ---- */
.design-picker { margin-top: 24px; }
.design-picker h3 { font-size: 17px; margin: 0 0 4px; }
.country-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.country-chip {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: .15s;
}
.country-chip:hover { border-color: var(--primary); color: var(--primary); }
.country-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.design-soon {
  grid-column: 1 / -1; padding: 26px; text-align: center; color: var(--muted);
  font-size: 14px; border: 1px dashed var(--border); border-radius: 10px;
}
.design-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.design-thumb {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--border);
  cursor: pointer; padding: 0; background: #fff; transition: .15s;
}
.design-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.design-thumb:hover { border-color: var(--primary); }
.design-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.25); }
.design-thumb.none { display: grid; place-items: center; font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .design-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Téléversement image personnalisée ---- */
.upload-box { margin-top: 24px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--page); }
.upload-box h3 { font-size: 17px; margin: 0 0 8px; }
.upload-help { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.upload-feedback { margin-top: 12px; }
.upload-err { color: var(--danger); font-size: 14px; margin: 0; line-height: 1.5; }
.upload-ok { color: #10b981; font-size: 14px; margin: 0; }
.upload-notes { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.upload-preview { margin-top: 12px; }
.upload-preview-img { max-width: 200px; width: 100%; border-radius: 12px; border: 1px solid var(--border); display: block; }

/* ---- Politique retours / livraison ---- */
.policy-note {
  margin-top: 18px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--page); font-size: 13.5px; color: #374151; line-height: 1.6;
}
.policy-note strong { color: var(--text); display: block; margin-bottom: 4px; }
.policy-note a { color: var(--primary); font-weight: 500; }
.policy-banner {
  margin: 16px 0 28px; padding: 18px 20px; border-radius: var(--radius);
  background: #eef2ff; color: #3730a3; font-size: 15px; line-height: 1.65;
}
.policy-banner strong { display: block; margin-bottom: 6px; color: #312e81; font-size: 16px; }
.policy-section { margin-top: 28px; }
.policy-section h2 { font-size: 22px; margin: 0 0 12px; }
.policy-section h3 { font-size: 17px; margin: 22px 0 8px; }
.policy-section p { color: #374151; margin: 0 0 10px; line-height: 1.7; }
.policy-section ul { color: #374151; padding-left: 20px; margin: 0 0 12px; line-height: 1.7; }
.policy-section li { margin-bottom: 4px; }

/* ---- Tiroir panier ---- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: .25s; z-index: 60;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw;
  background: #fff; z-index: 70; transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 18px 20px; }
.cart-empty { text-align: center; color: var(--muted); margin-top: 50px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 64px; height: 64px; border-radius: 10px; }
.cart-line-info strong { font-size: 15px; }
.cart-line-info .muted { display: block; font-size: 13px; margin: 2px 0 6px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid var(--border); background: #fff; border-radius: 7px; cursor: pointer; font-size: 16px; line-height: 1; }
.qty-btn:hover { border-color: var(--primary); }
.qty .link-btn { font-size: 13px; margin-left: 6px; }
.cart-line-total { font-size: 15px; }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); }
.cart-row.total { color: var(--text); font-weight: 700; font-size: 18px; margin: 12px 0 16px; }

/* ---- Checkout ---- */
.checkout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; padding: 30px 0 70px; align-items: start; }
.checkout h1 { font-size: 32px; margin: 18px 0 22px; }
.form-card, .summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.summary-card { position: sticky; top: 86px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; outline: none; transition: border .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 13px; margin-top: 5px; display: none; }
.field.invalid .err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.summary-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-line img { width: 48px; height: 48px; border-radius: 8px; }
.summary-line .n { flex: 1; font-size: 14px; }
.summary-line .n span { color: var(--muted); display: block; font-size: 12px; }
.confirm { text-align: center; padding: 80px 20px; }
.confirm .check { width: 84px; height: 84px; border-radius: 50%; background: #10b981; color: #fff; font-size: 44px; display: grid; place-items: center; margin: 0 auto 24px; }
.confirm h1 { font-size: 34px; margin: 0 0 10px; }

/* ---- Compte / Auth ---- */
.auth-wrap { display: grid; place-items: center; padding: 50px 0 70px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { margin: 0 0 16px; font-size: 28px; }
.tabs { display: flex; gap: 6px; background: var(--page); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.tab { flex: 1; border: none; background: none; padding: 10px; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 600; color: var(--muted); }
.tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.auth-error { color: var(--danger); font-size: 14px; min-height: 18px; margin: 4px 0 10px; }
.auth-sep { text-align: center; position: relative; margin: 20px 0; color: var(--muted); font-size: 13px; }
.auth-sep::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-sep span { background: #fff; padding: 0 12px; position: relative; }
.account-head { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; gap: 16px; flex-wrap: wrap; }
.account-head h1 { margin: 0; font-size: 30px; }
.order-card { margin-bottom: 16px; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-status { font-size: 12px; font-weight: 700; color: var(--accent); background: #fff7ed; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.order-items { margin: 0; padding-left: 18px; color: #374151; font-size: 14px; }
code { background: var(--page); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* ---- Page simple (contact / admin) ---- */
.page-narrow { max-width: 680px; margin: 0 auto; padding: 40px 0 70px; }
.page-narrow h1 { font-size: 32px; margin: 0 0 8px; }
.admin-log { background: var(--page); border-radius: 10px; padding: 14px; font-size: 14px; max-height: 320px; overflow: auto; margin-top: 16px; }
.admin-log div { padding: 3px 0; }

/* ---- Toast ---- */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 90;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Pied de page ---- */
footer { background: var(--bg); color: #c8cbd3; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 56px 0 30px; }
footer .brand { color: #fff; }
footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: #c8cbd3; font-size: 14px; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1f232b; padding: 18px 0; text-align: center; font-size: 13px; color: #8b909b; }

/* ---- Tableau de bord stats (admin) ---- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.stats-grid .stat { background: var(--page); border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; text-align: center; }
.stats-grid .stat b { display: block; font-size: 22px; color: var(--text); letter-spacing: -.5px; }
.stats-grid .stat span { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Pop-up promo (BIENVENUE10) ---- */
.promo-pop { position: fixed; inset: 0; z-index: 250; background: rgba(17,24,39,.55); display: grid; place-items: center; padding: 20px; animation: promoFade .25s ease; }
@keyframes promoFade { from { opacity: 0; } to { opacity: 1; } }
.promo-card { position: relative; background: #fff; border-radius: 20px; padding: 30px 26px 24px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.32); animation: promoPopIn .3s ease; }
@keyframes promoPopIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.promo-x { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; }
.promo-emoji { font-size: 46px; line-height: 1; }
.promo-card h3 { margin: 10px 0 6px; font-size: 22px; letter-spacing: -.5px; }
.promo-card > p { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.promo-code { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--page); border: 2px dashed var(--primary); border-radius: 12px; padding: 10px 12px; margin: 0 0 16px; }
.promo-code span { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--primary); }
.promo-copy { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.promo-copy:hover { filter: brightness(1.08); }
.promo-note { font-size: 12px !important; margin: 10px 0 0 !important; }

/* Rappel du code promo dans le panier + au paiement */
.cart-promo { background: linear-gradient(135deg,#ede9fe,#e0e7ff); border: 1px dashed var(--primary); border-radius: 10px; padding: 9px 12px; font-size: 13px; text-align: center; color: #4338ca; margin-bottom: 14px; }
.cart-promo b { color: var(--primary); }
.checkout-promo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: linear-gradient(135deg,#ede9fe,#e0e7ff); border: 1px dashed var(--primary); border-radius: 12px; padding: 12px 16px; margin-top: 20px; font-size: 15px; color: #4338ca; }
.checkout-promo b { color: var(--primary); font-size: 16px; letter-spacing: .5px; }
.checkout-promo span { width: 100%; font-size: 12px; color: var(--muted); }

/* ---- Galerie de réalisations ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { border: none; padding: 0; margin: 0; background: var(--page); border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.07); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.lightbox[hidden] { display: none !important; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: fixed; top: 18px; right: 22px; background: rgba(255,255,255,.15); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ============ Tableau de bord admin (menu + contenu) ============ */
body.admin-dashboard #nova-header,
body.admin-dashboard .wa-float,
body.admin-dashboard .cookie-banner,
body.admin-dashboard footer { display: none !important; }

.admin-auth[hidden], .admin-shell[hidden] { display: none !important; }
.admin-auth { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.admin-auth .form-card { width: 100%; max-width: 400px; }

.admin-shell { display: flex; min-height: 100vh; align-items: stretch; }
.admin-sidebar { width: 240px; flex-shrink: 0; background: #0f1320; color: #e5e7eb; display: flex; flex-direction: column; padding: 22px 16px; }
.admin-brand { font-size: 22px; color: #fff; margin: 0 8px 22px; }
.admin-brand span { color: var(--primary); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; color: #c8cbd3; font-size: 15px; font-weight: 500; padding: 11px 14px; border-radius: 10px; cursor: pointer; transition: .15s; font-family: inherit; }
.admin-nav-item span { font-size: 17px; }
.admin-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-item.active { background: var(--primary); color: #fff; }
.admin-sidebar-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; margin-top: 14px; font-size: 13px; }
.admin-who-line { color: #c8cbd3; margin-bottom: 6px; word-break: break-all; }
.admin-sidebar-foot a { color: #fca5a5; }

.admin-content { flex: 1; min-width: 0; padding: 30px 34px; background: var(--page); }
.admin-h { margin: 0 0 20px; font-size: 26px; letter-spacing: -.5px; }

@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; overflow-x: auto; }
  .admin-brand { display: none; }
  .admin-nav { flex-direction: row; gap: 6px; flex: 1; }
  .admin-nav-item { width: auto; white-space: nowrap; padding: 9px 13px; font-size: 14px; }
  .admin-sidebar-foot { border-top: none; padding-top: 0; margin-top: 0; flex-shrink: 0; }
  .admin-who-line { display: none; }
  .admin-content { padding: 20px 16px; }
  .admin-h { font-size: 22px; }
}

/* ---- Graphiques du tableau de bord (admin) ---- */
.charts-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.chart-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.chart-box h4 { margin: 0 0 12px; font-size: 14px; color: var(--text); }
.chart-box.chart-wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .charts-wrap { grid-template-columns: 1fr; } }

/* ---- Lignes de commande (admin) ---- */
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-row:last-child { border-bottom: none; }
.order-status { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; cursor: pointer; flex-shrink: 0; }

/* ---- Bouton WhatsApp flottant ---- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 150; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37,211,102,.45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }
body.cookie-open .wa-float { bottom: 104px; }
@media (max-width: 560px) { .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; } body.cookie-open .wa-float { bottom: 152px; } }

/* ---- Bandeau cookies (RGPD) ---- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 960px; margin: 0 auto; background: #111827; color: #e5e7eb; border-radius: 14px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.28); font-size: 14px; }
.cookie-banner a { color: #c7d2fe; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; } .cookie-actions { justify-content: center; } }

/* Retour visuel quand la maquette change (effet « pop ») */
@keyframes mediaPop { 0% { transform: scale(.95); } 60% { transform: scale(1.015); } 100% { transform: scale(1); } }
.product-detail .media.flash img { animation: mediaPop .3s ease; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .product-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* Fiche produit : une colonne + aperçu épinglé en haut.
     L'image reste visible pendant qu'on choisit un design (pas besoin de remonter). */
  .product-detail { grid-template-columns: 1fr; gap: 16px; padding: 16px 0 60px; }
  .product-detail .media {
    position: sticky; top: 66px; z-index: 5;
    max-height: 40vh; padding: 8px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17,24,39,.12);
  }
  .product-detail .media img {
    max-height: calc(40vh - 16px); width: auto; max-width: 100%;
    margin: 0 auto; object-fit: contain;
  }
  .product-detail h1 { font-size: 26px; margin: 4px 0 8px; }
  .product-detail .price { font-size: 24px; }
  .product-detail .desc { margin: 14px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .main-nav { display: none; }
  .product-grid, .cat-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .grid-2 { grid-template-columns: 1fr; }

  .product-detail .media { max-height: 34vh; }
  .product-detail .media img { max-height: calc(34vh - 16px); }
  /* Boutons d'achat pleine largeur, faciles à toucher */
  .detail-actions { gap: 10px; margin-top: 18px; }
  .detail-actions .qty-select { margin-right: 0; }
  .detail-actions .btn-lg { flex: 1 1 100%; justify-content: center; }
}
