/* ==========================================================================
   ASTRO POULET BLOG ENGINE — $1B LUXURY EDITORIAL DESIGN SYSTEM
   - Default: High-End Light Mode (Crisp, warm, elegant)
   - Dark Mode: Activated via body.dark-mode, html.dark-mode, or .ap-blog-article.dark-mode
   - 2 Continuous Looping Micro-Animations (Floating Pulse Halo & Shimmer Sweep)
   - Scoped to .ap-blog-article to guarantee zero global theme conflicts.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* -------------------------------------------------------------
   DEFAULT: LUXURY LIGHT MODE
   ------------------------------------------------------------- */
:root {
  --ap-bg: #f8fafc;
  --ap-bg-pattern-1: rgba(249, 140, 31, 0.05);
  --ap-bg-pattern-2: rgba(255, 170, 59, 0.04);
  
  --ap-card-bg: #ffffff;
  --ap-card-bg-elevated: #ffffff;
  --ap-card-border: rgba(15, 23, 42, 0.08);
  --ap-card-hover-border: rgba(249, 140, 31, 0.5);
  --ap-card-inner-bg: #f8fafc;
  
  --ap-primary: #f98c1f;
  --ap-primary-light: #ffaa3b;
  --ap-primary-dark: #ea580c;
  --ap-primary-glow: rgba(249, 140, 31, 0.25);
  
  --ap-accent-red: #ef4444;
  --ap-accent-green: #10b981;
  --ap-accent-gold: #f59e0b;
  
  --ap-text-primary: #0f172a;
  --ap-text-secondary: #334155;
  --ap-text-muted: #64748b;
  --ap-text-lead: #1e293b;
  
  --ap-font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --ap-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --ap-radius-sm: 8px;
  --ap-radius-md: 16px;
  --ap-radius-lg: 24px;
  --ap-radius-full: 9999px;
  
  --ap-shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --ap-shadow-hover: 0 20px 35px -10px rgba(249, 140, 31, 0.18);
  --ap-table-header-bg: #f1f5f9;
  --ap-table-border: #e2e8f0;
  
  --ap-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
   DARK MODE OVERRIDES (Triggered by website header or switcher)
   ------------------------------------------------------------- */
body.dark-mode .ap-blog-article,
html.dark-mode .ap-blog-article,
.ap-blog-article.dark-mode {
  --ap-bg: #0a0e17;
  --ap-bg-pattern-1: rgba(249, 140, 31, 0.08);
  --ap-bg-pattern-2: rgba(255, 170, 59, 0.05);
  
  --ap-card-bg: rgba(18, 24, 39, 0.9);
  --ap-card-bg-elevated: #161f33;
  --ap-card-border: rgba(255, 255, 255, 0.08);
  --ap-card-hover-border: rgba(249, 140, 31, 0.45);
  --ap-card-inner-bg: rgba(10, 14, 23, 0.6);
  
  --ap-text-primary: #f8fafc;
  --ap-text-secondary: #94a3b8;
  --ap-text-muted: #64748b;
  --ap-text-lead: #cbd5e1;
  
  --ap-shadow-subtle: 0 4px 25px -2px rgba(0, 0, 0, 0.5);
  --ap-shadow-hover: 0 20px 35px -10px rgba(249, 140, 31, 0.28);
  --ap-table-header-bg: rgba(10, 14, 23, 0.85);
  --ap-table-border: rgba(255, 255, 255, 0.06);
}

/* Base Article Container */
.ap-blog-article {
  font-family: var(--ap-font-body);
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--ap-text-secondary);
  background-color: var(--ap-bg);
  background-image: 
    radial-gradient(circle at 15% 5%, var(--ap-bg-pattern-1) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, var(--ap-bg-pattern-2) 0%, transparent 45%);
  background-repeat: no-repeat;
  margin: 0 auto;
  padding: 30px 20px 100px 20px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.ap-blog-article * {
  box-sizing: border-box;
}

.ap-article-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.ap-article-wrapper > p {
  display: none !important;
}

.ap-article-hero,
.ap-featured-image-box,
.ap-guarantees-grid {
  width: 100% !important;
  margin-bottom: 36px;
}

/* Dedicated 2-Column Split Layout */
.ap-main-split-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .ap-main-split-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 48px !important;
  }
  .ap-sidebar {
    width: 320px !important;
    flex: 0 0 320px !important;
    max-width: 320px !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 20 !important;
  }
  .ap-content-body {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: calc(100% - 368px) !important;
  }
}

@media (max-width: 1023px) {
  .ap-main-split-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }
  .ap-sidebar {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
    z-index: 1 !important;
  }
  .ap-content-body {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   LOOP ANIMATIONS 1 & 2 (CONTINUOUS MICRO-ANIMATIONS)
   ========================================================================== */

/* ANIMATION 1: FLOATING AMBER HALO & PULSE (For Badges & Bestsellers) */
@keyframes ap-float-pulse {
  0% {
    transform: translateY(0px);
    box-shadow: 0 4px 14px rgba(249, 140, 31, 0.35);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(249, 140, 31, 0.6), 0 0 14px rgba(255, 170, 59, 0.45);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 4px 14px rgba(249, 140, 31, 0.35);
  }
}

.ap-anim-pulse-float {
  animation: ap-float-pulse 3s ease-in-out infinite;
}

/* ANIMATION 2: LUXURY SHIMMER / GLEAM SWEEP (For CTAs & Highlights) */
@keyframes ap-shimmer-sweep {
  0% {
    transform: translateX(-150%) skewX(-20deg);
  }
  30%, 100% {
    transform: translateX(250%) skewX(-20deg);
  }
}

.ap-anim-shimmer {
  position: relative;
  overflow: hidden;
}

.ap-anim-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.32) 50%, 
    transparent 100%
  );
  animation: ap-shimmer-sweep 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Slow Rotating Seal Icon */
@keyframes ap-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ap-anim-spin-slow {
  animation: ap-spin-slow 20s linear infinite;
}

/* -------------------------------------------------------------
   THEME TOGGLE FLOATING BAR (TESTER & USER SWITCHER)
   ------------------------------------------------------------- */
.ap-theme-floating-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.ap-mode-toggle-btn {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  color: var(--ap-text-primary);
  font-family: var(--ap-font-title);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--ap-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--ap-shadow-subtle);
  transition: var(--ap-transition);
}

.ap-mode-toggle-btn:hover {
  border-color: var(--ap-primary);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------
   HERO HEADER SECTION
   ------------------------------------------------------------- */
.ap-article-hero {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 940px;
  margin: 0 auto 24px auto;
  position: relative;
}

.ap-breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ap-text-muted);
  margin-bottom: 20px;
}

.ap-breadcrumbs a {
  color: var(--ap-text-secondary);
  text-decoration: none;
  transition: var(--ap-transition);
}

.ap-breadcrumbs a:hover {
  color: var(--ap-primary);
}

.ap-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(249, 140, 31, 0.15) 0%, rgba(249, 140, 31, 0.05) 100%);
  border: 1px solid rgba(249, 140, 31, 0.35);
  color: var(--ap-primary-dark);
  font-family: var(--ap-font-title);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 20px;
  border-radius: var(--ap-radius-full);
  margin-bottom: 24px;
}

body.dark-mode .ap-category-pill,
.ap-blog-article.dark-mode .ap-category-pill {
  color: var(--ap-primary-light);
}

.ap-article-title {
  font-family: var(--ap-font-title);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ap-text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
}

@media (min-width: 768px) {
  .ap-article-title {
    font-size: 3.5rem;
  }
}

.ap-article-title span.ap-gradient-text {
  background: linear-gradient(135deg, #f98c1f 0%, #ffaa3b 50%, #fcd34d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ap-article-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ap-text-lead);
  max-width: 820px;
  margin: 0 auto 32px auto;
  font-weight: 400;
}

.ap-article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 0.875rem;
  color: var(--ap-text-muted);
  border-top: 1px solid var(--ap-card-border);
  border-bottom: 1px solid var(--ap-card-border);
  padding: 16px 0;
}

.ap-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ap-primary);
  background: var(--ap-card-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--ap-primary);
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ap-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Featured Cover Image */
.ap-featured-image-box {
  grid-column: 1 / -1;
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--ap-shadow-subtle);
  border: 1px solid var(--ap-card-border);
  margin-bottom: 16px;
  background: var(--ap-card-bg);
}

.ap-featured-image-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 520px;
  transition: transform 0.8s ease;
}

.ap-featured-image-box:hover img {
  transform: scale(1.02);
}

.ap-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.9) 0%, transparent 100%);
  padding: 30px 24px 16px 24px;
  font-size: 0.875rem;
  color: #f8fafc;
  text-align: right;
}

/* -------------------------------------------------------------
   STICKY TABLE OF CONTENTS (SIDEBAR)
   ------------------------------------------------------------- */
.ap-sidebar {
  position: sticky;
  top: 100px;
}

.ap-toc-card {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-md);
  padding: 24px;
  box-shadow: var(--ap-shadow-subtle);
}

.ap-toc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ap-font-title);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ap-text-primary);
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ap-card-border);
  padding-bottom: 12px;
}

.ap-toc-header svg {
  color: var(--ap-primary);
}

.ap-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ap-toc-item a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ap-text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: var(--ap-transition);
  padding: 6px 10px;
  border-radius: var(--ap-radius-sm);
}

.ap-toc-item a:hover {
  color: var(--ap-primary-dark);
  background: rgba(249, 140, 31, 0.08);
  transform: translateX(4px);
}

body.dark-mode .ap-toc-item a:hover,
.ap-blog-article.dark-mode .ap-toc-item a:hover {
  color: var(--ap-primary-light);
}

.ap-toc-num {
  font-family: var(--ap-font-title);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--ap-primary);
  background: rgba(249, 140, 31, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Sidebar Local Ordering Card */
.ap-sidebar-cta {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(249, 140, 31, 0.12) 0%, var(--ap-card-bg) 100%);
  border: 1px solid rgba(249, 140, 31, 0.35);
  border-radius: var(--ap-radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--ap-shadow-subtle);
}

.ap-sidebar-cta h4 {
  font-family: var(--ap-font-title);
  color: var(--ap-text-primary);
  font-size: 1.25rem;
  margin: 0 0 8px 0;
}

.ap-sidebar-cta p {
  font-size: 0.875rem;
  color: var(--ap-text-secondary);
  margin: 0 0 18px 0;
  line-height: 1.5;
}

/* -------------------------------------------------------------
   MAIN EDITORIAL TYPOGRAPHY
   ------------------------------------------------------------- */
.ap-content-body {
  min-width: 0;
}

.ap-content-body h2 {
  font-family: var(--ap-font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  line-height: 1.25;
  margin: 48px 0 20px 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 5px solid var(--ap-primary);
  padding-left: 16px;
}

.ap-content-body h3 {
  font-family: var(--ap-font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ap-text-primary);
  line-height: 1.35;
  margin: 36px 0 16px 0;
}

.ap-content-body p {
  margin: 0 0 24px 0;
}

.ap-content-body strong {
  color: var(--ap-text-primary);
  font-weight: 700;
}

.ap-content-body a.ap-intext-link {
  color: var(--ap-primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: var(--ap-transition);
}

body.dark-mode .ap-content-body a.ap-intext-link,
.ap-blog-article.dark-mode .ap-content-body a.ap-intext-link {
  color: var(--ap-primary-light);
}

.ap-content-body a.ap-intext-link:hover {
  color: var(--ap-primary);
  text-decoration-thickness: 2.5px;
}

.ap-content-body ul, .ap-content-body ol {
  margin: 0 0 28px 0;
  padding-left: 24px;
}

.ap-content-body li {
  margin-bottom: 12px;
}

/* -------------------------------------------------------------
   PRODUCT EMBED CARDS LIST & WIDGET (.ap-product-widget)
   ------------------------------------------------------------- */
.ap-products-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 28px 0 36px 0;
}

.ap-products-list .ap-product-widget {
  margin: 0;
}

.ap-product-widget {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-lg);
  padding: 24px;
  margin: 36px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ap-shadow-subtle);
  transition: var(--ap-transition);
}

@media (min-width: 768px) {
  .ap-product-widget {
    grid-template-columns: 220px 1fr;
    align-items: center;
    padding: 28px;
  }
}

.ap-product-widget:hover {
  border-color: var(--ap-card-hover-border);
  box-shadow: var(--ap-shadow-hover);
  transform: translateY(-3px);
}

.ap-product-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--ap-primary), var(--ap-primary-light));
}

.ap-widget-image-col {
  position: relative;
  text-align: center;
  background: radial-gradient(circle, rgba(249, 140, 31, 0.1) 0%, transparent 70%);
  border-radius: var(--ap-radius-md);
  padding: 14px;
}

.ap-widget-image-col img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.2));
  transition: transform 0.4s ease;
}

.ap-product-widget:hover .ap-widget-image-col img {
  transform: scale(1.06) rotate(2deg);
}

.ap-widget-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #f98c1f 0%, #ea580c 100%);
  color: #fff;
  font-family: var(--ap-font-title);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--ap-radius-full);
}

.ap-widget-info-col h4 {
  font-family: var(--ap-font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-widget-price {
  font-size: 1.125rem;
  color: var(--ap-primary-dark);
  font-weight: 800;
}

body.dark-mode .ap-widget-price,
.ap-blog-article.dark-mode .ap-widget-price {
  color: var(--ap-primary-light);
}

.ap-widget-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ap-text-secondary);
  margin: 0 0 18px 0;
}

.ap-widget-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: var(--ap-card-inner-bg);
  border-radius: var(--ap-radius-sm);
  border: 1px solid var(--ap-card-border);
}

.ap-metric-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ap-text-secondary);
}

.ap-metric-tag strong {
  color: var(--ap-text-primary);
}

.ap-widget-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ap-btn-order {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f98c1f 0%, #ea580c 100%);
  color: #ffffff !important;
  font-family: var(--ap-font-title);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: var(--ap-radius-full);
  box-shadow: 0 4px 14px rgba(249, 140, 31, 0.35);
  transition: var(--ap-transition);
}

.ap-btn-order:hover {
  background: linear-gradient(135deg, #ffaa3b 0%, #f98c1f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249, 140, 31, 0.5);
  color: #ffffff !important;
}

.ap-btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ap-text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--ap-radius-full);
  border: 1px solid var(--ap-card-border);
  background: var(--ap-card-bg);
  transition: var(--ap-transition);
}

.ap-btn-detail:hover {
  color: var(--ap-text-primary);
  border-color: rgba(249, 140, 31, 0.4);
  background: rgba(249, 140, 31, 0.05);
}

/* -------------------------------------------------------------
   CHEF SECRET TIP BOX (.ap-chef-tip)
   ------------------------------------------------------------- */
.ap-chef-tip {
  background: linear-gradient(135deg, rgba(249, 140, 31, 0.08) 0%, var(--ap-card-bg) 100%);
  border: 1px solid rgba(249, 140, 31, 0.35);
  border-left: 5px solid var(--ap-primary);
  border-radius: var(--ap-radius-md);
  padding: 24px;
  margin: 36px 0;
  box-shadow: var(--ap-shadow-subtle);
  position: relative;
}

.ap-tip-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ap-tip-icon {
  width: 34px;
  height: 34px;
  background: rgba(249, 140, 31, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-primary);
  font-size: 1.125rem;
}

.ap-tip-title {
  font-family: var(--ap-font-title);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ap-primary-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

body.dark-mode .ap-tip-title,
.ap-blog-article.dark-mode .ap-tip-title {
  color: var(--ap-primary-light);
}

.ap-chef-tip p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ap-text-primary);
  font-style: italic;
}

/* -------------------------------------------------------------
   HIGH-CONVERSION SECTION 1: 3-STEP ORDERING PROCESS
   ------------------------------------------------------------- */
.ap-steps-section {
  margin: 48px 0;
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-lg);
  padding: 36px 28px;
  box-shadow: var(--ap-shadow-subtle);
}

.ap-steps-header {
  text-align: center;
  margin-bottom: 32px;
}

.ap-steps-header h3 {
  font-family: var(--ap-font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin-bottom: 8px;
}

.ap-steps-header p {
  color: var(--ap-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.ap-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .ap-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ap-step-card {
  background: var(--ap-card-inner-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--ap-transition);
}

.ap-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--ap-card-hover-border);
  box-shadow: var(--ap-shadow-subtle);
}

.ap-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f98c1f 0%, #ea580c 100%);
  color: #fff;
  font-family: var(--ap-font-title);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 10px rgba(249, 140, 31, 0.4);
}

.ap-step-title {
  font-family: var(--ap-font-title);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ap-text-primary);
  margin-bottom: 8px;
}

.ap-step-desc {
  font-size: 0.875rem;
  color: var(--ap-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* -------------------------------------------------------------
   HIGH-CONVERSION SECTION 2: SOCIAL PROOF / GOOGLE REVIEWS
   ------------------------------------------------------------- */
.ap-reviews-section {
  margin: 48px 0;
}

.ap-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .ap-reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ap-review-card {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-md);
  padding: 24px;
  box-shadow: var(--ap-shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--ap-transition);
}

.ap-review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 140, 31, 0.4);
}

.ap-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.ap-review-text {
  font-size: 0.9375rem;
  color: var(--ap-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.ap-reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ap-reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.8125rem;
}

.ap-reviewer-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ap-text-primary);
}

.ap-reviewer-info span {
  font-size: 0.75rem;
  color: var(--ap-text-muted);
}

/* -------------------------------------------------------------
   HIGH-CONVERSION SECTION 3: 4 QUALITY GUARANTEES
   ------------------------------------------------------------- */
.ap-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 36px 0;
}

@media (min-width: 768px) {
  .ap-guarantees-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ap-guarantee-card {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-md);
  padding: 18px;
  text-align: center;
  box-shadow: var(--ap-shadow-subtle);
}

.ap-guarantee-icon {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.ap-guarantee-title {
  font-family: var(--ap-font-title);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ap-text-primary);
  margin-bottom: 4px;
}

.ap-guarantee-sub {
  font-size: 0.75rem;
  color: var(--ap-text-muted);
}

/* -------------------------------------------------------------
   COMPARISON TABLE (.ap-comparison-table, .ap-comparison-table-card)
   ------------------------------------------------------------- */
.ap-comparison-table-card {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-lg);
  padding: 32px 28px;
  margin: 36px 0;
  box-shadow: var(--ap-shadow-subtle);
}

.ap-comparison-table-card .ap-table-container {
  overflow-x: auto;
  margin: 20px 0 0 0;
  border-radius: var(--ap-radius-md);
  border: 1px solid var(--ap-card-border);
  box-shadow: none;
  background: var(--ap-card-bg);
}

.ap-table-container {
  overflow-x: auto;
  margin: 36px 0;
  border-radius: var(--ap-radius-md);
  border: 1px solid var(--ap-card-border);
  box-shadow: var(--ap-shadow-subtle);
  background: var(--ap-card-bg);
}

.ap-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.ap-comparison-table th, 
.ap-comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ap-table-border);
}

.ap-comparison-table th {
  font-family: var(--ap-font-title);
  font-weight: 700;
  color: var(--ap-text-primary);
  background: var(--ap-table-header-bg);
  font-size: 1rem;
}

.ap-comparison-table th.ap-col-highlight,
.ap-comparison-table td.ap-col-highlight {
  background: rgba(249, 140, 31, 0.08);
  border-left: 2px solid var(--ap-primary);
  border-right: 2px solid var(--ap-primary);
  color: var(--ap-text-primary);
  font-weight: 600;
}

.ap-check {
  color: var(--ap-accent-green);
  font-weight: 800;
  margin-right: 6px;
}

.ap-cross {
  color: var(--ap-accent-red);
  font-weight: 800;
  margin-right: 6px;
}

/* -------------------------------------------------------------
   FAQ ACCORDIONS
   ------------------------------------------------------------- */
.ap-faq-section {
  margin: 48px 0;
}

.ap-faq-item {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--ap-transition);
}

.ap-faq-item:hover {
  border-color: rgba(249, 140, 31, 0.3);
}

.ap-faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ap-font-title);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ap-text-primary);
  user-select: none;
}

.ap-faq-question svg {
  color: var(--ap-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ap-faq-item[open] .ap-faq-question svg {
  transform: rotate(180deg);
}

.ap-faq-answer {
  padding: 0 24px 24px 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ap-text-secondary);
  border-top: 1px solid var(--ap-card-border);
}

/* -------------------------------------------------------------
   LOCAL STORE INFO CARD
   ------------------------------------------------------------- */
.ap-store-info-card {
  background: var(--ap-card-bg);
  border: 1px solid rgba(249, 140, 31, 0.35);
  border-radius: var(--ap-radius-lg);
  padding: 32px;
  margin: 48px 0;
  box-shadow: var(--ap-shadow-hover);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .ap-store-info-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.ap-store-details h3 {
  font-family: var(--ap-font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin: 0 0 12px 0;
}

.ap-store-address {
  font-size: 1.0625rem;
  color: var(--ap-text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ap-store-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--ap-text-secondary);
}

.ap-store-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-store-features li span {
  color: var(--ap-primary);
}

.ap-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ap-store-map-placeholder {
  background: var(--ap-card-inner-bg);
  border-radius: var(--ap-radius-md);
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--ap-card-border);
  color: var(--ap-text-muted);
  text-align: center;
  padding: 20px;
}

.ap-store-map-placeholder svg {
  color: var(--ap-primary);
  margin-bottom: 8px;
}

/* -------------------------------------------------------------
   MOBILE STICKY CONVERSION BAR (Fixed Bottom on Mobile)
   ------------------------------------------------------------- */
.ap-mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .ap-mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ap-card-bg);
    border-top: 2px solid var(--ap-primary);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.25);
    padding: 12px 16px;
    z-index: 99999;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(12px);
  }

  .ap-mobile-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .ap-mobile-bar-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--ap-radius-sm);
    background: var(--ap-card-inner-bg);
  }

  .ap-mobile-bar-text {
    font-size: 0.8125rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ap-mobile-bar-text strong {
    display: block;
    color: var(--ap-text-primary);
  }

  .ap-mobile-bar-text span {
    color: var(--ap-primary-dark);
    font-weight: 700;
  }

  .ap-mobile-bar-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .ap-btn-mobile-order {
    background: linear-gradient(135deg, #f98c1f 0%, #ea580c 100%);
    color: #fff !important;
    font-family: var(--ap-font-title);
    font-size: 0.875rem;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: var(--ap-radius-full);
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(249, 140, 31, 0.4);
  }

  .ap-btn-mobile-call {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ap-card-inner-bg);
    border: 1px solid var(--ap-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-primary);
    text-decoration: none;
  }
}


/* ==========================================================================
   ANCHOR NAVIGATION SMOOTH CLEARANCE
   ========================================================================== */
.ap-content-body section,
.ap-content-body section[id] {
  scroll-margin-top: 110px;
}

/* ==========================================================================
   FEATURED IMAGE BOX & CAPTION (.ap-featured-box)
   ========================================================================== */
.ap-featured-box {
  width: 100% !important;
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--ap-shadow-subtle);
  border: 1px solid var(--ap-card-border);
  margin-bottom: 28px;
  background: var(--ap-card-bg);
}

.ap-featured-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 540px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ap-featured-box:hover img {
  transform: scale(1.02);
}

.ap-featured-caption {
  background: var(--ap-card-inner-bg);
  border-top: 1px solid var(--ap-card-border);
  padding: 14px 20px;
  font-size: 0.875rem;
  color: var(--ap-text-secondary);
  line-height: 1.5;
}

.ap-featured-caption span {
  font-weight: 800;
  color: var(--ap-primary);
  margin-right: 4px;
}

/* ==========================================================================
   STATISTICAL BAROMETER & DATA CHART (.ap-standalone-chart-section, .ap-standalone-chart-card)
   ========================================================================== */
.ap-standalone-chart-section {
  margin: 48px 0;
  display: block;
  clear: both;
}

.ap-chart-wrapper,
.ap-standalone-chart-card {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-top: 4px solid var(--ap-primary);
  border-radius: var(--ap-radius-lg);
  padding: 34px 28px;
  margin: 28px 0 36px 0;
  box-shadow: var(--ap-shadow-subtle);
  position: relative;
}

.ap-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.ap-stat-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ap-stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ap-text-primary);
}

.ap-stat-label strong {
  font-family: var(--ap-font-title);
  font-weight: 800;
  color: var(--ap-primary-dark);
  font-size: 1.0625rem;
}

body.dark-mode .ap-stat-label strong,
.ap-blog-article.dark-mode .ap-stat-label strong {
  color: var(--ap-primary-light);
}

.ap-stat-track {
  height: 12px;
  background: var(--ap-card-inner-bg);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--ap-card-border);
}

.ap-stat-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f98c1f 0%, #ffaa3b 100%);
  box-shadow: 0 0 10px rgba(249, 140, 31, 0.4);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   TERROIR QUÉBÉCOIS & PARTNERS GRID (.ap-terroir-box, .ap-partners-grid)
   ========================================================================== */
.ap-terroir-box {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-lg);
  padding: 32px 28px;
  margin: 36px 0;
  box-shadow: var(--ap-shadow-subtle);
}

.ap-partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .ap-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ap-partner-card {
  background: var(--ap-card-inner-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-md);
  padding: 18px 20px;
  transition: var(--ap-transition);
}

.ap-partner-card:hover {
  border-color: var(--ap-card-hover-border);
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow-subtle);
}

.ap-partner-name {
  font-family: var(--ap-font-title);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin-bottom: 4px;
}

.ap-partner-sub {
  font-size: 0.8125rem;
  color: var(--ap-text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   STORE LOCATION & METRO ACCESS CARD (.ap-store-card, .ap-store-nap)
   ========================================================================== */
.ap-store-card {
  background: linear-gradient(135deg, rgba(249, 140, 31, 0.06) 0%, var(--ap-card-bg) 100%);
  border: 1px solid rgba(249, 140, 31, 0.35);
  border-radius: var(--ap-radius-lg);
  padding: 36px 28px;
  margin: 40px 0;
  box-shadow: var(--ap-shadow-hover);
}

.ap-store-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ap-primary);
  background: rgba(249, 140, 31, 0.12);
  padding: 4px 14px;
  border-radius: var(--ap-radius-full);
  margin-bottom: 12px;
}

.ap-store-title {
  font-family: var(--ap-font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.ap-store-desc {
  font-size: 0.9375rem;
  color: var(--ap-text-secondary);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.ap-store-nap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ap-nap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ap-text-secondary);
}

.ap-nap-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ap-card-inner-bg);
  border: 1px solid var(--ap-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.ap-btn-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f98c1f 0%, #ea580c 100%);
  color: #ffffff !important;
  font-family: var(--ap-font-title);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 12px 24px;
  border-radius: var(--ap-radius-full);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(249, 140, 31, 0.35);
  transition: var(--ap-transition);
}

.ap-btn-details:hover {
  background: linear-gradient(135deg, #ffaa3b 0%, #f98c1f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249, 140, 31, 0.5);
  color: #ffffff !important;
}

/* ==========================================================================
   OFFICIAL SOURCES & CITATIONS (.ap-references-box)
   ========================================================================== */
.ap-references-box {
  background: var(--ap-card-inner-bg);
  border: 1px solid var(--ap-card-border);
  border-left: 4px solid var(--ap-primary);
  border-radius: var(--ap-radius-md);
  padding: 24px 28px;
  margin: 44px 0 24px 0;
}

.ap-references-box h4 {
  font-family: var(--ap-font-title);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.ap-references-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ap-references-box li {
  font-size: 0.875rem;
  color: var(--ap-text-secondary);
  line-height: 1.5;
}

.ap-references-box strong {
  color: var(--ap-text-primary);
}

.ap-references-box a {
  color: var(--ap-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--ap-transition);
}

.ap-references-box a:hover {
  color: var(--ap-primary);
}

/* ==========================================================================
   FAQ ACCORDIONS CHEVRON & CONTAINER
   ========================================================================== */
.ap-faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ap-faq-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ap-faq-item[open] .ap-faq-chevron {
  transform: rotate(180deg);
  color: var(--ap-primary);
}



/* ==========================================================================
   OFFICIAL DATA CHART (STATISTIQUE CANADA & MAPAQ)
   ========================================================================== */
.ap-chart-container {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-lg);
  padding: 32px 28px;
  margin: 40px 0;
  box-shadow: var(--ap-shadow-subtle);
}

.ap-chart-header {
  margin-bottom: 24px;
}

.ap-chart-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ap-chart-header h3 {
  font-family: var(--ap-font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin: 0 0 6px 0;
}

.ap-chart-header p {
  font-size: 0.875rem;
  color: var(--ap-text-muted);
  margin: 0;
}

.ap-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0;
}

.ap-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ap-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ap-text-primary);
}

.ap-bar-track {
  height: 22px;
  background: var(--ap-card-inner-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ap-card-border);
}

.ap-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease-in-out;
}

.ap-bar-poulet {
  width: 76%;
  background: linear-gradient(90deg, #f98c1f 0%, #ffaa3b 100%);
}

.ap-bar-boeuf {
  width: 52%;
  background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%);
}

.ap-bar-porc {
  width: 44%;
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
}

.ap-chart-legend {
  font-size: 0.75rem;
  color: var(--ap-text-muted);
  border-top: 1px solid var(--ap-card-border);
  padding-top: 14px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}


/* ==========================================================================
   ANIMATED SVG SECTION 1: LE CYCLE THERMIQUE DU CROQUANT
   ========================================================================== */
.ap-svg-stage-section {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-lg);
  padding: 32px 24px;
  margin: 36px 0;
  box-shadow: var(--ap-shadow-subtle);
}

.ap-svg-stage-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 28px auto;
}

.ap-svg-stage-header h3 {
  font-family: var(--ap-font-title);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin-bottom: 8px;
}

.ap-svg-stage-header p {
  font-size: 0.9375rem;
  color: var(--ap-text-muted);
  margin: 0;
}

.ap-svg-stages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .ap-svg-stages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ap-svg-stage-card {
  background: var(--ap-card-inner-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: var(--ap-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ap-svg-stage-card:hover {
  transform: translateY(-4px);
  border-color: var(--ap-card-hover-border);
  box-shadow: var(--ap-shadow-hover);
}

.ap-svg-icon-wrap {
  width: 90px;
  height: 90px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Stage 1: Animated Marinade Wave */
@keyframes ap-wave-motion {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.ap-anim-wave {
  animation: ap-wave-motion 3.5s ease-in-out infinite;
}

/* Stage 2: Animated Crisp Particles */
@keyframes ap-crisp-sparkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.ap-anim-sparkle {
  animation: ap-crisp-sparkle 2.2s ease-in-out infinite;
}

/* Stage 3: Animated Steam Rising */
@keyframes ap-steam-rise {
  0% { transform: translateY(0) scaleY(1); opacity: 0.2; }
  50% { transform: translateY(-8px) scaleY(1.2); opacity: 0.9; }
  100% { transform: translateY(-16px) scaleY(1.4); opacity: 0; }
}

.ap-anim-steam-1 {
  animation: ap-steam-rise 2.4s ease-out infinite;
}

.ap-anim-steam-2 {
  animation: ap-steam-rise 2.4s ease-out infinite 0.8s;
}

.ap-anim-steam-3 {
  animation: ap-steam-rise 2.4s ease-out infinite 1.6s;
}

/* Needle gauge animation */
@keyframes ap-gauge-needle {
  0%, 100% { transform: rotate(-25deg); }
  50% { transform: rotate(20deg); }
}

.ap-anim-needle {
  transform-origin: 45px 50px;
  animation: ap-gauge-needle 4s ease-in-out infinite;
}

/* ==========================================================================
   ANIMATED SVG SECTION 2: ANATOMIE ÉCLATÉE DU BURGER ASTRO OG
   ========================================================================== */
.ap-exploded-burger-section {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-lg);
  padding: 36px 28px;
  margin: 44px 0;
  box-shadow: var(--ap-shadow-subtle);
}

.ap-exploded-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .ap-exploded-layout {
    grid-template-columns: 340px 1fr;
  }
}

.ap-exploded-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--ap-card-inner-bg);
  border-radius: var(--ap-radius-md);
  padding: 24px;
  border: 1px solid var(--ap-card-border);
}

/* Floating Burger Layers Animations */
@keyframes ap-float-bun-top {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ap-float-pickles {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes ap-float-chicken {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 4px 10px rgba(249, 140, 31, 0.3)); }
  50% { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 8px 18px rgba(249, 140, 31, 0.6)); }
}

@keyframes ap-float-sauce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes ap-float-bun-bottom {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.ap-layer-bun-top { animation: ap-float-bun-top 3.6s ease-in-out infinite; }
.ap-layer-pickles { animation: ap-float-pickles 3.6s ease-in-out infinite 0.2s; }
.ap-layer-chicken { animation: ap-float-chicken 3.6s ease-in-out infinite 0.4s; }
.ap-layer-sauce { animation: ap-float-sauce 3.6s ease-in-out infinite 0.6s; }
.ap-layer-bun-bottom { animation: ap-float-bun-bottom 3.6s ease-in-out infinite 0.8s; }

.ap-exploded-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ap-exploded-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: var(--ap-card-inner-bg);
  border-radius: var(--ap-radius-sm);
  border: 1px solid var(--ap-card-border);
  transition: var(--ap-transition);
}

.ap-exploded-item:hover {
  border-color: var(--ap-card-hover-border);
  transform: translateX(4px);
}

.ap-layer-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f98c1f 0%, #ea580c 100%);
  color: #fff;
  font-family: var(--ap-font-title);
  font-weight: 800;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-layer-info strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ap-text-primary);
  margin-bottom: 2px;
}

.ap-layer-info p {
  font-size: 0.8125rem;
  color: var(--ap-text-secondary);
  line-height: 1.4;
  margin: 0;
}


/* ==========================================================================
   STRICT 80% MAXIMUM WIDTH CONTAINER (PAGE CENTERING)
   ========================================================================== */
.ap-blog-article {
  width: 80% !important;
  max-width: 80% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding: 40px 24px 100px 24px !important;
}

.ap-article-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.ap-article-hero {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1024px) {
  .ap-blog-article {
    width: 88% !important;
    max-width: 88% !important;
    padding: 30px 16px 80px 16px !important;
  }
}

@media (max-width: 768px) {
  .ap-blog-article {
    width: 95% !important;
    max-width: 95% !important;
    padding: 20px 10px 100px 10px !important;
  }
}

/* Dynamic Live Price Badges */
.ap-widget-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.ap-price-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ap-accent-green);
  box-shadow: 0 0 6px var(--ap-accent-green);
  display: inline-block;
}

/* ==========================================================================
   SENSORY MATRIX & FLAVOR PROFILE SECTION (.ap-sensory-matrix)
   A luxury 2-column card with animated gradient progress bars (left)
   and chef tasting notes + food pairing grid (right).
   ========================================================================== */
.ap-sensory-matrix {
  background: var(--ap-card-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-lg);
  padding: 36px 28px;
  margin: 48px 0;
  box-shadow: var(--ap-shadow-subtle);
  overflow: hidden;
  position: relative;
}

.ap-sensory-matrix::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f98c1f 0%, #ffaa3b 40%, #fcd34d 70%, #f98c1f 100%);
  background-size: 200% 100%;
  animation: ap-gradient-bar-sweep 3s linear infinite;
}

@keyframes ap-gradient-bar-sweep {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.ap-sensory-header {
  text-align: center;
  margin-bottom: 32px;
}

.ap-sensory-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ap-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(249, 140, 31, 0.1);
  padding: 4px 14px;
  border-radius: var(--ap-radius-full);
  margin-bottom: 8px;
}

.ap-sensory-title {
  font-family: var(--ap-font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin: 8px 0 6px 0;
}

.ap-sensory-sub {
  font-size: 0.9375rem;
  color: var(--ap-text-muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ap-sensory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 860px) {
  .ap-sensory-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* LEFT COLUMN: SENSORY GAUGE BARS */
.ap-sensory-gauges-col {
  display: flex;
  flex-direction: column;
}

.ap-col-header {
  font-family: var(--ap-font-title);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ap-text-primary);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(249, 140, 31, 0.2);
}

.ap-sensory-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ap-sensory-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ap-sensory-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--ap-text-secondary);
}

.ap-sensory-label strong {
  color: var(--ap-primary);
  font-weight: 800;
  font-size: 0.9375rem;
}

.ap-sensory-track {
  height: 10px;
  background: var(--ap-card-inner-bg);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ap-card-border);
}

.ap-sensory-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #f98c1f 0%, #ffaa3b 60%, #fcd34d 100%);
  box-shadow: 0 0 8px rgba(249, 140, 31, 0.35);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ap-sensory-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: ap-shimmer-sweep 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.ap-sensory-footer-tag {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--ap-card-border);
  font-size: 0.6875rem;
  color: var(--ap-text-muted);
  font-style: italic;
}

.ap-sensory-footer-tag span {
  color: var(--ap-primary);
}

/* RIGHT COLUMN: TASTING NOTES & PAIRINGS */
.ap-sensory-notes-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ap-tasting-quote-box {
  background: var(--ap-card-inner-bg);
  border: 1px solid var(--ap-card-border);
  border-left: 4px solid var(--ap-primary);
  border-radius: var(--ap-radius-md);
  padding: 20px;
}

.ap-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ap-quote-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f98c1f 0%, #ea580c 100%);
  color: #fff;
  font-family: var(--ap-font-title);
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-quote-author strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ap-text-primary);
}

.ap-quote-author span {
  display: block;
  font-size: 0.75rem;
  color: var(--ap-text-muted);
}

.ap-quote-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ap-text-secondary);
  margin: 0;
  font-style: italic;
}

/* FOOD & DRINK PAIRINGS GRID */
.ap-pairings-wrapper {
  border-top: 1px solid var(--ap-card-border);
  padding-top: 16px;
}

.ap-pairings-heading {
  font-family: var(--ap-font-title);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ap-text-primary);
  margin: 0 0 12px 0;
}

.ap-pairings-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ap-pairing-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ap-card-inner-bg);
  border: 1px solid var(--ap-card-border);
  border-radius: var(--ap-radius-sm);
  padding: 10px 14px;
  transition: var(--ap-transition);
}

.ap-pairing-card:hover {
  border-color: var(--ap-card-hover-border);
  transform: translateX(3px);
}

.ap-pairing-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ap-text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.ap-pairing-desc {
  font-size: 0.8125rem;
  color: var(--ap-text-secondary);
  line-height: 1.4;
}

/* BEST MOMENT PILL */
.ap-best-moment-pill {
  background: linear-gradient(135deg, rgba(249, 140, 31, 0.08) 0%, rgba(249, 140, 31, 0.03) 100%);
  border: 1px solid rgba(249, 140, 31, 0.25);
  border-radius: var(--ap-radius-md);
  padding: 14px 18px;
  text-align: center;
}

.ap-best-moment-pill span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ap-primary-dark);
  font-family: var(--ap-font-title);
}

body.dark-mode .ap-best-moment-pill span,
.ap-blog-article.dark-mode .ap-best-moment-pill span {
  color: var(--ap-primary-light);
}

/* ==========================================================================
   SVG EXPLODED BURGER FLOATING LAYER ANIMATIONS (CONTINUOUS LOOP)
   Each layer floats independently with staggered timing for a living effect.
   ========================================================================== */
.ap-exploded-visual svg {
  overflow: visible;
}

.ap-exploded-visual svg g[class*="ap-layer-"],
.ap-exploded-visual svg path[class*="ap-layer-"],
.ap-exploded-visual svg rect[class*="ap-layer-"],
.ap-exploded-visual svg circle[class*="ap-layer-"],
.ap-exploded-visual svg ellipse[class*="ap-layer-"] {
  will-change: transform;
}

/* Ensure the ap-anim-pulse-float on the SVG itself loops correctly */
.ap-exploded-visual svg.ap-anim-pulse-float {
  animation: ap-float-pulse 3.8s ease-in-out infinite;
}
