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

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-md);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  white-space: nowrap;
  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: oklch(48% 0.079 172);
  border-color: oklch(48% 0.079 172);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 38%, transparent);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}
.btn-wa:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

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

.btn-sm {
  font-size: 0.84rem;
  padding: 0.55rem 1.1rem;
  min-height: 40px;
}

/* Téléphone inline dans footer/contact */
.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.tel-link:hover { color: var(--accent); }

/* ===== CARD RISOGRAPH (LAY-3) ===== */
.c-riso {
  background: var(--surface);
  border: 1.5px solid var(--text);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 5px 5px 0 var(--accent);
  transition: transform .2s, box-shadow .2s;
}
.c-riso:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .c-riso { transition: none; }
  .c-riso:hover { transform: none; }
}

/* Variante sombre de la card (section stats ou accent) */
.c-riso--dark {
  background: var(--text);
  border-color: var(--accent-2);
  box-shadow: 5px 5px 0 var(--accent-2);
  color: #fff;
}
.c-riso--dark:hover { box-shadow: 7px 7px 0 var(--accent-2); }
.c-riso--dark h3,
.c-riso--dark p,
.c-riso--dark span { color: rgba(255,255,255,0.9); }

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

/* ===== ICONE + TEXTE (align-items:center OBLIGATOIRE) ===== */
.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-box svg { width: 22px; height: 22px; }

/* ===== BADGE GOOGLE RATING ===== */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.92);
  border-radius: 24px;
  padding: 6px 14px;
  font-family: var(--ff-ui);
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.hero-rating-badge:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.hero-rating-badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero-rating-badge strong { font-weight: 700; color: var(--text); }
.hero-rating-badge span { color: var(--text-2); }

/* Stars SVG */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #F4B942;
}
.stars svg { width: 16px; height: 16px; }

/* Badge Google inline (avis card) */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-mute);
  background: color-mix(in srgb, var(--text) 5%, var(--bg));
  border-radius: 20px;
  padding: 3px 8px;
}
.badge-google svg { width: 14px; height: 14px; }

/* Open/closed badge */
.open-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.open-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-open 2s ease-in-out infinite;
}
.open-dot.closed { color: var(--text-mute); }
.open-dot.closed::before {
  background: #d44;
  animation: none;
}
@keyframes pulse-open {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .open-dot::before { animation: none; }
}

/* ===== FORMULAIRE ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.field input,
.field textarea,
.field select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.7rem 1rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  min-height: 48px;
  appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(15, 25, 20, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lb-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  display: block;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 0;
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .2s;
  backdrop-filter: blur(4px);
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(255,255,255,0.2); }
.lb-close { top: 16px; right: 16px; font-size: 1.2rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ===== MODAL MENTIONS LEGALES ===== */
.ml-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ml-box {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.ml-box h2 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text);
}
.ml-box p {
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 10px;
}
.ml-box p:last-child { margin-bottom: 0; }
.ml-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-mute);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color .2s;
}
.ml-close:hover { color: var(--text); }

/* Chips / tags (zone d'intervention) */
.chip {
  display: inline-block;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.83rem;
  font-weight: 500;
  font-family: var(--ff-ui);
}

/* Section title avec eyebrow */
.section-eyebrow {
  font-family: var(--ff-ui);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}
