/* components.css — boutons, cards, badges, chips */

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .8rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,211,102,.3);
}
.btn-wa:hover { box-shadow: 0 4px 14px rgba(37,211,102,.45); }

/* Bouton blanc (sur fond sombre) */
.btn-white {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}
.btn-white:hover { background: var(--bg); }

/* ===== CARDS ===== */

/* Card stripe (LAY-5 — filet accent gauche) */
.c-stripe {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--text) 3%, var(--bg));
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 22px 24px;
}

/* Card line */
.c-line {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  background: transparent;
}

/* Card plain */
.c-plain {
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border-radius: var(--r-lg);
  padding: 24px;
}

/* Card row (icone + texte) */
.c-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}
.c-row__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== CHIPS / BADGES ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .35rem .9rem;
  border-radius: 50px;
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: color-mix(in srgb, var(--accent) 11%, var(--bg));
  color: var(--accent);
}
.chip--dark {
  background: var(--accent);
  color: #fff;
}

/* Badge Google avis */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--text-mute);
  font-family: var(--ff-ui);
}
.badge-google svg { width: 14px; height: 14px; }

/* Étoiles */
.stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
}
.stars svg { width: 16px; height: 16px; }

/* Open badge */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 700;
}
.open-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse-dot 2s infinite;
}
.open-dot.closed { background: #EF4444; animation: none; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ===== AVIS CARD ===== */
.avis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.avis-card blockquote {
  font-size: .93rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  max-width: 100%;
}
.avis-card blockquote::before { content: "\201C"; }
.avis-card blockquote::after  { content: "\201D"; }
.avis-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.avis-author {
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}
.avis-date {
  font-size: .75rem;
  color: var(--text-mute);
  font-family: var(--ff-ui);
}

/* ===== FAQ ACCORDION ===== */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform var(--t-base);
  margin-top: -4px;
}
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(-135deg); margin-top: 4px; }
.faq-answer {
  padding: 0 0 18px;
  font-size: .93rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 68ch;
}
.faq-answer[hidden] { display: none !important; }

/* ===== LIGHTBOX GALERIE ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 100);
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-image {
  max-width: 90vw;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev  { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 12px; top: 50%; transform: translateY(-50%); }

/* ===== MENTIONS LÉGALES MODAL ===== */
.ml-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ml-modal[hidden] { display: none !important; }
.ml-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.ml-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
}
.ml-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 0;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ml-box h2 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-right: 40px;
}
.ml-box h3 {
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 20px 0 6px;
}
.ml-box p { font-size: .88rem; color: var(--text-2); line-height: 1.6; max-width: 100%; }
