/* ============================================================
   LA MACHINE À CAFÉ — Feuille de style principale
   Palette : Espresso · Caramel · Crème · Café au lait
   ============================================================ */

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

/* === VARIABLES ============================================= */
:root {
  /* Palette */
  --espresso:       #1C0A00;
  --dark-roast:     #2C1810;
  --medium-roast:   #5C2D19;
  --latte:          #C17A3A;
  --crema:          #D4A96A;
  --milk-foam:      #F0DFC8;
  --paper:          #FAF5EE;
  --card-bg:        #FFFCF7;
  --alt-section:    #F5EAD9;

  /* Texte */
  --text-primary:   #2C1810;
  --text-secondary: #6B3A2A;
  --text-muted:     #A0765A;

  /* UI */
  --border-light:   #EDD9BC;
  --border:         #D4A96A;
  --star:           #F5A623;
  --badge-bg:       #FFF0DD;
  --badge-text:     #8B4513;

  /* Typo */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Nunito', system-ui, sans-serif;

  /* Espacements */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* Bordures */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Ombres */
  --shadow-xs: 0 1px 4px rgba(44,24,16,.06);
  --shadow-sm: 0 2px 8px rgba(44,24,16,.08);
  --shadow-md: 0 4px 16px rgba(44,24,16,.10);
  --shadow-lg: 0 8px 32px rgba(44,24,16,.14);
  --shadow-xl: 0 16px 48px rgba(44,24,16,.18);

  /* Transitions */
  --ease:   cubic-bezier(.4,0,.2,1);
  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t:      300ms cubic-bezier(.4,0,.2,1);
  --t-slow: 500ms cubic-bezier(.4,0,.2,1);

  /* Layout */
  --container: 1200px;
  --nav-h:     70px;
}

/* === RESET ================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === UTILITAIRES =========================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s6);
}
.section { padding-block: var(--s20); }
.section-alt { background-color: var(--alt-section); }
.text-center { text-align: center; }
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* === TYPOGRAPHIE =========================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-secondary); }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-family: var(--font-serif);
  color: var(--dark-roast);
  margin-bottom: var(--s3);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}
.section-header {
  margin-bottom: var(--s12);
}

/* === BUTTONS ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--latte);
  color: #fff;
  box-shadow: 0 4px 16px rgba(193,122,58,.3);
}
.btn-primary:hover {
  background: #a86830;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,122,58,.4);
}
.btn-secondary {
  background: transparent;
  color: var(--latte);
  border: 2px solid var(--latte);
}
.btn-secondary:hover {
  background: var(--latte);
  color: #fff;
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark-roast);
  color: var(--milk-foam);
}
.btn-dark:hover {
  background: var(--espresso);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }

/* === NAVIGATION =========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,245,238,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--t);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-roast);
  flex-shrink: 0;
}
.nav-logo .logo-icon { font-size: 1.6rem; }
.nav-logo span { font-style: italic; color: var(--latte); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.nav-links a {
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--t-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--latte);
  background: var(--badge-bg);
}
.nav-cta { margin-left: var(--s4); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s2);
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-roast);
  border-radius: 2px;
  transition: var(--t);
}

/* === HERO ================================================= */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #2C1810 0%, #5C2D19 40%, #8B4513 70%, #C17A3A 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(212,169,106,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 20% 20%, rgba(255,255,255,.04) 0%, transparent 60%);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: var(--s24);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: var(--s6);
  backdrop-filter: blur(4px);
}
.hero h1 {
  color: #fff;
  margin-bottom: var(--s6);
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.hero h1 em {
  font-style: italic;
  color: var(--crema);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 520px;
  margin-bottom: var(--s10);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: var(--s8);
  margin-top: var(--s12);
  padding-top: var(--s12);
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--crema);
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  opacity: .06;
  pointer-events: none;
  filter: blur(2px);
  user-select: none;
}

/* Steam animation */
@keyframes steam {
  0%   { opacity: 0; transform: translateY(0) scaleX(1); }
  30%  { opacity: .8; }
  100% { opacity: 0; transform: translateY(-40px) scaleX(1.4); }
}
.steam-wrap {
  position: absolute;
  right: 15%;
  top: 20%;
  font-size: 5rem;
  opacity: .25;
  pointer-events: none;
}
.steam-particle {
  display: inline-block;
  animation: steam 2.5s ease-out infinite;
}
.steam-particle:nth-child(2) { animation-delay: .8s; margin-left: 1.5rem; }
.steam-particle:nth-child(3) { animation-delay: 1.6s; margin-left: 0.5rem; }

/* === TRUST SECTION ======================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.trust-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--s8);
  text-align: center;
  transition: var(--t);
  box-shadow: var(--shadow-xs);
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.trust-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: var(--s4);
}
.trust-card h3 {
  font-size: 1rem;
  margin-bottom: var(--s2);
  color: var(--dark-roast);
}
.trust-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === PRODUCT CARDS ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.product-image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
/* Gradients distincts par machine */
.product-image.grad-1  { background: linear-gradient(135deg, #2C1810, #6B3A2A); }
.product-image.grad-2  { background: linear-gradient(135deg, #1a3a4a, #2d6080); }
.product-image.grad-3  { background: linear-gradient(135deg, #2d2d2d, #5a5a5a); }
.product-image.grad-4  { background: linear-gradient(135deg, #3a1a1a, #8B3030); }
.product-image.grad-5  { background: linear-gradient(135deg, #1a2a1a, #3a5a3a); }
.product-image.grad-6  { background: linear-gradient(135deg, #1a1a3a, #3a3a8B); }
.product-image.grad-7  { background: linear-gradient(135deg, #3a2a1a, #8B6030); }
.product-image.grad-8  { background: linear-gradient(135deg, #2a1a3a, #6030a0); }
.product-image.grad-9  { background: linear-gradient(135deg, #3a1a2a, #8B3060); }

.product-badge-top {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge-primary   { background: var(--latte);       color: #fff; }
.badge-dark      { background: var(--dark-roast);  color: var(--milk-foam); }
.badge-outline   { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); }
.badge-outline-dark { background: rgba(44,24,16,.07); color: var(--dark-roast); border: 1px solid rgba(44,24,16,.18); }
.badge-gold      { background: var(--crema);        color: var(--espresso); }
.badge-new       { background: #27ae60;             color: #fff; }
.badge-promo     { background: #e74c3c;             color: #fff; }

.product-body {
  padding: var(--s5) var(--s6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-roast);
  line-height: 1.3;
}
.product-stars {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.stars { color: var(--star); font-size: 0.9rem; letter-spacing: 2px; }
.rating-count { font-size: 0.8rem; color: var(--text-muted); }
.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
}
.price-current {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--latte);
}
.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s3) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.product-feature {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.84rem;
  color: var(--text-secondary);
}
.product-feature::before {
  content: '✓';
  color: var(--latte);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.product-footer {
  padding: var(--s4) var(--s6) var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.btn-affiliate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.7rem 1rem;
  background: var(--latte);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--t);
  box-shadow: 0 3px 12px rgba(193,122,58,.25);
}
.btn-affiliate:hover {
  background: #a86830;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(193,122,58,.35);
}
.btn-heart {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--t-fast);
  flex-shrink: 0;
}
.btn-heart:hover { border-color: #e74c3c; color: #e74c3c; background: #fff0f0; }

/* === ARTICLE CARDS ======================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.article-card-img {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  font-size: 4rem;
}
.article-img-icon {
  display: block;
  line-height: 1;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.25));
}
.article-img-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.22);
  padding: 0.2rem 0.75rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  line-height: 1.9;
}
.article-card-img.art-1 { background: linear-gradient(135deg, #2C1810, #C17A3A); }
.article-card-img.art-2 { background: linear-gradient(135deg, #1a3020, #3a7060); }
.article-card-img.art-3 { background: linear-gradient(135deg, #1a1a2a, #3a3a6a); }
.article-card-body {
  padding: var(--s6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}
.article-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--latte);
  background: var(--badge-bg);
  padding: 2px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(193,122,58,.2);
}
.article-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.article-read-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
}
.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-roast);
  line-height: 1.35;
  flex: 1;
}
.article-card-excerpt {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--latte);
  transition: var(--t-fast);
  margin-top: auto;
}
.article-card-link:hover { gap: var(--s3); color: #a86830; }

/* === FEATURED ARTICLE (blog page) ========================= */
.article-featured {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--s8);
  transition: var(--t);
}
.article-featured:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}
.article-featured-img {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  font-size: 7rem;
  background: linear-gradient(135deg, #2C1810, #C17A3A);
}
.article-featured-body {
  padding: var(--s10) var(--s10);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  justify-content: center;
}
.article-featured-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}
.article-featured-body p { font-size: 0.95rem; line-height: 1.75; }

/* === PAGE HEADER ========================================== */
.page-header {
  background: linear-gradient(135deg, #2C1810 0%, #6B3A2A 60%, #C17A3A 100%);
  padding: var(--s20) 0 var(--s16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 100%, rgba(255,255,255,.06) 0%, transparent 70%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: var(--s4); }
.page-header p { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 600px; margin-inline: auto; }
.page-header .badge { margin-bottom: var(--s4); }

/* === FILTER BAR =========================================== */
.filter-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  padding: var(--s5) 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  box-shadow: var(--shadow-xs);
}
.filter-bar .container {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.filter-btn {
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-light);
  background: transparent;
  transition: var(--t-fast);
  white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--latte);
  border-color: var(--latte);
  color: #fff;
}
.filter-sep { width: 1px; height: 20px; background: var(--border-light); }
.filter-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* === ARTICLE LAYOUT ======================================= */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s12);
  align-items: start;
}
.article-content { min-width: 0; }
.article-toc {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-bottom: var(--s8);
  box-shadow: var(--shadow-xs);
}
.article-toc h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: var(--s4);
}
.toc-list { display: flex; flex-direction: column; gap: var(--s2); }
.toc-list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: var(--s1) var(--s3);
  border-left: 2px solid var(--border-light);
  transition: var(--t-fast);
}
.toc-list a:hover {
  color: var(--latte);
  border-color: var(--latte);
  padding-left: var(--s4);
}
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.article-body h2 {
  font-size: 1.5rem;
  margin-top: var(--s12);
  margin-bottom: var(--s4);
  color: var(--dark-roast);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--border-light);
}
.article-body h3 {
  font-size: 1.15rem;
  margin-top: var(--s8);
  margin-bottom: var(--s3);
  color: var(--medium-roast);
}
.article-body p { margin-bottom: var(--s5); }
.article-body ul, .article-body ol {
  margin-left: var(--s6);
  margin-bottom: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.article-body ul { list-style: none; margin-left: 0; }
.article-body ul li {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}
.article-body ul li::before {
  content: '→';
  color: var(--latte);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.article-body ol { list-style: decimal; }
.article-body strong { color: var(--dark-roast); font-weight: 700; }
.article-body em { color: var(--latte); font-style: italic; }
.article-callout {
  background: var(--alt-section);
  border-left: 4px solid var(--latte);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s5) var(--s6);
  margin-block: var(--s8);
  font-size: 0.95rem;
}
.article-callout strong { display: block; margin-bottom: var(--s2); color: var(--latte); }
.article-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin-block: var(--s10);
}

/* === SIDEBAR ============================================== */
.sidebar { display: flex; flex-direction: column; gap: var(--s6); }
.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-xs);
}
.sidebar-card h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--dark-roast);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border-light);
}
.sidebar-product {
  display: flex;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-product:last-of-type { border-bottom: none; }
.sidebar-product-img {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.sidebar-product-info { flex: 1; min-width: 0; }
.sidebar-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-roast);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--latte);
}
.sidebar-product-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--latte);
  border: 1.5px solid var(--latte);
  padding: 4px 10px;
  border-radius: var(--r-full);
  transition: var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar-product-btn:hover {
  background: var(--latte);
  color: #fff;
}
.sidebar-sticky { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
/* === RELATED PRODUCTS (article) =========================== */
.related-products-section {
  background: var(--alt-section);
  border-radius: var(--r-xl);
  padding: var(--s8);
  margin-top: var(--s12);
}
.related-products-section h3 {
  margin-bottom: var(--s6);
  color: var(--dark-roast);
}
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.related-product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: var(--s4);
  text-align: center;
  transition: var(--t);
}
.related-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-product-card .thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: var(--s3);
}
.related-product-card .name { font-size: 0.82rem; font-weight: 700; color: var(--dark-roast); margin-bottom: var(--s2); }
.related-product-card .price { font-size: 1rem; font-weight: 700; color: var(--latte); margin-bottom: var(--s3); }

/* === BREADCRUMB =========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.75); transition: var(--t-fast); }
.breadcrumb a:hover { color: var(--crema); }
.breadcrumb-sep { color: rgba(255,255,255,.4); }

/* === CTA BANNER =========================================== */
.cta-banner {
  background: linear-gradient(135deg, #2C1810, #5C2D19, #C17A3A);
  border-radius: var(--r-xl);
  padding: var(--s16) var(--s12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(255,255,255,.08) 0%, transparent 70%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: var(--s4); }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 500px; margin-inline: auto; margin-bottom: var(--s8); }

/* === FOOTER =============================================== */
.footer {
  background: var(--dark-roast);
  color: rgba(255,255,255,.7);
  padding-top: var(--s20);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--s8);
  padding-bottom: var(--s12);
}
.footer-brand .nav-logo { color: #fff; margin-bottom: var(--s4); }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--s6);
}
.footer-social {
  display: flex;
  gap: var(--s3);
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--t-fast);
  border: 1px solid rgba(255,255,255,.12);
}
.social-link:hover { background: var(--latte); border-color: var(--latte); transform: translateY(-2px); }
.footer-col h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--s5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s3); }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.65);
  transition: var(--t-fast);
}
.footer-col ul li a:hover { color: var(--crema); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.35); }
.footer-bottom-links {
  display: flex;
  gap: var(--s5);
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
  transition: var(--t-fast);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
.footer-affiliation {
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: var(--s4) 0;
}
.footer-affiliation p {
  font-size: 0.75rem;
  color: rgba(255,255,255,.25);
  text-align: center;
  line-height: 1.7;
}

/* === COMPARISON TABLE ===================================== */
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  white-space: nowrap;
  min-width: 720px;
}
.comparison-table thead {
  background: var(--dark-roast);
  color: rgba(255,255,255,.85);
}
.comparison-table th {
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
}
.comparison-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast);
}
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--alt-section); }
.comparison-table td {
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  vertical-align: middle;
}
.cmp-name a { font-weight: 600; color: var(--dark-roast); }
.cmp-name a:hover { color: var(--latte); }
.cmp-price { font-family: var(--font-serif); font-weight: 700; color: var(--latte) !important; }
.cmp-yes { color: #27ae60; font-weight: 700; }
.cmp-no  { color: #c0392b; font-weight: 700; }
.cmp-btn {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--latte);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--t-fast);
}
.cmp-btn:hover { background: #a86830; }

/* === QUIZ ================================================= */
.quiz-progress {
  height: 5px;
  background: var(--border-light);
  border-radius: var(--r-full);
  margin-bottom: var(--s8);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--latte), var(--crema));
  border-radius: var(--r-full);
  transition: width .5s var(--ease);
  width: 0%;
}
.quiz-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--s10) var(--s10);
  box-shadow: var(--shadow-md);
  min-height: 340px;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeInUp .35s var(--ease) both; }
.quiz-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--latte);
  margin-bottom: var(--s3);
}
.quiz-question {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--dark-roast);
  margin-bottom: var(--s6);
  line-height: 1.3;
}
.quiz-options { display: flex; flex-direction: column; gap: var(--s3); }
.quiz-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s1);
  padding: var(--s4) var(--s5);
  background: var(--paper);
  border: 2px solid var(--border-light);
  border-radius: var(--r-md);
  text-align: left;
  width: 100%;
  transition: var(--t);
}
.quiz-option:hover {
  border-color: var(--latte);
  background: var(--badge-bg);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}
.quiz-option-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-roast);
}
.quiz-option-desc { font-size: 0.82rem; color: var(--text-muted); }
.quiz-result-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--s6);
  align-items: center;
  background: var(--alt-section);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin: var(--s6) 0;
}
.quiz-result-img {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.quiz-result-img img { max-width: 85%; max-height: 85%; object-fit: contain; }
.quiz-result-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); }
.quiz-restart {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  margin-top: var(--s3);
  display: block;
}
.quiz-restart:hover { color: var(--latte); }
@media (max-width: 520px) {
  .quiz-card { padding: var(--s6) var(--s5); }
  .quiz-result-card { grid-template-columns: 1fr; }
}

/* === LEGAL PAGES ========================================== */
.legal-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: var(--s10);
  margin-bottom: var(--s3);
  color: var(--dark-roast);
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--border-light);
}
.legal-body p { margin-bottom: var(--s4); }
.legal-body ul { list-style: disc; margin-left: var(--s6); margin-bottom: var(--s4); }
.legal-body ul li { margin-bottom: var(--s2); }
.legal-placeholder {
  background: var(--alt-section);
  border: 2px dashed var(--latte);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  font-style: italic;
  color: var(--latte);
  font-size: 0.88rem;
}

/* === CONTACT FORM ========================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-roast);
  margin-bottom: var(--s1);
  display: block;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--paper);
  color: var(--text-primary);
  transition: var(--t-fast);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--latte);
  box-shadow: 0 0 0 3px rgba(193,122,58,.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--r-md);
  padding: var(--s5) var(--s6);
  color: #2e7d32;
  font-weight: 600;
  display: none;
}

/* === ANIMATIONS =========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.fade-in-up { animation: fadeInUp .6s var(--ease) both; }
.fade-in-up.delay-1 { animation-delay: .1s; }
.fade-in-up.delay-2 { animation-delay: .2s; }
.fade-in-up.delay-3 { animation-delay: .3s; }
.fade-in-up.delay-4 { animation-delay: .4s; }

/* === RESPONSIVE =========================================== */
@media (max-width: 1024px) {
  .products-grid       { grid-template-columns: repeat(2, 1fr); }
  .trust-grid          { grid-template-columns: repeat(3, 1fr); }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .article-layout      { grid-template-columns: 1fr; }
  .sidebar             { display: grid; grid-template-columns: repeat(2, 1fr); }
  .sidebar-sticky      { position: static; }
  .article-featured    { grid-template-columns: 1fr; }
  .article-featured-img { aspect-ratio: 16/9; }
}
/* ===== FICHE PRODUIT ======================================= */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-hero-img {
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-hero-img img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.product-hero-info .brand {
  color: var(--text-muted);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.product-hero-info h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hero-price { margin-bottom: 1.5rem; }
.hero-price .price-main {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--latte);
}
.hero-price .price-old {
  margin-left: .75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1.1rem;
}
.specs-chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.specs-chips span {
  background: var(--alt-section);
  padding: .35rem .8rem;
  border-radius: 2rem;
  font-size: .85rem;
  border: 1px solid var(--border);
}
.btn-affiliate-main {
  display: block;
  text-align: center;
  width: 100%;
}
.affiliate-disclaimer {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: .5rem;
}
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.pros-box, .cons-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.pros-box h3 { color: #2a7a2a; margin-bottom: 1rem; }
.cons-box h3 { color: #a02020; margin-bottom: 1rem; }
.pros-box ul, .cons-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  font-size: .95rem;
}
.pros-box li::before { content: "✓ "; color: #2a7a2a; font-weight: 700; }
.cons-box li::before { content: "✗ "; color: #a02020; font-weight: 700; }
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: .95rem;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: .75rem 1rem; vertical-align: top; }
.specs-table td:first-child {
  font-weight: 600;
  background: var(--card-bg);
  width: 42%;
}
.cta-center { text-align: center; margin-top: 2.5rem; }

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .products-grid         { grid-template-columns: 1fr; }
  .articles-grid         { grid-template-columns: 1fr; }
  .trust-grid            { grid-template-columns: 1fr; }
  .related-products-grid { grid-template-columns: 1fr; }
  .footer-grid           { grid-template-columns: 1fr; }
  .sidebar               { grid-template-columns: 1fr; }
  .hero-visual           { display: none; }
  .hero-stats            { flex-wrap: wrap; gap: var(--s6); }
  .filter-bar .container { gap: var(--s3); }
  .footer-bottom         { flex-direction: column; align-items: flex-start; }
  .cta-banner            { padding: var(--s10) var(--s6); }
  .product-hero          { grid-template-columns: 1fr; }
  .pros-cons             { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container  { padding-inline: var(--s4); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
