/* =====================================================================
   Voltora — Thème front (boutique publique)
   ===================================================================== */

/* -------- Annonce / topbar -------- */
.announce { background: var(--navy-900); color: #cdd7ee; font-size: .82rem; text-align: center; padding: 8px 12px; }
.announce strong { color: #fff; }

/* -------- En-tête -------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), #1f4fd6); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.brand-mark svg { width: 22px; height: 22px; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.main-nav a { padding: 8px 14px; border-radius: var(--r-full); color: var(--ink-2); font-weight: 500; }
.main-nav a:hover, .main-nav a.active { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: var(--r-full); border: 1px solid transparent; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.cart-count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--r-full); background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.nav-toggle { display: none; }

/* -------- Hero -------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #1b2c52 0%, transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 84px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(47, 107, 255, .35), transparent 60%); filter: blur(8px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero p { color: #c7d2e8; font-size: 1.1rem; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 28px; margin-top: 38px; }
.hero-stats .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.hero-stats .lbl { color: #9fb0d0; font-size: .85rem; }
.hero-card { background: linear-gradient(160deg, #16223e, #101a30); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-lg); }
.hero-card img { border-radius: var(--r-lg); }

/* -------- Bandeau d'avantages -------- */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp-item { display: flex; gap: 12px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.usp-item .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; }
.usp-item strong { display: block; font-size: .95rem; }
.usp-item span { color: var(--muted); font-size: .82rem; }

/* -------- Catégories -------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .15s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.cat-card img { aspect-ratio: 1; object-fit: cover; }
.cat-card .cap { padding: 12px; text-align: center; font-weight: 600; font-size: .9rem; color: var(--ink); }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* -------- Section header -------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 20px; }
.section-head p { margin: 6px 0 0; }

/* -------- Carte produit -------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.product-media { position: relative; aspect-ratio: 1; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.product-fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: var(--r-full); background: rgba(255, 255, 255, .92); border: none; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.product-fav:hover { color: var(--danger); }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product-title { font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.35; }
.product-title a:hover { color: var(--brand-700); text-decoration: none; }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.add-btn { width: 44px; height: 44px; border-radius: var(--r); background: var(--brand); color: #fff; border: none; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .15s; }
.add-btn:hover { background: var(--brand-700); }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* -------- Boutique (listing + filtres) -------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 18px; }
.filter-box h3 { font-size: 1rem; margin-bottom: 14px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.filter-list a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: var(--r); color: var(--ink-2); }
.filter-list a:hover, .filter-list a.active { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.filter-list .count { color: var(--muted); font-size: .8rem; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.page-hero { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 56px 0; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c7d2e8; max-width: 620px; margin-inline: auto; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } .shop-sidebar { position: static; } }

/* -------- Pied de page -------- */
.site-footer { background: var(--navy-900); color: #aab6d0; padding: 56px 0 26px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer a { color: #aab6d0; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #6f7ea0; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: var(--r-full); background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.pay-methods { display: flex; align-items: center; gap: 10px; opacity: .85; }
.pay-methods .chip { background: rgba(255, 255, 255, .1); border-radius: 6px; padding: 4px 9px; font-size: .72rem; font-weight: 600; color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .hero-grid { grid-template-columns: 1fr; } .usp { grid-template-columns: 1fr 1fr; } }

/* -------- Panier -------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 88px; height: 88px; border-radius: var(--r); object-fit: cover; background: var(--surface-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-full); overflow: hidden; }
.qty button { width: 34px; height: 36px; border: none; background: #fff; cursor: pointer; color: var(--ink-2); }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 42px; text-align: center; border: none; font: inherit; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-2); }
.summary-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 1.2rem; font-weight: 700; font-family: var(--font-display); }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

/* -------- Fiche produit -------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; border: 1px solid var(--line); cursor: pointer; }
.opt-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.opt-swatch { padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r-full); cursor: pointer; background: #fff; font-size: .9rem; }
.opt-swatch.active { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.breadcrumb svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }

/* -------- Newsletter -------- */
.newsletter { background: linear-gradient(135deg, var(--brand), #1f4fd6); border-radius: var(--r-xl); padding: 44px; color: #fff; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 0; }
.newsletter input { flex: 1; border-radius: var(--r-full); border: none; padding: 13px 18px; }

/* -------- Cookie banner -------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; background: var(--navy-900); color: #e5ecfb; border-radius: var(--r-lg); padding: 16px 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-lg); max-width: 820px; margin-inline: auto; }
.cookie-banner p { margin: 0; font-size: .88rem; }

/* -------- Recherche header (autocomplétion) + favoris -------- */
.header-search { position: relative; width: 300px; }
.header-search input { width: 100%; padding: 9px 14px 9px 38px; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface-2); font: inherit; font-size: .9rem; }
.header-search input:focus { outline: none; border-color: var(--brand-300); box-shadow: 0 0 0 4px var(--brand-50); background: #fff; }
.header-search .hs-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: inline-flex; }
.header-search .hs-ic svg { width: 17px; height: 17px; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; max-height: 70vh; overflow: auto; }
.search-results.open { display: block; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r); color: var(--ink); }
.search-item:hover { background: var(--surface-2); text-decoration: none; }
.search-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
.search-item .si-name { flex: 1; font-size: .9rem; }
.search-item .si-price { font-weight: 700; color: var(--brand-700); font-size: .9rem; white-space: nowrap; }
.search-all { display: block; text-align: center; padding: 10px; font-weight: 600; color: var(--brand-700); border-top: 1px solid var(--line-2); margin-top: 4px; }
.search-all:hover { text-decoration: none; background: var(--brand-50); border-radius: var(--r); }
.search-empty { padding: 16px; text-align: center; color: var(--muted); font-size: .9rem; }
.product-fav.active { color: var(--danger); }
.product-fav.active svg { fill: var(--danger); }
.hs-mobile { display: none; }
@media (max-width: 1040px) {
    .header-search { display: none; }
    .hs-mobile { display: grid; }
}

/* -------- Menu mobile -------- */
@media (max-width: 860px) {
    .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 4px; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: grid; }
    .hero-stats { gap: 18px; }
}
