/* Boutons, cards, composants — jardinier-proprete-du-jardin */

/* ─── BOUTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-2); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-soft);
}

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

.btn svg { flex-shrink: 0; }

/* ─── CARD STRIPE (imposée par vecteur) ─── */
.c-stripe {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--text) 3%, var(--bg));
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 22px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.c-stripe:hover {
  border-color: var(--accent-2);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 10%, transparent);
}

.c-stripe .card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  color: var(--accent);
  margin-bottom: 14px;
}

.c-stripe .card-title {
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.c-stripe .card-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── STARS (avis) ─── */
.stars {
  display: flex;
  gap: 2px;
  color: var(--accent-or);
}

/* ─── BADGE GOOGLE ─── */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-mute);
  font-family: var(--ff-ui);
}

/* ─── CHIPS / TAGS ─── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--ff-ui);
  letter-spacing: 0.02em;
}

/* ─── OPEN BADGE (statut ouvert/fermé) ─── */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-family: var(--ff-ui);
  font-weight: 500;
}

.open-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.open-badge.is-open .dot {
  background: #22c55e;
  animation: dot-pulse 2s ease-in-out infinite;
}

.open-badge.is-closed .dot { background: #ef4444; }
.open-badge.is-open  { color: #22c55e; }
.open-badge.is-closed { color: var(--text-mute); }

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

@media (prefers-reduced-motion: reduce) {
  .open-badge.is-open .dot { animation: none; }
}

/* ─── MODAL MENTIONS LÉGALES ─── */
#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.5);
  cursor: pointer;
}

.ml-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ml-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--text-mute);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.ml-close:hover { color: var(--text); background: var(--bg-alt); }

.ml-box h2 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-right: 40px;
}

.ml-box h3 {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 20px 0 6px;
}

.ml-box h3:first-of-type { margin-top: 0; }

.ml-box p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}
