/* Boutons, cards, chips, formulaire, lightbox, modal */

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.5rem;
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  min-height: 48px;
  line-height: 1;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

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

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: var(--bg);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

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

/* Chips / pills (USPs) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chip svg { width: 14px; height: 14px; }

/* Cards : stripe (LAY-5 imposed) */
.c-stripe {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 26px 24px 24px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.c-stripe:hover {
  transform: translateY(-3px);
  background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  .c-stripe { transition: none; }
  .c-stripe:hover { transform: none; }
}

/* Service card spe */
.svc-num {
  font-family: var(--ff-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.svc-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.2;
}

.svc-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.55;
}

/* Formulaire */
.form {
  display: grid;
  gap: 14px;
}

.field { display: grid; gap: 6px; min-width: 0; }

.field label {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease);
  min-height: 48px;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  font-size: 0.92rem;
  color: var(--accent-2);
  min-height: 1.2em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 22, 0.94);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r-md);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease);
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.24); }

.lb-close { top: 18px; right: 18px; }
.lb-prev  { top: 50%; left: 16px; transform: translateY(-50%); }
.lb-next  { top: 50%; right: 16px; transform: translateY(-50%); }

/* Modal mentions */
.ml-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ml-box {
  background: var(--bg);
  color: var(--text);
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  border-radius: var(--r-lg);
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.ml-box h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
  color: var(--text);
}

.ml-box p, .ml-box li { font-size: 0.92rem; line-height: 1.55; color: var(--text-2); }

.ml-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
  padding: 4px;
}

.ml-close:hover { color: var(--text); }

/* Open badge (Ouvert maintenant) */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(46, 165, 110, 0.14);
  color: var(--open-green);
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: 0.84rem;
  font-weight: 600;
}

.open-badge.is-closed {
  background: rgba(180, 65, 58, 0.14);
  color: var(--closed-red);
}

.open-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(46, 165, 110, 0.14);
  animation: pulse 2s ease-in-out infinite;
}

.open-badge.is-closed .dot {
  box-shadow: 0 0 0 4px rgba(180, 65, 58, 0.14);
  animation: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .open-badge .dot { animation: none; }
}

/* FAB mobile */
.fab-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(31, 91, 78, 0.34);
  text-decoration: none;
}

.fab-call svg { width: 24px; height: 24px; }

@media (min-width: 769px) { .fab-call { display: none; } }
