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

/* ── 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: 13px 22px;
  border-radius: var(--r-md);
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  border: 0;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--wa-green) 30%, transparent);
}
.btn-wa:hover { background: #1ebe57; }

.btn-light {
  background: rgba(255,255,255,.12);
  color: var(--on-dark);
  border: 1px solid rgba(255,255,255,.22);
}
.btn-light:hover { background: rgba(255,255,255,.2); }

/* ── Chips / tags ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ── Cards services (c-asym = radius-asym) ── */
.c-asym {
  background: color-mix(in srgb, var(--text) 3%, var(--bg));
  border-radius: 22px 4px 22px 4px;
  padding: 24px;
}
.c-asym--lead {
  background: var(--accent);
  color: var(--on-dark);
  border-radius: 22px 4px 22px 4px;
}
.c-asym--lead,
.c-asym--lead :where(h3, p, .svc-num, .svc-chip, small, span) {
  color: var(--on-dark);
}
.c-asym--alt {
  background: var(--bg-alt, var(--bg));
  border-radius: 22px 4px 22px 4px;
}

.svc-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: .88rem;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.c-asym--lead .svc-num { color: var(--accent-soft); }

.svc-title {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}
.c-asym--lead .svc-title { color: var(--on-dark); }

.svc-desc {
  font-family: var(--ff-ui);
  font-size: .84rem;
  line-height: 1.55;
  color: var(--text-2);
}
.c-asym--lead .svc-desc { color: var(--on-dark-2); }

.svc-chip {
  display: inline-flex;
  margin-top: 12px;
  font-family: var(--ff-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 50px;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--accent-deep);
}
.c-asym--lead .svc-chip {
  background: rgba(255,255,255,.2);
  color: var(--on-dark);
}

/* ── Galerie grid-feat ── */
.gal-feat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gal-feat__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
}
.gal-feat__big { grid-column: span 2; grid-row: span 2; }
.gal-feat__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s var(--ease);
}
.gal-feat__item:hover img { transform: scale(1.04); }
.gal-feat__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  font-family: var(--ff-ui);
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .05em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .gal-feat { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gal-feat__big { grid-column: span 2; grid-row: span 1; }
}

/* ── Galerie masonry (realisations.html) ── */
.gal-masonry {
  column-count: 3;
  column-gap: 14px;
}
.gal-masonry figure {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
}
.gal-masonry img {
  width: 100%;
  display: block;
  transition: transform .4s var(--ease);
}
.gal-masonry figure:hover img { transform: scale(1.03); }
@media (max-width: 768px) { .gal-masonry { column-count: 2; } }
@media (max-width: 480px) { .gal-masonry { column-count: 1; } }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lb-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── Avis cards (row-sep) ── */
.avis-rows { display: flex; flex-direction: column; }
.avis-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.avis-row:last-child { border-bottom: 1px solid var(--border); }
.avis-stars { display: flex; gap: 3px; margin-bottom: 8px; }
.avis-stars svg { width: 16px; height: 16px; color: #F5A623; fill: currentColor; }
.avis-quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 10px;
}
.avis-author {
  font-family: var(--ff-ui);
  font-size: .78rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.avis-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-mute);
}
.avis-meta {
  text-align: right;
  font-family: var(--ff-ui);
  font-size: .75rem;
  color: var(--text-mute);
  flex-shrink: 0;
}

/* ── 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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-family: var(--ff-display);
  font-size: clamp(.95rem, 1.8vw, 1.08rem);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  gap: 16px;
}
.faq-trigger:hover { color: var(--accent); }
.faq-chevron {
  width: 20px; height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(-135deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
}
.faq-answer.is-open {
  max-height: 400px;
  padding: 0 0 20px;
}
.faq-answer p {
  font-family: var(--ff-ui);
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 68ch;
}

/* ── Process steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
@media (max-width: 640px) { .process-grid { grid-template-columns: 1fr; gap: 24px; } }
.process-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.process-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--accent-soft);
  line-height: 1;
  font-weight: 400;
}
.process-title {
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text);
}
.process-desc {
  font-family: var(--ff-ui);
  font-size: .86rem;
  line-height: 1.6;
  color: var(--text-2);
}

/* ── Stats strip ── */
.stats-strip { background: var(--accent); overflow: hidden; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: clamp(24px, 4vw, 36px) 16px;
  text-align: center;
  position: relative;
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255,255,255,.25);
}
.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-family: var(--ff-ui);
  font-size: clamp(.68rem, 1.5vw, .78rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

/* ── Contact rows ── */
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  transition: background .2s;
  color: var(--on-dark);
}
.contact-row:hover { background: rgba(255,255,255,.12); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--accent-2);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-info { display: flex; flex-direction: column; }
.contact-info strong {
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  color: var(--on-dark);
}
.contact-info span {
  font-family: var(--ff-ui);
  font-size: .78rem;
  color: var(--on-dark-2);
  margin-top: 2px;
}

/* ── Zones intervention ── */
.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.zone-chip {
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 50px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.zone-chip.is-main {
  background: var(--accent);
  color: #fff;
}

/* ── Horaires table ── */
.hor-table { width: 100%; border-collapse: collapse; }
.hor-table tr { border-bottom: 1px solid var(--border); }
.hor-table td {
  padding: 8px 4px;
  font-family: var(--ff-ui);
  font-size: .82rem;
  color: var(--text-2);
}
.hor-table td:first-child { text-transform: capitalize; font-weight: 500; color: var(--text); }
.hor-table td:last-child { text-align: right; }
.hor-table tr.is-today td { color: var(--accent); font-weight: 700; }
.hor-table tr.is-closed td { color: var(--text-mute); font-style: italic; }
.hor-table tr.is-today td:first-child::before { content: "› "; }

/* ── Badge ouvert ── */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.open-badge.is-open {
  background: color-mix(in srgb, #22c55e 14%, transparent);
  color: #166534;
}
.open-badge.is-closed {
  background: color-mix(in srgb, #ef4444 10%, transparent);
  color: #991b1b;
}
.open-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.open-badge.is-open .dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 25%, transparent);
  animation: pulse-dot 2s infinite;
}
.open-badge.is-closed .dot { background: #ef4444; }
@keyframes pulse-dot { 0%,100%{ box-shadow: 0 0 0 3px color-mix(in srgb,#22c55e 25%,transparent)} 50%{ box-shadow: 0 0 0 6px transparent} }
@media (prefers-reduced-motion: reduce) { .open-badge .dot { animation: none; } }

/* ── Formulaire ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-family: var(--ff-ui);
  font-size: .78rem;
  font-weight: 600;
  color: var(--on-dark-2);
  letter-spacing: .04em;
}
.field input,
.field select,
.field textarea {
  font-family: var(--ff-ui);
  font-size: .9rem;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: var(--on-dark);
  width: 100%;
  min-width: 0;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255,255,255,.12);
}
.field select { min-width: 0; }

/* Mentions légales modal */
.ml-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: calc(var(--z-modal) - 1);
}
.ml-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-modal);
  padding: 20px;
}
.ml-box {
  background: var(--bg);
  border-radius: var(--r-lg);
  max-width: 480px; width: 100%;
  padding: 32px 28px 28px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.ml-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.1rem;
  color: var(--text-2);
  background: var(--bg-alt, var(--bg));
  cursor: pointer;
  border: 0;
}
.ml-close:hover { color: var(--text); }
.ml-box h2 { font-size: 1.1rem; margin-bottom: 18px; }
.ml-box h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 18px 0 6px; font-family: var(--ff-ui); font-weight: 700; }
.ml-box p, .ml-box address {
  font-family: var(--ff-ui);
  font-size: .84rem;
  line-height: 1.6;
  color: var(--text-2);
  font-style: normal;
}
