/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 80%, #000); color: #fff; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: #fff; color: var(--surface-dark); }

.btn-wa { background: var(--wa-green); color: #fff; }
.btn-wa:hover { background: color-mix(in srgb, var(--wa-green) 80%, #000); color: #fff; }

.btn-block { width: 100%; }

/* ===== CHIPS ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  font-weight: 500;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.chip--solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip--outline { background: transparent; border-color: var(--border); color: var(--text-2); }

/* ===== CARD ROW (LAY-4 cards=row) ===== */
.c-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
}
.c-row__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--accent);
  flex-shrink: 0;
}
.c-row__icon svg { width: 24px; height: 24px; }

/* ===== BADGE / RATING ===== */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, var(--accent));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  font-family: var(--ff-ui);
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
}
.rating-badge:hover { color: var(--text); background: var(--surface); }
.rating-badge .stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.rating-badge .stars svg { width: 14px; height: 14px; color: #D9A93C; }
.rating-badge strong { color: var(--text); font-weight: 600; font-family: var(--ff-display); font-size: 0.95rem; }
.rating-badge span { color: var(--text-2); }

/* badge dark (sur photo voilee hero immersif) */
.rating-badge--on-dark {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--surface-dark);
}
.rating-badge--on-dark strong { color: var(--surface-dark); }
.rating-badge--on-dark span { color: color-mix(in srgb, var(--surface-dark) 70%, transparent); }

/* ===== STATUS DOT ===== */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: 0.9rem;
  color: var(--text-2);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46B07A;
  position: relative;
  flex-shrink: 0;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #46B07A;
  opacity: 0.4;
  animation: dot-pulse 2.2s ease-out infinite;
}
.status-dot.is-closed { background: #BB504A; }
.status-dot.is-closed::after { border-color: #BB504A; }
@keyframes dot-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot::after { animation: none; }
}

/* ===== FORM ===== */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }   /* PIEGE PROD #10b */
.field label {
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%;
  min-width: 0;
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; font-family: var(--ff-body); }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

/* ===== MODAL MENTIONS ===== */
.ml-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ml-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 25, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.ml-box {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  max-height: 80vh;
  overflow-y: auto;
}
.ml-box h2 { margin-bottom: 14px; }
.ml-box p { margin-bottom: 10px; font-size: 0.95rem; }
.ml-box strong { color: var(--text); }
.ml-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--text);
}
.ml-close:hover { background: var(--accent-soft); color: var(--accent); }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(15, 27, 25, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lb-image {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: grid;
  place-items: center;
  border: 0;
  font-size: 1.4rem;
  font-family: var(--ff-display);
}
.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,0.24); color: #fff; }
@media (max-width: 480px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: 16px; } .lb-next { right: 70px; }
  .lb-close { right: 16px; }
}
