/* ============================================================
   COMPONENTS.CSS — Eco Pelouse Estrie (GazonQC-inspired)
   ============================================================ */

/* ---- Focus ---- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================================
   BUTTONS — Square, bold, display font
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

/* Primary — Yellow (main CTA) */
.btn--primary {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,196,24,0.4);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

/* Green */
.btn--green {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--green:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}
.btn--green:active { transform: translateY(0); }

/* Outline white (on dark/green bg) */
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Outline dark (on light bg) */
.btn--outline-dark {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn--outline-dark:hover {
  background: var(--color-text);
  color: #fff;
}

/* Outline green */
.btn--outline-green {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline-green:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Brand-colored social CTAs — used on the contact page */
.btn--facebook {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}
.btn--facebook:hover {
  background: #166FE5;
  border-color: #166FE5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.35);
}
.btn--facebook:active { transform: translateY(0); box-shadow: none; }

.btn--instagram {
  background: linear-gradient(45deg, #833AB4 0%, #C13584 35%, #E1306C 70%, #F77737 100%);
  background-origin: border-box;
  background-clip: border-box;
  color: #fff;
  border-color: transparent;
}
.btn--instagram:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 53, 132, 0.4);
  color: #fff;
}
.btn--instagram:active { transform: translateY(0); box-shadow: none; filter: none; }

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

.btn--xl {
  padding: var(--space-5) var(--space-12);
  font-size: var(--text-lg);
}

/* ============================================================
   SERVICE CARDS — flat, editorial, numbered
   ============================================================ */
.services-grid {
  counter-reset: service-card;
}

.service-card {
  background: var(--color-bg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: background var(--transition-base), border-left-color var(--transition-base);
  border-left: 4px solid transparent;
  border-radius: 10px;
  position: relative;
  counter-increment: service-card;
}

.service-card::after {
  content: counter(service-card, decimal-leading-zero);
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.12);
  line-height: 1;
}

.service-card:hover {
  background: var(--color-bg-alt);
  border-left-color: var(--color-accent);
}

.service-card:hover::after {
  color: rgba(46,125,50,0.25);
}

.service-card__icon {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--color-primary);
  transition: transform var(--transition-base);
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}
.service-card:hover .service-card__icon { transform: scale(1.1); }

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   BEFORE/AFTER SLIDER
   ============================================================ */
.slider-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  box-shadow: var(--shadow-lg);
}

/* Hero-context override: fill the entire hero, no 4/3 box, no shadow,
   and no drag cursor (the hero slider is now scroll-driven, not draggable). */
.hero__bg.slider-wrap {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  box-shadow: none;
  cursor: default;
  user-select: auto;
}

/* Hero slider images: match the existing hero__bg img object-position */
.hero__bg.slider-wrap .slider-wrap__before img,
.hero__bg.slider-wrap .slider-wrap__after img {
  object-position: center 30%;
}

/* Hero starts with BEFORE fully visible — JS animates the left-side clip on scroll */
.hero__bg.slider-wrap .slider-wrap__after {
  clip-path: inset(0 0 0 0);
}

/* ============================================================
   HERO SCROLL CONTAINER — gives the sticky hero a 100vh scroll budget
   so the slider can animate from 0% to 100% as the user scrolls past.
   ============================================================ */
.hero-scroll {
  position: relative;
  height: 200vh; /* 100vh hero + 100vh scroll budget for the reveal */
}

.hero-scroll > .hero {
  position: sticky;
  top: var(--nav-height); /* sit flush against the bottom edge of the nav */
  /* reserve the bottom 80px for the reviews ticker so the hero content
     stays centered above it rather than crowding behind it */
  padding-bottom: 80px;
}

/* Reviews ticker pinned to the bottom of the hero — visible from scroll=0
   and stays anchored while the hero is in its sticky window. */
.hero > .reviews-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4; /* above hero__bg (0), grain (2), and hero__content (3) */
}

/* Push the slider hint above the ticker so it isn't covered */
.hero__bg.slider-wrap .slider-hint {
  bottom: calc(80px + var(--space-4));
}

/* Reduced-motion: skip the scroll-pin entirely so users get a normal hero */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll {
    height: auto;
  }
  .hero-scroll > .hero {
    position: relative;
    top: auto;
  }
}

.slider-wrap__before,
.slider-wrap__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slider-wrap__before img,
.slider-wrap__after img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.slider-wrap__after { clip-path: inset(0 50% 0 0); }

.slider-badge {
  position: absolute;
  top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}

.slider-badge--before {
  left: var(--space-4);
  background: rgba(0,0,0,0.75);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}

.slider-badge--after {
  right: var(--space-4);
  background: var(--color-primary);
  color: #fff;
}

.slider-hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  z-index: 15;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}
.slider-hint.hidden { opacity: 0; }

.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

.slider-handle__btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #000;
  pointer-events: none;
}

/* ============================================================
   TRANSFORMATION TIMELINE (3-photo before/after)
   ============================================================ */
.transformation-timeline {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  justify-content: center;
}

.transformation-card {
  flex: 1;
  max-width: 500px;
  text-align: center;
}

.transformation-card__img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.transformation-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.transformation-card__label {
  display: inline-block;
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
}

.transformation-card__label--avant {
  background: rgba(0,0,0,0.8);
  color: #fff;
}

.transformation-card__label--action {
  background: var(--color-accent);
  color: #000;
}

.transformation-card__label--apres {
  background: var(--color-primary);
  color: #fff;
}

.transformation-card__desc {
  margin-top: var(--space-3);
  font-size: 1.125rem; /* 18px */
  color: var(--color-text-muted);
  line-height: 1.55;
}

.transformation-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.5;
  padding-bottom: 60px; /* align with images, not text below */
}

/* Desktop only: widen the section container and per-card max so the
   Avant/Après photos read as the visual centerpiece they should be.
   Mobile (handled below at <=768px) keeps the original full-width-stack
   layout — these rules don't affect it. */
@media (min-width: 769px) {
  .slider-section > .container {
    max-width: 1500px;
  }
  .transformation-card {
    max-width: 620px;
  }
  .transformation-timeline {
    gap: var(--space-4);
  }
}

/* Mobile: stack vertically, arrows rotate down */
@media (max-width: 768px) {
  .transformation-timeline {
    flex-direction: column;
    gap: var(--space-2);
  }

  .transformation-card {
    max-width: 100%;
  }

  .transformation-card__img {
    aspect-ratio: 3/4;
    border-radius: 10px;
  }

  .transformation-arrow {
    padding-bottom: 0;
    transform: rotate(90deg);
    opacity: 0.7;
  }

  .transformation-arrow svg {
    width: 28px;
    height: 28px;
  }

  .transformation-card__label {
    margin-top: var(--space-3);
    font-size: 0.7rem;
  }

  .transformation-card__desc {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    margin-bottom: 0;
  }
}

/* ============================================================
   LEAD SUCCESS MODAL — Rich confirmation with 3-step timeline.
   Used by both the contact page (#leadModal) and the hero CTA modal's
   success state (.modal__success in index.html). Inner classes
   (.lead-modal__check, .lead-modal__timeline, etc.) work standalone —
   the outer .lead-modal class only applies when used as a full overlay.
   ============================================================ */
.lead-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 15, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.lead-modal.is-open { display: flex; opacity: 1; }

.lead-modal__card {
  position: relative;
  background: #fff;
  max-width: 480px;
  width: 100%;
  padding: 44px 36px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.1);
  border-top: 4px solid var(--color-accent);
  overflow: hidden;
}
.lead-modal.is-open .lead-modal__card { transform: translateY(0) scale(1); }

.lead-modal__check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-primary);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: leadModalPop 0.55s cubic-bezier(.2,.9,.3,1.4);
  box-shadow: 0 8px 24px rgba(46,125,50,0.35);
}
@keyframes leadModalPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.lead-modal__title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--color-text);
  text-transform: none;
  font-weight: 700;
}

.lead-modal__lead {
  color: var(--color-text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
  font-size: 15px;
}

/* Timeline of what happens next — from user perspective */
.lead-modal__timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}
.lead-modal__timeline li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.lead-modal__timeline li:last-child { border-bottom: 0; }

.lead-modal__timeline-step {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  margin-top: 1px;
}

/* Description container next to the step number */
.lead-modal__timeline li > div { display: flex; flex-direction: column; gap: 2px; }

/* Scope the description text styles to the inner div so they DON'T
   leak onto .lead-modal__timeline-step (which is also a span/strong). */
.lead-modal__timeline li > div strong {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 600;
}
.lead-modal__timeline li > div span {
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.lead-modal__close {
  background: var(--color-primary);
  color: white;
  border: 0;
  padding: 13px 36px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-size: 14px;
  border-radius: var(--radius-full);
  transition: background 0.2s, transform 0.15s;
}
.lead-modal__close:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.lead-modal__close:active { transform: translateY(0); }

.lead-modal__fallback {
  margin: 22px 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
}
.lead-modal__fallback a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.lead-modal__fallback a:hover { text-decoration: underline; }

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.12);
}

.stat-item {
  background: rgba(255,255,255,0.06);
  flex: 1;
  min-width: 100px;
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-item__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   REVIEW CARDS — quote style on dark bg
   ============================================================ */
.review-card {
  padding: var(--space-6);
  border-left: 4px solid var(--color-accent);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.review-card:hover {
  background: rgba(255,255,255,0.08);
}

.review-card__stars {
  color: var(--color-accent);
  font-size: var(--text-base);
  letter-spacing: 3px;
}

.review-card__text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-style: italic;
  flex: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.review-card__avatar {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #000;
  flex-shrink: 0;
}
.review-card__avatar--1 { background: var(--color-accent); }
.review-card__avatar--2 { background: var(--color-primary-light); }
.review-card__avatar--3 { background: #7CB9E8; }

.review-card__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-card__source {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   RATING BADGE
   ============================================================ */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(249,196,24,0.12);
  border: 1px solid rgba(249,196,24,0.35);
  padding: var(--space-3) var(--space-5);
}

.rating-badge__stars { color: var(--color-accent); letter-spacing: 2px; }
.rating-badge__text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.checklist li::before {
  content: '';
  width: 20px; height: 20px;
  min-width: 20px;
  background: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Checklist on light bg */
.checklist--dark li { color: var(--color-text-muted); }
.checklist--dark li::before {
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* ============================================================
   REVIEWS TICKER — auto-scrolling marquee strip
   ============================================================ */
.reviews-ticker {
  position: relative;
  background: var(--color-bg-deep);
  border-top: 3px solid var(--color-accent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Fade edges */
.reviews-ticker::before,
.reviews-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.reviews-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-dark), transparent);
}
.reviews-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-dark), transparent);
}

.reviews-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 140s linear infinite;
}

.reviews-ticker:hover .reviews-ticker__track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.reviews-ticker__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-10);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.reviews-ticker__stars {
  color: var(--color-accent);
  font-size: var(--text-base);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.reviews-ticker__quote {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.72);
  font-style: italic;
}

.reviews-ticker__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ============================================================
   ACCENT DIVIDER LINE (GazonQC detail)
   ============================================================ */
.accent-line {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin-bottom: var(--space-5);
}

.accent-line--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   LIGHTBOX — click any gallery photo to enlarge
   Used by .photo-grid__item img (galerie.html) and
   .gallery-strip__item img (index.html). Markup is injected by js/lightbox.js.
   ============================================================ */
.photo-grid__item img,
.gallery-strip__item img { cursor: pointer; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__stage {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
}
.lightbox__img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}
.lightbox__caption {
  position: absolute;
  left: 0; right: 0;
  bottom: -34px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-family: var(--font-body);
}
.lightbox__counter {
  position: absolute;
  top: -36px;
  left: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s ease, transform 0.18s ease;
  z-index: 10000;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(2px); }
body.lightbox-open { overflow: hidden; }

@media (max-width: 768px) {
  .lightbox__prev, .lightbox__next {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__caption { bottom: -28px; font-size: 12px; padding: 0 12px; }
}

/* ============================================================
   LEAD FORM MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: var(--space-10);
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: var(--space-2);
  transition: color 0.2s;
}

.modal__close:hover {
  color: var(--color-text);
}

.modal__header {
  margin-bottom: var(--space-6);
}

.modal__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.modal__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.modal__field label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

.modal__field input,
.modal__field select,
.modal__field textarea {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s;
}

.modal__field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.modal__field input:focus,
.modal__field select:focus,
.modal__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.modal__field input::placeholder,
.modal__field textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* Optional hint shown next to a field label (e.g. "(optionnel)") */
.modal__field-hint,
.form-group__hint {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-text-muted);
  margin-left: 6px;
  font-family: var(--font-body);
}

/* ---- Multi-select service picker (shared by modal + contact form) ---- */
.lead-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

/* .lead-checkboxes .lead-checkbox (not bare .lead-checkbox) so this rule wins the
   specificity battle against .form-group label on contact.html (which is
   uppercase + display-font + tight letter-spacing). */
.lead-checkboxes .lead-checkbox {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-text);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.lead-checkboxes .lead-checkbox:hover {
  border-color: var(--color-primary);
}

.lead-checkboxes .lead-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  margin: 0;
  padding: 0;
}

.lead-checkboxes .lead-checkbox input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.lead-checkboxes .lead-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lead-checkboxes .lead-checkbox:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(46, 125, 50, 0.06);
}

.lead-checkboxes--error {
  outline: 2px solid #c62828;
  outline-offset: 4px;
  border-radius: 8px;
}

@media (max-width: 360px) {
  /* Only collapse to 1 column on ultra-small phones (Galaxy Fold-ish).
     At 375px+ we keep 2 cols — even with "Nettoyage de gouttières" wrapping
     to 2 lines on a tile, the total height is far less than 6 stacked tiles. */
  .lead-checkboxes {
    grid-template-columns: 1fr;
  }
}

/* ---- Consent block (Quebec Law 25) ----
   Hidden until the user picks at least one service (progressive disclosure).
   Required before submit — JS validates and prevents send.
   visibility + pointer-events also remove it from the a11y tree and tab
   order until revealed (screen-reader users + keyboard users get the same
   progressive experience as sighted users). visibility flip is delayed on
   hide so the fade-out animation completes first; instant on show. */
.lead-consent {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    margin-top 0.3s ease,
    visibility 0s linear 0.35s;
}
.lead-consent.is-revealed {
  max-height: 220px;
  opacity: 1;
  margin-top: var(--space-4);
  visibility: visible;
  pointer-events: auto;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    margin-top 0.3s ease,
    visibility 0s linear 0s;
}

/* Specificity 0,2,0 — beats contact.html's inline .form-group label rule */
.lead-consent .lead-consent__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(46, 125, 50, 0.05);
  border-left: 3px solid var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  transition: border-left-color 0.2s, background 0.2s;
}
.lead-consent .lead-consent__row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0 0;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.lead-consent .lead-consent__row input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.lead-consent .lead-consent__row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.lead-consent .lead-consent__row a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}
.lead-consent--error .lead-consent__row {
  border-left-color: #c62828;
  background: rgba(198, 40, 40, 0.06);
}

.modal__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

.modal__success {
  text-align: center;
  padding: var(--space-6) 0;
}

.modal__success-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto var(--space-4);
}

/* ---- Mobile modal compaction ----
   Reclaim vertical space so the full form (header → fields → service tiles
   → message → consent → submit) fits as much as possible on mobile without
   scrolling. The consent is required — users MUST be able to see it.
   Trade-offs on mobile: subtitle + field hints are dropped; service grid
   stays 2-col (forcing 1-col stacks 6 tiles vertically and balloons the
   modal by 170px); textarea defaults to a shorter min-height. */
@media (max-width: 600px) {
  .modal {
    padding: var(--space-6);
    border-radius: 12px;
  }
  .modal__header {
    margin-bottom: var(--space-3);
  }
  .modal__sub,
  .modal__field-hint {
    display: none;
  }
  .modal__form {
    gap: var(--space-3);
  }
  .lead-checkboxes .lead-checkbox {
    padding: 7px 10px;
    gap: 8px;
    font-size: 13px;
  }
  .modal__field textarea {
    min-height: 56px;
  }
  .lead-consent .lead-consent__row {
    padding: 9px 11px;
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .modal__form-row {
    grid-template-columns: 1fr;
  }
}
