/* ============================================================
   COMPONENTS — boutons, cards, lightbox, modal mentions légales,
                burger, menu mobile, badge rating
   ============================================================ */

/* — Boutons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: .93rem;
  font-weight: 500;
  padding: .72rem 1.5rem;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: oklch(40% 0.12 145);
  border-color: oklch(40% 0.12 145);
}

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

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

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

.btn-sm {
  font-size: .83rem;
  padding: .55rem 1.1rem;
  border-radius: var(--r-sm);
}

.btn-lg {
  font-size: 1rem;
  padding: .9rem 1.8rem;
}

/* — Badge rating Google dans le hero --------------------- */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, #fff 88%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 50px;
  padding: 6px 14px 6px 10px;
  font-family: var(--ff-ui);
  font-size: .85rem;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-decoration: none;
  transition: box-shadow .2s;
  flex-wrap: nowrap;
}

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

.hero-rating-badge .stars { color: #D4960A; }
.hero-rating-badge .stars svg { width: 14px; height: 14px; }

.hero-rating-badge strong {
  font-weight: 600;
  color: var(--text);
}

/* — Card c-row (LAY-4 card=row) --------------------------- */
.c-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
}

.c-row__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.c-row__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-row__body {}

.c-row__title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}

.c-row__desc {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* — Avis card --------------------------------------------- */
.avis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.avis-card__author {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}

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

.avis-card__text {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.55;
  font-style: italic;
}

.avis-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.avis-card__badge {
  font-size: .72rem;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* — Badge "Avis Google" ----------------------------------- */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--text-mute);
}

/* — Lightbox galerie -------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 10);
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
  padding: 20px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s;
}

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

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .2s;
}

.lightbox__close:hover { background: rgba(255,255,255,.22); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}

.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
  .lightbox.is-open { transition: none; }
}

/* — Modal mentions légales -------------------------------- */
.modal-legal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
}

.modal-legal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s;
}

.modal-legal__box {
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) var(--r-md) var(--r-md);
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-legal__title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.modal-legal__content {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.65;
}

.modal-legal__content p { margin-bottom: 10px; }

.modal-legal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
}

/* — Burger + Menu mobile (PATTERN OBLIGATOIRE) ----------- */
.burger {
  position: fixed;
  top: calc((var(--header-h-mobile) - 44px) / 2);
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1001; /* > menu-mobile (1000) et > header (100) */
  padding: 0;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: background .3s;
}

.burger span::before,
.burger span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  transition: transform .35s ease, top .35s ease, opacity .2s;
}

.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }

.burger.is-open span          { background: transparent; }
.burger.is-open span::before  { top: 0; transform: rotate(45deg); }
.burger.is-open span::after   { top: 0; transform: rotate(-45deg); }

.menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh; /* dvh : gère la barre d'adresse mobile */
  background: var(--bg); /* fond OPAQUE */
  z-index: 1000; /* > header (100) */
  padding: calc(var(--header-h-mobile) + 32px) 28px 40px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}

.menu-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .35s ease, opacity .35s ease;
}

.menu-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}

.menu-mobile a:hover { color: var(--accent); }

/* Fix obligatoire : bouton WA dans menu mobile centré */
.menu-mobile a.btn {
  justify-content: center;
  gap: 10px;
  padding: .95rem 1.6rem;
  min-height: 52px;
  border-bottom: 0;
  margin-top: 16px;
  font-family: var(--ff-ui);
  font-size: 1rem;
}

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

@media (min-width: 768px) {
  .burger { display: none; }
  .menu-mobile { display: none; }
}

/* — Badge "Ouvert maintenant" ----------------------------- */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
}

.open-badge--open  { background: color-mix(in srgb, #22c55e 14%, transparent); color: #166534; }
.open-badge--closed { background: color-mix(in srgb, #ef4444 12%, transparent); color: #991b1b; }

.open-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.open-badge--open::before  { background: #22c55e; }
.open-badge--closed::before { background: #ef4444; }

/* — FAQ accordion ----------------------------------------- */
.faq-item {
  border-top: 1px solid var(--border);
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .2s;
}

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

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

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease, padding .3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
}

.faq-answer__inner {
  padding-bottom: 18px;
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .menu-mobile, .faq-answer, .faq-chevron { transition: none; }
}
