/* ═══════════════════════════════════════════
   MonMasseur.fr — Feuille de style globale
   ═══════════════════════════════════════════ */

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

:root {
  --cream:            #F7F3EE;
  --warm-white:       #FDFAF7;
  --dark:             #1A1410;
  --brown:            #3D2B1F;
  --terracotta:       #C4622D;
  --terracotta-light: #E8845A;
  --gold:             #C9A84C;
  --gold-light:       #E8CC7A;
  --sage:             #7A9E7E;
  --muted:            #8A7968;
  --border:           #E0D5C8;
  --card:             #FFFFFF;
  --shadow:           0 4px 24px rgba(61,43,31,0.10);
  --shadow-lg:        0 12px 48px rgba(61,43,31,0.18);
  --radius:           14px;
  --radius-sm:        8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--brown);
  line-height: 1.2;
}
h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 700; }
p  { line-height: 1.75; }
a  { color: var(--terracotta); }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 64px 0; }
.section-alt { background: var(--warm-white); }

/* ── TOP BANNER ── */
.top-banner {
  background: var(--terracotta);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}
.top-banner a { color: var(--gold-light); }

/* ── NAV ── */
.nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(61,43,31,.06);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--brown);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--terracotta); }
.nav-links { display: flex; gap: 24px; list-style: none; flex: 1; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); }
.nav-cta {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.nav-cta:hover { background: var(--brown); color: #fff; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0 0;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb span { margin: 0 6px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary   { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--brown); color: #fff; transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--terracotta); border: 1.5px solid var(--terracotta); }
.btn-outline:hover { background: rgba(196,98,45,.06); }
.btn-block     { display: block; width: 100%; }
.btn-gold      { background: var(--gold); color: var(--brown); }
.btn-gold:hover { background: var(--gold-light); }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--terracotta);
}

/* ── STARS ── */
.stars { display: flex; gap: 2px; }
.star  { color: var(--gold); font-size: 14px; }
.star.empty { color: var(--border); }

/* ── TAGS ── */
.tag {
  display: inline-block;
  background: rgba(196,98,45,.08);
  color: var(--terracotta);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.tag-green { background: rgba(122,158,126,.12); color: var(--sage); }
.tag-gold  { background: rgba(201,168,76,.15); color: #9A7A20; }

/* ── SCORE BARS ── */
.score-bar-wrap { margin-bottom: 9px; }
.score-label    { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.score-bar      { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.score-fill     { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light)); }

/* ── PRICE ── */
.price-big  { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--brown); }
.price-old  { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.price-save { background: rgba(122,158,126,.15); color: var(--sage); border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; }

/* ── PRICE TABLE ── */
.price-table         { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table tr      { border-bottom: 1px solid var(--border); }
.price-table tr:last-child { border-bottom: none; }
.price-table td      { padding: 8px 4px; vertical-align: middle; }
.price-table td:nth-child(2) { font-weight: 700; color: var(--brown); text-align: right; }
.price-table td:last-child   { text-align: right; }
.price-table .shop-btn {
  color: var(--terracotta);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--terracotta);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s;
}
.price-table .shop-btn:hover { background: rgba(196,98,45,.08); }

/* ── VERDICT BOX ── */
.verdict {
  background: linear-gradient(135deg, rgba(196,98,45,.06), rgba(201,168,76,.06));
  border: 1px solid rgba(196,98,45,.2);
  border-left: 4px solid var(--terracotta);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--brown);
  line-height: 1.7;
}

/* ── PROS/CONS ── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros, .cons { border-radius: var(--radius-sm); padding: 16px; }
.pros { background: rgba(122,158,126,.08); border: 1px solid rgba(122,158,126,.2); }
.cons { background: rgba(196,98,45,.05); border: 1px solid rgba(196,98,45,.15); }
.pros h4 { color: var(--sage); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.cons h4 { color: var(--terracotta); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.pros li, .cons li { font-size: 13px; color: var(--muted); margin-bottom: 6px; list-style: none; padding-left: 18px; position: relative; }
.pros li::before { content: '✓'; color: var(--sage); position: absolute; left: 0; font-weight: 700; }
.cons li::before { content: '✗'; color: var(--terracotta); position: absolute; left: 0; font-weight: 700; }

/* ── FAQ ── */
.faq-item       { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q          { font-weight: 600; font-size: 16px; color: var(--brown); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after   { content: '+'; font-size: 22px; color: var(--terracotta); flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a          { font-size: 14px; color: var(--muted); line-height: 1.8; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding-top .3s; }
.faq-item.open .faq-a { max-height: 500px; padding-top: 12px; }

/* ── NEWSLETTER ── */
.newsletter      { background: linear-gradient(135deg, var(--terracotta), #A0461D); color: #fff; padding: 64px 24px; text-align: center; }
.newsletter h2   { color: #fff; margin-bottom: 12px; }
.newsletter p    { opacity: .85; font-size: 15px; margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }
.nl-form         { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.nl-form input   { flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 14px; background: rgba(255,255,255,.18); color: #fff; outline: none; }
.nl-form input::placeholder { color: rgba(255,255,255,.55); }
.nl-form button  { background: #fff; color: var(--terracotta); border: none; padding: 12px 22px; border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,.55); padding: 52px 24px 24px; }
.footer-grid { max-width: 1100px; margin: 0 auto 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { color: #fff; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.45); }
.footer-col h4  { color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; font-family: 'DM Sans', sans-serif; }
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: 8px; }
.footer-col a   { color: rgba(255,255,255,.45); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-col a:hover { color: var(--terracotta-light); }
.footer-bottom  { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 8px; max-width: 1100px; margin: 0 auto; }
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }

/* ── SECTION TITLES ── */
.section-header { margin-bottom: 36px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--muted); font-size: 15px; }
.label {
  display: inline-block;
  background: rgba(196,98,45,.1);
  color: var(--terracotta);
  border: 1px solid rgba(196,98,45,.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp .65s ease both; }
.anim-2 { animation: fadeUp .65s .1s ease both; }
.anim-3 { animation: fadeUp .65s .2s ease both; }

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── MOBILE MENU DROPDOWN ── */
.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(61,43,31,.12);
  z-index: 199;
  padding: 16px 24px 20px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--brown);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--terracotta); }
.mobile-menu .nav-cta {
  display: block;
  margin-top: 14px;
  text-align: center;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  font-size: 13px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner a { color: var(--terracotta-light); }
.cookie-banner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.cookie-refuse {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.cookie-refuse:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* ── RESPONSIVE TABLETTE (iPad) ── */
@media (max-width: 1024px) {
  .nav-links { gap: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .podium { gap: 12px; }
}

/* ── RESPONSIVE MOBILE & iPad PORTRAIT ── */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { position: relative; }

  /* Typography */
  h1 { font-size: clamp(22px, 5vw, 32px) !important; }
  h2 { font-size: clamp(20px, 4vw, 26px); }

  /* Layout */
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }

  /* Podium top 3 */
  .podium {
    grid-template-columns: 1fr !important;
    max-width: 420px;
    margin: 0 auto;
  }
  .podium-card.winner { order: -1; }

  /* Product rows */
  .product-row {
    grid-template-columns: 60px 1fr !important;
    gap: 12px;
    padding: 16px;
  }
  .product-row-right {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* Categories grid */
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr !important; }

  /* Criteria grid */
  .crit-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }

  /* Price table */
  .price-table { font-size: 12px; }

  /* Hero */
  .hero-stats { gap: 24px; }

  /* Cookie banner */
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-banner .cookie-btns { width: 100%; }
  .cookie-accept, .cookie-refuse { flex: 1; text-align: center; }

  /* Back to top */
  .back-to-top { bottom: 80px; right: 16px; }

  /* Two-col layouts */
  .two-col,
  .review-grid,
  .blog-layout { grid-template-columns: 1fr !important; }

  /* Sticky buy box */
  .sticky-buy, .buy-box { position: static !important; }

  /* Specs grid */
  .specs-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── RESPONSIVE PETIT MOBILE ── */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .crit-grid { grid-template-columns: 1fr !important; }
  .hero-stats { gap: 16px; }
  .hero-stats strong { font-size: 22px !important; }
  .podium-card { padding: 20px 16px; }
  .price-row { flex-wrap: wrap; gap: 6px; }
  .score-bar-wrap .score-label { font-size: 11px; }

  /* Product cards dans catégories */
  .product-card { grid-template-columns: 1fr !important; }
  .product-card-img { height: 180px; }
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(196,98,45,.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  z-index: 500;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--brown); color: #fff; }

/* ── READING PROGRESS BAR ── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--terracotta);
  z-index: 9999;
  transition: width .1s;
}

/* ── IMAGE LAZY LOAD FADE ── */
img[loading="lazy"] { opacity: 0; transition: opacity .4s; }
img[loading="lazy"].loaded { opacity: 1; }

/* ── PRODUCT CARD HOVER SHINE ── */
.podium-card { overflow: hidden; }
.podium-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.06), transparent);
  transform: skewX(-20deg);
  transition: left .5s;
  pointer-events: none;
}
.podium-card:hover::after { left: 130%; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1000;
  font-size: 13px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner a { color: var(--terracotta-light); }
.cookie-accept {
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
