/* ============================================================
   LE BON CHOIX — VIF & POP — Design exact
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400..700&display=swap');

:root {
  --bg:        #EAF3FE;
  --bg-card:   #FFFFFF;
  --navy:      #0E2A47;
  --navy-lt:   #1A3A5C;
  --yellow:    #FFD23E;
  --yellow-dk: #F0BE1F;
  --yellow-soft:#FFF1C2;
  --brown:     #5A3E00;
  --brown-lt:  #9A6B00;
  --blue-tag:  #FFF1C2;
  --blue-tag-t:#1565C9;
  --blue-score:#2E86E6;
  --blue-link: #1565C9;
  --blue-primary:#2E86E6;
  --placeholder:#DCEEFF;
  --stripe:    #CFE5FF;
  --gray:      #6B86A3;
  --gray-lt:   #F4FAFF;
  --border:    #E2ECF6;
  --border-lt: #CFE5FF;
  --green:     #1E9E6A;
  --red:       #C9612F;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 999px;
  --shadow:    0 2px 12px rgba(14,42,71,.07);
  --shadow-lg: 0 6px 32px rgba(14,42,71,.12);
  --font:      'Space Grotesk', sans-serif;
  --font-hero: 'Space Grotesk', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-weight: 400; font-size: 18px; line-height: 1.55;
  background: linear-gradient(180deg, #DCEEFF 0%, #EAF6FF 28%, #F4FAFF 100%);
  background-attachment: fixed;
  color: var(--navy); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-hero); font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- UTILITIES ---- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }

/* ---- LEGACY TAG CLASSES (kept for article pages) ---- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: var(--radius-xl);
}
.tag-blue   { background: var(--blue-tag); color: var(--blue-tag-t); }
.tag-coral  { background: rgba(255,107,107,.15); color: #c0392b; }
.tag-mint   { background: rgba(0,201,167,.15); color: #00927a; }
.tag-yellow { background: var(--yellow); color: var(--navy); }
.eyebrow {
  display: block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--blue-primary);
  margin-bottom: 8px;
}
.logo-badge {
  font-size: .65rem; background: var(--yellow); color: var(--navy);
  padding: 2px 8px; border-radius: var(--radius-xl); font-weight: 700; vertical-align: middle;
}

/* ---- PILL TAGS ---- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: var(--radius-xl);
}
.pill-blue   { background: var(--blue-tag); color: var(--blue-tag-t); }
.pill-yellow { background: var(--yellow); color: var(--navy); }
.pill-navy   { background: var(--navy); color: #fff; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font); font-size: .88rem; font-weight: 700;
  padding: 13px 24px; border-radius: var(--radius-xl);
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-navy   { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-lt); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid rgba(26,43,98,.25); }
.btn-outline:hover { border-color: var(--navy); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-dk); }
.btn-full { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .8rem; }
.btn-lg { padding: 16px 32px; font-size: .95rem; }

/* ---- IMAGE PLACEHOLDER (diagonal stripe) ---- */
.img-placeholder {
  background-image: repeating-linear-gradient(
    135deg,
    var(--placeholder),
    var(--placeholder) 12px,
    var(--stripe) 12px,
    var(--stripe) 24px
  );
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--blue-tag-t); font-weight: 600;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; align-items: center; height: 64px; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 1rem; font-weight: 700;
  color: var(--navy); flex-shrink: 0;
}
.logo-icon { font-size: 1.3rem; }
.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.nav-links a {
  color: var(--navy); font-size: .85rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  transition: border-color .15s, background .15s;
}
.nav-links a:hover { border-color: var(--navy); background: var(--gray-lt); }
.nav-cta { margin-left: 12px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
.hamburger span + span { margin-top: 5px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg);
  padding: 72px 0 80px;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero-circle-yellow {
  position: absolute; top: -60px; left: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--yellow); opacity: .55; filter: blur(2px);
  pointer-events: none;
}
.hero-circle-blue {
  position: absolute; top: -40px; right: -100px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--stripe); opacity: .7;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero-badge { margin-bottom: 24px; }
.hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 5.5vw, 62px);
  font-weight: 700; line-height: 1.02; letter-spacing: -.025em;
  color: var(--navy); margin-bottom: 20px;
}
.hero h1 .highlight-blue {
  color: var(--blue-primary);
}
.hero h1 .highlight-box {
  background: var(--yellow);
  color: var(--navy);
  padding: 0 10px;
  border-radius: 10px;
  display: inline;
}
.hero-desc {
  color: var(--gray); font-size: 1.05rem; max-width: 460px;
  margin: 0 auto 36px; line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--border);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none; color: inherit; cursor: pointer;
}
.cat-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-thumb {
  width: 68px; height: 68px; flex-shrink: 0; border-radius: var(--radius-sm);
}
.cat-info { flex: 1; }
.cat-name { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.cat-arrow {
  margin-left: auto; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-lt); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--navy);
  transition: background .15s;
}
.cat-card:hover .cat-arrow { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-card-featured { border-color: var(--blue-primary); background: linear-gradient(135deg, #f0f7ff 0%, var(--bg-card) 100%); }
.cat-card-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.cat-card-content { flex: 1; min-width: 0; }
.cat-card-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.cat-card-meta { font-size: .8rem; color: var(--gray); margin-bottom: 8px; }
.cat-card-count { margin-bottom: 6px; }
.cat-card-pick {
  font-size: .78rem; color: var(--gray); font-style: italic;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-card-arrow {
  margin-left: 12px; flex-shrink: 0;
  padding: 5px 11px; border-radius: var(--radius-xl);
  background: var(--gray-lt); border: 1.5px solid var(--border);
  display: flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 700; color: var(--navy); white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.cat-card:hover .cat-card-arrow { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-label {
  display: flex; justify-content: center; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-hero);
  font-size: clamp(1.6rem, 3vw, 36px);
  font-weight: 700; letter-spacing: -.02em; text-align: center; margin-bottom: 32px;
}

/* ============================================================
   PRODUCT CARDS GRID (2×2)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.prod-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.prod-card-img {
  height: 160px; position: relative;
}
.prod-card-img .img-placeholder { height: 100%; border-radius: 0; }
.prod-card-img .prod-img-real {
  height: 100%; width: 100%; border-radius: 0;
  object-fit: contain; background: #fff; display: block;
}
.prod-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-xl);
}
.prod-badge-yellow { background: var(--yellow); color: var(--navy); }
.prod-badge-blue   { background: var(--blue-score); color: #fff; }
.prod-score {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-score); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; line-height: 1;
}
.prod-score small { font-size: .5rem; font-weight: 500; opacity: .8; }

.prod-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.prod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.prod-name { font-size: .95rem; font-weight: 700; line-height: 1.2; }
.prod-price { font-size: 1.05rem; font-weight: 700; color: var(--blue-link); white-space: nowrap; }
.prod-reviews { font-size: .75rem; color: var(--gray); display: flex; align-items: center; gap: 4px; }
.prod-reviews .stars { color: #F59E0B; }
.prod-features { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; }
.feat { font-size: .75rem; display: flex; align-items: flex-start; gap: 4px; line-height: 1.4; }
.feat.pro::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.feat.con::before { content: '✗'; color: var(--red); font-weight: 700; flex-shrink: 0; }
.feat.con { color: var(--gray); }
.prod-card-footer { padding: 0 16px 16px; }
.prod-card-footer .btn { border-radius: 10px; font-size: .85rem; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  padding: 64px 0; background: var(--bg);
}
.newsletter-box { text-align: center; max-width: 520px; margin: 0 auto; }
.newsletter-box h2 {
  font-family: var(--font-hero); font-size: 1.7rem; font-weight: 700;
  margin-bottom: 10px;
}
.newsletter-box p { color: var(--gray); font-size: .9rem; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-input {
  flex: 1; padding: 13px 18px; border-radius: var(--radius-xl);
  border: 1.5px solid var(--border); font-family: var(--font); font-size: .88rem;
  background: #fff; outline: none; min-width: 0;
}
.newsletter-input:focus { border-color: var(--navy); }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.why-item {
  background: #fff; border-radius: var(--radius); padding: 24px 20px;
  border: 1.5px solid var(--border); text-align: center;
}
.why-icon { font-size: 2rem; margin-bottom: 10px; }
.why-title { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.why-desc { font-size: .8rem; color: var(--gray); line-height: 1.6; }

/* ============================================================
   ARTICLES
   ============================================================ */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.article-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1.5px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.article-thumb.bg-coral  { background: linear-gradient(135deg,#FF6B6B,#FF9A8B); }
.article-thumb.bg-blue   { background: linear-gradient(135deg,var(--blue-primary),#6B93FF); }
.article-thumb.bg-mint   { background: linear-gradient(135deg,#00C9A7,#43E8C9); }
.article-thumb.bg-yellow { background: linear-gradient(135deg,var(--yellow-dk),var(--yellow)); }
.article-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.article-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-link); }
.article-title { font-size: .92rem; font-weight: 700; line-height: 1.35; }
.article-excerpt { font-size: .82rem; color: var(--gray); flex: 1; line-height: 1.6; }
.article-meta { font-size: .73rem; color: var(--gray); display: flex; gap: 8px; }
.article-read { font-size: .8rem; font-weight: 700; color: var(--blue-link); margin-top: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 52px 0 24px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-brand p { font-size: .83rem; color: rgba(255,255,255,.45); max-width: 260px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.footer-col ul li + li { margin-top: 8px; }
.footer-col ul li a { font-size: .83rem; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .76rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.35); transition: color .15s; }
.footer-bottom a:hover { color: var(--yellow); }

/* ============================================================
   PAGE HERO (category/article pages)
   ============================================================ */
.page-hero { background: var(--bg); padding: 48px 0 40px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--gray); margin-bottom: 14px; }
.breadcrumb a { color: var(--gray); transition: color .15s; }
.breadcrumb a:hover { color: var(--navy); }
.page-hero h1 { font-family: var(--font-hero); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.15; margin: 10px 0 12px; }
.page-hero p { color: var(--gray); font-size: .92rem; max-width: 520px; }

/* ============================================================
   FILTERS
   ============================================================ */
.filters-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; position: sticky; top: 64px; z-index: 50; }
.filters-inner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: .78rem; font-weight: 700; color: var(--gray); }
.filter-btn {
  padding: 6px 14px; border-radius: var(--radius-xl); font-size: .78rem; font-weight: 600;
  border: 1.5px solid var(--border); background: #fff; cursor: pointer;
  transition: all .15s; font-family: var(--font); color: var(--navy);
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comp-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.comp-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 680px; }
.comp-table thead th { background: var(--navy); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 13px 14px; text-align: left; }
.comp-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.comp-table thead th:last-child  { border-radius: 0 var(--radius) 0 0; }
.comp-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.comp-table tbody tr:hover { background: var(--gray-lt); }
.comp-table tbody tr:last-child { border-bottom: none; }
.comp-table td { padding: 14px; font-size: .85rem; vertical-align: middle; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero { background: var(--navy); padding: 60px 0 48px; }
.article-hero h1 { font-family: var(--font-hero); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: #fff; margin: 12px 0 16px; line-height: 1.2; }
.article-content { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.article-content h2 { font-family: var(--font-hero); font-size: 1.3rem; font-weight: 700; margin: 36px 0 14px; }
.article-content h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 10px; }
.article-content p { color: #374151; line-height: 1.8; margin-bottom: 16px; font-size: .95rem; }
.article-content ul { margin: 14px 0 20px; padding-left: 20px; }
.article-content ul li { color: #374151; margin-bottom: 8px; line-height: 1.7; font-size: .92rem; }
.article-callout { background: var(--yellow); border-radius: var(--radius-sm); padding: 20px 24px; margin: 28px 0; display: flex; gap: 12px; }
.article-callout-icon { font-size: 1.3rem; flex-shrink: 0; }
.article-callout strong { display: block; font-size: .88rem; margin-bottom: 4px; }
.article-callout p { font-size: .85rem; color: rgba(0,0,0,.7); margin: 0; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 200; background: var(--navy); padding: 80px 24px 40px; flex-direction: column; gap: 6px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; color: #fff; font-size: 1.05rem; font-weight: 700; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.1); border: none; color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Scroll top */
.scroll-top { position: fixed; bottom: 24px; right: 24px; z-index: 90; background: var(--navy); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; box-shadow: var(--shadow); border: none; }
.scroll-top.show { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .articles-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; margin-left: auto; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 2.2rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
