/*
Theme Name: Viralinkom Bébé
Theme URI: https://bebe.viralinkom.com
Author: Viralinkom
Description: Thème doux et épuré pour le site de bons plans bébé. Pensé pour les jeunes parents : clair, rassurant, facile à naviguer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2+
Text Domain: viralinkom-bebe
Tags: baby, affiliate, deals, light, minimal, clean
*/

/* ═══════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════ */
:root {
  --cream:      #fdf8f4;
  --white:      #ffffff;
  --peach:      #f9a87a;
  --peach-light:#fde8d8;
  --peach-dark: #e8895a;
  --blush:      #f7c5c5;
  --blush-dark: #e8a0a0;
  --mint:       #b8e4d8;
  --mint-dark:  #5abfa6;
  --sky:        #c9e8f5;
  --lavender:   #ddd0f0;
  --text:       #3a3028;
  --text-light: #7a6f67;
  --text-muted: #b0a59d;
  --border:     #ede8e3;
  --shadow:     0 4px 24px rgba(120,80,40,0.08);
  --shadow-lg:  0 8px 40px rgba(120,80,40,0.13);
  --radius:     14px;
  --radius-sm:  8px;
  --radius-pill:100px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Helvetica Neue', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════ */
h1,h2,h3,h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 56px 0; }

/* ═══════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════ */
#topbar {
  background: var(--peach);
  padding: 9px 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
#topbar a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#masthead {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(120,80,40,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--peach-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.logo-text { line-height: 1; }
.logo-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo-name span { color: var(--peach); }
.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Nav */
#main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
#main-nav a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}
#main-nav a:hover,
#main-nav .current-menu-item a {
  background: var(--peach-light);
  color: var(--peach-dark);
}

/* Search */
.header-search {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
}
.header-search input {
  background: none;
  border: none;
  outline: none;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  width: 180px;
}
.header-search button {
  background: var(--peach);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 15px;
  transition: background .2s;
  color: white;
}
.header-search button:hover { background: var(--peach-dark); }

.menu-toggle {
  display: none;
  background: var(--peach-light);
  border: none;
  color: var(--peach-dark);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  margin-left: auto;
}

/* ═══════════════════════════════════════════
   CATEGORY PILLS BAR
═══════════════════════════════════════════ */
#cat-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
#cat-bar::-webkit-scrollbar { display: none; }
.cat-bar-inner {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  padding: 0 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  background: var(--cream);
  color: var(--text-light);
  border: 1.5px solid var(--border);
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.cat-pill:hover   { border-color: var(--peach); color: var(--peach-dark); background: var(--peach-light); }
.cat-pill.active  { background: var(--peach); color: white; border-color: var(--peach); }
.cat-pill .badge-new {
  background: var(--mint-dark);
  color: white;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 800;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  background: linear-gradient(135deg, #fff9f5 0%, #fde8d8 50%, #fdf3ee 100%);
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(249,168,122,.2) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  left: -40px; bottom: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(184,228,216,.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media(max-width:768px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1.5px solid var(--peach-light);
  color: var(--peach-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.hero h1 { margin-bottom: 14px; color: var(--text); }
.hero h1 span { color: var(--peach); }
.hero-sub { color: var(--text-light); font-size: 16px; margin-bottom: 28px; max-width: 440px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.h-stat .num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--peach);
  line-height: 1;
}
.h-stat .lbl { font-size: 12px; color: var(--text-muted); font-weight: 700; }

/* Hero right — floating cards illus */
.hero-visual {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-emoji-main {
  font-size: 110px;
  filter: drop-shadow(0 8px 24px rgba(120,80,40,.15));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-mini-badge {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
  animation: float 3s ease-in-out infinite;
}
.hero-mini-badge:nth-child(2) { top:20px; right:0; animation-delay:.5s; }
.hero-mini-badge:nth-child(3) { bottom:40px; left:0; animation-delay:1s; }
.hero-mini-badge:nth-child(4) { top:100px; left:-10px; animation-delay:1.5s; }

/* ═══════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head h2 { font-size: 24px; }
.section-head .see-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--peach-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-head .see-all:hover { color: var(--peach); }

/* ═══════════════════════════════════════════
   DEAL CARDS
═══════════════════════════════════════════ */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.deal-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
}
.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--peach-light);
}

/* Card image area */
.card-img {
  background: var(--cream);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.card-img img { width:100%; height:100%; object-fit:cover; }
.card-discount {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--peach);
  color: white;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.card-cat {
  position: absolute;
  top: 12px; right: 12px;
  background: white;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}
.card-fav {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 32px; height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  border: none;
  transition: transform .2s;
}
.card-fav:hover { transform: scale(1.2); }

/* Card body */
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-brand { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: 12px; flex: 1; }
.card-title a:hover { color: var(--peach-dark); }

.card-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.price-new {
  font-size: 24px;
  font-weight: 900;
  color: var(--peach-dark);
  line-height: 1;
  font-family: 'Nunito', sans-serif;
}
.price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-save {
  background: #e8f8ef;
  color: var(--mint-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.card-btn {
  display: block;
  width: 100%;
  padding: 11px;
  background: var(--peach);
  color: white;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: 0.2px;
}
.card-btn:hover { background: var(--peach-dark); color: white; transform: scale(1.01); }

.card-merchant {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.merchant-dot {
  width: 6px; height: 6px;
  background: var(--mint-dark);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════
   CATEGORY CARDS (grandes catégories)
═══════════════════════════════════════════ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cat-card:hover {
  border-color: var(--peach);
  background: var(--peach-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.cat-card-name { font-size: 13px; font-weight: 800; color: var(--text); }
.cat-card-count { font-size: 11px; color: var(--text-muted); font-weight: 700; }

/* ═══════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════ */
.trust-strip {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 28px 0;
}
.trust-inner {
  display: flex;
  gap: 0;
  justify-content: space-around;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
}
.trust-icon { font-size: 28px; }
.trust-title { font-size: 14px; font-weight: 800; color: var(--text); }
.trust-desc  { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   MARCHANDS STRIP
═══════════════════════════════════════════ */
.merchants-strip { padding: 36px 0; background: var(--cream); }
.merchants-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.merchant-badge {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  transition: all .2s;
}
.merchant-badge:hover {
  border-color: var(--peach);
  color: var(--peach-dark);
  background: var(--peach-light);
}

/* ═══════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════ */
.newsletter-wrap {
  background: linear-gradient(135deg, var(--peach-light), #fde0d5);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0;
  border: 1.5px solid var(--peach-light);
  position: relative;
  overflow: hidden;
}
.newsletter-wrap::before {
  content: '🍼';
  position: absolute;
  right: 30px; top: -10px;
  font-size: 80px;
  opacity: 0.15;
}
.newsletter-wrap::after {
  content: '💛';
  position: absolute;
  left: 30px; bottom: -10px;
  font-size: 70px;
  opacity: 0.15;
}
.newsletter-wrap h3 {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--text);
}
.newsletter-wrap p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 15px;
}
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.nl-form input[type="email"] {
  flex: 1;
  padding: 13px 18px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}
.nl-form input:focus { border-color: var(--peach); }
.nl-form button {
  padding: 13px 24px;
  background: var(--peach);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
  font-family: inherit;
}
.nl-form button:hover { background: var(--peach-dark); }
.nl-note { font-size: 11px; color: var(--text-muted); margin-top: 10px; }

/* ═══════════════════════════════════════════
   SINGLE DEAL
═══════════════════════════════════════════ */
.single-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 32px 0;
}
@media(max-width:900px) { .single-wrap { grid-template-columns: 1fr; } }
.deal-gallery-main {
  background: var(--cream);
  border-radius: var(--radius);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 110px;
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
}
.sticky-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.sticky-box .price-new { font-size: 36px; }
.sticky-box .card-btn  { font-size: 15px; padding: 14px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#colophon {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0 32px;
}
@media(max-width:900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media(max-width:580px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-desc { font-size: 13px; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--text-light); }
.footer-col a:hover { color: var(--peach-dark); }
.footer-bottom {
  border-top: 1.5px solid var(--border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--text-muted); margin-left: 16px; }
.footer-bottom a:hover { color: var(--peach-dark); }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-family: inherit;
}
.btn-primary   { background: var(--peach); color: white; }
.btn-primary:hover { background: var(--peach-dark); color: white; }
.btn-outline   { background: white; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--peach); color: var(--peach-dark); }
.btn-mint      { background: var(--mint); color: var(--text); }
.btn-mint:hover { background: var(--mint-dark); color: white; }

/* ═══════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 32px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  transition: all .2s;
}
.pagination a:hover, .pagination .current {
  background: var(--peach);
  border-color: var(--peach);
  color: white;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .45s ease both; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media(max-width:768px) {
  #main-nav { display: none; }
  #main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: white;
    padding: 12px;
    border-bottom: 1.5px solid var(--border);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }
  .menu-toggle { display: block; }
  .header-search { display: none; }
  .nl-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
