/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s5);
  min-height: var(--control-min); padding: 12px 20px; border-radius: var(--radius-control);
  font: 600 17px/1.2 var(--font-title); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background-color var(--motion), color var(--motion), transform var(--motion), border-color var(--motion); }
.btn::after { content: ">"; font-family: var(--font-data); font-weight: 400; }
.btn--noarrow::after { content: none; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ghost-dark { border-color: var(--paper); color: var(--paper); }
.btn--ghost-dark:hover { background: var(--paper); color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--mist); border-color: var(--mist); color: var(--muted); cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }

.link-arrow { font-weight: 600; text-decoration: underline; }

/* ---------- Pastilles de preuve ---------- */
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.proof { padding: var(--s5) var(--s5) var(--s5) 0; border-right: 1px solid var(--line); }
.proof + .proof { padding-left: var(--s5); }
.proof:last-child { border-right: 0; }
.proof .data { display: flex; gap: 8px; align-items: center; }
.proof .data::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.proof h3 { font-size: 20px; margin-top: var(--s3); }
.proof p { color: var(--muted); font-size: 15px; margin-top: var(--s2); }
@media (max-width: 767px) {
  .proofs { grid-template-columns: 1fr; }
  .proof, .proof + .proof { padding: var(--s4) 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Étapes ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 1px solid var(--ink); padding-top: var(--s5); }
.steps li::before { counter-increment: step; content: "0" counter(step) " /"; font-family: var(--font-data); font-size: 14px; color: #BF3418; display: block; margin-bottom: var(--s4); }
.steps h3 { margin-bottom: var(--s2); }
.steps p { color: var(--muted); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- Cartes ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); display: flex; flex-direction: column; overflow: hidden; }
.card__media { aspect-ratio: 4 / 5; background: var(--mist); position: relative; overflow: hidden; }
.card__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card__body .btn { margin-top: auto; }
.price { font: 600 22px/1.2 var(--font-title); }
.price-kg { font-family: var(--font-data); font-size: 14px; color: var(--muted); }

/* Emplacement temporaire — conservé quand aucun visuel n'est adapté */
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s5);
  background: repeating-linear-gradient(135deg, var(--mist) 0 12px, #ECECE7 12px 24px);
  font-family: var(--font-data); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.placeholder--static { position: relative; min-height: 220px; }

/* ---------- Formulaires / sélection ---------- */
.field { display: grid; gap: 6px; }
.field label, .legend { font-weight: 600; font-size: 15px; }
.input, select.input { min-height: var(--control-min); border: 1px solid var(--input-border); border-radius: var(--radius-control);
  padding: 10px 14px; font: inherit; background: #fff; color: var(--ink); width: 100%; }
.help { font-size: 14px; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 14px 20px;
  border: 1px solid var(--ink); border-radius: var(--radius-control); font: 600 18px/1.2 var(--font-title);
  transition: background-color var(--motion), color var(--motion); }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:checked + span::after { content: "✓"; font-family: var(--font-data); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 480px) { .choice-grid { grid-template-columns: 1fr; } }

/* Fiche de preuve */
.proof-sheet { background: var(--mist); padding: var(--s5); border-radius: var(--radius-card); }
.proof-sheet dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: var(--s4) 0 0; font-family: var(--font-data); font-size: 14px; }
.proof-sheet dt { color: var(--muted); }
.proof-sheet dd { margin: 0; }
.tag-unset { color: var(--muted); font-style: normal; }
.tag-unset::before { content: "○ "; }

/* Progression */
.progress { height: 4px; background: var(--mist); }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0; transition: width 300ms ease-out; }

/* Assistant IA */
.assistant-btn { position: fixed; right: var(--margin); bottom: 20px; z-index: 50; background: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--radius-control); min-height: 44px; padding: 8px 14px;
  font: 600 15px/1 var(--font-title); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.assistant-btn::before { content: "IA"; font: 500 11px/1 var(--font-data); background: var(--ink); color: var(--paper); padding: 3px 5px; border-radius: 2px; }
dialog.assistant { border: 1px solid var(--ink); border-radius: var(--radius-card); padding: 0; width: min(440px, calc(100vw - 32px));
  box-shadow: 0 12px 40px rgba(21,21,21,.18); background: var(--paper); color: var(--ink); }
dialog.assistant::backdrop { background: rgba(21,21,21,.25); }
.assistant__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.assistant__body { padding: 20px; display: grid; gap: 14px; }
.assistant__msg { background: var(--mist); padding: 12px 14px; border-radius: var(--radius-card); font-size: 15px; }
.icon-btn { min-width: 44px; min-height: 44px; border: 0; background: transparent; font: 400 22px/1 var(--font-body); cursor: pointer; color: inherit; }

/* Tableaux simples */
.kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv th, .kv td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { font-weight: 400; color: var(--muted); width: 45%; }
.kv td { font-family: var(--font-data); }

/* Accordéon FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px;
  font: 600 19px/1.3 var(--font-title); }
.faq summary::after { content: "+"; font-family: var(--font-data); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px); opacity: 0; z-index: 60;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius-control); font-size: 15px;
  transition: opacity var(--motion), transform var(--motion); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) {
  .assistant-btn { bottom: 12px; padding: 8px 10px; }
  .assistant-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
