/* COMPONENTS — boutons, badges, chips, cards */

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  min-height: 50px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

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

.btn-ghost-inv {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-inv:hover { background: rgba(255,255,255,0.12); color: #fff; }

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

/* CTA hero mobile : empilés pleine largeur (PIÈGE PROD #2) */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.hero-cta .btn { width: 100%; justify-content: center; }

/* ===== ÉTOILES ===== */
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars svg { width: 16px; height: 16px; fill: #F5A623; }

/* ===== BADGE GOOGLE ===== */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== CHIPS ===== */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chip {
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.chip--solid {
  background: var(--accent);
  color: #fff;
}
.chip--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-2);
}

/* ===== HORAIRES TABLE ===== */
.horaires-table {
  width: 100%;
  border-collapse: collapse;
}
.horaires-table tr { border-bottom: 1px solid var(--border); }
.horaires-table td {
  font-size: 0.88rem;
  padding: 8px 4px;
  color: var(--text-2);
}
.horaires-table td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 45%;
}
.horaires-table tr.is-today td { color: var(--accent); font-weight: 600; }
.horaires-table tr.is-closed td { color: var(--text-mute); }

/* ===== DISPO DOT ===== */
.dispo-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 12px;
}
.dispo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
.dispo-dot.closed { background: #e53935; animation: none; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76,175,80,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(76,175,80,0); }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-image {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  padding: 12px;
  line-height: 1;
  transition: opacity 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 0.7; }
.lb-close { top: 16px; right: 20px; font-size: 1.8rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; }

/* ===== MODAL MENTIONS LÉGALES ===== */
.ml-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) - 1);
  background: rgba(0,0,0,0.5);
}
.ml-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-modal);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.ml-box h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.ml-box p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
}
.ml-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-mute);
  line-height: 1;
}
