:root {
  --primary: #0f2a44;
  --accent: #1e88e5;
  --accent-dark: #1565c0;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --border: #e5e7eb;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { background: var(--primary); color: #cbd5e1; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; padding: 8px 16px; gap: 12px; }

/* Header */
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 16px; }
.menu-btn { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; position: relative; padding-right: 54px; }
.menu-btn span { width: 20px; height: 2px; background: var(--text); }
.menu-btn b { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 54px; height: 54px; object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.05) contrast(1.1); }
.logo-text { font-weight: 700; font-size: 20px; color: #1b2559; line-height: 1.05; white-space: nowrap; }
.logo-text b { color: #36b39b; font-weight: 700; }
.logo-text small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: #6b7280; margin-top: 4px; }
.logo.light .logo-img { mix-blend-mode: normal; background: #fff; border-radius: 12px; padding: 4px; }
.logo.light .logo-text { color: #fff; }
.logo.light .logo-text small { color: #94a3b8; }
.search { flex: 1; display: flex; border: 2px solid var(--border); border-radius: 30px; overflow: hidden; }
.search input { flex: 1; border: none; padding: 10px 18px; font: inherit; outline: none; min-width: 0; }
.search button { padding: 0 18px; background: var(--accent); color: #fff; }
.header-actions { display: flex; gap: 8px; }
.icon-btn { position: relative; font-size: 22px; width: 44px; height: 44px; border-radius: 50%; }
.icon-btn:hover { background: var(--bg-alt); }
.badge { position: absolute; top: 2px; right: 0; background: var(--accent); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; }

.nav { border-top: 1px solid var(--border); position: relative; }
.nav-inner { display: flex; gap: 20px; padding: 0 16px; }
.nav-item > a { display: block; padding: 13px 0; font-size: 13px; font-weight: 600; white-space: nowrap; text-transform: uppercase; }
.nav-item > a:hover, .nav-item > a.active { color: var(--accent); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 16px 30px rgba(15,42,68,.12); opacity: 0; visibility: hidden; transition: opacity .15s; max-height: 70vh; overflow-y: auto; }
.nav-item:hover .mega { opacity: 1; visibility: visible; }
.mega-inner { max-width: 1240px; margin: 0 auto; padding: 24px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 28px; }
.mega-col a { display: block; font-size: 13px; color: var(--muted); padding: 3px 0; }
.mega-col a:hover { color: var(--accent); }
.mega-col .mega-title { color: var(--primary); font-weight: 600; text-transform: uppercase; font-size: 13px; margin-bottom: 4px; }

/* Icônes catégories */
.ico { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -4px; margin-right: 8px; }
.nav-item > a .ico { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.mega-col .mega-title { display: flex; align-items: center; }
.mega-col a { display: flex; align-items: center; }
.mega-col a .ico { width: 15px; height: 15px; margin-right: 7px; color: #94a3b8; }
.mega-col a:hover .ico, .mega-col .mega-title .ico { color: var(--accent); }
.mega-col .mega-title .ico { width: 18px; height: 18px; }
.side-tree summary a, .side-tree .leaf { display: flex; align-items: center; }
.side-tree .ico { color: var(--accent); }
.side-tree .leaf .ico { width: 15px; height: 15px; color: #94a3b8; }

/* Side menu */
.side-menu { position: fixed; top: 0; left: 0; height: 100%; width: min(340px, 90%); background: #fff; z-index: 100; transform: translateX(-100%); transition: transform .3s; display: flex; flex-direction: column; }
.side-menu.open { transform: none; }
.side-tree { overflow-y: auto; padding: 8px 0 24px; }
.side-tree details { padding-left: 14px; }
.side-tree > details { padding-left: 0; border-bottom: 1px solid var(--border); }
.side-tree summary { list-style: none; display: flex; align-items: center; padding: 8px 20px 8px 20px; cursor: pointer; }
.side-tree summary::-webkit-details-marker { display: none; }
.side-tree summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 18px; }
.side-tree details[open] > summary::after { content: "−"; }
.side-tree > details > summary { font-weight: 600; text-transform: uppercase; font-size: 14px; padding: 12px 20px; }
.side-tree summary a, .side-tree .leaf { font-size: 14px; }
.side-tree .leaf { display: block; padding: 6px 20px 6px 34px; color: var(--muted); }
.side-tree a:hover { color: var(--accent); }

.breadcrumb { text-align: center; font-size: 13px; color: var(--muted); margin: -24px 0 28px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb:empty { display: none; }

/* Hero */
.hero { position: relative; height: 480px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; background: var(--a); color: #fff; display: flex; align-items: center; }
.slide::after { display: none; content: "TECHCONNECT"; position: absolute; right: -40px; bottom: -30px; font-size: 140px; font-weight: 700; opacity: .08; transform: rotate(-12deg); pointer-events: none; }
.slide.active { opacity: 1; z-index: 1; }
.slide-inner { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; }

/* Photos du slider */
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.08); transition: transform 7s ease-out; }
.slide.active .slide-bg { transform: scale(1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--a) 0%, color-mix(in srgb, var(--a) 85%, transparent) 38%, color-mix(in srgb, var(--a) 15%, transparent) 75%, transparent 100%); }
.slide-text { text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.slide .eyebrow, .slide h1, .slide p, .slide .btn { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.slide.active .eyebrow, .slide.active h1, .slide.active p, .slide.active .btn { opacity: 1; transform: none; }
.slide.active h1 { transition-delay: .1s; } .slide.active p { transition-delay: .2s; } .slide.active .btn { transition-delay: .3s; }
.hero-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-badges span { background: rgba(15,23,42,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.35); padding: 10px 18px; border-radius: 30px; font-weight: 600; font-size: 14px; opacity: 0; transform: translateX(20px); transition: opacity .6s, transform .6s; }
.hero-badges span::before { content: "✓ "; color: #4ade80; }
.slide.active .hero-badges span { opacity: 1; transform: none; }
.slide.active .hero-badges span:nth-child(2) { transition-delay: .15s; }
.slide.active .hero-badges span:nth-child(3) { transition-delay: .3s; }
.credit { position: absolute; right: 12px; bottom: 8px; z-index: 3; font-size: 11px; color: rgba(255,255,255,.75); }
.credit:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .slide-bg, .slide *, .hero-badges span { transition: none !important; } }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; opacity: .9; }
.slide h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.15; margin: 8px 0 12px; max-width: 640px; }
.slide p { max-width: 520px; opacity: .95; }
.btn { display: inline-block; margin-top: 24px; background: #fff; color: var(--primary); padding: 12px 28px; border-radius: 30px; font-weight: 600; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); }
.dots button.active { background: #fff; width: 28px; border-radius: 5px; }

/* Sections */
.section { padding: 60px 0; }
/* Le header est collant : on garde le titre visible après un défilement automatique */
.section { scroll-margin-top: 110px; }
@media (max-width: 900px) { .section { scroll-margin-top: 130px; } }
.section.alt { background: var(--bg-alt); }
.section-title { text-align: center; text-transform: uppercase; font-size: 26px; margin-bottom: 36px; position: relative; }
.section-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--accent); margin: 10px auto 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(15,42,68,.1); transform: translateY(-3px); }
.card-img { height: 160px; border-radius: 8px; display: grid; place-items: center; font-size: 64px; margin-bottom: 14px; background: var(--bg-alt); }
.card-img svg { width: 78%; height: 78%; }
.card-wish { position: absolute; top: 24px; right: 24px; font-size: 20px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.card-wish.on { color: #ef4444; }
.card-name { font-size: 14px; font-weight: 500; flex: 1; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.card-price { font-weight: 700; color: var(--accent-dark); font-size: 17px; margin-bottom: 4px; }
.card-stock { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.card-stock { display: inline-flex; align-items: center; gap: 6px; }
.card-stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.card-stock.in { color: #16a34a; }
.card-stock.out { color: #dc2626; }
.card-img { position: relative; overflow: hidden; }
.ribbon { position: absolute; top: 12px; left: -34px; transform: rotate(-45deg); background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 36px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.card-img .ico, .line-img .ico { margin: 0; width: 52%; height: 52%; color: var(--primary); stroke-width: 1.4; }
.add-btn { background: var(--primary); color: #fff; padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; transition: background .2s; }
.add-btn:hover { background: var(--accent); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.cat { background: #fff; border-radius: var(--radius); padding: 26px 14px; text-align: center; border-bottom: 4px solid var(--c); transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.cat-ico { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); transition: background .2s, color .2s; }
.cat-ico .ico { width: 36px; height: 36px; margin: 0; }
.cat:hover .cat-ico { background: var(--c); color: #fff; }
.cat h3 { text-transform: uppercase; font-size: 15px; margin: 14px 0 2px; }
.cat p { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cat em { font-style: normal; font-size: 13px; color: var(--c); font-weight: 600; text-transform: uppercase; }

/* Tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tabs button { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; text-transform: uppercase; }
.tabs button.active, .tabs button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Features */
.features { background: var(--primary); color: #fff; padding: 40px 0; }
.features-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature { display: flex; gap: 14px; align-items: center; }
.feature span { font-size: 34px; }
.feature h4 { text-transform: uppercase; font-size: 15px; }
.feature p { font-size: 13px; color: #cbd5e1; }

/* Footer */
.footer { background: #0a1d30; color: #cbd5e1; padding-top: 50px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; }
.footer p { margin-top: 14px; font-size: 14px; }
.footer h4 { color: #fff; margin-bottom: 14px; text-transform: uppercase; font-size: 15px; }
.footer ul { list-style: none; font-size: 14px; display: grid; gap: 8px; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 18px; font-size: 13px; }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); background: #fff; z-index: 100; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.close { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border); }
.line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.line-img { font-size: 30px; width: 54px; height: 54px; background: var(--bg-alt); border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.line-img svg { width: 80%; height: 80%; }
.line-info { flex: 1; font-size: 13px; }
.line-info strong { display: block; color: var(--accent-dark); }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 4px; }
.remove { color: var(--muted); font-size: 16px; }
.total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.ship-note { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.checkout { width: 100%; background: var(--accent); color: #fff; padding: 12px; border-radius: 6px; font-weight: 600; text-transform: uppercase; }

.card-name a:hover { color: var(--accent); }

/* Fiche produit */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { position: relative; background: #fff; border-radius: 16px; width: min(960px, 100%); max-height: 92vh; overflow-y: auto; transform: translateY(20px); transition: transform .25s; }
.modal.open .modal-box { transform: none; }
.modal-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt); }
.modal-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; padding: 28px; }
.modal-img { border-radius: 12px; display: grid; place-items: center; aspect-ratio: 1; position: sticky; top: 0; }
.modal-img svg { width: 70%; height: 70%; }
.modal-img .ico { margin: 0; width: 46%; height: 46%; color: var(--primary); stroke-width: 1; }
.modal-crumb { font-size: 12px; color: var(--muted); margin-bottom: 6px; padding-right: 40px; }
.modal-info h2 { font-size: 21px; line-height: 1.3; margin-bottom: 6px; padding-right: 30px; }
.modal-info h3 { font-size: 14px; text-transform: uppercase; margin: 18px 0 8px; color: var(--primary); }
.modal-brand { font-size: 14px; color: var(--muted); }
.modal-price { font-size: 28px; font-weight: 700; color: var(--accent-dark); margin: 10px 0 2px; }
.modal-desc { font-size: 14px; color: #374151; }
.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.specs th { width: 40%; color: var(--muted); font-weight: 500; background: var(--bg-alt); }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.modal-actions .add-btn { flex: 1; padding: 14px; }
.wish-btn { border: 1px solid var(--border); border-radius: 6px; padding: 0 16px; font-size: 13px; font-weight: 600; }
.wish-btn.on { color: #ef4444; border-color: #fecaca; }
.modal-ship { font-size: 12px; color: var(--muted); margin-top: 14px; }
@media (max-width: 760px) {
  .modal-body { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 18px; }
  .modal-img { aspect-ratio: 16 / 10; }
  .modal-gallery { position: static; }
}

/* Voir plus */
.more-wrap { text-align: center; margin-top: 28px; }
.more-btn { border: 2px solid var(--primary); color: var(--primary); padding: 10px 28px; border-radius: 30px; font-weight: 600; }
.more-btn:hover { background: var(--primary); color: #fff; }

/* Photos produits */
.card-img.has-photo, .modal-img.has-photo { background: #fff !important; }
/* Les photos remplissent leur cadre sans être coupées, quel que soit leur format */
.card-img, .line-img, .modal-img, .recap-img { position: relative; }
.card-img img, .line-img img, .modal-img img, .recap-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; font-size: 12px; color: var(--muted); }
.modal-gallery { display: grid; gap: 10px; align-content: start; position: sticky; top: 0; }
.modal-gallery .modal-img { position: relative; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.thumb { flex: 0 0 64px; height: 64px; border-radius: 8px; border: 2px solid var(--border); background: #fff; padding: 4px; transition: border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.active, .thumb:hover { border-color: var(--brand-teal); }
.card-img.has-photo img { padding: 10px; }
.modal-img.has-photo img { padding: 16px; }
.line-img img, .recap-img img { padding: 3px; }
.card-price del, .modal-price del { font-size: .65em; color: var(--muted); font-weight: 500; margin-left: 6px; }

/* Commande */
.checkout-form { display: grid; gap: 12px; }
.checkout-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.checkout-form input, .checkout-form textarea { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; resize: vertical; }
.checkout-form input:focus, .checkout-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.pay-note { font-size: 12px; color: var(--muted); background: var(--bg-alt); padding: 10px 12px; border-radius: 8px; }
.form-error { color: #dc2626; font-size: 13px; min-height: 1em; }
.total-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.checkout:disabled { opacity: .6; cursor: wait; }
.back-link { width: 100%; margin-top: 10px; font-size: 13px; color: var(--muted); }
.order-done { text-align: center; padding: 30px 10px; display: grid; gap: 8px; }
.order-done span { font-size: 48px; }
.order-done h4 { font-size: 18px; }

/* Commander : WhatsApp ou formulaire */
:root { --wa: #25d366; --wa-dark: #128c4b; --brand-teal: #2a9d86; }
.order-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.order-btn, .wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; border-radius: 999px; transition: transform .2s, box-shadow .2s, background-position .4s; }
.order-btn svg, .wa-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.order-btn { padding: 11px 16px; color: #fff; background: linear-gradient(110deg, var(--primary) 0%, #1f4f7a 45%, var(--brand-teal) 100%); background-size: 200% 100%; box-shadow: 0 6px 16px -6px rgba(15,42,68,.55); }
.order-btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(42,157,134,.7); }
.order-btn:active { transform: translateY(0); }

.wa-btn { position: relative; color: #fff; background: var(--wa); box-shadow: 0 6px 16px -6px rgba(37,211,102,.7); }
.wa-btn:hover { background: var(--wa-dark); transform: translateY(-2px); }
/* Sur les cartes : WhatsApp en bouton rond avec un halo */
.card .wa-btn { width: 42px; height: 42px; padding: 0; }
.card .wa-btn span { display: none; }
.card .wa-btn svg { width: 22px; height: 22px; }
.card .wa-btn::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--wa); opacity: 0; animation: wa-ring 2.4s ease-out infinite; }
@keyframes wa-ring { 0% { transform: scale(.85); opacity: .6; } 70%, 100% { transform: scale(1.25); opacity: 0; } }

/* Fiche produit : deux grands boutons */
.modal-actions { flex-direction: column; align-items: stretch; }
.order-actions.lg { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.modal-actions .wish-btn { align-self: flex-start; padding: 9px 16px; }
.order-actions.lg .order-btn, .order-actions.lg .wa-btn { padding: 15px 18px; font-size: 15px; }
.order-actions.lg .wa-btn { background: #fff; color: var(--wa-dark); border: 2px solid var(--wa); box-shadow: none; }
.order-actions.lg .wa-btn:hover { background: var(--wa); color: #fff; }

/* Panier / formulaire */
.checkout { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; }
.checkout svg { width: 18px; height: 18px; }
.wa-wide { width: 100%; margin-top: 10px; padding: 12px; background: #fff; color: var(--wa-dark); border: 2px solid var(--wa); box-shadow: none; }
.wa-wide:hover { background: var(--wa); color: #fff; }
.modal-actions .wish-btn { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .card .wa-btn::after { animation: none; } }
.line .add-btn { padding: 8px 10px; font-size: 11px; }
.admin-tag { display: inline-block; vertical-align: middle; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #b45309; background: #fef3c7; padding: 1px 6px; border-radius: 4px; }
.admin-bar { background: #fef3c7; color: #92400e; font-size: 13px; text-align: center; padding: 6px 16px; }
.admin-bar a { font-weight: 600; text-decoration: underline; }

.recap { background: var(--bg-alt); border-radius: 10px; padding: 12px; margin-bottom: 16px; }
.recap-title { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.back-link.inline { width: auto; margin: 0; color: var(--accent); font-weight: 600; }
.recap-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.recap-line + .recap-line { border-top: 1px solid var(--border); }
.recap-img { width: 36px; height: 36px; flex-shrink: 0; background: #fff; border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.recap-img svg { width: 80%; height: 80%; }
.recap-img .ico { margin: 0; color: var(--primary); }
.recap-name { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recap-qty { font-weight: 600; color: var(--muted); }

/* Fiche technique longue : aperçu puis « Voir tout » */
.specs.collapsed tr.extra { display: none; }
.specs-toggle { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--brand-teal); padding: 6px 0; }
.specs-toggle:hover { text-decoration: underline; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px); background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 14px; transition: transform .3s; z-index: 200; }
.toast.show { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 900px) {
  .hero { height: 440px; }
  .slide-inner { grid-template-columns: 1fr; }
  .hero-badges { display: none; }
  .slide::before { background: linear-gradient(90deg, var(--a) 0%, color-mix(in srgb, var(--a) 75%, transparent) 100%); }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .search { order: 5; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .topbar-right { display: none; }
  .hero { height: 360px; }
  .footer-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card .order-actions { grid-template-columns: minmax(0, 1fr) 38px; gap: 6px; }
  .card .order-btn { padding: 10px 6px; font-size: 12.5px; min-width: 0; }
  .card .order-btn svg { display: none; }
  .card .wa-btn { width: 38px; height: 38px; }
  .card .wa-btn svg { width: 20px; height: 20px; }
  .card { padding: 10px; }
  .card-img { height: 110px; font-size: 44px; }
  .card-wish { top: 16px; right: 16px; }
  .menu-btn { padding-right: 0; }
  .menu-btn b { display: none; }
  .header-inner { gap: 10px; }
  .logo { gap: 6px; }
  .logo-img { width: 38px; height: 38px; }
  .logo-text { font-size: 14px; }
  .logo-text small { display: none; }
  .header-actions { gap: 0; }
  .icon-btn { width: 40px; height: 40px; font-size: 20px; }
  .slide h1 { overflow-wrap: anywhere; }
}

/* Très petits écrans : une carte par ligne */
@media (max-width: 340px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile : la galerie défile avec la fiche (pas de photo collée en haut) */
@media (max-width: 760px) {
  .modal-gallery { position: static; }
}
