/* =========================================================
   Page service — Thermographie infrarouge
   Étend le design system de styles.css (tokens, .wrap, .label-tech,
   .display-*, .reveal, .link-arrow, .peb-grid, .method-list...).
   N'écrit que ce qui n'existe pas déjà.

   Rouge DEL verrouillé sur cette page : #c9370c (variable locale,
   n'affecte pas --thermal-red ni les autres pages).
   ========================================================= */

:root { --del-red: #c9370c; }

.svc-accent { color: var(--del-red); }

/* ---------- breadcrumb ---------- */
.svc-breadcrumb { padding-top: 6.5rem; }
@media (min-width: 768px) { .svc-breadcrumb { padding-top: 8rem; } }
.svc-breadcrumb nav { display: flex; align-items: center; gap: 0.625rem; color: var(--muted-foreground); }
.svc-breadcrumb a { transition: color 0.2s ease; }
.svc-breadcrumb a:hover { color: var(--ink); }
.svc-breadcrumb .sep { opacity: 0.5; }
.svc-breadcrumb .current { color: var(--ink-soft); }

/* ---------- hero ---------- */
#svc-hero { border-bottom: 1px solid var(--rule); padding-bottom: 5rem; }
.svc-hero-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .svc-hero-grid { grid-template-columns: repeat(12, 1fr); gap: 2.5rem; align-items: end; } }
.svc-hero-title { grid-column: 1 / -1; }
@media (min-width: 1024px) { .svc-hero-title { grid-column: span 7; } }
.svc-hero-title h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; font-size: clamp(2.5rem, 6vw, 5rem); text-wrap: balance; }
.svc-hero-title h1 .label-tech { display: block; margin-top: 1.25rem; }

.svc-hero-side { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .svc-hero-side { grid-column: 9 / span 4; } }
.svc-hero-side p { max-width: 30rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 1024px) { .svc-hero-side p { max-width: 29rem; } }

.svc-cert { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.svc-cert .rule { display: block; height: 2px; width: 2.5rem; background: var(--del-red); margin-bottom: 0.875rem; }
.svc-cert .label-tech { color: var(--muted-foreground); }
.svc-cert strong { display: block; margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.svc-cert .sub { display: block; margin-top: 0.375rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }

.btn-thermal {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--del-red);
  color: var(--paper);
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background-color 0.3s ease;
}
.btn-thermal:hover { background: var(--ink); }
.btn-thermal .arrow { transition: transform 0.3s; }
.btn-thermal:hover .arrow { transform: translateX(0.375rem); }

/* ---------- 02 — immersive film ---------- */
#svc-film { position: relative; overflow: hidden; background: var(--ink); padding: 2.75rem 0 0; }
.svc-film-eyebrow-wrap { margin-bottom: 1.25rem; }
.svc-film-eyebrow { color: color-mix(in oklab, var(--paper) 50%, transparent); }
.svc-film-frame { position: relative; width: 100%; height: clamp(300px, 68vw, 420px); overflow: hidden; background: #000; }
@media (min-width: 768px) { .svc-film-frame { height: clamp(430px, 34vw, 520px); } }
.svc-film-frame video, .svc-film-frame img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center center; }
.svc-film-caption {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* ---------- 03 — comment fonctionne la thermographie ---------- */
#svc-how { border-bottom: 1px solid var(--rule); background: var(--paper); padding: 6rem 0; }
@media (min-width: 768px) { #svc-how { padding: 9rem 0; } }
#svc-how .peb-body p { max-width: 34rem; }
@media (min-width: 1024px) {
  #svc-how .peb-title { grid-column: span 6; }
  #svc-how .peb-body { grid-column: 8 / span 5; }
}

.svc-thermal-sample { margin: 1.75rem 0; max-width: 34rem; border: 1px solid var(--rule); }
.svc-thermal-sample img { display: block; width: 100%; height: auto; }
.svc-thermal-sample figcaption { padding: 0.75rem 1rem; border-top: 1px solid var(--rule); color: var(--muted-foreground); }
.svc-thermal-sample--pair { max-width: 44rem; }
.svc-thermal-sample__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.svc-thermal-sample__imgs img { height: 100%; object-fit: cover; }

.svc-distinction { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.svc-distinction .eq { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.svc-distinction .eq .ne { color: var(--del-red); }

.svc-flow { position: relative; margin-top: 1.75rem; display: flex; flex-direction: column; }
@media (min-width: 640px) {
  .svc-flow { flex-direction: row; align-items: center; }
  .svc-flow::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); }
  .svc-flow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--del-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .svc-flow.is-in::after { transform: scaleX(1); }
}
.svc-flow-step { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .svc-flow-step { flex: 1; padding: 1.25rem 0 0; border-bottom: none; } }
.svc-flow-n { color: var(--muted-foreground); min-width: 1.5rem; }
.svc-flow-step span.txt { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em; }
.svc-flow-step .chevron { margin-left: auto; color: var(--del-red); font-family: var(--font-mono); font-size: 0.75rem; }
@media (min-width: 640px) { .svc-flow-step .chevron { margin-left: 0.75rem; } }

.svc-how-close { margin-top: 2rem; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.4; color: var(--ink); }

/* ---------- 04 — photo / thermographie reveal ---------- */
#svc-reveal { border-bottom: 1px solid var(--rule); background: var(--paper); padding: 6rem 0; }
@media (min-width: 768px) { #svc-reveal { padding: 9rem 0; } }
.svc-reveal-head { max-width: 40rem; }
.svc-reveal-head p { margin-top: 1.5rem; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); }
.svc-reveal-frame {
  position: relative;
  margin-top: 3.5rem;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #000;
  cursor: default;
}
@media (min-width: 768px) {
  .svc-reveal-frame { aspect-ratio: 2 / 1; max-height: 620px; }
}
.svc-reveal-frame img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.svc-reveal-after {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 850ms cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-reveal-frame.is-active .svc-reveal-after { clip-path: inset(0 0 0 0); }
.svc-reveal-tag {
  position: absolute;
  top: 1.25rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: color-mix(in oklab, var(--ink) 55%, transparent);
  padding: 0.375rem 0.625rem;
}
.svc-reveal-tag.before { left: 1.25rem; opacity: 1; transition: opacity 0.4s ease; }
.svc-reveal-tag.after { right: 1.25rem; opacity: 0; transition: opacity 0.4s ease; }
.svc-reveal-frame.is-active .svc-reveal-tag.before { opacity: 0; }
.svc-reveal-frame.is-active .svc-reveal-tag.after { opacity: 1; }

/* ---------- 05 / 07 — editorial numbered lists ---------- */
#svc-domains { border-bottom: 1px solid var(--rule); padding: 6rem 0; }
.svc-list { margin-top: 3.5rem; border-top: 1px solid var(--rule); }
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  transition: background-color 0.4s ease;
}
@media (min-width: 768px) { .svc-row { padding: 1.75rem 0; } }
.svc-row:hover { background: var(--paper-dim); }
.svc-row .svc-n { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--muted-foreground); transition: color 0.3s ease; }
.svc-row:hover .svc-n { color: var(--del-red); }
.svc-row .svc-row-title { font-family: var(--font-display); font-size: clamp(1.125rem, 1.8vw, 1.4375rem); font-weight: 500; letter-spacing: -0.02em; }
.svc-row .svc-row-desc { margin-top: 0.5rem; max-width: 34rem; font-size: 1rem; line-height: 1.55; font-weight: 400; color: var(--ink-soft); }
.svc-row .svc-arrow { font-size: 1.125rem; color: var(--ink); transition: transform 0.4s ease, color 0.3s ease; }
.svc-row:hover .svc-arrow { color: var(--del-red); transform: translateX(6px); }

/* two-line title + desc need their own column stacking on mobile */
.svc-row-main { grid-column: 2; }
@media (max-width: 767px) { .svc-row { grid-template-columns: auto 1fr auto; } }

/* ---------- 05 — que peut-on repérer (grille avec photos) ---------- */
.svc-anomaly-grid { margin-top: 3rem; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .svc-anomaly-grid { grid-template-columns: repeat(2, 1fr); } }
.svc-anomaly-card { background: var(--paper); }
.svc-anomaly-card img { display: block; width: 100%; height: auto; }
.svc-anomaly-card figcaption { display: flex; align-items: baseline; gap: 0.625rem; padding: 1rem 1.25rem 0.375rem; }
.svc-anomaly-card.is-text-only { grid-column: 1 / -1; display: flex; align-items: center; min-height: 6rem; }
.svc-anomaly-card .svc-n { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.05em; color: var(--muted-foreground); }
.svc-anomaly-card .txt { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.svc-anomaly-card .svc-anomaly-desc { margin: 0; padding: 0 1.25rem 1.25rem; font-size: 0.875rem; line-height: 1.55; color: var(--ink-soft); }
.svc-anomaly-card .svc-anomaly-desc strong { font-weight: 500; color: var(--ink); }

/* Hover-reveal thumbnail (photo réelle → thermographie), reusing the
   hero's .svc-reveal-before/.svc-reveal-after/.svc-reveal-tag elements
   at card scale — only the sizing/position wrapper differs. */
.svc-anomaly-reveal { position: relative; aspect-ratio: 700 / 523; overflow: hidden; cursor: default; }
.svc-anomaly-reveal img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.svc-anomaly-reveal .svc-reveal-after { clip-path: inset(0 100% 0 0); transition: clip-path 850ms cubic-bezier(0.16, 1, 0.3, 1); }
.svc-anomaly-reveal.is-active .svc-reveal-after { clip-path: inset(0 0 0 0); }
.svc-anomaly-reveal .svc-reveal-tag { top: 0.75rem; font-size: 0.625rem; padding: 0.3rem 0.5rem; }
.svc-anomaly-reveal .svc-reveal-tag.before { left: 0.75rem; }
.svc-anomaly-reveal .svc-reveal-tag.after { right: 0.75rem; }
.svc-anomaly-reveal.is-active .svc-reveal-tag.before { opacity: 0; }
.svc-anomaly-reveal.is-active .svc-reveal-tag.after { opacity: 1; }

/* ---------- 06 — permits / does not permit ---------- */
#svc-limits { border-bottom: 1px solid var(--rule); background: var(--paper-dim); padding: 6rem 0; }
@media (min-width: 768px) { #svc-limits { padding: 9rem 0; } }
.svc-limits-grid { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 3rem; border-top: 1px solid var(--rule); padding-top: 3rem; }
@media (min-width: 1024px) { .svc-limits-grid { grid-template-columns: repeat(2, 1fr); gap: 5rem; } }
.svc-limits-col .label-tech { color: var(--muted-foreground); }
.svc-limits-col ul { margin-top: 1.5rem; }
.svc-limits-col li { position: relative; border-top: 1px solid var(--rule); padding: 1.125rem 0 1.125rem 1.25rem; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.svc-limits-col li:first-child { border-top: none; }
.svc-limits-col li::before { content: "—"; position: absolute; left: 0; color: var(--muted-foreground); }
.svc-limits-col:not(.is-no) li::before { color: var(--del-red); }

.svc-delta {
  margin-top: 3rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
.svc-delta .label-tech { color: var(--muted-foreground); }
.svc-delta strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; color: var(--del-red); }

.svc-quote {
  margin-top: 4rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  max-width: 32ch;
  text-wrap: balance;
}

/* ---------- 08 — expertise / certification ---------- */
#svc-expertise { border-bottom: 1px solid var(--rule); background: var(--ink); color: var(--paper); padding: 6rem 0; }
@media (min-width: 768px) { #svc-expertise { padding: 7rem 0; } }
.svc-expertise-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .svc-expertise-grid { grid-template-columns: repeat(12, 1fr); gap: 2.5rem; } }
.svc-expertise-mark { grid-column: 1 / -1; }
@media (min-width: 1024px) { .svc-expertise-mark { grid-column: span 5; } }
.svc-expertise-mark .rule { display: block; height: 2px; width: 2.5rem; background: var(--del-red); margin-bottom: 1.25rem; }
.svc-expertise-mark .label-tech { color: color-mix(in oklab, var(--paper) 45%, transparent); }
.svc-expertise-mark .num { margin-top: 1rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 0.9; font-size: clamp(3.5rem, 8vw, 6rem); }
.svc-expertise-mark .cap { margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in oklab, var(--paper) 60%, transparent); }
.svc-expertise-body { grid-column: 1 / -1; }
@media (min-width: 1024px) { .svc-expertise-body { grid-column: 7 / span 6; } }
.svc-expertise-body p { max-width: 30rem; font-size: 1.0625rem; line-height: 1.65; color: color-mix(in oklab, var(--paper) 75%, transparent); }
.svc-expertise-rel { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in oklab, var(--paper) 15%, transparent); display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.svc-expertise-rel .pair { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in oklab, var(--paper) 65%, transparent); }
.svc-expertise-rel .pair .arrow { color: var(--del-red); }

/* ---------- 09 — de l'observation au rapport (timeline) ---------- */
#svc-timeline { border-bottom: 1px solid var(--rule); background: var(--paper); padding: 6rem 0; }
@media (min-width: 768px) { #svc-timeline { padding: 9rem 0; } }
.svc-obs-timeline { margin-top: 4rem; }
.svc-obs-steps { display: flex; flex-direction: column; }
@media (min-width: 768px) { .svc-obs-steps { flex-direction: row; gap: 2.5rem; } }
.svc-obs-step { position: relative; padding: 1.75rem 0; border-top: 1px solid var(--rule); transition: border-color 0.5s ease; }
@media (min-width: 768px) { .svc-obs-step { flex: 1; padding: 2rem 0 0; } }
.svc-obs-step.is-active, .svc-obs-step.is-passed { border-top-color: var(--del-red); }
.svc-obs-dot { display: none; }
@media (min-width: 768px) {
  .svc-obs-dot {
    display: block;
    position: absolute;
    top: -5px;
    left: 0;
    height: 9px;
    width: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--rule-dark);
    transition: background-color 0.5s ease, border-color 0.5s ease;
  }
  .svc-obs-step.is-active .svc-obs-dot, .svc-obs-step.is-passed .svc-obs-dot { background: var(--del-red); border-color: var(--del-red); }
}
.svc-obs-n { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted-foreground); transition: color 0.4s ease; }
.svc-obs-step.is-active .svc-obs-n { color: var(--del-red); }
.svc-obs-step h3 { margin-top: 0.875rem; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.02em; }
.svc-obs-step p { margin-top: 0.75rem; max-width: 22rem; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- 10 — positioning ---------- */
#svc-position { background: var(--ink); color: var(--paper); padding: 7rem 0; }
@media (min-width: 768px) { #svc-position { padding: 10rem 0; } }
.svc-position-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 0.95; font-size: clamp(2.5rem, 6.5vw, 5.5rem); text-wrap: balance; }
.svc-position-sub { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(1.375rem, 2.6vw, 2rem); color: color-mix(in oklab, var(--paper) 80%, transparent); text-wrap: balance; }
.svc-position-body { margin-top: 2.5rem; max-width: 32rem; font-size: 1rem; line-height: 1.65; color: color-mix(in oklab, var(--paper) 72%, transparent); }
.svc-position-stack { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; border-top: 1px solid color-mix(in oklab, var(--paper) 15%, transparent); padding-top: 1.5rem; }
.svc-position-stack span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: color-mix(in oklab, var(--paper) 60%, transparent); }
.svc-position-stack span + span::before { content: "+"; margin-right: 2rem; color: var(--del-red); }

/* ---------- cross-navigation ---------- */
#svc-crosslink { border-bottom: 1px solid var(--rule); background: var(--paper); padding: 6rem 0; }
@media (min-width: 768px) { #svc-crosslink { padding: 8rem 0; } }
.svc-crosslink-head { max-width: 34rem; }
.svc-crosslink-head p { margin-top: 1.25rem; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.svc-crosslink-links { margin-top: 3rem; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .svc-crosslink-links { grid-template-columns: repeat(3, 1fr); } }
.svc-crosslink-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s ease;
}
@media (min-width: 640px) {
  .svc-crosslink-link { padding: 1.75rem 2rem; }
  .svc-crosslink-link:first-child { padding-left: 0; }
  .svc-crosslink-link:last-child { padding-right: 0; }
  .svc-crosslink-link:not(:last-child) { border-right: 1px solid var(--rule); }
}
.svc-crosslink-link .txt { font-family: var(--font-display); font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); font-weight: 500; letter-spacing: -0.02em; }
.svc-crosslink-link .arrow { font-size: 1.25rem; color: var(--ink); transition: transform 0.4s ease, color 0.3s ease; }
.svc-crosslink-link:hover .arrow { color: var(--del-red); transform: translateX(6px); }
.svc-crosslink-cta { display: flex; align-items: center; gap: 0.625rem; }
.svc-crosslink-label { color: var(--muted-foreground); transition: color 0.3s ease; }
.svc-crosslink-link:hover .svc-crosslink-label { color: var(--del-red); }

/* ---------- 11 — final CTA ---------- */
#svc-cta { padding: 7rem 0 8rem; }
.svc-cta-inner { border-top: 1px solid var(--rule); padding-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .svc-cta-inner { grid-template-columns: repeat(12, 1fr); align-items: center; } }
.svc-cta-title { grid-column: 1 / -1; }
@media (min-width: 1024px) { .svc-cta-title { grid-column: span 7; } }
.svc-cta-title h2 { margin-top: 1rem; }
.svc-cta-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
@media (min-width: 1024px) { .svc-cta-actions { grid-column: 9 / span 4; align-items: flex-end; } }
.svc-cta-actions p { max-width: 26rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 1024px) { .svc-cta-actions p { text-align: right; } }
.svc-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
