.atlas-local {
  --carte-papier: #f5f6f2;
  --carte-marine: #132e3d;
  --carte-route: #965a28;
  --carte-rue: #848e82;
  --carte-eau: #578395;
  --carte-filet: #d5dcdd;
  margin: 0;
  min-width: 0;
  color: var(--carte-marine);
  background: var(--carte-papier);
  border: 1px solid #e5e8e1;
  box-shadow: 0 20px 44px -30px #000a;
}
.atlas-local [hidden] { display: none !important; }
.atlas-local-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(16px, 2.3vw, 30px);
  border-bottom: 1px solid var(--carte-filet);
}
.atlas-local-head p {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: #586c74;
}
.atlas-local-head h3 {
  margin: 0;
  font: 700 clamp(29px, 3vw, 44px)/.98 var(--serif, Cormorant, Georgia, serif);
  letter-spacing: -.025em;
}
.atlas-local-overview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  font-size: 11px;
  font-weight: 600;
  color: var(--carte-marine);
  text-decoration: none;
}
.atlas-local-overview:hover span { text-decoration: underline; }
.atlas-local-overview svg {
  display: block;
  width: 42px;
  height: 44px;
  fill: #e0e6dd;
  stroke: #70878b;
  stroke-width: 22px;
  fill-rule: evenodd;
}
.atlas-local-overview .is-zone { fill: #d6a34f; stroke: none; }
.atlas-local-view {
  position: relative;
  height: clamp(340px, 42vw, 470px);
  overflow: hidden;
  isolation: isolate;
  background-color: #edeee6;
  background-image: linear-gradient(#667b810c 1px, transparent 1px), linear-gradient(90deg, #667b810c 1px, transparent 1px);
  background-size: 30px 30px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.atlas-local-view.is-dragging { cursor: grabbing; }
.atlas-local :focus-visible { outline: 3px solid #af6f21; outline-offset: 2px; }
.atlas-local-view:focus-visible { outline-offset: -4px; }
.atlas-local-dessin { display: block; width: 100%; height: 100%; }
.atlas-local-land { fill: #e3e8d8; }
.atlas-local-land.is-orchard { fill: #d5e3c5; }
.atlas-local-land.is-forest { fill: #dbe4d1; }
.atlas-local-land.is-residential { fill: #e8e0d2; }
.atlas-local-water-area { fill: #b7cdd1; }
.atlas-local-water,
.atlas-local-rail,
.atlas-local-road {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.atlas-local-water { stroke: var(--carte-eau); stroke-width: 1.4; }
.atlas-local-rail { stroke: #68767b; stroke-width: 1.2; stroke-dasharray: 3 4; }
.atlas-local-road.is-local { stroke: #8d968b; stroke-width: 1.15; }
.atlas-local-road.is-secondary { stroke: #747f72; stroke-width: 1.65; }
.atlas-local-road.is-main { stroke: var(--carte-route); stroke-width: 2.8; }
.atlas-local-label text {
  fill: var(--carte-marine);
  font: 600 12px/1 Poppins, system-ui, sans-serif;
  paint-order: stroke;
  stroke: var(--carte-papier);
  stroke-width: 3.8px;
  stroke-linejoin: round;
}
.atlas-local-label.is-gorge text { font-weight: 700; font-size: 13px; }
.atlas-local-label.is-gare text { fill: #465a63; font-size: 10px; }
.atlas-local-pin { fill: #e0aa55; stroke: var(--carte-marine); stroke-width: 1.8; }
.atlas-local-pin-ring { fill: var(--carte-papier); fill-opacity: .84; stroke: #bb8738; stroke-width: 1.2; }
.atlas-local-dot { fill: var(--carte-marine); stroke: var(--carte-papier); stroke-width: 1.4; }
.atlas-local-ref rect { fill: #fff9ef; stroke: var(--carte-route); stroke-width: 1; }
.atlas-local-ref text { fill: #764315; font: 700 10px/1 Poppins, system-ui, sans-serif; }
.atlas-local-controls {
  display: grid;
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid #aebbb7;
  border-radius: 5px;
  background: #fafbf7;
  box-shadow: 0 6px 15px #132e3d19;
}
.atlas-local .atlas-local-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--carte-marine);
  cursor: pointer;
}
.atlas-local .atlas-local-controls button + button { border-top: 1px solid var(--carte-filet); }
.atlas-local .atlas-local-controls button:hover:not(:disabled) { background: #e9eee8; }
.atlas-local .atlas-local-controls button:disabled { opacity: .38; cursor: default; }
.atlas-local-north,
.atlas-local-scale {
  position: absolute;
  left: 14px;
  pointer-events: none;
  color: var(--carte-marine);
  font: 600 10px/1.15 Poppins, system-ui, sans-serif;
  background: #f5f6f2e8;
  border-radius: 3px;
}
.atlas-local-north { top: 13px; display: grid; justify-items: center; gap: 3px; padding: 7px 8px; }
.atlas-local-scale { bottom: 13px; padding: 5px 6px; }
.atlas-local-scale::after { content: ''; display: block; width: var(--atlas-scale, 42px); height: 4px; border: 1.5px solid currentColor; border-top: 0; }
.atlas-local-foot {
  padding: 12px clamp(14px, 2.3vw, 30px);
  border-top: 1px solid var(--carte-filet);
}
.atlas-local-key {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.atlas-local-key li { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; }
.atlas-local-key li::before { content: ''; width: 16px; border-top: 2px solid var(--carte-rue); border-radius: 2px; }
.atlas-local-key .is-main::before { border-color: var(--carte-route); border-top-width: 3px; }
.atlas-local-key .is-water::before { border-color: var(--carte-eau); }
.atlas-local-foot p { margin: 6px 0 0; color: #54686f; font-size: 10.5px; line-height: 1.65; }
.atlas-local-foot a { color: inherit; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .atlas-local-head { padding-block: 13px; }
  .atlas-local-overview { flex-direction: column; gap: 1px; justify-content: center; }
  .atlas-local-overview svg { width: 33px; height: 35px; }
  .atlas-local-view { height: clamp(330px, 89vw, 395px); }
  .atlas-local-foot p [data-atlas-local-aide] { display: none; }
}
