:root {
    /* Palette Bring Your Mug Day : rose #0b548b + prune #0f2940 */
    --green-dark: #0f2940;
    --green: #0b548b;
    --green-2: #2f7fc0;
    --green-light: #ebf5fe;
    --lime: #68f40f;
    --header: #0f2940;
    --accent: #0b548b;
    --ink: #18242f;
    --muted: #707f8f;
    --card: #ffffff;
    --bg: #f6f8fa;
    --border: #e4ebf1;
    --shadow-s: 0 1px 3px rgba(15,41,64,.07), 0 4px 14px rgba(15,41,64,.06);
    --shadow-m: 0 4px 10px rgba(15,41,64,.10), 0 12px 32px rgba(15,41,64,.10);
    --grad: linear-gradient(135deg, #0b548b 0%, #2f7fc0 100%);
    --r: 14px;
    /* Un seul fond pour toutes les fenêtres : mugs, infos, contact et fiches mobiles. */
    --modal-backdrop-color: rgba(9,29,46,.50);
    --modal-backdrop-blur: blur(5px);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  .display, .brand-btn .bname, .slider-box .slider-label, .slider-box .slider-label .val,
  #mugPanel h2, #mugPanel .mug-sub strong, .modal h2, .mug-card h3, .brand-head .brand-tag,
  .brand-title, .mug-cta, .leaflet-popup-content h3, .back-btn {
    font-family: 'Bricolage Grotesque', 'Outfit', sans-serif;
  }
  html, body { height: 100%; font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif; color: var(--ink); }
  body { display: flex; flex-direction: column; background: var(--bg); }
  button { font-family: inherit; }

  /* ---------- Marque (dans le panneau flottant) ---------- */
  .brand-head { padding: 22px 20px 4px; }
  .brand-logo { display: block; width: 100%; height: auto; margin: 2px 0 0; }
  .brand-head .brand-tag { font-size: 1.24rem; font-weight: 700; color: var(--green-dark); line-height: 1.35; letter-spacing: -.2px; margin-top: 12px; }
  .brand-head .brand-tag strong { color: var(--green); font-weight: 800; }

  .layout { flex: 1; display: flex; min-height: 0; position: relative; background: var(--bg); }
  .mobile-search-backdrop, .mobile-filter-head, .mobile-search-trigger { display: none; }

  /* ---------- Colonne gauche ---------- */
  aside {
    position: absolute; left: 18px; top: 18px; bottom: 18px; width: 366px;
    background: rgba(255,255,255,.74);
    backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
    display: flex; flex-direction: column; z-index: 900;
    border-radius: 26px; border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 1px 2px rgba(15,41,64,.06), 0 12px 32px rgba(15,41,64,.12), 0 32px 80px rgba(15,41,64,.14);
    overflow-y: auto; overflow-x: hidden;
  }
  aside::-webkit-scrollbar-thumb { background: #d9e3eb; border-radius: 4px; }
  /* Sélection de texte : coupée uniquement sur les contrôles (boutons, curseur,
     carte) ; les textes informatifs restent sélectionnables et copiables. */
  button, .brand-btn, .slider-box .slider-label, .range-ends, .dual-range,
  .status, .leaflet-container, .city-label { -webkit-user-select: none; user-select: none; }
  .leaflet-popup-content { -webkit-user-select: text; user-select: text; }
  aside::-webkit-scrollbar, .law-side::-webkit-scrollbar, #mugPanel::-webkit-scrollbar { width: 8px; }
  .law-side::-webkit-scrollbar-thumb, #mugPanel::-webkit-scrollbar-thumb { background: #d9e3eb; border-radius: 4px; }

  .search-box { padding: 16px 18px 16px; border-bottom: 1px solid rgba(15,41,64,.06); }
  .search-row { display: flex; gap: 8px; }
  .search-field { position: relative; flex: 1; display: flex; min-width: 0; }
  .search-row input {
    width: 100%; padding: 11px 38px 11px 16px; border: 1.5px solid transparent; background: #edf2f6;
    border-radius: 999px; font-size: .95rem; font-family: inherit; transition: all .2s;
  }
  .clear-city {
    position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; padding: 0; border-radius: 50%; border: none; cursor: pointer;
    background: #d6e0e8; color: #43576a;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
  }
  .clear-city[hidden] { display: none; }
  .clear-city:hover { background: #c3d6e7; color: var(--green); }
  .search-row input:focus { outline: none; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(11,84,139,.12); }
  .search-row input::placeholder { color: #9ca6b1; }
  .search-row > button {
    background: var(--grad); color: #fff; border: none; border-radius: 999px;
    width: 44px; height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 12px rgba(11,84,139,.35);
    transition: transform .15s, box-shadow .15s;
  }
  .search-row > button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,84,139,.45); }
  .search-row > button:disabled { cursor: wait; opacity: .75; transform: none; }
  .search-row > button.is-loading svg { animation: searchPulse 1s ease-in-out infinite; }
  .search-row button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
  .search-feedback { margin: 8px 3px 0; font-size: .78rem; line-height: 1.4; color: #586b7a; }
  .search-feedback[hidden] { display: none; }
  .search-feedback.error { color: #ae3940; }
  @keyframes searchPulse { 50% { opacity: .35; } }

  /* ---------- Curseur ---------- */
  .pct-light { font-weight: 500; opacity: .72; font-size: .92em; }
  .sheet-contrib {
    display: none; width: 100%; height: 46px; margin-top: 16px;
    background: var(--grad); color: #fff; border: none; border-radius: 999px;
    font-family: inherit; font-size: .92rem; font-weight: 700; letter-spacing: .1px; cursor: pointer;
    box-shadow: 0 8px 24px rgba(11,84,139,.35);
  }
  .slider-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2edf6; }
  .slider-box .slider-label { display: flex; justify-content: space-between; align-items: baseline; }
  .slider-box .slider-label .val { color: var(--green); font-size: .9rem; font-weight: 800; letter-spacing: -.1px; }
  .slider-box .hint { font-size: .74rem; font-weight: 400; color: var(--muted); margin-top: 5px; line-height: 1.45; }
  .range-ends { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 600; color: #9ca6b1; margin-top: -1px; }
  .dual-range { position: relative; height: 30px; margin-top: 6px; }
  .dual-range input[type=range] {
    position: absolute; left: 0; top: 0; width: 100%; margin: 0; height: 30px;
    background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none;
  }
  .dual-range input[type=range]::-webkit-slider-runnable-track { height: 30px; background: transparent; }
  .dual-range input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
    background: var(--green); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(11,84,139,.45);
    margin-top: 5px; cursor: grab; transition: transform .15s;
  }
  .dual-range input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
  .dual-range input[type=range]::-moz-range-track { height: 30px; background: transparent; }
  .dual-range input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 15px; height: 15px; border-radius: 50%;
    background: var(--green); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(11,84,139,.45); cursor: grab;
  }
  .dual-range .track { position: absolute; top: 13px; left: 0; right: 0; height: 5px; background: #e3ebf2; border-radius: 3px; }
  .dual-range .fill { position: absolute; top: 13px; height: 5px; background: var(--grad); border-radius: 3px; left: 0; width: 100%; }

  /* ---------- Statut ---------- */
  .status {
    position: absolute; left: 402px; bottom: 28px; z-index: 930;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255,255,255,.85); border-radius: 999px;
    padding: 8px 15px; font-size: .78rem; font-weight: 600; color: #385268;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(15,41,64,.16);
  }
  .status .dot { width: 9px; height: 9px; border-radius: 50%; background: #c0cdd8; flex-shrink: 0; }
  .status.loading .dot { background: var(--green); animation: pulse 1s infinite; }
  .status.ok .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(11,84,139,.15); }
  .status.err .dot { background: #d64545; }
  @keyframes pulse { 50% { opacity: .3; } }

  /* ---------- Enseignes ---------- */
  .brand-box { padding: 14px 18px 6px; }
  .brand-title, .slider-box .slider-label .lbl {
    font-size: .82rem; font-weight: 800; color: #6c8699;
    text-transform: uppercase; letter-spacing: .12em;
  }
  .brand-title { margin-bottom: 10px; }
  .brand-btn {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px;
    border: 1.5px solid var(--border); border-radius: var(--r); padding: 11px 13px;
    margin-bottom: 8px; background: #fff; cursor: pointer; text-align: left;
    transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
  }
  .brand-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-s); border-color: #cce3f5; }
  .brand-btn.active {
    border-color: var(--green); background: linear-gradient(0deg, #f3f9fe, #fff);
    box-shadow: 0 4px 16px rgba(11,84,139,.16);
  }
  .brand-btn img { width: 62px; height: 20px; object-fit: contain; flex-shrink: 0; }
  .brand-btn img[alt="Columbus Café & Co"], .brand-btn img[alt="La Mie Câline"], .brand-btn img[alt="Moon Coffee Shop"], .brand-btn img[alt="EXKi"], .brand-btn img[alt="Paul"] { height: 34px; margin: -5px 0; }
  .brand-btn img[alt="Brioche Dorée"] { height: 27px; margin: -3px 0; }
.brand-btn img[alt="La Croissanterie"] { height: 32px; margin: -5px 0; }
.brand-btn img[alt="Hubsy"] { height: 30px; margin: -4px 0; }
.brand-btn img[alt="Communale"] { height: 30px; margin: -4px 0; }
.brand-btn img[alt="Café Kitsuné"], .brand-btn img[alt="Coutume"] { height: 24px; margin: -2px 0; }
  .brand-btn .brand-ini {
    width: 62px; height: 20px; border-radius: 5px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font: 700 12px/1 'Bricolage Grotesque', 'Outfit', sans-serif;
  }
  .brand-btn .bname { font-weight: 700; font-size: .95rem; color: var(--ink); }
  .brand-btn .bmeta { font-size: .76rem; color: var(--green); font-weight: 700; }
  .brand-btn .bcount {
    margin-left: auto; background: #edf2f6; color: #778594;
    border-radius: 999px; padding: 3px 10px; font-size: .74rem; font-weight: 700; flex-shrink: 0;
    transition: all .16s;
  }
  .brand-btn.active .bcount { background: var(--grad); color: #fff; box-shadow: 0 2px 8px rgba(11,84,139,.4); }

  /* ---------- Bouton mug + loi ---------- */
  .mug-cta {
    position: absolute; right: 22px; bottom: 86px; z-index: 910; width: 274px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: #fff; border: none; border-radius: 999px;
    padding: 0 10px; font-size: .92rem; font-weight: 700; cursor: pointer; white-space: nowrap;
    letter-spacing: .1px; box-shadow: 0 8px 24px rgba(11,84,139,.4);
    transition: transform .16s, box-shadow .16s;
  }
  .mug-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,84,139,.45); }
  .top-btn {
    display: block; width: 100%; margin-top: 12px; padding: 10px 0;
    background: #eef4f9; color: var(--green); border: 1.5px solid #d4e5f2; border-radius: 999px;
    font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .15s;
  }
  .top-btn:hover { background: #e2eef7; }
  .law-side { flex: none; padding: 12px 16px 16px; }
  .disc-overlay {
    position: fixed; inset: 0; z-index: 2000; background: var(--modal-backdrop-color);
    backdrop-filter: var(--modal-backdrop-blur); -webkit-backdrop-filter: var(--modal-backdrop-blur);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .disc-overlay.open { opacity: 1; pointer-events: auto; }
  .disc-card {
    max-width: 445px; width: 100%; background: #fdfefe;
    border-radius: 24px; padding: 26px 28px 22px; box-shadow: 0 30px 70px rgba(9,29,46,.38);
    font-size: .88rem; color: #385268; line-height: 1.6; text-align: left;
    transform: translateY(14px) scale(.98); transition: transform .25s;
    max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  }
  .disc-overlay.open .disc-card { transform: translateY(0) scale(1); }
  .disc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
  .disc-ico {
    flex: none; width: 48px; height: 48px; border-radius: 16px; background: #cfe4f4;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
  }
  .disc-kicker { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--green); }
  .disc-title {
    display: block; font-family: 'Bricolage Grotesque', 'Outfit', sans-serif;
    font-size: 1.18rem; font-weight: 800; color: var(--green-dark);
    letter-spacing: -.2px; line-height: 1.15; margin-top: 3px;
  }
  .disc-card strong { color: var(--green-dark); }
  .disc-card a { color: var(--green); font-weight: 800; text-decoration: underline; }
  .disc-card .disc-ok {
    margin-top: 14px; width: 100%; border: none; border-radius: 999px; padding: 11px 0;
    background: var(--grad); color: #fff; font-weight: 800; font-size: .9rem; cursor: pointer;
  }
  .disc-card .disc-ok:hover { filter: brightness(1.06); }
  /* ---------- Partenaires (à droite de la carte) ---------- */
  .partners {
    position: absolute; right: 64px; top: 14px; z-index: 905;
    display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px;
    background: var(--grad); border-radius: 999px;
    box-shadow: 0 8px 24px rgba(11,84,139,.4);
  }
  .partners { max-width: calc(100% - 40px); flex-wrap: wrap; }
  .partners .p-title {
    font-size: .58rem; font-weight: 800; color: #dcebfa;
    text-transform: uppercase; letter-spacing: .12em; line-height: 1; text-align: right;
    margin-top: 3px;
  }
  .partners .p-logo {
    background: none; border: none; border-radius: 0;
    padding: 0; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .partners .p-logo a { display: flex; align-items: center; justify-content: center; }
  .partners .p-logo img { height: 26px; width: auto; max-width: 100%; object-fit: contain; }
  
  .partner-pop {
    position: absolute; right: 64px; top: 78px; transform: translateY(-8px);
    width: 340px; z-index: 940; padding: 16px 18px; max-height: 70vh; overflow-y: auto;
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    border-radius: 18px; box-shadow: var(--shadow-m);
    opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  }
  .partner-pop.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .partner-pop .pp-close {
    position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
    border: none; border-radius: 50%; background: #edf2f6; color: var(--green-dark);
    font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
  }
  .partner-pop .pp-close:hover { background: #dde7ef; }
  .partner-pop h3 { font-size: .95rem; font-weight: 800; color: var(--green-dark); margin: 0 40px 8px 0; }
  .partner-pop p { font-size: .75rem; color: var(--muted); line-height: 1.55; text-align: justify; margin: 0 0 10px; }
  .partner-pop a { color: var(--green); font-weight: 700; font-size: .78rem; }
  .partner-pop .pp-sub { margin: 12px 0 2px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7e94a5; }
  .partner-pop .pp-asso { border-top: 1px solid #e3edf5; padding-top: 9px; margin-top: 9px; }
  .partner-pop .pp-asso strong { font-size: .8rem; color: var(--green-dark); }
  .partner-pop .pp-asso p { margin: 3px 0 4px; }
  /* Fond de carte accordé au bleu #0b548b du thème : mer légèrement bleutée,
     terres très claires et routes peu saturées pour laisser ressortir les pins. */
  #map .leaflet-container, .leaflet-container { background: #dcecf8 !important; }
  body.mug-map-neutral #map .leaflet-container { background: #c9ddf0 !important; }
  .law-float { position: absolute; right: 22px; bottom: 146px; width: 274px; z-index: 905; }
  .law-float .law {
    background: linear-gradient(135deg, rgba(248,251,255,.95), rgba(237,245,252,.95)); backdrop-filter: blur(8px);
    border-radius: 16px; padding: 14px 16px; color: #385268; font-size: .8rem; line-height: 1.55;
    border: 1px solid #dbecf9; box-shadow: 0 10px 24px rgba(11,84,139,.10);
    text-align: justify; hyphens: auto; -webkit-hyphens: auto;
  }
  .law-float .law strong { color: var(--green-dark); }
  .law-float .law-cta { font-weight: 600; }
  .law-float .law-cta a { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
  .law-float .law-cta a:hover { color: #083e67; }
  .law-float .law-hook {
    display: block; font-family: 'Bricolage Grotesque', 'Outfit', sans-serif;
    font-size: .95rem; font-weight: 800; color: var(--green);
    letter-spacing: -.1px; margin-bottom: 5px; text-align: left;
  }
  .law-note { display: none; }
  @media (max-width: 1020px) { .partner-pop { display: none; } .law-float { display: none; } .law-note { display: block; } }
  .partners .p-logo img.lb { display: none; }
  .partners:hover { background: rgba(255,255,255,.95); box-shadow: 0 6px 18px rgba(11,84,139,.25); }
  .partners:hover .p-title { color: #0b548b; }
  .partners:hover .p-logo.has-alt img.lw { display: none; }
  .partners:hover .p-logo.has-alt img.lb { display: block; }
  .partners .p-logo:last-child { margin-bottom: 0; }
  .partners .p-logo img { max-width: 100%; display: block; }
  .law-note { padding: 12px 16px 0; }
  .law-note .law {
    background: linear-gradient(135deg, #f1f8fe, #e9f3fc); border-radius: 12px; padding: 12px 14px;
    color: #385268; font-size: .8rem; line-height: 1.55; border: 1px solid #dbecf9;
    text-align: justify; hyphens: auto; -webkit-hyphens: auto;
  }
  .law-note .law strong { color: var(--green-dark); }
  .law-note .law-cta { font-weight: 600; }
  .law-note .law-cta a { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
  .law-note .law-cta a:hover { color: #083e67; }
  .law-note .law-hook {
    display: block; font-family: 'Bricolage Grotesque', 'Outfit', sans-serif;
    font-size: .95rem; font-weight: 800; color: var(--green);
    letter-spacing: -.1px; margin-bottom: 5px; text-align: left;
  }
  .law-side .law {
    background: linear-gradient(135deg, #f1f8fe, #e9f3fc); border-radius: 12px; padding: 11px 13px;
    color: #385268; font-size: .72rem; line-height: 1.5; border: 1px solid #dbecf9;
  }
  .law-side .law strong { color: var(--green-dark); }
  .ver-badge { font-size: .62rem; font-weight: 600; color: #adb6be; text-align: center; margin-top: 10px; letter-spacing: .1em; text-transform: uppercase; }
  .site-sig {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(15,41,64,.08);
    display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center;
  }
  .site-sig span { font-size: .68rem; color: #7c8b97; letter-spacing: .02em; }
  .site-sig strong { color: var(--green-dark); font-weight: 700; }

  /* ---------- Espaces publicitaires (emplacements réservés) ---------- */
  .ad-slot { position: relative; }
  .ad-tag {
    position: absolute; top: -7px; left: 12px; z-index: 1;
    background: #fff; color: #9ca6b1; border: 1px solid var(--border);
    font-size: .56rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
    padding: 1px 7px; border-radius: 999px;
  }
  .ad-box {
    background: #f1f1f1; border: 1px solid #d9d9d9;
    display: flex; align-items: center; justify-content: center;
    color: #a8a8a8; font: 600 .78rem 'Outfit', sans-serif; letter-spacing: .06em;
  }
  .ad-300x250 { width: 300px; height: 250px; }
  .ad-728x90 { width: 728px; height: 90px; }
  .ad-side { margin-top: 12px; display: flex; justify-content: center; }
  /* Arche (habillage) : bandeau haut + deux skyscrapers latéraux */
  .arche-top {
    position: fixed; top: 0; left: 0; right: 0; height: 90px; z-index: 800;
    background: #f1f1f1; border-bottom: 1px solid #d9d9d9;
    display: flex; align-items: center; justify-content: center;
  }
  .arche-top .ad-box { border: 0; background: transparent; }
  .arche-side {
    position: fixed; top: 90px; bottom: 0; width: 120px; z-index: 800;
    background: #f1f1f1; display: flex; justify-content: center; padding-top: 12px;
  }
  .arche-side.left { left: 0; border-right: 1px solid #d9d9d9; }
  .arche-side.right { right: 0; border-left: 1px solid #d9d9d9; }
  body:not(.with-ad-top) .arche-side { top: 0; }
  .arche-side .ad-box { width: 120px; height: 600px; border: 0; background: transparent; }
  .mug-ad-content { overflow: hidden; }
  .mug-ad-content img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
  .mug-ad-content a { display: flex; height: 100%; width: 100%; align-items: center; justify-content: center; }
  body.with-ad-top .layout { margin-top: 90px; }
  body.with-ad-left .layout { margin-left: 120px; }
  body.with-ad-right .layout { margin-right: 120px; }
  @media (max-width: 1500px) {
    .arche-top, .arche-side { display: none; }
    body.with-ad-top .layout, body.with-ad-left .layout, body.with-ad-right .layout { margin: 0; }
  }
  .mug-editorial-body p { margin: 0 0 10px; }
  .mug-editorial-body ul, .mug-editorial-body ol { padding-left: 18px; margin: 0 0 10px; }
  .mug-editorial-body li { margin-bottom: 7px; }
  .mug-editorial-body h4 { margin: 12px 0 5px; }
  #map { flex: 1; min-width: 0; }
  /* Animation de zoom un peu plus longue et amortie (plus fluide) */
  .leaflet-zoom-anim .leaflet-zoom-animated {
    transition-timing-function: cubic-bezier(.22,.68,.26,1);
  }
  /* Apparition des pastilles et bulles (petit pop élastique) */
  @keyframes popIn { 0% { transform: scale(.55); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
  .dot-pin, .cl-bub { animation: popIn .2s cubic-bezier(.34,1.56,.64,1) backwards; }
  /* Pendant un zoom, les marqueurs recréés apparaissent immédiatement, sans
     rejouer l'animation d'apparition (c'était elle, la latence perçue). */
  .no-pop .dot-pin, .no-pop .cl-bub { animation: none !important; }
  /* Ouverture des fiches en fondu + glissement */
  @keyframes popupIn { from { opacity: 0; transform: translateY(7px) scale(.96); } to { opacity: 1; transform: none; } }
  .leaflet-popup-content-wrapper { animation: popupIn .22s cubic-bezier(.2,.8,.3,1) backwards; transform-origin: bottom center; }
  /* Bouton « Toute la France » (apparaît quand on a zoomé) */
  .reset-view {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    border: 1px solid rgba(255,255,255,.85); cursor: pointer;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
    color: var(--green); border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15,41,64,.18);
    transition: background .2s, color .2s, box-shadow .2s;
  }
  .reset-view svg { display: block; }

  .reset-view:hover { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(11,84,139,.4); }
  /* Étiquette du montant à côté des pastilles (affichée à partir d'un certain zoom) */
  .price-tag {
    position: absolute; left: 23px; top: 50%; transform: translateY(-50%);
    display: block; background: #fff; color: var(--green);
    font: 800 11px 'Bricolage Grotesque', 'Outfit', sans-serif;
    padding: 3px 8px; border-radius: 999px; white-space: nowrap;
    border: 1px solid #dbecf9; box-shadow: 0 2px 8px rgba(15,41,64,.22);
    pointer-events: auto; cursor: pointer; transition: box-shadow .15s, border-color .15s;
  }
  .price-tag:hover { border-color: var(--green); box-shadow: 0 4px 12px rgba(11,84,139,.3); }
  /* Éclatement en éventail adouci (petit rebond) */
  .leaflet-cluster-anim .leaflet-marker-icon {
    transition: transform .24s cubic-bezier(.25,1,.4,1), opacity .16s ease-in-out;
  }
  /* Pastilles et bulles de regroupement : effet au survol */
  .dot-pin {
    width: 100%; height: 100%; border-radius: 50%;
    background: #afd2ef; border: 3px solid #fff;
    box-shadow: 0 0 0 5px rgba(166,205,237,.45), 0 3px 10px rgba(15,41,64,.25);
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
  }
  .leaflet-marker-icon:hover .dot-pin {
    transform: scale(1.45);
    box-shadow: 0 0 0 9px rgba(11,84,139,.28), 0 6px 18px rgba(15,41,64,.38);
  }
  .cl-bub {
    border-radius: 50%; background: #afd2ef; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bricolage Grotesque', 'Outfit', sans-serif; font-weight: 700;
    border: 3px solid rgba(255,255,255,.95);
    box-shadow: 0 0 0 7px rgba(166,205,237,.4), 0 6px 20px rgba(15,41,64,.22);
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
  }
  .leaflet-marker-icon:hover .cl-bub {
    transform: scale(1.12);
    box-shadow: 0 0 0 11px rgba(11,84,139,.24), 0 10px 26px rgba(15,41,64,.34);
  }
  /* Les filtres portent sur chaque fond, jamais sur le pane entier : labels,
     contrôles, marqueurs et attributions ne sont pas recolorés. */
  body.mug-map-blue .mug-base-tiles {
    filter: grayscale(.85) sepia(.25) hue-rotate(165deg) saturate(1.20) brightness(1.06) contrast(.95);
  }
  /* Plan IGN dans les agglomérations : léger bleu et textes suffisamment contrastés. */
  body.mug-map-blue .mug-base-tiles.mug-ign-tiles {
    filter: grayscale(.45) sepia(.08) hue-rotate(160deg) saturate(.85) brightness(1.03) contrast(1.03);
  }
  body.mug-map-neutral .mug-base-tiles {
    filter: sepia(.13) hue-rotate(-18deg) saturate(1.04);
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    aside { background: rgba(255,255,255,.97); }
  }
  .label-tiles { transition: opacity .25s ease; }
  .menu-wrap { position: absolute; top: 10px; right: 98px; z-index: 956; }
  .home-btn {
    position: absolute; top: 8px; right: 22px; z-index: 956;
    width: 66px; height: 44px; border: none; background: none;
    cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s;
    filter: drop-shadow(0 3px 8px rgba(15,41,64,.25));
  }
  .home-btn:hover { transform: translateY(-1px); }
  .home-btn svg { width: 66px; height: auto; display: block; }
  .leaflet-top.leaflet-right { display: flex; flex-direction: row; justify-content: flex-end; align-items: flex-start; }
  .leaflet-top.leaflet-right .reset-view { margin: 10px 146px 0 8px; }
  .leaflet-top.leaflet-right .leaflet-control-zoom {
    display: flex; flex-direction: row; margin: 10px 0 0 0;
    border: none; border-radius: 999px !important; overflow: hidden;
    box-shadow: 0 4px 14px rgba(15,41,64,.16);
  }
  .leaflet-top.leaflet-right .leaflet-control-zoom a {
    width: 40px; height: 40px; line-height: 40px; border: none; border-radius: 0 !important;
    background: rgba(255,255,255,.95); color: #0b548b; font-size: 18px;
  }
  .leaflet-top.leaflet-right .leaflet-control-zoom a:first-child { border-right: 1px solid #e3eef7; }
  .menu-btn {
    width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.85);
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(15,41,64,.16); cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #0b548b;
    transition: transform .15s, box-shadow .15s;
  }
  .menu-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,41,64,.22); }
  .menu-pop {
    position: absolute; top: 42px; right: -76px; width: 274px; z-index: 957;
    display: flex; flex-direction: column; gap: 8px; padding: 10px 0 0;
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s;
  }
  .menu-pop.open { opacity: 1; transform: none; pointer-events: auto; }
  .menu-pop button {
    display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
    height: 46px; border-radius: 999px; cursor: pointer;
    background: rgba(255,255,255,.95); color: var(--green); border: 1.5px solid #bcdaf3;
    font-family: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(11,84,139,.18);
    transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  }
  .menu-pop button:hover {
    transform: translateY(-2px); background: var(--grad); color: #fff; border-color: transparent;
    box-shadow: 0 10px 24px rgba(11,84,139,.4);
  }

  .info-card { max-width: 560px; max-height: min(78vh, 640px); overflow-y: auto; text-align: left; }
  .info-card { position: relative; }
  .card-close {
    position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
    border: none; border-radius: 50%; background: #eef5fb; color: #0b548b;
    font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
  }
  .card-close:hover { background: var(--grad); color: #fff; }
  .info-card h4 { margin: 0 0 4px; font-size: .92rem; color: #0b548b; }
  .info-card ul { margin: 8px 0 0; padding-left: 18px; }
  .info-card li { margin-bottom: 10px; line-height: 1.55; }
  .info-card p { margin: 0 0 10px; line-height: 1.55; }
  body.mug-map-blue .detail-tiles {
    filter: grayscale(1) sepia(.32) hue-rotate(165deg) saturate(1.30) brightness(1.10) contrast(.90);
  }
  body.mug-map-neutral .detail-tiles {
    filter: grayscale(1) brightness(1.14) contrast(.86) sepia(.16) hue-rotate(-18deg) saturate(1.15);
  }
  .city-chip {
    position: fixed; top: 14px; left: calc(50% + 201px); transform: translateX(-50%) translateY(-8px);
    z-index: 930; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
    color: var(--green-dark); font-weight: 800; font-size: .95rem; letter-spacing: .2px;
    padding: 8px 18px; border-radius: 999px; box-shadow: var(--shadow-m);
    opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
    max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .city-chip::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-right: 8px; vertical-align: 1px; }
  .city-chip.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .city-label {
    font: 600 11px 'Outfit', sans-serif; color: #687685; text-align: center;
    text-shadow: 0 1px 0 #fff, 0 0 4px #fff, 0 0 9px #fff; letter-spacing: .04em;
    pointer-events: none; white-space: nowrap;
  }
  .city-label.major { font-size: 12.5px; font-weight: 700; color: #385268; }
  .leaflet-control-zoom { border: none !important; box-shadow: var(--shadow-m) !important; border-radius: 999px !important; overflow: hidden; }
  .leaflet-control-zoom a {
    width: 40px !important; height: 40px !important; line-height: 40px !important;
    color: var(--green-dark) !important; font-weight: 700; border: none !important; background: #fff !important;
  }
  .leaflet-control-zoom a:hover { background: var(--green-light) !important; color: var(--green) !important; }
  @keyframes markerIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .leaflet-marker-icon > div { animation: markerIn .25s ease; }

  /* ---------- FAB ---------- */
  .fab {
    position: absolute; right: 22px; bottom: 28px; z-index: 950; width: 274px;
    background: var(--grad); color: #fff; border: none;
    border-radius: 999px; padding: 0 10px; height: 46px; font-size: .92rem; font-weight: 700;
    cursor: pointer; letter-spacing: .1px;
    box-shadow: 0 8px 24px rgba(11,84,139,.4);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .16s, box-shadow .16s;
  }
  .fab { background-size: 170% 170%; background-position: 0% 50%; transition: transform .16s, box-shadow .16s, background-position .5s; }
  .fab:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 36px rgba(11,84,139,.55); background-position: 100% 50%; }
  @media (min-width: 601px) {
    .fab, .mug-cta { display: none; }
    .law-float { bottom: 76px; }
    .partners { top: auto; bottom: 28px; right: 22px; width: 274px; box-sizing: border-box; }
  }

  /* ---------- Panneau mugs ---------- */
  #mugPanel {
    /* Plein écran comme les autres modales, sans découpe au niveau du panneau de filtres. */
    position: fixed; inset: 0; z-index: 2000; display: none;
    background: var(--modal-backdrop-color);
    backdrop-filter: var(--modal-backdrop-blur); -webkit-backdrop-filter: var(--modal-backdrop-blur);
    align-items: center; justify-content: center; padding: 28px;
  }
  #mugPanel.open { display: flex; }
  .mug-win {
    position: relative; border-radius: 28px;
    background:
      radial-gradient(640px 300px at 108% -14%, rgba(11,84,139,.28), transparent 62%),
      radial-gradient(420px 240px at -8% 112%, rgba(11,84,139,.16), transparent 60%),
      linear-gradient(165deg, #163a57 0%, #0f2940 55%, #091d2e 100%);
    max-width: 940px; width: 100%; max-height: 100%; overflow-y: hidden;
    padding: 24px 28px 26px; box-shadow: 0 30px 90px rgba(9,29,46, .55);
  }
  #mugPanel.open .mug-win { animation: mugSlideIn .45s cubic-bezier(.2,.85,.3,1); }
  #mugPanel.closing .mug-win { animation: mugSlideOut .32s cubic-bezier(.55,0,.8,.4) forwards; }
  #mugPanel.open { animation: mugBgIn .3s ease; }
  #mugPanel.closing { animation: mugBgOut .34s ease forwards; }
  @keyframes mugSlideIn { from { transform: translateX(115vw); } to { transform: none; } }
  @keyframes mugSlideOut { from { transform: none; } to { transform: translateX(115vw); } }
  @keyframes mugBgIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes mugBgOut { to { opacity: 0; } }
  .mug-close {
    position: sticky; top: 0; margin-left: auto; display: flex;
    align-items: center; justify-content: center; width: 38px; height: 38px;
    border: none; border-radius: 50%; background: #fff; color: var(--green-dark);
    font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35);
    transition: transform .15s, box-shadow .15s; z-index: 2;
  }
  .mug-close:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(0,0,0,.45); }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
  #mugPanel .mug-head { max-width: 880px; margin: 0 auto 18px; }
  #mugPanel h2 { color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -.3px; }
  #mugPanel .mug-head::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--grad); margin-top: 12px; }
  #mugPanel h2 .hl-pink { color: #a9d6f5; }
  #mugPanel .mug-sub { font-size: .9rem; color: #cbdcea; line-height: 1.55; max-width: 640px; }
  #mugPanel .mug-sub strong { color: #fff; font-weight: 800; }
  #mugPanel .back-btn {
    border: none; background: #fff; border-radius: 999px;
    padding: 9px 18px; cursor: pointer; font-size: .86rem; color: var(--green-dark);
    font-weight: 700; margin-bottom: 18px; box-shadow: var(--shadow-s);
    transition: transform .15s, box-shadow .15s;
  }
  #mugPanel .back-btn:hover { transform: translateX(-2px); box-shadow: var(--shadow-m); }
  .mug-scroll { position: relative; }
  .mug-grid {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: 8px; padding: 4px 8px 12px; scrollbar-width: thin;
  }
  .mug-grid::-webkit-scrollbar { height: 6px; }
  .mug-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.14); border-radius: 3px; }
  .mug-grid::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #0b548b, #2f7fc0); border-radius: 3px; }
  .mug-grid .mug-card { flex: 0 0 250px; scroll-snap-align: start; }
  .mug-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
    background: #fff;
    color: var(--green-dark); font-size: 22px; line-height: 1;
    box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .15s, box-shadow .15s, color .15s;
    display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
  }
  .mug-nav:hover { transform: translateY(-50%) scale(1.1); color: var(--green); box-shadow: 0 10px 24px rgba(11,84,139,.22); }
  /* Pas de dégradé superposé : il ternissait les bords des cartes blanches.
     Les cartes restent nettes, avec la suivante partiellement visible. */
  /* Pas de navigation superflue lorsque toutes les cartes tiennent dans le carrousel.
     La mesure JS tient compte des largeurs réellement disponibles (desktop/tablette/mobile). */
  .mug-scroll.is-static .mug-nav { display: none; }
  .mug-scroll.is-static .mug-grid { justify-content: center; }
  .mug-nav.prev { left: -12px; }
  .mug-nav.next { right: -12px; }
  /* Écrans peu hauts : contenu compacté pour tenir sans défilement vertical */
  @media (max-height: 800px) {
    #mugPanel { padding: 16px; }
    .mug-win { padding: 14px 22px 16px; }
    .mug-close { width: 38px; height: 38px; font-size: 15px; }
    #mugPanel h2 { font-size: 1.25rem; margin-bottom: 4px; }
    #mugPanel .mug-sub { font-size: .8rem; line-height: 1.4; }
    #mugPanel .mug-head { margin-bottom: 8px; }
    .mug-card .mug-photo { height: 90px; }
    .mug-card .mug-photo img { max-height: 84px; }
    .mug-card .mug-specs { font-size: .7rem; }
    .mug-note { margin-top: 6px; font-size: .64rem; }
  }
  @media (max-height: 660px) {
    .mug-card .mug-photo { height: 64px; }
    .mug-card .mug-photo img { max-height: 58px; }
    .mug-card { gap: 8px; }
    .mug-card .mug-specs li:nth-child(n+4) { display: none; }
    .mug-card .mug-free { display: none; }
    #mugPanel .mug-sub { display: none; }
    .mug-note, .mug-legend { display: none; }
  }
  /* Tout petit écran : on rend au moins la fenêtre utilisable */
  @media (max-height: 540px) { .mug-win { overflow-y: auto; } }
  .mug-card {
    background: #fff; border: none; border-radius: 20px; padding: 18px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 8px 26px rgba(0,0,0,.28);
    transition: transform .22s cubic-bezier(.2,.8,.3,1.2), box-shadow .22s;
  }
  .mug-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(11,84,139,.35); }
  .mug-card .mug-photo {
    height: 130px; border-radius: 16px;
    background: linear-gradient(150deg, #f4fafe 0%, #e7f4fe 100%);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .mug-card .mug-photo img {
    max-width: 100%; max-height: 118px; object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(15,41,64,.16));
    transition: transform .25s cubic-bezier(.2,.8,.3,1.2);
  }
  .mug-card:hover .mug-photo img { transform: translateY(-3px) scale(1.04) rotate(-1deg); }
  .mug-card .mug-emoji-fb {
    font-size: 2rem; width: 100%; height: 100%; border-radius: 14px;
    background: var(--green-light); align-items: center; justify-content: center;
  }
  .mug-card .mug-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 58px; }
  .mug-card .mug-name { min-width: 0; }
  .mug-card .mug-model { display: block; margin-top: 2px; font-size: .7rem; line-height: 1.25; color: var(--muted); }
  .mug-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
  .mug-card .mug-specs { list-style: none; font-size: .76rem; color: var(--muted); line-height: 1.45; display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; }
  .mug-card .mug-specs li { padding-left: 13px; position: relative; }
  .mug-card .mug-specs li::before { content: ''; position: absolute; left: 0; top: .42em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(11,84,139,.1); }
  .mug-card .mug-price {
    flex-shrink: 0; background: var(--grad); color: #fff; white-space: nowrap;
    font-size: .82rem; font-weight: 800; border-radius: 999px; padding: 5px 13px;
    box-shadow: 0 3px 10px rgba(11,84,139,.25);
  }
  .mug-card .mug-cur { font-weight: 600; color: rgba(255,255,255,.85); font-size: .72rem; }
  .mug-card .mug-free { font-size: .72rem; font-weight: 400; line-height: 1.35; color: var(--muted); }
  .mug-card .mug-free strong {
    display: inline-block; font-size: .68rem; font-weight: 800; color: #8ca4b7;
    text-transform: uppercase; letter-spacing: .12em;
  }
  .mug-card a.mug-link {
    margin-top: auto;
    text-align: center; background: var(--grad); color: #fff; border-radius: 999px;
    padding: 10px 14px; font-size: .88rem; font-weight: 800; text-decoration: none;
    box-shadow: 0 4px 12px rgba(11,84,139,.3); transition: transform .15s, box-shadow .15s;
  }
  .mug-card a.mug-link::after { content: ' →'; opacity: 0; margin-left: -8px; transition: opacity .18s, margin-left .18s; }
  .mug-card a.mug-link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11,84,139,.4); }
  .mug-card a.mug-link:hover::after { opacity: 1; margin-left: 2px; }
  .mug-note { max-width: 880px; margin: 18px auto 0; font-size: .72rem; color: var(--muted); }
  .mug-legend { max-width: 880px; margin: 12px auto 0; font-size: .72rem; color: rgba(255,255,255,.72); }

  /* ---------- Popups Leaflet ---------- */
  .leaflet-popup-content-wrapper { border-radius: 16px !important; box-shadow: var(--shadow-m) !important; }
  .leaflet-popup-content { font-family: inherit; font-size: .88rem; margin: 14px 16px; }
  .leaflet-popup-content h3 { margin-bottom: 4px; color: var(--green-dark); font-weight: 800; }
  .leaflet-popup-content .pop-deal { display: flex; align-items: center; gap: 9px; margin: 8px 0 9px; }
  .leaflet-popup-content .pop-discount {
    background: var(--grad); color: #fff; font-weight: 800; white-space: nowrap;
    border-radius: 999px; padding: 5px 13px; display: inline-block; flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(11,84,139,.3);
  }
  .leaflet-popup-content .pop-equiv { font-size: .74rem; color: var(--muted); line-height: 1.35; }
  .leaflet-popup-content .pop-row { color: var(--muted); font-size: .8rem; margin-top: 5px; line-height: 1.4; }
  .leaflet-popup-content .pop-note { background: #fff7e8; border-radius: 8px; padding: 5px 8px; color: #7a5c22; }
  .leaflet-popup-content .pop-disclaimer { margin-top: 8px; font-size: .68rem; color: #a98a56; line-height: 1.4; border-top: 1px dashed #f0dcc0; padding-top: 7px; }
  .leaflet-popup-content a { color: var(--green); font-weight: 600; }
  .leaflet-popup-content .pop-actions {
    display: flex; gap: 6px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e4edf5;
  }
  .leaflet-popup-content button.pop-signal {
    flex: 1; border: 1.5px solid #cce3f5; background: #fff; color: var(--green-dark);
    border-radius: 999px; padding: 7px 8px; cursor: pointer; font-size: .74rem; font-weight: 700;
    white-space: nowrap; transition: all .15s;
  }
  .leaflet-popup-content button.pop-signal:hover { border-color: var(--green); background: var(--green-light); }
  .leaflet-container a.leaflet-popup-close-button {
    top: 9px; right: 9px; width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #edf2f6; color: var(--green-dark);
    font-size: 21px; line-height: 1;
  }
  .leaflet-container a.leaflet-popup-close-button:hover { background: #dce9f4; color: var(--green); }
  .leaflet-popup-content h3 { padding-right: 30px; }
  .leaflet-container { font-family: 'Outfit', sans-serif; }

  /* Fiche indépendante des coordonnées du marqueur : centrée sur mobile. */
  .mobile-place-overlay { display: none; }

  /* ---------- Modale ---------- */
  .modal-backdrop {
    display: none; position: fixed; inset: 0; background: var(--modal-backdrop-color);
    backdrop-filter: var(--modal-backdrop-blur); -webkit-backdrop-filter: var(--modal-backdrop-blur);
    z-index: 2000; align-items: center; justify-content: center; padding: 16px;
  }
  .modal-backdrop.open { display: flex; }
  .modal {
    position: relative;
    background: #fff; border-radius: 22px; max-width: 540px; width: 100%;
    padding: 26px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 24px 70px rgba(9,29,46,.35);
  }
  .modal-backdrop.open .modal { animation: modalSlideIn .45s cubic-bezier(.2,.85,.3,1); }
  .modal-backdrop.closing .modal { animation: modalSlideOut .32s cubic-bezier(.55,0,.8,.4) forwards; }
  .modal-backdrop.open { animation: modalBgIn .3s ease; }
  .modal-backdrop.closing { animation: modalBgOut .34s ease forwards; }
  @keyframes modalSlideIn { from { transform: translateY(110vh); } to { transform: none; } }
  @keyframes modalSlideOut { from { transform: none; } to { transform: translateY(110vh); } }
  @keyframes modalBgIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes modalBgOut { to { opacity: 0; } }
  .modal-close {
    position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%; background: #edf2f6; color: var(--green-dark);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: transform .15s, background .15s; z-index: 2; padding: 0;
  }
  .modal-close:hover { transform: scale(1.08); background: #dde7ef; }
  .modal h2 { color: var(--green-dark); margin-bottom: 6px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.2px; }
  .modal p.sub { font-size: .84rem; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
  .modal label { display: block; font-size: .8rem; font-weight: 700; margin: 12px 0 5px; color: var(--ink); }
  .modal input, .modal select, .modal textarea {
    width: 100%; padding: 10px 13px; border: 1.5px solid transparent; background: #edf2f6;
    border-radius: 11px; font-size: .9rem; font-family: inherit; transition: all .2s;
  }
  .modal input:focus, .modal select:focus, .modal textarea:focus {
    outline: none; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(11,84,139,.12);
  }
  .modal .modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }
  .modal button { padding: 11px 20px; border-radius: 999px; border: none; cursor: pointer; font-size: .9rem; font-weight: 800; transition: transform .15s, box-shadow .15s; }
  .modal button.primary { background: var(--grad); color: #fff; box-shadow: 0 5px 14px rgba(11,84,139,.35); }
  .modal button.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,84,139,.45); }
  .modal button.ghost { background: #edf2f6; color: #63707e; }
  .modal button.ghost:hover { background: #e3eaef; }
  .mug-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  .mug-form-status { min-height: 0; margin-top: 14px; font-size: .84rem; line-height: 1.45; font-weight: 600; }
  .mug-form-status.error { background: #fff1f1; border: 1px solid #f4cece; border-radius: 10px; padding: 10px 12px; color: #a72f35; }
  .mug-form-status.success { background: #edf9f0; border: 1px solid #c2e9ca; border-radius: 10px; padding: 10px 12px; color: #207140; }
  .modal button.primary:disabled { opacity: .6; cursor: wait; transform: none; }

  .ctype-row { display: flex; gap: 8px; margin: 6px 0 2px; flex-wrap: wrap; }
  .modal button.ctype {
    flex: 1; min-width: 0; border: 1.5px solid #d1e1ee; border-radius: 10px;
    background: #fff; padding: 8px 8px; cursor: pointer; text-align: center;
    font-size: .76rem; color: #6c7b8a; font-weight: 700; line-height: 1.3;
    box-shadow: none; transition: border-color .15s, background .15s, color .15s;
  }
  .modal button.ctype:hover { border-color: var(--green); background: #f6fafe; color: var(--green-dark); transform: none; box-shadow: none; }
  .modal button.ctype.active { border-color: var(--green); background: var(--green-light); color: var(--green-dark); font-weight: 800; }

  /* Largeurs intermédiaires : plus la place côte à côte -> les deux boutons
     s'empilent proprement à droite avec le compteur */
  @media (max-width: 1020px) and (min-width: 601px) {
    .mug-cta { left: auto; right: 22px; bottom: 140px; }
    .partners { display: none; }
  }
  @media (max-width: 600px) {
    .disc-overlay {
      padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
      overscroll-behavior: none;
    }
    .disc-card, .disc-card.info-card {
      max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
      padding: 22px 20px 18px;
    }
    .mobile-place-overlay.open {
      display: flex; position: fixed; inset: 0; z-index: 1100;
      align-items: center; justify-content: center;
      padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
      background: var(--modal-backdrop-color); backdrop-filter: var(--modal-backdrop-blur); -webkit-backdrop-filter: var(--modal-backdrop-blur);
    }
    .mobile-place-card {
      position: relative; width: 100%; max-width: 390px;
      max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
      overflow-y: auto; overscroll-behavior: contain;
      padding: 24px 20px 20px; border-radius: 22px;
      background: #fff; box-shadow: 0 22px 65px rgba(9,29,46,.35);
      animation: popupIn .22s cubic-bezier(.2,.8,.3,1) backwards;
    }
    .mobile-place-content.leaflet-popup-content {
      width: auto !important; margin: 0 !important; padding-top: 3px;
      font-size: .93rem; overflow-wrap: anywhere;
    }
    .mobile-place-content h3 { padding-right: 35px; line-height: 1.2; font-size: 1.13rem; }
    .mobile-place-content .pop-actions { flex-wrap: wrap; }
    .mobile-place-content button.pop-signal { min-width: 135px; white-space: normal; min-height: 42px; }
    .mobile-place-close {
      position: absolute; top: 12px; right: 12px; display: flex;
      align-items: center; justify-content: center;
      width: 38px; height: 38px; border: 0; border-radius: 50%;
      background: #edf2f6; color: var(--green-dark); cursor: pointer;
    }
    .mobile-place-close:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; }
    /* Carte en plein écran ; filtres accessibles dans un tiroir par le bas. */
    .mobile-search-backdrop {
      display: block; position: absolute; inset: 0; z-index: 970;
      background: rgba(15,41,64,.28); opacity: 0; pointer-events: none;
      transition: opacity .25s ease;
    }
    .mobile-search-backdrop.open { opacity: 1; pointer-events: auto; }
    aside.mobile-search-panel {
      top: auto; right: 0; bottom: 0; left: 0; width: 100%;
      height: min(76vh, 630px); height: min(76dvh, 630px);
      max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px);
      padding-bottom: env(safe-area-inset-bottom, 0px);
      z-index: 980; overflow: hidden; border-radius: 24px 24px 0 0;
      border-bottom: none; background: rgba(255,255,255,.98);
      transform: translateY(calc(100% + 18px)); visibility: hidden; pointer-events: none;
      transition: transform .28s cubic-bezier(.22,.8,.24,1), visibility 0s linear .28s;
    }
    aside.mobile-search-panel.open {
      transform: translateY(0); visibility: visible; pointer-events: auto;
      transition: transform .28s cubic-bezier(.22,.8,.24,1);
    }
    .mobile-filter-head {
      display: flex; position: relative; flex: none; align-items: center; justify-content: space-between;
      min-height: 58px; padding: 17px 16px 9px; border-bottom: 1px solid #edf2f6;
      color: var(--green-dark); font-size: .98rem;
    }
    .mobile-filter-grip {
      position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
      width: 40px; height: 4px; border-radius: 999px; background: #c9d7e4;
    }
    .mobile-filter-close {
      display: flex; align-items: center; justify-content: center;
      width: 38px; height: 38px; border-radius: 50%; border: none;
      background: #edf2f6; color: var(--green-dark); cursor: pointer;
    }
    .mobile-filter-close:focus-visible, .mobile-search-trigger:focus-visible {
      outline: 3px solid var(--green-2); outline-offset: 3px;
    }
    .mobile-search-trigger {
      display: flex; position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom, 0px));
      transform: translateX(-50%); align-items: center; justify-content: center; gap: 9px;
      min-height: 48px; padding: 0 24px; border: 1px solid rgba(255,255,255,.4);
      border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800;
      font-size: .93rem; z-index: 950; white-space: nowrap; cursor: pointer;
      box-shadow: 0 7px 22px rgba(15,41,64,.3); transition: box-shadow .2s, opacity .2s;
    }
    .mobile-search-backdrop.open ~ .mobile-search-trigger { visibility: hidden; pointer-events: none; opacity: 0; }
    .brand-head { display: none; }
    .search-box { flex: none; padding: 10px 14px 12px; }
    .search-row input { padding-top: 9px; padding-bottom: 9px; }
    /* Safari sur iPhone zoome automatiquement au focus sous 16px.
       Garder les champs lisibles sans bloquer le zoom volontaire de l'utilisateur. */
    .search-row input,
    .modal input:not([type="checkbox"]),
    .modal select,
    .modal textarea { font-size: 16px; }
    .slider-box { margin-top: 12px; padding-top: 11px; }
    .slider-box .hint { font-size: .7rem; margin-top: 2px; }
    .law-note { display: none; }
    .brand-box { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px 14px; }
    .brand-btn { min-height: 46px; padding: 8px 10px; gap: 9px; margin-bottom: 6px; }
    .brand-btn img, .brand-btn .brand-ini { width: 50px; }
    .brand-btn .bname { font-size: .87rem; }
    .brand-btn .bmeta { font-size: .7rem; }
    .brand-btn .bcount { padding: 2px 8px; font-size: .7rem; }
    .top-btn { display: none; }
    .fab, .mug-cta { display: none; }
    .sheet-contrib { display: block; height: 38px; margin-top: 10px; font-size: .83rem; }
    .status { bottom: auto; top: 60px; left: 14px; right: auto; font-size: .72rem; padding: 6px 12px; white-space: nowrap; }
    .cl-bub { border-width: 2px; box-shadow: 0 0 0 4px rgba(166,205,237,.34), 0 3px 12px rgba(15,41,64,.2); }
    .leaflet-marker-icon:hover .cl-bub { box-shadow: 0 0 0 6px rgba(11,84,139,.22), 0 5px 14px rgba(15,41,64,.25); }
    .price-tag { left: 20px; font-size: 10px; padding: 2px 6px; }
    .ad-side { display: none; }
    .partners { display: none; }
    .city-chip { left: 14px; transform: translateY(-8px); top: 108px; font-size: .85rem; padding: 7px 14px; }
    .city-chip.show { transform: translateY(0); }
    #mugPanel { left: 0; padding: 20px 16px; }
    .mug-win { overflow-y: auto; }
    .mug-card .mug-photo { height: 96px; }
    .mug-card .mug-photo img { max-height: 90px; }
    #mugPanel h2 { font-size: 1.2rem; }
    #mugPanel .mug-head { margin-bottom: 10px; }
  }
  /* Petits téléphones en paysage / clavier virtuel ouvert : tout le panneau
     peut défiler sans masquer le champ de recherche. */
  @media (max-width: 600px) and (max-height: 540px) {
    aside.mobile-search-panel {
      height: calc(100vh - 12px); height: calc(100dvh - 12px);
      max-height: none; overflow-y: auto;
    }
    .mobile-filter-head { position: sticky; top: 0; z-index: 2; background: #fff; }
    .brand-box { flex: none; overflow: visible; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
  }

/* La pastille compteur est une action de réinitialisation accessible. */
.status { cursor: pointer; font-family: inherit; transition: background-color .18s; }
.status:hover { background: #fff; }
.status:focus-visible { outline: 3px solid #2f7fc0; outline-offset: 3px; }
@media (max-width: 600px) {
  .status { min-height: 40px; max-width: calc(100vw - 28px); }
  .mobile-filter-head { touch-action: none; -webkit-user-select: none; user-select: none; }
  aside.mobile-search-panel.is-dragging { transition: none !important; }
}

/* Contact indépendant des contributions : simple et fluide sur mobile. */
.contact-modal { padding-top: 34px; }
.contact-modal .contact-privacy { margin: 12px 0 0; font-size: .73rem; line-height: 1.5; color: var(--muted); }
.contact-modal textarea { resize: vertical; min-height: 120px; }
@media (max-width: 600px) {
  .contact-modal { max-height: calc(100dvh - 30px); overscroll-behavior: contain; }
  .contact-modal input, .contact-modal textarea { font-size: 16px; }
}
