/* Layout : hero vert forêt avec fiche formule, sections blanches/teintées, configurateur en deux colonnes.
   Palette tirée du logo SANA. */
:root {
  --forest: #0b3f2f;      /* vert foncé du logo */
  --forest-2: #0f4f3b;
  --green: #196432;
  --leaf: #408227;
  --orange: #f3811d;
  --orange-dark: #d96c0c;
  --amber: #ffa124;

  --ink: #10241c;
  --muted: #56685f;
  --line: #dce5df;
  --surface: #ffffff;
  --tint: #f3f6f2;
  --green-soft: #e5efe7;
  --orange-soft: #fff0e2;
  --amber-soft: #fff5e3;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --warn: #b86400;

  --f-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 63, 47, .06), 0 12px 32px -12px rgba(11, 63, 47, .18);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--f-body); font-size: 1.0625rem; color: var(--ink); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--green); text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; letter-spacing: -.01em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--f-display); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--green); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-ghost { background: var(--green-soft); color: var(--forest); }
.btn-ghost:hover { background: #d5e6d9; }
.btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 62px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .98rem; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--orange); transition: right .2s; }
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--forest); color: #fff; padding: 84px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(64,130,39,.45), transparent 60%), radial-gradient(40% 60% at 0% 100%, rgba(243,129,29,.18), transparent 70%); }
.hero-emblem { position: absolute; right: -60px; bottom: -80px; width: 520px; max-width: none; opacity: .09; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lead { font-size: 1.18rem; color: rgba(255,255,255,.82); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 44px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; max-width: 560px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; }
.hero-facts dt { font: 700 1.7rem/1.1 var(--f-display); color: #fff; }
.hero-facts dd { font-size: .9rem; color: rgba(255,255,255,.7); }

.eyebrow { display: inline-block; font: 600 .78rem/1.2 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.eyebrow-light { color: var(--amber); }

/* Fiche formule (hero) */
.spec { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); animation: rise .8s ease-out both; }
.spec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.spec-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.spec-head strong { font: 600 1.12rem/1.3 var(--f-display); }
.pill { background: var(--orange-soft); color: var(--orange-dark); font: 600 .78rem/1 var(--f-display); padding: 7px 10px; border-radius: 99px; white-space: nowrap; }
.spec-bars { list-style: none; display: grid; gap: 12px; padding: 18px 0; }
.spec-bars li { display: grid; grid-template-columns: 1fr 52px; grid-template-rows: auto 6px; gap: 4px 12px; font-size: .95rem; }
.spec-bars i { grid-column: 1; grid-row: 2; background: var(--green-soft); border-radius: 99px; position: relative; overflow: hidden; }
.spec-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); min-width: 6px; background: linear-gradient(90deg, var(--green), var(--leaf)); border-radius: 99px; animation: grow 1.1s .3s ease-out both; }
.spec-bars b { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; font-variant-numeric: tabular-nums; font-family: var(--f-display); font-weight: 600; }
.spec-nutri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--tint); border-radius: 12px; padding: 14px; }
.spec-nutri span { display: block; font-size: .78rem; color: var(--muted); }
.spec-nutri strong { font: 700 1.1rem/1.2 var(--f-display); color: var(--forest); font-variant-numeric: tabular-nums; }
.spec-nutri small { font-size: .7rem; font-weight: 500; color: var(--muted); }
.spec-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font: 600 .95rem var(--f-display); color: var(--orange-dark); }
@keyframes grow { from { width: 0; } }
@keyframes rise { from { transform: translateY(16px); } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--forest); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about-text p { color: var(--muted); max-width: 36em; }
.about-text p + p { margin-top: 14px; }
.about-text strong { color: var(--ink); }
.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.features li { background: var(--surface); padding: 26px; }
.features .ico-lg { color: var(--orange); }
.features h3 { font-size: 1.1rem; margin: 12px 0 6px; color: var(--forest); }
.features p { font-size: .95rem; color: var(--muted); }

/* ===== Products ===== */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.products-2 { max-width: 880px; margin-inline: auto; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-main { border-color: var(--orange); box-shadow: var(--shadow); }
.product-media { position: relative; height: 150px; display: grid; place-items: center; }
.product-media svg { width: 72px; height: 72px; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.media-green { background: var(--green-soft); } .media-green svg { stroke: var(--green); }
.media-orange { background: var(--orange-soft); } .media-orange svg { stroke: var(--orange-dark); }
.media-amber { background: var(--amber-soft); } .media-amber svg { stroke: #c97a00; }
.tag { position: absolute; top: 14px; right: 14px; background: var(--orange); color: #fff; font: 600 .75rem/1 var(--f-display); padding: 7px 11px; border-radius: 99px; }
.product-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 1.35rem; color: var(--forest); margin-bottom: 6px; }
.usage { align-self: flex-start; font: 600 .78rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-dark); background: var(--orange-soft); padding: 6px 10px; border-radius: 99px; margin-bottom: 12px; }
.price { font: 700 1.1rem var(--f-display); color: var(--forest); margin: -8px 0 18px; }
.product-body > p { color: var(--muted); margin-bottom: 16px; }
.checklist { list-style: none; margin-bottom: 24px; flex: 1; display: grid; gap: 8px; }
.checklist li { padding-left: 26px; position: relative; font-size: .98rem; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }

/* ===== Composer ===== */
.species-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.species-tab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--forest); font: 600 1rem var(--f-display); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.species-tab .ico-lg { width: 26px; height: 26px; color: var(--orange); }
.species-tab:hover { border-color: var(--green); }
.species-tab[aria-selected=true] { background: var(--forest); border-color: var(--forest); color: #fff; }
.species-tab[aria-selected=true] .ico-lg { color: var(--amber); }
.composer { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.composer-right { position: sticky; top: 96px; }
.composer-right h3 { font-size: 1.05rem; color: var(--forest); margin: 24px 0 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; min-width: 0; }
.field > span { font: 600 .88rem var(--f-display); color: var(--ink); }
.field-row { display: flex; gap: 16px; }
input, select, textarea { font: inherit; font-size: 1rem; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--muted); padding: 4px 0 10px; border-bottom: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot-energy { background: var(--amber); } .dot-protein { background: var(--green); } .dot-fiber { background: var(--leaf); opacity: .55; } .dot-mineral { background: #8a9a92; }
.ingredients { display: flex; flex-direction: column; }
.ing { display: grid; grid-template-columns: 1fr 1.3fr 92px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ing:last-child { border-bottom: 0; }
.ing-name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; line-height: 1.25; min-width: 0; }
.ing-name small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.ing { --c: var(--green); }
.ing[data-cat=energy] { --c: var(--orange); }
.ing[data-cat=fiber] { --c: var(--leaf); }
.ing[data-cat=mineral] { --c: #6f8078; }
.ing input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0; border-radius: 99px; box-shadow: none; cursor: pointer;
  background: linear-gradient(90deg, var(--c) var(--p, 0%), var(--green-soft) var(--p, 0%)); }
.ing input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.ing input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c); }
.ing input[type=range]:focus { box-shadow: none; }
.ing-num { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.ing-num input { padding: 7px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.composer-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.total-box { background: var(--green-soft); border-radius: 12px; padding: 18px; text-align: center; transition: background .2s; }
.total-box span { font-size: .88rem; color: var(--muted); }
.total-box strong { display: block; font: 700 2.4rem/1.15 var(--f-display); color: var(--forest); font-variant-numeric: tabular-nums; }
.total-box small { font-weight: 600; color: var(--green); font-size: .9rem; }
.total-box.bad { background: var(--danger-soft); }
.total-box.bad strong, .total-box.bad small { color: var(--danger); }
.bar { height: 8px; background: rgba(11,63,47,.1); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.bar-fill { height: 100%; background: var(--green); border-radius: 99px; transition: width .2s; }
.total-box.bad .bar-fill { background: var(--danger); }
.nutri { display: flex; flex-direction: column; }
.nutri-item { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.nutri-item:last-child { border-bottom: 0; }
.nutri-item .val { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.nutri-item .target { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.nutri-item .ok { color: var(--green); }
.nutri-item .warn { color: var(--warn); }
.note { font-size: .82rem; color: var(--muted); margin: 14px 0 18px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty span { font-weight: 600; }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps li { padding: 0 22px; position: relative; }
.steps li::before { content: ""; position: absolute; top: 22px; left: 66px; right: -22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps li:last-child::before { display: none; }
.step-n { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #fff; font: 700 1.1rem var(--f-display); display: grid; place-items: center; margin-bottom: 18px; }
.steps li:first-child .step-n { background: var(--orange); }
.steps h3 { font-size: 1.12rem; color: var(--forest); margin-bottom: 6px; }
.steps p { font-size: .96rem; color: var(--muted); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico-lg { color: var(--orange); margin-top: 2px; }
.contact-list strong { display: block; font-family: var(--f-display); color: var(--forest); }
.contact-list span, .contact-list a { color: var(--muted); }
.contact-list a:hover { color: var(--green); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-msg { margin-top: 14px; font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.form-msg.error { color: var(--danger); }
.form-msg.success { color: var(--green); }
.form-msg a { color: var(--orange-dark); text-decoration: underline; }
.invalid { border-color: var(--danger) !important; }

/* ===== Bandeau espèces ===== */
.species-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.species-strip-in { display: flex; align-items: center; gap: 12px 28px; padding-block: 18px; flex-wrap: wrap; }
.strip-label { font: 600 .78rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.strip-list { display: flex; flex-wrap: wrap; gap: 6px 26px; flex: 1; }
.strip-item { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem var(--f-display); color: var(--forest); padding: 6px 0; }
.strip-item .ico-lg { width: 26px; height: 26px; color: var(--orange); transition: transform .2s; }
.strip-item:hover { color: var(--green); }
.strip-item:hover .ico-lg { transform: translateY(-2px); }

/* ===== Avis ===== */
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review .ico-lg { color: var(--orange); }
.review blockquote { font-size: 1.05rem; flex: 1; }
.review figcaption strong { display: block; font-family: var(--f-display); color: var(--forest); }
.review figcaption span { font-size: .9rem; color: var(--muted); }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-intro { color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq-item[open] { border-color: var(--green); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font: 600 1.05rem var(--f-display); color: var(--forest); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--orange); transition: transform .2s; }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); }

/* ===== Bandeau d'appel ===== */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--forest) 0%, var(--green) 100%); color: #fff; padding-block: 64px; }
.cta-emblem { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 260px; max-width: none; opacity: .1; pointer-events: none; }
.cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-in h2 { color: #fff; margin-bottom: 8px; }
.cta-in p { color: rgba(255,255,255,.82); max-width: 36em; }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }

/* ===== Réseaux sociaux ===== */
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--forest); transition: background .2s, color .2s; }
.socials a:hover { background: var(--forest); color: #fff; }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials-light a { background: rgba(255,255,255,.1); color: #fff; }
.socials-light a:hover { background: var(--orange); }

/* ===== Bandeau promo ===== */
.promo-bar { background: var(--orange); color: #fff; text-align: center; padding: 9px 16px; font-weight: 600; font-size: .95rem; }
.promo-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }

/* ===== Footer ===== */
.footer { background: var(--forest); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px 48px; align-items: start; }
.footer-brand img { height: 84px; width: auto; }
.footer-brand p { margin-top: 14px; max-width: 30em; }
.footer-brand .socials { margin-top: 18px; }
.footer-col { display: grid; gap: 10px; }
.footer-col h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.85); }
.footer-col a:hover { color: var(--amber); }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; font-size: .86rem; }

.preview-bar { position: relative; z-index: 70; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; padding: 10px 16px; background: var(--amber); color: var(--ink); font-weight: 600; font-size: .95rem; text-align: center; }
.preview-bar button { font: inherit; padding: 5px 12px; border-radius: 8px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; }
.admin-link { color: rgba(255,255,255,.5); }
.admin-link:hover { color: var(--amber); }

.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.22); z-index: 60; transition: transform .2s; }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-float:hover { transform: scale(1.07); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; width: 100%; text-align: center; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
}
@media (max-width: 1000px) {
  .hero-grid, .about-grid, .composer, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid, .about-grid { gap: 32px; }
  .spec { max-width: 560px; }
  .products { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .steps li:nth-child(2)::before { display: none; }
  .composer-right { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { height: 68px; }
  .brand img { height: 48px; }
  .section { padding: 64px 0; }
  .hero { padding: 52px 0 64px; }
  .hero-emblem { width: 340px; right: -90px; bottom: auto; top: -40px; }
  .features { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li::before { display: none; }
  .field-row { flex-direction: column; gap: 0; }
  .ing { grid-template-columns: 1fr 92px; gap: 8px 12px; }
  .ing input[type=range] { grid-column: 1 / -1; grid-row: 2; }
  .panel { padding: 20px; }
  .species-tab { padding: 8px 12px 8px 10px; font-size: .92rem; }
  .spec { padding: 20px; }
  .spec-nutri { grid-template-columns: 1fr 1fr 1fr; padding: 12px 10px; }
  .spec-nutri strong { font-size: 1rem; }
  .hero-facts { gap: 12px; }
  .hero-facts dt { font-size: 1.35rem; }
  .hero-facts dd { font-size: .8rem; }
  .species-strip-in { flex-direction: column; align-items: stretch; gap: 8px; padding-block: 14px; }
  .strip-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .strip-item { font-size: .95rem; }
  .cta-band { padding-block: 48px; }
  .cta-in .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
#faq { border-top: 1px solid var(--line); }

/* =========================================================
   Effets (activés par assets/js/effects.js)
   ========================================================= */

/* Écran d'ouverture */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--forest); transition: opacity .6s ease, visibility .6s; }
.loader img { width: 96px; animation: pulse 1s ease-in-out infinite alternate; }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes pulse { from { transform: scale(.92); opacity: .75; } to { transform: scale(1.05); opacity: 1; } }

/* En-tête : compact au défilement + progression */
.header { transition: box-shadow .3s, background .3s; }
.nav, .brand img { transition: height .3s ease; }
.header.scrolled { box-shadow: 0 8px 30px -12px rgba(11,63,47,.25); }
.header.scrolled .nav { height: 64px; }
.header.scrolled .brand img { height: 50px; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--orange), var(--amber)); transform: scaleX(0); transform-origin: 0 50%; }
.nav-links a.active:not(.btn) { color: var(--green); }
.nav-links a.active:not(.btn)::after { right: 0; }

/* Hero : grains animés, titre, boutons */
.hero-fx { position: absolute; inset: 0; pointer-events: none; }
.hero-emblem { will-change: transform; }
.hero h1.split .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); animation: word .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.hero .lead, .hero-cta, .hero-facts { animation: fadeUp .8s ease-out both; }
.hero .lead { animation-delay: .5s; } .hero-cta { animation-delay: .65s; } .hero-facts { animation-delay: .8s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
.spec { transition: transform .25s ease-out, box-shadow .3s; will-change: transform; }
.hero-facts dt { font-variant-numeric: tabular-nums; }

.btn-accent { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 8px 22px -8px rgba(243,129,29,.65); }
.btn-accent::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn-accent:hover::after { transform: translateX(120%); }
.btn-accent:hover { box-shadow: 0 12px 28px -8px rgba(243,129,29,.8); }

/* Apparition au défilement */
.fx .rv { opacity: 0; transform: translateY(28px); }
.fx .rv.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.fx .species-tab.rv.in, .fx .strip-item.rv.in { transition-property: opacity, transform, background, border-color, color; }

/* Titres de section : trait animé sous le surtitre */
.section-head .eyebrow { position: relative; padding-bottom: 10px; }
.section-head .eyebrow::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--orange), var(--amber)); transform: translateX(-50%) scaleX(0); transition: transform .8s .3s cubic-bezier(.2,.7,.2,1); }
.section-head.in .eyebrow::after, html:not(.fx) .section-head .eyebrow::after { transform: translateX(-50%) scaleX(1); }

/* Cartes : relief, reflet lumineux, icônes vivantes */
.product, .features li, .review { position: relative; }
.product::before, .features li::before, .review::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(243,129,29,.10), transparent 60%); z-index: 1; }
.product:hover::before, .features li:hover::before, .review:hover::before { opacity: 1; }
.product { transition: box-shadow .35s, transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s; }
.product:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -24px rgba(11,63,47,.35); border-color: var(--green); }
.product-media { overflow: hidden; background-image: radial-gradient(rgba(11,63,47,.07) 1.2px, transparent 1.3px); background-size: 16px 16px; }
.product-media svg { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.product:hover .product-media svg { transform: scale(1.15) rotate(-6deg); }
.features li { transition: background .3s; }
.features li .ico-lg { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.features li:hover .ico-lg { transform: translateY(-4px) scale(1.12); }
.step-n { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.steps li:hover .step-n { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(243,129,29,.15); }
.species-tab { transition: transform .25s, border-color .2s, background .2s, color .2s, box-shadow .25s; }
.species-tab:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(11,63,47,.4); }

/* Bandeau d'appel : lueur animée */
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,161,36,.25), transparent 65%); animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(260px, 120px); } }

/* WhatsApp : halo, bouton retour en haut */
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .55; } to { transform: scale(1.7); opacity: 0; } }
.to-top { position: fixed; right: 28px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 59; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--forest); color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top .ico { transform: rotate(-90deg); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .hero-fx, .loader { display: none; }
  .fx .rv { opacity: 1; transform: none; }
}
/* l'écran d'ouverture disparaît seul même si le script ne se charge pas */
.loader { animation: loaderOut .5s 2.5s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
@media (max-width: 760px) {
  .header.scrolled .nav { height: 60px; }
  .header.scrolled .brand img { height: 42px; }
  .to-top { right: 28px; }
}

/* ===== Visuel du hero : emblème et espèces ===== */
.hero-visual { position: relative; width: min(460px, 100%); aspect-ratio: 1; justify-self: center; transition: transform .25s ease-out; }
.hv-orbit { position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.22); animation: spin 60s linear infinite; }
.hv-core { position: absolute; inset: 24%; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(255,255,255,.06), 0 0 0 30px rgba(255,255,255,.04), 0 30px 60px -20px rgba(0,0,0,.5); }
.hv-core img { width: 70%; animation: breathe 5s ease-in-out infinite; }
.hv-chips { position: absolute; inset: 0; }
.hv-chip { --a: calc(var(--k) / var(--n) * 360deg - 90deg); position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 99px; background: var(--surface); color: var(--forest); font: 600 .95rem var(--f-display); white-space: nowrap; box-shadow: 0 12px 24px -10px rgba(0,0,0,.45);
  transform: translate(-50%, -50%) rotate(var(--a)) translate(min(41vw, 205px)) rotate(calc(-1 * var(--a))); }
.hv-chip .ico-lg { width: 22px; height: 22px; color: var(--orange); }
.fx .hv-chip { animation: chipIn .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.6s + var(--k) * .1s); }
@keyframes chipIn { from { opacity: 0; scale: .6; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.05); } }
@media (max-width: 1000px) { .hero-visual { width: min(400px, 100%); margin-top: 8px; } }
@media (max-width: 760px) {
  .hv-chip { font-size: .8rem; padding: 6px 10px 6px 8px; gap: 6px; transform: translate(-50%, -50%) rotate(var(--a)) translate(min(33vw, 140px)) rotate(calc(-1 * var(--a))); }
  .hv-chip .ico-lg { width: 18px; height: 18px; }
}
@media (max-width: 380px) {
  .hv-chip { font-size: .74rem; padding: 5px 8px 5px 7px; transform: translate(-50%, -50%) rotate(var(--a)) translate(min(31vw, 116px)) rotate(calc(-1 * var(--a))); }
}

/* ===== Demande d'aliment ===== */
.opt { font-style: normal; font-weight: 400; color: var(--muted); }
.request-card { display: flex; flex-direction: column; gap: 18px; }
.req-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.req-ico { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; }
.req-head strong { display: block; font: 700 1.25rem var(--f-display); color: var(--forest); }
.spec-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.req-list { display: grid; gap: 10px; }
.req-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: .97rem; }
.req-list dt { color: var(--muted); }
.req-list dd { font-weight: 600; color: var(--ink); }
.req-promise { list-style: none; display: grid; gap: 8px; background: var(--tint); border-radius: 12px; padding: 14px 16px; font-size: .92rem; }
.req-promise li { padding-left: 24px; position: relative; }
.req-promise li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }
.req-msg { min-height: 1.2em; color: var(--danger); font-weight: 600; font-size: .92rem; margin: -6px 0 -8px; }

/* ===== Disponible maintenant / Bientôt ===== */
.available { background: linear-gradient(180deg, var(--orange-soft), var(--surface)); }
#hatchingCard { display: grid; gap: 24px; }
.feature-product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--surface); border: 2px solid var(--orange); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(217,108,12,.45); max-width: 980px; margin-inline: auto; }
.fp-media { position: relative; display: grid; place-items: center; min-height: 320px; background: var(--amber-soft); background-image: radial-gradient(rgba(11,63,47,.07) 1.2px, transparent 1.3px); background-size: 16px 16px; }
.fp-media svg { width: 150px; height: 150px; fill: none; stroke: #c97a00; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; animation: breathe 5s ease-in-out infinite; }
.fp-body { padding: 36px; display: flex; flex-direction: column; }
.fp-body h3 { font-size: 1.9rem; color: var(--forest); margin-bottom: 8px; }
.fp-body > p { color: var(--muted); margin-bottom: 16px; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.tag-live { background: var(--green) !important; color: #fff; }
.tag-soon { background: var(--amber) !important; color: var(--ink) !important; }
.tag-live, .tag-soon { position: absolute; top: 14px; right: 14px; font: 700 .8rem/1 var(--f-display); padding: 8px 12px; border-radius: 99px; letter-spacing: .04em; }
.product.is-soon .product-media svg { opacity: .55; }
.product.is-soon h3 { color: var(--muted); }
.soon-pill { display: inline-block; margin: 0 0 10px 8px; background: var(--amber); color: var(--ink); font: 700 .78rem/1 var(--f-display); padding: 7px 12px; border-radius: 99px; vertical-align: middle; }
@media (max-width: 760px) {
  .feature-product { grid-template-columns: 1fr; }
  .fp-media { min-height: 200px; }
  .fp-body { padding: 22px; }
  .fp-actions .btn { width: 100%; }
}
