/* ==========================================================================
   Atelier Nord — feuille de style unique
   Maquette WebnexLab. Aucune dépendance, aucun build.

   Le sélecteur de couleurs en haut à gauche change `data-palette` sur <html> :
   chaque ambiance ne redéfinit que les jetons du bloc 1. Tout le reste du
   fichier utilise ces jetons, jamais une couleur écrite en dur.
   ========================================================================== */

/* --- 1. Jetons de couleur (une ambiance = un bloc) ----------------------- */

:root,
[data-palette="encre"] {
  --bg: #f6f4ef;
  --bg-alt: #efece4;
  --surface: #ffffff;
  --ink: #16150f;
  --muted: #6b675c;
  --line: #e2ddd1;
  --accent: #1f4d3f;
  --accent-soft: #e6ede9;
  --accent-fg: #f6f4ef;
  --shadow: 20 21 15;
}

[data-palette="argile"] {
  --bg: #f7efe5;
  --bg-alt: #f1e6d8;
  --surface: #fffdfa;
  --ink: #3a2418;
  --muted: #7c6353;
  --line: #e6d7c4;
  --accent: #b4531f;
  --accent-soft: #f6e3d5;
  --accent-fg: #fff8f1;
  --shadow: 74 46 30;
}

[data-palette="cobalt"] {
  --bg: #f4f6fb;
  --bg-alt: #eaeef8;
  --surface: #ffffff;
  --ink: #11162b;
  --muted: #5b6484;
  --line: #dbe1f0;
  --accent: #1e3ae0;
  --accent-soft: #e4e9fd;
  --accent-fg: #f7f9ff;
  --shadow: 17 22 43;
}

[data-palette="nuit"] {
  --bg: #12110e;
  --bg-alt: #1a1814;
  --surface: #1c1a15;
  --ink: #f2ece0;
  --muted: #a29a89;
  --line: #302c24;
  --accent: #e8d9b8;
  --accent-soft: #26231c;
  --accent-fg: #17150f;
  --shadow: 0 0 0;
}

/* --- 2. Jetons non colorés ---------------------------------------------- */

:root {
  --display: "Syne", "Futura", "Trebuchet MS", sans-serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --shell: 1200px;
  --gutter: clamp(1.15rem, 5vw, 3.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- 3. Base ------------------------------------------------------------ */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* L'attribut `hidden` du HTML doit toujours gagner : sans ce garde-fou, un
   `display: grid` posé plus bas (fenêtre modale, panneau de menu, champ
   conditionnel) laisse l'élément visible alors qu'il est marqué caché. */
[hidden] { display: none !important; }

/* Vignette intégrée dans le site WebnexLab (`?apercu=1`) : pas de commandes de
   démonstration, pas de défilement, contenu affiché tout de suite. */
.is-apercu, .is-apercu body { overflow: hidden; }
.is-apercu .palette-picker,
.is-apercu .demo-flag { display: none; }
.is-apercu .reveal { opacity: 1; transform: none; transition: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.1rem; letter-spacing: -.01em; }
p { margin: 0; }

em { font-style: italic; color: var(--accent); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: .6rem; left: 50%; transform: translate(-50%, -200%);
  z-index: 200; padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: .85rem;
}
.skip-link:focus { transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.kicker {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  font-weight: 600; color: var(--accent); margin-bottom: .9rem;
}

.lede { font-size: 1.08rem; color: var(--muted); max-width: 46ch; }

/* --- 4. Apparition au défilement ---------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* --- 5. Boutons --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: 999px;
  font-size: .92rem; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: var(--accent-fg); }
.btn--solid:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--mini { padding: .5rem 1rem; font-size: .82rem; background: var(--accent-soft); color: var(--accent); }
.btn--mini:hover { background: var(--accent); color: var(--accent-fg); }
.btn--full { width: 100%; }

.icon-btn {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border-radius: 999px; border: 1px solid var(--line);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* --- 6. Sélecteur de palette (fixe, en haut à gauche) ------------------- */

/* Placé sous l'en-tête collant : en haut à gauche, sans jamais recouvrir le logo. */
.palette-picker {
  position: fixed; top: 5.5rem; left: 1rem; z-index: 120;
  font-size: .85rem;
}

.palette-picker__toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem .55rem .8rem; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgb(var(--shadow) / .12);
  font-weight: 600; font-size: .82rem;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.palette-picker__toggle:hover { border-color: var(--accent); transform: translateY(-1px); }

.palette-picker__panel {
  margin-top: .5rem; width: 15.5rem; padding: 1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 44px rgb(var(--shadow) / .16);
  animation: pop .28s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) } }

.palette-picker__title {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); font-weight: 600; margin-bottom: .7rem;
}

.palette-picker__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.palette-picker__grid button {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .55rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); font-size: .78rem; font-weight: 500;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.palette-picker__grid button:hover { border-color: var(--accent); }
.palette-picker__grid button[aria-checked="true"] {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.palette-picker__grid button span {
  width: 1.15rem; height: 1.15rem; border-radius: 999px; flex: none;
  background: linear-gradient(135deg, var(--sw1) 0 33%, var(--sw2) 33% 66%, var(--sw3) 66%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12);
}

.palette-picker__note {
  margin-top: .8rem; font-size: .72rem; line-height: 1.5; color: var(--muted);
}

/* --- 7. Bandeau démonstration (fixe, en bas à droite) ------------------- */

.demo-flag { position: fixed; right: 1rem; bottom: 1rem; z-index: 120; max-width: min(23rem, calc(100vw - 2rem)); }

.demo-flag__row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }

.demo-flag__admin {
  display: inline-flex; align-items: center;
  padding: .55rem 1rem;
  background: var(--surface, #fff); color: var(--ink, #111);
  border: 1px solid var(--line, #ddd);
  font-size: .76rem; font-weight: 600;
  box-shadow: 0 10px 26px rgb(var(--shadow, 0 0 0) / .16);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.demo-flag__admin:hover { transform: translateY(-2px); border-color: currentColor; }

.demo-flag__btn {
  display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
  padding: .55rem 1rem .55rem .8rem; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: .78rem; font-weight: 600;
  box-shadow: 0 10px 26px rgb(var(--shadow) / .2);
  transition: transform .25s var(--ease);
}
.demo-flag__btn:hover { transform: translateY(-2px); }

.demo-flag__note {
  margin-top: .6rem; padding: 1.05rem 1.15rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); font-size: .8rem; line-height: 1.55; color: var(--muted);
  box-shadow: 0 18px 44px rgb(var(--shadow) / .16);
  animation: pop .28s var(--ease);
}
.demo-flag__note p + p { margin-top: .6rem; }
.demo-flag__note strong { color: var(--ink); font-weight: 600; }

/* --- 8. En-tête --------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 97%, transparent); }

.site-head__in { display: flex; align-items: center; gap: 1.5rem; height: 4.6rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand__mark {
  width: 1.6rem; height: 1.6rem; border-radius: 6px; flex: none;
  background: var(--accent);
  box-shadow: inset -.45rem -.45rem 0 var(--bg), inset -.55rem -.55rem 0 var(--accent);
}
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }

.nav { display: flex; gap: 1.6rem; font-size: .9rem; font-weight: 500; }
.nav a { position: relative; color: var(--muted); transition: color .25s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -.35rem; height: 1px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.site-head__actions { display: flex; align-items: center; gap: .5rem; }

.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--line);
  transition: border-color .25s var(--ease);
}
.cart-btn:hover { border-color: var(--accent); }
.cart-btn__count {
  position: absolute; top: -.25rem; right: -.25rem; min-width: 1.15rem; height: 1.15rem;
  display: grid; place-items: center; padding-inline: .25rem;
  border-radius: 999px; background: var(--accent); color: var(--accent-fg);
  font-size: .65rem; font-weight: 700;
}
.cart-btn__count[data-empty="true"] { opacity: 0; transform: scale(.6); }
.cart-btn__count { transition: opacity .2s var(--ease), transform .2s var(--ease); }

.burger { display: none; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 999px; border: 1px solid var(--line); }

/* --- 9. Héros ----------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); }

.hero__in {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}

.hero h1 { margin-bottom: 1.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: 2rem; margin: 2.6rem 0 0;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.hero__facts div { margin: 0; }
.hero__facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.hero__facts dd { margin: .3rem 0 0; font-weight: 600; font-size: .95rem; }

.hero__art { position: relative; min-height: 24rem; }
.hero__blob {
  position: absolute; inset: 12% 6% 18% 10%; border-radius: 46% 54% 38% 62% / 52% 40% 60% 48%;
  background: var(--accent); opacity: .1; filter: blur(6px); z-index: 0;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { border-radius: 58% 42% 60% 40% / 42% 58% 42% 58%; transform: translate(10px, -12px) } }

.hero__card {
  position: absolute; z-index: 1; padding: 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 22px 50px rgb(var(--shadow) / .12);
  color: var(--accent);
}
.hero__card svg { width: 100%; height: auto; }
.hero__card--a { width: 46%; top: 0; left: 4%; animation: float 7s ease-in-out infinite alternate; }
.hero__card--b { width: 40%; top: 26%; right: 0; animation: float 8.5s ease-in-out .4s infinite alternate-reverse; }
.hero__card--c { width: 38%; bottom: 0; left: 22%; animation: float 9.5s ease-in-out .8s infinite alternate; }
@keyframes float { to { transform: translateY(-14px) } }

/* --- 10. Bande défilante ------------------------------------------------ */

.marquee {
  overflow: hidden; padding-block: .9rem;
  border-block: 1px solid var(--line); background: var(--bg-alt);
}
.marquee__track {
  display: flex; gap: 2.5rem; width: max-content;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em;
  animation: slide 34s linear infinite;
}
.marquee__track i { color: var(--accent); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%) } }

/* --- 11. Titres de section --------------------------------------------- */

.section__head {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  align-items: end; justify-content: space-between; margin-bottom: 2.5rem;
}
.section__lede { color: var(--muted); max-width: 40ch; font-size: .98rem; }

/* --- 12. Filtres & grille produits ------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

.chip {
  padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 500; color: var(--muted);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }

.grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 22px 46px rgb(var(--shadow) / .12); }
.card[hidden] { display: none; }

.card__vis {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 3; background: var(--bg-alt); color: var(--accent);
}
.card__vis svg { width: 52%; height: auto; transition: transform .45s var(--ease); }
.card:hover .card__vis svg { transform: scale(1.06) rotate(-2deg); }

.tag {
  position: absolute; top: .75rem; left: .75rem;
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: var(--muted);
}
.tag--hot { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.card__body { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.15rem 1.15rem; flex: 1; }
.card__meta { font-size: .82rem; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: .9rem; }

.price { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.price--big { font-size: 2rem; display: block; }
.stock { font-size: .78rem; color: var(--accent); font-weight: 500; }

/* --- 13. Édition limitée ------------------------------------------------ */

.feature__in {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center;
}
.feature__art {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1; border-radius: var(--r-lg);
  background: var(--bg-alt); color: var(--accent); overflow: hidden;
}
.feature__art svg { width: 46%; height: auto; position: relative; z-index: 1; }
.feature__ring {
  position: absolute; inset: 12%; border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

.feature__text h2 { margin-bottom: 1rem; }
.feature__text > p { color: var(--muted); max-width: 46ch; }

.ticks { margin: 1.6rem 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.7rem; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5rem;
  width: .95rem; height: .5rem; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

.feature__buy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}

/* --- 14. Étapes --------------------------------------------------------- */

.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.step {
  padding: 1.8rem 1.6rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.step__n {
  display: block; font-family: var(--display); font-weight: 800; font-size: 2.2rem;
  color: var(--accent); opacity: .28; line-height: 1; margin-bottom: .8rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* --- 15. Avis ----------------------------------------------------------- */

.quotes { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.quote {
  margin: 0; padding: 1.8rem 1.6rem; border-radius: var(--r-lg);
  background: var(--accent-soft); border: 1px solid transparent;
}
.quote p { font-size: 1rem; line-height: 1.6; }
.quote footer { margin-top: 1rem; font-size: .82rem; color: var(--muted); font-weight: 600; }

/* --- 16. Newsletter ----------------------------------------------------- */

.newsletter__in {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--r-lg);
  background: var(--ink); color: var(--bg);
}
.newsletter__in h2 { margin-bottom: .6rem; }
.newsletter__in p { color: color-mix(in srgb, var(--bg) 68%, transparent); font-size: .95rem; }

.nl-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.nl-form input {
  flex: 1 1 12rem; padding: .82rem 1.1rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent);
  background: color-mix(in srgb, var(--bg) 10%, transparent);
  color: var(--bg); font: inherit; font-size: .92rem;
}
.nl-form input::placeholder { color: color-mix(in srgb, var(--bg) 45%, transparent); }
.nl-form input:focus { outline: none; border-color: var(--bg); }
.nl-form .btn--solid { background: var(--bg); color: var(--ink); }

.form-status {
  flex: 1 0 100%; font-size: .82rem; line-height: 1.5;
  color: color-mix(in srgb, var(--bg) 72%, transparent); min-height: 1.2rem;
}
.form-status:empty { min-height: 0; }

/* --- 17. Pied de page --------------------------------------------------- */

.site-foot { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; }
.site-foot__in { display: grid; gap: 1.5rem; }
.site-foot__brand { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--muted); }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .88rem; color: var(--muted); }
.site-foot__nav a:hover { color: var(--accent); }
.site-foot__legal { font-size: .78rem; color: var(--muted); opacity: .8; }
.site-foot__legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: .85rem; }
.site-foot__legal-links a { font-size: .85rem; opacity: .85; padding-block: .35rem; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: currentColor; }
.site-foot__legal-links a:hover, .site-foot__legal-links a:focus-visible { opacity: 1; }

/* --- 18. Panier (tiroir) ------------------------------------------------ */

.drawer { position: fixed; inset: 0; z-index: 150; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgb(var(--shadow) / .45); backdrop-filter: blur(2px);
  animation: fade .3s var(--ease);
}
@keyframes fade { from { opacity: 0 } }

.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(25rem, 100%); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line);
  animation: slide-in .35s var(--ease);
}
@keyframes slide-in { from { transform: translateX(100%) } }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 1.15rem; }

.drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.drawer__empty { color: var(--muted); font-size: .92rem; }

.line-item { display: flex; align-items: center; gap: .9rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item__name { font-weight: 600; font-size: .92rem; }
.line-item__price { font-size: .82rem; color: var(--muted); }
.line-item__qty { margin-left: auto; display: flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: 999px; }
.line-item__qty button { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; font-size: 1rem; color: var(--muted); }
.line-item__qty button:hover { color: var(--accent); }
.line-item__qty span { min-width: 1.3rem; text-align: center; font-size: .85rem; font-weight: 600; }

.drawer__foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.drawer__total strong { font-family: var(--display); font-size: 1.4rem; }
.drawer__note { margin-top: .8rem; font-size: .76rem; line-height: 1.5; color: var(--muted); }
.drawer__note.is-hit { color: var(--accent); font-weight: 500; }

/* --- 19. Notification --------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200;
  transform: translate(-50%, 150%);
  padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: .85rem; font-weight: 500;
  box-shadow: 0 14px 34px rgb(var(--shadow) / .25);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
  opacity: 0;
  pointer-events: none;
}
.toast.is-up { transform: translate(-50%, 0); opacity: 1; }

/* --- 20. Adaptations ---------------------------------------------------- */

@media (max-width: 900px) {
  .hero__in, .feature__in, .newsletter__in { grid-template-columns: 1fr; }
  .hero__art { min-height: 20rem; order: -1; }
  .feature__art { max-width: 24rem; }
}

@media (max-width: 760px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 4.6rem 0 auto; z-index: 88;
    flex-direction: column; gap: 0; padding: 1rem var(--gutter) 1.6rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding-block: .8rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }

  .demo-flag { max-width: calc(100vw - 10rem); }
  .demo-flag__note { max-height: 55vh; overflow-y: auto; }

  .hero__facts { gap: 1.4rem 2rem; }
  .feature__buy { gap: 1rem; }
}

@media (max-width: 420px) {
  .palette-picker__toggle span, .demo-flag__btn span { display: none; }
  .palette-picker__panel { width: min(17rem, calc(100vw - 2rem)); }
}
