/* components.css — boutons, badges, cards, galerie, formulaire */

/* ======== BOUTONS ======== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn svg { flex-shrink: 0; }

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 12px oklch(45% 0.12 145 / 0.28);
}

.btn-primary:hover {
  background: oklch(40% 0.12 145);
  box-shadow: 0 5px 18px oklch(45% 0.12 145 / 0.38);
}

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

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

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 3px 12px rgba(37,211,102,0.3);
}

.btn-wa:hover { background: #1ebe5c; box-shadow: 0 5px 18px rgba(37,211,102,0.4); }

.btn-wa-outline {
  background: transparent;
  color: var(--wa-dark);
  border: 2px solid var(--wa-green);
}

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

/* Groupe de boutons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ======== BADGE GOOGLE ======== */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.92);
  border-radius: 50px;
  font-family: var(--ff-ui);
  font-size: 0.84rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s;
  margin-bottom: 14px;
}

.hero-rating-badge:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.18); }

.hero-rating-badge .stars { display: flex; gap: 2px; }
.hero-rating-badge .stars svg { width: 13px; height: 13px; fill: #F59E0B; }
.hero-rating-badge strong { color: #1a1a1a; }
.hero-rating-badge span { color: #666; }

/* Badge Google (icône G) */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: oklch(96% 0.01 145);
  border-radius: 4px;
}

.badge-google svg { width: 12px; height: 12px; }

/* ======== STATS STRIP ======== */
.stats-strip {
  background: var(--accent);
  color: #fff;
  padding: clamp(32px, 4vw, 48px) 0;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

/* Séparateur entre stats (desktop) */
.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 24px;
}

/* ======== SERVICE LIST (LAY-4 list-sep) ======== */
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.svc-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(20px, 3vw, 28px) 0;
  border-bottom: 1px solid var(--border);
}

.svc-item:last-child { border-bottom: 0; }

.svc-num {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  min-width: 42px;
  text-align: right;
}

.svc-body { flex: 1; }

.svc-title {
  font-family: var(--ff-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.svc-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ======== CARDS AVIS (LAY-4 carousel) ======== */
.avis-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.avis-carousel::-webkit-scrollbar { height: 4px; }
.avis-carousel::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 2px; }

.avis-card {
  flex: 0 0 clamp(280px, 80vw, 340px);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 28px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
}

.avis-stars { display: flex; gap: 3px; }
.avis-stars svg { width: 16px; height: 16px; fill: #F59E0B; }

.avis-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  flex: 1;
}

.avis-text::before { content: "\201C"; }
.avis-text::after  { content: "\201D"; }

.avis-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.avis-author-name {
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.avis-date {
  font-size: 0.75rem;
  color: var(--text-mute);
}

.avis-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Lien voir tous les avis */
.avis-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 16px;
}

/* ======== GALERIE SLIDER (LAY-4 slider) ======== */
.gal-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.gal-slider::-webkit-scrollbar { height: 4px; }
.gal-slider::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 2px; }

.gal-slide {
  flex: 0 0 clamp(260px, 72vw, 400px);
  scroll-snap-align: start;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
}

.gal-slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gal-slide:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.lb-close:hover { background: rgba(255,255,255,0.28); }

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.28); }

.lb-image {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-md);
}

/* ======== FAQ ACCORDION ======== */
.faq-list { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 4px;
  font-family: var(--ff-ui);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 12px;
}

.faq-trigger:hover { color: var(--accent); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-2);
  padding: 0 4px 18px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.2s ease;
}

.faq-answer.open {
  max-height: 400px;
  padding-bottom: 18px;
}

/* ======== FORMULAIRE CONTACT ======== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* piège prod #10 — select overflow */
}

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

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0; /* piège prod #10 */
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--ff-ui);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

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

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

.form-success {
  display: none;
  background: oklch(95% 0.04 145);
  border: 1px solid var(--accent-2);
  color: var(--accent);
  border-radius: var(--r-md);
  padding: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

/* ======== ZONE D'INTERVENTION ======== */
.zone-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.zone-info-title {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.zone-chip {
  padding: 5px 12px;
  background: oklch(95% 0.04 145);
  border: 1px solid oklch(85% 0.06 145);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.horaires-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.horaires-table tr { border-bottom: 1px solid var(--border); }
.horaires-table td { padding: 8px 4px; }
.horaires-table td:last-child { text-align: right; font-weight: 600; }
.horaires-table tr.is-today { background: oklch(95% 0.04 145); color: var(--accent); font-weight: 700; border-radius: 6px; }
.horaires-table tr.is-closed td:last-child { color: var(--text-mute); font-weight: 400; }

.map-wrapper {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  padding-top: 56.25%;
  background: var(--bg-alt);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Badge ouvert/fermé */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.open-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.open-badge.is-open { background: oklch(96% 0.05 145); color: oklch(38% 0.12 145); }
.open-badge.is-open .dot { background: #22C55E; }
.open-badge.is-closed { background: oklch(96% 0.02 25); color: oklch(40% 0.08 25); }
.open-badge.is-closed .dot { background: #EF4444; }
