/* Tiramishop – jaune soleil, brun cacao, crème */
:root {
    --yellow: #f7c945;
    --yellow-soft: #ffe9a3;
    --cream: #fff8e6;
    --brown: #3a2112;
    --cocoa: #7b4a2a;
    --pink: #f29c8b;
    --card: #ffffff;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

*, *::before, *::after { box-sizing: inherit; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--brown);
    font: 400 17px/1.6 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .brand span, .kicker { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; }

a { color: inherit; }

img { max-width: 100%; height: auto; }

/* ---------- En-tête ---------- */
.top {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px max(16px, calc((100% - 1080px) / 2));
    background: rgba(255, 248, 230, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid rgba(58, 33, 18, 0.06);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 50%; display: block; }
.brand span { font-size: 25px; font-weight: 600; letter-spacing: -0.01em; }

.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; font-weight: 800; font-size: 15px; opacity: 0.8; }
.top nav a:hover { opacity: 1; color: var(--cocoa); }

.pill, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 2px solid var(--brown);
    background: var(--brown);
    color: #fff;
    font: 800 15px/1 'Nunito', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}

.pill { padding: 9px 16px; }
.pill:hover, .btn:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 6px 0 rgba(58, 33, 18, 0.18); }
.btn:active, .pill:active { transform: translateY(1px); box-shadow: none; }

.btn.ghost { background: transparent; color: var(--brown); }
.btn.ghost:hover { background: var(--yellow); }

.ig { width: 19px; height: 19px; flex: none; }

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 16px 40px;
}

.kicker {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--yellow);
    font-weight: 600;
    font-size: 15px;
    transform: rotate(-2deg);
}

h1 { margin: 0 0 16px; font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }
h1 span { color: var(--cocoa); background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); }

.lead { font-size: 19px; max-width: 460px; margin: 0 0 26px; color: rgba(58, 33, 18, 0.82); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 340px;
    cursor: pointer;
    outline-offset: 6px;
}

.hero-art .blob {
    position: absolute;
    width: min(86%, 380px);
    aspect-ratio: 1;
    background: var(--yellow);
    border-radius: 58% 42% 55% 45% / 46% 54% 46% 54%;
}

.slice { display: block; overflow: visible; }
.slice.big { position: relative; width: min(92%, 400px); height: auto; filter: drop-shadow(0 10px 0 rgba(58, 33, 18, 0.08)); }

.spark { position: absolute; color: #fff; width: 30px; height: 30px; filter: drop-shadow(0 2px 0 rgba(58, 33, 18, 0.15)); }
.spark.s1 { top: 8%; left: 10%; }
.spark.s2 { top: 22%; right: 6%; width: 22px; height: 22px; color: var(--brown); opacity: 0.8; }
.spark.s3 { bottom: 10%; left: 4%; width: 20px; height: 20px; color: var(--pink); }

/* ---------- Bandeau défilant ---------- */
.marquee {
    overflow: hidden;
    background: var(--brown);
    color: var(--yellow);
    border-block: 3px solid var(--brown);
    transform: rotate(-1.2deg) scale(1.03);
    margin: 18px 0 30px;
}

.track { display: flex; width: max-content; white-space: nowrap; padding: 12px 0; }
.track .grp { display: flex; flex: none; }
.track span { font: 600 24px/1 'Fredoka', sans-serif; padding: 0 18px; }
.track i { font-style: normal; color: var(--pink); font-size: 20px; }

/* ---------- Parfums ---------- */
.flavors { max-width: 1080px; margin: 0 auto; padding: 36px 16px 20px; text-align: center; }
h2 { margin: 0 0 8px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.01em; }
h2 span { color: var(--cocoa); }
.sub { margin: 0 0 34px; color: rgba(58, 33, 18, 0.75); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.card {
    padding: 22px 20px 26px;
    border-radius: 28px;
    border: 2px solid var(--brown);
    background: var(--tint, #fff);
    box-shadow: 0 6px 0 var(--brown);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 12px 0 var(--brown); }
.card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.f-mm { --tint: #ffdfe0; }
.f-spe { --tint: #f9dfba; }
.f-bu { --tint: #f2e6d5; }
.f-or { --tint: #dfe4f2; }

.card .art { display: grid; place-items: center; padding: 6px 4px 0; }
.card .slice { width: 100%; max-width: 190px; height: auto; transition: transform 0.35s var(--ease); }
.card:hover .slice { transform: scale(1.06) rotate(-3deg); }
.card h3 { margin: 8px 0 2px; font-size: 27px; font-weight: 600; }
.card .tag { margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cocoa); }
.card p { margin: 0; font-size: 15.5px; }

/* ---------- Atouts ---------- */
.why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    max-width: 1080px;
    margin: 36px auto 10px;
    padding: 0 16px;
    text-align: center;
}

.why div { padding: 18px; border-radius: 22px; background: var(--yellow-soft); }
.why b { display: block; font: 600 24px 'Fredoka', sans-serif; }
.why span { font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact {
    max-width: 1080px;
    margin: 56px auto 56px;
    padding: 44px 20px;
    text-align: center;
    background: var(--yellow);
    border: 2px solid var(--brown);
    border-radius: 36px;
    box-shadow: 0 8px 0 var(--brown);
    width: calc(100% - 32px);
}

.contact p { margin: 0 0 22px; font-size: 19px; }
.big-btn { padding: 15px 28px; font-size: 18px; }

/* ---------- Pied de page ---------- */
footer { padding: 28px 16px 40px; text-align: center; font-size: 14.5px; color: rgba(58, 33, 18, 0.8); }
footer p { margin: 4px 0; }
.fl { display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 22px 'Fredoka', sans-serif; color: var(--brown); margin-bottom: 6px; }
.fl img { border-radius: 50%; }
.credit { font-size: 13px; opacity: 0.8; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 44px 16px 30px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); }
.legal h2 { font-size: 24px; margin: 30px 0 6px; }
.legal p { margin: 0 0 10px; }
.note { padding: 10px 14px; border-radius: 14px; background: var(--yellow-soft); font-size: 15px; }
.todo { background: var(--yellow); padding: 1px 6px; border-radius: 6px; }

/* ---------- Animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.slice .bod, .slice .sh, .slice .eyes, .slice .arm, .spark, .hero-art { transform-box: fill-box; transform-origin: center; }
.slice .arm { transform-origin: 100% 100%; }

@media (prefers-reduced-motion: no-preference) {
    .slice.big .bod { animation: bob 3s ease-in-out infinite; }
    .slice.big .sh { animation: shadow 3s ease-in-out infinite; }
    .slice.big .arm { animation: wave 1.6s ease-in-out infinite; }
    .slice .eyes { animation: blink 4.5s infinite; }
    .card .slice .bod { animation: bob 3.4s ease-in-out infinite; }
    .card:nth-child(2) .slice .bod { animation-delay: -0.8s; }
    .card:nth-child(3) .slice .bod { animation-delay: -1.6s; }
    .card:nth-child(4) .slice .bod { animation-delay: -2.4s; }
    .spark { animation: twinkle 2.6s ease-in-out infinite; }
    .spark.s2 { animation-delay: -0.9s; }
    .spark.s3 { animation-delay: -1.7s; }
    .track { animation: slide 80s linear infinite; }
    .hero-art .blob { animation: morph 9s ease-in-out infinite; }
    .hero-art.boing .slice { animation: boing 0.7s var(--ease); }
}

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 0.13; } 50% { transform: scaleX(0.82); opacity: 0.07; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-22deg); } }
@keyframes blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(0.1); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(0.55) rotate(25deg); opacity: 0.55; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes morph { 0%, 100% { border-radius: 58% 42% 55% 45% / 46% 54% 46% 54%; } 50% { border-radius: 44% 56% 42% 58% / 56% 44% 58% 42%; } }
@keyframes boing { 0% { transform: scale(1); } 25% { transform: scale(1.1, 0.86); } 55% { transform: scale(0.94, 1.1) translateY(-16px); } 100% { transform: scale(1); } }

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
    .top { gap: 10px; }
    .top nav { display: none; }
    .brand span { font-size: 22px; }
    .hero { grid-template-columns: 1fr; padding-top: 30px; text-align: center; }
    .lead { margin-inline: auto; }
    .cta { justify-content: center; }
    .hero-art { min-height: 290px; order: -1; }
    .marquee { transform: rotate(-1.5deg) scale(1.06); }
}

/* ---------- Commande ---------- */
.buy { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.price { font: 600 20px 'Fredoka', sans-serif; }
.step { display: inline-flex; align-items: center; border: 2px solid var(--brown); border-radius: 999px; background: #fff; overflow: hidden; }
.step button { width: 42px; height: 42px; border: 0; background: transparent; font: 700 22px/1 'Nunito', sans-serif; color: var(--brown); cursor: pointer; transition: background 0.15s; }
.step button:hover { background: var(--yellow); }
.step output { min-width: 34px; text-align: center; font: 800 18px 'Nunito', sans-serif; }
.card.picked { outline: 3px solid var(--brown); outline-offset: 2px; }

.cartbar { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; max-width: calc(100% - 24px); background: var(--yellow); border: 2px solid var(--brown); border-radius: 999px; box-shadow: 0 6px 0 var(--brown); font: 800 16px 'Nunito', sans-serif; }
.cartbar[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .cartbar:not([hidden]) { animation: pop 0.35s var(--ease); } }
@keyframes pop { from { transform: translate(-50%, 30px); opacity: 0; } }

dialog.order { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 2px solid var(--brown); border-radius: 28px; background: var(--cream); color: var(--brown); box-shadow: 0 8px 0 var(--brown); overflow: auto; }
dialog.order::backdrop { background: rgba(58, 33, 18, 0.55); }
dialog.order form, dialog.order .done { position: relative; display: grid; gap: 12px; padding: 26px 22px 22px; }
dialog.order h2 { margin: 0; font: 600 28px 'Fredoka', sans-serif; padding-right: 36px; }
dialog.order .x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 2px solid var(--brown); border-radius: 50%; background: #fff; font: 700 22px/1 'Nunito', sans-serif; color: var(--brown); cursor: pointer; }
dialog.order .lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
dialog.order .lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #fff; border-radius: 12px; }
dialog.order label { display: grid; gap: 4px; font-weight: 800; font-size: 14.5px; }
dialog.order label em { font-style: normal; font-weight: 600; opacity: 0.7; }
dialog.order label[hidden] { display: none; }
dialog.order input:not([type=radio]), dialog.order textarea { width: 100%; padding: 11px 13px; border: 2px solid var(--brown); border-radius: 14px; background: #fff; font: 600 16px 'Nunito', sans-serif; color: var(--brown); }
dialog.order input:focus-visible, dialog.order textarea:focus-visible, .step button:focus-visible, .btn:focus-visible { outline: 3px solid #2b6cff; outline-offset: 2px; }
dialog.order .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
dialog.order .seg label { display: block; }
dialog.order .seg input { position: absolute; opacity: 0; }
dialog.order .seg span { display: block; padding: 11px; text-align: center; border: 2px solid var(--brown); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 800; }
dialog.order .seg input:checked + span { background: var(--yellow); box-shadow: 0 3px 0 var(--brown); }
dialog.order .seg input:focus-visible + span { outline: 3px solid #2b6cff; outline-offset: 2px; }
dialog.order .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
dialog.order .hint { margin: 0; font-size: 13.5px; opacity: 0.8; }
dialog.order .tot { margin: 0; font-size: 18px; }
dialog.order .err { margin: 0; padding: 10px 12px; border-radius: 12px; background: #ffd9d4; border: 2px solid #b3261e; font-weight: 700; font-size: 14.5px; }
dialog.order .err[hidden] { display: none; }
dialog.order .btn.big { width: 100%; justify-content: center; padding: 15px; font-size: 17px; }
dialog.order .done { text-align: center; justify-items: center; padding-top: 34px; }
dialog.order .done .emoji { font-size: 56px; line-height: 1; }
dialog.order .done p { margin: 0; }
@media (max-width: 760px) { body { padding-bottom: 0; } }
