/* Pages statiques de mabetterave.fr : mêmes couleurs que l'appli (public/css/styles.css). */
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --text: #0f1b2a;
  --muted: #586879;
  --border: #d7e1ec;
  --accent: #005d9d;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09111b;
    --surface: #111c29;
    --text: #e6edf5;
    --muted: #93a4b7;
    --border: #243549;
    --accent: #5aaeeb;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 1.125rem; margin: 32px 0 8px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 1.25em; }
li { margin-bottom: 6px; }

a { color: var(--accent); }

.date { color: var(--muted); font-size: 0.875rem; margin-bottom: 24px; }

.summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
}
.summary ul { margin: 0; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Page d'accueil (body.home) : reprend la carte de partage (design/carte-partage.html) ---------- */
.home {
  --hero-from: #0a6db3;
  --hero-mid: #005d9d;
  --hero-to: #003f6e;
  --accent-strong: #00467a;
  --accent-soft: #e0eef9;
  --surface-2: #ebf1f7;
  --e85: #0f766e;
  --ethanol-from: #6cb4e8;
  --beet: #b3285f;
  --beet-deep: #6e0f3a;
  --tone-blue: #005d9d;   --tone-blue-soft: #e0eef9;
  --tone-teal: #0f766e;   --tone-teal-soft: #d9f2ee;
  --tone-beet: #b3285f;   --tone-beet-soft: #fbe4ee;
  --tone-amber: #b45309;  --tone-amber-soft: #fef3c7;
  --card-shadow: 0 1px 2px rgb(10 30 55 / 6%), 0 8px 24px rgb(10 30 55 / 7%);
}
@media (prefers-color-scheme: dark) {
  .home {
    --beet: #9c2253;
    --beet-deep: #4a0a27;
    --tone-blue: #5aaeeb;   --tone-blue-soft: #10294a;
    --tone-teal: #2dd4bf;   --tone-teal-soft: #0d2f2c;
    --tone-beet: #f27aa8;   --tone-beet-soft: #3a1528;
    --tone-amber: #fbbf24;  --tone-amber-soft: #3a2e10;
    --card-shadow: none;
    --hero-from: #0b4a7a;
    --hero-mid: #083a61;
    --hero-to: #061f36;
    --accent-strong: #9fd0f5;
    --accent-soft: #14324d;
    --surface-2: #182638;
    --e85: #2bb3a6;
  }
}

.home main { max-width: 1040px; padding-top: 8px; }

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 600px at 100% 0%, rgb(255 255 255 / 12%), transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgb(179 40 95 / 38%), transparent 70%),
    linear-gradient(160deg, var(--hero-from) 0%, var(--hero-mid) 45%, var(--hero-to) 100%);
  overflow: hidden;
}
.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 16px 104px;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1fr 420px; padding: 72px 16px 128px; gap: 56px; }
}

.brand { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.brand img { border-radius: 14px; box-shadow: 0 6px 20px rgb(0 20 45 / 35%), inset 0 0 0 1px rgb(255 255 255 / 20%); }

.hero h1 { margin: 28px 0 0; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.1; font-weight: 750; letter-spacing: -0.015em; }
.hero h1 em { font-style: normal; color: #b9d9f2; }
.lead { margin: 20px 0 0; font-size: 1.125rem; color: rgb(255 255 255 / 86%); max-width: 34em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 172px; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: rgb(0 0 0 / 28%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 35%);
  color: #fff; text-decoration: none; line-height: 1.15; font-weight: 650; font-size: 1.125rem;
}
.store small { display: block; font-size: 0.75rem; font-weight: 500; color: rgb(255 255 255 / 75%); }
.store[aria-disabled="true"] { cursor: default; }
a.store:hover { background: rgb(0 0 0 / 40%); }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 48px; fill: var(--bg); }

.fuels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; }
.fuels b {
  font-size: 0.875rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 14%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 30%);
}
.fuels b.e85 { background: #fff; color: var(--hero-mid); box-shadow: none; }
.fuels span { font-size: 0.9375rem; color: rgb(255 255 255 / 75%); margin-left: 2px; }

/* Carte résultat, dans le style de l'étape 4 de l'appli */
.result {
  margin: 0 auto; width: 100%; max-width: 420px;
  background: var(--surface); color: var(--text); border-radius: 24px; padding: 24px 24px 18px;
  box-shadow: 0 24px 60px rgb(0 18 40 / 42%), 0 0 0 4px rgb(255 255 255 / 25%);
  transform: rotate(1.5deg);
}
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 3px 12px;
}
.result h2 { margin: 10px 0 14px; font-size: 1.5rem; letter-spacing: -0.01em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; margin: 0;
  background: var(--surface-2); border-radius: 14px; padding: 11px 14px;
}
.steps i {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-style: normal; font-weight: 700;
}
.steps li.is-e85 i { background: var(--e85); }
.steps strong { display: block; font-size: 1.0625rem; }
.steps small { color: var(--muted); font-size: 0.875rem; }
.steps b { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.ethanol { margin-top: 16px; }
.ethanol-bar { position: relative; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ethanol-bar div { width: 66.3%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ethanol-from), var(--e85)); }
.ethanol-bar span { position: absolute; top: 0; bottom: 0; left: 66.7%; width: 3px; background: var(--text); opacity: 0.55; }
.ethanol p { margin: 6px 0 0; font-size: 0.875rem; color: var(--muted); }
.gain {
  display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 0;
  background: var(--accent-soft); border-radius: 14px; padding: 12px 16px;
}
.gain span { color: var(--muted); }
.gain b { font-size: 1.625rem; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.result figcaption { margin-top: 10px; text-align: center; font-size: 0.75rem; color: var(--muted); }

/* Tons des pictogrammes : chaque bloc choisit le sien */
.tone-blue  { --tone: var(--tone-blue);  --tone-soft: var(--tone-blue-soft); }
.tone-teal  { --tone: var(--tone-teal);  --tone-soft: var(--tone-teal-soft); }
.tone-beet  { --tone: var(--tone-beet);  --tone-soft: var(--tone-beet-soft); }
.tone-amber { --tone: var(--tone-amber); --tone-soft: var(--tone-amber-soft); }
.home svg:not([viewBox]) { width: 24px; height: 24px; flex: none; }
.home svg.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.tile {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--tone-soft); color: var(--tone);
}

/* Bandeau « en bref », à cheval sur la vague du haut */
.trust {
  list-style: none; margin: -56px 0 0; padding: 8px; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--card-shadow);
}
@media (min-width: 860px) { .trust { grid-template-columns: repeat(4, 1fr); margin-top: -72px; } }
.trust li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 8px; border-radius: 14px; }
@media (min-width: 480px) { .trust li { gap: 12px; padding: 12px; } }
.trust svg { color: var(--tone); }
.trust span { font-size: 0.8125rem; color: var(--muted); line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.trust b { display: block; font-size: 0.9375rem; color: var(--text); }

.kicker {
  margin: 56px 0 4px; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--tone-beet);
}
.section-title { font-size: clamp(1.5rem, 4vw, 1.875rem); margin: 0 0 20px; letter-spacing: -0.015em; }
h3 { font-size: 1.0625rem; margin: 0 0 6px; }

.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 640px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how li, .features article {
  margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px;
  box-shadow: var(--card-shadow);
}
.how li { position: relative; overflow: hidden; border-top: 4px solid var(--tone); }
.how .tile { margin-bottom: 14px; }
.how b {
  display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--tone);
}
.how p, .features p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 12px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features article { display: flex; gap: 16px; align-items: flex-start; }

/* Bouche-à-oreille (pas de « share » dans les noms : les bloqueurs de pub les masquent) */
.bao {
  position: relative; overflow: hidden; margin-top: 56px; padding: 28px 24px; border-radius: 24px; color: #fff;
  background:
    radial-gradient(500px 300px at 100% 0%, rgb(255 255 255 / 14%), transparent 70%),
    linear-gradient(150deg, var(--beet) 0%, var(--beet-deep) 100%);
  display: grid; gap: 20px;
}
@media (min-width: 860px) { .bao { padding: 36px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 32px; } }
.bao-feuille { position: absolute; right: -36px; bottom: -48px; width: 220px; height: 220px; color: rgb(255 255 255 / 8%); pointer-events: none; }
.bao-intro { position: relative; }
.bao h2 { margin: 0 0 6px; font-size: clamp(1.375rem, 4vw, 1.75rem); letter-spacing: -0.015em; }
.bao p { margin: 0; color: rgb(255 255 255 / 86%); }
.bao-liens { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.bao-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px;
  border: 0; border-radius: 999px; background: #fff; color: #0f1b2a;
  font: inherit; font-size: 0.9375rem; font-weight: 650; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px rgb(40 0 20 / 25%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bao-btn svg { width: 20px; height: 20px; color: var(--brand, var(--beet)); }
.bao-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(40 0 20 / 30%); }
.bao-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bao-natif { background: rgb(255 255 255 / 16%); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 45%); }
.bao-natif svg { color: #fff; }
.bao-copie.is-done svg { color: #0f766e; }
@media (prefers-reduced-motion: reduce) { .bao-btn { transition: none; } .bao-btn:hover { transform: none; } }

.notes { margin-top: 32px; }
.notes h2 { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; margin: 0 0 8px; }
.notes h2 svg { color: var(--accent); }

.home footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.home footer p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--text); font-size: 1rem; }
.footer-brand img { border-radius: 8px; }
.tile svg { width: 26px; height: 26px; }
