
.otf-finder {
  --otf-text: #0f1720;
  --otf-muted: #5f6b78;
  --otf-border: #e3e6eb;
  --otf-point: var(--otf-danger);
  position: relative;
  isolation: isolate;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 0 60px;
  color: var(--otf-text);
}
.otf-home-block .otf-finder { padding-top: 10px; }
.otf-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.otf-header::after { content: ''; display: block; clear: both; }
.otf-header__copy { max-width: 760px; flex: 1 1 auto; }
.otf-header__tools {
  flex: 0 0 390px;
  width: 390px;
  max-width: 390px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.otf-header__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--otf-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .20em;
}
.otf-header h2 {
  margin: 0 0 10px;
  color: var(--otf-accent);
  font-size: clamp(40px, 5vw, 72px);
  line-height: .97;
  letter-spacing: -.04em;
  font-weight: 800;
}
.otf-header p {
  max-width: 620px;
  margin: 0;
  color: var(--otf-muted);
  font-size: 16px;
  line-height: 1.65;
}
.otf-counter {
  width: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--otf-border);
  border-radius: 18px;
  background: var(--otf-map-bg);
  text-align: center;
}
.otf-counter strong {
  display: block;
  color: var(--otf-accent);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}
.otf-counter span {
  display: block;
  margin-top: 8px;
  color: var(--otf-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.otf-search-wrap { width: 100%; max-width: 390px; margin: 0; }
.otf-search { position: relative; width: 100%; max-width: 390px; }
.otf-search input {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border: 1px solid var(--otf-border);
  border-radius: 16px;
  background: var(--otf-search-bg);
  color: var(--otf-search-text);
  font-size: 16px;
  outline: none;
}
.otf-search input:focus { border-color: var(--otf-accent); box-shadow: 0 0 0 3px rgba(1,39,78,.08); }
.otf-search-results {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  z-index: 700;
  overflow: hidden;
  border: 1px solid var(--otf-border);
  border-radius: 16px;
  background: var(--otf-search-results-bg);
  box-shadow: 0 20px 44px rgba(17,24,32,.12);
}
.otf-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--otf-border);
  background: var(--otf-search-results-bg);
  text-align: left;
  cursor: pointer;
}
.otf-search-item:last-child { border-bottom: 0; }
.otf-search-item:hover { background: var(--otf-hover-surface); }
.otf-search-item strong { display: block; color: var(--otf-text); font-size: 14px; }
.otf-search-item small { display: block; color: var(--otf-muted); font-size: 12px; margin-top: 3px; }
.otf-search-item em { color: var(--otf-accent); font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.otf-stagebar {
  position: relative;
  z-index: 15;
  display: block;
  margin-bottom: 18px;
  padding: 0 120px;
  text-align: center;
}
.otf-back {
  position: absolute;
  left: 0;
  top: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--otf-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.otf-current {
  display: block;
  margin-bottom: 8px;
  color: var(--otf-accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.otf-stage-title {
  text-align: center;
}
.otf-stage-title h3 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.1;
}
.otf-stage-title p {
  margin: 0;
  color: var(--otf-muted);
  font-size: 14px;
}
.otf-map-shell {
  position: relative;
  z-index: 1;
  min-height: 620px;
  border: 1px solid var(--otf-border);
  border-radius: 30px;
  overflow: hidden;
  background: var(--otf-map-bg);
}
#header, header, .header-nav, .sticky-header, .desktop-header, .site-header { position: relative; z-index: 50; }
.otf-map {
  position: absolute;
  inset: 0;
  background: var(--otf-map-bg);
}
.otf-map-error {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--otf-map-bg);
  box-shadow: 0 14px 34px rgba(17,24,32,.12);
  font-size: 13px;
}
.otf-map .leaflet-control-zoom { border: 1px solid var(--otf-border); }
.otf-map .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  background: var(--otf-map-bg);
  color: var(--otf-text);
}
.otf-map .leaflet-tooltip {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(1,39,78,.94);
  color: var(--otf-on);
  box-shadow: 0 10px 22px rgba(17,24,32,.12);
  font-size: 11px;
  font-weight: 700;
}
.otf-options-wrap { margin-top: 20px; }
.otf-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.otf-option {
  width: 100%;
  min-height: 74px;
  padding: 16px 18px;
  border: 1px solid var(--otf-border);
  border-radius: 18px;
  background: var(--otf-accent);
  color: var(--otf-on);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.otf-option:hover,
.otf-option.is-active {
  background: var(--otf-hover);
  color: var(--otf-on);
  border-color: var(--otf-hover);
  transform: translateY(-2px);
}
.otf-option strong { display: block; font-size: 17px; line-height: 1.15; }
.otf-option small { display: block; margin-top: 7px; color: var(--otf-on); font-size: 12px; }
.otf-option--single {
  max-width: 320px;
}
.otf-empty {
  padding: 20px;
  border: 1px dashed var(--otf-border);
  border-radius: 16px;
  background: var(--otf-map-bg);
  color: var(--otf-muted);
  font-size: 14px;
}
.otf-results { padding-top: 28px; scroll-margin-top: 20px; }
.otf-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.otf-results__city {
  margin-bottom: 6px;
  color: var(--otf-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.otf-results__head h3 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.otf-change {
  padding: 12px 16px;
  border: 1px solid var(--otf-border);
  border-radius: 12px;
  background: var(--otf-map-bg);
  color: var(--otf-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.otf-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.otf-product {
  overflow: hidden;
  border: 1px solid var(--otf-border);
  border-radius: 18px;
  background: var(--otf-map-bg);
}
.otf-product__image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--otf-surface-alt);
}
.otf-product__image img { width: 100%; height: 100%; object-fit: cover; }
.otf-product__body { padding: 16px; }
.otf-product h4 { min-height: 42px; margin: 0 0 12px; font-size: 16px; line-height: 1.3; }
.otf-product h4 a { color: var(--otf-text); text-decoration: none; }
.otf-product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.otf-product__footer strong { font-size: 16px; }
.otf-product__footer a { color: var(--otf-accent); font-size: 12px; font-weight: 800; text-decoration: none; }
.otf-no-products {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--otf-border);
  border-radius: 16px;
  background: var(--otf-map-bg);
  text-align: center;
}
@media (max-width: 1100px) {
  .otf-options, .otf-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .otf-counter { min-width: 0; }
  .otf-stagebar { padding: 36px 0 0; }
  .otf-back { top: 0; }
  .otf-map-shell { min-height: 480px; }
  .otf-options, .otf-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .otf-finder { padding-left: 10px; padding-right: 10px; }
  .otf-header h2 { font-size: 48px; }
  .otf-map-shell { min-height: 340px; border-radius: 20px; }
  .otf-options, .otf-products { grid-template-columns: 1fr; }
  .otf-results__head { flex-direction: column; align-items: flex-start; }
}

/* V1.1.5 — layout robuste avec Warehouse */
.otf-finder { position: relative; z-index: 0; isolation: isolate; }
.otf-header { display: grid !important; grid-template-columns: minmax(0,1fr) 390px !important; align-items: start !important; gap: 34px !important; }
.otf-header__copy { min-width: 0; }
.otf-header__tools { width: 390px !important; max-width: 390px !important; justify-self: end; display: flex !important; flex-direction: column !important; gap: 12px !important; }
.otf-header__tools .otf-counter, .otf-header__tools .otf-search-wrap { width: 100% !important; max-width: 390px !important; }
.otf-header__tools .otf-search input { width: 100% !important; min-width: 0 !important; }
.otf-search-wrap.otf-search--moved { width: 390px !important; max-width: 390px !important; margin: 0 !important; }
.otf-map-shell { position: relative; z-index: 0 !important; isolation: isolate; }
.otf-map { z-index: 0 !important; }
.otf-map .leaflet-pane { z-index: 1; }
.otf-map .leaflet-top, .otf-map .leaflet-bottom { z-index: 3; }
.otf-map .leaflet-control { z-index: 4; }
body#index #header { position: relative; z-index: 10000 !important; }
@media (max-width: 860px) {
  .otf-header {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 36vw) !important;
    gap: 22px !important;
  }
  .otf-header__copy { min-width: 0 !important; }
  .otf-header__tools {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: end !important;
    margin-left: 0 !important;
  }
  .otf-header__tools .otf-counter,
  .otf-header__tools .otf-search-wrap,
  .otf-header__tools .otf-search {
    width: 100% !important;
    max-width: 100% !important;
  }
  .otf-search-wrap.otf-search--moved {
    width: 100% !important;
    max-width: 100% !important;
  }
  .otf-header h2 {
    font-size: clamp(36px, 5.4vw, 56px) !important;
  }
}

@media (max-width: 600px) {
  .otf-header { grid-template-columns: 1fr !important; }
  .otf-header__tools {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }
  .otf-header__tools .otf-counter,
  .otf-header__tools .otf-search-wrap,
  .otf-header__tools .otf-search { max-width: none !important; }
}

.otf-personalisation-page { max-width:1280px; margin:0 auto; padding:28px 0 60px; }
.otf-personalisation-back { display:inline-block; margin-bottom:28px; color:var(--otf-text); font-size:14px; font-weight:700; text-decoration:none; }
.otf-personalisation-head { margin-bottom:28px; }
.otf-personalisation-head span { display:block; margin-bottom:8px; color:var(--otf-gold); font-size:12px; font-weight:800; letter-spacing:.18em; }
.otf-personalisation-head h1 { margin:0; color:var(--otf-accent); font-size:clamp(40px,5vw,64px); line-height:1; letter-spacing:-.04em; }

@media (max-width: 600px) {
  .otf-header__tools {
    display: none !important;
  }
  .otf-header__copy {
    max-width: 100%;
    flex: 1 1 100%;
  }
}


/* V1.1.13 — compact desktop layout */
.otf-finder { padding: 12px 0 36px !important; }
.otf-home-block .otf-finder { padding-top: 4px !important; }
.otf-header { gap: 18px !important; margin-bottom: 14px !important; }
.otf-header { grid-template-columns: minmax(0,1fr) 320px !important; }
.otf-header__tools { width: 320px !important; max-width: 320px !important; gap: 10px !important; }
.otf-header__tools .otf-counter, .otf-header__tools .otf-search-wrap { max-width: 320px !important; }
.otf-header__eyebrow { margin-bottom: 6px !important; font-size: 11px !important; }
.otf-header h2 { margin: 0 0 8px !important; font-size: clamp(28px, 4.2vw, 56px) !important; line-height: 1.02 !important; }
.otf-header p { max-width: 560px !important; font-size: 14px !important; line-height: 1.45 !important; }
.otf-counter { padding: 10px 12px !important; border-radius: 14px !important; }
.otf-counter strong { font-size: 16px !important; }
.otf-counter span { margin-top: 4px !important; font-size: 9px !important; letter-spacing: .10em !important; }
.otf-search input { height: 46px !important; padding: 0 16px !important; border-radius: 14px !important; font-size: 14px !important; }
.otf-search-results { border-radius: 14px !important; }
.otf-search-item { padding: 10px 14px !important; }
.otf-search-item strong { font-size: 13px !important; }
.otf-search-item small, .otf-search-item em { font-size: 11px !important; }
.otf-stagebar { margin-bottom: 10px !important; padding: 0 84px !important; }
.otf-back { font-size: 13px !important; }
.otf-current { margin-bottom: 4px !important; font-size: 13px !important; }
.otf-stage-title h3 { margin: 0 0 2px !important; font-size: 22px !important; }
.otf-stage-title p { font-size: 13px !important; }
.otf-map-shell { min-height: 520px !important; border-radius: 24px !important; }
.otf-map .leaflet-control-zoom a { width: 30px !important; height: 30px !important; line-height: 30px !important; }
@media (max-width: 1100px) {
  .otf-header { grid-template-columns: minmax(0,1fr) 290px !important; gap: 16px !important; }
  .otf-header__tools { width: 290px !important; max-width: 290px !important; }
  .otf-header__tools .otf-counter, .otf-header__tools .otf-search-wrap { max-width: 290px !important; }
  .otf-header h2 { font-size: clamp(26px, 4.2vw, 48px) !important; }
  .otf-map-shell { min-height: 470px !important; }
}
@media (max-width: 860px) {
  .otf-stagebar { padding: 28px 0 0 !important; }
  .otf-map-shell { min-height: 420px !important; }
}
@media (max-width: 560px) {
  .otf-finder { padding-left: 10px !important; padding-right: 10px !important; }
  .otf-header h2 { font-size: 38px !important; }
  .otf-stage-title h3 { font-size: 20px !important; }
  .otf-map-shell { min-height: 320px !important; border-radius: 18px !important; }
}


/* V1.1.15 — compteur en ligne + zoom carte restauré */
.otf-counter {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 12px !important;
}
.otf-counter strong {
  display: inline-block !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1 !important;
}
.otf-counter span {
  display: inline-block !important;
  margin: 0 !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
  letter-spacing: .10em !important;
}
.otf-map .leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
}

/* V1.2.0 — map, mobile and navigation polish */
.otf-map-shell {
  height: 560px !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: var(--otf-map-bg) !important;
}
.otf-map {
  width: 100% !important;
  height: 100% !important;
  inset: 0 !important;
}
.otf-map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 44px 28px var(--otf-map-bg);
}
.otf-map .leaflet-top,
.otf-map .leaflet-bottom { z-index: 5 !important; }
.otf-map .leaflet-tooltip-pane { z-index: 4 !important; }

.otf-back {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px !important;
  border: 1px solid color-mix(in srgb, var(--otf-accent) 18%, transparent) !important;
  border-radius: 999px !important;
  background: var(--otf-map-bg) !important;
  color: var(--otf-accent) !important;
  box-shadow: 0 7px 20px rgba(1,39,78,.08);
  font-size: 13px !important;
  font-weight: 800 !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.otf-back:hover {
  transform: translateY(-1px);
  background: var(--otf-hover-surface) !important;
  box-shadow: 0 10px 24px rgba(1,39,78,.12);
}
.otf-back__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--otf-accent);
  color: var(--otf-on);
  line-height: 1;
}

.otf-product-race-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--otf-border);
  border-radius: 12px;
  background: var(--otf-map-bg);
}
.otf-product-race-link span { color: var(--otf-muted); font-size: 13px; }
.otf-product-race-link strong { color: var(--otf-text); }
.otf-product-race-link a {
  color: var(--otf-accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.otf-special-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 16px 60px;
  color: var(--otf-text);
}
.otf-special-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--otf-accent);
  font-weight: 800;
  text-decoration: none;
}
.otf-special-head { margin-bottom: 28px; }
.otf-special-head span {
  display: block;
  margin-bottom: 7px;
  color: #b08a3e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.otf-special-head h1 {
  margin: 0;
  color: var(--otf-accent);
  font-size: clamp(36px,5vw,62px);
  line-height: 1;
}
.otf-special-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
.otf-special-card {
  display: flex;
  flex-direction: column;
  min-height: 155px;
  padding: 22px;
  border: 1px solid var(--otf-border);
  border-radius: 18px;
  background: var(--otf-map-bg);
  color: var(--otf-text);
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
.otf-special-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(1,39,78,.09); }
.otf-special-card__city { color: var(--otf-muted); font-size: 12px; }
.otf-special-card strong { margin: 8px 0 auto; color: var(--otf-accent); font-size: 21px; }
.otf-special-card__cta { margin-top: 16px; color: var(--otf-accent); font-size: 12px; font-weight: 800; }

@media (max-width: 860px) {
  .otf-map-shell { height: 460px !important; }
  .otf-special-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .otf-home-block { padding-left: 12px !important; padding-right: 12px !important; }
  .otf-finder { width: 100% !important; padding: 8px 0 30px !important; }
  .otf-header {
    display: block !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }
  .otf-header__copy {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .otf-header__eyebrow {
    margin-bottom: 6px !important;
    font-size: 10px !important;
    letter-spacing: .13em !important;
    white-space: normal !important;
  }
  .otf-header h2 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    font-size: 34px !important;
    line-height: 1.02 !important;
    letter-spacing: -.025em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  .otf-header p {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  /* Kept hidden on mobile as requested in the previous version. */
  .otf-header__tools { display: none !important; }
  .otf-stagebar {
    margin: 14px 0 10px !important;
    padding: 0 !important;
    text-align: center !important;
  }
  .otf-back {
    position: static !important;
    margin: 0 auto 12px !important;
  }
  .otf-current { margin-bottom: 4px !important; font-size: 12px !important; }
  .otf-stage-title h3 { font-size: 21px !important; }
  .otf-stage-title p { padding: 0 8px; font-size: 12px !important; }
  .otf-map-shell {
    width: 100% !important;
    height: 390px !important;
    border-radius: 18px !important;
  }
  .otf-map-shell::after { box-shadow: inset 0 0 30px 18px var(--otf-map-bg); }
  .otf-special-grid { grid-template-columns: 1fr; }
}

/* V1.2.2 — SEO pages */
.otf-seo-page{max-width:1280px;margin:0 auto;padding:30px 0 60px;color:var(--otf-text)}
.otf-seo-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:26px;padding:9px 14px;border:1px solid var(--otf-border);border-radius:999px;background:var(--otf-surface);color:var(--otf-text);font-size:13px;font-weight:700;text-decoration:none}
.otf-seo-head{margin-bottom:26px}.otf-seo-head span{display:block;margin-bottom:7px;color:var(--otf-accent);font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.otf-seo-head h1{margin:0;color:var(--otf-accent);font-size:clamp(36px,5vw,62px);line-height:1;letter-spacing:-.04em}
.otf-seo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.otf-seo-card{display:flex;flex-direction:column;gap:9px;padding:22px;border:1px solid var(--otf-border);border-radius:18px;background:var(--otf-surface);color:var(--otf-text);text-decoration:none;transition:.18s}.otf-seo-card:hover{transform:translateY(-2px);border-color:var(--otf-accent);box-shadow:0 12px 30px rgba(17,24,32,.07)}.otf-seo-card strong{font-size:18px}.otf-seo-card span{color:var(--otf-accent);font-size:12px;font-weight:800}
@media(max-width:800px){.otf-seo-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.otf-seo-page{padding:20px 10px 40px}.otf-seo-grid{grid-template-columns:1fr}}

.otf-back[hidden]{display:none!important;}

/* V1.2.4 — navigation carte + fondu plus naturel */
.otf-stagebar {
  margin-bottom: 20px !important;
}

.otf-map-shell {
  margin-top: 6px !important;
  border: 0 !important;
}

/* Remplace l'ancien effet "ombre interne" par un dégradé doux sur les bords. */
.otf-map-shell::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 6 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  background:
    linear-gradient(
      to right,
      var(--otf-map-bg) 0,
      transparent 34px,
      transparent calc(100% - 34px),
      var(--otf-map-bg) 100%
    ),
    linear-gradient(
      to bottom,
      var(--otf-map-bg) 0,
      transparent 26px,
      transparent calc(100% - 26px),
      var(--otf-map-bg) 100%
    ) !important;
}

@media (max-width: 600px) {
  .otf-stagebar {
    margin-bottom: 16px !important;
  }

  .otf-map-shell {
    margin-top: 4px !important;
  }

  .otf-map-shell::after {
    background:
      linear-gradient(
        to right,
        var(--otf-map-bg) 0,
        transparent 18px,
        transparent calc(100% - 18px),
        var(--otf-map-bg) 100%
      ),
      linear-gradient(
        to bottom,
        var(--otf-map-bg) 0,
        transparent 14px,
        transparent calc(100% - 14px),
        var(--otf-map-bg) 100%
      ) !important;
  }
}


/* V1.2.5 — retour plus propre + contrôles nets + fondu uniquement en zoom */
.otf-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 34px !important;
  padding: 6px 11px !important;
  border: 1px solid var(--otf-border) !important;
  border-radius: 10px !important;
  background: var(--otf-map-bg) !important;
  color: var(--otf-accent) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transition: background .15s ease, border-color .15s ease !important;
}

.otf-back:hover {
  transform: none !important;
  background: var(--otf-hover-surface) !important;
  border-color: var(--otf-hover) !important;
  box-shadow: none !important;
}

.otf-back__icon {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--otf-accent) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

/* Contrôles Leaflet totalement nets : aucun halo/blur/overlay au-dessus. */
.otf-map .leaflet-bar,
.otf-map .leaflet-control-zoom {
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.otf-map .leaflet-control-zoom a {
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
}

/* Le fondu est inactif au niveau MONDE. */
.otf-map-shell::after {
  z-index: 2 !important;
  opacity: 0 !important;
  transition: opacity .18s ease !important;
}

/* Il apparaît uniquement après zoom continent/pays/ville. */
.otf-map-zoomed .otf-map-shell::after {
  opacity: 1 !important;
}

/* Les contrôles restent toujours au-dessus du fondu. */
.otf-map .leaflet-top,
.otf-map .leaflet-bottom {
  z-index: 20 !important;
}

.otf-map .leaflet-control {
  z-index: 21 !important;
}

@media (max-width: 600px) {
  .otf-back {
    min-height: 32px !important;
    padding: 6px 10px !important;
    border-radius: 9px !important;
  }
}
\n\n/* V1.2.10 — supprime le cadre de focus SVG après clic sur un pays/continent */\n.otf-map .leaflet-interactive:focus,\n.otf-map .leaflet-interactive:focus-visible,\n.otf-map path:focus,\n.otf-map path:focus-visible {\n  outline: none !important;\n  box-shadow: none !important;\n}\n

/* V1.2.14 — noms des pays lors du zoom mobile */
.otf-country-map-label {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
.otf-country-map-label span {
  display: inline-block;
  transform: translate(-50%, -50%);
  padding: 3px 6px;
  border-radius: 7px;
  background: rgba(255,255,255,.88);
  color: var(--otf-accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* V1.2.17 — interface intégrée dans le cadre de la carte */
.otf-stage-data { display:none !important; }
.otf-finder { padding-top:0 !important; }

.otf-map-shell {
  position:relative !important;
  margin-top:0 !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:24px !important;
  min-height:620px !important;
  background:var(--otf-map-bg) !important;
}

.otf-map {
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
}

.otf-map-ui {
  position:absolute !important;
  z-index:30 !important;
  pointer-events:none;
}
.otf-map-ui > * { pointer-events:auto; }

.otf-map-ui--top-left {
  top:22px !important;
  left:24px !important;
  max-width:min(560px,48%) !important;
}
.otf-map-ui--top-left h2 {
  margin:0 0 6px !important;
  color:var(--otf-accent) !important;
  font-size:clamp(28px,3.7vw,48px) !important;
  line-height:1 !important;
  letter-spacing:-.035em !important;
  font-weight:800 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.95),0 0 14px rgba(255,255,255,.9);
}
.otf-map-ui--top-left p {
  margin:0 !important;
  max-width:520px !important;
  color:var(--otf-muted) !important;
  font-size:14px !important;
  line-height:1.45 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.95),0 0 12px rgba(255,255,255,.95);
}

.otf-map-ui--top-right {
  top:22px !important;
  right:24px !important;
  width:320px !important;
  max-width:34% !important;
}
.otf-map-ui--top-right .otf-search-wrap,
.otf-map-ui--top-right .otf-search {
  width:100% !important;
  max-width:none !important;
}
.otf-map-ui--top-right .otf-search input {
  height:44px !important;
  padding:0 15px !important;
  border:1px solid rgba(1,39,78,.14) !important;
  border-radius:13px !important;
  background:var(--otf-search-bg) !important;
  color:var(--otf-search-text) !important;
  box-shadow:0 8px 24px rgba(1,39,78,.08) !important;
  font-size:13px !important;
}
.otf-map-ui--top-right .otf-search-results { background:var(--otf-search-results-bg) !important; }

.otf-map-ui--bottom-left {
  left:24px !important;
  bottom:22px !important;
}
.otf-map-ui--bottom-right {
  right:24px !important;
  bottom:22px !important;
}
.otf-map-ui--bottom-right .otf-counter {
  width:auto !important;
  min-width:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  padding:8px 12px !important;
  border:1px solid rgba(1,39,78,.12) !important;
  border-radius:12px !important;
  background:var(--otf-counter-bg) !important;
  box-shadow:0 8px 22px rgba(1,39,78,.07) !important;
}
.otf-map-ui--bottom-right .otf-counter strong {
  display:inline !important;
  font-size:13px !important;
  line-height:1 !important;
}
.otf-map-ui--bottom-right .otf-counter span {
  display:inline !important;
  margin:0 !important;
  font-size:9px !important;
  line-height:1 !important;
  letter-spacing:.08em !important;
}

.otf-map-ui--bottom-left .otf-back {
  position:static !important;
  min-height:34px !important;
  padding:7px 11px !important;
  border:1px solid rgba(1,39,78,.13) !important;
  border-radius:11px !important;
  background:var(--otf-control-bg) !important;
  box-shadow:0 8px 22px rgba(1,39,78,.08) !important;
}

.otf-map .leaflet-top { top:86px !important; }
.otf-map .leaflet-left { left:8px !important; }

@media (max-width:860px) {
  .otf-map-shell { min-height:560px !important; }
  .otf-map-ui--top-left {
    top:16px !important;
    left:16px !important;
    max-width:56% !important;
  }
  .otf-map-ui--top-left h2 { font-size:34px !important; }
  .otf-map-ui--top-left p { font-size:13px !important; }
  .otf-map-ui--top-right {
    top:16px !important;
    right:16px !important;
    width:260px !important;
    max-width:38% !important;
  }
  .otf-map-ui--bottom-left { left:16px !important; bottom:16px !important; }
  .otf-map-ui--bottom-right { right:16px !important; bottom:16px !important; }
}

@media (max-width:600px) {
  .otf-map-shell {
    min-height:620px !important;
    border-radius:0 !important;
  }
  .otf-map-ui--top-left {
    top:14px !important;
    left:14px !important;
    right:14px !important;
    max-width:none !important;
  }
  .otf-map-ui--top-left h2 {
    max-width:68% !important;
    font-size:30px !important;
  }
  .otf-map-ui--top-left p {
    max-width:70% !important;
    font-size:12px !important;
    line-height:1.35 !important;
  }
  .otf-map-ui--top-right {
    display:block !important;
    top:14px !important;
    right:14px !important;
    width:29% !important;
    max-width:29% !important;
  }
  .otf-map-ui--top-right .otf-search input {
    height:38px !important;
    padding:0 10px !important;
    font-size:11px !important;
  }
  .otf-map-ui--bottom-left {
    left:14px !important;
    bottom:14px !important;
  }
  .otf-map-ui--bottom-right {
    display:block !important;
    right:14px !important;
    bottom:14px !important;
  }
  .otf-map-ui--bottom-right .otf-counter {
    padding:7px 9px !important;
  }
  .otf-map-ui--bottom-right .otf-counter span {
    font-size:8px !important;
  }
  .otf-map .leaflet-top { top:90px !important; }
}

/* V1.2.18 — titre centré au-dessus de la carte */
.otf-map-heading {
  max-width: 820px;
  margin: 0 auto 18px;
  padding: 0 16px;
  text-align: center;
}

.otf-map-heading h2 {
  margin: 0 0 6px !important;
  color: var(--otf-title) !important;
  font-size: clamp(30px, 3.6vw, 48px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.035em !important;
  font-weight: 800 !important;
}

.otf-map-heading p {
  margin: 0 !important;
  color: var(--otf-subtitle) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

/* Ancien positionnement haut-gauche neutralisé */
.otf-map-ui--top-left {
  display: none !important;
}

/* La recherche reste en haut à droite dans la carte. */
.otf-map-ui--top-right {
  top: 18px !important;
}

/* Comme le titre est maintenant hors carte, les contrôles peuvent remonter. */
.otf-map .leaflet-top {
  top: 70px !important;
}

@media (max-width: 600px) {
  .otf-map-heading {
    margin-bottom: 14px;
    padding: 0 12px;
  }

  .otf-map-heading h2 {
    font-size: 30px !important;
  }

  .otf-map-heading p {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .otf-map .leaflet-top {
    top: 62px !important;
  }
}

/* V1.2.30 — couleur dédiée au placeholder "Rechercher votre course" */
.otf-search input::placeholder,
.otf-map-ui--top-right .otf-search input::placeholder {
  color: var(--otf-search-placeholder) !important;
  opacity: 1 !important;
}

.otf-search input::-webkit-input-placeholder,
.otf-map-ui--top-right .otf-search input::-webkit-input-placeholder {
  color: var(--otf-search-placeholder) !important;
  opacity: 1 !important;
}

.otf-search input::-moz-placeholder,
.otf-map-ui--top-right .otf-search input::-moz-placeholder {
  color: var(--otf-search-placeholder) !important;
  opacity: 1 !important;
}

/* V1.2.31 — position libre de la recherche et du compteur */
.otf-map-slot {
  position: absolute !important;
  z-index: 31 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-width: calc(100% - 40px) !important;
  pointer-events: none !important;
}

.otf-map-slot > * {
  pointer-events: auto !important;
}

.otf-map-slot--top-left {
  top: 18px !important;
  left: 20px !important;
  align-items: flex-start !important;
}

.otf-map-slot--top-center {
  top: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  align-items: center !important;
}

.otf-map-slot--top-right {
  top: 18px !important;
  right: 20px !important;
  align-items: flex-end !important;
}

/* En bas à gauche on laisse la place au bouton Retour. */
.otf-map-slot--bottom-left {
  bottom: 70px !important;
  left: 20px !important;
  align-items: flex-start !important;
}

.otf-map-slot--bottom-center {
  bottom: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  align-items: center !important;
}

.otf-map-slot--bottom-right {
  bottom: 18px !important;
  right: 20px !important;
  align-items: flex-end !important;
}

.otf-map-widget--search,
.otf-map-widget--search .otf-search-wrap,
.otf-map-widget--search .otf-search {
  width: min(320px, 76vw) !important;
  max-width: min(320px, 76vw) !important;
}

.otf-map-widget--search .otf-search input {
  height: 44px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(1,39,78,.14) !important;
  border-radius: 13px !important;
  background: var(--otf-search-bg) !important;
  color: var(--otf-search-text) !important;
  box-shadow: 0 8px 24px rgba(1,39,78,.08) !important;
  font-size: 13px !important;
}

.otf-map-widget--search .otf-search-results {
  background: var(--otf-search-results-bg) !important;
}

/* Si la recherche est en bas, les résultats s'ouvrent vers le haut. */
.otf-map-slot--bottom-left .otf-search-results,
.otf-map-slot--bottom-center .otf-search-results,
.otf-map-slot--bottom-right .otf-search-results {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
}

.otf-map-widget--counter .otf-counter {
  width: auto !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(1,39,78,.12) !important;
  border-radius: 12px !important;
  background: var(--otf-counter-bg) !important;
  box-shadow: 0 8px 22px rgba(1,39,78,.07) !important;
  white-space: nowrap !important;
}

.otf-map-widget--counter .otf-counter strong {
  display: inline !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.otf-map-widget--counter .otf-counter span {
  display: inline !important;
  margin: 0 !important;
  font-size: 9px !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
}

/* Neutralise les anciens placements fixes de la recherche/du compteur. */
.otf-map-ui--top-right,
.otf-map-ui--bottom-right {
  display: none !important;
}

@media (max-width: 600px) {
  .otf-map-slot {
    gap: 7px !important;
    max-width: calc(100% - 24px) !important;
  }

  .otf-map-slot--top-left {
    top: 12px !important;
    left: 12px !important;
  }

  .otf-map-slot--top-center {
    top: 12px !important;
  }

  .otf-map-slot--top-right {
    top: 12px !important;
    right: 12px !important;
  }

  .otf-map-slot--bottom-left {
    bottom: 64px !important;
    left: 12px !important;
  }

  .otf-map-slot--bottom-center {
    bottom: 12px !important;
  }

  .otf-map-slot--bottom-right {
    bottom: 12px !important;
    right: 12px !important;
  }

  .otf-map-widget--search,
  .otf-map-widget--search .otf-search-wrap,
  .otf-map-widget--search .otf-search {
    width: min(250px, 68vw) !important;
    max-width: min(250px, 68vw) !important;
  }

  .otf-map-widget--search .otf-search input {
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  .otf-map-widget--counter .otf-counter {
    padding: 7px 9px !important;
  }

  .otf-map-widget--counter .otf-counter span {
    font-size: 8px !important;
  }
}

/* V1.2.32 — bouton Retour configurable comme la recherche et le compteur */
.otf-map-widget--back .otf-back {
  position: static !important;
  margin: 0 !important;
}

/* Plus besoin de réserver une zone fixe pour le bouton Retour. */
.otf-map-slot--bottom-left {
  bottom: 18px !important;
}

@media (max-width: 600px) {
  .otf-map-slot--bottom-left {
    bottom: 12px !important;
  }
}

/* V1.2.43 — hauteur mobile stable, indépendante du niveau de zoom */
@media (max-width: 600px) {
  .otf-finder.otf-mobile-auto-height .otf-map-shell {
    height: var(--otf-mobile-map-height, 420px) !important;
    min-height: 0 !important;

    /* Leaflet ne doit jamais zoomer pendant que le conteneur se redimensionne. */
    transition: none !important;
  }
}

/* World Map 1.0.1 — couleurs par composant */
.otf-finder .otf-search input{border-color:var(--otf-search-border)!important}
.otf-finder .otf-search-results{border-color:var(--otf-search-border)!important}
.otf-finder .otf-search-item{border-bottom-color:var(--otf-search-border)!important}
.otf-finder .otf-search-item strong{color:var(--otf-search-result-text)!important}
.otf-finder .otf-search-item small{color:var(--otf-search-result-muted)!important}
.otf-finder .otf-search-item:hover{background:var(--otf-search-hover-bg)!important}
.otf-finder .otf-map-widget--counter .otf-counter{background:var(--otf-counter-bg)!important;border-color:var(--otf-counter-border)!important}
.otf-finder .otf-map-widget--counter .otf-counter strong{color:var(--otf-counter-text)!important}
.otf-finder .otf-map-widget--counter .otf-counter span{color:var(--otf-counter-label)!important}
.otf-finder .otf-map-widget--back .otf-back{background:var(--otf-back-bg)!important;color:var(--otf-back-text)!important;border-color:var(--otf-back-border)!important}
.otf-finder .otf-map-widget--back .otf-back .otf-back__icon{color:var(--otf-back-text)!important}
.otf-finder .otf-map-widget--back .otf-back:hover{background:var(--otf-back-hover-bg)!important;border-color:var(--otf-back-hover-border)!important;color:var(--otf-back-text)!important}


/* World Map 1.0.4 — tailles de textes PC / mobile indépendantes */
.otf-finder .otf-map-heading h2{font-size:var(--otf-title-size-desktop,48px)!important}
.otf-finder .otf-map-heading p{font-size:var(--otf-subtitle-size-desktop,14px)!important}
.otf-finder .otf-map-widget--search .otf-search input{font-size:var(--otf-search-size-desktop,13px)!important}
.otf-finder .otf-search-item strong{font-size:var(--otf-search-results-size-desktop,14px)!important}
.otf-finder .otf-search-item small{font-size:calc(var(--otf-search-results-size-desktop,14px) - 2px)!important}
.otf-finder .otf-search-item em{font-size:calc(var(--otf-search-results-size-desktop,14px) - 3px)!important}
.otf-finder .otf-map-widget--counter .otf-counter strong{font-size:var(--otf-counter-number-size-desktop,13px)!important}
.otf-finder .otf-map-widget--counter .otf-counter span{font-size:var(--otf-counter-label-size-desktop,9px)!important}
.otf-finder .otf-map-widget--back .otf-back{font-size:var(--otf-back-size-desktop,13px)!important}
.otf-finder .otf-map .leaflet-tooltip{font-size:var(--otf-map-label-size-desktop,11px)!important}

@media(max-width:600px){
  .otf-finder .otf-map-heading h2{font-size:var(--otf-title-size-mobile,30px)!important}
  .otf-finder .otf-map-heading p{font-size:var(--otf-subtitle-size-mobile,12px)!important}
  .otf-finder .otf-map-widget--search .otf-search input{font-size:var(--otf-search-size-mobile,11px)!important}
  .otf-finder .otf-search-item strong{font-size:var(--otf-search-results-size-mobile,13px)!important}
  .otf-finder .otf-search-item small{font-size:calc(var(--otf-search-results-size-mobile,13px) - 2px)!important}
  .otf-finder .otf-search-item em{font-size:calc(var(--otf-search-results-size-mobile,13px) - 3px)!important}
  .otf-finder .otf-map-widget--counter .otf-counter strong{font-size:var(--otf-counter-number-size-mobile,13px)!important}
  .otf-finder .otf-map-widget--counter .otf-counter span{font-size:var(--otf-counter-label-size-mobile,8px)!important}
  .otf-finder .otf-map-widget--back .otf-back{font-size:var(--otf-back-size-mobile,11px)!important}
  .otf-finder .otf-map .leaflet-tooltip,.otf-finder .otf-country-map-label span{font-size:var(--otf-map-label-size-mobile,10px)!important}
}
