/* Plan d'accès interactif — page /venir-a-l-alpe-dhuez
   Couleurs des repères : vert = entrée, bleu = garage, violet = Télécentre. */
.pa { margin: 30px 0 8px; --pa-red:#c62828; --pa-blue:#1e5ac8; --pa-green:#148c46; --pa-violet:#7a3cc8; }
.pa-map { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: #e5e3df; }
.pa-map svg { display: block; width: 100%; height: auto; }
.pa-credit { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.88); font-size: 11px; padding: 2px 6px; color: #444; }
.pa-credit a { color: inherit; text-decoration: none; }

.pa-route, .pa-route-bg { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pa-route-bg { stroke: #fff; stroke-width: 12; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.pa-route { stroke: var(--pa-red); stroke-width: 7; }
/* Le trajet se dessine, reste affiché quelques secondes, s'efface, puis se redessine. */
.pa.is-visible .pa-route, .pa.is-visible .pa-route-bg { animation: pa-draw-boucle 9s .2s ease-in-out infinite; }
.pa-walk, .pa-walk-bg { fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pa-walk-bg { stroke: rgba(255,255,255,.9); stroke-width: 9; }
.pa-walk { stroke: var(--pa-violet); stroke-width: 5; stroke-dasharray: 0.1 10; }
.pa.is-visible .pa-walk-bg { animation: pa-fade .6s 3s forwards; }
.pa.is-visible .pa-walk { animation: pa-fade .6s 3s forwards, pa-march 1.4s linear infinite; }

.pa-pin { cursor: pointer; opacity: 0; transform-box: fill-box; transform-origin: center bottom; }
.pa.is-visible .pa-pin { animation: pa-pop .5s cubic-bezier(.3,1.6,.5,1) forwards; }
.pa-pin:focus { outline: none; }
.pa-pin .pa-dot { stroke: #fff; stroke-width: 3; transition: stroke-width .2s, filter .2s; }
.pa-pin:hover .pa-dot, .pa-pin:focus-visible .pa-dot { stroke-width: 4.5; filter: brightness(1.15); }
.pa-pin .pa-ring { fill: none; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: pa-pulse 2s ease-out infinite; }
.pa-pin text { font: 800 17px var(--body); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pa-ico { fill: none; stroke: #fff; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.pa-tag { font: 700 13px var(--body); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; opacity: 0; }
.pa.is-visible .pa-tag { animation: pa-fade .4s forwards; }

@keyframes pa-draw { to { stroke-dashoffset: 0; } }
@keyframes pa-draw-boucle {
  0%   { stroke-dashoffset: 1; opacity: 1; }
  25%  { stroke-dashoffset: 0; opacity: 1; }
  82%  { stroke-dashoffset: 0; opacity: 1; }
  92%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}
@keyframes pa-fade { to { opacity: 1; } }
@keyframes pa-march { to { stroke-dashoffset: -10.1; } }
@keyframes pa-pop { 0% { opacity: 0; transform: translateY(-14px) scale(.4); } 100% { opacity: 1; transform: none; } }
@keyframes pa-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }

.pa-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 0; padding: 0 !important; }
.pa-legend li { margin: 0; font-size: 14px; text-align: left; display: flex; align-items: center; gap: 8px; }
.pa-legend button { font: 500 14px var(--body); color: var(--fg); cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.pa-legend button:hover, .pa-legend button:focus-visible { border-color: var(--c); background: var(--accent-soft); }
.pa-sw { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.pa-ln { width: 24px; height: 5px; border-radius: 3px; background: var(--pa-red); }
.pa-lw { width: 24px; border-top: 4px dotted var(--pa-violet); }
.pa-gps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pa-gps .btn { text-decoration: none !important; }
.pa-gps .btn-alt { background: var(--panel); color: var(--fg); border-color: var(--fg); }
.pa-gps .btn-alt:hover { background: var(--accent-soft); }

/* Fiche (dialog natif) */
.pa-fiche { padding: 0; border: 0; border-radius: 4px; max-width: min(520px, calc(100vw - 32px)); width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.3); overflow: hidden; }
.pa-fiche::backdrop { background: rgba(15,20,30,.55); }
.pa-fiche[open] { animation: pa-in .3s cubic-bezier(.2,1.3,.4,1); }
@keyframes pa-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.pa-fiche img { display: block; width: 100%; max-height: 60vh; object-fit: cover; }
.pa-ph { height: 180px; display: grid; place-items: center; color: var(--muted); font: 600 14px var(--body);
  background: repeating-linear-gradient(45deg,#eee,#eee 10px,#e5e5e5 10px,#e5e5e5 20px); }
.pa-fb { padding: 16px 20px 20px; border-top: 5px solid var(--c, var(--accent)); }
.pa-fb h3 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; color: var(--c, var(--accent)); }
.pa-fb p { margin: 0; font: 15px/1.6 var(--body); color: var(--muted); }
.pa-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* Version page d'accueil : bandeau sombre, dans la continuité de la
   réservation et du pied de page. Carte à gauche, repères à droite. */
.pa-home { position: relative; background: linear-gradient(180deg, var(--dark) 0%, #15222a 55%, var(--dark) 100%); color: #e7ebec;
  padding-block: calc(var(--section) * .7) var(--section); border-top: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.pa-home::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(29,78,83,.45), transparent); pointer-events: none; }
.pa-home .wrap { position: relative; }
.pa-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.pa-head h2 { color: #fff; margin: 4px 0 0; }
.pa-head p.pa-intro { margin: 0; max-width: 40ch; color: #aab3b8; font-size: 15px; line-height: 1.6; }
.pa-home .pa { margin: 0; }
.pa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pa-grid .pa-map { border: 0; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.8); }
.pa-grid .pa-credit { border-top-left-radius: 4px; }
.pa-side { display: flex; flex-direction: column; gap: 10px; }
.pa-adresse { font-family: var(--display); font-size: 26px; line-height: 1.2; margin: 0 0 8px; color: #fff; }
.pa-adresse span { display: block; font-family: var(--body); font-size: 13px; color: #8d9499; margin-top: 6px; letter-spacing: .03em; }
.pa-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 6px;
  font: 500 15px var(--body); color: #fff; transition: background .2s, border-color .2s, transform .2s; }
.pa-item .pa-sw { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.pa-item .pa-sw::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pa-item b { display: block; font-weight: 600; }
.pa-item small { display: block; font-size: 13px; color: #9aa3a8; margin-top: 2px; }
.pa-item .pa-fl { margin-left: auto; color: #8d9499; font-size: 18px; transition: transform .2s, color .2s; }
.pa-item:hover, .pa-item:focus-visible { background: rgba(255,255,255,.08); border-color: var(--c); transform: translateY(-1px); }
.pa-item:hover .pa-fl, .pa-item:focus-visible .pa-fl { color: #fff; transform: translateX(3px); }
.pa-cles { display: flex; gap: 18px; font-size: 13px; color: #9aa3a8; margin: 6px 2px 4px; }
.pa-cles span { display: flex; align-items: center; gap: 8px; }
.pa-home .pa-lw { border-top-color: #b48ef0; }
.pa-gps-titre { margin: 10px 2px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8d9499; }
.pa-side .pa-gps { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pa-side .pa-gps .btn { width: 100%; min-width: 0; white-space: normal; justify-content: center; text-align: center; padding: 13px 8px; border-radius: 6px; font-size: 14px; line-height: 1.25; }
.pa-home .pa-gps .btn-primary { background: #fff; color: var(--dark); border-color: #fff; }
.pa-home .pa-gps .btn-primary:hover { background: #e6efef; }
.pa-home .pa-gps .btn-alt { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.pa-home .pa-gps .btn-alt:hover { background: rgba(255,255,255,.08); border-color: #fff; }
@media (max-width: 900px) {
  .pa-grid { grid-template-columns: 1fr; }
  .pa-head { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .pa *, .pa-fiche { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .pa-pin .pa-ring { display: none; }
  .pa .pa-route, .pa .pa-route-bg { animation: none !important; stroke-dashoffset: 0; }
}
