/* BOUTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px;
  font-family: var(--ff-ui); font-weight: 500; font-size: .95rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  min-height: 48px;
  line-height: 1.1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-wa { background: var(--wa-green); color: #fff; }
.btn-wa:hover { background: color-mix(in srgb, var(--wa-green) 88%, #000); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-light { background: transparent; color: var(--text-on-dark); border-color: var(--border-on-dark); }
.btn-ghost-light:hover { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }
.btn svg { width: 18px; height: 18px; }

/* Cards plain (LAY-2 card=plain) */
.c-plain { background: color-mix(in srgb, var(--text) 4%, var(--bg)); border-radius: var(--r-lg); padding: 24px; }

/* Chips / tags */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-family: var(--ff-ui); font-size: .82rem; font-weight: 500; }

/* Rating badge */
.rating-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-family: var(--ff-ui); font-size: .92rem; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.rating-badge:hover { text-decoration: none; border-color: var(--accent); }
.rating-badge strong { font-weight: 600; }
.rating-badge .stars { display: inline-flex; gap: 1px; color: #E0A500; }
.rating-badge .stars svg { width: 15px; height: 15px; }
.rating-badge .meta { color: var(--text-2); }

/* Form */
.form-row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } /* min-width:0 — piege prod #10 */
.field label { font-family: var(--ff-ui); font-size: .82rem; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
  font: inherit; font-family: var(--ff-ui);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--text);
  min-height: 48px;
  width: 100%; min-width: 0;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

/* MODAL Mentions legales */
.ml-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ml-modal[hidden] { display: none !important; }
.ml-overlay { position: absolute; inset: 0; background: rgba(20,16,10,.55); }
.ml-box { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 28px 26px 24px; max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.ml-box h2 { font-family: var(--ff-display); font-size: 1.6rem; margin: 0 0 14px; }
.ml-box h3 { font-family: var(--ff-display); font-size: 1.05rem; margin: 16px 0 6px; color: var(--accent); }
.ml-box p { font-size: .92rem; color: var(--text-2); margin: 0 0 8px; }
.ml-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background: transparent; border: 0; font-size: 24px; color: var(--text); border-radius: 50%; }
.ml-close:hover { background: var(--bg-alt); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.92); padding: 20px; }
.lightbox[hidden] { display: none !important; }
.lb-image { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; display: grid; place-items: center; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }

/* Star SVG color helper */
.stars-row { display: inline-flex; gap: 2px; color: #E0A500; }
.stars-row svg { width: 18px; height: 18px; }
