/* Rystart — page « Le parcours d'un client » : le plan d'un établissement, vu d'en haut.
   Sept étoiles à toucher. Sans JavaScript, le plan s'affiche et les sept endroits se lisent à la suite. */
:root { --entete-h: 4.95rem; }
@media (min-width: 80rem) { :root { --entete-h: 5.82rem; } }
.page-plein .ouverture { border-bottom: var(--filet); }


.p-corps { position: relative; }
.js .p-corps { height: calc(100vh - var(--entete-h)); height: calc(100svh - var(--entete-h)); min-height: 30rem; }
.p-carte { position: relative; overflow: hidden; }
.p-dessin { color: var(--bordeaux); transform-origin: 0 0; }
.p-dessin svg { display: block; width: 100%; height: auto; overflow: visible; }

.js .p-carte { height: 100%; container-type: size; display: grid; place-items: center; padding: .6rem .6rem calc(var(--reserve, 15rem) + .6rem); }
.js .p-dessin { width: min(100cqw, 100cqh * .8); aspect-ratio: 4 / 5; transition: transform .75s cubic-bezier(.3, .6, .25, 1); }
html:not(.js) .p-dessin { max-width: 34rem; margin: 1rem auto; }
html:not(.js) .p-panneau { padding-bottom: 3rem; }

/* Le dessin */
.mur { fill: none; stroke: currentColor; stroke-width: 8; stroke-linecap: square; }
.cloison { fill: none; stroke: currentColor; stroke-width: 4; }
.trait { fill: none; stroke: currentColor; stroke-width: 1.6; }
.trait--leger { stroke-dasharray: 3 6; }
.meuble { fill: var(--ivoire-ombre); stroke: currentColor; stroke-width: 1.6; }
.meuble--rose { fill: var(--rose); }
.sol { fill: var(--papier); }
.nom { font-family: var(--f-texte); font-style: italic; font-size: 27px; fill: currentColor; }
.titre-plan { font-family: var(--f-titre); font-size: 40px; fill: currentColor; letter-spacing: -.01em; }
.sous-titre-plan { font-family: var(--f-texte); font-style: italic; font-size: 25px; fill: var(--encre-douce); }
.trajet { fill: none; stroke: var(--rose-soutenu); stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 13; }
.marcheur { fill: var(--bordeaux); }

.repere { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.repere__zone { fill: transparent; }
.repere__rond { fill: var(--papier); stroke: currentColor; stroke-width: 1.6; transition: fill .25s, r .25s; }
.repere__etoile { fill: none; stroke: var(--or-trait); stroke-width: 1.5; stroke-linejoin: round; transition: fill .25s, stroke .25s; }
.repere__onde { fill: none; stroke: var(--rose-soutenu); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: onde 3.2s ease-out infinite; }
.repere:nth-of-type(2n) .repere__onde { animation-delay: 1.1s; }
.repere:nth-of-type(3n) .repere__onde { animation-delay: 2s; }
.repere.vu .repere__etoile { fill: var(--or); }
.repere.vu .repere__onde { animation: none; opacity: 0; }
.repere:hover .repere__rond { fill: var(--rose); }
.repere.actif .repere__rond { fill: var(--bordeaux); }
.repere.actif .repere__etoile { fill: var(--or); stroke: var(--or); }
.repere:focus-visible .repere__rond { stroke-width: 5; }
@keyframes onde { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

/* Le panneau : en bas sur téléphone, à droite sur ordinateur */
.p-panneau { background: var(--papier); padding: 1rem var(--gouttiere) 1.1rem; }
.js .p-panneau { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-height: 66%; overflow: auto; overscroll-behavior: contain; border-top: var(--filet-fort); box-shadow: 0 -.5rem 0 var(--rose); }
.js .p-panneau:not(.pret) article.lieu { display: none; }
.lieu > * + * { margin-top: .75rem; }
html:not(.js) .lieu + .lieu { margin-top: 2.5rem; padding-top: 2rem; border-top: var(--filet); }
.lieu__tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: -.35rem; }
.lieu__nom { font-style: italic; color: var(--encre-douce); }
.lieu__nom i { margin-left: .5rem; padding-left: .6rem; border-left: 1px solid var(--rose-soutenu); }
.lieu__fermer { display: none; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; margin-right: -.6rem; padding: 0 .6rem; border: 0; background: none; color: inherit; font: inherit; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--rose-soutenu); text-underline-offset: .22em; cursor: pointer; }
.js .lieu__fermer { display: inline-flex; }
.lieu h1, .lieu h2 { font-size: clamp(1.7rem, 6.4vw, 2.3rem); line-height: 1.1; }
.lieu__voix { font-family: var(--f-titre); font-size: 1.3rem; line-height: 1.3; padding-left: .9rem; border-left: 1px solid var(--rose-soutenu); }
.lieu__voix small { display: block; margin-top: .3rem; font-family: var(--f-texte); font-style: italic; font-size: .82rem; color: var(--encre-douce); }
.lieu__offre { display: block; padding: .8rem 0 .2rem; border-top: var(--filet-fort); }
.lieu__ligne { display: flex; align-items: baseline; gap: .7rem; }
.lieu__ligne b, .lieu__ligne > span { font-family: var(--f-titre); font-weight: 400; font-size: 1.6rem; line-height: 1.2; white-space: nowrap; }
.lieu__ligne i { flex: 1; min-width: 1rem; border-bottom: 1px dotted currentColor; transform: translateY(-.3em); }
.lieu__ligne small { font-family: var(--f-texte); font-size: .9rem; }
.lieu__offre p { margin-top: .3rem; font-size: .96rem; line-height: 1.5; }
.lieu__refus { list-style: none; padding: 0; font-family: var(--f-titre); font-size: 1.3rem; line-height: 1.35; }
.lieu__refus s { text-decoration-color: var(--rose-soutenu); text-decoration-thickness: 1.5px; }
.lieu__numero { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--f-titre); font-size: clamp(2.4rem, 11vw, 3.2rem); line-height: 1; text-decoration: none; white-space: nowrap; }
.lieu__suite { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.lieu__suite a:not(.btn), .lieu__suivant { display: inline-flex; align-items: center; min-height: 2.75rem; }
.lieu__suivant { margin-left: auto; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-style: italic; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rose-soutenu); text-underline-offset: .22em; }
html:not(.js) .lieu__suivant { display: none; }

@media (min-width: 60rem) {
  .js .p-corps { display: grid; grid-template-columns: minmax(0, 1fr) 28rem; }
  .js .p-carte { padding: 1.25rem; }
  .js .p-panneau { position: static; max-height: none; border-top: 0; border-left: var(--filet-fort); box-shadow: none; padding: clamp(1.5rem, 4vh, 3rem) 2.25rem 2rem; display: flex; flex-direction: column; }
  .js .p-panneau > .lieu { margin-block: auto; }
  .lieu > * + * { margin-top: 1.1rem; }
  .lieu h1, .lieu h2 { font-size: clamp(2rem, 2.9vw, 2.9rem); }
  .lieu__voix { font-size: 1.5rem; }
  .lieu--intro h1 { font-size: clamp(2.6rem, 3.8vw, 3.8rem); line-height: 1.02; }
}
@media (prefers-reduced-motion: reduce) {
  .js .p-dessin { transition: none; }
  .repere__onde { animation: none; opacity: 0; }
}
