/* components.css — boutons, badges, etoiles, modal, lightbox */

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

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: oklch(40% 0.13 145);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 58, 42, 0.22);
}
.btn-wa {
  background: var(--wa-green);
  color: #FFFFFF;
}
.btn-wa:hover {
  background: #1FB956;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Badge note google */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--ff-ui);
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform var(--t-fast);
}
.rating-badge:hover {
  transform: translateY(-1px);
  color: var(--text);
}
.rating-badge strong { color: var(--text); font-weight: 600; }
.rating-badge .stars { display: inline-flex; gap: 2px; color: var(--gold); }
.rating-badge .stars svg { width: 14px; height: 14px; fill: currentColor; }
.rating-badge .meta { color: var(--text-2); }

/* USP pills hero */
.usp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.usp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 100px;
  font-family: var(--ff-ui);
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 500;
}
.usp-pill svg { width: 14px; height: 14px; }

/* Modal mentions legales */
.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(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.ml-box {
  position: relative;
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 36px 28px 28px;
  max-width: 520px;
  width: 100%;
  max-height: 86dvh;
  overflow-y: auto;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}
.ml-box h2 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.ml-box h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  margin: 18px 0 6px;
  color: var(--text);
}
.ml-box p { color: var(--text-2); font-size: 0.92rem; line-height: 1.65; }
.ml-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 50%;
}
.ml-close:hover { background: var(--bg-alt); color: var(--text); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(20, 20, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lb-image {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.lb-close { top: 18px; right: 18px; font-size: 1.3rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(255, 255, 255, 0.22); color: #FFFFFF; }

/* Cards row (LAY-4 card=row) */
.c-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 0;
}
.c-row__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.c-row__icon svg { width: 24px; height: 24px; }

/* Stars (avis) */
.stars-row {
  display: inline-flex;
  gap: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}
.stars-row svg { width: 16px; height: 16px; fill: currentColor; }
