/* components.css — boutons, cards, badges, galerie, lightbox, FAB */

/* ========================================
   BOUTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .75rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover {
  background: oklch(42% 0.12 148);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 45%, transparent);
}

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37,211,102,.3);
}
.btn-wa:hover {
  background: #20BA5C;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: .6rem 1.2rem;
}
.btn-ghost:hover { background: var(--accent-soft); }

/* ========================================
   HERO RATING BADGE
   ======================================== */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.92);
  border-radius: 100px;
  padding: 5px 14px 5px 8px;
  text-decoration: none;
  color: var(--text);
  font-size: .82rem;
  font-family: var(--ff-ui);
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(31,53,49,.12);
  transition: box-shadow .2s;
  margin-bottom: 18px;
}
.hero-rating-badge:hover { box-shadow: 0 4px 16px rgba(31,53,49,.18); }
.hero-rating-badge .stars { display: flex; gap: 2px; color: #f59e0b; }
.hero-rating-badge .stars svg { width: 13px; height: 13px; }
.hero-rating-badge strong { color: var(--text); }
.hero-rating-badge span { color: var(--text-mute); }

/* ========================================
   CHIPS / TAGS
   ======================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-soft);
  border-radius: 100px;
  font-size: .76rem;
  font-family: var(--ff-ui);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .01em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ========================================
   CARDS — plain (LAY-2)
   ======================================== */
.c-plain {
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--surface);
  border-radius: var(--r-md);
}

/* CARD AVIS */
.avis-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.avis-card-stars { display: flex; gap: 3px; color: #f59e0b; }
.avis-card-stars svg { width: 14px; height: 14px; }
.avis-card blockquote {
  font-family: var(--ff-body);
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-2);
  font-style: normal;
  flex: 1;
}
.avis-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.avis-card-author {
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}
.avis-card-date {
  font-size: .72rem;
  color: var(--text-mute);
}
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-family: var(--ff-ui);
  color: var(--text-mute);
  background: color-mix(in srgb, var(--text) 6%, transparent);
  padding: 2px 8px;
  border-radius: 100px;
}
.badge-google svg { width: 10px; height: 10px; }

/* ========================================
   GALERIE MASONRY — LAY-2
   ======================================== */
.gal-masonry { column-count: 3; column-gap: 10px; }
.gal-masonry figure {
  break-inside: avoid;
  margin: 0 0 10px;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gal-masonry figure img {
  width: 100%;
  display: block;
  transition: transform .4s var(--ease-out), filter .3s;
}
.gal-masonry figure:hover img {
  transform: scale(1.04);
  filter: brightness(.95);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,20,18,.92);
  z-index: calc(var(--z-modal) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.lb-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.4rem;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-image {
  max-width: min(880px, 100%);
  max-height: 85vh;
  border-radius: var(--r-lg);
  object-fit: contain;
  display: block;
}
.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.5rem;
  transition: background .2s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ========================================
   ABOUT LIST (checks)
   ======================================== */
.about-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-2);
}
.about-list li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234A8B7F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* ABOUT BADGE */
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .8rem;
  font-family: var(--ff-ui);
  font-weight: 500;
  color: var(--accent);
  margin-top: 20px;
}
.about-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

/* ========================================
   STATS STRIP
   ======================================== */
.stats-strip { overflow: hidden; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
}
.stat-item {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 32px);
  text-align: center;
  background: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  color: var(--accent-2);
  line-height: 1;
}
.stat-label {
  font-family: var(--ff-ui);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 500;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.faq-chevron {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s var(--ease-out);
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0; /* fermé par défaut — pattern anti-bug avenir-vert */
  padding: 0;
  transition: max-height .35s var(--ease-out), padding .35s ease;
}
.faq-item.is-open .faq-answer {
  max-height: 400px;
  padding: 0 0 18px;
}
.faq-answer p {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ========================================
   OPEN HOURS BADGE
   ======================================== */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-family: var(--ff-ui);
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 8px;
}
.open-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}
.open-badge--open { background: #dcfce7; color: #16a34a; }
.open-badge--closed { background: #fee2e2; color: #dc2626; }

/* ========================================
   MENTIONS LÉGALES MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31,53,49,.55);
  z-index: var(--z-modal);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--surface);
  border-radius: var(--r-xl);
  max-width: 500px;
  width: 100%;
  padding: clamp(24px,4vw,40px);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(31,53,49,.2);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid; place-items: center;
  font-size: 1.2rem;
  color: var(--text);
}
.modal-close:hover { background: var(--border); }
.modal-box h2 { font-size: 1.3rem; margin-bottom: 16px; }
.modal-box p, .modal-box li {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.modal-box strong { color: var(--text); }

/* ========================================
   FAB — Boutons flottants mobile
   ======================================== */
.fab-group {
  position: fixed;
  bottom: 20px; right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: calc(var(--z-header) - 50);
}
.fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
}
.fab:hover { transform: scale(1.07); box-shadow: 0 6px 20px rgba(0,0,0,.24); }
.fab svg { width: 22px; height: 22px; }
.fab-tel { background: var(--accent); color: #fff; }
.fab-wa  { background: var(--wa-green); color: #fff; }

/* ========================================
   ZONE CARTE
   ======================================== */
.map-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ========================================
   CONTACT CARDS
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(18px,3vw,28px);
  border: 1px solid var(--border);
}
.contact-row {
  display: flex;
  align-items: center; /* PIÈGE #3 */
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: 0; }
.contact-icon {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; }
.contact-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mute);
  font-family: var(--ff-ui);
  display: block;
}
.contact-value {
  font-size: .92rem;
  color: var(--text);
  font-weight: 500;
}

/* Horaires table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.hours-table tr {
  border-bottom: 1px solid var(--border);
}
.hours-table tr:last-child { border-bottom: 0; }
.hours-table td {
  padding: 8px 4px;
  color: var(--text-2);
}
.hours-table td:first-child {
  color: var(--text);
  font-weight: 500;
  font-family: var(--ff-ui);
}
.hours-table tr.is-today td { color: var(--accent); font-weight: 600; }

/* ========================================
   AVIS SINGLE (LAY-2)
   ======================================== */
.avis-single-wrap {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.avis-single-stars { display: flex; justify-content: center; gap: 4px; color: #f59e0b; margin-bottom: 16px; }
.avis-single-stars svg { width: 20px; height: 20px; }
.avis-single-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  line-height: 1.38;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
}
.avis-single-author {
  font-family: var(--ff-ui);
  font-size: .82rem;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.avis-single-author strong { color: var(--text); }
.avis-cards-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

/* ========================================
   SERVICES ALT-ROWS (LAY-2)
   ======================================== */
.svc-alt { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 80px); }
.svc-alt__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.svc-alt__text { }
.svc-alt__eyebrow {
  font-family: var(--ff-ui);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-alt__eyebrow::before {
  content: '';
  width: 20px; height: 1.5px;
  background: var(--accent);
}
.svc-alt__title {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
}
.svc-alt__desc { font-size: .92rem; color: var(--text-2); line-height: 1.7; }
.svc-alt__art {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  display: grid;
  place-items: center;
  color: var(--accent);
  overflow: hidden;
  position: relative;
}
.svc-alt__art-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
}
.svc-alt__art-icon { width: clamp(56px,10vw,80px); height: auto; color: var(--accent); opacity: .85; }
.svc-alt__art-label {
  font-family: var(--ff-display);
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  color: var(--text);
  opacity: .7;
  line-height: 1.3;
}

/* Services additionnels (2 cards compactes) */
.svc-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(32px, 5vw, 56px);
}
.svc-extra-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.svc-extra-icon {
  width: 38px; height: 38px;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.svc-extra-icon svg { width: 18px; height: 18px; }
.svc-extra-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.svc-extra-desc { font-size: .82rem; color: var(--text-mute); line-height: 1.55; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
