﻿/* ============================================================
   PAGE : PROGRAMMES NEUFS
   ============================================================ */

/* Hero recherche */
.oh-prog-hero {
  position: relative;
  min-height: 340px;
  background-color: var(--color-dark);
  background-image: var(--hero-bg, linear-gradient(130deg, #0e2036 0%, #1a2f48 50%, #122540 100%));
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.oh-prog-hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 22%),
    radial-gradient(ellipse 55% 90% at 50% 45%,
      rgba(255,255,255,0.92) 0%,
      rgba(255,255,255,0.70) 35%,
      rgba(255,255,255,0.10) 60%,
      rgba(255,255,255,0)    80%
    );
}
.oh-prog-hero__content {
  position: relative;
  z-index: 1;
  padding-block: 5rem 0;
}
.oh-prog-hero__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.oh-prog-hero__heading em { font-style: normal; color: var(--color-primary); }
.oh-prog-hero__sub {
  font-size: var(--text-base);
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  max-width: 460px;
  margin-inline: auto;
  text-align: center;
}

/* Formulaire de recherche */
.oh-search-form {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin-inline: auto;
}
.oh-search-form__fields {
  display: flex;
  flex: 1;
  min-width: 0;
}
.oh-search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  padding: 1rem 1.25rem;
}
.oh-search-field--sep {
  border-left: 1px solid var(--color-border);
}
.oh-search-field__icon {
  flex-shrink: 0;
  color: var(--color-muted);
}
.oh-search-field__inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.oh-search-field__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}
.oh-search-field__select {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  width: 100%;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.oh-search-form__btn {
  flex-shrink: 0;
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  align-self: stretch;
}
.oh-search-form__btn:hover {
  transform: none;
  box-shadow: none;
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  filter: none;
}

/* Budget : trigger + popup */
.oh-search-field--location   { flex: 2.2; min-width: 0; }
.oh-search-field--budget     { flex: 0.9; }
.oh-search-field--more-filters { flex: none; padding-inline: 0.75rem; }
.oh-budget-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  text-align: left;
  width: 100%;
}
.oh-budget-summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oh-budget-trigger svg { flex-shrink: 0; color: var(--color-muted); }

.oh-budget-popup {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.125rem 1.25rem 1rem;
  min-width: 300px;
}
.oh-budget-popup[hidden] { display: none; }
.oh-budget-popup__row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.oh-budget-popup__field { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.oh-budget-popup__field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.oh-budget-popup__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  background: var(--color-bg-soft, #f8f8f8);
  transition: border-color 0.15s;
}
.oh-budget-popup__input-wrap:focus-within { border-color: var(--color-primary); }
.oh-budget-popup__input {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  min-width: 0;
}
.oh-budget-popup__input::placeholder { color: var(--color-muted); font-weight: 400; }
.oh-budget-popup__currency { font-size: var(--text-sm); color: var(--color-muted); flex-shrink: 0; }
.oh-budget-popup__dash { color: var(--color-muted); font-size: var(--text-sm); padding-bottom: 0.5rem; flex-shrink: 0; }

.oh-budget-popup__tva { border-top: 1px solid var(--color-border); padding-top: 0.875rem; }
.oh-budget-popup__tva-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.oh-budget-popup__tva-opts { display: flex; gap: 0.5rem; }
.oh-tva-opt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: 2rem;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.oh-tva-opt input[type="radio"] { display: none; }
.oh-tva-opt:has(input:checked) {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
}

/* Plus de filtres â€” bouton */
.oh-more-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: 0;
  white-space: nowrap;
  line-height: 1;
}
.oh-more-filters-btn:hover,
.oh-more-filters-btn.is-active { color: var(--color-primary); }
.oh-more-filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  line-height: 1;
}

/* Plus de filtres â€” panel (portal, position absolute via JS) */
.oh-more-panel {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
.oh-more-panel[hidden] { display: none; }

.oh-more-panel__section {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}
.oh-more-panel__section:nth-last-child(2),
.oh-more-panel__section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.oh-more-panel__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-dark);
  margin: 0 0 0.75rem;
}
.oh-more-panel__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.oh-check-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: var(--font-sm);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.oh-check-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.oh-check-opt:has(input:checked) {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  color: var(--color-primary);
  font-weight: 500;
}
.oh-more-panel__range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.oh-more-panel__range-field {
  display: flex;
  align-items: center;
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s;
}
.oh-more-panel__range-field:focus-within { border-color: var(--color-primary); }
.oh-more-panel__num {
  border: none;
  outline: none;
  padding: 0.4rem 0.4rem 0.4rem 0.6rem;
  font-family: var(--font-body);
  font-size: var(--font-sm);
  width: 100%;
  min-width: 0;
  background: transparent;
  -moz-appearance: textfield;
}
.oh-more-panel__num::-webkit-inner-spin-button,
.oh-more-panel__num::-webkit-outer-spin-button { -webkit-appearance: none; }
.oh-more-panel__num::placeholder { color: var(--color-muted); }
.oh-more-panel__unit {
  font-size: 0.73rem;
  color: var(--color-muted);
  padding: 0 0.55rem 0 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.oh-more-panel__sep { color: var(--color-muted); font-size: var(--font-sm); }
.oh-dispo-dd { position: relative; }
.oh-dispo-dd__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-body);
  font-size: var(--font-sm);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s;
}
.oh-dispo-dd__trigger:hover,
.oh-dispo-dd__trigger[aria-expanded="true"] { border-color: var(--color-primary); }
.oh-dispo-dd__summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-dispo-dd__summary.is-placeholder { color: var(--color-muted); }
.oh-dispo-dd__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.25rem 0;
  margin: 0;
  z-index: 10000;
  max-height: 200px;
  overflow-y: auto;
}
.oh-dispo-dd__list[hidden] { display: none; }
.oh-dispo-dd__item {
  padding: 0.45rem 0.75rem;
  font-size: var(--font-sm);
  cursor: pointer;
  transition: background 0.1s;
}
.oh-dispo-dd__item:hover { background: var(--color-bg-light); }
.oh-dispo-dd__item.is-selected {
  background: color-mix(in srgb, var(--color-dark) 8%, transparent);
  color: var(--color-dark);
  font-weight: 500;
}
.oh-more-panel__footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.oh-more-panel__reset {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--font-sm);
  color: var(--color-muted);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.oh-more-panel__reset:hover { color: var(--color-text); }
.oh-more-panel__apply {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.1rem;
  font-family: var(--font-body);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.oh-more-panel__apply:hover { background: #1a3a5c; }

/* Localisation : autocomplete multi-sÃ©lection */
.oh-location-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem;
  cursor: text;
  min-width: 0;
  overflow: hidden;
}
.oh-location-tags { display: contents; }
.oh-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.4rem 0.1rem 0.6rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 2rem;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.6;
}
.oh-location-tag__remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.75;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}
.oh-location-tag__remove:hover { opacity: 1; }
.oh-location-tag--with-radius { cursor: pointer; gap: 0.35rem; }
.oh-location-tag__radius {
  background: rgba(255,255,255,0.25);
  border-radius: 1rem;
  padding: 0 0.35rem;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
}
.oh-location-input {
  flex: 1;
  min-width: 80px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  padding: 0;
}
.oh-location-input::placeholder { color: var(--color-muted); font-weight: 400; }

/* Ã‰tat Â« aucune sÃ©lection Â» : mÃªme apparence que le placeholder de la localisation */
.oh-dropdown__trigger.is-placeholder,
.oh-budget-trigger.is-placeholder,
.oh-dropdown__trigger.is-placeholder .oh-dropdown__value,
.oh-budget-trigger.is-placeholder .oh-budget-summary { color: var(--color-muted); font-weight: 400; }

/* Liste suggestions â€“ portÃ©e sur le body pour Ã©viter le clipping du formulaire */
.oh-location-list {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  max-height: 280px;
  overflow-y: auto;
}
.oh-location-list[hidden] { display: none; }
.oh-location-group-label {
  padding: 0.5rem 0.875rem 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  list-style: none;
}
.oh-location-group-label--sep { border-top: 1px solid var(--color-border); margin-top: 0.25rem; padding-top: 0.6rem; }
.oh-location-item {
  padding: 0.45rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
  list-style: none;
}
.oh-location-item:hover,
.oh-location-item.is-focused { background: var(--color-bg-light); color: var(--color-primary); }
.oh-location-item--empty { padding: 0.75rem 1rem; font-size: var(--text-sm); color: var(--color-muted); text-align: center; list-style: none; }
/* Champ Alentours */
.oh-alentours-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.oh-alentours-input {
  flex: 1;
  min-width: 80px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  padding: 0;
}
.oh-alentours-input::placeholder { color: var(--color-muted); font-weight: 400; }
.oh-alentours-summary {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Popup rayon (portÃ©e sur le body) */
.oh-radius-popup {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.125rem 0.875rem;
  min-width: 240px;
}
.oh-radius-popup[hidden] { display: none; }
.oh-radius-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.oh-radius-popup__label { font-size: var(--text-sm); color: var(--color-muted); }
.oh-radius-popup__value { font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); }
.oh-radius-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  background: var(--color-border);
}
.oh-radius-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: grab;
  transition: transform 0.1s;
}
.oh-radius-range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.oh-radius-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: grab;
}
.oh-radius-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.6rem;
  color: var(--color-muted);
}

/* Dropdowns custom (PiÃ¨ces, Budget, Prestations) */
.oh-dropdown { position: relative; }
.oh-dropdown__trigger {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  width: 100%;
  padding: 0;
  text-align: left;
  display: block;
}
.oh-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.oh-dropdown-item.is-selected { color: var(--color-primary); font-weight: 500; }
.oh-dropdown-item.is-selected::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 9px;
  border: 2px solid currentColor;
  border-left: none;
  border-top: none;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

/* Barre filtres */
.oh-filters-bar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.oh-filters-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  flex-wrap: wrap;
  padding-block: 0.625rem;
}
.oh-filters-bar__left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  min-width: 0;
}
.oh-filters-bar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.oh-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(228,100,38,0.25);
  border-radius: 99px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.oh-filter-chip__remove {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease);
}
.oh-filter-chip__remove:hover { opacity: 1; }

.oh-filters-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
  white-space: nowrap;
}
.oh-filters-more:hover { border-color: var(--color-dark); background: var(--color-bg-light); }

.oh-filters-bar__count {
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding-left: 0.25rem;
  white-space: nowrap;
}
.oh-filters-bar__count strong { color: var(--color-dark); font-weight: 600; }

.oh-filters-bar__sort-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  white-space: nowrap;
}
.oh-filters-bar__sort-select {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.625rem;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.oh-filters-bar__sort-select:focus { border-color: var(--color-primary); }

/* Toggle vue */
.oh-view-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.oh-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
  background: transparent;
  border: none;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  white-space: nowrap;
}
.oh-view-toggle__btn + .oh-view-toggle__btn { border-left: 1px solid var(--color-border); }
.oh-view-toggle__btn.is-active { color: var(--color-dark); background: var(--color-bg-light); }
.oh-view-toggle__btn:hover:not(.is-active) { color: var(--color-dark); }

/* Carte cachÃ©e sur desktop, Grille cachÃ©e sur mobile (gÃ©rÃ© via media query) */
#oh-view-map { display: none; }


/* Layout sidebar + grille */
.oh-prog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.oh-prog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 80px;
}
.admin-bar .oh-prog-sidebar { top: 112px; }

/* Marqueurs carte personnalisÃ©s */
.oh-map-marker {
  width: 34px;
  height: 34px;
  background: #E46426;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}
.oh-map-marker svg {
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Cluster MarkerCluster â€“ couleurs OpenHome (!important car Default.css est chargÃ© aprÃ¨s) */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(228,100,38,0.35) !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 700;
  font-family: var(--font-body);
}

/* Popup Leaflet â€“ mini-carte programme au clic marqueur */
.oh-map-popup-card .leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: none;
}
.oh-map-popup-card .leaflet-popup-content {
  margin: 0 !important;
  width: 220px !important;
}
.oh-map-popup-card .leaflet-popup-tip {
  background: #fff;
}
.oh-map-mini-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.oh-map-mini-card__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.oh-map-mini-card__body {
  padding: 0.5rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.oh-map-mini-card__ville {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}
.oh-map-mini-card__name {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}
.oh-map-mini-card__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.125rem;
}
.oh-map-mini-card__info-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.oh-map-mini-card__meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.oh-map-mini-card__prix-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.oh-map-mini-card__prix {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.oh-map-mini-card__cta {
  margin-top: 0.25rem;
  justify-content: flex-end;
}
.oh-map-popup-card .oh-map-mini-card__cta,
.oh-map-mini-card .oh-map-mini-card__cta {
  color: var(--color-dark);
}
.oh-map-popup-card .oh-map-mini-card__cta:hover,
.oh-map-mini-card .oh-map-mini-card__cta:hover {
  color: var(--color-primary);
}
.oh-map-card__close { z-index: 2; }
.oh-map-card__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--color-muted);
}
.oh-map-card__close:hover { color: var(--color-dark); }

/* Bloc carte sidebar */
.oh-map-block { position: relative; }
.oh-map-block__header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}
.oh-btn-fullmap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.oh-btn-fullmap:hover { color: var(--color-primary); }
#oh-sidebar-map {
  position: relative;
  height: 440px;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Modal carte plein Ã©cran */
.oh-map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oh-map-modal[hidden] { display: none; }
.oh-map-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}
.oh-map-modal__container {
  position: relative;
  z-index: 1;
  width: 90vw;
  height: 85vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.oh-map-modal__close {
  position: absolute;
  top: calc(7.5vh + 1rem);
  right: calc(5vw + 1rem);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  color: #fff;
  transition: background 0.2s, transform 0.15s;
}
.oh-map-modal__close:hover { background: var(--color-primary); transform: scale(1.08); }
#oh-modal-map { position: relative; width: 100%; height: 100%; }

@media (max-width: 768px) {
  .oh-map-modal__container {
    width: 100vw;
    /* Laisse la barre mobile visible en bas (≈70px + safe area) */
    height: calc(100dvh - 70px - env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    margin-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .oh-map-modal__close {
    top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
    right: 0.75rem;
  }
}

/* CTA sidebar contact */
.oh-sidebar-cta {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.oh-sidebar-cta__avatar {
  width: 52px;
  height: 52px;
  background: var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}
.oh-sidebar-cta__heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.2;
}
.oh-sidebar-cta__text {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.6;
}
.oh-sidebar-cta__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
}
.oh-sidebar-cta__phone a { color: inherit; }
.oh-sidebar-cta__phone a:hover { color: var(--color-primary); }
.oh-sidebar-cta__hours {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Grille des cartes programme */
.oh-prog-grid[hidden],
#oh-prog-map[hidden] { display: none; }

.oh-prog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-content: start;
}
.oh-prog-grid__pagination {
  grid-column: 1 / -1;
}

/* Vue grille de cartes â€“ activÃ©e par JS via .oh-prog-grid--cards */
.oh-prog-grid--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-content: start;
}
.oh-prog-grid--cards .oh-prog-card { flex-direction: column; }
.oh-prog-grid--cards .oh-prog-card__visual { width: 100%; aspect-ratio: 4/3; align-self: auto; }
.oh-prog-grid--cards .oh-prog-card:hover { transform: translateY(-3px); }
.oh-prog-grid--cards .oh-prog-grid__pagination { grid-column: 1 / -1; }

/* Carte programme */
.oh-prog-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.oh-prog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.oh-prog-card__visual {
  position: relative;
  display: block;
  width: 260px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-bg-light);
  align-self: stretch;
}
.oh-prog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oh-prog-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-bg-light) 0%, var(--color-border) 100%);
}

.oh-prog-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.oh-prog-card__badge--offre                  { background: #c0392b; }
.oh-prog-card__offer-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(192,57,43,0.92) 0%, rgba(192,57,43,0.6) 70%, transparent 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.oh-prog-card__badge--nouveaute              { background: var(--color-primary); }
.oh-prog-card__badge--en_lancement           { background: #2c7be5; }
.oh-prog-card__badge--en_construction        { background: #d97706; }
.oh-prog-card__badge--livraison_prochaine    { background: #0a8754; }
.oh-prog-card__badge--disponibilite_immediate{ background: #0d7a5f; }

.oh-prog-card__fav {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  border: none;
}
.oh-prog-card__fav:hover { color: var(--color-primary); background: #fff; }
.oh-prog-card__fav.is-active { color: var(--color-primary); fill: var(--color-primary); }

.oh-prog-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.oh-prog-card__location {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}
.oh-prog-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}
.oh-prog-card__title a { color: inherit; }
.oh-prog-card__title a:hover { color: var(--color-primary); }

.oh-prog-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.625rem;
  border-top: 1px solid var(--color-border);
}
.oh-prog-card__info-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.oh-prog-card__info-item {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.oh-prog-card__info-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}
.oh-prog-card__price-label {
  font-size: 0.68rem;
  color: var(--color-muted);
}
.oh-prog-card__price {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.oh-prog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  min-height: 3rem;
  align-content: flex-start;
}
.oh-prog-card__tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.oh-prog-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}
.oh-prog-card__stretched-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Carte vue programmes */
#oh-prog-map {
  position: relative;
  display: block;
  height: 70vh;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
}
.oh-map-popup__link {
  display: inline-block;
  margin-top: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Ã‰tat vide */
.oh-prog-empty {
  grid-column: 1 / -1;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}
.oh-prog-empty a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Pagination */
.oh-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
  padding-block: 0.5rem;
}
.oh-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.oh-pagination .page-numbers:hover  { background: var(--color-bg-light); border-color: var(--color-dark); }
.oh-pagination .page-numbers.current { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
.oh-pagination .page-numbers.dots   { border: none; color: var(--color-muted); }


/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Hero recherche */
  .oh-prog-hero__content { padding-top: 1.5rem; }
  .admin-bar .oh-prog-hero__content { padding-top: calc(46px + 1.5rem); }

  /* Archive programmes */
  .oh-prog-layout { display: flex; flex-direction: column; }
  .oh-prog-sidebar { order: 10; gap: 0; }
  .oh-prog-sidebar .oh-map-block { display: none; }
  .oh-btn-fullmap { display: none; }
  /* Carte active sur mobile : remonte la sidebar et affiche la carte */
  .oh-prog-layout.oh-map-active .oh-prog-sidebar { order: 0; }
  .oh-prog-layout.oh-map-active .oh-prog-sidebar .oh-map-block { display: block; }
  .oh-prog-layout.oh-map-active #oh-sidebar-map { height: calc(100svh - 130px); min-height: 400px; border-radius: 0; }
  .oh-filters-bar { position: sticky; top: 64px; }
  .admin-bar .oh-filters-bar { top: 96px; }
  .oh-filters-bar__sort-label { display: none; }
  .oh-filters-bar__sort-select { display: none; }
  #oh-prog-map { height: calc(100svh - 130px); min-height: 400px; border-radius: 0; }
  .oh-prog-hero__content { padding-block: 3.5rem 0; }
  /* Mobile : Liste cachÃ©, Grille + Carte visibles */
  #oh-view-list { display: none; }
  #oh-view-grid { display: inline-flex; }
  #oh-view-map  { display: inline-flex; }
  .oh-prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; align-content: start; }
  .oh-prog-card { flex-direction: column; }
  .oh-prog-card:hover { transform: translateY(-3px); }
  .oh-prog-card__visual { width: 100%; aspect-ratio: 4/3; align-self: auto; }
  .oh-search-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .oh-search-form__fields { flex-direction: column; }
  .oh-search-field { padding: 0.875rem 1rem; }
  .oh-search-field--sep { border-left: none; border-top: 1px solid var(--color-border); }
  .oh-search-form__btn { border-radius: 0 0 var(--radius-lg) var(--radius-lg); width: 100%; justify-content: center; }
  .oh-search-field--more-filters {
    display: flex;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--color-border);
  }
  .oh-more-panel {
    grid-template-columns: 1fr;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.875rem 1rem;
    gap: 0;
    font-size: var(--text-sm);
  }
  .oh-more-panel__section {
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
  }
  .oh-more-panel__title {
    font-size: 0.6rem;
    margin-bottom: 0.4rem;
  }
  .oh-more-panel__checks {
    gap: 0.3rem;
  }
  .oh-check-opt {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
  .oh-more-panel__range-field {
    font-size: 0.75rem;
  }
  .oh-more-panel__num {
    font-size: 0.75rem;
    padding: 0.3rem 0.3rem 0.3rem 0.4rem;
  }
  .oh-dispo-dd__trigger {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }
  .oh-more-panel__footer {
    padding-top: 0.6rem;
  }
  .oh-more-panel__apply {
    font-size: 0.75rem;
    padding: 0.4rem 0.875rem;
  }
  .oh-more-panel__reset {
    font-size: 0.75rem;
  }
}
