/* Site public Shreddish (spec 029) : couleurs et polices de l'app (Theme.swift, « Couleurs du marché »). */
@font-face { font-family: "Bricolage Grotesque"; src: url("/static/BricolageGrotesque.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/static/DMSans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }

:root {
  --paper: #F5F1E8; --card: #FFFFFF; --ink: #1E2A22; --muted: #4F5B53; --line: #E6E0D3;
  --accent: #B9471F; --accent-deep: #9A3214; --on-accent: #FFF8F0; --tomato-soft: #F7DCD2;
  --wheat: #F3E3C3; --wheat-ink: #8A5A12; --success: #1D5536; --success-soft: #DDEFE2;
  --protein: #C8461F; --carbs: #D9A21B; --fat: #3A6FB8;
  --shadow: 0 1px 2px rgba(30, 42, 34, .04), 0 12px 32px rgba(30, 42, 34, .08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131514; --card: #1F2220; --ink: #EFEEEA; --muted: #AEB2AE; --line: #2F3330;
    --accent: #F08A63; --accent-deep: #F7B094; --on-accent: #1E0F08; --tomato-soft: #45281E;
    --wheat: #40341C; --wheat-ink: #E9C27A; --success: #8ED1A8; --success-soft: #22382A;
    --protein: #E8743F; --carbs: #E9C27A; --fat: #5B9BEB;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.icon { width: 24px; height: 24px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--card); padding: 8px 14px; border-radius: 10px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 800 21px/1 "Bricolage Grotesque", system-ui; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 6px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); background: var(--card); }

/* Accueil */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.eyebrow { color: var(--wheat-ink); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 32px; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper);
  padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.cta:hover { color: var(--paper); transform: translateY(-1px); }
.cta .icon { width: 20px; height: 20px; }
.cta-soon { background: var(--card); color: var(--ink); border: 1px solid var(--line); }

.mock { margin: 0; background: var(--card); border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transform: rotate(1.5deg); }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mock-head b { font: 800 24px/1 "Bricolage Grotesque", system-ui; }
.mock-head span { color: var(--muted); font-size: 14px; font-weight: 600; }
.meals { list-style: none; margin: 0; padding: 6px 0; }
.meals li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.meals li:last-child { border-bottom: 0; }
.meals b { display: block; font-size: 16px; line-height: 1.3; }
.meals small { color: var(--muted); font-size: 13px; }
.dot { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.d1 { background: var(--wheat); } .d2 { background: var(--tomato-soft); } .d3 { background: var(--success-soft); }
.d4 { background: color-mix(in srgb, var(--fat) 22%, var(--card)); }
.macros { display: flex; gap: 2px; height: 10px; margin-top: 10px; }
.macros span { border-radius: 4px; }
.m-p { background: var(--protein); flex: 30; } .m-c { background: var(--carbs); flex: 45; } .m-f { background: var(--fat); flex: 25; }
.legend { display: flex; gap: 16px; margin: 10px 0 12px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

section > h2, .steps h2, .features h2 { text-align: center; }
.steps, .features, .pricing, .faq, .final { padding: clamp(48px, 7vw, 88px) 0; }
.step-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-list li { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.step-list li > b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 16px; }
.step-list p, .grid p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.grid article { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.grid .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--tomato-soft);
  color: var(--accent-deep); margin-bottom: 16px; }

.privacy-band { background: var(--success-soft); }
.band-in { display: flex; gap: 24px; align-items: flex-start; padding: clamp(40px, 6vw, 64px) 0; }
.band-in .icon { width: 52px; height: 52px; color: var(--success); }
.band-in h2 { font-size: clamp(24px, 3vw, 32px); }
.band-in p { margin-top: 10px; max-width: 46em; }
.band-in a { color: var(--success); }

.pricing > p { margin-top: 12px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 20px; margin: 36px 0 20px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.plan-best { border: 2px solid var(--accent); }
.badge { position: absolute; top: -13px; right: 22px; background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.price { margin: 12px 0 4px; color: var(--muted); }
.price b { font: 800 40px/1 "Bricolage Grotesque", system-ui; color: var(--ink); margin-right: 4px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.plan li .icon { width: 18px; height: 18px; color: var(--success); }

.faq { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 20px; color: var(--muted); }
.faq > p { margin-top: 18px; text-align: center; }

.final { text-align: center; display: grid; justify-items: center; gap: 24px; }

/* Pages de texte */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.doc b { color: var(--ink); }
.doc details { margin-top: 10px; }
.lines { white-space: pre-line; }
.todo { background: var(--wheat); color: var(--wheat-ink); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.contact-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 22px; margin-top: 24px; }
.contact-card .icon { color: var(--accent); }
.contact-card small { display: block; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot-in > div p { margin-top: 10px; font-size: 15px; }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.foot nav a { color: var(--muted); font-weight: 500; text-decoration: none; font-size: 15px; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--ink); }
.foot-in > p { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .mock { transform: none; max-width: 480px; }
  .step-list, .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .top nav a:not([href="/aide"]) { display: none; }
  .step-list, .grid, .plans { grid-template-columns: 1fr; }
  .band-in { flex-direction: column; gap: 14px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { grid-template-columns: 1fr; }
}
