/* ============================================
   NECTAR & NOIR — Miels & Cafés du Monde
   Inspiré du style Columbus Café : chaleureux,
   convivial, coloré, fond clair.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* =====================
   CSS VARIABLES
   ===================== */
:root {
    --terra:       #C8511A;
    --terra-l:     #E8733A;
    --terra-ll:    #FDE8D8;
    --honey:       #D4880A;
    --honey-l:     #F5C842;
    --honey-ll:    #FEF3C7;
    --coffee:      #3D1F0D;
    --roast:       #6B3520;
    --latte:       #C4956A;
    --cream:       #FFFBF5;
    --cream-2:     #F7EDE0;
    --cream-3:     #EDD9C0;
    --text:        #2D1505;
    --muted:       #8B6340;
    --green-ok:    #2E7D52;
    --red-low:     #B91C1C;
    --shadow-sm:   rgba(61, 31, 13, 0.07);
    --shadow-md:   rgba(61, 31, 13, 0.13);
    --shadow-lg:   rgba(61, 31, 13, 0.20);
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   18px;
    --radius-xl:   20px;
    --transition:  0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
   BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
}

/* =====================
   NAVBAR
   ===================== */
.navbar-nn {
    background: var(--cream) !important;
    border-bottom: 2px solid var(--cream-3);
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 16px var(--shadow-sm);
}

.navbar-nn .container { height: 64px; display: flex; align-items: center; }

.navbar-nn .navbar-brand {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--coffee) !important;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: color var(--transition);
}
.navbar-nn .navbar-brand .brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--terra);
    display: inline-block;
    margin: 0 1px;
    flex-shrink: 0;
}
.navbar-nn .navbar-brand:hover { color: var(--terra) !important; }

.navbar-nn .nav-link {
    color: var(--muted) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.45rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.navbar-nn .nav-link:hover,
.navbar-nn .nav-link.active {
    background: var(--cream-2) !important;
    color: var(--terra) !important;
    font-weight: 600;
}

.navbar-nn .navbar-toggler {
    border-color: var(--cream-3);
}
.navbar-nn .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233D1F0D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.cart-btn {
    background: var(--terra) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.48rem 1.1rem !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background var(--transition), transform var(--transition) !important;
}
.cart-btn:hover {
    background: var(--terra-l) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.cart-badge {
    background: rgba(255,255,255,.25);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =====================
   HERO
   ===================== */
.hero-nn {
    background: var(--cream-2);
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Cercles décoratifs d'ambiance */
.hero-nn::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,136,10,.14) 0%, transparent 68%);
    top: -80px;
    right: -100px;
    pointer-events: none;
}
.hero-nn::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,81,26,.11) 0%, transparent 68%);
    bottom: -50px;
    left: -60px;
    pointer-events: none;
}

.hero-nn .hero-inner { position: relative; z-index: 1; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--honey-ll);
    color: var(--honey);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.3rem;
    border: 1px solid rgba(212,136,10,.25);
}

.hero-nn h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--coffee);
    margin-bottom: 1.2rem;
}
.hero-nn h1 .hero-accent {
    color: var(--terra);
    display: block;
}

.hero-lead {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.85;
    margin-bottom: 2rem;
    max-width: 420px;
}

.hero-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Grid d'images hero */
.hero-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}
.hero-img-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--cream-3);
    position: relative;
}
.hero-img-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.hero-img-card:hover img { transform: scale(1.04); }
.hero-img-card.tall { grid-row: 1 / 3; }
.hero-img-card.tall img { height: 100%; min-height: 375px; }
.hero-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.9rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--coffee);
    background: rgba(255,251,245,.88);
    backdrop-filter: blur(4px);
}

/* =====================
   BUTTONS
   ===================== */
.btn-nn-terra {
    background: var(--terra);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.82rem 1.9rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.01em;
}
.btn-nn-terra:hover {
    background: var(--terra-l);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,81,26,.30);
}

.btn-nn-ghost {
    background: transparent;
    color: var(--coffee);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.78rem 1.7rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--cream-3);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-nn-ghost:hover {
    border-color: var(--terra);
    color: var(--terra);
    transform: translateY(-2px);
}

.btn-nn-outline {
    background: transparent;
    color: var(--terra);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.78rem 1.8rem;
    border-radius: var(--radius-md);
    border: 2px solid rgba(200,81,26,.4);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
}
.btn-nn-outline:hover {
    background: var(--terra);
    border-color: var(--terra);
    color: #fff;
    transform: translateY(-2px);
}

/* =====================
   STATS BAND
   ===================== */
.stats-band {
    background: var(--coffee);
    padding: 1.6rem 0;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--honey-l);
    line-height: 1;
    margin-bottom: 0.2rem;
}
.stat-lbl {
    font-size: 0.75rem;
    color: rgba(255,255,255,.58);
}

/* =====================
   SECTION LABELS
   ===================== */
.section-eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 0.4rem;
    display: block;
}
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--coffee);
    line-height: 1.1;
}

/* =====================
   CATEGORIES
   ===================== */
.section-categories { padding: 4.5rem 0; background: var(--cream); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.see-all-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--terra);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: gap var(--transition);
}
.see-all-link:hover { gap: 0.6rem; color: var(--terra-l); }

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.cat-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
    display: block;
    text-decoration: none;
}
.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(45,21,5,.78) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.4rem;
}
.cat-label {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.2rem;
}
.cat-desc { font-size: 0.78rem; color: rgba(255,255,255,.72); }
.cat-pill {
    display: inline-block;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.22rem 0.7rem;
    border-radius: 50px;
    margin-top: 0.5rem;
}

/* =====================
   PRODUCTS
   ===================== */
.section-products { padding: 4.5rem 0; background: var(--cream-2); }

/* Tabs */
.product-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 2rem;
    background: var(--cream-3);
    border-radius: var(--radius-md);
    padding: 0.3rem;
    width: fit-content;
}
.product-tab {
    padding: 0.55rem 1.6rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.84rem;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: 0;
}
.product-tab.active {
    background: #fff;
    color: var(--terra);
    box-shadow: 0 2px 8px var(--shadow-md);
}
.product-tab:hover:not(.active) { background: rgba(255,255,255,.5); color: var(--coffee); }

/* Cards */
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(196,149,106,.12);
    height: 100%;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px var(--shadow-md);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--cream-2);
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.product-card:hover .card-img-wrapper img { transform: scale(1.07); }

.card-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
}
.badge-terra { background: var(--terra); color: #fff; }
.badge-honey { background: var(--honey-l); color: var(--coffee); }
.badge-roast { background: var(--coffee); color: #fff; }

.origin-tag {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(45,21,5,.65);
    color: rgba(255,255,255,.92);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.18rem 0.62rem;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.product-card .card-body { padding: 1.15rem; }
.product-card .card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--coffee);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.product-card .card-text {
    font-size: 0.81rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.sensory-notes { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.sensory-note {
    font-size: 0.67rem;
    font-weight: 600;
    padding: 0.16rem 0.62rem;
    border-radius: 20px;
    background: var(--cream-2);
    color: var(--latte);
}

.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}
.price-main {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--terra);
}
.price-old {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: line-through;
    margin-left: 0.3rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.stock-ok  { font-size: 0.7rem; font-weight: 600; color: var(--green-ok); }
.stock-low { font-size: 0.7rem; font-weight: 600; color: var(--red-low); }

.btn-add-cart {
    width: 100%;
    background: var(--coffee);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.58rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}
.btn-add-cart:hover { background: var(--roast); }

/* =====================
   NEWSLETTER
   ===================== */
.section-newsletter {
    background: var(--terra);
    padding: 5.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.section-newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpolygon points='30,2 58,17 58,47 30,52 2,47 2,17' fill='none' stroke='%23fff' stroke-width='.5' opacity='.08'/%3E%3C/svg%3E");
    background-size: 60px 52px;
    pointer-events: none;
}
.nl-inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.nl-tag {
    display: inline-block;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.32rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}
.section-newsletter h3 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.7rem;
    line-height: 1.08;
}
.section-newsletter p { color: rgba(255,255,255,.72); font-size: 0.95rem; line-height: 1.85; margin-bottom: 2.2rem; }

.newsletter-form { display: flex; gap: 0.7rem; max-width: 430px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-input {
    flex: 1 1 220px;
    background: rgba(255,255,255,.14);
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff;
    padding: 0.82rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.48); }
.newsletter-input:focus { background: rgba(255,255,255,.22); border-color: #fff; }
.newsletter-btn {
    background: #fff;
    color: var(--terra);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.82rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}
.newsletter-btn:hover { background: var(--honey-ll); }
.nl-note { font-size: 0.72rem; color: rgba(255,255,255,.42); margin-top: 1rem; }

/* =====================
   FOOTER
   ===================== */
.footer-nn {
    background: var(--coffee);
    color: rgba(255,255,255,.52);
    padding: 3.5rem 0 1.5rem;
}
.footer-brand {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,.38); line-height: 1.75; max-width: 200px; }
.footer-nn h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--honey-l);
    margin-bottom: 0.9rem;
}
.footer-nn ul { list-style: none; padding: 0; margin: 0; }
.footer-nn ul li { margin-bottom: 0.42rem; }
.footer-nn ul li a { color: rgba(255,255,255,.45); text-decoration: none; font-size: 0.845rem; transition: color var(--transition); }
.footer-nn ul li a:hover { color: #fff; }

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 0.78rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.social-links { display: flex; gap: 0.5rem; }
.social-link {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.4);
    font-size: 0.78rem;
    text-decoration: none;
    transition: all var(--transition);
}
.social-link:hover { border-color: var(--honey-l); color: var(--honey-l); background: rgba(245,200,66,.1); }

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 991px) {
    .hero-imgs { display: none; }
    .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .hero-nn { padding: 3rem 0 2.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .product-tabs { width: 100%; }
    .product-tab { flex: 1; text-align: center; }
    .stats-band .row > div { margin-bottom: 0.5rem; }
}