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

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--ff-ui);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  min-height: 48px;
  text-align: center;
  line-height: 1.15;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-outline {
  background: transparent;
  color: var(--accent-deep);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: var(--accent);
}

.btn-wa {
  background: #1FA855;
  color: #fff;
}
.btn-wa:hover { background: #178545; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
}

.btn-sm {
  min-height: 40px;
  padding: 10px 16px;
  font-size: .88rem;
}

/* ===== CHIPS ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px;
}

/* ===== BADGES ===== */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: .78rem;
  color: var(--text-mute);
}
.badge-google svg { width: 14px; height: 14px; }

/* USPs / pastilles hero */
.usp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.usp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: .85rem;
  color: var(--text-2);
}
.usp::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== CARD STRIPE (LAY-5) ===== */
.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: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.c-stripe:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -12px rgba(46, 40, 32, 0.18);
}
.c-stripe__num {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.c-stripe__title {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  margin: 0;
  color: var(--text);
}
.c-stripe__body {
  color: var(--text-2);
  font-size: .94rem;
  line-height: 1.6;
  margin: 0;
}
.c-stripe__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.c-stripe__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: .88rem;
  color: var(--text-2);
}
.c-stripe__list li::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
  margin-top: 11px;
  flex-shrink: 0;
}

/* ===== Formulaire ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field-error {
  color: #C7341B;
  font-family: var(--ff-ui);
  font-size: .82rem;
  display: none;
}
.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error textarea { border-color: #C7341B; }

.form-msg {
  display: none;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: .92rem;
  margin-top: 12px;
}
.form-msg.is-ok {
  display: block;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ===== FAB mobile (bouton Appeler colle en bas) ===== */
.fab {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .92rem;
  box-shadow: 0 10px 30px -8px rgba(46, 91, 62, 0.45);
  text-decoration: none;
}
.fab svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
  .fab { display: none; }
}

/* ===== 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(20, 16, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ml-box {
  position: relative;
  background: var(--bg);
  color: var(--text);
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--r-lg);
  padding: 32px 26px 28px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4);
}
.ml-box h2 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.ml-box h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  margin: 18px 0 6px;
}
.ml-box p {
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.6;
}
.ml-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
}
.ml-close:hover { background: color-mix(in srgb, var(--text) 12%, var(--bg)); }

/* ===== Lightbox galerie ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(15, 12, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 241, 234, 0.18);
  color: #fff;
  font-size: 1.8rem;
  border: 1px solid rgba(245, 241, 234, 0.24);
}
.lb-btn:hover { background: rgba(245, 241, 234, 0.3); }
.lb-close { top: 16px; right: 16px; font-size: 1.5rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
