:root {
  --ink: #1c1333;
  --muted: #5c5378;
  --paper: #fffdf6;
  --cream: #ffe8a3;
  --yellow: #ffd400;
  --magenta: #ff2d6a;
  --cyan: #00c2d1;
  --lime: #8fe31a;
  --orange: #ff7a18;
  --violet: #7b4dff;
  --line: rgba(28, 19, 51, 0.12);
  --shadow: 0 18px 0 rgba(28, 19, 51, 0.12);
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --radius: 28px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(255, 45, 106, 0.22), transparent 55%),
    radial-gradient(700px 380px at 110% 8%, rgba(0, 194, 209, 0.28), transparent 50%),
    radial-gradient(800px 420px at 80% 110%, rgba(143, 227, 26, 0.22), transparent 55%),
    #fff3c4;
  letter-spacing: 0.01em;
}

.stage-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.stage-bit {
  position: absolute;
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  opacity: 0.28;
  will-change: transform;
}

.stage-bit.i1 { color: var(--magenta); left: 5%; top: 16%; animation: stage-float 18s ease-in-out infinite; }
.stage-bit.i2 { color: var(--cyan); right: 7%; top: 12%; width: 2.9rem; height: 2.9rem; animation: stage-sway 22s ease-in-out infinite; }
.stage-bit.i3 { color: var(--orange); left: 8%; bottom: 14%; animation: stage-float 20s ease-in-out infinite reverse; }
.stage-bit.i4 { color: var(--lime); right: 10%; bottom: 18%; width: 2.4rem; height: 2.4rem; animation: stage-sway 16s ease-in-out infinite 0.6s; }
.stage-bit.i5 { color: var(--violet); left: 46%; top: 6%; width: 2.2rem; height: 2.2rem; animation: stage-float 24s ease-in-out infinite 1.2s; }
.stage-bit.i6 { color: var(--yellow); right: 18%; top: 38%; animation: stage-sway 19s ease-in-out infinite reverse; }
.stage-bit.i7 { color: var(--magenta); left: 18%; top: 48%; width: 2.1rem; height: 2.1rem; opacity: 0.2; animation: stage-float 21s ease-in-out infinite 2s; }
.stage-bit.i8 { color: var(--cyan); right: 28%; bottom: 8%; opacity: 0.22; animation: stage-sway 17s ease-in-out infinite 0.4s; }
.stage-bit.i9 { color: var(--lime); left: 28%; bottom: 6%; width: 2rem; height: 2rem; opacity: 0.2; animation: stage-float 23s ease-in-out infinite reverse; }
.stage-bit.i10 { color: var(--orange); right: 42%; top: 22%; width: 1.9rem; height: 1.9rem; opacity: 0.2; animation: stage-sway 26s ease-in-out infinite 1.8s; }

@keyframes stage-float {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(10px, -16px) rotate(9deg); }
}

@keyframes stage-sway {
  0%, 100% { transform: translate(0, 0) rotate(7deg); }
  50% { transform: translate(-12px, 10px) rotate(-11deg); }
}

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

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.topbar,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(880px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 0;
}

a.brand,
a.plan-link {
  text-decoration: none;
}

.brand {
  appearance: none;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: 4px 5px 0 var(--ink);
}

.brand-blob {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--yellow) 0 40%, transparent 41%),
    radial-gradient(circle at 70% 35%, var(--magenta) 0 38%, transparent 39%),
    radial-gradient(circle at 50% 75%, var(--cyan) 0 42%, var(--lime) 43%);
}

.top-actions {
  margin-left: auto;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.plan-link {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.plan-link.is-accent {
  background: var(--cyan);
}

.plan-link span {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
}

main {
  width: min(880px, calc(100% - 1.5rem));
  margin: 0 auto 4rem;
}

.hero {
  text-align: center;
  padding: 1.4rem 0 2rem;
}

.kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.28rem 0.7rem;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  transform: rotate(-2deg);
}

.quick-bar {
  margin: 0 0 1.4rem;
}

.quick-scroller {
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-scroller::-webkit-scrollbar {
  display: none;
}

.quick-filters {
  display: flex;
  gap: 0.45rem;
  width: max-content;
  margin: 0 auto;
  padding: 0.2rem;
}

.quick-chip {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.quick-chip.is-on {
  background: var(--magenta);
  color: #fff;
}

.btn-hero {
  appearance: none;
  width: min(100%, 420px);
  border: 4px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 1.15rem 1.4rem 1.05rem;
  cursor: pointer;
  box-shadow: 0 14px 0 var(--ink);
  transform: translateY(-4px);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 0 var(--ink);
}

.btn-hero:active {
  transform: translateY(8px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-hero-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}

.btn-hero-hint {
  display: block;
  margin-top: 0.35rem;
  font-weight: 800;
  font-size: 0.92rem;
}

.hero-split {
  margin: 1.1rem 0 0.7rem;
  font-weight: 800;
  color: var(--muted);
}

.craving {
  width: min(100%, 420px);
  margin: 0 auto;
  text-align: left;
}

.craving-label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.craving input {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  background: var(--paper);
}

.catalog-note,
.hero-note {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.card {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.3rem;
  box-shadow: var(--shadow);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--cyan);
}

.pill.is-age { background: var(--lime); }
.pill.is-time { background: var(--yellow); }
.pill.is-place { background: var(--orange); color: #fff; }
.pill.is-mess { background: #fff; }

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 0.45rem;
}

.card-lead,
.card-pitch {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.card-art {
  margin: 0 0 1rem;
  border: 3px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background: #1c1333;
}

.card-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.card-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-bottom: 1rem;
  font-weight: 800;
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card-block {
  background: #fff8dc;
  border: 2px dashed var(--ink);
  border-radius: 20px;
  padding: 0.9rem 1rem 1rem;
  margin-bottom: 0.9rem;
}

.card-block h3,
.plan-title {
  font-family: var(--font-display);
  margin: 0 0 0.7rem;
}

.card-block.is-warn {
  background: #ffe1ea;
}

.ingredients,
.steps,
.variantes,
.astuces,
.plan-list,
.shop-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ingredients li,
.plan-list li,
.shop-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.ingredients .qty,
.shop-item .qty {
  font-weight: 800;
  color: var(--magenta);
  min-width: 4.5rem;
}

.mat-note,
.shop-note {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.mat-store {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--yellow);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.steps {
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0.55rem 0 0.55rem 2.4rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid var(--ink);
}

.step-lead {
  margin: 0 0 0.45rem;
}

.step-consignes {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

.step-consignes li {
  padding: 0.18rem 0;
  list-style: disc;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.ingredients.is-kids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ingredients.is-kids li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  grid-template-columns: none;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
}

.ingredients.is-kids li img {
  width: 44px;
  height: 44px;
}

.ingredients.is-kids .qty {
  min-width: 0;
  font-size: 1.05rem;
}

.ingredients.is-kids .nom {
  font-weight: 800;
  font-size: 1.02rem;
}

.card-block.is-steps h3 {
  font-size: 1.35rem;
}

.steps.is-visual {
  display: grid;
  gap: 1rem;
}

.steps.is-visual > li {
  padding: 0;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
}

.steps.is-visual > li::before {
  left: 0.65rem;
  top: 0.65rem;
  z-index: 1;
}

.steps.is-visual strong {
  padding: 0.7rem 0.75rem 0.4rem 2.6rem;
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.steps.is-visual .step-photo {
  margin: 0;
  border: none;
  border-radius: 0;
  border-top: 2px solid var(--ink);
  background: #e8d7b0;
}

.steps.is-visual .step-photo img {
  object-fit: contain;
  background: #e8d7b0;
}

.steps.is-visual .step-caption {
  margin: 0;
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 800px) {
  .steps.is-visual {
    grid-template-columns: 1fr 1fr;
  }
}

.variantes li,
.astuces li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.variantes strong {
  display: inline-block;
  background: var(--violet);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

.card-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  appearance: none;
  border: 3px solid var(--ink);
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--lime);
  box-shadow: 4px 5px 0 var(--ink);
}

.btn-primary.is-on {
  background: var(--magenta);
  color: #fff;
}

.btn-secondary {
  background: var(--paper);
}

.plan-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 0.8rem;
}

.eyebrow {
  margin: 0 0 0.2rem;
  font-weight: 800;
  color: var(--magenta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.plan-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.plan-list li {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.6rem;
  box-shadow: 4px 5px 0 var(--ink);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.plan-list button.linkish {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  flex: 1;
}

.shop-group {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 0.85rem 1rem 0.4rem;
  margin-bottom: 0.85rem;
}

.shop-group h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}

.shop-group .hint {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.shop-item label {
  display: contents;
  cursor: pointer;
}

.shop-item input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--magenta);
}

.shop-item.is-done .nom {
  text-decoration: line-through;
  opacity: 0.55;
}

.shop-empty {
  background: var(--paper);
  border: 3px dashed var(--ink);
  border-radius: 22px;
  padding: 1.2rem;
  font-weight: 700;
}

.local-banner {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  padding-bottom: 2rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  z-index: 9;
}

.craving-results {
  margin-top: 0.5rem;
}

.home-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  text-align: left;
}

.home-card {
  appearance: none;
  width: 100%;
  border: 4px solid var(--ink);
  background: var(--paper);
  border-radius: 24px;
  padding: 1rem 1.1rem 1.1rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  box-shadow: 6px 8px 0 var(--ink);
}

.home-card .eyebrow {
  color: var(--violet);
}

.home-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0.15rem 0 0.4rem;
}

.home-card p {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.btn-hero.drawing .btn-hero-label::after {
  content: " …";
}

.shop-item {
  grid-template-columns: auto auto 1fr;
  align-items: start;
}

.have-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.card-art img,
.home-card-photo img,
.step-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.card-art img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #e8d7b0;
}

.home-card-photo {
  display: block;
  margin: -1rem -1.1rem 0.85rem;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  border-radius: 20px 20px 0 0;
}

.home-card-photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ingredients li:has(img) {
  grid-template-columns: 52px auto 1fr;
  align-items: start;
}

.ingredients li img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: #fff8dc;
}

.ingredients li:has(img) .mat-note {
  grid-column: 3;
}

.step-photo {
  margin: 0.45rem 0 0.55rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: #1c1333;
}

.step-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shop-item:has(img) {
  grid-template-columns: auto 40px auto 1fr;
}

.shop-item img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: #fff8dc;
}

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

body {
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  padding-top: calc(0.9rem + env(safe-area-inset-top));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.quick-chip,
.plan-link,
.btn-primary,
.btn-secondary,
.btn-hero,
.home-card {
  min-height: 44px;
  touch-action: manipulation;
}

.quick-scroller {
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 1rem;
  padding-inline: 0.15rem;
}

.home-list {
  display: grid;
  gap: 1rem;
}

.home-list li {
  min-width: 0;
}

.home-card h2 {
  overflow-wrap: anywhere;
}

.toast {
  max-width: calc(100% - 2rem);
  text-align: center;
  bottom: calc(1rem + env(safe-area-inset-bottom));
}

.card-toolbar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: linear-gradient(transparent, var(--paper) 18%);
  padding-bottom: calc(0.35rem + env(safe-area-inset-bottom));
}

@media (max-width: 719px) {
  .quick-filters {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }

  .quick-scroller {
    overflow: visible;
  }
  .topbar {
    flex-wrap: wrap;
    width: min(880px, calc(100% - 1rem));
    gap: 0.55rem;
  }

  .brand {
    font-size: 1rem;
    padding: 0.4rem 0.7rem 0.4rem 0.45rem;
    max-width: 100%;
  }

  .top-actions {
    width: 100%;
    margin-left: 0;
  }

  .plan-link {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.55rem 0.45rem;
  }

  main {
    width: min(880px, calc(100% - 1rem));
    margin-bottom: 2.5rem;
  }

  .hero {
    padding: 1rem 0 1.3rem;
  }

  .kicker {
    font-size: 0.7rem;
    max-width: 100%;
    line-height: 1.3;
    transform: none;
  }

  .btn-hero {
    width: 100%;
    box-shadow: 0 10px 0 var(--ink);
    padding: 0.95rem 0.9rem 0.9rem;
  }

  .btn-hero-hint {
    font-size: 0.82rem;
  }

  .card {
    padding: 0.9rem 0.8rem 1rem;
    border-width: 3px;
    border-radius: 22px;
  }

  .card-lead,
  .card-pitch {
    font-size: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .ingredients .qty,
  .shop-item .qty {
    min-width: 3.4rem;
  }

  .shop-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shop-item:has(img) {
    grid-template-columns: auto 40px minmax(0, 1fr);
  }

  .shop-item .qty {
    grid-column: 2;
    grid-row: 1;
  }

  .shop-item:has(img) .qty,
  .shop-item:has(img) > div {
    grid-column: 3;
  }

  .shop-item > div {
    grid-column: 2;
  }

  .ingredients li:has(img) {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .ingredients li:has(img) .qty,
  .ingredients li:has(img) > div,
  .ingredients li:has(img) .mat-note {
    grid-column: 2;
  }

  .ingredients.is-kids li,
  .ingredients.is-kids li:has(img) {
    display: flex;
    grid-template-columns: none;
  }

  .ingredients.is-kids li:has(img) .qty {
    grid-column: auto;
  }

  .home-card-photo {
    margin-left: -1.1rem;
    margin-right: -1.1rem;
  }

  .plan-head {
    align-items: stretch;
  }

  .plan-head .btn-primary,
  .plan-head .btn-secondary {
    width: 100%;
  }

  .plan-list li {
    flex-direction: column;
    align-items: stretch;
  }

  .card-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-toolbar .btn-primary,
  .card-toolbar .btn-secondary {
    width: 100%;
  }

  .stage-bit {
    opacity: 0.2;
  }

  .stage-bit.extra {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .home-list {
    grid-template-columns: 1fr 1fr;
  }

  .top-actions {
    width: auto;
  }
}

@media (min-width: 900px) {
  .home-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

@media (hover: none) {
  .btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 0 var(--ink);
  }
}

.home-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 8px 11px 0 var(--ink);
}

.toast.is-error {
  background: #7a1438;
}

.login-body {
  min-height: 100dvh;
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 2.4rem;
}

.login-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: start;
  gap: 2.2rem 2.6rem;
}

.login-intro,
.login-panel {
  min-width: 0;
}

.login-brand {
  margin: 0 0 0.8rem;
}

.login-kicker {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.login-headline {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  line-height: 1.12;
}

.login-lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.login-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.login-features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.7rem;
}

.login-feature-icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.login-features strong {
  display: block;
}

.login-features li > span:last-child span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.login-wink {
  margin: 1rem 0 0;
  font-weight: 800;
  color: var(--muted);
}

.login-card {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-align: center;
}

.login-error {
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: #ffe1ea;
  border: 2px solid var(--ink);
  font-weight: 800;
}

.field {
  display: block;
  margin-bottom: 0.85rem;
}

.field span,
.field > label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 4.2rem;
  line-height: 1.4;
}

.password-wrap {
  position: relative;
}

.field .password-wrap input {
  padding-right: 2.7rem;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.7rem;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.password-toggle .icon-hide {
  display: none;
}

.password-toggle.is-on .icon-show {
  display: none;
}

.password-toggle.is-on .icon-hide {
  display: block;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.1rem 0 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.login-submit {
  width: 100%;
}

.admin-body main.admin-page {
  width: min(1080px, calc(100% - 1.5rem));
}

.admin-page {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  padding-bottom: 2.5rem;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

.admin-count,
.admin-note,
.admin-meta,
.admin-hint {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.admin-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 6px 8px 0 var(--ink);
}

.admin-layout {
  display: grid;
  gap: 0.9rem;
}

.admin-nav-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.admin-nav-item {
  appearance: none;
  width: 100%;
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 16px;
  padding: 0.55rem 0.7rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.1rem;
}

.admin-nav-item.is-on {
  background: var(--yellow);
}

.admin-nav-item small {
  color: var(--muted);
  font-weight: 800;
}

.admin-pill {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--cyan);
}

.admin-pill[data-status="ok"] { background: var(--lime); }
.admin-pill[data-status="revoir"] { background: var(--orange); color: #fff; }

.admin-visuel-nav {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.admin-block {
  margin: 1rem 0;
  padding-top: 0.7rem;
  border-top: 2px dashed var(--line);
}

.admin-block h3 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
}

.admin-photo {
  margin: 0 0 0.7rem;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: #e8d7b0;
}

.admin-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.admin-pictos {
  display: grid;
  gap: 0.7rem;
}

.admin-picto {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.admin-picto img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  object-fit: cover;
}

.admin-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.admin-steps li {
  background: #fff8dc;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 0.8rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.admin-revoir-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.admin-revoir-list li {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}

.admin-revoir-list .linkish {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}

.admin-empty,
.admin-empty-side {
  font-weight: 700;
  color: var(--muted);
}

@media (min-width: 900px) {
  .admin-layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }

  .admin-side {
    position: sticky;
    top: 0.8rem;
  }

  .login-panel {
    position: sticky;
    top: 1.2rem;
  }
}

@media (max-width: 839px) {
  .login-split {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
  }
}
