/* ====================== COMPONENTS ======================
   Boutons · cards · badges · formulaire · lightbox
   ========================================================= */

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: .9rem;
  font-weight: 600;
  padding: .85rem 1.75rem;
  border-radius: 50px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
  letter-spacing: .02em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Primaire (accent vert) */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* Secondaire (outline) */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-alt); color: var(--text); }

/* Blanc (sur fond sombre/immersif) */
.btn-light {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: rgba(255,255,255,.28); color: #fff; border-color: rgba(255,255,255,.9); }

/* WhatsApp */
.btn-wa {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}
.btn-wa:hover { background: #1fb855; border-color: #1fb855; color: #fff; }

/* ---- Cards service (LAY-1 grid-3, card:line) ---- */
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px oklch(45% 0.12 145 / 0.10);
}
.svc-card .svc-num {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.svc-card .svc-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 16px;
}
.svc-card h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.svc-card p {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.6;
}
/* Card featured (accent fond) */
.svc-card--accent {
  background: var(--accent);
  border-color: var(--accent);
}
.svc-card--accent,
.svc-card--accent :where(h3, p, .svc-num, svg) {
  color: var(--on-dark);
}
.svc-card--accent .svc-num { color: oklch(68% 0.09 145); }

/* ---- Grille services LAY-1 grid-3 ---- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* ---- Grille galerie LAY-1 grid ---- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: zoom-in;
  background: var(--bg-alt);
}
.gal-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.gal-item:hover img { transform: scale(1.05); }
.gal-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 100%);
  color: #fff;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--ff-ui);
  font-weight: 600;
  backdrop-filter: blur(2px);
}

/* ---- Avis cards LAY-1 cols-2 ---- */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.avis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.avis-card--invite {
  background: var(--accent-soft);
  border-color: var(--accent-2);
  text-align: center;
  align-items: center;
  justify-content: center;
}
.avis-stars { display: flex; gap: 4px; }
.avis-stars svg { width: 18px; height: 18px; color: #D4A020; fill: currentColor; }
.avis-blockquote {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}
.avis-blockquote::before { content: '\201C'; }
.avis-blockquote::after  { content: '\201D'; }
.avis-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.avis-author {
  font-family: var(--ff-ui);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.avis-date { font-size: .78rem; color: var(--text-mute); }
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-family: var(--ff-ui);
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: .03em;
}
.badge-google svg { width: 14px; height: 14px; }

.avis-card--invite .avis-invite-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.avis-card--invite p {
  font-size: .88rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.lien-google {
  display: inline-block;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lien-google:hover { color: var(--accent-dark); }

/* ---- 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-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  min-height: 48px;
}
.faq-trigger:hover { color: var(--accent); }
.faq-chevron {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: transform .3s var(--ease), border-color .2s;
}
.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
}
.faq-chevron::before { transform: translate(-50%, -50%) rotate(0deg); }
.faq-chevron::after  { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .2s; }
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(45deg); border-color: var(--accent); }
.faq-trigger[aria-expanded="true"] { color: var(--accent); }

/* PIEGE bug accordion : padding 0 par défaut + ajouté seulement en is-open */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
  padding: 0;
}
.faq-answer.is-open {
  max-height: 400px;
  padding: 0 0 20px;
}
.faq-answer p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 70ch;
}

/* ---- Formulaire ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* PIEGE PROD #10 select overflow */
}
.form-field label {
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--on-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0; /* PIEGE PROD #10 */
  padding: .8rem 1rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-md);
  color: var(--on-dark);
  font-family: var(--ff-body);
  font-size: 1rem;
  transition: border-color .2s;
  min-height: 48px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,.45); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
}
.form-field select option { color: var(--text); background: var(--surface); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Modal mentions légales ---- */
.ml-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: calc(var(--z-modal) - 1);
  backdrop-filter: blur(4px);
}
.ml-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-modal);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem 2rem;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 80vh;
  overflow-y: auto;
}
.ml-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text);
  cursor: pointer;
  border: none;
}
.ml-box h2 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.ml-box p, .ml-box li {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.ml-box strong { color: var(--text); }
.ml-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ml-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ml-section h3 {
  font-family: var(--ff-ui);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ---- Lightbox ---- */
.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;
  flex-direction: column;
}
.lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
}

/* ---- Stats strip ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 28px 16px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--accent-2);
  opacity: .3;
}
.stat-number {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-family: var(--ff-ui);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-mute);
  margin-top: 8px;
}

/* ---- Bouton header spécifique ---- */
.btn.header-cta {
  padding: .6rem 1.25rem;
  font-size: .82rem;
}

/* ---- Open-badge horaires ---- */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.open-badge--open {
  background: oklch(75% 0.12 145 / .15);
  color: oklch(38% 0.12 145);
}
.open-badge--closed {
  background: oklch(55% 0.10 25 / .12);
  color: oklch(40% 0.10 25);
}
.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.open-badge--open .open-dot { background: oklch(52% 0.14 145); animation: pulse-dot 2s infinite; }
.open-badge--closed .open-dot { background: oklch(52% 0.15 25); }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

/* ---- Communes chips ---- */
.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.zone-chip {
  font-family: var(--ff-ui);
  font-size: .8rem;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.zone-chip--main {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ---- Horaires table ---- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr {
  border-bottom: 1px solid oklch(45% 0.12 145 / 0.08);
}
.hours-table td {
  padding: 9px 12px;
  font-size: .875rem;
  color: var(--text-2);
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--text);
  text-transform: capitalize;
}
.hours-table td:last-child { text-align: right; }
.hours-table .is-today td {
  color: var(--accent-dark);
  font-weight: 700;
  background: var(--accent-soft);
}
.hours-table .is-today td:first-child::before {
  content: '› ';
  color: var(--accent);
}
.hours-table .is-closed td { color: var(--text-mute); }

/* ---- À propos ---- */
.about-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--text-2);
}
.about-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-2);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A4A40' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.about-sig {
  margin-top: 24px;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--accent);
}

/* ---- Contact rows ---- */
.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--on-dark);
  transition: background .2s;
}
.contact-row:hover { background: rgba(255,255,255,.12); text-decoration: none; color: var(--on-dark); }
.contact-row-icon {
  width: 40px;
  height: 40px;
  background: oklch(45% 0.12 145 / 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row-icon svg { width: 18px; height: 18px; color: var(--accent-2); }
.contact-row-label {
  font-family: var(--ff-ui);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-2);
  display: block;
}
.contact-row-value {
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--on-dark);
  display: block;
}

/* ---- Map wrapper (ratio responsive) ---- */
.map-wrapper {
  position: relative;
  padding-bottom: 70%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--r-lg);
}

/* ---- Section eyebrow ---- */
.section-eyebrow {
  font-family: var(--ff-ui);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.section-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 0;
}
.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---- Galerie CTA card ---- */
.gal-cta-card {
  background: var(--accent-dark);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  gap: 12px;
  text-decoration: none;
  transition: transform .2s var(--ease);
  min-height: 140px;
}
.gal-cta-card:hover { transform: translateY(-3px); text-decoration: none; }
.gal-cta-card,
.gal-cta-card :where(span, p, svg) { color: var(--on-dark); }
.gal-cta-card .cta-label {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-style: italic;
}
.gal-cta-card .cta-link {
  font-size: .78rem;
  font-family: var(--ff-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}
