/* Thème de Ma Peau : tokens et intention de docs/04-UIUX.md. Aucune ressource externe. */
:root {
  color-scheme: light dark;
  --bg: #F7F2EA;
  --surface: #FFFDF9;
  --beige: #E9DFD0;
  --text: #2F2A24;
  --text-muted: #6F665C;
  --sage: #8FA58A;
  --sage-deep: #566F52;
  --sage-deeper: #48604A;
  --on-accent: #FFFDF9;
  --alert-avoid: #B5523B;
  --alert-irritation: #C98A2E;
  --alert-caution: #5B7FA6;
  --glow-a: #F2D6C4;
  --glow-b: #CFDCC6;
  --line: rgb(90 75 55 / 0.1);
  --shadow-sm: 0 1px 2px rgb(70 55 35 / 0.05), 0 2px 8px rgb(70 55 35 / 0.05);
  --shadow-md: 0 2px 4px rgb(70 55 35 / 0.05), 0 10px 28px rgb(70 55 35 / 0.09);
  --space: 0.5rem;
  --gutter: 1rem;
  --tab-height: 3.5rem;
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
}

:root[data-moment="soir"] {
  --glow-a: #E0D3E6;
  --glow-b: #CBD6E2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1C19;
    --surface: #2A2723;
    --beige: #3A352F;
    --text: #EFE8DD;
    --text-muted: #A89F94;
    --sage: #9FB79A;
    --sage-deep: #C3D6BF;
    --sage-deeper: #AFC6AA;
    --on-accent: #1E1C19;
    --alert-avoid: #E08A72;
    --alert-irritation: #E3B060;
    --alert-caution: #8FB0D4;
    --glow-a: #4A3A2E;
    --glow-b: #33402F;
    --line: rgb(255 245 230 / 0.08);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.25);
    --shadow-md: 0 8px 28px rgb(0 0 0 / 0.35);
  }
  :root[data-moment="soir"] {
    --glow-a: #3B3048;
    --glow-b: #2A3644;
  }
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Halo doux qui suit le moment de la journée, puis grain de papier. */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  opacity: 0.5;
  background:
    radial-gradient(70vmax 50vmax at 88% -6%, var(--glow-a), transparent 70%),
    radial-gradient(60vmax 46vmax at -8% 36%, var(--glow-b), transparent 70%);
}
body::after {
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 1.875rem; line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
h2 { font-size: 1.25rem; margin: calc(var(--space) * 2) 0 var(--space); }
.card h2 { margin-top: 0; }
p { margin: var(--space) 0; }
a { color: var(--sage-deep); }
img { max-width: 100%; }
[hidden] { display: none !important; }
ul { margin: 0.25rem 0; padding-left: 1.25rem; }

:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 2px; }

.muted, .hint { color: var(--text-muted); font-size: 0.9375rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

#screen {
  max-width: 30rem;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + var(--gutter)) calc(env(safe-area-inset-right, 0px) + var(--gutter))
    calc(env(safe-area-inset-bottom, 0px) + var(--tab-height) + 2.5rem) calc(env(safe-area-inset-left, 0px) + var(--gutter));
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
#screen[data-screen="plain"] { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--gutter) * 2); }

/* Arrivée sur un écran : montée douce, décalée. Jamais lors d'un simple rafraîchissement. */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
#screen.enter > * { animation: rise 380ms var(--ease) both; }
#screen.enter > :nth-child(2) { animation-delay: 40ms; }
#screen.enter > :nth-child(3) { animation-delay: 80ms; }
#screen.enter > :nth-child(4) { animation-delay: 120ms; }
#screen.enter > :nth-child(5) { animation-delay: 160ms; }
#screen.enter > :nth-child(n+6) { animation-delay: 200ms; }

.screen-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space); }
.header-actions { display: flex; gap: var(--space); flex: none; }
.subtitle { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.9375rem; }
.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; align-self: flex-start; }

/* Aujourd'hui : carte d'en-tête et anneau */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  padding: 1.125rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}
.hero { position: relative; overflow: hidden; isolation: isolate; }
/* Illustration à droite, qui s'efface vers le texte. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  z-index: -1;
  background: url("assets/hero-matin.webp") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0, #000 70%);
  opacity: 0.85;
}
.hero-soir::before { background-image: url("assets/hero-soir.webp"); }
.hero-text { min-width: 0; }
.eyebrow { margin: 0 0 0.25rem; color: var(--text-muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ring { position: relative; flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: color-mix(in srgb, var(--surface) 86%, transparent); box-shadow: var(--shadow-sm); }
.ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--beige); stroke-width: 6; }
.ring-value {
  fill: none;
  stroke: var(--sage-deep);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dasharray 520ms var(--ease);
}
.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Barre d'onglets flottante, translucide */
#tabs {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.625rem);
  z-index: 5;
  width: min(calc(100% - 1.5rem), 28.5rem);
  transform: translateX(-50%);
  display: flex;
  gap: 0.125rem;
  padding: 0.25rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow-md);
}
#tabs a {
  flex: 1;
  min-width: 0;
  min-height: var(--tab-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  border-radius: 18px;
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-decoration: none;
  transition: background-color 200ms, color 200ms, transform 120ms;
}
#tabs a:active { transform: scale(0.95); }
#tabs a[aria-current="page"] {
  background: color-mix(in srgb, var(--sage) 16%, var(--surface));
  color: var(--text);
  font-weight: 600;
}

.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Boutons */
.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 120ms var(--ease), box-shadow 200ms;
}
.button:active:not(:disabled), .icon-button:active:not(:disabled) { transform: scale(0.97); }
.button { padding: 0.5rem 1rem; text-align: center; }
.icon-button { width: 2.75rem; padding: 0; flex: none; }
.button-primary {
  background: linear-gradient(180deg, var(--sage-deep), var(--sage-deeper));
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 600;
  box-shadow: 0 1px 1px rgb(40 55 35 / 0.2), 0 8px 18px rgb(70 95 65 / 0.22);
}
.button-wide { width: 100%; }
.button:disabled, .icon-button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space); }
.button-row-fill > * { flex: 1 1 8rem; }
.stack-top { margin-top: var(--space); }
label.button { cursor: pointer; position: relative; }

/* Blocs */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: var(--gutter);
  box-shadow: var(--shadow-sm);
}
.card > :last-child, .card dl { margin-bottom: 0; }
.notice {
  margin: 0;
  background: color-mix(in srgb, var(--beige) 72%, transparent);
  color: var(--text);
  border-radius: 14px;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
}
.empty { text-align: center; padding: calc(var(--space) * 3) var(--gutter); color: var(--text-muted); }
.empty .mark { width: 4rem; height: 4rem; margin: 0 auto var(--space); opacity: 0.85; }
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  background: color-mix(in srgb, var(--sage) 24%, var(--surface));
  border-radius: 16px;
  padding: 0.75rem;
}
.errors:empty { display: none; }
.errors { border-left: 4px solid var(--alert-avoid); padding-left: 0.75rem; font-weight: 600; }
.errors p { margin: 0 0 0.25rem; }
.done-message {
  margin: 0;
  padding: 0.625rem;
  border-radius: 14px;
  text-align: center;
  background: color-mix(in srgb, var(--sage) 20%, var(--surface));
  font-family: var(--serif);
  font-weight: 600;
  animation: rise 420ms var(--ease) both;
}

/* Alertes : teinte légère, icône et libellé en plus de la couleur */
.alerts { display: flex; flex-direction: column; gap: var(--space); }
.alerts:empty { display: none; }
.alert {
  --tone: var(--text-muted);
  background: color-mix(in srgb, var(--tone) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tone) 18%, transparent);
  border-left: 4px solid var(--tone);
  border-radius: 14px;
  padding: 0.625rem 0.75rem 0.25rem;
  box-shadow: var(--shadow-sm);
}
.alert-eviter { --tone: var(--alert-avoid); }
.alert-irritation { --tone: var(--alert-irritation); }
.alert-precaution { --tone: var(--alert-caution); }
.alert-level { margin: 0; font-size: 0.9375rem; font-weight: 600; }
.alert-message { margin: 0.125rem 0 0; }
summary { min-height: 2.75rem; display: flex; align-items: center; color: var(--sage-deep); cursor: pointer; list-style: none; }
summary::before { content: "›"; margin-right: 0.5rem; transition: transform 200ms var(--ease); }
details[open] > summary::before { transform: rotate(90deg); }
summary::-webkit-details-marker { display: none; }
details[open] > :not(summary) { animation: rise 260ms var(--ease) both; }

/* Étapes de routine */
.steps, .routine-list, .concern-list { list-style: none; margin: 0; padding: 0; }
.steps { display: flex; flex-direction: column; gap: var(--space); }
.step {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms var(--ease);
}
.step:active { transform: scale(0.985); }
.step-check {
  flex: 1;
  min-width: 0;
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-touch-callout: none;
  user-select: none;
}
.tick {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--sage);
  border-radius: 50%;
  color: var(--on-accent);
  font-size: 1rem;
}
.is-done .tick { background: var(--sage-deep); border-color: var(--sage-deep); }
@keyframes tick-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes tick-halo {
  from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sage) 60%, transparent); }
  to { box-shadow: 0 0 0 14px transparent; }
}
.just-done .tick { animation: tick-pop 260ms var(--ease), tick-halo 520ms ease-out; }
.step-text { display: flex; flex-direction: column; min-width: 0; }
.step-name { overflow-wrap: anywhere; }
.step-families { color: var(--text-muted); font-size: 0.875rem; }
.is-done .step-name { color: var(--text-muted); }
.step-open {
  flex: none;
  width: 2.75rem;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Pétales : une seule fois, quand la routine vient d'être finie */
@keyframes petal {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.6); }
  12% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--turn)) scale(1); }
}
.petal {
  position: fixed;
  z-index: 10;
  top: 7.5rem;
  left: 50%;
  width: 0.6rem;
  height: 0.9rem;
  border-radius: 60% 40% 60% 40%;
  pointer-events: none;
  background: var(--sage);
  animation: petal 1100ms var(--ease) var(--delay) both;
}
.petal:nth-child(3n) { background: var(--glow-a); }
.petal:nth-child(3n+1) { background: var(--alert-irritation); }

/* Segments et filtres */
.segmented {
  display: flex;
  gap: 0.125rem;
  background: color-mix(in srgb, var(--beige) 76%, transparent);
  border-radius: 14px;
  padding: 0.1875rem;
}
.segmented button {
  flex: 1 0 auto;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 11px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 200ms, box-shadow 200ms;
}
.segmented button[aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: var(--shadow-sm); }
.scroll-x { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x .segmented { width: max-content; min-width: 100%; }

/* Collection */
.product-grid { display: grid; gap: var(--space); }
.product-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.625rem 0.75rem;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms var(--ease), box-shadow 200ms;
}
.product-card:active { transform: scale(0.985); }
@media (hover: hover) {
  .product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
}
.thumb { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 14px; object-fit: cover; }
.thumb-initial {
  --tint: var(--sage);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tint) 34%, var(--surface)), color-mix(in srgb, var(--tint) 14%, var(--surface)));
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
}
.thumb-tone-1 { --tint: var(--alert-irritation); }
.thumb-tone-2 { --tint: var(--alert-caution); }
.thumb-tone-3 { --tint: var(--alert-avoid); }
.thumb-tone-4 { --tint: var(--beige); }
.thumb-tone-5 { --tint: #9C86B0; }
.product-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product-name { font-weight: 600; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; }
.chip { background: color-mix(in srgb, var(--beige) 80%, var(--surface)); border-radius: 999px; padding: 0.0625rem 0.5rem; font-size: 0.8125rem; color: var(--text); }
.chip-example { margin-left: 0.5rem; font-weight: 400; }
.pao { flex: none; color: var(--text-muted); font-size: 0.875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pao-urgent { color: var(--text); font-weight: 600; border: 2px solid var(--alert-irritation); border-radius: 10px; padding: 0 0.375rem; }
.search {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 0 0.875rem;
  box-shadow: var(--shadow-sm);
}
.sheet-head { display: flex; align-items: center; gap: 0.75rem; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-head p { margin: 0; }
.sheet-head .thumb { width: 4.5rem; height: 4.5rem; border-radius: 18px; }
dl { margin: 0; }
.row { display: flex; justify-content: space-between; gap: var(--gutter); padding: 0.4375rem 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
dt { color: var(--text-muted); flex: none; max-width: 50%; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.inci { overflow-wrap: anywhere; font-size: 0.9375rem; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: var(--gutter); }
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field-label { font-weight: 600; font-size: 0.9375rem; }
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--text-muted) 55%, transparent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  /* 16 px minimum : en dessous, iOS zoome sur le champ au toucher. */
  font: inherit;
  padding: 0.5rem 0.75rem;
  transition: border-color 160ms, box-shadow 160ms;
}
input:not([type="checkbox"]):focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 35%, transparent);
}
input[type="checkbox"] { width: 1.5rem; height: 1.5rem; flex: none; margin: 0; accent-color: var(--sage-deep); }
.check-label { display: flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; flex: 1; min-width: 0; }
.active-detail { display: grid; gap: var(--space); padding: 0 0 0.75rem 2.125rem; }

/* Note du journal */
.score { border: 0; margin: 0; padding: 0; }
.score legend { padding: 0; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.375rem; }
.score-dots { display: flex; justify-content: space-between; gap: 0.25rem; }
.score-dots button {
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--sage);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background-color 160ms, transform 160ms var(--ease);
}
.score-dots button[aria-pressed="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--on-accent); font-weight: 600; transform: scale(1.08); }
.score-ends { display: flex; justify-content: space-between; margin-top: 0.25rem; }

/* Routines */
.routine-list { display: flex; flex-direction: column; gap: var(--space); }
.routine-row { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.375rem; box-shadow: var(--shadow-sm); }
.routine-main { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.routine-name { font-weight: 600; color: inherit; overflow-wrap: anywhere; }
.reason { font-size: 1rem; }
.routine-actions { display: flex; gap: 0.25rem; justify-content: flex-end; flex: none; }
.week { display: flex; flex-direction: column; gap: var(--space); }
.week-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem var(--space); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0.625rem 0.75rem; box-shadow: var(--shadow-sm); }
.week-day { grid-column: 1 / -1; font-family: var(--serif); font-weight: 600; }

/* Profil */
.concern-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space); padding: 0.25rem 0; border-top: 1px solid var(--line); }
.concern-row:first-child { border-top: 0; }
.tolerance-list { display: flex; flex-direction: column; gap: 0.75rem; }

/* Bienvenue et installation */
.mark { display: block; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.welcome-art {
  display: block;
  width: min(17rem, 72vw);
  aspect-ratio: 1;
  margin: 0 auto -0.75rem;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
  animation: float 7s ease-in-out infinite;
}
.welcome-title { text-align: center; }
.welcome-title h1 { font-size: 2.375rem; }
.welcome-title p { color: var(--text-muted); }
.install-steps { padding-left: 1.5rem; }
.install-steps li { margin-bottom: 0.75rem; }

/* Mise à jour */
.update-button {
  width: 100%;
  min-height: 2.75rem;
  padding: calc(env(safe-area-inset-top, 0px) + 0.5rem) var(--gutter) 0.5rem;
  border: 0;
  background: var(--sage-deep);
  color: var(--on-accent);
  font: inherit;
  cursor: pointer;
}

/* Ordinateur (WEB-01) : la Collection passe en grille au-delà de 1024 px. */
@media (min-width: 1024px) {
  #screen[data-screen="collection"]:has(.product-grid) { max-width: 60rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
}

@media (prefers-color-scheme: dark) {
  .hero::before { opacity: 0.42; }
  .welcome-art { opacity: 0.88; }
}

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