/* ==========================================================================
   Sustainability & Quality page (/sustainability-quality, /fr/durabilite-qualite)
   Loaded only on this page, AFTER /css/style.css (shared styles, colours,
   motion system). Rules used on more than one page belong in style.css.
   ========================================================================== */


/* ---- Feature cards ------------------------------------------------------- */
.feature-icon--light { background: rgba(232, 116, 42, 0.16); color: var(--ember); }
.info-card--dark { background: rgba(250, 247, 242, 0.05); border-color: var(--line-light); }
.info-card--dark p { color: var(--muted-light); }

/* ==========================================================================
   Breakpoints (mobile-first)
   ========================================================================== */
@media (min-width: 900px) {
  .split--flip > :first-child { order: 2; }
}
/* ==========================================================================
   Part 03 — Export & Shipping, Sustainability & Quality, shared gauge,
   product CTA fix. Motion hooks only act under .js-motion (see main.js):
   without JavaScript or with reduced motion everything shows its final state.
   ========================================================================== */
.h4 { font-size: 1.02rem; font-weight: 700; font-family: var(--font-body); margin: 1.25rem 0 0.3rem; }

/* ---- Source notes + badges ---------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.9rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge--facts { background: #e3ecf2; color: #1d4560; }
.badge--ours { background: rgba(232, 116, 42, 0.14); color: var(--ember-text); }
/* ---- Sustainability: stats ---------------------------------------------- */
.stat-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.stat-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.4rem 1.3rem; border-top: 4px solid #2f6b4f; }
.stat-value { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 7vw, 3.2rem); line-height: 1; color: #24553e; font-variant-numeric: tabular-nums; }
.stat-label { margin: 0.6rem 0 0.4rem; font-weight: 700; font-size: 1.05rem; }
.stat-detail { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.stat-source { margin: auto 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.stat-source span { font-weight: 700; }
.stat-source a { color: var(--ember-text); }
.stat-note { display: flex; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0; font-weight: 600; color: #1d4560; }
@media (min-width: 900px) {
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
}
/* ---- Icon list (sourcing) ----------------------------------------------- */
.icon-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.7rem; }
.icon-list-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface); color: #2f6b4f; }
/* ---- From log to load: vertical timeline -------------------------------- */
.prep-timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.5rem; }
.prep-timeline::before {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(180deg, var(--ember), #2f6b4f); transform-origin: top; transition: transform 1.8s var(--ease-out);
}
.js-motion .prep-timeline[data-reveal-line]:not(.is-revealed)::before { transform: scaleY(0); }
.prep-timeline-step { position: relative; padding-left: 4.25rem; }
.prep-timeline-dot {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--charcoal); color: var(--ember);
  box-shadow: 0 0 0 6px var(--off-white);
}
.prep-timeline-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out); }
.prep-timeline-step:hover .prep-timeline-body { box-shadow: var(--shadow-lift); transform: translateX(3px); }
.prep-timeline-body h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.prep-timeline-num { color: var(--ember-text); }
.prep-timeline-body dl { margin: 0; display: grid; gap: 0.5rem; }
.prep-timeline-body dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prep-timeline-body dd { margin: 0; }
@media (min-width: 700px) {
  .prep-timeline-body dl { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
@media (max-width: 480px) {
  .prep-timeline-step { padding-left: 3.1rem; }
  .prep-timeline-dot { width: 38px; height: 38px; }
  .prep-timeline::before { left: 18px; }
  .prep-timeline-body { padding: 1rem; }
}
/* ---- Dry wood + gauge --------------------------------------------------- */
.dry-grid { display: grid; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
@media (min-width: 900px) {
  .dry-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.dry-photo { margin-top: 1.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.benefit-cards { margin-top: 0; }
/* ---- Heat treatment standards ------------------------------------------- */
.standard-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.standard-list li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 0.25rem 0.9rem; padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--surface); }
.standard-temp { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.standard-temp small { font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--muted); }
.standard-time { font-weight: 700; color: var(--ember-text); }
.standard-who { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 520px) {
  .standard-list li { grid-template-columns: auto 1fr; }
  .standard-who { grid-column: 1 / -1; }
}
/* ---- Animated checklist (ticks draw in) ---------------------------------- */
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.tick-list li { display: flex; align-items: center; gap: 0.85rem; padding: 0.95rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.tick { flex-shrink: 0; }
.tick-circle { fill: rgba(47, 107, 79, 0.12); stroke: #2f6b4f; stroke-width: 1.6; }
.tick-mark { fill: none; stroke: #2f6b4f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 0; transition: stroke-dashoffset 0.6s var(--ease-out) 0.35s; }
.js-motion .tick-list li:not(.is-revealed) .tick-mark { stroke-dashoffset: 20; }
/* ---- Certifications note + EUDR note ------------------------------------- */
.tick-list + .cert-note { margin-top: 2rem; }
.cert-note { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1.5px dashed var(--line); color: var(--charcoal-80); }
.cert-note .icon { color: var(--ember-text); margin-top: 0.15rem; }
.eudr-note { display: grid; gap: 1rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ember); }
.eudr-note h2 { margin-bottom: 0.5rem; }
.eudr-note p { margin: 0 0 0.6rem; }
@media (min-width: 600px) {
  .eudr-note { grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.75rem 2rem; }
}
