/* Sunu Jus : feuille de style
   Palette tirée du logo : vert feuille, orange agrume. Les teintes de saveur
   (repères colorés de la gamme) viennent de site-data.js. */

:root {
  color-scheme: light;
  --leaf: #1f6b2d;
  --leaf-deep: #14461e;
  --citrus: #f08a1c;
  --tint: #eaf3e2;
  --paper: #fbfdf8;
  --ink: #14231a;
  --muted: #526357;
  --line: #d3e0ca;
  --focus: #14461e;

  --font-display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: max(18px, env(safe-area-inset-left, 0px));
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
body.has-order { padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800; color: var(--leaf-deep); letter-spacing: -0.01em; }
h3 { font-size: 1.45rem; font-weight: 700; color: var(--leaf-deep); }
.section-lead { color: var(--muted); max-width: 52ch; margin-top: 10px; text-wrap: pretty; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--leaf-deep); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn.small { min-height: 42px; padding: 0 16px; font-size: 1rem; }
.btn-wa { background: var(--citrus); color: var(--ink); }
.btn-wa:hover { background: #ffa033; }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: var(--leaf-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--leaf-deep); color: var(--leaf-deep); }
.btn-ghost:hover { background: var(--leaf-deep); color: #fff; }
.btn-clear { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(251, 253, 248, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand img { height: 52px; width: auto; mix-blend-mode: multiply; }
.nav { display: flex; gap: 4px; margin-left: auto; font-weight: 700; }
.nav a { padding: 10px 12px; text-decoration: none; border-radius: 8px; font-size: .98rem; }
.nav a:hover { background: var(--tint); }
@media (max-width: 640px) { .nav-opt { display: none; } .nav a { padding: 10px 8px; } }
@media (max-width: 440px) {
  .top-in { gap: 2px; min-height: 62px; }
  .brand img { height: 44px; }
  .nav { margin-left: auto; }
  .nav a { padding: 10px 7px; font-size: .92rem; }
  #waTop { padding: 0 12px; margin-left: 4px; }
}
/* Sur très petit écran, « Voir la gamme » du bandeau d'accueil remplace le lien Gamme */
@media (max-width: 400px) { .nav a[href="#gamme"] { display: none; } }

/* ---------- Accueil ---------- */
.hero { background: var(--tint); padding: clamp(28px, 6vw, 72px) 0 clamp(32px, 6vw, 72px); overflow: hidden; }
.hero-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .hero-in { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.hero h1 { font-size: clamp(2.2rem, 6.3vw, 4.1rem); font-weight: 800; color: var(--leaf-deep); letter-spacing: -0.015em; line-height: 1; }
.lead { margin-top: 18px; font-size: clamp(1.08rem, 2.4vw, 1.3rem); max-width: 34ch; color: var(--ink); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Le logo est un JPEG à fond blanc : « multiply » fait disparaître le blanc sur la teinte. */
.hero-logo { order: -1; max-width: 260px; }
.hero-logo img { width: 100%; mix-blend-mode: multiply; }
@media (min-width: 820px) { .hero-logo { order: 0; max-width: 420px; justify-self: center; } }

/* Bande des saveurs : une couleur par produit de la gamme */
.stripe { display: flex; height: 12px; }
.stripe span { flex: 1; }

/* ---------- Campagne ---------- */
.campagne { background: var(--citrus); color: var(--ink); padding: clamp(28px, 5vw, 52px) 0; }
.camp-in { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .camp-in { grid-template-columns: 1fr auto; gap: 40px; } }
.campagne h2 { color: var(--ink); }
.campagne p { max-width: 56ch; margin-top: 8px; text-wrap: pretty; }
.camp-period { font-weight: 700; margin-top: 0 !important; }
.camp-period:empty { display: none; }

/* ---------- Gamme ---------- */
.gamme { padding: clamp(44px, 8vw, 92px) 0; }
.group { margin-top: clamp(28px, 5vw, 48px); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 10px; border-bottom: 2px solid var(--leaf-deep); }
.group-note { color: var(--muted); font-size: .96rem; }
.items { display: grid; gap: 0 clamp(20px, 4vw, 48px); }
@media (min-width: 780px) { .items { grid-template-columns: 1fr 1fr; } }

.item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 0 14px; padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 68px; }
.swatch { align-self: stretch; border-radius: 6px; background: var(--c, var(--leaf)); min-height: 44px; }
.item-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; color: var(--ink); }
.item-fmt { display: block; color: var(--muted); font-size: .92rem; line-height: 1.3; margin-top: 2px; }
.item-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--leaf-deep); }

.add, .step button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--leaf); color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.add:hover, .step button:hover { background: var(--leaf-deep); }
.step { display: none; align-items: center; gap: 4px; }
.step output { min-width: 28px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.step button { width: 40px; height: 40px; font-size: 1.35rem; }
.item.has .add { display: none; }
.item.has .step { display: inline-flex; }
.item.has .swatch { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--c, var(--leaf)); }

@media (max-width: 400px) {
  .item { gap: 0 10px; }
  .item-name { font-size: 1.1rem; }
  .item-price { font-size: 1.05rem; }
}

/* ---------- À propos ---------- */
.apropos { background: var(--leaf-deep); color: #fff; padding: clamp(44px, 8vw, 88px) 0; --focus: #fff; }
.apropos h2 { color: #fff; }
.apropos-in { display: grid; gap: 22px; }
@media (min-width: 860px) { .apropos-in { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.apropos-text { display: grid; gap: 14px; max-width: 56ch; text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact { padding: clamp(44px, 8vw, 92px) 0; }
.contact-in { display: grid; gap: 32px; }
@media (min-width: 860px) { .contact-in { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.coords { margin-top: 24px; display: grid; gap: 12px; }
.coords li { display: grid; gap: 2px; }
.coords .k { font-weight: 700; color: var(--muted); font-size: .92rem; }
.coords a { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--leaf-deep); text-underline-offset: 3px; }
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 28px); }
.f { display: grid; gap: 6px; }
.f label { font-weight: 700; font-size: .95rem; }
.f input, .f textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #b7c8ae; border-radius: 10px; background: #fff; font-size: 16px; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus, .f textarea:focus { border-color: var(--leaf); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.foot { background: var(--ink); color: #dfe8dc; padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); --focus: #fff; }
.foot-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: #fff; }
.foot-brand span { font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: #b9c8b5; }
.foot-legal { margin-top: 10px; font-size: .85rem; line-height: 1.6; color: #b9c8b5; max-width: 80ch; }

/* ---------- Barre de commande ---------- */
.order { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--leaf-deep); color: #fff; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(0,0,0,.18); --focus: #fff; animation: rise .22s ease-out; }
.order-in { display: flex; align-items: center; gap: 10px; }
.order-sum { margin-right: auto; line-height: 1.25; }
.order-sum strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.order-sum span { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Page de confirmation / 404 ---------- */
.simple { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px var(--gutter); background: var(--tint); }
.simple-in { max-width: 460px; display: grid; gap: 16px; justify-items: center; }
.simple img { width: 150px; mix-blend-mode: multiply; }
.simple h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; color: var(--leaf-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .order { animation: none; }
}

/* ---------- Formulaire : mention d'information ---------- */
.form-note { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.form-note a { color: var(--leaf-deep); text-underline-offset: 2px; }

/* ---------- Pied de page : liens légaux et réseaux ---------- */
.foot-links, .foot-social { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; }
.foot-links a, .foot-social a { color: #fff; text-underline-offset: 3px; font-weight: 600; font-size: .95rem; padding: 6px 0; }
.foot-links a:hover, .foot-social a:hover { color: var(--citrus); }

/* ---------- Pages légales ---------- */
.legal { padding: clamp(32px, 6vw, 72px) 0 clamp(44px, 8vw, 88px); }
.legal-in { max-width: calc(72ch + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; color: var(--leaf-deep); }
.legal-date { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.legal h2 { font-size: 1.45rem; font-weight: 700; color: var(--leaf-deep); margin-top: 36px; }
.legal h3 { font-size: 1.15rem; margin-top: 22px; }
.legal p, .legal ul { margin-top: 12px; text-wrap: pretty; }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.legal a { color: var(--leaf-deep); text-underline-offset: 3px; }
