/* Additions made after the Ember conversion. The two files loaded before this
   one (vendor.css, app.css) are frozen build artifacts and must not be edited —
   see reference/README.md. Put every new rule here. */

/* The nav links are in-page anchors; the theme never shipped smooth-scroll JS. */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* app.css line ~1092 removes the focus ring globally
   (`*:focus { outline: 2px solid transparent }`), a WCAG 2.4.7 failure.
   Restore a visible indicator for keyboard users only. */
:focus-visible {
  outline: 2px solid #f94f4f;
  outline-offset: 2px;
}

/* Carried over from the inline <style> block in the old map.hbs component. */
#map:focus {
  outline: #4a74a8 solid 0.15em;
}

/* The contact block's icons are inline SVGs followed by text; keep them from
   colliding when the line wraps. */
.contact_wrapper .section_title p .svg-inline--fa {
  vertical-align: -0.125em;
}

/* ---- Service pages (added with the per-service SEO pages) ----
   Only classes prefixed `sp-` live here. The frozen app.css contains only the
   Tailwind utilities the Ember app happened to use, so anything else (lists,
   max-widths, gaps) has to be written out by hand. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The navbar is position:fixed, so the first block on a page without the
   home hero has to clear it. */
.sp-hero {
  padding-top: 120px;
  padding-bottom: 60px;
}
.sp-hero-text {
  margin: 0 16px;
}
.sp-hero-image {
  display: flex;
  justify-content: center;
  margin: 40px 16px 0;
}
.sp-hero-image img {
  max-width: 100%;
  height: auto;
}
@media (min-width: 960px) {
  .sp-hero {
    padding-top: 150px;
    padding-bottom: 80px;
  }
  .sp-hero-image {
    margin-top: 0;
  }
}

/* Portrait workshop photo: cap the height so it does not tower over the text. */
.sp-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: 560px;
  object-fit: cover;
  border-radius: 24px;
  border-top-right-radius: 0;
}
.about_image .sp-photo {
  margin: 0 auto;
}

.sp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 16px 24px;
  font-size: 0.9rem;
}
.sp-breadcrumb li + li::before {
  content: '›';
  margin: 0 8px;
  color: #6b7280;
}
.sp-breadcrumb a {
  color: #f94f4f;
}

.sp-section {
  padding-top: 80px;
}
.sp-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.sp-prose > h2 {
  margin-top: 40px;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #121212;
}
.sp-prose > h2:first-child {
  margin-top: 0;
}
.sp-prose p {
  margin-top: 16px;
}
.sp-prose ul,
.sp-prose ol {
  margin-top: 16px;
  padding-left: 24px;
}
.sp-prose ul {
  list-style: disc;
}
.sp-prose ol {
  list-style: decimal;
}
.sp-prose li {
  margin-top: 8px;
}
.sp-prose a,
.sp-more {
  color: #f94f4f;
  font-weight: 600;
}
.sp-more {
  display: inline-block;
}
.sp-cta {
  margin-top: 32px !important;
  padding: 20px 24px;
  background: #f5f5fc;
  border-left: 4px solid #f94f4f;
}

.sp-prose ul.sp-others {
  padding-left: 0;
  list-style: none;
}
.sp-others li {
  margin-top: 20px;
}
.sp-others a {
  font-size: 1.125rem;
}
.sp-others p {
  margin-top: 4px;
}

/* Footer "Liens": the anchors are inline, so the theme's mt-4 never applied.
   With six links the list needs real spacing. */
.footer_link .link li + li {
  margin-top: 8px;
}
