/* ============================================
   PATTES & COMPAGNIE — Design System Airbnb
   --------------------------------------------
   Direction artistique : chaleureux, épuré,
   centré sur les photos produits.
   Blanc dominant, accent rouge corail.
   ============================================ */

:root {
  --bg: #faf5ee;
  --bg-alt: #f5efe6;
  --surface: #ffffff;
  --accent: #c45a3a;
  --accent-strong: #a3472c;
  --accent-soft: #e8c8bc;
  --text: #2b2b2b;
  --text-muted: #6b5d4f;
  --border: #e0d5c8;
  --border-strong: #d4c7b6;
  --shadow-1: rgba(163, 71, 44, 0.04) 0px 0px 0px 1px, rgba(163, 71, 44, 0.06) 0px 2px 6px, rgba(163, 71, 44, 0.08) 0px 4px 12px;
  --shadow-2: rgba(163, 71, 44, 0.08) 0px 2px 8px, rgba(163, 71, 44, 0.12) 0px 8px 24px;
  --radius-sm: 8px;
  --radius: 20px;
  --radius-full: 999px;
  --font: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font); color: var(--text); letter-spacing: -0.18px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea { font-family: var(--font); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 100px 32px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(250, 245, 238, 0.3) 0%, rgba(250, 245, 238, 0.6) 30%, #faf5ee 100%);
  border-radius: 0 0 40px 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 120%, rgba(196, 90, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 24px;
  color: var(--text);
  position: relative;
}
.hero .accent { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-dark {
  background: var(--text);
  color: #fff;
}
.btn-dark:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Search */
.search-section {
  max-width: 600px;
  margin: -20px auto 0;
  padding: 0 32px;
  position: relative;
  z-index: 10;
}
.search-box { position: relative; }
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  outline: none;
  transition: box-shadow 0.25s;
}
.search-input:focus {
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.search-input::placeholder { color: #b0b0b0; }

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Categories */
.categories-section {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 32px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
}
.category-icon {
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
}
.category-name { font-weight: 700; font-size: 0.95rem; }
.category-count { font-size: 0.8rem; color: var(--text-muted); }

/* Products */
.products-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 32px;
}
.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.cat-pill .cat-count {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}
.cat-pill.active .cat-count { background: rgba(255,255,255,0.2); }

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: rgba(196, 90, 58, 0.3);
}
.product-img {
  position: relative;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
  border-radius: var(--radius-sm);
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.stars { color: #f5a623; font-size: 0.9rem; }
.rating-text { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s;
}
.product-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }
.empty-reset {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s;
}
.empty-reset:hover { background: var(--accent); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--text); color: #fff; border-color: var(--text); }

/* About */
.about-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 32px;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--border);
}
.about-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text);
}
.about-text > p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 560px;
}
.about-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.about-point-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  font-size: 1.1rem;
}
.about-point strong { display: block; font-size: 0.98rem; margin-bottom: 2px; color: var(--text); }
.about-point p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* Footer */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 32px 24px;
  margin-top: 80px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-disclosure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-disclosure strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 0.88rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all 0.3s;
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { padding: 12px 20px; }
  .nav-links { display: none; }
  .hero { padding: 60px 20px 40px; }
  .search-section { padding: 0 20px; }
  .categories-section, .products-section, .about-section, .footer { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}