/* ==========================================================================
   Repair pages only (/reparation-pave-uni-gatineau/ and /interlock-repair-gatineau/),
   2026-11-06: the blocks the cleaning template (svc-blocks.css) has no place for.
   1. #svw-b: the subtitle and the longer reason lines.
   2. #quand: eight sign tiles, and the price ticket holding what each sign needs.
   3. #entree-marches-patio: three photo cards (ids entree, marches, patio).
   4. #chantier: the checklist card and four before/after photos.
   5. Phone: the template's layout; the three place cards swipe, and [data-rp-fold] text that opens
      on a tap (js/svc-reparation.js adds the buttons; all text stays in the HTML).
   Desktop keeps the template's layout; nothing here touches another page.
   ========================================================================== */

/* ---------- 1. Why us ---------- */
/* site.css sets every "h2 + p" with !important, so these need it too */
html body #svw-b .svwb-copy .svwb-title + .rp-svwb-sub { margin: -20px 0 34px !important; font: 400 1.1rem/1.5 'Inter', sans-serif !important; color: var(--svb-muted, #4a5c50); }
#svw-b .rp-svwb-list .svwb-t > span { max-width: 34em; }

/* ---------- 2. When to repair ---------- */
html body.place-v2 #quand .rp-tiles li { justify-content: flex-start; }
html body.place-v2 #quand .rp-tiles strong { font-size: 1.08rem; line-height: 1.18; }
html body.place-v2 #quand .rp-tiles span:not(.cc-ico) { font-size: .92rem; }
html body.place-v2 #quand .rp-tiles a { color: #2f6b3f; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
html body.place-v2 #quand .rp-tiles li.rp-tile-close { background: #14251a; }
html body.place-v2 #quand .rp-tiles li.rp-tile-close strong { color: #ffffff; }
html body.place-v2 #quand .rp-tiles li.rp-tile-close span:not(.cc-ico) { color: #cfe0cf; }
html body.place-v2 #quand .rp-tiles li.rp-tile-close .cc-ico { background: rgba(255, 255, 255, 0.1); }

html body.place-v2 #quand .rp-ticket { grid-template-columns: 30% 1fr; }
html body.place-v2 #quand .rp-ticket::before,
html body.place-v2 #quand .rp-ticket::after { left: 30%; }
html body.place-v2 #quand .rp-ticket .cc-ticket-price { justify-content: flex-start; padding-top: 40px; }
#quand .rp-diag { padding: 28px 30px 22px 34px; }
#quand .rp-diag-title { margin: 0; font: 800 1.35rem/1.15 'Outfit', sans-serif; letter-spacing: -0.02em; color: #14251a; }
#quand .rp-diag-lead { margin: 6px 0 4px; font-size: 1rem; line-height: 1.5; color: #4a5c50; }
html body.place-v2 #quand .rp-diag .cc-ticket-list { padding: 4px 0 6px; }
html body.place-v2 #quand .rp-diag .cc-ticket-list b { color: #14251a; font-weight: 700; }
html body.place-v2 #quand .rp-diag .cc-ticket-not b { color: #4a5c50; }
#quand .rp-diag-close { margin: 4px 0 0; padding: 14px 16px; border-radius: 16px; background: #f3f6f3; font-size: .98rem; line-height: 1.5; color: #22382a; }
.svb-anim #quand .cc-ticket.is-in li:nth-child(4) .cc-mark { animation-delay: 1.1s; }
.svb-anim #quand .cc-ticket.is-in li:nth-child(5) .cc-mark { animation-delay: 1.3s; }

/* ---------- 3. Driveway, steps or patio ---------- */
#entree-marches-patio .rp-places {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  text-align: left;
}
#entree-marches-patio .rp-place {
  display: flex; flex-direction: column; margin: 0; overflow: hidden;
  background: #ffffff; border: 1px solid #dbe7de; border-radius: 26px;
  box-shadow: 0 24px 48px -36px rgba(20, 37, 26, 0.45);
}
#entree-marches-patio .rp-place-pic { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
#entree-marches-patio .rp-place-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
#entree-marches-patio .rp-place-body { padding: 22px 24px 24px; }
#entree-marches-patio .rp-place h3 {
  margin: 0 0 8px; scroll-margin-top: 120px;
  font: 800 1.25rem/1.18 'Outfit', sans-serif; letter-spacing: -0.02em; color: #14251a;
}
#entree-marches-patio .rp-place p { margin: 0; font-size: 1rem; line-height: 1.55; color: #3d5245; }

/* ---------- 4. The job, day by day ---------- */
#chantier .case-study-text p.b-tips.rp-check b { font-weight: 700; color: #14251a; }
#chantier .case-study-text p.b-tips.rp-check a { color: #2f6b3f; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
#chantier .case-study-text p.b-tips.rp-check .b-tip { align-items: flex-start; }
#chantier .case-study-text p.b-tips.rp-check .b-tip > span:last-child { padding-top: 7px; }
#chantier .rp-check-intro { display: block; margin: 0 0 4px; font-size: 0.97rem; line-height: 1.5; color: #4a5c50; }
html body.place-v2 #chantier .case-study-photos.rp-photos { display: block; }
#chantier .rp-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#chantier .rp-ba figure { margin: 0; }
#chantier .rp-ba figcaption { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem !important; }
#chantier .rp-ba-more { margin: 14px 0 0; font-size: 0.92rem; line-height: 1.45; color: #4a5c50; }
#chantier .rp-ba-more .rp-ba-k { font-weight: 700; color: #14251a; }
#chantier .rp-ba-more a { color: #2f6b3f; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5. Phone ---------- */
/* text that folds: the button comes from js/svc-reparation.js */
.rp-fold-btn { display: none; }
@media (max-width: 768px) {
  html body .rp-folded:not(.rp-open) {
    display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: var(--rp-lines, 4); overflow: hidden;
  }
  html body .rp-fold-btn {
    display: inline-flex; align-items: center; min-height: 40px; margin: 2px 0 0; padding: 0;
    border: 0; background: none; cursor: pointer;
    font: 700 15px/1 'Outfit', sans-serif; color: #2f6b3f;
  }
  html body .rp-list-folded:not(.rp-open) > li.rp-hide { display: none !important; }

  /* steps, reasons and sign tiles keep the template's phone layout, like the cleaning page */
  html body.place-v2 #svw-b .svwb-copy .svwb-title + .rp-svwb-sub { margin: -4px 0 18px !important; font-size: 16px !important; text-align: center !important; }
  html body.place-v2:not(#pp) #quand .rp-ticket { grid-template-columns: 1fr; }
  html body.place-v2:not(#pp) #quand .rp-ticket .cc-ticket-price { padding: 16px 20px; }
  #quand .rp-diag { padding: 18px 18px 16px; }
  #quand .rp-diag-title { font-size: 20px; }
  #quand .rp-diag-lead { font-size: 15px; }
  html body.place-v2:not(#pp) #quand .rp-diag .cc-ticket-list { padding: 2px 0 2px; }
  html body #quand .rp-diag .rp-fold-btn { margin: 0 0 8px; }
  #quand .rp-diag-close { font-size: 15px; padding: 12px 14px; }
  /* the closing line opens with the rest of the list */
  #quand .rp-list-folded:not(.rp-open) ~ .rp-diag-close { display: none; }

  /* driveway, steps or patio: three cards swipe in one row */
  html body.place-v2 #entree-marches-patio { padding: 40px 20px 32px; }
  /* centred like the template's other titles (site.css sets section h2 left on phones) */
  html body.place-v2:not(#pp) #entree-marches-patio h2 { text-align: center !important; }
  #entree-marches-patio .rp-places {
    display: flex; gap: 12px; margin: 22px -20px 0; padding: 0 20px 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  #entree-marches-patio .rp-places::-webkit-scrollbar { display: none; }
  #entree-marches-patio .rp-place { flex: 0 0 80%; scroll-snap-align: start; scroll-margin-left: 20px; border-radius: 24px; }
  #entree-marches-patio .rp-place-pic { aspect-ratio: 5 / 2; }
  #entree-marches-patio .rp-place-body { padding: 16px 18px 14px; }
  #entree-marches-patio .rp-place h3 { font-size: 19px; }
  #entree-marches-patio .rp-place p { font-size: 15px; line-height: 1.5; }

  /* the checklist card folds like the other story cards (the template keeps its tips card open) */
  html body.place-v2 #chantier .case-study-text p.b-tips.rp-check:not(.pp-open) .pp-cardtext.pp-cardclamp {
    display: block !important; max-height: 112px !important; overflow: hidden !important;
  }
  html body.place-v2 #chantier .case-study-text p.b-tips.rp-check .pp-cardmore { display: inline-flex !important; }
  #chantier .rp-check-intro { font-size: 15px; line-height: 1.4; }

  /* before and after: the four photos two by two */
  html body.place-v2:not(#pp) #chantier .case-study-photos.rp-photos { display: block; }
  #chantier .rp-ba { gap: 10px; }
  html body.place-v2 #chantier .rp-ba img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
  #chantier .rp-ba-more { margin: 10px 0 0; font-size: 14px; }
  html body.place-v2 #chantier .rp-ba figcaption { font-size: 14px !important; }
}
