/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 1px 0 oklch(35% 0.10 145) inset, 0 6px 18px -8px oklch(35% 0.10 145 / 0.35);
}
.btn-primary:hover { background: var(--accent-deep); color: var(--bg); transform: translateY(-1px); }
.btn-wa {
  background: var(--wa);
  color: white;
  box-shadow: 0 1px 0 oklch(48% 0.12 152) inset;
}
.btn-wa:hover { background: oklch(56% 0.16 152); color: white; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.78rem;
  border-radius: var(--r-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.chip-accent {
  background: var(--accent);
  color: var(--bg);
  border-color: transparent;
}
.chip svg { width: 12px; height: 12px; }

/* Card de base */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}

/* Photo frame */
.photo-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  padding: 10px 10px 14px;
  box-shadow:
    0 1px 0 var(--border) inset,
    0 22px 50px -28px oklch(22% 0.04 145 / 0.45),
    0 6px 18px -10px oklch(22% 0.04 145 / 0.22);
  border-radius: 3px;
}
.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
  border-radius: 2px;
}
.frame-tag {
  position: absolute;
  bottom: 0;
  left: 14px;
  transform: translateY(50%);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  font-family: var(--ff-ui);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}
.frame-tag em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
  margin-right: 4px;
  font-size: 0.78rem;
}
.photo-frame.is-tilt-l { transform: rotate(-0.5deg); }
.photo-frame.is-tilt-r { transform: rotate(0.6deg); }

/* Formulaire */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-md);
  font: inherit;
  color: var(--ink);
  transition: border-color var(--t-fast);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-status {
  margin-top: 0.6rem;
  font-family: var(--ff-ui);
  font-size: 0.88rem;
  color: var(--success);
}
.form-status.is-error { color: var(--danger); }

/* Modal mentions */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: oklch(22% 0.02 145 / 0.55);
  backdrop-filter: blur(3px);
}
.modal-box {
  position: relative;
  background: var(--bg);
  border-radius: var(--r-lg);
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: 0 30px 60px -20px oklch(22% 0.04 145 / 0.4);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}
.modal-close:hover { background: var(--bg-alt); }
.modal-box h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
.modal-box .ml-block { margin-bottom: 1rem; }
.modal-box .ml-block strong {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.modal-box .ml-block p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: oklch(15% 0.015 145 / 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lb-image {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px -20px black;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: oklch(100% 0 0 / 0.92);
  color: var(--ink);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); color: white; }
