/* components.css — boutons, cards, chips, formulaire, modal, lightbox */

/* BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-weight: 500;
  font-size: .98rem;
  letter-spacing: 0;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  border: 1px solid transparent;
  min-height: 48px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: var(--on-dark);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}
.btn-wa:hover { background: #1FAB54; border-color: #1FAB54; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-light {
  background: rgba(255,255,255,0.1);
  color: var(--on-dark);
  border-color: rgba(255,255,255,0.2);
}
.btn-light:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.32);
}

.btn-small {
  padding: 10px 18px;
  font-size: .88rem;
  min-height: 40px;
}

/* CHIPS / TAGS */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: .78rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-weight: 500;
  letter-spacing: 0;
}
.chip-strong {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg));
  color: var(--accent-deep);
}

/* CARDS — c-plain (default LAY-2) */
.c-plain {
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border-radius: var(--r-lg);
  padding: 26px;
  border: 1px solid var(--border);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.c-plain:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: 0 14px 30px -16px rgba(46,40,32,0.18);
}

/* MODAL — mentions legales */
.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(20, 17, 13, 0.62);
  backdrop-filter: blur(2px);
}
.modal-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
  max-width: 540px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.4);
  border: 1px solid var(--border);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.modal-box h2 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-right: 28px;
}
.modal-box h3 {
  font-family: var(--ff-ui);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  margin: 18px 0 8px;
  font-weight: 500;
}
.modal-box p {
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 8px;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 8, 0.94);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lb-image {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: background var(--t-fast);
  border: 1px solid rgba(255,255,255,0.15);
}
.lb-close:hover, .lb-prev:hover, .lb-next: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 (min-width: 768px) {
  .lb-close { top: 28px; right: 28px; }
  .lb-prev { left: 28px; }
  .lb-next { right: 28px; }
}

/* FORM CONTACT */
.contact-form {
  display: grid;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.form-field label {
  font-family: var(--ff-ui);
  font-size: .82rem;
  color: var(--on-dark-mute);
  font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--on-dark);
  font-family: var(--ff-body);
  font-size: 1rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent-soft);
  background: rgba(255,255,255,0.1);
  outline: 0;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(242, 237, 223, 0.55);
}
.form-field select option { color: #2E2820; background: #fff; }
.form-submit { margin-top: 6px; justify-content: center; }
