/* ============ Boutons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95rem 1.7rem;
  font-family: var(--ff-ui);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid var(--primary);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, box-shadow .2s ease;
  min-height: 50px;
  line-height: 1.1;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-primary {
  background: var(--primary);
  color: var(--surface);
  box-shadow: 4px 4px 0 var(--accent);
}
.btn-primary:hover {
  color: var(--surface);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--accent);
}
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 4px 4px 0 var(--primary);
}
.btn-secondary:hover {
  color: var(--primary);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary);
}
.btn-wa {
  background: var(--wa-green);
  border-color: var(--wa-dark);
  color: #fff;
  box-shadow: 4px 4px 0 var(--wa-dark);
}
.btn-wa:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--wa-dark); }

/* ============ Cards risograph ============ */
.card {
  background: var(--surface);
  border: 2px solid var(--primary);
  padding: 1.8rem 1.6rem;
  box-shadow: 5px 5px 0 var(--primary);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--primary);
}
.card h3 { color: var(--primary); margin-bottom: 0.6rem; font-style: normal; }
.card p { color: var(--text-2); font-size: 0.95rem; line-height: 1.65; }
.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.2rem;
  color: var(--accent);
  background: var(--bg);
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.card-icon svg { width: 28px; height: 28px; }

/* Card featured (accent) */
.card--accent {
  background: var(--accent);
  border-color: var(--primary);
}
.card--accent,
.card--accent :where(h1,h2,h3,h4,h5,p,li,a,small,span) { color: var(--surface); }
.card--accent .card-icon {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--surface);
}

/* ============ Tag / badge ============ */
.tag, .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.32em 0.75em;
  font-family: var(--ff-ui);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  border: 1.5px solid var(--primary);
  background: var(--bg);
  color: var(--primary);
  border-radius: 2px;
  white-space: nowrap;
}
.badge--accent  { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.badge--natural { background: var(--accent-2); color: var(--surface); border-color: var(--accent-2); }
.badge--ghost   { background: transparent; }

/* ============ Form ============ */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .form-row.row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-2);
  font-weight: 600;
}
.field input, .field textarea, .field select {
  width: 100%;
  min-width: 0;
  font: inherit;
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  min-height: 50px;
  font-family: var(--ff-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent);
}
.field--ok input, .field--ok textarea { border-color: var(--leaf-deep); }

.form-feedback {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: var(--accent);
  color: var(--surface);
  font-weight: 500;
  border-radius: 2px;
  border: 2px solid var(--primary);
}

/* ============ Modal mentions ============ */
.ml-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ml-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 40, 32, 0.6);
  backdrop-filter: blur(3px);
}
.ml-box {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 4px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem 1.6rem;
  box-shadow: 8px 8px 0 var(--primary);
}
.ml-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1.5px solid var(--primary);
  border-radius: 4px;
  font-size: 1.2rem;
  line-height: 1;
}
.ml-box h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.ml-box h3 { font-size: 0.95rem; font-style: normal; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 1.4rem; margin-bottom: 0.5rem; color: var(--accent); }
.ml-box p { font-size: 0.92rem; color: var(--text-2); line-height: 1.65; }

/* ============ Lightbox galerie ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(20, 18, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lb-image {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 2px solid var(--bg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: var(--bg);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev  { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 12px; top: 50%; transform: translateY(-50%); }
@media (min-width: 720px) {
  .lb-prev { left: 30px; }
  .lb-next { right: 30px; }
}
