/* Page Services — bouton d'action unique, liste de prestations, lien méthode.
   Scopé à body.agency-page ; desktop : descriptions longues conservées. */
body.agency-page .service-short { display: none; }
body.agency-page .service-copy .service-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(40px, auto); gap: 4px 18px; margin: 26px 0 22px; padding: 0;
}
body.agency-page .service-copy .service-list li {
  padding: 0; border: 0; background: none; border-radius: 0; display: flex;
}
body.agency-page .service-list a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  color: rgba(255,255,255,.82); font-weight: 700; font-size: .92rem; line-height: 1.3;
  text-decoration: none; transition: color .2s;
}
body.agency-page .service-list a::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #9d98ff;
}
body.agency-page .service-list a:hover { color: #fff; }
body.agency-page .service-cta { display: inline-flex; }
body.agency-page .service-note {
  margin: 12px 0 0; font-size: .8rem !important; line-height: 1.5; color: rgba(255,255,255,.55) !important;
}
body.agency-page .service-media .service-media-site { object-position: top center; }
body.agency-page .services-method-link {
  margin: 0; padding: 8px clamp(20px,5vw,80px) 64px; text-align: center;
}
body.agency-page .services-method-link a {
  color: rgba(255,255,255,.5); font-size: .85rem; text-decoration: none;
}
body.agency-page .services-method-link a:hover { color: rgba(255,255,255,.8); }
body.agency-page .service-list a:focus { outline: none; }
body.agency-page .service-list a:focus-visible,
body.agency-page .services-method-link a:focus-visible,
body.agency-page .service-cta:focus-visible { outline: 2px solid #1CC6ED; outline-offset: 3px; border-radius: 6px; }
body.agency-page .service-cta:focus:not(:focus-visible) { outline: none; }

@media (max-width: 760px) {
  body.agency-page .service-long { display: none; }
  body.agency-page .service-short { display: block; }
  body.agency-page .service-showcase { padding-bottom: 48px !important; }
  body.agency-page .service-copy .service-list {
    grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 44px);
    grid-auto-rows: 44px; gap: 0 12px; margin: 14px 0 16px;
  }
  body.agency-page .service-copy .service-list li { padding: 0 !important; border: 0 !important; background: none !important; }
  body.agency-page .service-list a { font-size: .76rem; min-height: 44px; }
  body.agency-page .service-cta { display: flex; width: 100%; justify-content: center; }
  body.agency-page .am-hint {
    margin: 0 2px 16px; font-size: .72rem; color: rgba(255,255,255,.5); text-align: left;
  }
  body.agency-page .am-tabs-wrap { position: relative; }
  body.agency-page .am-tabs-wrap::before, body.agency-page .am-tabs-wrap::after {
    content: none;
  }
  body.agency-page .am-tabs-wrap::before { left: 0; background: linear-gradient(90deg, var(--dark), transparent); }
  body.agency-page .am-tabs-wrap::after { right: 0; background: linear-gradient(270deg, var(--dark), transparent); }
  body.agency-page .am-tabs-wrap.can-left::before, body.agency-page .am-tabs-wrap.can-right::after { opacity: 1; }
  body.agency-page .am-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0; }
  body.agency-page .am-pager .am-dots { padding: 0; }
  body.agency-page .am-count { font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
  body.agency-page .service-strip.am-active { touch-action: pan-y; }
  body.agency-page .am-tabs button:focus:not(:focus-visible),
  body.agency-page .am-dots button:focus:not(:focus-visible),
  body.agency-page .service-strip:focus:not(:focus-visible) { outline: none; }
  body.agency-page .back-to-top { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 340px) {
  body.agency-page .service-copy .service-list { grid-template-columns: 1fr; grid-template-rows: repeat(5, 40px); }
  body.agency-page .service-list a { min-height: 40px; }
}
@media (max-width: 760px) {
  body.agency-page .service-showcase { grid-template-columns: minmax(0, 1fr); }
  body.agency-page .service-strip.am-active { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  body.agency-page .service-copy, body.agency-page .service-list li, body.agency-page .service-list a { min-width: 0; }
  body.agency-page .service-cta { white-space: normal; }
}
@media (max-width: 760px) {
  /* Visuel, progression et texte restent groupés, à leur hauteur naturelle. */
  body.agency-page .service-strip.am-active {
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 10px !important;
  }
  body.agency-page .am-tabs {
    touch-action: pan-x pan-y;
    scroll-padding-inline: 4px;
    padding: 6px 4px 12px;
    margin: 0 -4px;
  }
  body.agency-page .am-tabs button {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    letter-spacing: 0;
  }
}
