/* ============================================
   LE MEILLEUR POUR BÉBÉ — Design System
   Palette: pêche doux, crème, blanc cassé
   Typographie: Poppins (titres) + Nunito (corps)
   ============================================ */

:root {
    --bg: #fefefe;
    --surface: #faf8f6;
    --accent: #e8a87c;
    --accent-light: #f4c4a8;
    --accent-dark: #c98a5e;
    --text: #3d3a36;
    --text-muted: #8a7f76;
    --border: rgba(0,0,0,0.05);
    --success: #7bc47f;
    --warning: #f5c84c;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #fdf3ec;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fdf3ec;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 168, 124, 0.15);
  transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: 160px 0 120px;
  background: #fdf3ec;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(232, 168, 124, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f4c4a8 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: blob-float 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #f5d5c0 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation: blob-float 10s ease-in-out infinite reverse;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(232, 168, 124, 0.3);
    box-shadow: 0 6px 20px rgba(232, 168, 124, 0.16);
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-dark);
    letter-spacing: 0.01em;
    margin-bottom: 26px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(232, 168, 124, 0.22);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-visual {
    position: relative;
}

.hero-illustration {
    width: 100%;
    max-width: 460px;
    height: auto;
    filter: drop-shadow(0 14px 34px rgba(232, 168, 124, 0.18));
}

.hero-illustration .cloud {
    animation: cloud-drift 6s ease-in-out infinite;
}

.hero-illustration .cloud:nth-child(2) {
    animation-delay: -3s;
}

@keyframes cloud-drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.hero-illustration .baby {
    animation: baby-bounce 3s ease-in-out infinite;
    transform-origin: 50% 60%;
}

@keyframes baby-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.hero-illustration .stars {
    animation: star-twinkle 2.4s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.hero-title {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 62px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 22px;
    line-height: 1.04;
}

.hero-title .hl {
    color: var(--accent-dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 34px;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 46px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn svg {
    transition: transform 0.25s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(135deg, #e8a87c 0%, #d98a52 100%);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(232, 168, 124, 0.42);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(232, 168, 124, 0.52);
}

.btn-ghost {
    background: #ffffff;
    color: var(--text);
    border: 1.5px solid rgba(232, 168, 124, 0.4);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(232, 168, 124, 0.22);
}

.hero-stats {
    display: flex;
    gap: 52px;
    padding-top: 34px;
    border-top: 1px solid rgba(232, 168, 124, 0.22);
}

.stat {
    text-align: left;
}

.stat-num {
    display: block;
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: var(--accent-dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    display: block;
    width: 2px;
    height: 40px;
    background: var(--accent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   RECHERCHE
   ============================================ */

.search-section {
    padding: 40px 0;
    background: var(--bg);
}

.search-box {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 8px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(232, 168, 124, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: var(--text);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

/* ============================================
   CATÉGORIES
   ============================================ */

.categories {
    padding: 80px 0;
    background: var(--surface);
}

.section-title {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.category-name {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   PRODUITS
   ============================================ */

.products {
    padding: 80px 0;
    background: var(--bg);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent-light);
    color: var(--accent-dark);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: white;
    padding: 20px;
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.product-name {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.stars {
    color: var(--warning);
    font-size: 14px;
}

.rating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.product-price {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 16px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    margin-top: auto;
}

.product-link:hover {
    background: var(--accent-dark);
    transform: scale(1.02);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent-light);
    color: var(--accent-dark);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   À PROPOS
   ============================================ */

.about {
    padding: 80px 0;
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.about-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.8);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
}

.disclosure {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge,
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-stats,
.hero-visual {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-badge    { animation-delay: 0.00s; }
.hero-title    { animation-delay: 0.10s; }
.hero-subtitle { animation-delay: 0.20s; }
.hero-cta      { animation-delay: 0.32s; }
.hero-stats    { animation-delay: 0.44s; }
.hero-visual   { animation-delay: 0.25s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 960px) {
    .hero {
        padding: 120px 0 90px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-illustration {
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-badge {
        margin-bottom: 20px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta,
    .hero-stats {
        justify-content: center;
    }

    .hero-title {
        font-size: 46px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .stat-num {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
}

/* ============================================
   ÉTAT VIDE
   ============================================ */

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-family: 'Baloo 2', 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 24px;
}

.empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.empty-state .btn:hover {
    background: var(--accent-dark);
}
