/* ==========================================================================
   VM Garage - pages de contenu (prestations, garage, accès, mentions)
   + ajustements de l'accueil et du pied de page liés au SEO.
   Chargé par toutes les pages publiques, après site.css et footer.css.
   ========================================================================== */

/* ---------- Mise en page article + encadré ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.article--wide { grid-template-columns: minmax(0, 1fr) 340px; }
.article__main { min-width: 0; max-width: 780px; }

.prose p, .prose li { font-size: 17px; line-height: 1.65; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; margin: 28px 0 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote { margin: 24px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--tint); }
.prose blockquote p { margin: 0 0 6px; font-size: 17px; color: var(--label); }
.prose cite { display: block; font-style: normal; font-size: 14px; color: var(--label-2); }
.prose address { font-style: normal; margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.prose table { width: 100%; max-width: 560px; margin: 0 0 18px; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); font-size: 16px; }
.prose th, .prose td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--sep); vertical-align: top; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose thead th { font-size: 13.5px; font-weight: 600; color: var(--label-2); background: var(--surface-2); }
.prose tbody th { font-weight: 600; }
.prose .dist td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose .facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; padding: 20px 22px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1); font-size: 16px; }
.prose .facts dt { font-weight: 600; color: var(--label-2); }
.prose .facts dd { margin: 0; }
.prose .updated { margin-top: 36px; font-size: 14px; color: var(--label-3); }

/* Encadré de contact */
.aside-card { position: sticky; top: calc(var(--nav-top) + var(--nav-h) + 24px); display: grid; gap: 10px; padding: 24px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-1); }
.aside-card h2 { margin: 0 0 2px; font: 700 22px/1.15 var(--display); letter-spacing: -.025em; }
.aside-card p, .aside-card address { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--label-2); font-style: normal; }
.aside-card address strong { color: var(--label); }
.aside-card .btn { width: 100%; }
.aside-card__more { text-align: center; }
.aside-card__more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.aside-card__more a:hover { text-decoration: underline; }

/* Autres prestations */
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.related a { display: block; height: 100%; padding: 22px; border-radius: var(--r-lg); background: var(--bg); color: var(--label); text-decoration: none; transition: background-color .3s, transform .5s var(--ease); }
.related a:hover { background: #ECECEF; transform: translateY(-2px); }
.related b { display: block; margin-bottom: 6px; font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.related span { display: block; font-size: 15px; line-height: 1.5; color: var(--label-2); }

/* Page d'ensemble des prestations */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.svc-card a { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: #fff; color: var(--label); text-decoration: none; box-shadow: var(--shadow-1); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.svc-card a:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, .04), 0 24px 48px -18px rgba(17, 18, 20, .25); }
.svc-card__body { display: block; padding: 24px 24px 26px; }
.svc-card__t { margin: 0 0 8px; font: 700 22px/1.15 var(--display); letter-spacing: -.025em; }
.svc-card__p { display: block; font-size: 15.5px; line-height: 1.5; color: var(--label-2); }

/* ---------- Accueil : prestations reliées à leurs pages ---------- */
.prest__item { grid-template-columns: minmax(0, 1fr); padding: 22px 56px 22px 24px; }
.prest__t a { color: inherit; text-decoration: none; }
.prest__t a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.prest__t a:focus-visible { outline: none; }
.prest__item:focus-within { outline: 2px solid var(--tint); outline-offset: 3px; }
.prest__go { position: absolute; top: 24px; right: 22px; width: 20px; height: 20px; color: var(--label-3); transition: transform .4s var(--ease), color .3s; }
@media (hover: hover) { .prest__item:hover .prest__go { transform: translateX(3px); color: var(--accent); } }
.plus__txt { font-weight: 600; }
.rv__links { display: flex; flex-wrap: wrap; gap: 8px; }
.zone__text a:not(.btn) { color: var(--accent); }
.zone__list a { color: var(--label); }

/* ---------- Pied de page : 5 colonnes ---------- */
.foot__inner { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
.foot__name { color: #fff; font-weight: 600; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot__bottom .foot__links a { margin-left: 0; }
.foot__bottom .foot__links span a { color: rgba(255, 255, 255, .7); }

/* ---------- Cartes swisstopo rapprochées (accès, contact) ---------- */
.access { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.access__info > h2:first-child { margin-top: 0; }
.access__info .hours { max-width: 420px; }
.prose .btn { color: var(--tint-ink); text-decoration: none; }
.vmap--close .vmap__view { height: clamp(400px, 44vw, 600px); }
.vmap--compact { margin-top: 14px; }
.vmap--compact .vmap__view { height: clamp(300px, 30vw, 380px); border-radius: var(--r-lg); }
.contact .vmap__info-v { font-size: 16px; }
@media (max-width: 960px) { .access { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .foot__inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .article, .article--wide { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .prest__item { padding: 18px 44px 18px 18px; }
  .prest__go { top: 20px; right: 16px; }
  .prose p, .prose li { font-size: 16.5px; }
  .prose .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .prose .facts dd { margin-bottom: 10px; }
}
@media (max-width: 520px) { .foot__inner { grid-template-columns: 1fr; gap: 30px; } }
