@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sel: #f1f2ee;        /* fleur de sel */
  --sel-2: #e6e7e1;
  --ink: #24221f;        /* grain de poivre */
  --muted: #5f5e58;
  --vert: #33573a;       /* poivre vert */
  --vert-deep: #24402a;
  --rose: #efd3c8;       /* sel rose */
  --line: #d3d4cc;
  --led: #fff3cf;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sel);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h1 { font-size: clamp(3.2rem, 11vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* Bandeau Black Friday (n'existe que si l'offre est active) */
.bf-bar { background: var(--ink); color: var(--sel); text-align: center; font-weight: 600; padding: 0.55rem 1rem; font-size: 0.98rem; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; }
.top-link { font-weight: 600; font-size: 1rem; }

/* Prix et bouton */
.price { font-size: 1.9rem; font-weight: 700; margin: 0 0 0.15em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.price del { color: var(--muted); font-weight: 500; font-size: 1.3rem; }
.badge { background: var(--rose); color: var(--ink); font-size: 1rem; padding: 0.1rem 0.55rem; border-radius: 999px; }
.price-note { font-size: 0.9rem; color: var(--muted); max-width: 34rem; }
.price-unit { color: var(--muted); font-size: 1rem; margin: 0 0 1rem; }
.buy {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.4rem; padding: 0.9rem 1.8rem;
  border: 0; border-radius: 999px;
  background: var(--vert); color: #fff;
  font: 700 1.1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.buy:hover { background: var(--vert-deep); }
.buy[disabled] { background: #c7c8c1; color: #4e4d48; cursor: not-allowed; }

/* Hero */
.hero { display: grid; gap: 1.5rem; align-items: center; padding-top: 1rem; padding-bottom: 3.5rem; }
.lede { font-size: 1.25rem; max-width: 30rem; color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.45rem; font-size: 1rem; color: var(--muted); }
.facts li { display: flex; gap: 0.6rem; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--vert); transform: translateY(-0.1rem); }
.hero-art { order: -1; width: min(62%, 13rem); justify-self: center; margin-bottom: -0.5rem; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 2.5rem; padding-bottom: 5rem; }
  .hero-art { order: 0; width: 100%; margin-bottom: 0; }
}

/* Animation unique : le moulin poivre se retourne, la LED s'allume, le poivre tombe */
.pepper { transform-box: fill-box; transform-origin: 50% 50%; animation: flip 1.1s cubic-bezier(0.55, -0.1, 0.3, 1.15) 0.4s both; }
.beam { opacity: 0; animation: glow 0.5s ease-out 1.45s forwards; }
.grain { opacity: 0; animation: fall 1.3s ease-in calc(1.6s + var(--d, 0s)) 3; }
@keyframes flip { from { transform: rotate(0deg); } to { transform: rotate(180deg); } }
@keyframes glow { to { opacity: 1; } }
@keyframes fall {
  0% { transform: translateY(0); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateY(92px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pepper { animation: none; transform: rotate(180deg); }
  .beam { animation: none; opacity: 1; }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
}

/* Sections */
.band { padding: 4rem 0; }
.band-rose { background: var(--rose); }
.band-ink { background: var(--ink); color: var(--sel); }
.band-ink .muted { color: #b9b8b0; }
.section-intro { max-width: 36rem; margin-bottom: 2.25rem; }
.muted { color: var(--muted); }

.benefits { display: grid; gap: 2rem 3rem; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.benefits p { margin: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 2rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; }
.steps li::before {
  content: counter(step);
  font: 700 2.4rem/1 var(--sans); color: var(--vert);
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.plain-list { padding-left: 1.1rem; margin: 0; }
.plain-list li { margin-bottom: 0.6rem; }

.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--serif); color: var(--vert); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0; max-width: 44rem; }

.closing { text-align: left; }
.closing .price { color: var(--sel); }
.closing .price del, .closing .price-note { color: #b9b8b0; }
.closing .buy { background: var(--sel); color: var(--ink); }
.closing .buy:hover { background: #fff; }
.closing .buy[disabled] { background: #55534e; color: #d0cfc8; }

/* Pied de page */
.foot { padding: 2.5rem 0 6rem; font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .foot { padding-bottom: 2.5rem; } }

/* Barre d'achat mobile, affichée quand le bouton du haut sort de l'écran */
.buybar {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1.25rem calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--sel); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.buybar.is-visible { transform: none; }
.buybar .buybar-price { font-weight: 700; font-size: 1.2rem; }
.buybar .buy { min-height: 2.9rem; padding: 0.7rem 1.3rem; font-size: 1rem; }
@media (min-width: 900px) { .buybar { display: none; } }

/* Pages légales */
.prose { max-width: 44rem; padding-top: 1.5rem; padding-bottom: 4rem; }
.prose h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose .box { border: 1px solid var(--line); background: #fff; padding: 1.2rem 1.4rem; border-radius: 6px; margin: 1.5rem 0; }
.prose .box p:last-child { margin-bottom: 0; }
.prose address { font-style: normal; }
