/* =================================================================
   Les chic'oufs - feuille de style
   Palette : paprika / beurre / charbon / moutarde / olive
   ================================================================= */

:root {
    --paprika: #c8362c;
    --paprika-dark: #9e2820;
    --beurre: #fbf3e4;
    --creme: #fffdf8;
    --charbon: #2a2018;
    --charbon-soft: #6a5c4f;
    --moutarde: #e8a33d;
    --olive: #6b7b3a;
    --ardoise: #2c211c;
    --ligne: #ece0cb;
    --ombre: 0 10px 30px rgba(42, 32, 24, .10);
    --ombre-fort: 0 18px 50px rgba(42, 32, 24, .18);
    --r: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--beurre);
    color: var(--charbon);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -.02em;
}

a { color: inherit; }

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ---------- Barre du haut -------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(251, 243, 228, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ligne);
}
.topbar .wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: 21px;
    color: var(--charbon);
}
.brand .brand-logo {
    height: 50px;
    width: auto;
    flex: 0 0 auto;
    display: block;
}
.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }
.nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--charbon);
}
.nav a:hover { background: #f3e7d2; }
.nav a.cart {
    background: var(--charbon);
    color: var(--beurre);
}
.nav a.cart:hover { background: #000; }
.nav .badge {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--paprika);
    color: #fff;
    font-size: 12.5px;
    text-align: center;
}

/* ---------- Boutons -------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--paprika); color: #fff; }
.btn-primary:hover { background: var(--paprika-dark); }
.btn-ghost {
    background: transparent;
    color: var(--charbon);
    border: 1.5px solid var(--charbon);
}
.btn-ghost:hover { background: var(--charbon); color: var(--beurre); }
.btn.done { background: #5f8a3a; border-color: #5f8a3a; color: #fff; cursor: default; opacity: 1; }
.btn.done:hover { background: #5f8a3a; transform: none; }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------- Flash ---------------------------------------------- */
.flash {
    margin: 16px auto 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid;
}
.flash.ok { background: #eef5e3; border-color: #cfe0b0; color: #41571f; }
.flash.err { background: #fbe6e3; border-color: #f0c2bc; color: var(--paprika-dark); }

/* ---------- Hero ----------------------------------------------- */
.hero {
    padding: 54px 0 18px;
}
.hero .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}
.eyebrow {
    font-family: "Caveat", cursive;
    font-size: 26px;
    color: var(--paprika);
    font-weight: 700;
    transform: rotate(-2deg);
    display: inline-block;
    margin-bottom: 6px;
}
.hero h1 {
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 800;
}
.hero p.lead {
    font-size: 19px;
    color: var(--charbon-soft);
    max-width: 30ch;
    margin: 16px 0 26px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hours-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 8px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ligne);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--olive);
}
.dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--olive);
    box-shadow: 0 0 0 4px rgba(107, 123, 58, .18);
}

/* ---------- Ardoise (signature) -------------------------------- */
.ardoise {
    background: var(--ardoise);
    color: var(--beurre);
    border-radius: 22px;
    padding: 30px 30px 26px;
    box-shadow: var(--ombre-fort);
    position: relative;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 7px 7px;
}
.ardoise::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1.5px solid rgba(251, 243, 228, .22);
    border-radius: 15px;
    pointer-events: none;
}
.ardoise .ard-head {
    text-align: center;
    margin-bottom: 18px;
}
.ardoise .ard-title {
    font-family: "Caveat", cursive;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.ardoise .ard-dates {
    font-size: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--moutarde);
    margin-top: 4px;
}
.ard-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 4px;
}
.ard-line + .ard-line { border-top: 1px dashed rgba(251, 243, 228, .18); }
.ard-line .nom { font-weight: 500; font-size: 16px; }
.ard-line .fill {
    flex: 1;
    border-bottom: 1px dotted rgba(251, 243, 228, .35);
    transform: translateY(-4px);
}
.ard-line .px {
    font-family: "Caveat", cursive;
    font-size: 23px;
    font-weight: 700;
    color: var(--moutarde);
    white-space: nowrap;
}

/* ---------- Bandeau infos -------------------------------------- */
.infoband {
    margin: 40px 0 8px;
    background: var(--charbon);
    color: var(--beurre);
    border-radius: var(--r);
}
.infoband .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 20px 22px;
}
.infoband .it { display: flex; gap: 12px; align-items: center; }
.infoband .it svg { flex: 0 0 22px; color: var(--moutarde); }
.infoband .it b { display: block; font-size: 15px; }
.infoband .it span { font-size: 13.5px; color: #cdbfae; }

/* ---------- Section commander ---------------------------------- */
.section { padding: 50px 0 64px; }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--charbon-soft); margin: 6px 0 0; }

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card {
    background: var(--creme);
    border: 1px solid var(--ligne);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ombre);
}
.card .photo {
    aspect-ratio: 16 / 11;
    flex: 0 0 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f3d9a4, #e9b574 55%, #d98e54);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(42, 32, 24, .30);
}
.card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .photo svg { width: 46px; height: 46px; }
.card .body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; font-weight: 700; }
.card .desc { font-size: 14.5px; color: var(--charbon-soft); margin: 7px 0 14px; flex: 1; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .px { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 22px; color: var(--paprika); }
.card.is-epuise .photo img { opacity: .5; filter: grayscale(.45); }
.card.is-epuise h3 { color: var(--charbon-soft); }

/* ---------- Panier flottant ------------------------------------ */
.cartbar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--charbon);
    color: var(--beurre);
    padding: 12px 14px 12px 20px;
    border-radius: 999px;
    box-shadow: var(--ombre-fort);
}
.cartbar .lbl { font-weight: 600; font-size: 15px; }
.cartbar .tot { color: var(--moutarde); font-weight: 700; }

/* ---------- Panier (page) -------------------------------------- */
.panier-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.pline {
    display: flex; align-items: center; gap: 16px;
    background: var(--creme); border: 1px solid var(--ligne);
    border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.pline .thumb {
    width: 64px; height: 64px; border-radius: 10px; flex: 0 0 64px;
    background: linear-gradient(135deg, #f3d9a4, #d98e54);
    display: flex; align-items: center; justify-content: center;
    color: rgba(42,32,24,.3);
}
.pline .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.pline .info { flex: 1; }
.pline .info b { font-size: 16px; }
.pline .info span { display: block; font-size: 14px; color: var(--charbon-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ligne); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: #fff; width: 34px; height: 34px; font-size: 18px; cursor: pointer; }
.qty button:hover { background: #f3e7d2; }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.pline .sous { font-weight: 700; min-width: 78px; text-align: right; }
.pline .del { background: 0; border: 0; cursor: pointer; color: var(--charbon-soft); font-size: 15px; }
.pline .del:hover { color: var(--paprika); }

.summary {
    background: var(--creme); border: 1px solid var(--ligne);
    border-radius: var(--r); padding: 22px; position: sticky; top: 86px;
}
.summary h3 { font-size: 20px; margin-bottom: 14px; }
.summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.summary .row.tot { border-top: 1px solid var(--ligne); margin-top: 8px; padding-top: 14px; font-size: 20px; font-weight: 800; }

.empty { text-align: center; padding: 60px 0; color: var(--charbon-soft); }

/* ---------- Footer --------------------------------------------- */
footer.site {
    background: var(--ardoise);
    color: var(--beurre);
    margin-top: 40px;
    padding: 40px 0 30px;
}
footer.site .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer.site h4 { font-family: "Bricolage Grotesque", sans-serif; font-size: 17px; margin: 0 0 10px; }
footer.site a { color: #e3d5c2; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .muted { color: #b7a795; font-size: 14px; line-height: 1.7; }
footer.site .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: 13px; color: #9d8d7b; }

/* ---------- Formulaires (checkout) ----------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--charbon-soft); font-size: 13px; }
.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field input[type=number],
.field textarea,
.field select {
    width: 100%;
    font: inherit;
    font-size: 15.5px;
    padding: 12px 14px;
    border: 1px solid var(--ligne);
    border-radius: 12px;
    background: #fff;
    color: var(--charbon);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: 0;
    border-color: var(--paprika);
    box-shadow: 0 0 0 3px rgba(200, 54, 44, .14);
}
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--paprika); }

/* ---------- Bandeau categories (carte) ------------------------- */
html { scroll-behavior: smooth; }
.cat-nav {
    position: sticky;
    top: 68px;
    z-index: 25;
    background: rgba(251, 243, 228, .94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ligne);
}
.cat-nav .wrap {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-pill {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ligne);
    color: var(--charbon);
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cat-pill:hover { border-color: var(--paprika); color: var(--paprika); }
.cat-pill.is-active { background: var(--paprika); border-color: var(--paprika); color: #fff; }
.cat-block { scroll-margin-top: 134px; }

/* ---------- Toast ---------------------------------------------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%) translateY(10px);
    background: var(--charbon);
    color: var(--beurre);
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    box-shadow: var(--ombre-fort);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .toast { transition: opacity .15s ease; transform: translateX(-50%); }
}

/* ---------- Icone partage iOS (dans le bandeau install) -------- */
.ios-share {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.22em;
    margin: 0 1px;
    color: var(--paprika);
}

/* ---------- Cloche notifications flottante ---------------------- */
.notif-bell {
    position: fixed;
    top: 86px;
    right: 18px;
    z-index: 35;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: var(--paprika);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--ombre-fort);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bell-float 2.8s ease-in-out infinite;
    transition: transform .15s ease, background .15s ease;
}
.notif-bell:hover { background: var(--paprika-dark); transform: scale(1.06); }
.notif-bell:active { transform: scale(.96); }
.notif-bell svg { width: 26px; height: 26px; }
.notif-bell .ping {
    position: absolute;
    top: 11px;
    right: 13px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--moutarde);
    animation: bell-ping 1.9s ease-out infinite;
}
.notif-bell.loading { opacity: .55; pointer-events: none; animation: none; }
.notif-bell.is-hidden { display: none; }

@keyframes bell-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes bell-ping {
    0%   { box-shadow: 0 0 0 0 rgba(232, 163, 61, .55); }
    100% { box-shadow: 0 0 0 9px rgba(232, 163, 61, 0); }
}
@media (max-width: 540px) {
    .notif-bell { top: 78px; right: 12px; width: 50px; height: 50px; }
    .notif-bell svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .notif-bell, .notif-bell .ping { animation: none; }
}

/* ---------- Responsive ----------------------------------------- */
@media (max-width: 880px) {
    .hero .grid { grid-template-columns: 1fr; gap: 30px; }
    .hero { padding-top: 36px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .infoband .wrap { grid-template-columns: 1fr; gap: 14px; }
    .panier-grid { grid-template-columns: 1fr; }
    .field-2 { grid-template-columns: 1fr; }
    .summary { position: static; }
    footer.site .grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 540px) {
    body { font-size: 16px; }
    .cards { grid-template-columns: 1fr; }

    .nav-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        order: -1;
        width: 46px;
        height: 46px;
        padding: 0 11px;
        background: transparent;
        border: 1px solid var(--ligne);
        border-radius: 13px;
        cursor: pointer;
    }
    .nav-burger span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: var(--charbon);
        transition: transform .2s ease, opacity .2s ease;
    }
    .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 14px;
        right: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 10px;
        background: var(--charbon);
        border-radius: 16px;
        box-shadow: 0 26px 54px -20px rgba(20, 14, 8, .6);
        z-index: 40;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        color: var(--beurre);
        font-size: 17px;
        padding: 13px 16px;
        border-radius: 11px;
    }
    .nav-links a:hover { background: rgba(255, 255, 255, .08); }
    .pline { flex-wrap: wrap; row-gap: 12px; }
    .pline .info { flex: 1 0 calc(100% - 80px); }
    .pline .qty { order: 2; }
    .pline .sous { order: 3; margin-left: auto; min-width: auto; }
    .pline .del { order: 4; }
    .qty button { width: 40px; height: 40px; font-size: 20px; }
    .qty span { min-width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
