/* ====================================================
   L'Art du Miel — Feuille de style de base
   DA : herbier botanique. Fraunces + Inter Tight.
   Palette ivoire / encre / or vieilli / vert mousse.
   ==================================================== */

:root {
    --ivory: #FAF6EE;
    --ivory-deep: #F2EBD9;
    --cream: #EFE6D3;
    --paper: #FFFCF6;
    --ink: #1A1612;
    --ink-soft: #4A4339;
    --ink-mute: #837865;
    --gold: #A8843A;
    --gold-deep: #806329;
    --gold-light: #C9A867;
    --moss: #3D4A2E;
    --moss-light: #6B7857;
    --danger: #9B3B2E;
    --line: rgba(26, 22, 18, 0.12);

    --serif: 'Fraunces', 'Cardo', Georgia, serif;
    --sans: 'Inter Tight', -apple-system, system-ui, sans-serif;

    --container: 1320px;
    --gutter: clamp(1.5rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    font-feature-settings: "ss01", "cv11";
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.28em; font-weight: 500; color: var(--gold-deep); display: inline-block; }

/* ---------- Flash messages ---------- */
.flashes { position: fixed; top: 90px; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: 0.6rem; max-width: 360px; }
.flash { padding: 1rem 1.3rem; background: var(--paper); border-left: 3px solid var(--gold); font-size: 0.88rem; box-shadow: 0 8px 30px -10px rgba(26,22,18,0.25); animation: flashIn 0.3s ease; }
.flash.success { border-left-color: var(--moss); }
.flash.danger, .flash.warning { border-left-color: var(--danger); }
@keyframes flashIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: var(--ivory); padding: 0.6rem 0; font-size: 0.78rem; letter-spacing: 0.08em; text-align: center; }
.topbar span { color: var(--gold-light); margin: 0 0.5rem; }

/* ---------- Header ---------- */
header { position: sticky; top: 0; z-index: 100; background: rgba(250, 246, 238, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem var(--gutter); max-width: var(--container); margin: 0 auto; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.85rem; color: var(--ink); }
.logo-bee { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.logo-bee svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .top { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold-deep); font-weight: 500; margin-bottom: 4px; }
.logo-text .bottom { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.84rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 0.3rem 0; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--gold-deep); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.cart-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.3rem; border: 1px solid var(--ink); border-radius: 100px; font-size: 0.82rem; font-weight: 500; transition: all 0.2s; }
.cart-btn:hover { background: var(--ink); color: var(--ivory); }
.cart-count { background: var(--gold); color: var(--ink); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; }

/* ---------- Burger mobile ---------- */
.burger { display: none; flex-direction: column; gap: 5px; width: 28px; height: 22px; justify-content: center; }
.burger span { display: block; height: 2px; background: var(--ink); transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 200; background: var(--ivory); padding: 2rem var(--gutter); flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.mobile-menu-close { font-size: 2rem; line-height: 1; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu nav a { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; color: var(--ink); }
.mobile-menu nav a.active { color: var(--gold-deep); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .burger { display: flex; }
}

/* ---------- Boutons ---------- */
.btn-primary { background: var(--ink); color: var(--ivory); padding: 1.1rem 2.4rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.8rem; transition: all 0.3s; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--gold-deep); transform: translateX(-100%); transition: transform 0.4s ease; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost { color: var(--ink); padding: 1.1rem 0.5rem; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.8rem; border-bottom: 1px solid var(--ink); transition: all 0.25s; }
.btn-ghost:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(250, 246, 238, 0.7); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(250, 246, 238, 0.1); }
.footer-brand .logo { color: var(--ivory); margin-bottom: 1.5rem; }
.footer-brand .logo-text .bottom { color: var(--ivory); }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 320px; margin-bottom: 1.5rem; }
.footer-brand-address { font-size: 0.82rem; line-height: 1.7; color: rgba(250, 246, 238, 0.5); letter-spacing: 0.05em; }
.footer-col h5 { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.25em; color: var(--gold-light); margin-bottom: 1.8rem; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.85rem; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; flex-wrap: wrap; gap: 1rem; color: rgba(250, 246, 238, 0.5); letter-spacing: 0.05em; }
.footer-bottom a { color: rgba(250, 246, 238, 0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold-light); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
