/* Boutons, cards, badges, formulaire, lightbox, modal */

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s, color .2s;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--bg); transform: translateY(-1px); }
.btn-wa {
  background: var(--wa-green);
  color: #fff;
}
.btn-wa:hover { background: #128c7e; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(18,140,126,.6); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }

/* Badges + Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--ff-body);
  font-size: 0.77rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Card "plain" (preset impose) */
.c-plain {
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--border);
}

/* Stat strip */
.stats-strip {
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}
.stat-item {
  position: relative;
  padding: 0 12px;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .stat-item + .stat-item { border-left: 1px solid var(--border); }
}
.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
  font-feature-settings: "lnum";
}
.stat-num em { font-style: italic; }
.stat-label {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-2);
}

/* USPs hero pastilles */
.usps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.usp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, white);
  color: var(--text-2);
}
.usp::before {
  content: ""; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}

/* Hero rating badge */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 65%, white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  margin-top: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.hero-rating-badge:hover { transform: translateY(-1px); }
.hero-rating-badge strong { font-weight: 600; font-family: var(--ff-display); font-size: 1rem; }
.hero-rating-badge .stars { display: inline-flex; gap: 1px; color: #d4a017; }
.hero-rating-badge .stars svg { width: 14px; height: 14px; }
.hero-rating-badge .meta { color: var(--text-2); }

/* Formulaire contact */
.contact-form {
  display: grid;
  gap: 14px;
  max-width: 540px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--text-2);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg) 60%, white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.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) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-msg {
  font-size: 0.92rem;
  color: var(--accent);
  min-height: 22px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(15, 26, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none !important; }
.lb-image { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }
.lb-close { top: 16px; right: 16px; }
.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: 12px; }
  .lb-next { right: 12px; }
}

/* Modal mentions */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none !important; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 24, 0.55);
}
.modal-box {
  position: relative;
  background: var(--bg);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-card);
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: grid; place-items: center;
}
.modal-box h2 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.modal-box p { font-size: 0.95rem; color: var(--text-2); }
.modal-box strong { color: var(--text); }
