/* =======================
   RESET & BASE
======================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { padding-top: 100px; }

html, body {
  background: #141316;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }

.container { width: 90%; max-width: 1280px; margin: 0 auto; }

/* =======================
   BOUTONS
======================= */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary { background: linear-gradient(to bottom, #D7002E, #FF2352); text-align: center; }
.btn:hover { opacity: 0.75; transform: scale(1.02); }

.gradient-text {
  background-image: linear-gradient(to left, #FFFFFF, #999999, #FFFFFF, #999999, #FFFFFF);
  background-size: 300% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientMove 8s linear infinite;
}
@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-red { color: #FF2352; }

/* =======================
   HERO
======================= */
.hero {
  position: relative;
  width: 100%;
}
.hero-small { min-height: 0; }

.hero-lumiere {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.hero-lumiere-left  { width: 1230px; top: 0; left:  0; transform: translate(-20%, -20%); }
.hero-lumiere-right { width: 1230px; top: 0; right: 0; transform: translate(20%,  -20%); }

.hero-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 20px 0 20px;
}
.hero-logo { height: 65px; }

.hero-body {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 60px;
}

.shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #888;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.shop-eyebrow i {
  color: #22c55e;
  font-size: 0.55rem;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.page-subtitle {
  color: #aaa;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =======================
   FILTRES
======================= */
.filters-wrap {
  background: #141316;
  padding: 16px 0;
  transition: box-shadow 0.3s;
  z-index: 100;
}
.filters-wrap.sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.filters-bar {
  background: #1A181E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}
.filter-label strong { color: #fff; }

/* Pills type */
.filter-pills { display: flex; gap: 6px; }
.pill {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: #aaa;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.pill:hover { border-color: rgba(255,35,82,0.4); color: #fff; }
.pill.active {
  background: linear-gradient(to bottom, #D7002E, #FF2352);
  border-color: transparent;
  color: #fff;
}

/* Slider prix */
.price-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15); /* écrasé dynamiquement par JS */
  outline: none;
  cursor: pointer;
}
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #D7002E;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(215,0,46,0.4);
  transition: box-shadow .15s, transform .15s;
}
.price-slider:hover::-webkit-slider-thumb,
.price-slider:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(215,0,46,0.25);
  transform: scale(1.1);
}
.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #D7002E;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.price-slider::-moz-range-progress {
  background: #D7002E;
  border-radius: 4px;
}

/* Toggle vendus */
.sold-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.sold-toggle input { display: none; }
.toggle-track {
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.sold-toggle input:checked ~ .toggle-track { background: #D7002E; }
.sold-toggle input:checked ~ .toggle-track::after { transform: translateX(18px); }
.toggle-label { font-size: 0.85rem; color: #aaa; white-space: nowrap; }

/* =======================
   STOCK SECTION
======================= */
.stock-section { padding: 40px 0 80px; }

.results-count {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 24px;
}

/* Grille */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Loading */
.loading-state, .empty-state, .product-loading, .product-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #555;
  padding: 60px 20px;
  grid-column: 1 / -1;
  font-size: 1rem;
}
.loading-state i, .empty-state i { font-size: 2rem; }
.empty-state i { color: #333; }

/* =======================
   CARTE PC (boutique)
======================= */
.pc-card {
  background: #1A181E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.pc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,35,82,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.pc-card.is-sold { opacity: 0.7; }

/* Photo de la carte */
.card-photo {
  position: relative;
  aspect-ratio: 4/3;
  background: #111;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.pc-card:hover .card-photo img { transform: scale(1.04); }

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #333;
  background: #111;
}
.photo-placeholder i { font-size: 2.5rem; color: #222; }
.photo-placeholder span { font-size: 0.8rem; }

/* Overlay vendu */
.sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sold-overlay span {
  background: rgba(0,0,0,0.7);
  color: #888;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 3px;
  padding: 8px 20px;
  border: 1px solid #444;
  border-radius: 8px;
}

/* Badge type */
.type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ddd;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Corps de la carte */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.card-ref {
  font-size: 0.75rem;
  color: #555;
}
.card-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0;
}
.card-specs li {
  font-size: 0.8rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-specs i {
  color: #D7002E;
  font-size: 0.75rem;
  width: 14px;
  flex-shrink: 0;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.card-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #D7002E;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =======================
   PAGE PRODUIT (pc.html)
======================= */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 20px 0 10px;
  transition: color 0.2s;
}
.back-link:hover { color: #fff; }

.product-section { padding: 20px 0 80px; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Galerie */
.gallery-main {
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4/3;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-placeholder.large {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #444;
  background: #111;
  border-radius: 16px;
}
.photo-placeholder.large i { font-size: 4rem; color: #222; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.gallery-thumbs .thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover { border-color: #D7002E; }

/* Infos produit */
.product-info { display: flex; flex-direction: column; gap: 16px; }

.product-badges { display: flex; gap: 8px; align-items: center; }

.badge-type {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ccc;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}

.badge-status {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}
.badge-status.available {
  background: rgba(0, 200, 50, 0.12);
  border: 1px solid rgba(0, 200, 50, 0.3);
  color: #00cc32;
}
.badge-status.sold {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #666;
}

.product-name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}
.product-ref { font-size: 0.85rem; color: #555; }

.product-price-wrap { margin: 4px 0; }
.product-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.btn-contact {
  width: 100%;
  max-width: 360px;
  padding: 0.8rem 1.5rem;
  font-size: 1.05rem;
  display: block;
  text-align: center;
}

.contact-note {
  font-size: 0.78rem;
  color: #555;
}

/* Specs table */
.specs-block h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.specs-table th {
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
  padding: 8px 0;
  width: 45%;
}
.specs-table td {
  font-size: 0.9rem;
  color: #ccc;
  padding: 8px 0;
}
.product-desc { font-size: 0.95rem; color: #888; line-height: 1.65; }

.product-not-found {
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 80px 20px;
  color: #555;
}
.product-not-found i { font-size: 3rem; color: #333; }
.product-not-found p { font-size: 1rem; }

/* =======================
   BANNIÈRE CONDITIONS
======================= */
.conditions-banner-section {
  padding: 0 0 60px;
}

.conditions-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
}

/* =======================
   BANNIÈRE CONDITIONS
======================= */
.conditions-section {
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.conditions-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.conditions-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin: 0 auto;
}

.condition-card {
  background: #1A181E;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color 0.2s;
}

.condition-card:hover {
  border-color: rgba(255,35,82,0.25);
}

.condition-icon {
  width: 48px;
  height: 48px;
  background: rgba(215,0,46,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #FF2352;
}

.condition-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.condition-card p {
  font-size: 0.88rem;
  color: #999;
  line-height: 1.65;
  flex: 1;
}

.condition-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}

.badge-reco {
  background: rgba(215,0,46,0.15);
  border: 1px solid rgba(215,0,46,0.3);
  color: #FF2352;
}

/* Card pleine largeur (notes S→D) */
.condition-card--full {
  grid-column: 1 / -1;
}

.grades-subtitle {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
  margin-top: -4px;
}

.grades-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.grade-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: #bbb;
  line-height: 1.4;
}

.grade-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.grade-s { background: rgba(34,197,94,.15);  border: 1px solid rgba(34,197,94,.35);  color: #22c55e; }
.grade-a { background: rgba(59,130,246,.15); border: 1px solid rgba(59,130,246,.35); color: #60a5fa; }
.grade-b { background: rgba(234,179,8,.15);  border: 1px solid rgba(234,179,8,.35);  color: #facc15; }
.grade-c { background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.35); color: #fb923c; }
.grade-d { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.35);  color: #f87171; }

@media (max-width: 640px) {
  .conditions-grid,
  .conditions-grid--two { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* =======================
   FOOTER (identique site)
======================= */
.footer {
  background-color: #141316;
  color: #fff;
  font-size: 0.95rem;
  padding: 30px 0;
  box-shadow: 0 0 80px rgba(255,255,255,0.07);
}
.footer-container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.footer-left { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { width: 150px; height: auto; margin-bottom: 10px; margin-left: -8px; }
.footer-baseline { font-size: 1rem; opacity: 0.8; margin-bottom: 10px; }
.footer-baseline-2, .footer-baseline-3 {
  font-size: 1rem; opacity: 0.8; margin-bottom: 10px;
  background: linear-gradient(to bottom, #FFFFFF, #999999);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-baseline-3 { margin-bottom: 60px; }
.footer-baseline-2 i, .footer-baseline-3 i { margin-right: 5px; }
.footer-right { display: flex; align-items: center; gap: 15px; }
.social-icon { color: #fff; font-size: 1.4rem; text-decoration: none; transition: opacity 0.2s; }
.social-icon:hover { opacity: 0.7; }
.footer-bottom {
  width: 90%; max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { margin: 0; opacity: 0.6; font-size: 0.85rem; }
.footer-mentions { margin: 0; font-size: 0.85rem; opacity: 0.6; text-align: right; }
.footer-mentions a { color: #fff; text-decoration: none; border-bottom: 1px dotted #fff; transition: opacity 0.2s; }
.footer-mentions a:hover { opacity: 0.8; }

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 1024px) {
  .pc-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .pc-grid { grid-template-columns: 1fr; }
  .filters-bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .product-price { font-size: 2rem; }
  .product-name { font-size: 1.5rem; }
  .footer-container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
