/* Pierre et Jardins — components.css — boutons, cards, formulaire, galerie, chips */

/* ── BOUTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .75rem 1.5rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-sm { font-size: .85rem; padding: .55rem 1.1rem; }

.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);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 38%, transparent);
}

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

.btn-light {
  background: rgba(255,255,255,.92);
  color: var(--text);
  border-color: rgba(255,255,255,.7);
}
.btn-light:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}
.btn-wa:hover {
  background: #20ba5a;
  border-color: #20ba5a;
  box-shadow: 0 4px 14px rgba(37,211,102,.38);
}
.btn-wa:hover { color: #fff; }

/* ── ÉTOILES ── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}
.stars svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── BADGE GOOGLE ── */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-2);
  background: color-mix(in srgb, var(--text) 5%, var(--bg));
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3px 10px 3px 6px;
}
.google-badge svg { width: 14px; height: 14px; }

/* ── HERO RATING BADGE ── */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.9);
  border-radius: 30px;
  padding: 6px 14px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background var(--t-fast);
}
.hero-rating-badge:hover { background: #fff; text-decoration: none; }
.hero-rating-badge .stars { gap: 1px; }
.hero-rating-badge .stars svg { width: 14px; height: 14px; }
.hero-rating-badge strong {
  font-family: var(--ff-ui);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}
.hero-rating-badge span {
  font-family: var(--ff-ui);
  font-size: .8rem;
  color: var(--text-2);
}

/* ── CHIPS / TAGS ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: oklch(30% 0.10 145);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.chip svg { width: 13px; height: 13px; }

.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* ── CARD STYLES ── */
/* card = row (LAY-4 imposé) */
.c-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
}
.c-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.c-row__icon svg { width: 22px; height: 22px; }
.c-row__title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.c-row__body { font-size: .9rem; color: var(--text-2); }

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

/* ── GALERIE SLIDER (LAY-4) ── */
.gal-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.gal-slider::-webkit-scrollbar { height: 4px; }
.gal-slider::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.gal-slider::-webkit-scrollbar-track { background: var(--border-light); border-radius: 2px; }

.gal-slider__item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: clamp(240px, 62vw, 380px);
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
}
.gal-slider__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gal-slider__item:hover img { transform: scale(1.04); }

/* ── AVIS CAROUSEL (LAY-4) ── */
.avis-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.avis-carousel::-webkit-scrollbar { height: 4px; }
.avis-carousel::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.avis-card {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: min(88vw, 420px);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.avis-card__stars { margin-bottom: 4px; }
.avis-card__quote {
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}
.avis-card__quote::before { content: "\201C"; }
.avis-card__quote::after  { content: "\201D"; }
.avis-card__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.avis-card__name {
  font-family: var(--ff-ui);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.avis-card__date {
  font-size: .78rem;
  color: var(--text-mute);
}

/* Navigation carousel */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.carousel-btn svg { width: 16px; height: 16px; }

/* ── FORMULAIRE ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--ff-ui);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}
.form-input,
.form-textarea {
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: .7rem 1rem;
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.form-textarea { resize: vertical; min-height: 110px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-msg {
  font-size: .85rem;
  padding: 10px 14px;
  border-radius: var(--r-md);
  margin-top: 12px;
  display: none;
}
.form-msg.success { background: color-mix(in srgb, var(--accent) 10%, #fff); color: oklch(30% 0.10 145); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); display: block; }
.form-msg.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; display: block; }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--r-md);
  object-fit: contain;
  display: block;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev  { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg { width: 18px; height: 18px; }

/* ── MODAL (mentions légales) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-box {
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-box h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.modal-box p,
.modal-box li {
  font-size: .88rem;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.65;
}
.modal-box ul { padding-left: 18px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background var(--t-fast);
}
.modal-close:hover { background: var(--border-light); }
.modal-close svg { width: 16px; height: 16px; }

/* ── FAQ ACCORDION ── */
.faq-item { border-top: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: 1px solid var(--border-light); }

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--t-fast);
}
.faq-btn:hover { color: var(--accent); }
.faq-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform .3s ease;
}
.faq-item.is-open .faq-btn svg { transform: rotate(45deg); }

.faq-body {
  overflow: hidden;
  max-height: 0;
  padding: 0;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.is-open .faq-body {
  max-height: 400px;
  padding: 0 0 20px;
}
.faq-body p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── BADGE OUVERT/FERMÉ ── */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.open-badge--open  { background: color-mix(in srgb, #22c55e 15%, transparent); color: #15803d; }
.open-badge--closed { background: color-mix(in srgb, #ef4444 12%, transparent); color: #b91c1c; }
.open-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.open-badge--open .open-badge__dot  { background: #22c55e; }
.open-badge--closed .open-badge__dot { background: #ef4444; }

/* ── STATS STRIP ── */
.stats-strip {
  background: oklch(28% 0.08 145);
  padding: 24px 0;
}
.stats-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.stat-num {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.stat-suffix {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent-2);
  line-height: 1;
}
.stat-label {
  font-family: var(--ff-ui);
  font-size: .75rem;
  color: rgba(255,255,255,.62);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── PROCESS STEPS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: 36px;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-step__num {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  opacity: .5;
}
.process-step__title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.process-step__body { font-size: .92rem; color: var(--text-2); }

/* ── ABOUT MINI (dans section process) ── */
.about-lead-block {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border-light);
}
.about-lead {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}
.about-lead-img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.about-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Membre UNEP badge */
.unep-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: oklch(30% 0.10 145);
  margin-top: 16px;
}
.unep-badge svg { width: 14px; height: 14px; color: var(--accent); }

/* ── ZONE / CARTE ── */
.zone-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.zone-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  padding-top: 62%;
  background: var(--border-light);
}
.zone-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.zone-communes { margin-bottom: 24px; }
.zone-communes h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.commune-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.commune-chip {
  font-family: var(--ff-ui);
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: oklch(30% 0.10 145);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

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

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.contact-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.contact-ctas .btn { width: 100%; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-info-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-info-item__icon svg { width: 18px; height: 18px; }
.contact-info-item__body { font-size: .9rem; color: var(--text-2); }
.contact-info-item__body strong { color: var(--text); font-weight: 600; display: block; }
