/* ==========================================================================
   Banco Saint-Constant — maquette
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Barlow+Condensed:ital,wght@1,900&display=swap');

:root {
  --ink: #121316;
  --bg: #1c1f22;
  --surface: #24272c;
  --text: #eef0f1;
  --text-muted: #9aa1a8;
  --border: #34383e;
  --accent: #d6413a;
  --accent-dark: #a1241f;
  --accent-contrast: #ffffff;
  --nouveaute: #4fc98b;
  --nouveaute-bg: rgba(79, 201, 139, .16);
  --solde: #e2903f;
  --solde-bg: rgba(226, 144, 63, .16);
  --clairance: #c24b3f;
  --clairance-bg: rgba(194, 75, 63, .18);
  --placeholder-1: #2b2f34;
  --placeholder-2: #33373d;
  --placeholder-text: #80868d;
  --gray-gradient: linear-gradient(135deg, #22262b 0%, #33393f 55%, #454b52 100%);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px rgba(0, 0, 0, .4);
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Hero banner ---------- */
.hero-banner {
  width: 100%;
  line-height: 0;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 2172 / 724;
  overflow: hidden;
}
.hero-carousel img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}
.hero-carousel img.active {
  opacity: 1;
  transform: scale(1);
}
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,.5);
  padding: 0; cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.hero-dots button.active {
  width: 24px;
  background: #fff;
}

/* ---------- Topbar ---------- */
.topbar {
  background: url('/image/logo.png') center/cover no-repeat #780E25;
  height: 60px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 60px;
  gap: 16px;
}
.topbar a { opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-logo { display: none; }
.topbar-info { display: none; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.topbar-employee-link {
  font-size: 11px;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.25);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
}
.topbar-employee-link:hover { background: rgba(0,0,0,.4); color: #fff; }
.topbar-heart {
  flex-shrink: 0;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.topbar-heart:hover { background: rgba(0,0,0,.4); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo small {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0;
}

.main-nav-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
}
.scroll-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
}
.scroll-fade-left { left: 0; background: linear-gradient(to right, var(--surface), transparent); }
.scroll-fade-right { right: 0; background: linear-gradient(to left, var(--surface), transparent); }
.main-nav, .cat-cards-track, .carousel-track { cursor: grab; user-select: none; }
.main-nav.is-dragging, .cat-cards-track.is-dragging, .carousel-track.is-dragging { cursor: grabbing; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a:hover,
.main-nav a.active { border-color: #780E25; }
.nav-heart {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--text);
  flex-shrink: 0;
}
.nav-heart:hover { color: #780E25; }
.main-nav .tag-nouveaute { color: var(--nouveaute); }
.main-nav .tag-solde { color: var(--solde); }
.main-nav .tag-clairance { color: var(--clairance); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 220px;
}
.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--text);
}
.search-box input::placeholder { color: var(--text-muted); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; }
.nav-toggle svg { transition: transform .15s ease; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 90% at 88% 8%, rgba(200, 48, 42, .45), transparent 60%),
    var(--gray-gradient);
  color: #fff;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,48,42,.16);
  border: 1px solid rgba(220,90,80,.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero p {
  color: #cfd3d7;
  font-size: 16px;
  max-width: 46ch;
  margin: 0 0 26px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: url('/image/logo.png') center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: linear-gradient(to right, #570A1C, #780E25 50%, #570A1C);
  border-bottom: 1px solid #3f0817;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  height: 60px;
  align-items: center;
  justify-items: center;
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item .ic {
  width: 54px; height: 54px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.trust-item strong { display: block; font-size: 13px; color: #fff; }
.trust-item span { color: rgba(255,255,255,.65); font-size: 11.5px; }

/* ---------- Section heading ---------- */
.section {
  padding: 6px 0;
  background:
    radial-gradient(ellipse 55% 90% at 90% 0%, rgba(200, 48, 42, .22), transparent 62%),
    radial-gradient(ellipse 45% 80% at 4% 100%, rgba(200, 48, 42, .13), transparent 58%),
    var(--bg);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-family: 'Lobster', cursive;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0;
}
.section-head p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.carousel-section .section-head h2,
.related .section-head h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-style: italic;
}
.carousel-section .section-head h2 {
  font-size: 44px;
}
.section-link { font-weight: 700; font-size: 14px; color: var(--accent); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ---------- Section: "Ce qui bouge cette semaine" — price-tag tickets, not cards ---------- */
.section-promo { background: var(--gray-gradient); }
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 34px;
}
.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px 28px 68px;
  background: var(--surface);
  clip-path: polygon(0% 50%, 16% 0%, 100% 0%, 100% 100%, 16% 100%);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  transition: transform .15s ease;
}
.ticket:hover { transform: rotate(0deg) translateY(-3px); }
.ticket::before {
  content: "";
  position: absolute;
  left: 7%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
}
.ticket-label { font-size: 13px; font-weight: 700; }
.ticket-solde .ticket-label { color: var(--solde); }
.ticket-clairance .ticket-label { color: var(--clairance); }
.ticket h3 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -0.01em; }
.ticket p { margin: 0; color: var(--text-muted); font-size: 14px; }
.ticket-arrow {
  position: absolute;
  right: 20px;
  bottom: 22px;
  color: var(--text-muted);
}
.ticket:hover .ticket-arrow { color: var(--text); }

/* ---------- Carousel (nouveautés) ---------- */
/* A deliberate bright break in the dark theme — keeps the page from reading as one flat gray wall */
.carousel-section {
  background: transparent;
  padding-top: 28px;
}
.grey-band {
  background: #f0f1f3;
}
.grey-band--sep { border-top: 2px solid #b01218; }
.grey-band .section-head h2 { color: #16181b; }
.grey-band .section-head p { color: #5a5f65; }
.grey-band .section-head a { color: var(--accent); }
.grey-band .cat-icon-label { color: #16181b; }
.grey-band .carousel-btn { background: #fff; border-color: #d0d3d8; color: #16181b; }
.grey-band .scroll-fade-left { background: linear-gradient(to right, #f0f1f3, transparent); }
.grey-band .scroll-fade-right { background: linear-gradient(to left, #f0f1f3, transparent); }
.carousel .scroll-fade-left, .carousel .scroll-fade-right { background: transparent; }
.section-cats {
  background: transparent;
  padding: 6px 0;
}
.carousel { position: relative; padding: 0 10px; }
.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 260px;
  scroll-snap-align: start;
}
.carousel-slide .product-card-wrapper { height: 100%; }
.product-card-wrapper .product-card { flex: 1; }
.carousel-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 5;
}
.carousel-btn:hover { border-color: #780E25; color: #780E25; box-shadow: 0 0 0 3px rgba(120,14,37,.15); }
.carousel-btn.prev { left: -16px; }
.carousel-btn.next { right: -16px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  transition: width .2s ease, background .2s ease;
}
.carousel-dots button.active { width: 24px; background: var(--accent); }

@media (max-width: 640px) {
  .carousel-slide { flex-basis: 74vw; }
  .carousel-btn { display: none; }
}

@media (min-width: 641px) and (max-width: 980px) {
  .carousel-slide { flex-basis: 42vw; }
  .cat-card { flex-basis: 160px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .carousel-slide { flex-basis: 290px; }
}

/* ---------- Section: "Magasiner par catégorie" ---------- */
.directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.directory-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: padding-left .15s ease, border-color .15s ease;
}
.directory-row:hover { padding-left: 10px; border-color: var(--accent); }
.directory-row .ic {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.directory-text { display: flex; flex-direction: column; gap: 2px; }
.directory-row strong { font-size: 15px; }
.directory-row span { font-size: 12.5px; color: var(--text-muted); }
.directory-row .count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Or / rachat (gold buy-back) ---------- */
.gold-section {
  position: relative;
  overflow: hidden;
  padding: 28px 0 56px;
  background-color: #E1CCB3;
}
.gold-visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background-image: url(/image/gold-buyback.png);
  background-size: cover;
  background-position: center;
}
.gold-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
}
.gold-content { max-width: 46%; }
.gold-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #2b2313;
  text-wrap: balance;
}
.gold-subtitle { font-size: 22px; font-weight: 700; color: #3a2f1c; margin: 0 0 32px; }
.gold-desc { color: #3a2f1c; font-size: 15px; max-width: 48ch; margin: 0 0 20px; }
.gold-section .container { padding-left: 4px; }
.gold-karats { font-size: 15px; font-weight: 700; color: #8a6a12; margin: 0 0 26px; letter-spacing: .04em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; opacity: .6; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ---------- Category page layout ---------- */
.category-page {
  padding-bottom: 60px;
  background:
    radial-gradient(ellipse 55% 60% at 92% 0%, rgba(200, 48, 42, .24), transparent 60%),
    radial-gradient(ellipse 45% 70% at 2% 100%, rgba(200, 48, 42, .14), transparent 58%),
    var(--bg);
}
.category-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
}
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filters h3 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin: 18px 0 10px;
}
.filters h3:first-child { margin-top: 0; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 5px 0;
  cursor: pointer;
}
.filter-group label:hover { color: var(--accent); }
.filter-group .count { margin-left: auto; color: var(--text-muted); font-size: 12.5px; }
.subcat-list a {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}
.subcat-list a:hover, .subcat-list a.active { color: var(--accent); font-weight: 700; }
.price-range { display: flex; gap: 8px; }
.price-range input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.results-bar h1 { font-size: 22px; margin: 0; }
.results-bar .count { color: var(--text-muted); font-size: 13.5px; }
.sort-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
}
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
}

/* ---------- Product grid + card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card-wrapper {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  transition: box-shadow .12s ease, transform .12s ease;
}
.product-card-wrapper:hover { box-shadow: 0 2px 4px rgba(120,14,37,.2), 0 8px 24px rgba(120,14,37,.25); transform: translateY(-2px); }
.product-card-wrapper:hover .product-title { color: #780E25; }
.product-card-wrapper:hover .product-cat { color: #a01a30; }
.product-card-wrapper:hover .product-desc { color: #a01a30; }
.product-card {
  background: #ffffff;
  border: 1px solid #e0e2e6;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #16181b;
}
.product-card .product-cat { color: #6b7280; }
.product-card .product-title { color: #16181b; }
.product-card .product-desc { color: #6b7280; }
.product-card .price { color: #D71920; }
.product-card .price-old { color: #9ca3af; }
.product-card .product-sku { color: #9ca3af; }
.product-thumb {
  aspect-ratio: 5/4;
  background:
    repeating-linear-gradient(45deg, var(--placeholder-1) 0 10px, var(--placeholder-2) 10px 20px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--placeholder-text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
}
.badge-nouveaute { background: #780E25; color: #fff; }
.badge-solde { background: #780E25; color: #fff; }
.badge-clairance { background: #780E25; color: #fff; }
.badge-stock {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 9.5px;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 700;
}
.product-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-cat { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.product-title { font-size: 16.5px; font-weight: 700; margin: 0; }
.product-desc { font-size: 12px; color: #6b7280; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: -4px; }
.product-condition {
  font-size: 12px;
  color: var(--nouveaute);
  font-weight: 700;
}
.product-price-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.price { font-size: 20px; font-weight: 800; }
.price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.product-sku {
  font-size: 10.5px;
  color: #9ca3af;
  letter-spacing: .02em;
}
.warranty-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
}
.pagination a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Product page ---------- */
.product-page {
  background: #f0f1f3;
  padding-bottom: 48px;
}
.product-page .breadcrumb { color: #6b7280; }
.product-page .breadcrumb a { color: #6b7280; }
.product-page .breadcrumb .current { color: #16181b; }
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: stretch;
  padding-top: 20px;
}
.product-detail { display: flex; flex-direction: column; }
.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: #fff repeating-linear-gradient(45deg, #f3f4f6 0 12px, #e9eaec 12px 24px);
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid #e0e2e6;
  margin-bottom: 12px;
}
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumbs .thumb {
  width: 68px; height: 68px;
  border-radius: 8px;
  border: 2px solid #e0e2e6;
  background: #fff repeating-linear-gradient(45deg, #f3f4f6 0 8px, #e9eaec 8px 16px);
  cursor: pointer;
}
.gallery-thumbs .thumb.active { border-color: #780E25; }

.product-detail .eyebrow { font-size: 12.5px; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.product-detail h1 { font-size: 27px; font-weight: 800; color: #16181b; margin: 0 0 10px; letter-spacing: -0.01em; }
.badges-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badges-row .badge { position: static; }
.badge-outline {
  border: 1px solid #e0e2e6;
  color: #6b7280;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; margin-top: auto; }
.price-block .price { font-size: 30px; color: #D71920; }
.price-block .price-old { color: #9ca3af; }
.price-note { font-size: 13px; color: #6b7280; margin-bottom: 22px; }

.reserve-box {
  border: 1px solid #e0e2e6;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.reserve-box .stock-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: #16a34a;
  margin-bottom: 12px;
}
.reserve-box .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.reserve-box .fine-print { font-size: 12.5px; color: #6b7280; margin-top: 10px; }
.reserve-box .article-ref {
  font-size: 13px;
  color: #6b7280;
  background: #f0f1f3;
  border: 1px solid #e0e2e6;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: inline-block;
}
.reserve-box .article-ref strong { color: #16181b; font-family: "Courier New", monospace; letter-spacing: .02em; }
.reserve-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.product-detail-wish { margin-bottom: 20px; }
.product-detail-wish .product-wish-bar {
  border-radius: var(--radius);
  border-top: 1px solid #780E25;
}

.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table tr { border-bottom: 1px solid #e0e2e6; }
.spec-table td { padding: 10px 0; font-size: 14px; color: #16181b; }
.spec-table td:first-child { color: #6b7280; width: 42%; }

.detail-section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin: 22px 0 8px; }
.desc-text { font-size: 14.5px; color: #16181b; line-height: 1.7; }

.related { padding: 24px 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 8px; font-size: 22px; }
.cta-banner p { margin: 0; color: #c9cdd1; font-size: 14.5px; max-width: 50ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b7bcc1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 50px 0 30px;
}
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-grid li { margin-bottom: 9px; font-size: 13.5px; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-logo { color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-note { font-size: 13px; line-height: 1.7; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.demo-flag {
  background: var(--ink);
  color: var(--text-muted);
  text-align: center;
  font-size: 12.5px;
  padding: 8px 12px;
}
.demo-flag strong { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/9; }
  .trust-bar .container { height: auto; padding: 12px 16px; }
  .ticket-grid { grid-template-columns: 1fr; }
  .category-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .gold-visual { display: none; }
  .gold-content { max-width: 100%; }
  .main-nav {
    display: flex;
    flex-direction: row;
    position: static;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    flex: 1;
    min-width: 0;
    align-items: stretch;
    gap: 0;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a {
    padding: 0 11px;
    border-bottom: 2px solid transparent;
    border-top: none;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
  }
  .main-nav a:last-child { border-bottom: 2px solid transparent; }
  .nav-toggle { display: none; }
  .search-box { display: none; }
  .directory { grid-template-columns: 1fr; }
  .ticket { clip-path: none; padding-left: 26px; border-left: 3px solid var(--accent); }
  .ticket::before { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-note { margin: 0 auto; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .topbar .container { justify-content: space-between; }
  .topbar-info { display: none; }

  /* Topbar — zoom plus agressif sur mobile */
  .topbar { background-size: 250%; }


  /* Trust bar — reste sur une ligne, tailles réduites */
  .trust-bar .container { height: 52px; padding: 0 12px; gap: 4px; }
  .trust-item { gap: 5px; }
  .trust-item .ic { width: 26px; height: 26px; }
  .trust-item .ic img { width: 26px !important; height: 26px !important; }
  .trust-item strong { font-size: 10px; }
  .trust-item span { display: none; }

  /* Section padding réduit */
  .section { padding: 28px 0; }

  /* Carousel sans boutons — moins de padding latéral */
  .carousel { padding: 0 6px; }

  /* Section head en colonne sur mobile */
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
  .section-head > a { align-self: flex-start; }

  /* Cartes produit légèrement plus petites */
  .carousel-slide { flex-basis: 72vw; }
}

/* ── Catégories cartes rectangulaires ───────────────────── */
.cat-cards-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0 16px;
}
.cat-cards-track::-webkit-scrollbar { display: none; }
.cat-card {
  position: relative;
  flex: 0 0 220px;
  aspect-ratio: 5/3;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
  background: #2b2f34;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.5);
  transition: transform .5s ease;
  z-index: 0;
}
.cat-card:hover .cat-card-bg { transform: scale(1.6); }
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.45) 100%);
  border-radius: 10px;
  z-index: 1;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.cat-card-title {
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.cat-card-btn {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  background: #f5c518;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 375px) {
  .topbar { background-size: 270%; }
}

@media (min-width: 641px) and (max-width: 820px) {
  .topbar { background-size: 150%; }
}

@media (min-width: 376px) and (max-width: 430px) {
  .topbar { background-size: 270%; }
}

/* ── Panel Employé (Admin) ───────────────────────────────── */
.admin-layout { min-height: 100vh; background: var(--bg); color: var(--text); }

.admin-nav {
  background: var(--surface);
  border-bottom: 2px solid #780E25;
  position: sticky; top: 0; z-index: 50;
}
.admin-nav .container { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 24px; }
.admin-brand { font-weight: 800; font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.admin-brand span { color: #780E25; }
.admin-badge {
  display: inline-block;
  background: #780E25; color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em;
  vertical-align: middle; margin-left: 6px;
}
.admin-nav-links { display: flex; align-items: center; gap: 20px; }
.admin-nav-links a { font-size: 13.5px; color: var(--text-muted); font-weight: 600; }
.admin-nav-links a:hover { color: var(--text); }
.admin-nav-end { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-muted); }
.admin-nav-end a:hover { color: var(--text); }

.admin-page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-bottom: 28px;
}
.admin-page-header .container { display: flex; align-items: center; justify-content: space-between; }
.admin-page-header h1 { font-size: 20px; font-weight: 800; margin: 0; }

.admin-main { padding-bottom: 48px; }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
  padding: 10px 16px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.03); }
.admin-table .td-ref { color: var(--text-muted); font-size: 12px; font-family: "Courier New", monospace; }
.admin-table .td-title { font-weight: 600; }
.admin-table .td-muted { color: var(--text-muted); font-size: 13px; }
.admin-table .td-price { font-weight: 700; color: #D71920; }
.admin-table .td-actions { text-align: right; white-space: nowrap; }
.admin-table .td-active-yes { color: var(--nouveaute); font-weight: 700; font-size: 12px; }
.admin-table .td-active-no { color: var(--text-muted); font-size: 12px; }

.admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 700; border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.admin-btn-primary { background: #780E25; color: #fff; border-color: #780E25; }
.admin-btn-primary:hover { background: #5a0a1c; }
.admin-btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.admin-btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.admin-btn-link { background: none; border: none; padding: 0; font-size: 13px; cursor: pointer; font-family: inherit; }
.admin-btn-link-edit { color: #6b8af5; }
.admin-btn-link-edit:hover { text-decoration: underline; }
.admin-btn-link-danger { color: #ef4444; }
.admin-btn-link-danger:hover { text-decoration: underline; }
.admin-btn-link-disabled { color: var(--text-muted); opacity: .4; cursor: default; pointer-events: none; }

.admin-search { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.admin-search-input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 14px; font-size: 13.5px; color: var(--text); font-family: inherit;
  flex: 1; max-width: 380px;
}
.admin-search-input:focus { outline: none; border-color: #780E25; }
.admin-search-input::placeholder { color: var(--text-muted); }

.admin-pagination { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 16px; }
.admin-page-link {
  padding: 5px 11px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.admin-page-link.active { background: #780E25; border-color: #780E25; color: #fff; }
.admin-page-link:hover:not(.active) { border-color: var(--text-muted); color: var(--text); }
.admin-page-link-disabled { padding: 5px 11px; border-radius: 6px; font-size: 12px; color: var(--text-muted); opacity: .4; }

.admin-form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.admin-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.admin-form-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.admin-form-actions { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 8px; }

.admin-field { display: flex; flex-direction: column; gap: 5px; }
.admin-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.admin-input, .admin-select, .admin-textarea {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px;
  font-size: 14px; color: var(--text); font-family: inherit; width: 100%;
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus { outline: none; border-color: #780E25; }
.admin-select option { background: var(--surface); }
.admin-error { font-size: 12px; color: #ef4444; margin-top: 2px; }

.admin-checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--text); }
.admin-checkbox-row input { width: 16px; height: 16px; cursor: pointer; accent-color: #780E25; }

.admin-flash {
  padding: 12px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px;
  background: rgba(79,201,139,.1); border: 1px solid rgba(79,201,139,.3); color: var(--nouveaute);
}
.admin-error-summary {
  padding: 12px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #ef4444;
}
.admin-error-summary ul { list-style: disc; padding-left: 18px; margin: 0; }

.admin-empty { padding: 40px 16px; text-align: center; color: var(--text-muted); font-size: 14px; }

.admin-statut-badge {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; color: #fff;
}
.admin-statut-nouveaute { background: var(--nouveaute); }
.admin-statut-solde { background: var(--solde); }
.admin-statut-clairance { background: var(--clairance); }

@media (max-width: 640px) {
  .admin-form-grid-2, .admin-form-grid-3 { grid-template-columns: 1fr; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 10px 10px; }
}

/* ── Barre de recherche nav ──────────────────────────────── */
.nav-search-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  animation: slideDown .15s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-search-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14.5px;
  color: var(--text);
  font-family: inherit;
}
.nav-search-input:focus { outline: none; border-color: #780E25; }
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-btn {
  background: #780E25; color: #fff;
  border: none; border-radius: 999px;
  padding: 9px 20px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.nav-search-btn:hover { background: #5a0a1c; }
.nav-search-close {
  background: none; border: none;
  color: var(--text-muted); font-size: 16px;
  cursor: pointer; padding: 4px 6px; flex-shrink: 0;
}
.nav-search-close:hover { color: var(--text); }

/* ── Page de recherche ───────────────────────────────────── */
.search-page-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}
.search-page-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}
.search-page-title em { font-style: normal; color: #780E25; }
.search-page-count { font-size: 14px; color: var(--text-muted); }
.search-empty { color: var(--text-muted); font-size: 15px; margin-top: 40px; }

/* wishlist */
.product-wish-bar {
  background: #780E25;
  border: 1px solid #780E25;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex;
}
.product-wish-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 10px;
  width: 100%;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: color .15s, background .15s;
}
.product-wish-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.product-wish-btn.active { color: #fff; }
.product-wish-btn.active svg { fill: #fff; stroke: #fff; }
.nav-wish-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #780E25;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
