/* ===================================================
   TEMPLATELABO.COM — FIXED PIXEL-PERFECT SLIDESCARNIVAL DESIGN SYSTEM
   =================================================== */


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

:root, html[data-theme="light"] {
  --bg-page: #FAF7F2;          /* SlidesCarnival Warm Beige Hero Background */
  --bg-surface: #FFFFFF;
  --bg-hover: #F2ECE1;
  --text-main: #0F172A;
  --text-muted: #576574;
  --border-light: #E8E2D8;

  --logo-color: #0F172A;
  --logo-accent: #FF6B35;

  --primary: #E05638;          /* SlidesCarnival Warm Coral Red/Orange */
  --primary-hover: #C84326;
  --primary-rgb: 224, 86, 56;
  --primary-soft: #FFF1EC;
  --etsy-color: #F1641E;
  --etsy-bg: #FFF3ED;

  --card-bg: #FFFFFF;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --search-border: #0F172A;
}

html[data-theme="dark"] {
  --bg-page: #0B0F19;
  --bg-surface: #111827;
  --bg-hover: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-light: #334155;

  --logo-color: #F8FAFC;
  --logo-accent: #FF6B35;

  --primary: #FF6B35;
  --primary-hover: #FF8555;
  --primary-rgb: 255, 107, 53;
  --primary-soft: rgba(255, 107, 53, 0.15);
  --etsy-color: #FF7D3B;
  --etsy-bg: rgba(241, 100, 30, 0.15);

  --card-bg: #111827;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
  --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.3);
  --search-border: #38BDF8;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   TOP HEADER & COMPACT LOGO FIX
   =================================================== */
.site-header {
  background: rgba(250, 247, 242, 0.85); /* Slightly transparent for light mode */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.25s ease;
}

html[data-theme="dark"] .site-header {
  background: rgba(11, 15, 25, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Compact Clean Logo (Fixes giant logo bug) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
}

.official-logo-svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.logo-text-official {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.logo-text-bold {
  font-weight: 800;
  color: var(--primary);
}

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

.nav-item {
  position: relative;
}

.dropdown-toggle {
  background: transparent;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.dropdown-toggle:hover {
  background: rgba(0,0,0,0.05);
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 8px 0;
  min-width: 190px;
  display: none;
  flex-direction: column;
  z-index: 1000;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

html[data-theme="dark"] .dropdown-menu {
  background: #111827;
}

.nav-item.open > .dropdown-menu {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.dropdown-menu a {
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

.ai-tools-badge {
  background: #FCE7F3;
  color: #9D174D;
  border: 1px solid #FBCFE8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-input-wrapper.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper.header-search input {
  width: 220px;
  height: 38px;
  padding: 0 36px 0 12px;
  border: 2px solid var(--search-border);
  border-radius: 6px;
  font-size: 13.5px;
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  font-family: 'Inter', sans-serif;
}

.search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.wishlist-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}

.wishlist-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

html[data-theme="light"] .moon-icon { display: inline; }
html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: inline; }
html[data-theme="dark"] .moon-icon { display: none; }

.lang-switch-btn {
  background: transparent;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

/* ===================================================
   HERO SECTION (BEIGE CENTERING FIX)
   =================================================== */
.slidescarnival-hero {
  background: var(--bg-page);
  padding: 56px 24px 64px;
  text-align: center;
  transition: background-color 0.25s ease;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin: 0 auto 16px;
  text-align: center;
}

.hero-orange-accent {
  color: var(--primary);
  font-weight: 900;
}

.hero-search-box-wrapper {
  max-width: 660px;
  margin: 32px auto 20px;
}

.hero-search-bar {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--text-main);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.15);
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--text-main);
}

.hero-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.hero-search-submit-btn {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.hero-search-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.hero-popular-keywords {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.popular-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.popular-pills-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

html[data-theme="dark"] .keyword-pill-btn {
  background: #1E293B;
  border-color: #334155;
}

.keyword-pill-btn:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ===================================================
   MAIN WHITE SHEET CONTAINER (FIXES STACKING BUG)
   =================================================== */
.main-sheet-container {
  background: var(--bg-surface);
  border-radius: 32px 32px 0 0;
  padding-top: 48px;
  padding-bottom: 80px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.03);
  transition: background-color 0.25s ease;
}

/* FEATURED COLLECTIONS GRID FIX */
.featured-collections-section {
  margin-bottom: 56px;
}

.collections-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.4px;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
}

.collection-thumb {
  position: relative;
  width: 100%;
  height: 110px;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collection-card:hover .collection-thumb {
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.card-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.card-bg-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.3s ease;
}

.collection-card:hover .card-bg-graphic {
  transform: scale(1.05);
}

.thumb-title {
  position: relative;
  z-index: 2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #FFFFFF;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 0 6px;
}

.bg-visual-excel {
  background: linear-gradient(135deg, #34D399 0%, #059669 100%);
}

.bg-visual-notion {
  background: linear-gradient(135deg, #818CF8 0%, #4F46E5 100%);
}

.bg-visual-n8n {
  background: linear-gradient(135deg, #F472B6 0%, #DB2777 100%);
}

.bg-visual-hr {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.bg-visual-marketing {
  background: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%);
}

.bg-visual-project {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.collection-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* ===================================================
   CATALOG & PRODUCTS GRID (3 COLUMNS FIX)
   =================================================== */
.catalog-section {
  padding-bottom: 20px;
}

.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.title-with-badge {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.title-with-badge h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
}

.item-count-badge {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

.quick-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 99px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.pill-btn:hover, .pill-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.pill-btn.etsy-pill {
  background: var(--etsy-bg);
  color: var(--etsy-color);
  border-color: rgba(241, 100, 30, 0.4);
}

.pill-btn.etsy-pill:hover, .pill-btn.etsy-pill.active {
  background: var(--etsy-color);
  color: #FFFFFF;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

/* LOAD MORE BUTTON DIVIDER (SLIDESCARNIVAL EXACT PATTERN) */
.load-more-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 56px 0 32px;
}

.load-more-divider-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
  z-index: 1;
}

.load-more-btn {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border: 1.5px solid var(--text-main);
  border-radius: 99px;
  padding: 8px 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.load-more-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.25);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* MULTIPLE THEMATIC SHOWCASE SECTIONS */
.thematic-sections-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.theme-category-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.theme-sec-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.theme-sec-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
  margin-bottom: 8px;
}

.template-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.template-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(var(--primary-rgb), 0.3); /* Subtle primary tint on hover */
}

.card-visual-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.bg-theme-1 { background: linear-gradient(135deg, #FACC15, #EAB308); }
.bg-theme-2 { background: linear-gradient(135deg, #93C5FD, #3B82F6); }
.bg-theme-3 { background: linear-gradient(135deg, #FDE68A, #F59E0B); }
.bg-theme-4 { background: linear-gradient(135deg, #C084FC, #9333EA); }
.bg-theme-5 { background: linear-gradient(135deg, #1E293B, #0F172A); }
.bg-theme-6 { background: linear-gradient(135deg, #64748B, #475569); }

.card-image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
}
.card-thumbnail-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}

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

.card-fav-btn, .card-format-badges, .trending-badge {
  z-index: 2;
}

.card-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FFFFFF;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  color: #64748B;
  transition: all 0.15s ease;
}

.card-fav-btn:hover, .card-fav-btn.active {
  color: #EF4444;
  transform: scale(1.1);
}

.card-format-badges {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.format-badge {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.download-bar {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.download-bar:hover {
  border-color: var(--primary);
}

.download-bar.etsy-link:hover {
  border-color: var(--etsy-color);
}

.download-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-label.etsy-btn-text {
  color: var(--etsy-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.compatibility-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.platform-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.icon-sheets { background: #4285F4; }
.icon-excel { background: #107C41; }
.icon-notion { background: #000000; }
.icon-n8n { background: #EA580C; }

.card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}

.price-tag-badge {
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
}

.price-tag-badge.free { color: #10B981; }
.price-tag-badge.paid { color: var(--etsy-color); }

/* ===================================================
   VALUE PROPOSITION SECTION
   =================================================== */
.features-value-section {
  padding: 60px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.value-box {
  text-align: center;
  padding: 24px;
}

.value-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.value-box h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.value-box p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================
   SLIDESCARNIVAL TAG DIRECTORY SECTION
   =================================================== */
.tag-directory-section {
  padding: 64px 0 20px;
  background: var(--bg-surface);
}

.directory-main-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 36px;
  letter-spacing: -0.5px;
}

.directory-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.directory-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.directory-col-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.tag-pills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.dir-tag-pill {
  background: #FAF7F2;
  border: 1px solid #EAE3D5;
  color: #334155;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

html[data-theme="dark"] .dir-tag-pill {
  background: #1E293B;
  border-color: #334155;
  color: #E2E8F0;
}

.dir-tag-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.minimal-accordion-list {
  display: flex;
  flex-direction: column;
}

.minimal-acc-item {
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  transition: border-color 0.2s ease;
}

.minimal-acc-item:first-child {
  border-top: 1px solid var(--border-light);
}

.minimal-acc-header {
  width: 100%;
  padding: 18px 0;
  background: transparent;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s ease;
}

.minimal-acc-header:hover {
  color: var(--primary);
}

.minimal-acc-chevron {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.15s ease;
}

.minimal-acc-item.active .minimal-acc-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.minimal-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.minimal-acc-item.active .minimal-acc-body {
  max-height: 200px;
  padding: 0 0 20px 0;
}

.minimal-acc-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.minimal-acc-body code {
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary);
}

/* ===================================================
   CORAL WAVE FOOTER (TEMPLATELABO BRAND CHARTER MATCH)
   =================================================== */
.coral-footer {
  position: relative;
  background: #E37A63;
  color: #FFFFFF;
  padding: 0 0 48px;
  font-family: 'Inter', sans-serif;
  margin-top: 60px;
}

html[data-theme="dark"] .coral-footer {
  background: linear-gradient(135deg, #1E1B2E 0%, #0F0E17 100%);
}

.footer-wave-shape {
  position: relative;
  width: 100%;
  height: 50px;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.footer-wave-shape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-path-fill {
  fill: var(--bg-page);
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 20px;
}

.logo-icon-wrapper.mini-logo {
  width: 34px;
  height: 34px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
}

.logo-text-official.light-text {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo-text-bold-white {
  font-weight: 900;
  color: #FFFFFF;
}

.footer-pitch-text {
  font-size: 14.5px;
  color: #FFFFFF;
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 24px;
  font-weight: 400;
  opacity: 0.95;
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-box:hover {
  background: #FFFFFF;
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-col-header {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list a {
  color: #FFFFFF;
  opacity: 0.9;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: opacity 0.15s ease, text-decoration 0.15s ease;
}

.footer-link-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 500;
  opacity: 0.95;
}

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 4px;
  padding: 4px 10px;
  height: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #1E293B;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
  cursor: default;
}

.pay-logo-card:hover {
  transform: translateY(-2px);
}

.pay-amex { color: #016FD0; }
.pay-apple { color: #000000; }
.pay-bancontact { color: #002D62; }
.pay-cb { color: #002D62; }
.pay-eps { color: #000000; font-style: italic; }
.pay-ideal { color: #CC0066; }
.pay-mastercard { color: #EB001B; }
.pay-mbway { color: #E30613; }
.pay-paypal { color: #003087; }
.pay-shoppay { color: #5A31F4; }
.pay-visa { color: #1A1F71; font-style: italic; font-size: 12px; }

/* STICKY PROMO & FLOATING WIDGETS */
.sticky-promo-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left bottom;
  background: #FFFFFF;
  color: #E07A5F;
  border: 1px solid #EAE3D5;
  border-bottom: none;
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99;
  transition: transform 0.2s ease;
}

.sticky-promo-tab:hover {
  background: #E07A5F;
  color: #FFFFFF;
}

.floating-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #E07A5F;
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s ease;
}

.floating-chat-widget:hover {
  transform: scale(1.1);
}

.chat-online-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #FFFFFF;
}
  font-weight: 800;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-subtext {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-copyright {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-copyright a:hover {
  color: #FFFFFF;
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transform: translateY(150%) scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-notification.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Skeleton Loading Animation */
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  height: 380px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1200px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 1100px) {
  .minimal-grid { grid-template-columns: 1fr; gap: 40px; }
  .directory-columns-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .directory-columns-grid { grid-template-columns: 1fr; }
  .footer-columns-grid { grid-template-columns: 1fr 1fr; }
  .search-input-wrapper.header-search { display: none; }
}

@media (max-width: 540px) {
  .products-grid { grid-template-columns: 1fr; }
  .collections-grid { grid-template-columns: 1fr; }
  .footer-columns-grid { grid-template-columns: 1fr; }
  .header-container { flex-wrap: wrap; }
  .footer-bottom-bar { flex-direction: column; text-align: center; }
}

/* Gamification & Psychological Triggers */
.trending-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FF3366;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(255, 51, 102, 0.4);
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: gentle-pulse 2s infinite ease-in-out;
}

@keyframes gentle-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.social-proof-downloads {
  font-size: 12px;
  color: #10B981;
  font-weight: 600;
  margin-top: -6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Heart pop animation */
.pop-animation {
  animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Floating Action Bar (Mobile) & Back to Top */
.floating-mobile-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 8px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 990;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .floating-mobile-bar {
  background: rgba(17, 24, 39, 0.95);
}

.fab-btn {
  background: none;
  border: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .floating-mobile-bar {
    display: flex;
  }
}

/* =========================================
   SEO FAQ SECTION
   ========================================= */
.seo-faq-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
}

.faq-main-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 8px;
}

.faq-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-sm);
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.faq-icon {
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-page);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.active .faq-answer-content {
  max-height: 500px; /* arbitrary large value for transition */
  padding: 0 24px 24px 24px;
  border-top: 1px solid var(--border-light);
}

.faq-answer-content strong {
  color: var(--text-main);
  font-weight: 700;
}

/* =========================================
   ADVANCED FEATURES (SCROLL, SHARE, LAZY)
   ========================================= */

/* 8. Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* 20. Copy Link Button */
.card-share-btn {
  position: absolute;
  top: 12px;
  right: 52px; /* Next to fav btn */
  background: #FFFFFF;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  color: #64748B;
  transition: all 0.15s ease;
  z-index: 2;
}

.card-share-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* 25. Lazy Loading Fade In */
.lazy-fade-in {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lazy-fade-in.loaded {
  opacity: 1;
}

/* =========================================
   MEGA MENU (9, 22) & MARQUEE (15, 16)
   ========================================= */

/* Promo Marquee */
.promo-marquee {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1000;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  margin-right: 40px;
}

.countdown-timer {
  background: rgba(0,0,0,0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mega Menu */
.mega-dropdown .dropdown-menu {
  width: 320px;
  padding: 12px;
  flex-direction: column;
  gap: 8px;
}

.nav-count-badge {
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 11px;
  margin-left: 6px;
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
  text-decoration: none;
}

.mega-link:hover {
  background: var(--bg-hover);
}

.mega-icon {
  font-size: 20px;
  margin-top: 2px;
}

.mega-text {
  display: flex;
  flex-direction: column;
}

.mega-text strong {
  font-size: 14px;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mega-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================
   REVIEWS & BEFORE/AFTER (17, 18)
   ========================================= */

/* Reviews Carousel */
.reviews-carousel {
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
  position: relative;
}

.review-track {
  display: inline-flex;
  gap: 24px;
  animation: review-scroll 30s linear infinite;
}

.review-track:hover {
  animation-play-state: paused;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: normal;
}

@keyframes review-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Requires duplicated content in track */
}

/* Before / After Slider */
.ba-slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  background: #E2E8F0; /* Fallback */
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-before {
  /* Ugly spreadsheet styling */
  background-color: #f3f4f6;
  background-image: linear-gradient(#d1d5db 1px, transparent 1px), linear-gradient(90deg, #d1d5db 1px, transparent 1px);
  background-size: 40px 40px;
}

.ba-after {
  /* Beautiful template styling */
  background: linear-gradient(135deg, #10B981, #3B82F6);
  width: 50%; /* JS will update this */
  border-right: 2px solid white;
  overflow: hidden;
}

.ba-label {
  position: absolute;
  top: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.ba-before .ba-label { right: 16px; }
.ba-after .ba-label { left: 16px; }

/* Photos avant / après : l'image garde sa taille quand le curseur découpe le panneau « après » */
.ba-photo { position: absolute; top: 0; left: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: left top; }
.ba-before .ba-label, .ba-after .ba-label { z-index: 2; }
.ba-slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

.ba-slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  z-index: 5;
  pointer-events: none;
  transform: translateX(-50%);
}

.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
}

/* =========================================
   LOT 3: MICRO-INTERACTIONS & EFFETS
   ========================================= */

  /* Custom cursor removed per user request */

/* (6) Button Glow & (26) Ripple */
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.btn-glow:hover::after { opacity: 1; }

.ripple-span {
  position: absolute; border-radius: 50%; transform: scale(0);
  animation: ripple 0.6s linear; background: rgba(255,255,255,0.4); pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* (30) FAB Social Share */
.fab-share {
  position: fixed; bottom: 80px; right: 20px; width: 50px; height: 50px;
  background: var(--primary); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); cursor: pointer; z-index: 90;
  transition: transform 0.3s;
}
.fab-share:hover { transform: scale(1.1); }
.fab-menu {
  position: absolute; bottom: 60px; right: 0; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.fab-share:hover .fab-menu { opacity: 1; pointer-events: auto; transform: translateY(-10px); }
.fab-menu a {
  width: 40px; height: 40px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-decoration: none;
}

/* (27) Surlignés */
mark { background: transparent; position: relative; color: inherit; padding: 0 4px; }
mark::before {
  content: ''; position: absolute; bottom: 2px; left: 0; width: 0; height: 40%;
  background: rgba(245, 158, 11, 0.4); z-index: -1; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
mark.highlight-active::before { width: 100%; }

/* (7) Particles Light */
.css-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; pointer-events: none;
}
.particle {
  position: absolute; width: 6px; height: 6px; background: rgba(59, 130, 246, 0.2); border-radius: 50%;
  animation: float-up 10s infinite linear;
}
@keyframes float-up { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-100px) scale(2); opacity: 0; } }

/* =========================================
   RECHERCHE INTELLIGENTE (ALGOLIA-STYLE)
   ========================================= */
.search-bar-wrapper {
  position: relative;
  z-index: 101; /* Above overlay */
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.search-overlay.active {
  display: block;
  opacity: 1;
}

.search-autocomplete-dropdown {
  text-align: left;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  max-height: 400px;
  overflow-y: auto;
  z-index: 102;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s;
}
.search-autocomplete-dropdown.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.search-result-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text-main);
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover,
.search-result-item.selected {
  background: var(--bg-main);
}
.search-result-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 16px;
}
.search-result-info {
  flex: 1;
}
.search-result-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 4px 0;
}
.search-result-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-result-price {
  font-weight: 700;
  color: var(--primary);
  margin-left: auto;
  font-size: 14px;
}
.search-no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

/* =========================================
   AUTH SECTION & GOOGLE LOGIN
   ========================================= */
.auth-section {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 12px;
}
.auth-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-login-btn:hover {
  background: var(--bg-main);
  border-color: var(--primary);
}
.auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.auth-avatar:hover {
  border-color: var(--primary);
}
.auth-user-dropdown {
  position: relative;
}
.auth-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 200px;
  display: none;
  flex-direction: column;
  padding: 8px;
  z-index: 102;
}
.auth-user-dropdown.active .auth-dropdown-menu {
  display: flex;
}
.auth-dropdown-menu button {
  background: none;
  border: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: background 0.2s;
}
.auth-dropdown-menu button:hover {
  background: var(--bg-main);
}
.auth-user-name {
  padding: 8px 12px;
  font-weight: 700;
  color: var(--text-main);
}
.auth-dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 4px 0;
}

/* ===== Aperçu du template ===== */
.card-preview-btn {
  position: absolute; bottom: 8px; left: 8px; z-index: 10;
  background: rgba(0,0,0,0.55); color: #fff; border: 0; border-radius: 6px;
  padding: 5px 10px; font: 600 12px/1.2 'Plus Jakarta Sans', sans-serif; cursor: pointer;
  backdrop-filter: blur(4px);
}
.card-preview-btn:hover { background: rgba(0,0,0,0.8); }
body.preview-open { overflow: hidden; }
.preview-dialog { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.preview-dialog[hidden] { display: none; }
.preview-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.preview-panel {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  width: 100%; max-width: 880px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg-surface); color: var(--text-main); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.preview-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--bg-main); color: var(--text-main); font-size: 24px; line-height: 1; cursor: pointer;
}
.preview-media { background: var(--bg-main); display: flex; align-items: center; }
.preview-media img { width: 100%; height: auto; display: block; }
.preview-info { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.preview-title { margin: 0; font-size: 22px; }
.preview-desc { margin: 0; color: var(--text-muted); line-height: 1.55; }
.preview-specs { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.preview-specs div { display: flex; gap: 8px; }
.preview-specs dt { min-width: 110px; font-weight: 600; color: var(--text-muted); }
.preview-specs dd { margin: 0; }
.preview-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.preview-cta {
  background: var(--primary); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 18px; font: 700 14px 'Plus Jakarta Sans', sans-serif; cursor: pointer;
}
.preview-cta:hover { filter: brightness(1.08); }
@media (max-width: 720px) { .preview-panel { grid-template-columns: 1fr; } }

/* ===== Recherche : suggestions et état vide ===== */
.search-see-all {
  display: block; width: 100%; padding: 12px 16px; border: 0;
  background: var(--bg-main); color: var(--primary); cursor: pointer;
  font: 700 14px 'Plus Jakarta Sans', sans-serif; text-align: center;
}
.search-see-all:hover { text-decoration: underline; }
.search-chips {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  margin: 4px 0; font-size: 13px; color: var(--text-muted);
}
.search-chip {
  background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-color);
  border-radius: 999px; padding: 6px 12px; font: 500 13px 'Plus Jakarta Sans', sans-serif; cursor: pointer;
}
.search-chip:hover { border-color: var(--primary); color: var(--primary); }
.empty-state {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 48px 16px; text-align: center; color: var(--text-muted);
}
.empty-state p { margin: 0; }
.empty-state-title { font-size: 18px; font-weight: 700; color: var(--text-main); }
.empty-state-cta {
  display: inline-block; background: var(--primary); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 18px; font: 700 14px 'Plus Jakarta Sans', sans-serif; text-decoration: none; cursor: pointer;
}

/* ===== Focus clavier ===== */
.download-bar:focus-visible, .card-preview-btn:focus-visible, .card-fav-btn:focus-visible,
.card-share-btn:focus-visible, .search-chip:focus-visible, .search-see-all:focus-visible,
.search-result-item:focus-visible, .empty-state-cta:focus-visible, .preview-cta:focus-visible,
.preview-close:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px;
}
/* Pages secondaires */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  line-height: 1.75;
  color: var(--text-main);
}
.legal-page h1 { font-size: 2.2rem; margin-bottom: 24px; }
.legal-page h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal-page a { color: var(--primary, var(--primary)); text-decoration: underline; }
.legal-draft-note {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-light);
  font-size: 0.9rem;
}

/* Menu mobile : burger + panneau déroulant au toucher */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-main);
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header { z-index: 1000; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 12px 16px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav .nav-item { width: 100%; }
  .main-nav .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 8px;
    font-size: 15px;
  }
  .main-nav .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 0 0 6px 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    opacity: 1;
  }
  .main-nav .nav-item.open > .dropdown-menu { display: flex; }
  .main-nav .mega-dropdown .dropdown-menu { width: 100%; }
  .main-nav .ai-tools-badge { width: 100%; padding: 12px 8px; text-align: left; }
}

@media (max-width: 540px) {
  .header-container { gap: 8px; }
  .header-right { gap: 8px; }
  .logo-text-official { font-size: 15px; }
  .auth-login-btn { font-size: 0; padding: 8px 10px; }
  .auth-login-btn svg, .auth-login-btn img { font-size: initial; }
  .hero-search-bar input { min-width: 0; flex: 1 1 auto; }
  .hero-search-submit-btn { padding: 12px 14px; }
  #hero-search-btn-text { display: none; }
}
/* Espace admin */
.admin-page { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; color: var(--text-main); line-height: 1.6; }
.admin-page h1 { font-size: 2rem; margin-bottom: 8px; }
.admin-intro { color: var(--text-muted, #64748B); margin-bottom: 24px; }
.admin-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.admin-card h2 { font-size: 1.2rem; margin-bottom: 16px; }
.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.admin-form input:not([type="checkbox"]):not([type="file"]), .admin-form select, .admin-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-main-page, transparent); color: inherit;
}
.admin-form label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.admin-compat { border: 1px solid var(--border-light); border-radius: 8px; padding: 12px; display: grid; gap: 8px; }
.admin-compat legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.admin-btn { justify-self: start; padding: 12px 20px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; }
.admin-btn:disabled { opacity: 0.6; cursor: wait; }
.admin-status { font-size: 14px; min-height: 1.4em; }
.admin-status.admin-error { color: #DC2626; }
.admin-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.admin-list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 8px; }
.admin-list-item.is-hidden { opacity: 0.6; }
.admin-list-item > span { min-width: 0; overflow-wrap: anywhere; }
.admin-list-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin-list-actions button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-light); background: transparent; color: var(--text-main); cursor: pointer; font: inherit; font-size: 13px; }
.admin-list-actions button.admin-btn-danger { border-color: #DC2626; color: #DC2626; }
.admin-btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-light); }
.admin-form-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-empty { color: var(--text-muted, #64748B); font-size: 14px; }
#admin-filter { flex: 1 1 220px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-surface); color: var(--text-main); font: inherit; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
#admin-sort { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-surface); color: var(--text-main); font: inherit; }
.admin-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.admin-list-head h2 { margin: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.admin-stat { border: 1px solid var(--border-light); border-radius: 10px; padding: 12px; display: grid; gap: 2px; }
.admin-stat strong { font-size: 1.4rem; }
.admin-stat span { font-size: 13px; color: var(--text-muted, #64748B); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.admin-tab { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-light); background: transparent; color: var(--text-main); cursor: pointer; font: inherit; font-size: 13px; }
.admin-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.admin-bulk { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--bg-surface); border: 1px solid var(--primary); }
.admin-bulk button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-light); background: transparent; color: var(--text-main); cursor: pointer; font: inherit; font-size: 13px; }
.admin-bulk button.admin-btn-danger { border-color: #DC2626; color: #DC2626; }
.admin-select-all { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.admin-item { display: grid; grid-template-columns: auto 56px minmax(0, 1fr) auto; align-items: center; }
.admin-item > input[type="checkbox"] { width: 18px; height: 18px; }
.admin-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--border-light); }
.admin-item-info { display: grid; gap: 2px; min-width: 0; }
.admin-item-info strong { overflow-wrap: anywhere; }
.admin-item-meta { font-size: 13px; color: var(--text-muted, #64748B); }
.admin-pill { justify-self: start; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #DCFCE7; color: #166534; }
.admin-pill.is-off { background: #FEE2E2; color: #991B1B; }
.admin-link { font-size: 13px; align-self: center; color: var(--primary); }
.admin-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.admin-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.admin-image-field { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.admin-field-label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.admin-image-preview { max-width: 100%; max-height: 180px; border-radius: 10px; border: 1px solid var(--border-light); object-fit: contain; }
@media (max-width: 640px) {
  .admin-item { grid-template-columns: auto 48px minmax(0, 1fr); }
  .admin-item .admin-list-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-thumb { width: 48px; height: 48px; }
}
.admin-hint { font-size: 13px; color: var(--text-muted, #64748B); margin: -6px 0 4px; }

/* ===== PAGE PRODUIT ===== */
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.product-page { max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; }
.breadcrumb { font-size: 0.9rem; margin-bottom: 24px; opacity: 0.8; }
.breadcrumb a { color: inherit; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.product-visual { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); padding: 16px; animation: product-rise 0.6s ease both; }
.product-visual img { display: block; width: 100%; height: auto; border-radius: 14px; }
.product-info { position: sticky; top: 110px; animation: product-rise 0.6s ease 0.08s both; }
.product-category { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: #6B7280; }
.product-category.cat-excel { background: #10B981; }
.product-category.cat-notion { background: #1F2937; }
.product-category.cat-n8n { background: #EA4B71; }
.product-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 900; line-height: 1.15; margin: 14px 0 6px; }
.product-subtitle { font-size: 1rem; opacity: 0.7; margin: 0 0 20px; }
.product-price { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.price-pill { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 1.3rem; font-weight: 900; background: var(--primary-soft); color: var(--primary); }
.price-pill.is-free { background: #E7F8F0; color: #0E8A5F; }
.product-cta { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.28); transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; }
.product-cta:hover { transform: translateY(-1px); background: var(--primary-hover); box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.36); }
.product-cta:active { transform: translateY(0) scale(0.98); }
.product-cta:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.product-note { font-size: 0.9rem; opacity: 0.75; margin: 12px 0 32px; }
.product-info h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.product-description { white-space: pre-line; line-height: 1.7; }
.product-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.product-specs .spec { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(127, 127, 127, 0.08); }
.product-specs dt { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.65; }
.product-specs dd { margin: 0; font-weight: 700; }
.product-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product-tags li { padding: 6px 12px; border-radius: 999px; background: rgba(127, 127, 127, 0.15); font-size: 0.85rem; }
.product-empty { text-align: center; padding: 80px 20px; }
@keyframes product-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 800px) {
  .product-page { padding: 32px 16px 64px; }
  .product-layout { display: flex; flex-direction: column; gap: 0; }
  .product-subtitle { margin: 0 0 12px; }
  .product-price { margin: 0 0 12px; }
  .product-note { margin: 10px 0 24px; }
  .product-info { display: contents; }
  .product-info > * { order: 9; }
  .product-category { order: 1; }
  .product-title { order: 2; }
  .product-subtitle { order: 3; }
  .product-price { order: 4; }
  .product-cta { order: 5; }
  .product-note { order: 6; }
  .product-visual { order: 7; margin: 0 0 16px; }
  .product-info > h2 { order: 8; }
  .product-description { order: 9; }
  .product-specs { order: 10; }
  .product-tags { order: 11; }
}
@media (prefers-reduced-motion: reduce) {
  .product-visual, .product-info { animation: none; }
  .product-cta { transition: none; }
}

.related-products { margin-top: 64px; }
.related-products h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
@media (max-width: 500px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ---- SEO : blocs de maillage, guides, pages produit statiques ---- */
.seo-links { padding: 56px 20px; border-top: 1px solid rgba(127, 127, 127, 0.15); }
.seo-links-inner { max-width: 1200px; margin: 0 auto; }
.seo-links h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 24px; }
.seo-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.seo-links-group h3 { font-size: 1rem; font-weight: 800; margin: 0 0 10px; }
.seo-links-group ul, .seo-related { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.seo-links-group a, .seo-related a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.seo-related span { opacity: 0.6; font-size: 0.9em; }
.guide-page { max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; }
.guide { max-width: 760px; margin: 0 auto; line-height: 1.75; }
.guide h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; line-height: 1.2; margin: 8px 0 16px; }
.guide h2 { font-size: 1.35rem; font-weight: 800; margin: 36px 0 12px; }
.guide-intro { font-size: 1.1rem; opacity: 0.9; }
@media (max-width: 500px) { .seo-links { padding: 40px 16px; } .guide-page { padding: 32px 16px 64px; } }
/* ===================================================
   FILTRES, SQUELETTES, MOSAÏQUE, ACCENTS PAR CATÉGORIE
   =================================================== */
.facet-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; width: 100%; margin-top: 12px; }
.facet-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.facet-field select { min-width: 170px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg-surface); color: var(--text-main); font: inherit; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.facet-reset { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--primary); background: transparent; color: var(--primary); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.facet-reset:hover { background: var(--primary); color: #fff; }
.facet-reset[hidden] { display: none; }

.skeleton-card { border-radius: 20px; background: var(--bg-surface); border: 1px solid var(--border-light); overflow: hidden; padding-bottom: 16px; }
.skeleton-visual, .skeleton-line { background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border-light) 50%, var(--bg-hover) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.4s ease-in-out infinite; }
.skeleton-visual { aspect-ratio: 16 / 9; }
.skeleton-line { height: 14px; border-radius: 8px; margin: 14px 16px 0; }
.skeleton-line.short { width: 45%; height: 10px; }
@keyframes skeleton-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.empty-illustration { width: 140px; height: auto; margin-bottom: 4px; }

.hero-mosaic { display: flex; justify-content: center; align-items: flex-end; max-width: 980px; margin: 48px auto 0; padding: 0 16px; }
.mosaic-item { width: 25%; height: auto; border-radius: 14px; border: 4px solid var(--bg-surface); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18); margin: 0 -1%; animation: mosaic-float 6s ease-in-out infinite; }
.mosaic-2 { transform: translateY(-18px) rotate(-1.5deg); animation-delay: -2s; }
.mosaic-3 { transform: translateY(-6px) rotate(1deg); animation-delay: -4s; }
.mosaic-1, .mosaic-4 { animation-delay: -1s; }
@keyframes mosaic-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 600px) {
  .hero-mosaic { flex-wrap: wrap; gap: 12px; }
  .mosaic-item { width: 46%; margin: 0; }
  .mosaic-2, .mosaic-3 { transform: none; }
}

body[data-category="excel"] { --cat-accent: #059669; }
body[data-category="notion"] { --cat-accent: #4F46E5; }
body[data-category="n8n"] { --cat-accent: #DB2777; }
body[data-category] .hero-orange-accent { color: var(--cat-accent); }
body[data-category] .slidescarnival-hero { box-shadow: inset 0 -4px 0 var(--cat-accent); }

.price-tag-badge { font-size: 15px; font-weight: 900; }

.newsletter-form { margin-top: 20px; max-width: 380px; }
.newsletter-label { display: block; font-weight: 800; margin-bottom: 8px; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.12); color: inherit; font: inherit; }
.newsletter-row input::placeholder { color: rgba(255, 255, 255, 0.75); }
.newsletter-submit { padding: 10px 18px; border-radius: 999px; border: 0; background: #fff; color: #0F172A; font: inherit; font-weight: 800; cursor: pointer; }
.newsletter-consent { display: block; font-size: 12px; margin-top: 10px; opacity: 0.9; }
.newsletter-consent input { margin-right: 6px; }
.newsletter-status { font-size: 13px; min-height: 1.2em; margin: 8px 0 0; }
.newsletter-error { color: #FECACA; }

.download-history { padding: 40px 20px 64px; }
.download-history-inner { max-width: 1200px; margin: 0 auto; }
.download-history h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 16px; }
.download-history li span { opacity: 0.6; font-size: 0.9em; margin-left: 6px; }

/* Accessibilité : anneau de focus visible partout et animations réduites */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================================
   CHARTE PAR CATÉGORIE (Excel, Notion, n8n)
   =================================================== */
body[data-category="excel"] {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-rgb: 5, 150, 105;
  --primary-soft: #ECFDF5;
  --logo-accent: #059669;
}
html[data-theme="dark"] body[data-category="excel"] {
  --primary: #34D399;
  --primary-hover: #6EE7B7;
  --primary-rgb: 52, 211, 153;
  --primary-soft: rgba(52, 211, 153, 0.15);
  --logo-accent: #34D399;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-category="excel"] {
  --primary: #34D399;
  --primary-hover: #6EE7B7;
  --primary-rgb: 52, 211, 153;
  --primary-soft: rgba(52, 211, 153, 0.15);
  --logo-accent: #34D399;
} }
body[data-category="notion"] {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-rgb: 79, 70, 229;
  --primary-soft: #EEF2FF;
  --logo-accent: #4F46E5;
}
html[data-theme="dark"] body[data-category="notion"] {
  --primary: #818CF8;
  --primary-hover: #A5B4FC;
  --primary-rgb: 129, 140, 248;
  --primary-soft: rgba(129, 140, 248, 0.15);
  --logo-accent: #818CF8;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-category="notion"] {
  --primary: #818CF8;
  --primary-hover: #A5B4FC;
  --primary-rgb: 129, 140, 248;
  --primary-soft: rgba(129, 140, 248, 0.15);
  --logo-accent: #818CF8;
} }
body[data-category="n8n"] {
  --primary: #DB2777;
  --primary-hover: #BE185D;
  --primary-rgb: 219, 39, 119;
  --primary-soft: #FDF2F8;
  --logo-accent: #DB2777;
}
html[data-theme="dark"] body[data-category="n8n"] {
  --primary: #F472B6;
  --primary-hover: #F9A8D4;
  --primary-rgb: 244, 114, 182;
  --primary-soft: rgba(244, 114, 182, 0.15);
  --logo-accent: #F472B6;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-category="n8n"] {
  --primary: #F472B6;
  --primary-hover: #F9A8D4;
  --primary-rgb: 244, 114, 182;
  --primary-soft: rgba(244, 114, 182, 0.15);
  --logo-accent: #F472B6;
} }

/* Domaine (RH, finance, supply chain...) affiché sous forme de badge sur la fiche produit */
.product-domain {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 700;
  vertical-align: middle;
}

/* ===== Fenêtre email avant téléchargement gratuit ===== */
.lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lead-overlay.is-open { opacity: 1; }
.lead-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px 26px 24px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-hover);
  text-align: center;
  color: var(--text-main);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.lead-overlay.is-open .lead-card { transform: none; }
.lead-card.is-shaking { animation: leadShake 0.45s ease; }
@keyframes leadShake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.lead-close:hover { transform: rotate(90deg); background: var(--primary-soft); color: var(--primary); }
.lead-visual {
  position: relative;
  height: 96px;
  margin: 0 auto 14px;
  width: 140px;
}
.lead-sheet {
  position: absolute;
  left: 18px;
  top: 0;
  width: 76px;
  height: 92px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--primary-soft), var(--bg-hover));
  border: 1px solid var(--border-light);
  transform: rotate(-9deg);
  animation: leadFloat 3.2s ease-in-out infinite;
}
.lead-sheet::before, .lead-sheet::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  height: 6px;
  border-radius: 3px;
  background: var(--primary);
  opacity: 0.55;
}
.lead-sheet::before { top: 24px; }
.lead-sheet::after { top: 40px; right: 28px; opacity: 0.3; }
.lead-badge-mail {
  position: absolute;
  right: 6px;
  bottom: 2px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 12px 24px -8px rgba(var(--primary-rgb), 0.6);
  animation: leadPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes leadFloat {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-6px); }
}
@keyframes leadPop {
  from { transform: scale(0.4) rotate(-20deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.lead-title {
  margin: 0 0 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lead-text {
  margin: 0 auto 20px;
  max-width: 330px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.lead-text strong { color: var(--text-main); }
.lead-form { display: grid; gap: 10px; }
.lead-input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 2px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-main);
  font: inherit;
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.lead-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.lead-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(var(--primary-rgb), 0.15);
}
.lead-error {
  min-height: 18px;
  margin: 0;
  color: #DC2626;
  font-size: 13.5px;
  font-weight: 600;
}
.lead-submit {
  position: relative;
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px -12px rgba(var(--primary-rgb), 0.7);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.lead-submit:hover:not(:disabled) { transform: translateY(-2px); background: var(--primary-hover); }
.lead-submit:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.lead-submit:disabled { cursor: progress; }
.lead-submit.is-loading .lead-submit-label { opacity: 0; }
.lead-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  opacity: 0;
}
.lead-submit.is-loading .lead-spinner { opacity: 1; animation: leadSpin 0.7s linear infinite; }
@keyframes leadSpin { to { transform: rotate(360deg); } }
.lead-legal {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.lead-legal a { color: var(--primary); }
.lead-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  justify-items: center;
  background: var(--card-bg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lead-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #10B981;
  color: #FFFFFF;
  font-size: 32px;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.lead-overlay.is-done .lead-success { opacity: 1; }
.lead-overlay.is-done .lead-check { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .lead-sheet, .lead-badge-mail, .lead-submit.is-loading .lead-spinner { animation: none; }
  .lead-overlay, .lead-card, .lead-check, .lead-success { transition: none; }
}

/* ===== Avis clients (fiche produit) ===== */
.reviews { max-width: 1100px; margin: 40px auto 0; padding: 0 16px; }
.reviews-head h2 { margin: 0 0 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; }
.reviews-summary { margin: 0 0 16px; color: var(--text-muted); font-size: 15px; }
.reviews-stars { color: #F59E0B; letter-spacing: 1px; }
.reviews-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.review-item { padding: 16px 18px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border-light); }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-item p { margin: 0; color: var(--text-main); line-height: 1.55; font-size: 14.5px; }
.review-form { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border-light); display: grid; gap: 12px; }
.review-form h3 { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; }
.review-rating { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.review-rating legend { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.review-rating label { cursor: pointer; }
.review-rating input { position: absolute; opacity: 0; pointer-events: none; }
.review-rating span { display: inline-block; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border-light); background: var(--bg-hover); color: var(--text-main); font-size: 13.5px; font-weight: 700; }
.review-rating input:checked + span { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.review-rating input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.review-field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-main); }
.review-field input, .review-field textarea { padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border-light); background: var(--bg-page); color: var(--text-main); font: inherit; font-weight: 400; }
.review-field textarea { resize: vertical; }
.review-error { min-height: 16px; margin: 0; color: #DC2626; font-size: 13px; font-weight: 600; }
.review-note, .review-login { margin: 0; color: var(--text-muted); font-size: 13.5px; }
.review-login { padding: 14px 16px; border-radius: 14px; background: var(--bg-hover); }
.admin-review { padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--border-light); border-radius: 12px; }
.admin-review p { margin: 6px 0 10px; color: var(--text-muted); font-size: 14px; }
.admin-review-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Page « Mes téléchargements » ===== */
.account-main { padding: 40px 16px 60px; }
.account-page { max-width: 820px; margin: 0 auto; }
.account-title { margin: 0 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.account-intro { margin: 0 0 24px; color: var(--text-muted); line-height: 1.6; }
.account-login { margin-bottom: 24px; }
.account-block { margin-top: 20px; padding: 22px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--border-light); }
.account-block h2 { margin: 0 0 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; }
.account-downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.account-downloads li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-hover); }
.account-downloads a { color: var(--text-main); font-weight: 700; text-decoration: none; }
.account-downloads a:hover { color: var(--primary); }
.alerts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.alert-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-light); background: var(--bg-page); cursor: pointer; font-weight: 600; font-size: 14px; }
.alert-choice input { accent-color: var(--primary); width: 17px; height: 17px; }
.alerts-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.alerts-actions .product-cta { width: auto; }
/* ===== Pages par domaine (templates-rh.html, etc.) ===== */
.domain-hero { max-width: 900px; margin: 0 auto; padding: 48px 16px 24px; text-align: center; }
.domain-hero .breadcrumb { justify-content: center; margin-bottom: 14px; }
.domain-title { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(28px, 4.6vw, 44px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.12; color: var(--text-main); }
.domain-intro { margin: 14px auto 0; max-width: 680px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.domain-guide { margin: 14px 0 0; font-size: 14.5px; color: var(--text-muted); }
.domain-guide a { color: var(--primary); font-weight: 700; }
/* Bas du pied de page centré : copyright, crédit et logos de paiement */
.footer-bottom-bar { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; }
.footer-bottom-bar .footer-copyright { text-align: center; }
.payment-badges-row { justify-content: center; }
/* Crédit « Made With Love » dans le pied de page : cœur qui clignote */
.footer-made { display: block; margin-top: 8px; font-weight: 600; letter-spacing: 0.01em; }
.footer-heart { display: inline-block; animation: footerHeartBlink 1.2s ease-in-out infinite; }
@keyframes footerHeartBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) { .footer-heart { animation: none; } }
/* ===== Galerie et zoom de la fiche produit ===== */
.product-media { display: grid; gap: 14px; min-width: 0; }
.product-media .product-visual { margin: 0; }
.product-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; font: inherit; }
.product-zoom img { display: block; width: 100%; height: auto; border-radius: 14px; }
.product-zoom:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 14px; }
.product-zoom-hint { position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: 99px; background: rgba(15, 23, 42, 0.78); color: #fff; font-size: 12.5px; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; }
.product-zoom:hover .product-zoom-hint, .product-zoom:focus-visible .product-zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .product-zoom-hint { opacity: 1; transform: none; } }
.product-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.product-thumb { flex: 0 0 88px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; opacity: 0.75; transition: opacity 0.15s ease, border-color 0.15s ease; }
.product-thumb img { display: block; width: 100%; height: 66px; object-fit: cover; }
.product-thumb:hover { opacity: 1; }
.product-thumb.is-active { border-color: var(--primary); opacity: 1; }

/* Plein écran : navigation, zoom molette / boutons / pincement, déplacement au glissé */
.lightbox { position: fixed; inset: 0; z-index: 10001; background: rgba(5, 8, 15, 0.94); animation: lightboxIn 0.2s ease; }
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage { position: absolute; inset: 56px 0 76px; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; }
.lightbox-img { max-width: 92vw; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; border-radius: 8px; will-change: transform; }
.lightbox-close { position: absolute; top: 12px; right: 14px; z-index: 3; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 48px; height: 64px; border: none; border-radius: 12px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 38px; cursor: pointer; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-bar { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700; }
.lightbox-tool { min-width: 36px; height: 36px; padding: 0 12px; border: none; border-radius: 99px; background: rgba(255, 255, 255, 0.2); color: #fff; font: inherit; font-size: 18px; cursor: pointer; }
.lightbox-reset { font-size: 13px; }
.lightbox-count { min-width: 48px; text-align: center; font-size: 13px; }
.lightbox-close:hover, .lightbox-nav:hover, .lightbox-tool:hover { background: rgba(255, 255, 255, 0.3); }
@media (max-width: 640px) { .lightbox-nav { width: 40px; height: 52px; font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }

/* ===== Admin : galerie d'images et réglages SEO ===== */
.admin-gallery-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.admin-gallery-item { position: relative; margin: 0; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-light); background: var(--bg-hover); }
.admin-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-gallery-item button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(15, 23, 42, 0.85); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.admin-seo { display: grid; gap: 12px; margin: 6px 0; padding: 14px 16px; border: 1px solid var(--border-light); border-radius: 14px; }
.admin-seo legend { padding: 0 8px; font-weight: 800; }
.admin-counter { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.admin-counter.is-over { color: #DC2626; }
.admin-seo-preview { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #E5E7EB; border-radius: 12px; background: #fff; font-family: Arial, sans-serif; }
.admin-seo-title { color: #1A0DAB; font-size: 18px; line-height: 1.3; }
.admin-seo-url { color: #006621; font-size: 13px; }
.admin-seo-desc { color: #545454; font-size: 13px; line-height: 1.4; }
/* Contraste : boutons pleins en mode sombre (couleur de catégorie claire) -> texte sombre */
html[data-theme="dark"] body[data-category] :is(.hero-search-submit-btn, .pill-btn.active, .promo-marquee, .promo-marquee span, .fab-share, .preview-cta, .empty-state-cta, .admin-btn, .admin-tab.is-active, .product-cta, .facet-reset:hover) { color: #0F172A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-category] :is(.hero-search-submit-btn, .pill-btn.active, .promo-marquee, .promo-marquee span, .fab-share, .preview-cta, .empty-state-cta, .admin-btn, .admin-tab.is-active, .product-cta, .facet-reset:hover) { color: #0F172A; }
}

/* Pastilles de filtre (Gratuits / Premium Etsy) : même style que les autres pastilles */
.quick-filter-pills .filter-btn {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  background: var(--bg-hover);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.quick-filter-pills .filter-btn:hover, .quick-filter-pills .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}
html[data-theme="dark"] body[data-category] .quick-filter-pills .filter-btn.active { color: #0F172A; }

/* Mode liste des templates (bouton ☰) */
.products-grid.list-view { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.products-grid.list-view .template-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.products-grid.list-view .card-visual-wrapper { aspect-ratio: auto; height: 100%; min-height: 160px; }
.products-grid.list-view .card-body { padding: 16px 20px; }
@media (max-width: 640px) {
  .products-grid.list-view .template-card { grid-template-columns: 1fr; }
  .products-grid.list-view .card-visual-wrapper { aspect-ratio: 16 / 9; }
}

/* ===================================================
   MOBILE (≤ 640 px) : parcours compact et lisible
   =================================================== */
@media (max-width: 640px) {
  /* En-tête compact */
  .site-header { padding: 0; }
  .header-container { padding: 8px 16px; }
  .brand-logo .logo-icon-wrapper { width: 36px; height: 36px; }
  .logo-text-official { font-size: 17px; }
  .fab-share { display: none; }
  .floating-chat-widget { bottom: 96px; right: 16px; }

  /* Hero compact : le catalogue arrive plus tôt */
  .slidescarnival-hero { padding: 28px 16px 28px; }
  .hero-title { font-size: 28px; line-height: 1.15; }
  .hero-subtitle { font-size: 15px; margin-top: 10px; }
  .hero-popular-keywords { margin-top: 16px; }
  .hero-mosaic { display: none; }

  /* Pastilles sur une seule ligne défilante */
  .quick-filter-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .quick-filter-pills::-webkit-scrollbar { display: none; }
  .quick-filter-pills > * { flex-shrink: 0; min-height: 40px; display: inline-flex; align-items: center; }
  .pill-btn, .filter-btn { min-height: 40px; }

  /* Filtres repliés, s'ouvrent depuis la barre du bas ou restent visibles si un filtre est actif */
  .facet-bar { display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .facet-bar.is-open, .facet-bar.has-active { display: grid; }
  .facet-field { min-width: 0; }
  .facet-field select { min-width: 0; width: 100%; padding: 10px; min-height: 44px; }
  .facet-reset { grid-column: 1 / -1; min-height: 44px; }

  /* Tri et vue : pleine largeur */
  .advanced-toolbar { justify-content: space-between !important; }

  /* Cartes : boutons à taille tactile */
  .card-fav-btn, .card-share-btn { width: 40px; height: 40px; }
  .card-preview-btn { min-height: 32px; }
  .download-bar { min-height: 44px; }

  /* Mode liste : les cartes restent empilées */
  .products-grid.list-view .template-card { grid-template-columns: 1fr; }
  .products-grid.list-view .card-visual-wrapper { aspect-ratio: 16 / 9; }

  /* Footer : colonnes empilées, liens faciles à toucher */
  .footer-link-list a { display: inline-block; padding: 6px 0; }
  .newsletter-row input, .newsletter-submit { min-height: 44px; }
}
/* En-tête mobile sur une seule ligne */
@media (max-width: 640px) {
  .header-container { flex-wrap: nowrap; gap: 8px; }
  .header-right { flex-wrap: nowrap; gap: 6px; min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
  .header-right .wishlist-btn, .header-right .theme-toggle-btn { flex-shrink: 0; }
  .header-right .lang-switch-btn { flex-shrink: 0; padding: 6px 8px; }
  .header-right .auth-section { flex-shrink: 0; }
  .nav-toggle { flex-shrink: 0; width: 40px; height: 40px; }
  .brand-logo { flex-shrink: 0; }
}
/* Sur téléphone, le logo reste l'icône seule pour laisser la place aux boutons */
@media (max-width: 640px) {
  .brand-logo .logo-text-official { display: none; }
  .header-right { justify-content: flex-end; margin-left: auto; }
}

/* Mobile : collections et sections en défilement horizontal, cartes plus légères */
@media (max-width: 640px) {
  .collections-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none;
  }
  .collections-grid::-webkit-scrollbar { display: none; }
  .collections-grid > .collection-card { flex: 0 0 74%; scroll-snap-align: start; }

  .thematic-sections-container .products-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none;
  }
  .thematic-sections-container .products-grid::-webkit-scrollbar { display: none; }
  .thematic-sections-container .products-grid > .template-card { flex: 0 0 78%; scroll-snap-align: start; }

  /* Cartes du catalogue : l'essentiel seulement (titre, bouton, prix) */
  #products-grid .card-tags, #products-grid .card-format-badges, #products-grid .social-proof-downloads { display: none; }
  #products-grid .card-body { padding: 14px 16px 16px; }
}
/* Mobile : sections secondaires masquées ou compactes (le contenu reste dans la page pour le SEO) */
@media (max-width: 640px) {
  .seo-faq-section, .tag-directory-section { display: none; }
  .seo-links { padding: 32px 16px; }
  .seo-links-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .seo-links-group h3 { font-size: 14px; }
  .seo-links-group a, .seo-links-group li { font-size: 13px; }
  .seo-links-group ul { gap: 6px; }
}
/* Recherches récentes */
.recent-searches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; max-width: 760px; margin: 14px auto 0; }
.recent-searches[hidden] { display: none; }
.recent-label { font-size: 13px; font-weight: 700; opacity: 0.7; }

/* Tableau de bord admin : statistiques */
.admin-stats-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.admin-stats-totals div { border: 1px solid var(--border-light); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-stats-totals strong { font-size: 22px; }
.admin-stats-totals span { font-size: 12px; color: var(--text-muted); }
.admin-stats-table-wrap { overflow-x: auto; }
.admin-stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-stats-table th, .admin-stats-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-light); }
.admin-stats-table th { font-size: 12px; text-transform: uppercase; color: var(--text-muted); }
.admin-stats-cat { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
/* Mobile : tout le contenu est centré */
@media (max-width: 640px) {
  .hero-popular-keywords { flex-direction: column; align-items: center; gap: 10px; }
  .popular-pills-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .keyword-pill-btn { justify-content: center; }
  .catalog-header-bar, .title-with-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .catalog-section h2, .collections-heading, .thematic-sections-container h2, .thematic-sections-container h3,
  .related-products h2, .seo-links h2, .download-history h2, .download-history-inner h2 { text-align: center; }
  .quick-filter-pills { justify-content: safe center; }
  .facet-bar { justify-items: center; text-align: center; }
  .facet-field { align-items: center; text-align: center; }
  .advanced-toolbar { justify-content: center !important; flex-wrap: wrap; }
  .load-more-wrapper { justify-content: center; }
  .footer-col, .footer-col-header, .footer-link-list, .footer-pitch-text, .pitch-col { text-align: center; }
  .footer-link-list { padding: 0; }
  .footer-brand-logo { justify-content: center; }
  .newsletter-form { margin-left: auto; margin-right: auto; }
  .newsletter-consent { text-align: center; }
  .card-tags { justify-content: center; }
  .seo-links-group h3, .seo-links-group ul { text-align: center; }
  .seo-links-group ul { justify-items: center; }
  .product-page .breadcrumb, .guide-page .breadcrumb { text-align: center; }
}
/* Mobile : barre de tri et vue contenue dans la largeur de l'écran */
@media (max-width: 640px) {
  .catalog-header-bar, .title-with-badge { width: 100%; max-width: 100%; box-sizing: border-box; }
  .advanced-toolbar { width: 100% !important; max-width: 100%; box-sizing: border-box; flex-wrap: wrap; }
  .advanced-sort-select { max-width: 60%; }
}
/* Mobile : aucun défilement horizontal de la page entière */
@media (max-width: 640px) {
  html, body { overflow-x: clip; }
}
/* Mobile : pastilles du catalogue centrées, sur plusieurs lignes, sans coupure à droite */
@media (max-width: 640px) {
  .catalog-section .quick-filter-pills { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0; padding: 0; }
  .catalog-section .quick-filter-pills > * { flex-shrink: 1; }
  .catalog-section .advanced-toolbar { justify-content: center !important; }
}
/* Barre du bas mobile : icônes et libellés en orange de la marque (UI/UX) */
.floating-mobile-bar .fab-btn { color: #E05638; }
html[data-theme="dark"] .floating-mobile-bar .fab-btn { color: #FF6B35; }
.floating-mobile-bar .fab-btn:hover, .floating-mobile-bar .fab-btn:focus-visible { color: #C84326; }
html[data-theme="dark"] .floating-mobile-bar .fab-btn:hover, html[data-theme="dark"] .floating-mobile-bar .fab-btn:focus-visible { color: #FF8555; }
/* Barre du bas mobile : fond orange, icônes et libellés blancs */
.floating-mobile-bar { background: #E05638; border-color: transparent; box-shadow: 0 10px 28px rgba(224, 86, 56, 0.35); }
html[data-theme="dark"] .floating-mobile-bar { background: #FF6B35; border-color: transparent; }
.floating-mobile-bar .fab-btn { color: #FFFFFF; }
html[data-theme="dark"] .floating-mobile-bar .fab-btn { color: #FFFFFF; }
.floating-mobile-bar .fab-btn:hover, .floating-mobile-bar .fab-btn:focus-visible { color: #FFFFFF; opacity: 0.85; }
html[data-theme="dark"] .floating-mobile-bar .fab-btn:hover, html[data-theme="dark"] .floating-mobile-bar .fab-btn:focus-visible { color: #FFFFFF; }
/* Barre du bas mobile : orange translucide, effet verre dépoli */
.floating-mobile-bar {
  background: rgba(224, 86, 56, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 28px rgba(224, 86, 56, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
html[data-theme="dark"] .floating-mobile-bar {
  background: rgba(255, 107, 53, 0.80);
  border-color: rgba(255, 255, 255, 0.22);
}
/* Code promo copiable */
.promo-code { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.promo-code:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* Barre du bas : repère de la section en cours */
.floating-mobile-bar .fab-btn { position: relative; }
.floating-mobile-bar .fab-btn.is-current::after {
  content: ''; position: absolute; top: -2px; right: 50%; transform: translateX(14px);
  width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 2px rgba(224, 86, 56, 0.6);
}
html[data-theme="dark"] .floating-mobile-bar .fab-btn.is-current::after { box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.6); }
/* Logo : bécher en dégradé corail, liquide et bulles animés au survol */
.brand-logo .logo-icon-wrapper { background: #FFFFFF; border: 1px solid rgba(224, 86, 56, 0.18); box-shadow: 0 6px 18px rgba(224, 86, 56, 0.22); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.brand-logo:hover .logo-icon-wrapper { transform: translateY(-2px) rotate(-3deg); box-shadow: 0 10px 24px rgba(224, 86, 56, 0.32); }
.brand-logo:hover .logo-liquid { animation: logo-wave 1.8s ease-in-out infinite; }
@keyframes logo-wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.logo-bubble { opacity: 0; }
.brand-logo:hover .logo-bubble { animation: logo-bubble 1.6s ease-in infinite; }
.brand-logo:hover .logo-bubble.b2 { animation-delay: 0.7s; }
@keyframes logo-bubble { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.coral-footer .official-logo-svg path, .coral-footer .official-logo-svg .logo-liquid { stroke: #FFFFFF; fill: #FFFFFF; }
.coral-footer .official-logo-svg .logo-liquid { fill: rgba(255, 255, 255, 0.85); }
.coral-footer .logo-icon-wrapper { background: rgba(255, 255, 255, 0.18); border: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .brand-logo:hover .logo-liquid, .brand-logo:hover .logo-bubble { animation: none; } }

/* Collections à la une : cartes cliquables, couleur par catégorie */
.collection-card[data-href] { cursor: pointer; }
.collection-card[data-href]:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 12px; }
/* Logo officiel (image fournie) */
.brand-img { display: block; height: 52px; width: auto; border-radius: 12px; box-shadow: 0 6px 18px rgba(224, 86, 56, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.brand-logo:hover .brand-img { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 10px 24px rgba(224, 86, 56, 0.32); }
.footer-brand-logo .brand-img { height: 64px; box-shadow: none; }
@media (max-width: 640px) { .brand-img { height: 44px; } }
/* Logo : symbole PNG dans sa case, nom « TemplateLabo » en texte comme avant */
.brand-mark { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.brand-logo .logo-icon-wrapper, .coral-footer .logo-icon-wrapper { background: #FFFFFF; border: 1px solid rgba(224, 86, 56, 0.18); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.brand-logo:hover .logo-icon-wrapper { transform: translateY(-2px) rotate(-3deg); }
/* Symbole : plus grand dans sa case */
.brand-logo .logo-icon-wrapper { width: 44px; height: 44px; }
.brand-mark { padding: 3px; }
/* Logo : symbole coloré par la charte (orange par défaut, couleur de catégorie ensuite), sans case blanche */
.brand-logo .logo-icon-wrapper, .coral-footer .logo-icon-wrapper { background: transparent; border: none; box-shadow: none; }
.brand-logo:hover .logo-icon-wrapper { transform: none; }
.brand-logo .logo-icon-wrapper { width: 48px; height: 48px; }
.brand-mark {
  display: block; width: 100%; height: 100%;
  background-color: var(--primary);
  -webkit-mask: url("images/logo-mark.png?v=4") center / contain no-repeat;
          mask: url("images/logo-mark.png?v=4") center / contain no-repeat;
  transition: background-color 0.4s ease, transform 0.3s ease;
}
.brand-logo:hover .brand-mark { transform: translateY(-2px) rotate(-3deg); }
.coral-footer .brand-mark { background-color: #FFFFFF; }
@media (max-width: 640px) { .brand-logo .logo-icon-wrapper { width: 42px; height: 42px; } }
/* Symbole du logo : une image par couleur (sans masque CSS, compatible partout) */
.brand-mark {
  -webkit-mask: none; mask: none;
  background-color: transparent;
  background-image: url("images/logo-mark-orange.png");
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
body[data-category="excel"] .brand-mark { background-image: url("images/logo-mark-excel.png"); }
body[data-category="notion"] .brand-mark { background-image: url("images/logo-mark-notion.png"); }
body[data-category="n8n"] .brand-mark { background-image: url("images/logo-mark-n8n.png"); }
.coral-footer .brand-mark { background-image: url("images/logo-mark-white.png"); }
/* Boutons PayPal sur les fiches payantes */
.paypal-container { max-width: 360px; margin: 12px 0 4px; min-height: 44px; }
/* Paiement PayPal sur la fiche produit */
.paypal-box { margin-top: 14px; max-width: 360px; }
.paypal-box .product-cta { display: inline-flex; }
/* Le bouton Etsy masqué (paiement direct) ne doit pas réapparaître */
.product-cta[hidden] { display: none !important; }