/* Composants — boutons, badges, cards, lightbox */

/* ─── BOUTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, black); border-color: color-mix(in srgb, var(--accent) 85%, black); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 30%, transparent);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}
.btn-wa:hover { background: color-mix(in srgb, var(--wa-green) 85%, black); border-color: color-mix(in srgb, var(--wa-green) 85%, black); color: #fff; }

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

/* ─── GALERIE MASONRY ────────────────────────────────────── */
.gal-masonry {
  column-count: 3;
  column-gap: 12px;
}
.gal-masonry figure {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
}
.gal-masonry img {
  width: 100%;
  display: block;
  border-radius: var(--r-md);
  transition: transform .35s ease, filter .35s ease;
}
.gal-masonry figure:hover img { transform: scale(1.04); filter: brightness(0.95); }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0,0,0,.9);
  display: grid;
  place-items: center;
}
.lb-image {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  transition: background var(--tr-fast);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px 2px 6px;
  color: var(--text-mute);
  font-family: var(--ff-ui);
}

/* ─── STATS STRIP ────────────────────────────────────────── */
.stats-strip {
  background: var(--accent);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-number {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.stat-sep {
  width: 1px;
  background: rgba(255,255,255,.2);
}

/* ─── AVIS CARD ──────────────────────────────────────────── */
.avis-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.avis-stars { display: flex; gap: 3px; }
.avis-stars svg { width: 18px; height: 18px; }
.avis-quote {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  flex: 1;
}
.avis-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.avis-name {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}
.avis-date {
  font-size: 0.75rem;
  color: var(--text-mute);
}

/* ─── FAQ ACCORDION ──────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 0;
  padding: 20px 0;
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.faq-question svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--tr-base);
}
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── FORMULAIRE CONTACT ─────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 4px;
  display: none;
}
.form-group.has-error .form-error { display: block; }
.form-group.has-error input,
.form-group.has-error textarea { border-color: #c0392b; }
.form-success {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid var(--accent-2);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: var(--text);
  font-size: 0.92rem;
  display: none;
}
.form-success.visible { display: block; }

/* ─── AVIS SINGLE ────────────────────────────────────────── */
.avis-single { max-width: 720px; margin: 0 auto; text-align: center; }
.avis-single .avis-quote {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 20px;
}
.avis-single .avis-stars { justify-content: center; margin-bottom: 16px; }

/* ─── CHIP AVANTAGE ──────────────────────────────────────── */
.avantage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-family: var(--ff-ui);
  font-weight: 500;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ─── HORAIRES TABLE ─────────────────────────────────────── */
.horaires-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.horaires-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.horaires-table td:first-child {
  font-weight: 500;
  color: var(--text);
  width: 50%;
}
.horaires-table tr.is-today td { color: var(--accent); font-weight: 600; }
.horaires-table tr.is-closed td { color: var(--text-mute); }
.horaires-table tr:last-child td { border-bottom: 0; }

/* ─── OPEN BADGE ─────────────────────────────────────────── */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-family: var(--ff-ui);
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.open-badge.is-open {
  background: color-mix(in srgb, #2ecc71 14%, transparent);
  color: #1a7a40;
}
.open-badge.is-closed {
  background: color-mix(in srgb, #e74c3c 10%, transparent);
  color: #8b1a1a;
}
.open-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: block;
  animation: pulse-dot 2s ease infinite;
}
.open-badge.is-open .dot { background: #2ecc71; }
.open-badge.is-closed .dot { background: #e74c3c; animation: none; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%  { opacity: .6; transform: scale(.8); }
}

/* ─── CARTE MAPS ─────────────────────────────────────────── */
.map-wrapper {
  position: relative;
  padding-top: 52%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
