/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  min-height: 48px;
  border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); }
.btn--wa { background: var(--wa-green); color: #fff; }
.btn--wa:hover { background: var(--wa-green-dark); }
.btn--quiet { background: transparent; color: var(--text); padding: 12px 18px; min-height: 44px; }
.btn--quiet:hover { color: var(--accent-2); }

/* Cards (LAY-1, card=line) */
.c-line {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  background: rgba(255,255,255,0.4);
  transition: border-color var(--t-med), transform var(--t-med);
}
.c-line:hover { border-color: var(--accent); transform: translateY(-3px); }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Stat badge */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
}
.stat-pill svg { width: 16px; height: 16px; color: var(--accent-2); }

/* Form */
.form { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .field--full { grid-column: 1 / -1; } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.78rem; font-weight: 500; color: var(--text-2); letter-spacing: 0.04em; text-transform: uppercase; }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--ff-body);
  color: var(--text);
  transition: border-color var(--t-fast), background var(--t-fast);
  min-height: 50px;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.field--full { grid-column: 1 / -1; }
.form__submit { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .form__submit { flex-direction: row; align-items: center; justify-content: space-between; } }
.form__legal { font-size: 0.74rem; color: var(--text-mute); line-height: 1.5; max-width: 42ch; }
.form__msg { font-size: 0.9rem; padding: 12px 16px; border-radius: 6px; display: none; }
.form__msg.is-ok { display: block; background: rgba(74,139,127,0.12); color: #2F6B5F; }
.form__msg.is-err { display: block; background: rgba(176,0,32,0.08); color: var(--error); }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal__overlay { position: absolute; inset: 0; background: rgba(48,48,48,0.55); backdrop-filter: blur(2px); }
.modal__box {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  transition: background var(--t-fast);
}
.modal__close:hover { background: var(--accent-soft); color: var(--text); }
.modal__box h2 { font-size: 1.4rem; margin-bottom: 16px; }
.modal__box h3 { font-size: 0.92rem; margin: 20px 0 6px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); font-family: var(--ff-body); font-weight: 600; }
.modal__box p { font-size: 0.9rem; line-height: 1.65; color: var(--text-2); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,18,16,0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-modal);
  padding: 20px;
}
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lb-btn {
  position: absolute;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: grid; place-items: center;
  transition: background var(--t-fast);
  font-size: 1.4rem;
}
.lb-btn:hover { background: rgba(255,255,255,0.22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-btn { width: 44px; height: 44px; }
}
