/* Runa — carte « Nous trouver » (accueil). Aperçu hébergé sur le site ; la carte Google ne se charge qu'au clic
   (aucun cookie tiers tant que le visiteur ne l'a pas demandée). */
@layer retouches{

.mapa{position:relative;background:#EFEBDF;width:100%;max-width:520px;height:clamp(120px,calc(100vh - 640px),240px);margin-top:26px;overflow:hidden;border-radius:2px;box-shadow:0 10px 28px rgba(0,0,0,.38);text-shadow:none}
.mapa-a{display:block;position:relative;width:100%;height:100%;color:inherit;text-decoration:none;cursor:pointer}
.mapa-a img{display:block;width:100%;height:100%;object-fit:cover;transition:filter .3s ease}
.mapa-a:hover img{filter:brightness(.96)}
.mapa-b{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:5px;padding:11px 18px 9px;background:#2F3E38;color:#F2F0E6;font:400 .75rem/1 "Josefin Sans",sans-serif;letter-spacing:.18em;text-transform:uppercase;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.mapa-b small{font-size:.625rem;letter-spacing:.06em;text-transform:none;opacity:.72}
.mapa-a:hover .mapa-b,.mapa-a:focus-visible .mapa-b{background:#24302b}
.mapa-a:focus-visible{outline:2px solid #F2F0E6;outline-offset:3px}
.mapa-osm{position:absolute;right:0;top:0;padding:1px 5px;background:rgba(255,255,255,.75);color:#4a4a4a!important;font:400 .625rem/1.5 system-ui,sans-serif;text-decoration:none;letter-spacing:0}
.mapa iframe{display:block;width:100%;height:100%;border:0}
.mapa.on .mapa-osm{display:none}
.mapa.mapa-x{display:none}
/* « Itinéraire » passe dans le coin de la carte ; la ligne au-dessus ne s'affiche que si la carte est masquée */
.tx.has-map > p.c{display:none}
.mapa-it{position:absolute;left:8px;top:8px;display:inline-flex;align-items:center;gap:6px;padding:8px 11px 6px;background:#F2F0E6;color:#2F3E38!important;font:400 .6875rem/1 "Josefin Sans",sans-serif;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;box-shadow:0 2px 8px rgba(40,30,20,.22)}
.mapa-it:hover,.mapa-it:focus-visible{background:#fff}
.mapa-it:focus-visible{outline:2px solid #2F3E38;outline-offset:2px}
.mapa-it .fl{width:8px;height:8px;fill:none;stroke:currentColor;stroke-width:1.4}
.mapa.on .mapa-it{display:none}
/* Ordinateur : un peu moins d'espace entre les lignes de cet écran pour laisser de la place à la carte */
@media (min-width:900px) and (min-aspect-ratio:5/4) and (min-height:501px){
  .sl[data-h="encontrar"] .t2{margin-bottom:22px}
  .sl[data-h="encontrar"] .tx .c{margin-top:22px}
  .sl[data-h="encontrar"] .tx .mapa{margin-top:20px}
}
/* Téléphone et tablette en portrait : photo de la façade en haut, adresse, carte pleine largeur, mentions.
   La photo remplit la place libre (carte.js) ; sur un écran court (iPhone dans Safari), l'écran est un peu plus long
   que la fenêtre et on glisse une fois de plus pour voir la carte. */
@media (max-width:899px) and (orientation:portrait),(max-aspect-ratio:1249/1000) and (orientation:portrait){
  html body .sls .sl[data-h="encontrar"]{height:auto;min-height:100%;padding-top:112px;display:flex;flex-direction:column;box-sizing:border-box}
  html body .sls .sl[data-h="encontrar"] .tx{position:relative;top:auto;left:auto;right:auto;bottom:auto;margin:22px 20px 0}
  html body .sls .sl[data-h="encontrar"] .pf{position:relative;left:auto;right:auto;bottom:auto;margin:auto 20px 0;padding:22px 0 18px;scroll-snap-align:end}
  .mapa{max-width:none;width:100%;margin-top:16px;height:clamp(160px,25svh,230px)}
}
@media (min-width:700px) and (max-aspect-ratio:1249/1000) and (orientation:portrait){
  html body .sls .sl[data-h="encontrar"]{padding-top:140px}
  html body .sls .sl[data-h="encontrar"] .tx{margin:28px 44px 0}
  html body .sls .sl[data-h="encontrar"] .pf{margin:auto 44px 0;padding:28px 0 24px}
  .mapa{max-width:640px;height:clamp(200px,24svh,300px);margin-top:22px}
}
/* Téléphone à l'horizontale : pas la place, le lien « Itinéraire » suffit */
@media (max-width:899px) and (orientation:landscape),(max-height:500px) and (orientation:landscape){
  .mapa{display:none}
  html body .sls .sl[data-h="encontrar"] .tx{bottom:44px}
}
}

/* Règles « !important » de la photo : en couche « base », la seule qui passe devant les « !important » du site */
@layer base{
  /* fonds de carte : aucune transition héritée des photos du site (sinon la carte « glisse » en retard) */
  .mapa img,.mapa .leaflet-tile{transition:none!important;max-width:none!important;max-height:none!important}
  @media (max-width:899px) and (orientation:portrait),(max-aspect-ratio:1249/1000) and (orientation:portrait){
    html body .sls .sl[data-h="encontrar"] .fg{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;margin:0 20px!important;flex:none!important;height:var(--fh,260px)!important}
  }
  @media (min-width:700px) and (max-aspect-ratio:1249/1000) and (orientation:portrait){
    html body .sls .sl[data-h="encontrar"] .fg{margin:0 44px!important}
  }
}

@layer retouches{
  /* Texte posé sur une photo (téléphone, écran trop court) : fond verre dépoli, comme sur la page Questions */
  .sls .tx.vitre{margin:0 -14px;padding:14px;background:rgba(20,22,18,.42);-webkit-backdrop-filter:blur(20px) saturate(1.15);backdrop-filter:blur(20px) saturate(1.15);border-radius:2px}
}
@layer retouches{
  /* Dernier écran plus long que la fenêtre : la flèche ⌄ reste pour signaler la carte en dessous */
  body.sN.carte-suite .nx{opacity:1;visibility:visible;border-radius:50%;background:rgba(20,22,18,.5);-webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15)}
}
@layer retouches{
  /* Carte OpenStreetMap : fonds teintés dans le crème du site, pin rouge, boutons + / − assortis */
  .mapa-lf{position:absolute;inset:0;z-index:1;background:#EFEBDF;font:inherit}
  .mapa.lf .mapa-b{display:none}
  .mapa.lf .mapa-a{pointer-events:none}
  .mapa-it,.mapa-osm{z-index:3}
  .mapa-lf .leaflet-tile-pane{filter:grayscale(.85) sepia(.18) contrast(1.08)}
  .mapa-lf .mapa-pin{background:none;border:0}
  .mapa-lf .mapa-pin svg{display:block;filter:drop-shadow(0 2px 3px rgba(40,30,20,.25))}
  .mapa-lf .leaflet-bar{border:0;box-shadow:0 2px 8px rgba(40,30,20,.22);border-radius:2px}
  .mapa-lf .leaflet-bar a{width:32px;height:32px;line-height:30px;background:#F2F0E6;color:#2F3E38;border-bottom-color:rgba(47,62,56,.15);font:400 1.25rem/30px "Josefin Sans",sans-serif;text-shadow:none}
  .mapa-lf .leaflet-bar a:hover{background:#fff;color:#2F3E38}
  .mapa-lf .leaflet-bar a.leaflet-disabled{color:rgba(47,62,56,.35);background:#F2F0E6}
  .mapa-lf:focus-visible{outline:2px solid #F2F0E6;outline-offset:3px}
  .mapa.lf{cursor:grab}
}
@layer retouches{
  .mapa img{transition:none!important;max-width:none!important}
  .mapa .mapa-a img{width:100%;height:100%;object-fit:cover;transform:none!important}
  /* « Nous trouver » : titre, puis trois blocs titrés (adresse, horaires, contact) */
  .sl[data-h="encontrar"] .nt-t{font:400 clamp(2rem,3.2vw,3.25rem)/1.1 "EB Garamond",serif!important;letter-spacing:0!important;text-transform:none!important;color:#F2F0E6!important;margin:0 0 22px!important}
  .nt-g{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:18px 44px}
  .nt-h{margin:0 0 8px;font:400 .75rem/1.2 "Josefin Sans",sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#E2DDCA}
  .nt-b p{margin:0;font:400 1.1875rem/1.45 "EB Garamond",serif;color:#F2F0E6}
  .nt-b small{display:block;margin-top:4px;font-size:.875rem;line-height:1.35;color:#E2DDCA;max-width:16em}
  .nt-b a{color:#F2F0E6}
  .nt-b:first-child p{white-space:nowrap}
  .nt-g.nt-2{grid-template-columns:auto auto;gap:16px 36px}
  .nt-g.nt-2 .nt-b:last-child p{display:flex;flex-wrap:wrap;gap:0 14px}
  .nt-g.nt-2 .nt-b:last-child p br{display:none}
  .nt-g.nt-2 .nt-b:last-child{grid-column:1/-1}
  .sl[data-h="encontrar"] .tx .mapa{width:100%;max-width:none;margin-top:26px}
  @media (min-width:900px) and (min-aspect-ratio:5/4) and (min-height:501px) and (max-height:760px){
    .sl[data-h="encontrar"] .nt-t{font-size:clamp(1.75rem,2.6vw,2.5rem)!important;margin-bottom:16px!important}
    .nt-b p{font-size:1.0625rem}
    .sl[data-h="encontrar"] .tx .mapa{margin-top:20px}
  }
  @media (max-width:899px),(max-aspect-ratio:1249/1000),(max-height:500px),(scripting:none){
    .sl[data-h="encontrar"] .nt-t{font-size:1.875rem!important;margin-bottom:16px!important}
    .nt-g{grid-template-columns:1fr 1fr;gap:16px 24px}
    .nt-b:first-child{grid-column:1/-1}
    .nt-b p{font-size:1.0625rem}
    .nt-h{margin-bottom:5px}
  }
  @media (max-width:359px){ .nt-g{grid-template-columns:1fr} }
  @media (min-width:700px) and (max-aspect-ratio:1249/1000){
    .nt-g{grid-template-columns:repeat(3,auto);gap:18px 40px}
    .nt-b:first-child{grid-column:auto}
    .nt-b p{font-size:1.25rem}
  }
}
/* Téléphone et tablette en portrait : carte plus haute */
@layer retouches{
  @media (max-width:899px),(max-aspect-ratio:1249/1000),(max-height:500px),(scripting:none){
    .mapa{height:clamp(280px,48svh,440px)!important}
  }
  @media (min-width:700px) and (max-aspect-ratio:1249/1000){
    .mapa{height:clamp(340px,36svh,520px)!important}
  }
}
