/* LUXX — Location d'équipement de construction
   Palette: noir profond, blanc cassé, or industriel
   Typo: Inter (via Fontshare/Google) + Space Grotesk pour display
*/

:root {
  --bg: #0e0e0d;
  --bg-alt: #171715;
  --surface: #1e1d1a;
  --surface-2: #26251f;
  --border: #2f2e29;
  --text: #f5f2ea;
  --text-muted: #a09c90;
  --text-faint: #6b6960;
  --accent: #c9a24b;         /* or industriel */
  --accent-hover: #dfb862;
  --accent-soft: rgba(201, 162, 75, 0.12);
  --danger: #d9615a;
  --success: #7bb26a;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 10px 40px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.55);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1280px;
  --container-narrow: 960px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-alt);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--text);
}

.logo:hover { color: var(--text); }

.logo-mark {
  width: 32px;
  height: 32px;
  display: inline-block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav a:hover, .nav a.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cart-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--accent);
  color: #1a1400;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  padding: 8px;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #1a1400;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #1a1400;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
}

.btn-ghost:hover { color: var(--text); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 15px; }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14,14,13,0.15) 0%, rgba(14,14,13,0.75) 60%, rgba(14,14,13,1) 100%),
    url('../images/hero.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(201, 162, 75, 0.08), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  position: absolute;
  bottom: 40px;
  right: max(40px, calc((100vw - 1280px) / 2 + 40px));
  display: flex;
  gap: 40px;
  align-items: flex-end;
  padding: 20px 28px;
  background: rgba(14,14,13,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: calc(100vw - 80px);
}

.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.hero-meta-item .lbl {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 60px;
  max-width: 640px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.category-card-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.category-card:hover .category-card-image {
  transform: scale(1.05);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,13,0.05) 0%, rgba(14,14,13,0.45) 45%, rgba(14,14,13,0.97) 100%);
  z-index: 1;
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.category-card h3 {
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.65);
}

.category-card .count {
  font-size: 13px;
  color: #e2bd66;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.product-image {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: var(--accent);
  color: #1a1400;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-category {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

.product-price .amount { font-size: 22px; }
.product-price .unit {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.product-cta {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Filters */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.filters h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.filter-option:hover { color: var(--text); }

.filter-option input {
  width: auto;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.filter-option .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-faint);
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.catalog-count {
  font-size: 14px;
  color: var(--text-muted);
}

.catalog-count strong { color: var(--text); font-weight: 600; }

.select-inline {
  width: auto;
  padding: 8px 14px;
  font-size: 13px;
}

/* Product page */
.product-page {
  padding: 60px 0;
}

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

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery-main {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  margin-bottom: 12px;
}

.product-info h1 {
  font-size: 2rem;
  margin: 12px 0 20px;
}

.product-info .product-category { font-size: 12px; }

.product-info .price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.product-info .price-block .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.product-info .price-block .unit {
  color: var(--text-muted);
  font-size: 15px;
}

.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 24px 0 32px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.spec-list li span:first-child { color: var(--text-muted); }
.spec-list li span:last-child { color: var(--text); font-weight: 500; }

.reservation-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 28px;
}

.reservation-box h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.total-row .label { font-size: 13px; color: var(--text-muted); }
.total-row .value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* Cart / Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.cart-list, .checkout-form, .cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-image {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  background-color: var(--bg-alt);
}

.cart-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.cart-item-price {
  text-align: right;
}

.cart-item-price .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.remove-btn {
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 6px;
  display: block;
  text-align: right;
}

.remove-btn:hover { color: var(--danger); }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.summary-row.total {
  padding: 18px 0 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
}

.summary-row.total .value {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field { margin-bottom: 16px; }

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.payment-method {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

/* Features (why us) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* CTA band */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(120deg, var(--surface) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

.rbq {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--accent); }

/* Utilities */
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* Responsive */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { display: none; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  }
  .mobile-toggle { display: block; }
  .section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; min-height: 70vh; }
  .form-row { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .date-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* --- Mobile : une seule colonne pour les cartes d'équipement --- */
@media (max-width: 700px) {
  .category-grid { grid-template-columns: 1fr; gap: 14px; }
  .category-card { aspect-ratio: 16/10; }
  .category-card-content { padding: 20px; }
  .category-card h3 { font-size: 1.15rem; line-height: 1.25; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cart-btn span { font-size: 13px; }
}

/* --- Disponibilité --- */
.product-badge.badge-off {
  background: #7a2222;
  color: #ffd9d9;
}

.product-card.is-unavailable .product-image,
.category-card.is-unavailable .category-card-image {
  filter: grayscale(0.75) brightness(0.7);
}

.category-card .unavailable-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: #7a2222;
  color: #ffd9d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.unavailable-notice {
  background: rgba(122, 34, 34, 0.18);
  border: 1px solid rgba(201, 90, 90, 0.45);
  color: #f0b9b9;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 16px;
}
