/* ============================================================
   La Salle - Carte des établissements (self-contained, Elementor-ready)
   Branding aligné campuslasalle : navy #0A2540 / bleu #1E4D8C / or #C8A15A
   ============================================================ */
.lse-app {
    --lse-primary: #0A2540;
    --lse-secondary: #1E4D8C;
    --lse-accent: #C8A15A;
    --lse-text: #0A2540;
    --lse-text-light: #3d4d62;
    --lse-text-muted: #6b7a90;
    --lse-border: rgba(10,37,64,.08);
    --lse-line: #dbe3ee;
    --lse-bg: #f4f7fb;
    --lse-radius: 18px;
    --lse-map-h: 640px;
    --lse-ease: cubic-bezier(.22,.61,.36,1);

    max-width: 1520px;
    margin: 0 auto;
    color: var(--lse-text);
    font-family: inherit;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}
.lse-app *, .lse-app *::before, .lse-app *::after { box-sizing: border-box; }

/* === Panneau filtres === */
.lse-panel {
    background: #fff;
    border-radius: 20px;
    padding: 22px 26px 20px;
    box-shadow: 0 4px 28px rgba(10,37,64,.06);
    margin-bottom: 16px;
    border: 1px solid var(--lse-border);
}
.lse-filters {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr auto auto;
    gap: 12px;
    align-items: end;
}
.lse-filter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lse-filter label {
    font-size: 11px; font-weight: 700; color: var(--lse-text-muted);
    letter-spacing: .08em; text-transform: uppercase;
}
/* Champs : spécificité #lse-app + !important pour neutraliser le CSS du thème hôte
   (sinon un thème agressif transforme l'input en simple soulignement ou le bouton en gros bouton coloré). */
#lse-app .lse-filter input,
#lse-app .lse-filter select {
    height: 44px !important; padding: 0 14px !important; margin: 0 !important;
    border: 1.5px solid var(--lse-line) !important; border-radius: 10px !important;
    background-color: #fff !important; font-family: inherit !important; font-size: 14px !important;
    color: var(--lse-text) !important; line-height: normal !important;
    text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important;
    -webkit-appearance: none !important; appearance: none !important;
    transition: border-color .2s ease, box-shadow .2s ease; width: 100% !important; min-width: 0; max-width: none !important;
}
#lse-app .lse-filter input:focus,
#lse-app .lse-filter select:focus {
    outline: none !important; border-color: var(--lse-secondary) !important;
    box-shadow: 0 0 0 3px rgba(30,77,140,.14) !important;
}
#lse-app .lse-filter select {
    cursor: pointer; padding-right: 34px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A2540' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px !important;
}
#lse-app .lse-check {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 14px;
    border: 1.5px solid var(--lse-line) !important; border-radius: 10px !important; background: #fff !important;
    font-size: 13px; font-weight: 600; color: var(--lse-text-light); cursor: pointer; white-space: nowrap; text-transform: none !important;
}
#lse-app .lse-check input { width: 16px !important; height: 16px !important; min-height: 0 !important; margin: 0 !important; accent-color: var(--lse-secondary); cursor: pointer; }
#lse-app .lse-reset {
    height: 44px !important; padding: 0 18px !important; margin: 0 !important; width: auto !important;
    border: 1.5px solid var(--lse-line) !important; background: #fff !important; background-image: none !important;
    border-radius: 10px !important; font-size: 13px !important; font-weight: 600 !important; color: var(--lse-text-light) !important;
    text-transform: none !important; letter-spacing: normal !important; text-shadow: none !important;
    line-height: normal !important; box-shadow: none !important; cursor: pointer;
    transition: all .2s ease; white-space: nowrap; font-family: inherit !important;
}
#lse-app .lse-reset:hover { border-color: var(--lse-primary) !important; color: var(--lse-primary) !important; background: #fff !important; }

/* === Bandeau résultats === */
.lse-meta {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 6px 14px; flex-wrap: wrap; gap: 8px;
}
#lse-count { font-size: 1.25rem; color: var(--lse-primary); font-weight: 800; font-family: inherit; }
#lse-count::before { content: attr(data-count); color: var(--lse-accent); margin-right: 8px; }
#lse-count[data-count="0"]::before, #lse-count[data-count=""]::before { content: ''; margin: 0; }
.lse-meta__hint { color: var(--lse-text-muted); font-size: 13px; font-style: italic; }

/* === Layout liste GAUCHE + carte DROITE === */
.lse-layout {
    display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start;
}
.lse-list-wrap {
    max-height: var(--lse-map-h); overflow-y: auto; padding-right: 8px; scroll-behavior: smooth;
}
.lse-list-wrap::-webkit-scrollbar { width: 6px; }
.lse-list-wrap::-webkit-scrollbar-thumb { background: #c5d2e3; border-radius: 10px; }
.lse-list-wrap::-webkit-scrollbar-thumb:hover { background: #9fb0c8; }
.lse-list { display: flex; flex-direction: column; gap: 12px; }

/* === Carte établissement (liste) === */
.lse-card {
    display: grid; grid-template-columns: 6px 1fr 18px; align-items: stretch;
    background: #fff; border: 1px solid var(--lse-border); border-radius: 14px;
    overflow: hidden; cursor: pointer;
    transition: transform .25s var(--lse-ease), box-shadow .25s ease, border-color .2s ease;
}
.lse-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -10px rgba(10,37,64,.20); border-color: var(--lse-secondary);
}
.lse-card:focus-visible { outline: 2px solid var(--lse-secondary); outline-offset: 2px; }
.lse-card__bar { width: 6px; }
.lse-card__body { padding: 14px 4px 14px 16px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.lse-card__title {
    font-family: inherit; font-size: 1.02rem; font-weight: 700; color: var(--lse-primary);
    margin: 0; line-height: 1.25; letter-spacing: -.005em;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.lse-card__loc {
    display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lse-text-light); margin: 0;
}
.lse-card__loc .lse-ic { background-color: var(--lse-accent); }
.lse-card__dot { color: var(--lse-text-muted); font-weight: 700; }
.lse-card__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.lse-card__chev {
    align-self: center; width: 18px; height: 18px; margin-right: 8px;
    background-color: #c5d2e3;
    -webkit-mask: var(--ic-chev) center/contain no-repeat; mask: var(--ic-chev) center/contain no-repeat;
}
.lse-card:hover .lse-card__chev { background-color: var(--lse-secondary); }

/* === Badges / pastilles === */
.lse-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
    border-radius: 100px; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .02em; white-space: nowrap;
}
.lse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.lse-badge--more { background: #eef2f8; color: var(--lse-text-muted); }
.lse-badge--feat { background: #fdf5e6; color: #9a6b06; }
.lse-badge--feat .lse-ic { background-color: #c79320; width: 12px; height: 12px; }

.lse-noresult {
    background: #fff; border: 1px dashed #c5d2e3; border-radius: 14px;
    padding: 44px 24px; text-align: center; color: var(--lse-text-light);
}
.lse-noresult p { margin: 0; }

/* === Carte (map) === */
.lse-map-wrap { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.lse-map {
    height: var(--lse-map-h); border-radius: 18px; overflow: hidden;
    box-shadow: 0 12px 40px -12px rgba(10,37,64,.22); border: 1px solid var(--lse-border);
    background: #fff; z-index: 1;
}
.lse-map .leaflet-tile-pane { filter: saturate(.92); }
.lse-maperr {
    height: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center;
    background: var(--lse-bg); color: var(--lse-primary); text-align: center; padding: 40px;
}
.lse-maperr span { font-size: 13px; color: var(--lse-text-muted); }
.lse-legend {
    background: #fff; border-radius: 14px; padding: 13px 18px; border: 1px solid var(--lse-border);
    box-shadow: 0 2px 12px rgba(10,37,64,.06); font-size: 12px;
}
.lse-legend strong {
    font-size: 10px; font-weight: 700; color: var(--lse-text-muted); letter-spacing: .12em;
    text-transform: uppercase; display: block; margin-bottom: 8px;
}
.lse-legend__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.lse-legend__grid span { display: flex; align-items: center; gap: 8px; color: var(--lse-text-light); font-size: 12px; }

/* === Markers / clusters === */
.lse-marker__pin { transition: transform .25s var(--lse-ease); cursor: pointer; }
.lse-marker__pin:hover { transform: translateY(-3px) scale(1.08); }
.lse-cluster-wrap { background: transparent; border: none; }
.lse-cluster {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--lse-primary), var(--lse-secondary));
    border: 3px solid #fff; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 4px 12px rgba(10,37,64,.35);
}

/* === Infobulle (popup Leaflet) === */
.lse-popup .leaflet-popup-content-wrapper {
    border-radius: 16px; padding: 0; overflow: hidden;
    box-shadow: 0 18px 50px -12px rgba(10,37,64,.4); border: 1px solid var(--lse-border);
}
.lse-popup .leaflet-popup-content { margin: 0; line-height: 1.4; }
/* Leaflet force margin:18px 0 sur les <p> de la popup (spécificité .leaflet-popup-content p) : on neutralise */
.lse-popup .leaflet-popup-content p { margin: 0; }
.lse-popup .leaflet-popup-tip { box-shadow: 0 6px 18px rgba(10,37,64,.18); }
.lse-popup a { color: var(--lse-secondary); }
.lse-pop { font-family: inherit; }
.lse-pop__head {
    background: linear-gradient(135deg, var(--lse-primary), var(--lse-secondary));
    color: #fff; padding: 14px 18px 12px;
}
.lse-pop__title { margin: 0 0 3px; font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: #fff; }
.lse-pop__loc { margin: 0; font-size: 12px; color: rgba(255,255,255,.85); }
.lse-pop__badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 4px; }
.lse-pop__feats { padding: 4px 18px 0; }
.lse-feat {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
    color: #9a6b06; background: #fdf5e6; padding: 4px 10px; border-radius: 100px;
}
.lse-feat .lse-ic { background-color: #c79320; }
.lse-pop__info { padding: 10px 18px 4px; display: flex; flex-direction: column; gap: 8px; }
.lse-pop__line { margin: 0; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--lse-text-light); }
.lse-pop__line .lse-ic { background-color: var(--lse-secondary); margin-top: 1px; flex-shrink: 0; }
.lse-pop__line a { word-break: break-word; text-decoration: none; }
.lse-pop__line a:hover { text-decoration: underline; }
.lse-pop__cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 12px 18px 16px; padding: 11px 16px; border-radius: 10px;
    background: var(--lse-primary); color: #fff !important; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: background .2s ease;
}
.lse-pop__cta:hover { background: var(--lse-secondary); }
.lse-pop__cta .lse-ic { background-color: #fff; }

/* === Icônes (masques SVG, zéro dépendance Font Awesome) === */
.lse-app, .lse-popup {
    --ic-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z'/%3E%3C/svg%3E");
    --ic-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M6.6 10.8a15.5 15.5 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.3 1l-2.2 2.2z'/%3E%3C/svg%3E");
    --ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 4l-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
    --ic-web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm6.9 6h-2.9a15.6 15.6 0 00-1.3-3.4A8 8 0 0118.9 8zM12 4c.8 1.2 1.4 2.5 1.8 4h-3.6c.4-1.5 1-2.8 1.8-4zM4.3 14a8 8 0 010-4h3.3a17 17 0 000 4H4.3zm.8 2h2.9c.3 1.2.8 2.4 1.3 3.4A8 8 0 015.1 16zM8 8H5.1a8 8 0 014.2-3.4A15.6 15.6 0 008 8zm4 12c-.8-1.2-1.4-2.5-1.8-4h3.6c-.4 1.5-1 2.8-1.8 4zm2.2-6H9.8a15 15 0 010-4h4.4a15 15 0 010 4zm.5 5.4c.5-1 1-2.2 1.3-3.4h2.9a8 8 0 01-4.2 3.4zM16.4 14a17 17 0 000-4h3.3a8 8 0 010 4h-3.3z'/%3E%3C/svg%3E");
    --ic-bed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M7 13a3 3 0 100-6 3 3 0 000 6zm13-2h-8v4H4V7H2v12h2v-2h16v2h2v-7a3 3 0 00-3-3z'/%3E%3C/svg%3E");
    --ic-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M14 3v2h3.6l-9.8 9.8 1.4 1.4L19 6.4V10h2V3h-7zM19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7h-2v7z'/%3E%3C/svg%3E");
    --ic-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
}
.lse-ic {
    display: inline-block; width: 14px; height: 14px; flex-shrink: 0; background-color: currentColor;
    -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
}
.lse-ic--pin { -webkit-mask-image: var(--ic-pin); mask-image: var(--ic-pin); }
.lse-ic--tel { -webkit-mask-image: var(--ic-tel); mask-image: var(--ic-tel); }
.lse-ic--mail { -webkit-mask-image: var(--ic-mail); mask-image: var(--ic-mail); }
.lse-ic--web { -webkit-mask-image: var(--ic-web); mask-image: var(--ic-web); }
.lse-ic--bed { -webkit-mask-image: var(--ic-bed); mask-image: var(--ic-bed); }
.lse-ic--ext { -webkit-mask-image: var(--ic-ext); mask-image: var(--ic-ext); }

/* === Responsive === */
@media (max-width: 1024px) {
    .lse-filters { grid-template-columns: 1fr 1fr; }
    .lse-filter--search { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .lse-app { --lse-map-h: 420px; }
    .lse-panel { padding: 18px 16px 16px; }
    .lse-filters { grid-template-columns: 1fr 1fr; gap: 10px; }
    .lse-filter--search { grid-column: 1 / -1; }
    .lse-check, .lse-reset { grid-column: span 1; }
    .lse-layout { grid-template-columns: 1fr; gap: 16px; }
    .lse-map-wrap { position: static; order: -1; }
    .lse-list-wrap { max-height: none; overflow: visible; padding-right: 0; }
    .lse-legend__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .lse-filters { grid-template-columns: 1fr; }
    .lse-check, .lse-reset { grid-column: 1 / -1; }
}
