/* =========================================
   DESIGNER EVENT — Style Sheet
   Palette: #000000 | #FFFFFF | #C9A96E (or)
   Fonts: Playfair Display + Inter
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black: #000000;
  --white: #FFFFFF;
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --gold-dark: #A8893A;
  --gray-100: #F8F8F6;
  --gray-200: #EBEBEB;
  --gray-400: #9A9A9A;
  --gray-600: #5A5A5A;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-sans); }
ul { list-style: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===========================
   NAV
   =========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--gray-200);
  backdrop-filter: blur(12px);
}

.nav-logo img {
  height: 40px;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }

#navbar.scrolled .nav-links a { color: var(--black); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--gold);
  color: var(--white) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition) !important;
}

.nav-cta:hover { background: var(--gold-dark) !important; }
.nav-cta::after { display: none !important; }

.nav-cta svg { flex-shrink: 0; }

/* Mobile nav toggle */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

#navbar.scrolled .nav-burger span { background: var(--black); }

/* ===========================
   HERO
   =========================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transform: scale(1.05);
  animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.3) 60%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 780px;
  animation: heroFade 1.2s ease-out 0.3s both;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}

.hero-scroll span { width: 1px; height: 40px; background: rgba(255,255,255,0.4); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===========================
   SECTION UTILITIES
   =========================== */
section { padding: 100px 0; }

.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-subtitle {
  margin-top: 14px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   CATEGORIES
   =========================== */
#categories {
  background: var(--gray-100);
  padding: 80px 0;
}

.categories-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 48px 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  /* Fade les bords pour suggérer qu'il y a plus à voir */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.categories-grid::-webkit-scrollbar { height: 6px; }
.categories-grid::-webkit-scrollbar-track { background: transparent; }
.categories-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.category-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 320px;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: var(--black);
  scroll-snap-align: start;
}

.category-card img {
  background: var(--gray-100);
}

.categories-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.categories-hint svg { color: var(--gold); }

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity var(--transition), transform 0.6s ease;
}

.category-card:hover img {
  opacity: 0.5;
  transform: scale(1.04);
}

.category-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  color: var(--white);
}

.category-count {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.category-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.category-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  transform: translateX(0);
  transition: transform var(--transition);
}

.category-card:hover .category-arrow { transform: translateX(8px); }
.category-arrow svg { transition: transform var(--transition); }

/* ===========================
   CATALOGUE
   =========================== */
#catalogue { background: var(--white); }

.catalogue-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 14px 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--black);
  border-bottom-color: var(--gold);
}

.tab-btn:hover { color: var(--black); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Subcategory filter */
.subcat-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.subcat-btn {
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  color: var(--gray-600);
  transition: all var(--transition);
}

.subcat-btn.active,
.subcat-btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2px;
}

.product-card {
  background: var(--white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  z-index: 1;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.product-overlay span {
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 10px 22px;
}

.product-info {
  padding: 18px 20px 20px;
}

.product-subcat {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.product-price {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold-dark);
}

/* ===========================
   PACK CARD (sans image)
   =========================== */
.pack-card {
  background: var(--black);
  color: var(--white);
  border: none;
  aspect-ratio: 1;
  display: flex;
}

.pack-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pack-card-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 26px;
  gap: 4px;
  background:
    radial-gradient(circle at 50% 0%, rgba(201,169,110,0.14), transparent 60%);
  border: 1px solid rgba(201,169,110,0.25);
}

.pack-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.pack-card-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
}

.pack-card-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.pack-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: gap var(--transition);
}

.pack-card:hover .pack-card-cta { gap: 14px; }

/* ===========================
   MODAL
   =========================== */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

#modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

/* Modale sans galerie (ex. packs) — une seule colonne */
.modal.no-gallery {
  grid-template-columns: 1fr;
  max-width: 560px;
}
.modal.no-gallery .modal-gallery { display: none; }

#modal-overlay.open .modal { transform: translateY(0); }

.modal-gallery {
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.modal-gallery-main {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--white);
  padding: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}

.modal-thumb.active { border-color: var(--gold); }

.modal-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.1);
  border-radius: 50%;
  transition: background var(--transition);
  z-index: 10;
}

.modal-close:hover { background: rgba(0,0,0,0.2); }

.modal-category {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}

.modal-price {
  font-size: 20px;
  font-weight: 500;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.modal-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}

.modal-description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 24px;
  flex: 1;
}

.modal-specs {
  margin-bottom: 28px;
}

.modal-specs-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.modal-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  gap: 16px;
}

.modal-spec-label {
  color: var(--gray-600);
  flex-shrink: 0;
}

.modal-spec-value {
  text-align: right;
  font-weight: 500;
}

/* Checklist des inclusions (packs) */
.specs-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--gray-600);
}

.checklist-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.checklist-item span { color: var(--black); }

/* Quantity selector in modal */
.modal-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.modal-qty-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}

.qty-btn:hover {
  background: var(--black);
  color: var(--white);
}

.qty-input {
  width: 52px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.btn-devis {
  width: 100%;
  padding: 15px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--transition), transform var(--transition);
}

.btn-devis:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.btn-devis.added {
  background: var(--gold);
}

/* ===========================
   DEVIS BASKET
   =========================== */
#devis-basket {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1500;
}

.basket-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: background var(--transition), transform var(--transition);
  position: relative;
}

.basket-toggle:hover {
  background: var(--gold);
  transform: scale(1.08);
}

.basket-count {
  position: absolute;
  top: -4px; right: -4px;
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.basket-count.visible { display: flex; }

.basket-panel {
  position: absolute;
  bottom: 72px; right: 0;
  width: 340px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  display: none;
  flex-direction: column;
  max-height: 480px;
}

.basket-panel.open { display: flex; }

.basket-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.basket-header h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
}

.basket-clear {
  font-size: 11px;
  color: var(--gray-400);
  text-decoration: underline;
  transition: color var(--transition);
}

.basket-clear:hover { color: var(--black); }

.basket-items {
  overflow-y: auto;
  flex: 1;
  padding: 12px 0;
}

.basket-empty {
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  font-style: italic;
}

.basket-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  transition: background var(--transition);
}

.basket-item:hover { background: var(--gray-100); }

.basket-item-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--gray-100);
  padding: 4px;
  flex-shrink: 0;
}

.basket-item-info { flex: 1; min-width: 0; }

.basket-item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.basket-item-remove {
  color: var(--gray-400);
  font-size: 16px;
  line-height: 1;
  transition: color var(--transition);
  flex-shrink: 0;
  margin-left: 4px;
}

.basket-item-remove:hover { color: var(--black); }

.basket-item-qty-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.basket-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  line-height: 1;
}

.basket-qty-btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.basket-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.basket-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
}

.btn-send-wa {
  width: 100%;
  padding: 14px;
  background: #25D366;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 2px;
  transition: background var(--transition);
}

.btn-send-wa:hover { background: #128C7E; }

/* ===========================
   CTA SECTION
   =========================== */
#cta {
  background: var(--black);
  padding: 80px 0;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}

.cta-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-wa-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: #25D366;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}

.btn-wa-main:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: #0A0A0A;
  padding: 56px 0 28px;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 600;
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col li a,
.footer-col li {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
  line-height: 1.5;
}

.footer-col li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.footer-bottom a {
  color: var(--gold);
  margin-left: 4px;
}

/* ===========================
   ANIMATIONS (scroll reveal)
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  #navbar { padding: 0 28px; }
  .section-inner { padding: 0 28px; }
  .footer-inner { padding: 0 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .categories-grid { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 768px) {
  /* ---- LAYOUT GÉNÉRAL ---- */
  section { padding: 56px 0; }
  .section-inner { padding: 0 20px; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 14px; padding: 0 4px; }

  /* ---- NAVBAR ---- */
  #navbar { padding: 0 16px; height: 64px; }
  .nav-logo img { height: 32px; }

  .nav-links { display: none; }
  .nav-burger {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 24px 20px 32px;
    gap: 0;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .nav-links.mobile-open li {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-links.mobile-open li:last-child {
    border-bottom: none;
    padding-top: 22px;
  }
  .nav-links.mobile-open a { color: var(--black) !important; font-size: 13px; letter-spacing: 0.18em; }
  .nav-links.mobile-open .nav-cta {
    justify-content: center;
    padding: 14px 20px;
    color: var(--white) !important;
    background: var(--black);
    letter-spacing: 0.1em;
  }
  .nav-links.mobile-open .nav-cta:hover { background: var(--gold-dark) !important; }

  /* ---- HERO ---- */
  #hero { min-height: 560px; height: 88vh; }
  .hero-content { padding: 0 24px; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 14px; letter-spacing: 0.2em; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 20px; }
  .hero-title { margin-bottom: 18px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 28px; line-height: 1.6; }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 11px;
  }

  .hero-scroll { bottom: 18px; font-size: 9px; }
  .hero-scroll span { height: 28px; }

  /* ---- CATÉGORIES (carrousel) ---- */
  #categories { padding: 56px 0 40px; }
  .categories-grid {
    padding: 8px 20px 24px;
    gap: 12px;
    /* Le fade gauche/droite est trop marqué avec petits paddings, on l'allège */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .category-card { flex-basis: 78vw; aspect-ratio: 4/5; }
  .category-card-body { padding: 24px 22px; }
  .category-name { font-size: 22px; }
  .categories-hint { font-size: 10px; margin-top: 6px; }

  /* ---- CATALOGUE — onglets en scroll horizontal ---- */
  .catalogue-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -20px 32px;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .catalogue-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { padding: 14px 18px; font-size: 11px; flex-shrink: 0; }

  /* Sous-catégories — scroll horizontal aussi */
  .subcat-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    margin: 0 -20px 28px;
    padding: 4px 20px;
    scrollbar-width: none;
  }
  .subcat-filter::-webkit-scrollbar { display: none; }
  .subcat-btn { flex-shrink: 0; padding: 8px 16px; }

  /* ---- PRODUITS — 2 colonnes serrées ---- */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card { border: 1px solid var(--gray-200); }
  .product-img-wrap img { padding: 10px; }
  .product-info { padding: 12px 12px 14px; }
  .product-subcat { font-size: 9px; margin-bottom: 4px; }
  .product-name { font-size: 13px; line-height: 1.25; }

  /* L'overlay au survol n'a pas de sens en tactile */
  .product-overlay { display: none; }

  /* ---- MODAL FICHE PRODUIT — version compacte sans scroll ---- */
  #modal-overlay { padding: 16px; align-items: center; justify-content: center; }

  .modal {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    grid-template-areas:
      "gallery gallery"
      "category category"
      "title    title"
      "price    price"
      "divider  divider"
      "desc     desc"
      "specs    specs"
      "qty      btn";
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  }

  .modal-gallery {
    grid-area: gallery;
    background: var(--gray-100);
    min-height: 0;
  }
  .modal-gallery-main {
    aspect-ratio: auto;
    height: 34vh;
    max-height: 280px;
    padding: 12px;
  }
  .modal-gallery-thumbs { display: none !important; }

  .modal-body {
    display: contents; /* on laisse les enfants se placer dans la grille de .modal */
  }

  /* Le close devient flottant SUR l'overlay (hors de la pop-up) */
  .modal-close {
    position: fixed;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
    z-index: 2100;
  }
  .modal-close svg { width: 16px; height: 16px; }

  .modal-category {
    grid-area: category;
    font-size: 9px;
    padding: 16px 18px 0;
    margin: 0;
    letter-spacing: 0.2em;
  }
  .modal-title {
    grid-area: title;
    font-size: 19px;
    line-height: 1.2;
    padding: 4px 18px 0;
    margin: 0;
  }
  .modal-price {
    grid-area: price;
    font-size: 17px;
    padding: 8px 18px 0;
    margin: 0;
  }
  .modal-divider {
    grid-area: divider;
    margin: 10px 18px 0;
  }

  .modal-description {
    grid-area: desc;
    font-size: 12.5px;
    line-height: 1.55;
    padding: 10px 18px 0;
    margin: 0;
    /* Limite à 3 lignes pour éviter le scroll */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .modal-specs {
    grid-area: specs;
    padding: 12px 18px 0;
    margin: 0;
  }
  .modal-specs-title { display: none; }

  /* Pour les packs : on réaffiche le titre des inclusions */
  .modal.no-gallery .modal-specs-title {
    display: block;
    font-size: 10px;
    margin-bottom: 10px;
  }
  .modal.no-gallery .checklist-item { font-size: 13px; }

  /* Specs en chips compactes côte à côte */
  #modal-specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .modal-spec {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-100);
    border: none;
    border-radius: 100px;
    font-size: 11px;
  }
  .modal-spec-label {
    color: var(--gold);
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .modal-spec-value {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--black);
    text-align: left;
  }

  /* Quantité + Devis côte à côte */
  .modal-qty-wrap {
    grid-area: qty;
    background: none;
    border: none;
    padding: 14px 0 14px 18px;
    margin: 0;
    justify-content: flex-start;
  }
  .modal-qty-label { display: none; }
  .qty-control { border-color: var(--gray-200); }
  .qty-btn { width: 36px; height: 36px; font-size: 18px; }
  .qty-input { width: 44px; height: 36px; font-size: 14px; }

  .btn-devis {
    grid-area: btn;
    padding: 14px 16px;
    font-size: 11px;
    margin: 14px 18px 14px 10px;
    border-radius: 4px;
  }
  .btn-devis svg { width: 14px; height: 14px; }

  /* ---- PANIER DEVIS — slide-up plein écran ---- */
  #devis-basket { bottom: 16px; right: 16px; left: auto; }
  .basket-toggle { width: 56px; height: 56px; }

  .basket-panel {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100vw;
    max-height: 85vh;
    border: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex !important;
    visibility: hidden;
  }
  .basket-panel.open { transform: translateY(0); visibility: visible; }

  /* Petite poignée pour l'aspect natif */
  .basket-panel::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
  }
  .basket-header { padding: 22px 20px 16px; }
  .basket-header h3 { font-size: 17px; }
  .basket-items { max-height: calc(85vh - 180px); padding: 8px 0; }
  .basket-item { padding: 12px 20px; gap: 10px; }
  .basket-item-img { width: 52px; height: 52px; }
  .basket-item-name { font-size: 13px; }
  .basket-qty-btn { width: 28px; height: 28px; font-size: 16px; }
  .basket-qty-val { min-width: 22px; font-size: 14px; }
  .basket-item-remove { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 18px; }

  .basket-footer { padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .btn-send-wa { padding: 16px; font-size: 12px; }

  /* ---- CTA ---- */
  #cta { padding: 56px 0; }
  .cta-inner { padding: 0 24px; }
  .cta-title { font-size: 26px; }
  .cta-text { font-size: 14px; margin-bottom: 24px; }
  .btn-wa-main { width: 100%; max-width: 320px; padding: 16px 24px; font-size: 12px; justify-content: center; }
  .cta-note { font-size: 11px; }

  /* ---- FOOTER ---- */
  footer { padding: 40px 0 24px; }
  .footer-inner { padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; margin-bottom: 20px; }
  .footer-brand img { height: 30px; }
  .footer-tagline { font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 480px) {
  /* Sur très petit écran, on simplifie encore */
  #hero { min-height: 520px; }
  .hero-title { font-size: 38px; line-height: 1.05; }
  .hero-subtitle { font-size: 13px; }

  .category-card { flex-basis: 82vw; }

  /* Une seule colonne produits sur petit smartphone — cards en pleine largeur, plus lisibles */
  .products-grid { grid-template-columns: 1fr; gap: 8px; }
  .product-card { display: grid; grid-template-columns: 130px 1fr; align-items: stretch; }
  .product-img-wrap { aspect-ratio: 1; }
  .product-info { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
  .product-name { font-size: 14px; }

  #devis-basket { bottom: 16px; right: 16px; }
  .basket-toggle { width: 54px; height: 54px; }

  .modal-title { font-size: 18px; }
  .modal-gallery-main { height: 32vh; max-height: 240px; padding: 10px; }
  .modal-description { -webkit-line-clamp: 2; }
}

@media (max-width: 360px) {
  /* iPhone SE et plus petits */
  .section-inner { padding: 0 16px; }
  #navbar { padding: 0 12px; }
  .hero-content { padding: 0 18px; }
  .product-card { grid-template-columns: 110px 1fr; }
}
