/* Lueur — démonstration de boutique en ligne (ZataLabs, V7.4). */
:root { --cire: #efe4d4; --nuit: #2a2230; --flamme: #f2a541; --rose: #d9a5a0; --doux: #7a6c72; --papier: #faf6f1; }
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--papier); color: var(--nuit); font: 400 16px/1.6 Figtree, system-ui, sans-serif; }
h1, h2, h3 { font-family: Gloock, Georgia, serif; font-weight: 400; margin: 0 0 .5em; line-height: 1.1; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--flamme); outline-offset: 3px; }

.entete { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding: 1.3rem clamp(1rem, 5vw, 4rem); background: var(--nuit); color: var(--cire); }
.logo { font: 400 2rem/1 Gloock, serif; text-decoration: none; }
.entete p { margin: 0; font-size: .9rem; opacity: .8; }
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem) 1.5rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }
.hero h1 em { font-style: normal; color: #b0613e; }
.hero p { color: var(--doux); }

.atelier { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; padding: 0 clamp(1rem, 5vw, 4rem) 4rem; align-items: start; }
@media (max-width: 900px) { .atelier { grid-template-columns: minmax(0, 1fr); } .coffret { position: static; } }
.parfums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 1.2rem; }
.parfum { display: grid; gap: .5rem; padding: 1rem; border-radius: 20px; background: #fff; text-align: center; }
.parfum.is-dedans { box-shadow: 0 0 0 2px var(--nuit); }
.parfum svg { width: 120px; height: 140px; margin: 0 auto; }
.flamme { transform-origin: 50% 100%; animation: danse 1.6s ease-in-out infinite alternate; }
@keyframes danse { 0% { transform: scaleY(1) rotate(-2deg); } 100% { transform: scaleY(1.12) rotate(3deg); } }
.parfum h3 { font-size: 1.2rem; margin: 0; }
.parfum .famille { margin: -.3rem 0 0; font-size: .85rem; color: var(--doux); }
.parfum .prix { font-weight: 600; }
.parfum__actions { display: flex; gap: .4rem; justify-content: center; }
.parfum__actions button { padding: .5rem .8rem; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: .88rem; }
.voir { border: 1px solid #ddd0c3; background: none; }
.mettre { border: 0; background: var(--nuit); color: var(--cire); }
.mettre:disabled { opacity: .35; cursor: not-allowed; }

.coffret { position: sticky; top: 1rem; padding: 1.4rem; border-radius: 24px; background: var(--cire); }
.coffret h2 { font-size: 1.6rem; }
.boite { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .8rem; border-radius: 16px; background: #fff; border: 2px dashed #d9c7b1; min-height: 150px; }
.case { display: grid; justify-items: center; align-content: center; gap: .3rem; min-height: 120px; border-radius: 12px; background: var(--papier); font-size: .78rem; color: var(--doux); text-align: center; padding: .4rem; }
.case svg { width: 56px; height: 66px; }
.case b { color: var(--nuit); }
.case button { border: 0; background: none; color: var(--doux); text-decoration: underline; cursor: pointer; font-size: .75rem; }
.case.is-offerte { background: #fbeee0; }
.case.is-offerte b::after { content: " · offerte"; color: #b0613e; }
.gravure { display: grid; gap: .3rem; margin-top: 1rem; font-weight: 600; font-size: .9rem; }
.gravure small { font-weight: 400; color: var(--doux); }
.gravure input { padding: .6rem .8rem; border: 1px solid #d9c7b1; border-radius: 10px; background: #fff; font-family: Gloock, serif; }
.compte { display: grid; gap: .3rem; margin: 1rem 0; }
.compte div { display: flex; justify-content: space-between; }
.compte dd { margin: 0; }
.compte .offert { color: #b0613e; }
.compte .total { font-family: Gloock, serif; font-size: 1.4rem; }
#commander { width: 100%; padding: .9rem; border: 0; border-radius: 14px; background: var(--nuit); color: var(--cire); font-weight: 600; cursor: pointer; }
#commander:disabled { opacity: .4; cursor: not-allowed; }
#retour { min-height: 1em; font-size: .9rem; }

.pyramide { width: min(92vw, 420px); border: 0; border-radius: 22px; padding: 1.5rem; background: var(--papier); }
.pyramide::backdrop { background: rgba(42, 34, 48, .55); }
.pyramide svg { width: 100%; }
.pyramide dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.pyramide dt { font-weight: 600; }
.pyramide dd { margin: 0; color: var(--doux); }
.pyramide button { margin-top: 1rem; padding: .6rem 1.2rem; border: 0; border-radius: 99px; background: var(--nuit); color: var(--cire); cursor: pointer; }
.pied { padding: 1.5rem; text-align: center; color: var(--doux); font-size: .88rem; }
