/* Composants : boutons, cards, badges, formulaire, lightbox, modal */

/* ===== Boutons ===== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--ff-ui); font-weight: 500; font-size: 0.96rem;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  min-height: 48px;
}
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary{ background: var(--accent); color: #fff !important; }
.btn-primary:hover{ background: var(--surface-deep); color: #fff !important; }
.btn-wa{ background: var(--wa-green); color: #fff !important; }
.btn-wa:hover{ background: #1ebe57; color: #fff !important; }
.btn-call{ background: var(--surface-deep); color: #fff !important; }
.btn-call:hover{ background: var(--accent); color: #fff !important; }
.btn-ghost{
  background: transparent; color: var(--text) !important;
  border: 1.5px solid var(--text);
}
.btn-ghost:hover{ background: var(--text); color: var(--bg) !important; }

/* ===== Pill / Badge ===== */
.pill{
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-radius: 999px; padding: 6px 14px;
  font-family: var(--ff-ui); font-size: 0.82rem; color: var(--surface-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.pill svg{ width: 14px; height: 14px; color: var(--accent); }

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

/* ===== Lightbox galerie ===== */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(15, 25, 23, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-modal);
  padding: 20px;
}
.lightbox img{ max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox button{
  position: absolute; background: rgba(255,255,255,0.12); color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: background var(--t-fast);
}
.lightbox button:hover{ background: rgba(255,255,255,0.22); }
.lb-close{ top: 18px; right: 18px; }
.lb-prev{ top: 50%; left: 18px; transform: translateY(-50%); }
.lb-next{ top: 50%; right: 18px; transform: translateY(-50%); }
@media (max-width: 600px){
  .lb-prev{ left: 12px; top: auto; bottom: 18px; transform: none; }
  .lb-next{ right: 12px; top: auto; bottom: 18px; transform: none; }
}

/* ===== Modal mentions legales ===== */
.ml-modal{
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-modal);
  padding: 20px;
}
.ml-overlay{ position: absolute; inset: 0; background: rgba(15, 25, 23, 0.55); }
.ml-box{
  position: relative; background: var(--bg); color: var(--text);
  max-width: 520px; width: 100%; max-height: 80vh; overflow-y: auto;
  border-radius: 14px; padding: 30px 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.ml-box h2{ font-family: var(--ff-display); font-size: 1.6rem; margin-bottom: 14px; color: var(--surface-deep); }
.ml-box h3{ font-family: var(--ff-display); font-size: 1.05rem; margin: 16px 0 6px; color: var(--surface-deep); }
.ml-box p{ font-size: 0.92rem; color: var(--text-2); margin: 0 0 8px; }
.ml-close{
  position: absolute; top: 12px; right: 12px;
  background: transparent; color: var(--text);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
  cursor: pointer; transition: background var(--t-fast);
}
.ml-close:hover{ background: color-mix(in srgb, var(--text) 8%, transparent); }

/* ===== Formulaire contact ===== */
.contact-form{ display: grid; gap: 14px; }
.field{ display: flex; flex-direction: column; min-width: 0; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
@media (max-width: 560px){ .field-row{ grid-template-columns: 1fr; } }
.field label{ font-family: var(--ff-ui); font-size: 0.82rem; color: rgba(255,255,255,0.78); margin-bottom: 6px; letter-spacing: 0.04em; }
.field input, .field textarea, .field select{
  font-family: var(--ff-ui); font-size: 0.96rem;
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 10px;
  padding: 14px 14px;
  min-height: 48px; width: 100%; min-width: 0;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus{
  outline: 0; border-color: var(--accent-on-dark); background: rgba(255,255,255,0.10);
}
.field input::placeholder, .field textarea::placeholder{ color: rgba(255,255,255,0.5); }
.contact-form .form-submit{ margin-top: 6px; }
.form-msg{ font-size: 0.88rem; color: var(--accent-on-dark); min-height: 1.4em; }

/* ===== Etoiles ===== */
.stars{ display: inline-flex; gap: 2px; color: #E8B945; }
.stars svg{ width: 18px; height: 18px; }

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

/* ===== Dispo dot ===== */
.dispo-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #2DAA6C; display: inline-block;
  box-shadow: 0 0 0 0 rgba(45, 170, 108, 0.6);
  animation: dispo-pulse 2s infinite;
}
.dispo-dot.is-closed{ background: #C97A4E; animation: none; }
@keyframes dispo-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(45, 170, 108, 0.5); }
  70%{ box-shadow: 0 0 0 8px rgba(45, 170, 108, 0); }
  100%{ box-shadow: 0 0 0 0 rgba(45, 170, 108, 0); }
}
@media (prefers-reduced-motion: reduce){ .dispo-dot{ animation: none; } }
