/* =========================================================
   novea — feuille de style
   Couleurs et réglages globaux : modifiez les variables
   ci-dessous pour changer l'identité du site.
   ========================================================= */

:root {
  --prim: #0d52bf;         /* couleur principale de l'enseigne */
  --prim-dark: #09409c;
  --promo: #e2001a;        /* réservé aux promotions (badges, prix remisés) */
  --navy: #151b26;         /* barres sombres (nav, footer) */
  --ink: #1d2430;
  --text: #22262e;
  --muted: #6b7280;
  --line: #e3e6ea;
  --bg-soft: #f4f5f7;
  --green: #0a8a3c;
  --orange: #d97706;
  --yellow: #ffd500;
  --star: #ffb400;
  --blue: #0060bf;
  --radius: 8px;
  --container: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font: 14px/1.45 var(--font); color: var(--text); background: #fff; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--prim); color: #fff; font-weight: 700; font-size: 14px;
  padding: 0 20px; height: 42px; border-radius: 6px; transition: background .15s;
}
.btn:hover { background: var(--prim-dark); }
.btn svg { width: 18px; height: 18px; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 0 18px; height: 42px; border-radius: 6px; background: #fff; transition: background .15s;
}
.btn-outline:hover { background: var(--bg-soft); }
.btn-outline svg { width: 18px; height: 18px; }
.btn-white {
  display: inline-flex; align-items: center; background: #fff; color: var(--ink);
  font-weight: 700; font-size: 14px; padding: 0 20px; height: 42px; border-radius: 6px;
}
.btn-white:hover { background: #f1f2f4; }

/* =========================================================
   HEADER
   ========================================================= */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topbar-left { display: flex; gap: 18px; }
.topbar a:hover { color: var(--prim); }
.topbar-ship { color: var(--green); font-weight: 700; }
.topbar-right { font-weight: 500; }

.header-main { position: relative; z-index: 60; }
.header-main .container { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { flex-shrink: 0; }
.logo-box {
  display: inline-block; background: var(--prim); color: #fff; font-weight: 900;
  font-size: 27px; letter-spacing: -1px; line-height: 1; padding: 8px 12px 10px; border-radius: 7px;
}

.search { position: relative; flex: 1; max-width: 620px; display: flex; align-items: center; background: var(--bg-soft); border: 2px solid var(--line); border-radius: 24px; height: 44px; padding: 0 4px 0 18px; transition: border-color .15s; }
.search:focus-within { border-color: var(--ink); background: #fff; }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; min-width: 0; }
.search input::placeholder { color: #9aa1ab; }
.search > button { width: 36px; height: 36px; border-radius: 50%; background: var(--prim); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: background .15s; }
.search > button:hover { background: var(--prim-dark); }
.search > button svg { width: 17px; height: 17px; }

/* --- Suggestions de recherche --- */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 90;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(10, 15, 25, .16); padding: 6px; display: none;
}
.search-suggest.open { display: block; }
.sg-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; }
.sg-item:hover, .sg-item.active { background: var(--bg-soft); }
.sg-img { width: 44px; height: 44px; flex-shrink: 0; background: var(--bg-soft); border-radius: 6px; display: grid; place-items: center; color: #9aa4af; }
.sg-img svg { width: 68%; height: 68%; }
.sg-img img.pphoto { max-width: 82%; max-height: 82%; width: auto; height: auto; }
.sg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sg-brand { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sg-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-price { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.sg-price.promo { color: var(--promo); }
.sg-all { display: block; width: 100%; text-align: center; font-size: 13px; font-weight: 700; color: var(--prim); padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px; }
.sg-all:hover { background: var(--bg-soft); }
.sg-empty { padding: 14px; font-size: 13px; color: var(--muted); text-align: center; }

.header-actions { display: flex; gap: 22px; margin-left: auto; }
.action { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.action:hover { color: var(--prim); }
.action-ico { position: relative; display: grid; place-items: center; }
.action-ico svg { width: 24px; height: 24px; }
.cart-badge {
  position: absolute; top: -6px; right: -9px; display: none; place-items: center;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--prim); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1;
}

/* --- Barre de navigation catégories --- */
.mainnav { background: var(--navy); position: relative; z-index: 50; }
.mainnav ul { display: flex; align-items: stretch; }
.mainnav li { position: relative; }
.mainnav li > a {
  display: flex; align-items: center; height: 44px; padding: 0 16px;
  color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.mainnav li > a:hover { background: rgba(255, 255, 255, .09); }
.nav-promo { margin-left: auto; }
.nav-promo > a { background: var(--promo); font-weight: 700; }
.nav-promo > a:hover { background: #b80015; }

.dd {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  background: #fff; min-width: 240px; padding: 10px 0; border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(10, 15, 25, .18); border: 1px solid var(--line); border-top: 0;
}
.dd-wide { min-width: 460px; column-count: 2; column-gap: 0; padding: 10px; }
.dd a { display: block; padding: 8px 18px; font-size: 13.5px; color: var(--text); break-inside: avoid; border-radius: 5px; }
.dd-wide a { padding: 8px 12px; }
.dd a:hover { color: var(--prim); background: var(--bg-soft); }
.dd .dd-all { font-weight: 700; color: var(--ink); }
.has-dd:hover .dd { display: block; }
.dd-wide.dd { display: none; }
.has-dd:hover .dd-wide { display: block; }

/* =========================================================
   ACCUEIL — héro + carrousel
   ========================================================= */
.hero { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin: 20px 0 8px; }

.carousel { position: relative; border-radius: 10px; overflow: hidden; min-height: 330px; }
.slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.25fr 1fr;
  align-items: center; padding: 36px 48px; opacity: 0; pointer-events: none; transition: opacity .45s;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide-content { color: #fff; }
.slide-content .kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .16); padding: 5px 10px; border-radius: 4px; margin-bottom: 14px; }
.slide-content h2 { font-size: 34px; line-height: 1.08; font-weight: 900; margin-bottom: 10px; letter-spacing: -.5px; }
.slide-content p { font-size: 15px; opacity: .92; margin-bottom: 20px; max-width: 420px; }
.slide-art { justify-self: center; color: rgba(255, 255, 255, .9); width: min(240px, 100%); }
.slide-art svg { width: 100%; height: auto; }

.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .22); color: #fff; transition: background .15s;
}
.car-arrow:hover { background: rgba(255, 255, 255, .38); }
.car-arrow.prev { left: 12px; }
.car-arrow.next { right: 12px; }
.car-arrow svg { width: 18px; height: 18px; }
.car-dots { position: absolute; left: 48px; bottom: 20px; display: flex; gap: 7px; z-index: 5; }
.car-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background .15s, width .15s; }
.car-dots button.is-active { background: #fff; width: 22px; border-radius: 5px; }

.side-tiles { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.tile { border-radius: 10px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.tile .tile-kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.tile h3 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.tile p { font-size: 13px; opacity: .85; }
.tile .tile-link { font-size: 13px; font-weight: 700; margin-top: 6px; }
.tile-yellow { background: var(--yellow); color: #221b00; }
.tile-yellow .tile-link { color: #221b00; text-decoration: underline; }
.tile-outline { border: 1.5px solid var(--line); }
.tile-outline .tile-kicker { color: var(--prim); opacity: 1; }
.tile-outline .tile-link { color: var(--prim); }

/* --- Réassurance --- */
.reassure { border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0; }
.reassure li { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.reassure li + li { border-left: 1px solid var(--line); }
.reassure-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #e8effb; color: var(--prim); display: grid; place-items: center; }
.reassure-ico svg { width: 21px; height: 21px; }
.reassure strong { display: block; font-size: 13px; }
.reassure span { font-size: 12px; color: var(--muted); }

/* --- Sections --- */
.section { margin: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.section-head .more { font-size: 13px; font-weight: 700; color: var(--prim); white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

/* --- Rangées défilantes --- */
.row { position: relative; }
.row-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 228px; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px;
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track .card { scroll-snap-align: start; }
.row-arrow {
  position: absolute; top: 110px; transform: translateY(-50%); z-index: 10;
  width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(10, 15, 25, .12);
  display: grid; place-items: center; transition: background .15s;
}
.row-arrow:hover { background: var(--bg-soft); }
.row-arrow.prev { left: -14px; }
.row-arrow.next { right: -14px; }
.row-arrow svg { width: 17px; height: 17px; }

/* --- Carte produit --- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: 0 6px 18px rgba(10, 15, 25, .12); border-color: #d3d8de; }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-badges { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.badge { font-size: 11.5px; font-weight: 800; padding: 3px 7px; border-radius: 4px; line-height: 1.2; }
.b-promo { background: var(--promo); color: #fff; }
.b-new { background: var(--navy); color: #fff; }
.b-top { background: var(--yellow); color: #221b00; }
.fav {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; color: #8b929c;
  transition: color .15s, border-color .15s;
}
.fav:hover { color: var(--promo); border-color: var(--promo); }
.fav.active { color: var(--promo); border-color: var(--promo); }
.fav.active svg path { fill: var(--promo); }
.fav svg { width: 15px; height: 15px; }
.card-img { height: 150px; display: grid; place-items: center; background: #f6f7f9; border-radius: 6px; color: #9aa4af; margin-bottom: 10px; }
.card-img svg { width: 62%; height: 78%; }
.card-brand { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.card-title { font-size: 13.5px; font-weight: 600; line-height: 1.32; min-height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.price { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.price.promo { color: var(--promo); }
.old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.card-stock { font-size: 12px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.card-stock::before { content: "✓ "; }
.card-stock.low { color: var(--orange); }
.card-stock.low::before { content: "! "; font-weight: 800; }
.btn-add {
  position: relative; z-index: 2; margin-top: auto; height: 35px; border-radius: 6px;
  border: 1.5px solid var(--prim); color: var(--prim); font-weight: 700; font-size: 13px;
  transition: background .15s, color .15s;
}
.btn-add:hover { background: var(--prim); color: #fff; }

/* --- Photos produit (les packshots à fond blanc se fondent dans le conteneur) --- */
img.pphoto { object-fit: contain; mix-blend-mode: multiply; }
.card-img img.pphoto { max-width: 86%; max-height: 92%; width: auto; height: auto; }
.gallery-main img.pphoto { max-width: 82%; max-height: 88%; width: auto; height: auto; }
.thumb img.pphoto { max-width: 84%; max-height: 84%; width: auto; height: auto; }
.ci-img img.pphoto { max-width: 80%; max-height: 80%; width: auto; height: auto; }

/* --- Étoiles --- */
.stars { position: relative; display: inline-block; font-size: 13px; line-height: 1; color: #d8dce1; letter-spacing: 1px; }
.stars-fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--star); }

/* --- Univers --- */
.univers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.univers {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: var(--bg-soft); border-radius: var(--radius); padding: 22px 12px 18px;
  font-size: 13.5px; font-weight: 700; color: var(--ink); transition: background .15s;
}
.univers:hover { background: #eaedf1; color: var(--prim); }
.univers-ico { width: 52px; height: 52px; color: #6f7885; }
.univers:hover .univers-ico { color: var(--prim); }
.univers-ico svg { width: 100%; height: 100%; }
.univers-promo { background: #fdeced; color: var(--promo); }
.univers-promo .univers-ico { color: var(--promo); }
.univers-promo:hover { background: #fbdadd; }

/* --- Engagements --- */
.engage { background: var(--navy); border-radius: 10px; padding: 30px 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.engage-item { display: flex; gap: 14px; align-items: flex-start; }
.engage-ico { flex-shrink: 0; width: 26px; height: 26px; color: var(--yellow); margin-top: 2px; }
.engage-ico svg { width: 100%; height: 100%; }
.engage-item h3 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.engage-item p { color: #aab3c0; font-size: 13px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer-newsletter { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 48px; }
.footer-newsletter .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.footer-newsletter h3 { font-size: 18px; font-weight: 800; }
.footer-newsletter p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.footer-newsletter form { display: flex; gap: 8px; }
.footer-newsletter input { width: 300px; max-width: 60vw; height: 42px; border: 1.5px solid var(--line); border-radius: 6px; padding: 0 14px; outline: none; background: #fff; }
.footer-newsletter input:focus { border-color: var(--ink); }

.footer-main { background: var(--navy); color: #aab3c0; }
.footer-main .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 28px; padding-top: 40px; padding-bottom: 36px; }
.footer-brand p { font-size: 13px; margin-top: 14px; line-height: 1.55; max-width: 240px; }
.footer-col h4 { color: #fff; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .1); color: #8792a2; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 18px; flex-wrap: wrap; }
.payments { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.payments span { margin-right: 6px; }
.payments .pay-chip { border: 0; }
.footer-bottom p { font-size: 12px; }

/* =========================================================
   PAGE CATÉGORIE
   ========================================================= */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 14px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--prim); }
.breadcrumb strong { color: var(--text); font-weight: 600; }

.cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cat-head h1 { font-size: 25px; font-weight: 800; letter-spacing: -.4px; }
.cat-head #cat-count { font-size: 13px; color: var(--muted); }

.type-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; background: #fff; transition: border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.cat-layout { display: grid; grid-template-columns: 248px 1fr; gap: 26px; align-items: start; margin-bottom: 30px; }

.filters-toggle { display: none; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 8px; }
.f-group { padding: 14px 0; }
.f-group + .f-group { border-top: 1px solid var(--line); }
.f-group h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
#f-brands { max-height: 216px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.f-group label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; cursor: pointer; }
.f-group label em { font-style: normal; color: var(--muted); font-size: 12px; }
.f-group input[type="checkbox"], .f-group input[type="radio"] { accent-color: var(--prim); width: 15px; height: 15px; }
.f-group label.deal-label { color: var(--promo); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.f-group label.deal-label input { accent-color: var(--promo); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input { width: 74px; height: 34px; border: 1.5px solid var(--line); border-radius: 6px; padding: 0 8px; outline: none; }
.price-inputs input:focus { border-color: var(--ink); }
.price-inputs button { height: 34px; padding: 0 12px; border-radius: 6px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 13px; }
.price-inputs button:hover { background: var(--bg-soft); }

.toolbar { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 14px; }
.toolbar select { height: 38px; border: 1.5px solid var(--line); border-radius: 6px; padding: 0 10px; background: #fff; outline: none; font-size: 13.5px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }
/* --- Pagination --- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 8px; flex-wrap: wrap; }
.pagination:empty { display: none; }
.page-btn { min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 700; font-size: 13.5px; display: grid; place-items: center; transition: border-color .15s; }
.page-btn:hover:not(:disabled):not(.current) { border-color: var(--ink); }
.page-btn.current { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }
.page-btn:disabled { opacity: .4; cursor: default; }
.page-dots { color: var(--muted); padding: 0 2px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); }
.empty strong { color: var(--text); font-size: 16px; }
.empty a { color: var(--prim); font-weight: 700; }
.empty p + p { margin-top: 8px; }

/* =========================================================
   PAGE PRODUIT
   ========================================================= */
.product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; margin: 8px 0 36px; }

.gallery { position: relative; }
.gallery-badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; }
.gallery-main { height: 420px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: #8d97a3; background: #fafbfc; }
.gallery-main svg { width: 55%; height: 70%; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 74px; height: 74px; border: 1.5px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: #9aa4af; background: #fafbfc; }
.thumb svg { width: 70%; height: 70%; }
.thumb.active { border-color: var(--ink); }

.p-brand { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.p-title { font-size: 23px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; margin: 4px 0 8px; }
.p-rating { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 16px; }
.p-rating .stars { font-size: 15px; }
.p-rating a { color: var(--muted); text-decoration: underline; }
.p-rating a:hover { color: var(--prim); }

.p-price-box { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.p-price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.p-price { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.p-price.promo { color: var(--promo); }
.p-old { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.p-save { font-size: 12px; font-weight: 700; background: #fdeced; color: var(--promo); padding: 4px 8px; border-radius: 4px; }
.p-eco { font-size: 12px; color: var(--muted); margin-top: 6px; }

.p-stock { font-size: 13.5px; font-weight: 700; color: var(--green); margin-bottom: 16px; }
.p-stock::before { content: "✓ "; }
.p-stock.low { color: var(--orange); }
.p-stock.low::before { content: "! "; }
.p-stock span { color: var(--muted); font-weight: 400; }

.p-actions { display: flex; gap: 12px; margin-bottom: 10px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #fff; }
.qty button { width: 38px; height: 46px; font-size: 18px; font-weight: 700; color: var(--ink); }
.qty button:hover { background: var(--bg-soft); }
.qty input { width: 42px; text-align: center; border: 0; outline: none; height: 46px; font-weight: 700; }
.btn-buy { flex: 1; height: 48px; font-size: 15px; }

.p-reassure { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.p-reassure li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.p-reassure svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

/* --- Moyens de paiement --- */
.pay-chip { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 32px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pay-chip svg { width: 46px; height: 28px; display: block; }
.pay-chips { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.p-pay { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* --- Onglets --- */
.tabs { border-bottom: 1.5px solid var(--line); display: flex; gap: 4px; margin-bottom: 22px; }
.tab-btn { padding: 12px 18px; font-size: 14.5px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--prim); border-bottom-color: var(--prim); }
.tab-panel { display: none; max-width: 860px; }
.tab-panel.active { display: block; }
.tab-panel > p { font-size: 14.5px; line-height: 1.65; margin-bottom: 16px; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.highlights li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.highlights svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

.specs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs td { padding: 11px 16px; border-bottom: 1px solid var(--line); }
.specs td:first-child { width: 38%; color: var(--muted); }
.specs tr:nth-child(odd) { background: #fafbfc; }

/* --- Avis --- */
.avis-summary { display: flex; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; flex-wrap: wrap; }
.avis-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.avis-score strong { font-size: 38px; font-weight: 900; line-height: 1; }
.avis-score strong span { font-size: 16px; color: var(--muted); font-weight: 700; }
.avis-score em { font-style: normal; font-size: 12px; color: var(--muted); }
.avis-bars { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.avis-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.avis-bar > span { width: 30px; }
.avis-bar em { font-style: normal; width: 36px; text-align: right; }
.avis-bar .bar { flex: 1; height: 8px; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.avis-bar .bar i { display: block; height: 100%; background: var(--star); border-radius: 4px; }

.avis { border-bottom: 1px solid var(--line); padding: 16px 2px; }
.avis header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.avis header strong { font-size: 14px; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--green); }
.verified svg { width: 13px; height: 13px; }
.avis time { font-size: 12px; color: var(--muted); margin-left: auto; }
.avis p { font-size: 13.5px; margin-top: 6px; line-height: 1.6; }

/* =========================================================
   PAGE PANIER
   ========================================================= */
.cart-title { font-size: 25px; font-weight: 800; margin: 22px 0 18px; }
.cart-title span { font-size: 15px; color: var(--muted); font-weight: 600; }
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 26px; align-items: start; margin-bottom: 40px; }

.cart-items { border: 1px solid var(--line); border-radius: 10px; padding: 6px 20px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; align-items: center; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.ci-img { width: 96px; height: 96px; background: #f6f7f9; border-radius: 8px; display: grid; place-items: center; color: #9aa4af; }
.ci-img svg { width: 70%; height: 70%; }
.ci-brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ci-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; margin: 2px 0 6px; }
.ci-name:hover { color: var(--prim); }
.ci-stock { font-size: 12px; color: var(--green); font-weight: 600; }
.ci-unit { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-right .qty button { height: 34px; width: 32px; font-size: 16px; }
.ci-right .qty input { height: 34px; width: 36px; font-size: 13.5px; }
.ci-total { font-size: 17px; font-weight: 800; }
.ci-remove { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.ci-remove:hover { color: var(--prim); }
.ci-remove svg { width: 14px; height: 14px; }
.cart-continue { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink); padding: 14px 0; }
.cart-continue:hover { color: var(--prim); }

.cart-summary { border: 1px solid var(--line); border-radius: 10px; padding: 20px; position: sticky; top: 16px; }
.cart-summary h2 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.sum-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; }
.sum-line .free { font-style: normal; color: var(--green); font-weight: 700; }
.sum-eco { font-size: 11.5px; color: var(--muted); padding: 2px 0 4px; }
.sum-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
.btn-checkout { width: 100%; height: 48px; font-size: 15px; }
.sum-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.sum-secure svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

.cart-empty { text-align: center; padding: 70px 20px 90px; }
.cart-empty-ico { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--bg-soft); color: #9aa4af; margin-bottom: 18px; }
.cart-empty-ico svg { width: 38px; height: 38px; }
.cart-empty h1 { font-size: 23px; font-weight: 800; margin-bottom: 8px; }
.cart-empty p { color: var(--muted); margin-bottom: 22px; }

/* =========================================================
   PAGE AIDE & CONTACT
   ========================================================= */
.aide-title { font-size: 25px; font-weight: 800; letter-spacing: -.4px; margin: 6px 0 6px; }
.aide-intro { color: var(--muted); max-width: 640px; margin-bottom: 26px; font-size: 14.5px; }
.aide-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: start; margin-bottom: 36px; }

.aide-cards { display: flex; flex-direction: column; gap: 14px; }
.aide-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.aide-card-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #e8effb; color: var(--prim); display: grid; place-items: center; }
.aide-card-ico svg { width: 20px; height: 20px; }
.aide-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.aide-card p { font-size: 14px; line-height: 1.5; }
.aide-card a { font-weight: 700; color: var(--prim); }
.aide-card a:hover { text-decoration: underline; }
.aide-card span:not(.aide-card-ico) { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.aide-form { border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.aide-form h2 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.aide-form label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 13px; }
.aide-form label em { font-style: normal; font-weight: 500; color: var(--muted); }
.aide-form input, .aide-form select, .aide-form textarea {
  display: block; width: 100%; margin-top: 5px; border: 1.5px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font-size: 13.5px; outline: none; background: #fff; font-weight: 400;
}
.aide-form input:focus, .aide-form select:focus, .aide-form textarea:focus { border-color: var(--ink); }
.aide-form textarea { resize: vertical; min-height: 96px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aide-form .btn { width: 100%; height: 46px; margin-top: 4px; }

.aide-suivi { background: var(--bg-soft); border-radius: 10px; padding: 24px 26px; margin-bottom: 36px; scroll-margin-top: 20px; }
.aide-suivi h2 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.aide-suivi p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.aide-suivi form { display: flex; gap: 10px; flex-wrap: wrap; }
.aide-suivi input { flex: 1; min-width: 220px; height: 44px; border: 1.5px solid var(--line); border-radius: 6px; padding: 0 14px; outline: none; background: #fff; }
.aide-suivi input:focus { border-color: var(--ink); }

.aide-faq { margin-bottom: 46px; scroll-margin-top: 20px; }
.aide-faq h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.faq-item summary { padding: 14px 18px; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 19px; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { color: var(--prim); }
.faq-item p { padding: 0 18px 15px; font-size: 13.5px; line-height: 1.65; color: #3c4350; }

/* =========================================================
   PAGE INFORMATIONS LÉGALES
   ========================================================= */
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.legal-section { max-width: 820px; margin-bottom: 44px; scroll-margin-top: 20px; }
.legal-section h2 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; padding-bottom: 10px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.legal-section h3 { font-size: 15px; font-weight: 800; margin: 22px 0 6px; }
.legal-section p { font-size: 13.5px; line-height: 1.7; color: #3c4350; }
.legal-section a { color: var(--prim); font-weight: 600; }
.legal-section a:hover { text-decoration: underline; }
.legal-updated { font-size: 12px !important; color: var(--muted) !important; }
.legal-steps { margin: 8px 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.6; color: #3c4350; }
.nowrap { white-space: nowrap; }

/* =========================================================
   TOAST
   ========================================================= */
#toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; border-radius: 10px; padding: 13px 18px;
  box-shadow: 0 10px 30px rgba(10, 15, 25, .35);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s; max-width: min(420px, calc(100vw - 40px));
}
#toast.show { opacity: 1; transform: none; pointer-events: auto; }
#toast > svg { width: 22px; height: 22px; color: #4ade80; flex-shrink: 0; }
#toast strong { display: block; font-size: 13.5px; }
#toast span { display: block; font-size: 12px; color: #aab3c0; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#toast a { color: var(--yellow); font-size: 12.5px; font-weight: 700; white-space: nowrap; margin-left: 6px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .side-tiles { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .univers-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main .container { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .product-top { grid-template-columns: 1fr; gap: 24px; }
  .gallery-main { height: 340px; }
}

@media (max-width: 900px) {
  .aide-grid { grid-template-columns: 1fr; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters-toggle {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
    border: 1.5px solid var(--ink); border-radius: 6px; font-weight: 700; font-size: 13.5px;
    margin-bottom: 12px;
  }
  .filters { display: none; }
  .filters.open { display: block; margin-bottom: 16px; }
  .toolbar { margin-top: -52px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .engage { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
}

@media (max-width: 760px) {
  .topbar-right { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 3px; }
  .section-head h2 { font-size: 18px; }
  .header-main .container { flex-wrap: wrap; gap: 12px; }
  .logo-box { font-size: 23px; padding: 7px 10px 9px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { gap: 16px; }
  .action > span:last-child { display: none; }
  .mainnav .container { padding: 0 8px; }
  .mainnav ul { overflow-x: auto; scrollbar-width: none; }
  .mainnav ul::-webkit-scrollbar { display: none; }
  .dd { display: none !important; }
  .nav-promo { margin-left: 0; }
  .slide { grid-template-columns: 1fr; padding: 28px 24px 48px; }
  .slide-art { display: none; }
  .slide-content h2 { font-size: 26px; }
  .car-dots { left: 24px; }
  .car-arrow { display: none; }
  .carousel { min-height: 250px; }
  .reassure { grid-template-columns: 1fr 1fr; }
  .reassure li + li { border-left: 0; }
  .reassure li:nth-child(even) { border-left: 1px solid var(--line); }
  .reassure li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .row-arrow { display: none; }
  .univers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-newsletter .container { flex-direction: column; align-items: flex-start; }
  .footer-newsletter form { width: 100%; }
  .footer-newsletter input { flex: 1; max-width: none; }
  .footer-main .container { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .p-actions { flex-wrap: wrap; }
  .btn-buy { flex-basis: 100%; order: -1; }
  .highlights { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .ci-img { width: 72px; height: 72px; }
  .ci-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .side-tiles { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .toolbar { margin-top: 0; justify-content: flex-start; }
}

/* ---------- Note de paiement (panier) ---------- */
.pay-note { font-size: 11.5px; line-height: 1.45; color: var(--muted); margin-top: 8px; }
.pay-note.warn { color: var(--promo); }
.btn-checkout:disabled { opacity: .5; cursor: not-allowed; }
