/* components.css — boutons, cards, formulaire, modal, lightbox, badges */

/* BOUTONS */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--ff-ui);
  font-size: .98rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
  text-align: center;
  line-height: 1.1;
}
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover{ transform: translateY(-1px); }

.btn-primary{ background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover{ background: color-mix(in srgb, var(--accent) 84%, #000); }

.btn-wa{ background: var(--wa-green); color: #fff; border-color: var(--wa-green); }
.btn-wa:hover{ background: color-mix(in srgb, var(--wa-green) 85%, #000); }

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

.btn-ghost-light{ background: transparent; color: #F4F1E9; border-color: #F4F1E9; }
.btn-ghost-light:hover{ background: #F4F1E9; color: var(--surface-deep); }

/* CARDS LAY-6 = radius-asym */
.c-asym{
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border-radius: 22px 4px 22px 4px;
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.c-asym:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(46,40,32,.08);
}
.c-asym--lead{
  background: var(--surface-deep);
  color: #F4F1E9;
  border-radius: 22px 4px 22px 4px;
}
.c-asym--lead :where(h3,h4,p,li,span,strong){ color: inherit; }

/* MODAL MENTIONS LEGALES */
.modal{
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(32,28,22,.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal-box{
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  max-width: 520px;
  width: 100%;
  max-height: 86dvh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,.32);
}
.modal-close{
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  transition: background .2s;
}
.modal-close:hover{ background: var(--bg-alt); }
.modal-box h2{ font-family: var(--ff-display); font-size: 1.6rem; margin: 0 0 18px; }
.modal-box h3{ font-family: var(--ff-display); font-size: 1.02rem; margin: 18px 0 6px; color: var(--accent); }
.modal-box p, .modal-box li{ font-size: .94rem; color: var(--text-2); line-height: 1.55; }

/* LIGHTBOX GALERIE */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,.92);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lb-image{ max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lb-close, .lb-prev, .lb-next{
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem;
  font-family: var(--ff-ui);
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover{ background: rgba(255,255,255,.24); }
.lb-close{ top: 18px; right: 18px; }
.lb-prev{ left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next{ right: 14px; top: 50%; transform: translateY(-50%); }

/* CHIPS / BADGES */
.chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--ff-ui);
  font-size: .82rem;
  color: var(--text-2);
  background: transparent;
}
.chip--solid{ background: var(--accent); color: #fff; border-color: var(--accent); }
.chip--soft{ background: var(--accent-soft); color: var(--accent); border-color: transparent; }

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

/* FORMULAIRE */
.field{ display: flex; flex-direction: column; min-width: 0; }
.field label{ font-family: var(--ff-ui); font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input, .field textarea, .field select{
  font: inherit;
  font-family: var(--ff-ui);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  min-width: 0;
  min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea{ resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-row-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .form-row-2 { grid-template-columns: 1fr; } }

/* STARS SVG */
.stars{ display: inline-flex; gap: 2px; color: #D6A92F; }
.stars svg{ width: 18px; height: 18px; }
