 :root {
  color-scheme: light;
  --ink: #15191d;
  --muted: #5f6770;
  --rich: #1e2b34;
  --accent: #8b5e3c;
  --accent-soft: #f2e7dd;
  --accent-strong: #11202a;
  --card-surface: #ffffff;
  --line: rgba(21, 25, 29, 0.08);
  --surface: linear-gradient(135deg, #f8efe8 0%, #f7f4ef 35%, #eef3f6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  width: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  border: none;
}

.brand-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.brand strong {
  display: block;
  font-size: 0.95rem;
}

.brand small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink);
  font-weight: 700;
}

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

main {
  padding-top: 100px;
}

.hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  min-height: calc(100vh - 100px);
  align-items: center;
  padding: 24px 0 40px;
}

.page-hero {
  min-height: auto;
  padding: 40px 0 30px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero h1,
.section-header h2,
.collection-head h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.06;
}

.hero p,
.section-header p,
.info-card p,
.contact-card p,
.empty-state,
.stat-label {
  color: var(--muted);
}

.hero p {
  margin: 22px 0 0;
  max-width: 580px;
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
  box-shadow: 0 10px 24px rgba(17, 32, 42, 0.14);
  border: none;
}

.button.secondary {
  color: var(--accent-strong);
  background: #ffffff;
  border: 1px solid rgba(17, 32, 42, 0.08);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.hero-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--card-surface);
  border: 1px solid rgba(17, 32, 42, 0.06);
  box-shadow: 0 12px 32px rgba(17, 32, 42, 0.06);
}

.hero-card.spotlight {
  background: linear-gradient(135deg, #1f2f3d 0%, #8b5e3c 100%);
  color: #fff;
}

.hero-card.spotlight p,
.hero-card.spotlight .hero-label {
  color: rgba(255,255,255,0.8);
}

.hero-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.hero-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stat-value {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--rich);
}

.stat-label {
  margin-top: 8px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-header {
  max-width: 740px;
  margin-bottom: 28px;
}

.category-grid,
.info-grid,
.item-grid,
.product-grid {
  display: grid;
  gap: 20px;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-card,
.info-card,
.item-card,
.product-card,
.contact-card {
  border-radius: 24px;
  background: var(--card-surface);
  border: 1px solid rgba(17, 32, 42, 0.06);
  box-shadow: 0 12px 32px rgba(17, 32, 42, 0.06);
}

.catalog-card {
  padding: 24px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fcf6ee 100%);
  border: 1px solid rgba(17, 32, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.catalog-card:hover,
.item-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 44px rgba(17, 32, 42, 0.10);
  border-color: rgba(139, 94, 60, 0.35);
}

.catalog-card:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 20px rgba(17, 32, 42, 0.08);
}

.catalog-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.18);
}

.catalog-card h3,
.info-card h3,
.item-card h3,
.product-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

.catalog-card p,
.info-card p,
.item-card p,
.product-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-card span {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 800;
}

.info-card {
  padding: 24px;
}

.item-card {
  overflow: hidden;
  display: grid;
}

.item-card__visual,
.gallery-item {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 32, 42, 0.96) 0%, rgba(139, 94, 60, 0.9) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

/* Real product/gallery photos fill the tile completely once added */
.item-card__visual img,

.gallery-item img {
  display: block;
  aspect-ratio: 4 / 4;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  color: transparent; /* hides the browser's broken-image alt text briefly, before JS swaps in the placeholder below */
  transition: transform 320ms ease;
}

.item-card:hover .item-card__visual img,
.gallery-item:hover img {
  transform: scale(1.04);
}

/* Placeholder shown automatically when a photo hasn't been added yet
   (see photos/processed/ — script.js adds this class on image load error) */
.item-card__visual.img-missing img,
.gallery-item.img-missing img {
  display: none;
}

.item-card__visual.img-missing::after,
.gallery-item.img-missing::after {
  content: "Photo à ajouter";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-size: 0.82rem;
}

.item-card__content {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

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

.gallery-item {
  min-height: 220px;
  border-radius: 24px;
}

.collection {
  padding-bottom: 80px;
}

.collection-head {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.search-row {
  display: grid;
  gap: 8px;
}

.search-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 800;
}

.search-row input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(17, 32, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(139, 94, 60, 0.12);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-button {
  border: 1px solid rgba(17, 32, 42, 0.08);
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.filter-button:hover,
.filter-button.active {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease;
  --accent: #9fb0bb;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 56px rgba(17, 32, 42, 0.12);
}

.card-visual {
  height: 190px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(17, 32, 42, 0.96) 0%, rgba(139, 94, 60, 0.9) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.24), transparent 38%);
  pointer-events: none;
}

.card-visual-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.card-visual-overlay span {
  font-size: 1rem;
}

.card-visual-overlay small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: rgba(255,255,255,0.86);
}

.product-card:hover .card-visual {
  transform: scale(1.02);
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.category-pill {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(17, 32, 42, 0.12);
}

.mini-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(17, 32, 42, 0.16);
}

.product-info h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.dimensions {
  display: grid;
  gap: 6px;
  color: var(--muted);
  border-top: 1px solid rgba(17, 32, 42, 0.08);
  padding-top: 12px;
}

.dimensions strong {
  color: var(--rich);
  font-size: 1rem;
}

.empty-state {
  margin-top: 20px;
  padding: 20px;
  border: 1px dashed rgba(17, 32, 42, 0.16);
  border-radius: 20px;
  text-align: center;
}

.contact-section {
  padding-top: 20px;
}

.contact-card {
  padding: 30px;
  background: linear-gradient(135deg, rgba(17, 32, 42, 0.96) 0%, rgba(139, 94, 60, 0.92) 100%);
  color: #fff;
}

.contact-card p {
  color: rgba(255,255,255,0.78);
}

.footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-weight: 700;
}

.footer a {
  color: var(--rich);
}

.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.995);
  will-change: opacity, transform;
  transition: opacity 300ms cubic-bezier(.2,.9,.2,1), transform 300ms cubic-bezier(.2,.9,.2,1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .category-grid,
  .info-grid,
  .item-grid,
  .gallery-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  main {
    padding-top: 24px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .category-grid,
  .info-grid,
  .item-grid,
  .gallery-grid,
  .product-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
/* Container that holds both images */
.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Adjust this ratio (e.g., 4/5 or 1/1) based on what looks best for your grid */
  overflow: hidden;
  background-color: #f4f4f4; /* A light fallback color that fits metal cabinets */
}

/* The stretched, blurred background layer */
.image-wrapper .img-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.85); /* Slightly darkened so the main image pops */
  transform: scale(1.15); /* Hides the harsh borders from the blur effect */
  pointer-events: none; /* Stops users from accidentally dragging the background image */
}

/* The crisp, centered main image */
.image-wrapper .img-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}