/* Salons du mariage — page publique (DA Mariage de A à Z)
   Unités en px/em : le thème fixe html à 10px. */

.mz-salons {
  --sm-ink: #18201e;
  --sm-muted: #66706b;
  --sm-teal: #27878f;
  --sm-teal-deep: #1d6a72;
  --sm-coral: #ed705a;
  --sm-coral-deep: #dc5e49;
  --sm-paper: #fffefa;
  --sm-ivory: #fbf8f3;
  --sm-mist: #e8f2f3;
  --sm-line: rgba(24, 32, 30, 0.09);
  --sm-header-offset: 65px;
  --sm-font: "Figtree", "Segoe UI", sans-serif;
  --sm-display: "Fraunces", Georgia, "Times New Roman", serif;
  font-family: var(--sm-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--sm-ink);
  background: var(--sm-ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

.mz-salons *,
.mz-salons *::before,
.mz-salons *::after {
  box-sizing: border-box;
}

.mz-salons img {
  max-width: 100%;
  display: block;
}

.mz-salons a {
  color: inherit;
  text-decoration: none;
}

.mz-salons h1,
.mz-salons h2,
.mz-salons h3 {
  font-family: var(--sm-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: inherit;
}

.sm-card-title-place {
  font-weight: 500;
  color: var(--sm-teal-deep);
  font-size: 0.92em;
}

.mz-salons [hidden] {
  display: none !important;
}

/* —— Boutons —— */
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sm-btn-sm {
  padding: 9px 15px;
  font-size: 13px;
}

.sm-btn-primary {
  background: var(--sm-teal);
  color: #fff !important;
}

.sm-btn-primary:hover {
  background: var(--sm-teal-deep);
  transform: translateY(-1px);
}

.sm-btn-ghost {
  background: #fff;
  color: var(--sm-teal-deep) !important;
  border-color: rgba(39, 135, 143, 0.3);
}

.sm-btn-ghost:hover {
  background: var(--sm-mist);
}

.sm-btn-light {
  background: #fff;
  color: var(--sm-teal-deep) !important;
}

.sm-btn-light:hover {
  transform: translateY(-1px);
}

.sm-btn.is-loading i {
  animation: sm-spin 1s linear infinite;
}

.sm-btn.is-on {
  background: var(--sm-teal-deep);
}

.sm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--sm-teal-deep);
  cursor: pointer;
}

.sm-link:hover {
  text-decoration: underline;
}

/* —— Hero (compact) —— */
.sm-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.sm-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sm-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: sm-hero-drift 20s ease-in-out infinite alternate;
}

.sm-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 36, 38, 0.2) 0%, rgba(16, 36, 38, 0.6) 55%, rgba(16, 36, 38, 0.9) 100%),
    linear-gradient(105deg, rgba(39, 135, 143, 0.38), transparent 58%),
    linear-gradient(300deg, rgba(237, 112, 90, 0.22), transparent 42%);
}

.sm-hero-content {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 44px;
  animation: sm-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.sm-breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sm-breadcrumb a:hover {
  color: #fff;
}

.sm-brand {
  margin: 0 0 10px;
  font-family: var(--sm-display);
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.sm-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.sm-hero-lead {
  margin: 0 0 26px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.sm-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
}

.sm-hero-stats > div {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.45);
}

.sm-hero-stats > div:first-child {
  border-left-color: var(--sm-coral);
}

.sm-hero-stats strong {
  font-family: var(--sm-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.sm-hero-stats span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.sm-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--sm-coral-deep) !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sm-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(237, 112, 90, 0.28);
}

/* —— Barre d’outils —— */
.sm-explorer {
  position: relative;
}

.sm-toolbar {
  position: sticky;
  top: var(--sm-header-offset);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px max(20px, calc((100% - 1320px) / 2));
  background: rgba(255, 254, 250, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sm-line);
}

.sm-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sm-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.sm-search i {
  position: absolute;
  left: 15px;
  color: var(--sm-muted);
  font-size: 14px;
  pointer-events: none;
}

.sm-search input,
.sm-select {
  height: 42px;
  border: 1px solid rgba(24, 32, 30, 0.14);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--sm-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sm-search input {
  width: 220px;
  padding: 0 16px 0 40px;
}

.sm-select {
  padding: 0 34px 0 16px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d6a72' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.sm-search input:focus,
.sm-select:focus {
  border-color: var(--sm-teal);
  box-shadow: 0 0 0 3px rgba(39, 135, 143, 0.15);
}

.sm-toolbar .sm-btn {
  height: 42px;
}

.sm-radius {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--sm-mist);
  gap: 2px;
}

.sm-radius button {
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--sm-teal-deep);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sm-radius button.is-active {
  background: #fff;
  color: var(--sm-ink);
  box-shadow: 0 2px 8px rgba(24, 32, 30, 0.1);
}

.sm-view-switch {
  display: none;
}

/* —— Split liste / carte —— */
.sm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.sm-list-col {
  padding: 22px 26px 60px max(20px, 0px);
  min-width: 0;
}

.sm-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 14px;
}

.sm-list-head p {
  margin: 0;
}

#smCount {
  font-size: 15px;
  font-weight: 700;
  color: var(--sm-ink);
}

.sm-status {
  font-size: 13px;
  color: var(--sm-muted);
}

.sm-status.is-error {
  color: #b45309;
  font-weight: 600;
}

.sm-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Carte salon */
.sm-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--sm-line);
  box-shadow: 0 6px 18px rgba(24, 32, 30, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
  animation: sm-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sm-card:hover,
.sm-card.is-active {
  border-color: rgba(39, 135, 143, 0.45);
  box-shadow: 0 14px 34px rgba(29, 106, 114, 0.13);
  transform: translateY(-2px);
}

/* Popovers ouverts : la carte passe au-dessus des suivantes */
.sm-card.is-cal-open,
.sm-card.is-prestas-open {
  z-index: 60;
}

.sm-card.is-flash {
  animation: sm-flash 1.2s ease;
}

.sm-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 10px 4px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--sm-teal) 0%, var(--sm-teal-deep) 72%, #c75a4a 160%);
  box-shadow: inset 0 -3px 0 rgba(237, 112, 90, 0.9);
  color: #fff;
  text-align: center;
  line-height: 1.1;
}

.sm-card-weekday {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.sm-card-date strong {
  margin: 4px 0;
  font-family: var(--sm-display);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.sm-card-month {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sm-card-poster {
  align-self: start;
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sm-mist);
}

.sm-card-poster a,
.sm-card-poster img {
  display: block;
  width: 100%;
  height: 100%;
}

.sm-card-poster img {
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-card:hover .sm-card-poster img {
  transform: scale(1.06);
}

.sm-card-poster-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sm-teal);
  font-size: 26px;
  background: linear-gradient(160deg, #d7ecee, #f4f8f8);
}

.sm-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sm-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.sm-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sm-mist);
  color: var(--sm-teal-deep);
  font-size: 12px;
  font-weight: 700;
}

.sm-tag--soon {
  background: rgba(237, 112, 90, 0.12);
  color: var(--sm-coral-deep);
}

.sm-tag--live {
  background: #fde8e4;
  color: var(--sm-coral-deep);
  box-shadow: inset 0 0 0 1px rgba(220, 94, 73, 0.22);
}

.sm-tag--distance {
  background: #fff4e6;
  color: #b45309;
}

/* Prestataires présents — encart discret */
.sm-prestas {
  position: relative;
  margin: 2px 0 14px;
  z-index: 5;
}

.sm-card.is-prestas-open .sm-prestas {
  z-index: 80;
}

.sm-card.is-prestas-open .sm-card-actions {
  z-index: 1;
}

.sm-prestas-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(232, 242, 243, 0.9), rgba(243, 251, 251, 0.55));
  box-shadow: inset 0 0 0 1px rgba(39, 135, 143, 0.12);
  color: var(--sm-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.sm-prestas-toggle:hover,
.sm-prestas-toggle[aria-expanded="true"] {
  background: linear-gradient(180deg, #e5f3f4, #f7fcfc);
  box-shadow: inset 0 0 0 1px rgba(39, 135, 143, 0.28);
}

.sm-prestas-avatars {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sm-prestas-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -10px;
  background: #dbe7ea;
  box-shadow: 0 1px 2px rgba(24, 32, 30, 0.08);
}

.sm-prestas-avatars img:first-child {
  margin-left: 0;
}

.sm-prestas-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sm-prestas-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sm-coral-deep);
}

.sm-prestas-names {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sm-ink);
}

.sm-prestas-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--sm-teal);
  font-size: 14px;
  flex-shrink: 0;
}

/* Flèche vers le haut : la liste s’ouvre au-dessus */
.sm-prestas-chevron i {
  display: inline-block;
  transform: rotate(180deg);
  transition: transform 0.18s ease;
}

.sm-prestas-toggle[aria-expanded="true"] .sm-prestas-chevron i {
  transform: rotate(0deg);
}

.sm-prestas-pop {
  position: absolute;
  left: 0;
  right: 0;
  /* Au-dessus de l’encart pour ne pas passer sous Agenda / Billetterie */
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 80;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--sm-line);
  box-shadow: 0 -12px 36px rgba(24, 32, 30, 0.14);
  animation: sm-pop 0.18s ease both;
}

.sm-prestas-pop-title {
  margin: 0 0 6px;
  padding: 4px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a9490;
  border-bottom: 1px solid var(--sm-line);
}

.sm-prestas-pop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sm-prestas-pop a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 11px;
  color: var(--sm-ink) !important;
  text-decoration: none !important;
}

.sm-prestas-pop a:hover {
  background: var(--sm-mist);
}

.sm-prestas-pop img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f7;
}

.sm-prestas-pop strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
}

.sm-prestas-pop small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--sm-muted);
  line-height: 1.35;
}

.sm-prestas-pop i.fa-angle-right {
  color: var(--sm-teal);
  opacity: 0.7;
}

@media (max-width: 575px) {
  .sm-prestas-toggle {
    gap: 10px;
    padding: 9px 10px;
  }

  .sm-prestas-avatars img {
    width: 28px;
    height: 28px;
    margin-left: -8px;
  }

  .sm-prestas-names {
    font-size: 12.5px;
  }
}

.sm-tip-prestas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(24, 32, 30, 0.08);
}

.sm-tip-prestas-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #27878f;
}

.sm-tip-avatars {
  display: flex;
  align-items: center;
}

.sm-tip-avatars img {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -6px;
}

.sm-tip-avatars img:first-child {
  margin-left: 0;
}

.sm-tip-avatars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: -6px;
  border-radius: 50%;
  background: #27878f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid #fff;
}

.sm-card-title,
.sm-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
  color: var(--sm-ink);
}

.sm-card-meta {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  color: var(--sm-muted);
}

.sm-card-meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sm-card-meta i {
  width: 14px;
  flex-shrink: 0;
  text-align: center;
  color: var(--sm-teal);
}

.sm-lieu-short {
  display: none;
}

.sm-card-desc-wrap {
  margin: 0 0 10px;
}

.sm-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sm-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-card-desc-wrap.is-open .sm-card-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.sm-desc-more {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sm-coral-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sm-desc-more[hidden] {
  display: none;
}

.sm-desc-more:hover {
  color: var(--sm-coral);
}

.sm-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.sm-label-short {
  display: none;
}

/* Menu agenda */
.sm-cal {
  position: relative;
  display: inline-flex;
  z-index: 2;
}

.sm-cal-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 32px));
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--sm-line);
  box-shadow: 0 18px 44px rgba(24, 32, 30, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: sm-pop 0.18s ease both;
}

/* Sur mobile : ouverture vers le haut pour ne pas passer sous la carte suivante */
@media (max-width: 991px) {
  .sm-cal-menu {
    top: auto;
    bottom: calc(100% + 6px);
    box-shadow: 0 -12px 36px rgba(24, 32, 30, 0.16);
  }
}

.sm-cal-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sm-ink) !important;
}

.sm-cal-menu a:hover {
  background: var(--sm-mist);
  color: var(--sm-teal-deep) !important;
}

.sm-cal-menu i {
  width: 16px;
  text-align: center;
  color: var(--sm-teal);
}

/* États vides */
.sm-empty {
  padding: 48px 24px;
  border: 1px dashed rgba(39, 135, 143, 0.3);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.sm-empty > i {
  font-size: 30px;
  color: var(--sm-teal);
  opacity: 0.6;
}

.sm-empty h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.sm-empty p {
  margin: 0 auto 20px;
  max-width: 420px;
  color: var(--sm-muted);
  font-size: 15px;
}

.sm-empty--filter {
  margin-top: 14px;
}

/* —— Carte —— */
.sm-map-col {
  min-width: 0;
}

.sm-map-sticky {
  position: sticky;
  top: calc(var(--sm-header-offset) + 71px);
  height: calc(100vh - var(--sm-header-offset) - 71px);
  min-height: 440px;
  padding: 22px 20px 22px 0;
}

.sm-map {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--sm-line);
  box-shadow: 0 18px 50px rgba(24, 32, 30, 0.12);
  background: #dfecec;
  z-index: 1;
}

.sm-map-legend {
  position: absolute;
  left: 16px;
  bottom: 38px;
  z-index: 5;
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(24, 32, 30, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: var(--sm-muted);
}

.sm-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sm-legend-pin,
.sm-legend-me {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.sm-legend-pin {
  background: var(--sm-teal);
}

.sm-legend-me {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Épingles avec date */
.sm-pin-wrap {
  background: transparent !important;
  border: 0 !important;
}

.sm-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 3px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--sm-teal);
  box-shadow: 0 6px 16px rgba(29, 106, 114, 0.28);
  white-space: nowrap;
  cursor: pointer;
  transform-origin: 17px 100%;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sm-pin::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: -8px;
  border: 6px solid transparent;
  border-top-color: var(--sm-teal);
  border-bottom: 0;
}

.sm-pin-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sm-teal);
  color: #fff;
  font-size: 11px;
}

.sm-pin-label {
  font-family: var(--sm-font);
  font-size: 12px;
  font-weight: 800;
  color: var(--sm-teal-deep);
}

.sm-pin.is-active,
.sm-pin:hover {
  transform: scale(1.12);
  background: var(--sm-coral);
  border-color: var(--sm-coral);
}

.sm-pin.is-active::after,
.sm-pin:hover::after {
  border-top-color: var(--sm-coral);
}

.sm-pin.is-active .sm-pin-dot,
.sm-pin:hover .sm-pin-dot {
  background: #fff;
  color: var(--sm-coral-deep);
}

.sm-pin.is-active .sm-pin-label,
.sm-pin:hover .sm-pin-label {
  color: #fff;
}

/* Position utilisateur */
.sm-me-wrap {
  background: transparent !important;
  border: 0 !important;
}

.sm-me {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #fff;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5), 0 3px 10px rgba(0, 0, 0, 0.25);
  animation: sm-pulse 2s ease-out infinite;
}

/* Infobulle au survol */
.leaflet-tooltip.sm-tip {
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(24, 32, 30, 0.2);
  color: var(--sm-ink);
  white-space: normal;
}

.leaflet-tooltip.sm-tip::before {
  border-top-color: #fff;
}

.sm-tip-inner {
  display: flex;
  gap: 12px;
  width: 290px;
  padding: 12px;
  font-family: var(--sm-font);
}

.sm-tip-inner img {
  width: 62px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}

.sm-tip-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #66706b;
}

.sm-tip-text strong {
  margin-bottom: 3px;
  font-family: var(--sm-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #18201e;
}

.sm-tip-text i {
  width: 12px;
  margin-right: 5px;
  text-align: center;
  color: #27878f;
}

.sm-tip-count {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #dc5e49;
}

.mz-salons .leaflet-container {
  font: inherit;
}

/* —— Bandeau final —— */
.sm-band-wrap {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0 70px;
}

.sm-band {
  padding: 40px 44px;
  border-radius: 22px;
  background: linear-gradient(120deg, #1f6d74 0%, #27878f 50%, #3aa4ad 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.sm-band h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 28px);
}

.sm-band p {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* —— Animations —— */
@keyframes sm-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sm-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sm-flash {
  0%, 100% { box-shadow: 0 6px 18px rgba(24, 32, 30, 0.04); }
  30% { box-shadow: 0 0 0 4px rgba(237, 112, 90, 0.35); }
}

@keyframes sm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5), 0 3px 10px rgba(0, 0, 0, 0.25); }
  70% { box-shadow: 0 0 0 16px rgba(59, 130, 246, 0), 0 3px 10px rgba(0, 0, 0, 0.25); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 0 3px 10px rgba(0, 0, 0, 0.25); }
}

@keyframes sm-spin {
  to { transform: rotate(360deg); }
}

@keyframes sm-hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

/* —— SEO local : départements / villes / FAQ —— */
.sm-seo {
  padding: 48px 0 72px;
  background: linear-gradient(180deg, var(--sm-ivory), #f3f7f6);
}

.sm-seo-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.sm-seo h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 34px);
  color: var(--sm-ink);
}

.sm-seo h3 {
  margin: 28px 0 12px;
  font-size: 20px;
  color: var(--sm-teal-deep);
}

.sm-seo-intro {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sm-muted);
}

.sm-seo-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.sm-seo-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--sm-line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sm-ink);
  transition: box-shadow 0.18s ease, color 0.18s ease;
}

.sm-seo-links a:hover,
.sm-seo-links a[aria-current="page"] {
  color: var(--sm-coral-deep);
  box-shadow: inset 0 0 0 1px rgba(220, 94, 73, 0.35);
}

.sm-seo-links span {
  font-size: 12px;
  font-weight: 700;
  color: var(--sm-muted);
}

.sm-seo-back {
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.sm-seo-back a {
  color: var(--sm-teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sm-faq {
  margin-top: 36px;
  padding-top: 8px;
}

.sm-faq details {
  margin: 0 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--sm-line);
}

.sm-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--sm-ink);
  list-style: none;
}

.sm-faq summary::-webkit-details-marker {
  display: none;
}

.sm-faq summary::after {
  content: "+";
  float: right;
  color: var(--sm-coral);
  font-weight: 700;
}

.sm-faq details[open] summary::after {
  content: "–";
}

.sm-faq p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--sm-muted);
}

/* —— Tablette / mobile : bascule Liste ↔ Carte —— */
@media (max-width: 991px) {
  .mz-salons {
    overflow-x: hidden;
  }

  .sm-hero-content,
  .sm-band-wrap,
  .sm-seo-inner {
    width: auto;
    max-width: 100%;
    margin-left: 16px;
    margin-right: 16px;
    box-sizing: border-box;
  }

  .sm-split {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sm-toolbar {
    position: sticky;
    top: var(--sm-header-offset);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sm-toolbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .sm-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sm-search input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sm-select,
  .sm-toolbar .sm-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sm-radius {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .sm-radius button {
    flex: 1;
  }

  .sm-view-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 999px;
    background: var(--sm-mist);
  }

  .sm-view-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--sm-teal-deep);
    cursor: pointer;
  }

  .sm-view-switch button.is-active {
    background: #fff;
    color: var(--sm-ink);
    box-shadow: 0 2px 8px rgba(24, 32, 30, 0.1);
  }

  .sm-split {
    display: block;
  }

  .sm-list-col {
    padding: 18px 16px 40px;
  }

  .sm-split[data-view="list"] .sm-map-col,
  .sm-split[data-view="map"] .sm-list-col {
    display: none;
  }

  .sm-map-sticky {
    position: relative;
    top: auto;
    height: 72vh;
    min-height: 380px;
    padding: 14px 16px 24px;
  }

  .sm-map-legend {
    left: 28px;
    bottom: 40px;
  }
}

@media (max-width: 575px) {
  .sm-hero {
    min-height: 280px;
  }

  .sm-hero-content {
    padding: 40px 0 24px;
  }

  .sm-hero-lead {
    font-size: 14px;
    line-height: 1.45;
  }

  .sm-hero h1 {
    font-size: 26px;
  }

  .sm-hero-stats {
    gap: 10px 18px;
  }

  .sm-hero-stats strong {
    font-size: 20px;
  }

  .sm-hero-cta {
    width: 100%;
    justify-content: center;
  }

  .sm-list-col {
    padding: 12px 0 32px;
  }

  .sm-list {
    gap: 10px;
  }

  #smCount {
    font-size: 13px;
  }

  /*
   * Carte mobile :
   *  [date  ]  textes…
   *  [affiche] boutons
   */
  .sm-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "date body"
      "poster body";
    column-gap: 12px;
    row-gap: 8px;
    padding: 12px;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: start;
  }

  .sm-card-date {
    grid-area: date;
    width: 56px;
    min-height: 62px;
    padding: 7px 3px;
    border-radius: 10px;
    justify-self: stretch;
    align-self: start;
  }

  .sm-card-poster {
    grid-area: poster;
    width: 56px;
    margin: 0;
    border-radius: 10px;
    justify-self: stretch;
    align-self: start;
  }

  .sm-card-weekday {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .sm-card-date strong {
    font-size: 15px;
    margin: 3px 0;
    white-space: normal;
    line-height: 1.1;
  }

  .sm-card-month {
    font-size: 10px;
  }

  .sm-card-body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    padding-right: 0;
    overflow: visible;
  }

  .sm-card-tags {
    gap: 4px;
    margin-bottom: 4px;
  }

  .sm-tag {
    padding: 2px 8px;
    font-size: 10px;
  }

  .sm-card-title,
  .sm-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
  }

  .sm-card-meta {
    gap: 4px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
  }

  .sm-card-meta li {
    align-items: flex-start;
    min-width: 0;
  }

  .sm-card-meta i {
    width: 14px;
    font-size: 12px;
    margin-top: 2px;
  }

  /* Adresse courte sur mobile (ville + dép.), complète sur desktop */
  .sm-lieu-full {
    display: none;
  }

  .sm-lieu-short {
    display: inline;
  }

  .sm-card-desc {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }

  .sm-prestas {
    margin: 4px 0 10px;
  }

  .sm-prestas-toggle {
    gap: 8px;
    padding: 8px 9px;
  }

  .sm-prestas-copy {
    min-width: 0;
  }

  .sm-prestas-pop {
    left: 0;
    right: 0;
    max-width: 100%;
  }

  .sm-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding-top: 2px;
    width: 100%;
    margin-right: 0;
    box-sizing: border-box;
  }

  .sm-card-actions .sm-cal,
  .sm-card-actions .sm-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .sm-card-actions .sm-cal .sm-btn {
    width: 100%;
  }

  .sm-cal {
    width: 100%;
  }

  .sm-cal-menu {
    left: 0;
    right: auto;
    min-width: 0;
    width: min(240px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
  }

  .sm-btn-sm {
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 10px;
    gap: 5px;
  }

  .sm-label-full {
    display: none;
  }

  .sm-label-short {
    display: inline;
  }

  .sm-link.sm-focus-map {
    grid-column: 1 / -1;
    justify-content: center;
    font-size: 12px;
    padding: 6px 0 2px;
  }

  .sm-tip-inner {
    width: min(240px, calc(100vw - 48px));
  }

  .sm-band {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 16px;
  }

  .sm-list-col {
    padding: 12px 12px 32px;
  }

  .sm-map-sticky {
    padding: 12px 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mz-salons *,
  .mz-salons *::before,
  .mz-salons *::after {
    animation: none !important;
    transition: none !important;
  }
}
