/* Page résultats v2 (template-listing.php) — design « maquettes/resultats.html ».
   Tout est préfixé .tpl pour ne pas entrer en conflit avec style.css du thème.
   L'ancienne feuille listing.css reste utilisée par inc/listing-v1.php (?v1=1). */

.tpl{
  --green:#04b489;--green-dark:#038a69;--green-soft:#e6f8f2;--green-deep:#063b2e;--ink:#0f1f1a;--muted:#5d6b66;
  --line:#e7ecea;--bg:#f6f8f7;--card:#fff;--gold:#f5a524;--gold-soft:#fff5e1;--red:#e5484d;
  --r:22px;--shadow:0 1px 2px rgba(15,31,26,.04),0 8px 28px rgba(15,31,26,.06);
  --bar-h:72px;--search-h:74px;
  font-family:"Plus Jakarta Sans",system-ui,sans-serif;background:var(--bg);color:var(--ink);
  -webkit-font-smoothing:antialiased;line-height:1.5;padding-top:0;min-height:100vh;
}
.tpl *,.tpl *::before,.tpl *::after{box-sizing:border-box}
.tpl h1,.tpl h2,.tpl p,.tpl ul{margin:0;padding:0}
.tpl a{color:inherit;text-decoration:none}
.tpl button{font:inherit;cursor:pointer;color:inherit}
.tpl img{display:block;max-width:100%}
.tpl :focus-visible{outline:3px solid var(--green);outline-offset:2px;border-radius:6px}
.tpl .wrap{max-width:1440px;margin:0 auto;padding:0 24px}
.tpl section,.tpl div{float:none}

.tpl .tbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;border:1px solid var(--line);background:#fff;padding:10px 16px;font-weight:700;font-size:14px;color:var(--ink);transition:.2s;white-space:nowrap;line-height:1.2}
.tpl .tbtn:hover{border-color:#bfe9dc;background:#fbfdfc;color:var(--ink)}
.tpl .tbtn i{font-size:18px}
.tpl .tbtn.dark{background:var(--ink);border-color:var(--ink);color:#fff}
.tpl .tbtn.dark:hover{background:#1f3a31;border-color:#1f3a31;color:#fff}

/* ===== 1. Recherche collante ===== */
.tpl .searchbar{position:sticky;top:var(--bar-h);z-index:50;background:rgba(246,248,247,.9);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.tpl .searchbar .wrap{display:flex;align-items:center;gap:12px;height:var(--search-h)}
.tpl .tp-search{flex:1;display:flex;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:5px;box-shadow:0 4px 16px rgba(15,31,26,.05);min-width:0;margin:0;position:relative}
.tpl .tp-search .fld{flex:1;display:flex;align-items:center;gap:8px;padding:0 12px;min-width:0;border-radius:11px;cursor:text;position:relative;margin:0}
.tpl .tp-search .fld:focus-within{background:var(--bg)}
.tpl .tp-search .fld > i{font-size:18px;color:var(--green-dark);flex:none}
.tpl .tp-search input{flex:1;border:0;outline:0;font:inherit;font-size:14px;font-weight:500;padding:11px 0;background:transparent;min-width:0;color:var(--ink);appearance:none;-webkit-appearance:none;height:auto;margin:0;box-shadow:none;border-radius:0}
.tpl .tp-search input::placeholder{color:#8e9a96;font-weight:400}
.tpl .tp-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.tpl .tp-search .clr{flex:none;border:0;background:transparent;color:#8e9a96;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:15px;padding:0}
.tpl .tp-search .clr:hover{background:var(--line);color:var(--ink)}
.tpl .tp-search .sep{width:1px;height:26px;background:var(--line);flex:none}
.tpl .tp-search .geo{flex:none;border:0;background:var(--green-soft);color:var(--green-dark);width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:15px;padding:0;position:relative}
.tpl .tp-search .geo:hover{background:var(--green);color:#fff}
.tpl .tp-search .geo::after{content:"";position:absolute;inset:-4px;border-radius:12px;border:2px solid var(--green);opacity:0;animation:tpl-geo-halo 2.6s ease-out infinite;pointer-events:none}
@keyframes tpl-geo-halo{0%{transform:scale(.7);opacity:.7}70%{transform:scale(1.35);opacity:0}100%{opacity:0}}
.tpl .tp-search .go-btn{flex:none;display:flex;align-items:center;gap:6px;border:0;background:var(--green);color:#fff;font-weight:700;font-size:14px;padding:11px 18px;border-radius:11px;line-height:1.2}
.tpl .tp-search .go-btn:hover{background:var(--green-dark)}
/* bouton secteur (ouvre la modale) */
.tpl .tp-search .sector-btn{flex:0 1 250px;display:flex;align-items:center;gap:8px;padding:0 34px 0 12px;min-width:0;border:0;background:transparent;border-radius:11px;text-align:left;font-size:14px;font-weight:500;color:var(--ink);height:42px;position:relative}
.tpl .tp-search .sector-btn:hover{background:var(--bg)}
.tpl .tp-search .sector-btn > i:first-child{font-size:18px;color:var(--green-dark);flex:none}
.tpl .tp-search .sector-btn .lbl{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl .tp-search .sector-btn .lbl.is-empty{color:#8e9a96;font-weight:400}
.tpl .tp-search .sector-btn .chev{position:absolute;right:12px;font-size:16px;color:var(--muted)}
.tpl .fav-link{flex:none;display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 14px;border-radius:14px;border:1px solid var(--line);background:#fff;font-weight:700;font-size:14px;color:var(--ink)}
.tpl .fav-link i{font-size:19px;color:var(--red)}
.tpl .fav-link .n{font-size:12px;background:var(--red);color:#fff;border-radius:999px;padding:1px 7px;min-width:20px;text-align:center}
.tpl .fav-link.on{background:var(--ink);border-color:var(--ink);color:#fff}
.tpl .msum{display:none;flex:1;align-items:center;gap:10px;height:46px;padding:0 12px 0 14px;border-radius:14px;border:1px solid var(--line);background:#fff;font-size:14px;color:var(--muted);text-align:left;min-width:0;box-shadow:0 4px 16px rgba(15,31,26,.05)}
.tpl .msum span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl .msum b{color:var(--ink)}
.tpl .msum i{font-size:19px;color:var(--green-dark);flex:none}

/* ===== Modale secteur d'activité ===== */
.tpl-modal{position:fixed;inset:0;z-index:10050;display:none;align-items:flex-start;justify-content:center;padding:max(8vh,96px) 16px 16px;background:rgba(15,31,26,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.tpl-modal.open{display:flex}
.tpl-modal .box{width:100%;max-width:720px;max-height:84vh;background:#fff;border-radius:24px;box-shadow:0 30px 80px rgba(15,31,26,.3);display:flex;flex-direction:column;overflow:hidden;animation:tpl-pop .25s cubic-bezier(.2,.9,.3,1.2);font-family:"Plus Jakarta Sans",system-ui,sans-serif;color:#0f1f1a}
@keyframes tpl-pop{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
.tpl-modal .head{flex:none;display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #e7ecea}
.tpl-modal .head i.lead{font-size:22px;color:#038a69}
.tpl-modal .head input{flex:1;border:0;outline:0;font:inherit;font-size:17px;font-weight:600;padding:8px 0;background:transparent;color:#0f1f1a;min-width:0;height:auto;margin:0;box-shadow:none}
.tpl-modal .head input::placeholder{color:#8e9a96;font-weight:500}
.tpl-modal .head kbd{font:inherit;font-size:11px;font-weight:700;color:#5d6b66;background:#f6f8f7;border:1px solid #e7ecea;border-radius:6px;padding:3px 7px}
.tpl-modal .head .x{border:0;background:#f6f8f7;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:18px;color:#5d6b66;padding:0;cursor:pointer}
.tpl-modal .head .x:hover{background:#e7ecea;color:#0f1f1a}
.tpl-modal .tabs{flex:none;display:flex;gap:6px;padding:12px 16px 0;overflow-x:auto;scrollbar-width:none}
.tpl-modal .tabs::-webkit-scrollbar{display:none}
.tpl-modal .tabs button{flex:none;border:1px solid #e7ecea;background:#fff;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600;color:#5d6b66;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.tpl-modal .tabs button i{font-size:15px}
.tpl-modal .tabs button.on{background:#0f1f1a;border-color:#0f1f1a;color:#fff}
.tpl-modal .body{overflow-y:auto;padding:12px 10px 14px;overscroll-behavior:contain}
.tpl-modal .grp{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#8e9a96;padding:12px 10px 6px;display:flex;align-items:center;gap:6px}
.tpl-modal .grp i{font-size:14px;color:#038a69}
.tpl-modal .opt{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;border-radius:12px;padding:10px 10px;font:inherit;font-size:14.5px;font-weight:600;color:#0f1f1a;text-align:left;cursor:pointer}
.tpl-modal .opt .ic{flex:none;width:34px;height:34px;border-radius:10px;background:#e6f8f2;color:#038a69;display:grid;place-items:center;font-size:17px}
.tpl-modal .opt small{display:block;font-size:12px;color:#5d6b66;font-weight:500}
.tpl-modal .opt mark{background:#fff5e1;color:inherit;border-radius:3px;padding:0 1px}
.tpl-modal .opt .go{margin-left:auto;font-size:16px;color:#8e9a96;opacity:0}
.tpl-modal .opt:hover,.tpl-modal .opt.on{background:#f6f8f7}
.tpl-modal .opt.on .go,.tpl-modal .opt:hover .go{opacity:1}
.tpl-modal .opt.sel{background:#e6f8f2}
.tpl-modal .opt.sel .ic{background:#04b489;color:#fff}
.tpl-modal .none{padding:36px 16px;text-align:center;color:#5d6b66;font-size:14px}
.tpl-modal .hint{font-size:13px;color:#5d6b66;margin:4px 8px 8px}
.tpl-modal .tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px;padding:0 4px 4px}
.tpl-modal .tile{position:relative;min-height:116px;border:0;border-radius:16px;padding:12px;color:#fff;text-align:left;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;background-size:cover;background-position:center;overflow:hidden;font:inherit;box-shadow:0 6px 18px rgba(15,31,26,.12);transition:transform .15s,outline-color .15s;outline:2px solid transparent;outline-offset:2px}
.tpl-modal .tile:hover,.tpl-modal .tile.on{transform:translateY(-2px);outline-color:#04b489}
.tpl-modal .tile-ic{width:32px;height:32px;border-radius:10px;background:rgba(255,255,255,.22);display:grid;place-items:center;font-size:17px}
.tpl-modal .tile-t{font-size:14.5px;font-weight:800;line-height:1.2;text-shadow:0 1px 6px rgba(0,0,0,.35)}
.tpl-modal .tile-n{position:absolute;top:10px;right:10px;font-size:11px;font-weight:700;background:rgba(15,31,26,.55);padding:3px 8px;border-radius:999px}
.tpl-modal .step-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 6px 10px;flex-wrap:wrap}
.tpl-modal .back{border:1px solid #e7ecea;background:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:700;color:#0f1f1a;cursor:pointer;display:inline-flex;gap:6px;align-items:center}
.tpl-modal .back:hover{border-color:#04b489}
.tpl-modal .step-cat{font-size:13px;font-weight:800;color:#038a69;display:inline-flex;gap:6px;align-items:center}
.tpl-modal .opt .txt{display:flex;flex-direction:column;min-width:0}
@media (min-width:560px){.tpl-modal .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tpl-modal .foot{flex:none;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 16px;border-top:1px solid #e7ecea;font-size:12px;color:#8e9a96}
.tpl-modal .foot kbd{font:inherit;font-size:11px;font-weight:700;background:#f6f8f7;border:1px solid #e7ecea;border-radius:5px;padding:1px 6px;color:#5d6b66}
.tpl-modal .foot .all{border:0;background:transparent;font:inherit;font-size:13px;font-weight:700;color:#e5484d;cursor:pointer;padding:0}
body.tpl-modal-open{overflow:hidden}

/* ===== 2. Barre d'outils ===== */
.tpl .toolbar{padding:22px 0 16px}
.tpl .toolbar .row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.tpl .toolbar .row > div:first-child{position:relative;min-width:0}
.tpl .crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:var(--muted);margin-bottom:8px}
.tpl .crumbs a:hover{color:var(--green-dark)}
.tpl .crumbs i{font-size:14px;opacity:.6}
.tpl .toolbar h1{font-size:clamp(24px,2.8vw,32px);line-height:1.12;font-weight:800;letter-spacing:-.025em;color:var(--ink)}
.tpl .toolbar h1 em{font-style:normal;color:var(--green)}
.tpl .toolbar .count{display:block;font-size:14px;color:var(--muted);font-weight:500;margin-top:6px}
.tpl .toolbar .count b{color:var(--ink);font-weight:700}
.tpl .hero-vec{display:block;position:absolute;left:calc(100% + 18px);top:50%;transform:translateY(-50%);width:150px;height:70px;pointer-events:none;overflow:visible;opacity:.95}
@media (max-width:1180px){.tpl .hero-vec{display:none}}
.tpl .hero-vec .route{fill:none;stroke:var(--green);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:8 10;animation:tpl-dash 1.2s linear infinite;opacity:.55}
.tpl .hero-vec .pin{transform-box:fill-box;transform-origin:50% 100%;animation:tpl-floaty 3s ease-in-out infinite}
.tpl .hero-vec .pin.b{animation-delay:-1.3s}
.tpl .hero-vec .ring{fill:none;stroke:var(--green);stroke-width:1.5;animation:tpl-ring 2.4s ease-out infinite}
.tpl .hero-vec .ring.b{animation-delay:-1.2s}
.tpl .hero-vec .ring.c{animation-delay:-.6s}
@keyframes tpl-dash{to{stroke-dashoffset:-18}}
@keyframes tpl-floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes tpl-ring{0%{r:6;opacity:.9}100%{r:60;opacity:0}}
@keyframes tpl-beat{0%,100%{transform:scale(1)}14%{transform:scale(1.14)}28%{transform:scale(1)}42%{transform:scale(1.1)}70%{transform:scale(1)}}
@keyframes tpl-check{to{stroke-dashoffset:0}}
@keyframes tpl-draw{0%{stroke-dashoffset:60;opacity:.4}45%{stroke-dashoffset:0;opacity:1}75%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-60;opacity:.4}}
.tpl .chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;align-items:center}
.tpl .chip{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;background:#fff;border:1px solid var(--line);padding:6px 8px 6px 12px;border-radius:999px;color:var(--ink)}
.tpl .chip > i:first-child{font-size:15px;color:var(--green-dark)}
.tpl .chip a.rm{background:var(--bg);width:20px;height:20px;border-radius:50%;display:grid;place-items:center;color:var(--muted);font-size:13px}
.tpl .chip a.rm:hover{background:var(--red);color:#fff}
.tpl .chips .clear{font-size:13px;font-weight:600;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.tpl .chips .clear:hover{color:var(--red)}
.tpl .controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tpl .sortwrap{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:0 10px 0 12px;height:42px;font-size:14px;font-weight:600;color:var(--muted);margin:0}
.tpl .sortwrap > i{font-size:17px;color:var(--green-dark)}
.tpl .sortwrap select{border:0;outline:0;font:inherit;font-size:14px;font-weight:700;color:var(--ink);background:transparent;padding:0 20px 0 0;appearance:none;-webkit-appearance:none;height:auto;margin:0;box-shadow:none;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 10px) 50%,calc(100% - 5px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.tpl .seg{display:inline-flex;background:#fff;border:1px solid var(--line);border-radius:12px;padding:3px;height:42px}
.tpl .seg button{border:0;background:transparent;border-radius:9px;padding:0 12px;font-weight:700;font-size:13px;color:var(--muted);display:inline-flex;align-items:center;gap:6px;transition:.15s}
.tpl .seg button i{font-size:17px}
.tpl .seg button.on{background:var(--ink);color:#fff}
.tpl .seg.only-mobile{display:none}
.tpl .tgl-map{height:42px;border-radius:12px;padding:0 12px;font-size:13px}
.tpl .tgl-map .off{display:none}
.tpl.map-hidden .tgl-map .on{display:none}
.tpl.map-hidden .tgl-map .off{display:inline}

/* ===== 3. Mise en page ===== */
.tpl .layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,40%);gap:22px;align-items:start;padding-bottom:70px}
.tpl.map-hidden .layout{grid-template-columns:1fr}
.tpl.map-hidden .mapcol{display:none}
.tpl .list{display:grid;gap:16px}
.tpl .list.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tpl.map-hidden .list.grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tpl.map-hidden .list:not(.grid){grid-template-columns:repeat(2,minmax(0,1fr))}
.tpl.map-hidden .list:not(.grid) .pro{grid-template-columns:200px minmax(0,1fr)}
.tpl.map-hidden .list:not(.grid) .sk{grid-template-columns:200px 1fr}
.tpl .mapcol{position:sticky;top:calc(var(--bar-h) + var(--search-h) + 14px);height:calc(100vh - var(--bar-h) - var(--search-h) - 28px);border-radius:24px;overflow:hidden;border:1px solid var(--line);background:#e3e9e6;box-shadow:var(--shadow)}
.tpl #map-main{width:100%;height:100%}
.tpl .map-tools{position:absolute;top:66px;right:10px;z-index:500;display:flex;flex-direction:column;gap:8px}
.tpl .map-tools .map-control{width:40px;height:40px;display:grid;place-items:center;font-size:17px;border:1px solid var(--line);background:#fff;border-radius:12px;box-shadow:0 4px 14px rgba(15,31,26,.12);cursor:pointer;color:var(--ink)}
.tpl .map-tools .map-control:hover{color:var(--green-dark)}
.tpl .map-count{position:absolute;left:14px;bottom:14px;z-index:500;background:rgba(15,31,26,.85);color:#fff;font-size:12px;font-weight:600;padding:6px 10px;border-radius:999px;backdrop-filter:blur(6px);display:none}
.tpl .map-count.show{display:block}
.tpl .map-loading{position:absolute;inset:0;background:rgba(246,248,247,.9);display:flex;align-items:center;justify-content:center;z-index:510;transition:opacity .3s}
.tpl .map-loading.hidden{opacity:0;pointer-events:none}
.tpl .loading-spinner{width:36px;height:36px;border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:tpl-sp 1s linear infinite}
@keyframes tpl-sp{to{transform:rotate(360deg)}}
.tpl .leaflet-container{font-family:inherit}
/* pin mis en avant quand on survole une card */
.tpl .tp-pin.hot{z-index:1000!important}
.tpl .tp-pin.hot img{transform:scale(1.15) translateY(-3px);filter:drop-shadow(0 6px 10px rgba(15,31,26,.35));transition:.15s}

/* ===== 4. Card pro ===== */
.tpl .pro{display:grid;grid-template-columns:230px minmax(0,1fr);background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:border-color .2s,box-shadow .25s,transform .25s;position:relative;animation:tpl-in .35s ease both}
@keyframes tpl-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.tpl .pro:hover,.tpl .pro.hot{border-color:#9fd9c6;box-shadow:0 14px 36px rgba(15,31,26,.1);transform:translateY(-3px)}
.tpl .pro .ph{position:relative;background:#e3e9e6;overflow:hidden}
.tpl .pro .ph a{display:block;height:100%}
.tpl .pro .ph img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.tpl .pro:hover .ph img{transform:scale(1.05)}
.tpl .pro .ph::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,59,46,.35) 0%,transparent 35%,transparent 55%,rgba(6,59,46,.6) 100%);pointer-events:none}
.tpl .pro .ph::before{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(115deg,transparent 40%,rgba(255,255,255,.22) 50%,transparent 60%);transform:translateX(-120%);pointer-events:none}
.tpl .pro:hover .ph::before{animation:tpl-shine 1.1s ease forwards}
@keyframes tpl-shine{to{transform:translateX(120%)}}
.tpl .pro .ph > *{position:relative;z-index:1}
.tpl .pro .ph{min-height:200px}
.tpl .pro .ph img{position:absolute;inset:0}
.tpl .pro .favorite-btn{position:absolute;top:10px;right:10px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.94);border:0;display:grid;place-items:center;font-size:18px;color:var(--ink);box-shadow:0 2px 10px rgba(0,0,0,.18);transition:.15s;z-index:3;padding:0}
.tpl .pro .favorite-btn:hover{transform:scale(1.08);color:var(--red)}
.tpl .pro .favorite-btn.active{color:var(--red)}
.tpl .pro .favorite-btn.active i::before{content:"\f679"}
.tpl .pro .favorite-btn.active i{display:inline-block;animation:tpl-beat .9s ease-in-out}
.tpl .pro .tags{position:absolute;left:10px;top:10px;display:flex;flex-direction:column;gap:5px;z-index:2;align-items:flex-start}
.tpl .pro .badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;padding:4px 9px;border-radius:999px;background:rgba(255,255,255,.95);color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.12);backdrop-filter:blur(4px);line-height:1.3}
.tpl .pro .badge.gold{background:var(--gold);color:#fff}
.tpl .pro .badge.green{background:var(--green);color:#fff}
.tpl .pro .badge.red{background:var(--red);color:#fff}
.tpl .pro .badge i{font-size:13px}
.tpl .pro .onph{position:absolute;left:12px;right:12px;bottom:10px;display:flex;justify-content:space-between;align-items:flex-end;gap:8px;color:#fff;z-index:2}
.tpl .pro .onph .act{font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:5px;text-shadow:0 1px 6px rgba(0,0,0,.4);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl .pro .onph .act i{font-size:14px}
.tpl .pro .onph .n{font-size:11px;font-weight:600;background:rgba(15,31,26,.55);padding:3px 8px;border-radius:999px;backdrop-filter:blur(4px);flex:none}
.tpl .pro .bd{display:flex;flex-direction:column;padding:16px 18px 14px;min-width:0}
.tpl .pro .head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.tpl .pro .head > div{min-width:0}
.tpl .pro h2{font-size:17px;font-weight:800;line-height:1.25;letter-spacing:-.01em;display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--ink)}
.tpl .pro h2 a:hover{color:var(--green-dark)}
.tpl .pro h2 .vf{color:var(--green);font-size:18px;display:inline-block}
.tpl .pro:hover h2 .vf{animation:tpl-beat 1.4s ease-in-out}
.tpl .pro .meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:13px;color:var(--muted);margin-top:4px;align-items:center}
.tpl .pro .meta i{font-size:14px;vertical-align:-2px;margin-right:2px}
.tpl .pro .meta .act{color:var(--green-dark);font-weight:600}
.tpl .pro .meta a:hover{color:var(--green-dark)}
.tpl .pro .dist{flex:none;font-size:12px;font-weight:700;background:var(--bg);border-radius:999px;padding:5px 10px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.tpl .pro .dist i{font-size:14px;color:var(--green-dark)}
.tpl .pro .rate{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;margin-top:9px}
.tpl .pro .rate .pill{display:inline-flex;align-items:center;gap:4px;background:var(--gold-soft);color:#9a5b00;padding:3px 8px;border-radius:8px;font-size:13px}
.tpl .pro .rate .pill i{color:var(--gold);font-size:14px;display:inline-block}
.tpl .pro:hover .rate .pill i{animation:tpl-beat 1.6s ease-in-out infinite;transform-origin:center}
.tpl .pro .rate span.n{color:var(--muted);font-weight:500}
.tpl .pro .rate .new{color:var(--muted);font-weight:500;display:inline-flex;align-items:center;gap:5px}
.tpl .pro p.desc{font-size:13.5px;color:var(--muted);margin-top:9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tpl .pro .skills{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tpl .pro .skills span{font-size:12px;font-weight:600;background:var(--green-soft);color:var(--green-dark);padding:4px 9px;border-radius:999px}
.tpl .pro .skills .more{background:var(--bg);color:var(--muted)}
.tpl .pro .reseaux{display:flex;gap:6px;margin-top:10px}
.tpl .pro .reseaux a{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:#fff;font-size:13px;background:var(--ink)}
.tpl .pro .reseaux a svg{width:14px;height:14px;fill:currentColor}
.tpl .pro .reseaux .facebook{background:#1877f2}.tpl .pro .reseaux .instagram{background:linear-gradient(135deg,#f58529,#dd2a7b 50%,#8134af)}.tpl .pro .reseaux .linkedin{background:#0077b5}.tpl .pro .reseaux .youtube{background:#ff0000}
/* bandeau bas coloré */
.tpl .pro .foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 12px;margin:12px -18px -14px;padding:12px 14px 12px 16px;background:linear-gradient(90deg,#e6f8f2 0%,#fff5e1 38%,#eef0ff 70%,#fff 100%);border-radius:0 0 var(--r) var(--r);position:relative;overflow:hidden}
.tpl .pro .foot::before{content:"";position:absolute;inset:-40px -20px;background:radial-gradient(60px 40px at 20% 50%,rgba(4,180,137,.18),transparent 70%),radial-gradient(70px 40px at 50% 30%,rgba(245,165,36,.2),transparent 70%),radial-gradient(70px 40px at 80% 70%,rgba(124,108,246,.18),transparent 70%);animation:tpl-drift 9s ease-in-out infinite alternate;pointer-events:none}
@keyframes tpl-drift{to{transform:translateX(-18px) scale(1.08)}}
.tpl .pro .foot > *{position:relative}
.tpl .pro .foot.off{background:linear-gradient(90deg,#f3f5f4,#fff)}
.tpl .pro .foot.off::before{display:none}
.tpl .pro .avail{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;white-space:nowrap;background:#fff;border:1px solid #d6efe6;padding:6px 11px 6px 9px;border-radius:999px;color:var(--green-deep);box-shadow:0 1px 2px rgba(15,31,26,.04)}
.tpl .pro .avail.off{border-color:var(--line);color:var(--muted)}
.tpl .pro .avail .d{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px var(--green-soft);position:relative;flex:none}
.tpl .pro .avail.off .d{background:#c3ccc8;box-shadow:0 0 0 3px #eef1f0}
.tpl .pro .avail:not(.off) .d::after{content:"";position:absolute;inset:-2px;border-radius:50%;border:1.5px solid var(--green);animation:tpl-avail 2.4s ease-out infinite}
@keyframes tpl-avail{0%{transform:scale(.6);opacity:.9}100%{transform:scale(2.6);opacity:0}}
.tpl .pro .fvec{flex:1 1 0px;width:0;height:28px;min-width:0;max-width:190px;overflow:visible}
.tpl .pro .fvec .st,.tpl .pro .fvec .dt{transform-box:fill-box;transform-origin:center;animation:tpl-twinkle 2.8s ease-in-out infinite}
.tpl .pro .fvec .dt{animation-duration:3.4s}
.tpl .pro .fvec .b{animation-delay:-.9s}.tpl .pro .fvec .c{animation-delay:-1.8s}
@keyframes tpl-twinkle{0%,100%{transform:scale(.35) rotate(0);opacity:.15}50%{transform:scale(1) rotate(25deg);opacity:1}}
.tpl .pro:hover .fvec .st,.tpl .pro.hot .fvec .st{animation-duration:1.4s}
.tpl .pro .foot.off .fvec .st,.tpl .pro .foot.off .fvec .dt{fill:#c3ccc8!important}
.tpl .pro .cta{display:flex;gap:8px}
.tpl .pro .cta .tbtn{padding:9px 13px;font-size:13px;border-radius:11px}
.tpl .pro .cta .tbtn i{font-size:17px}
.tpl .pro .cta .ic{width:38px;padding:0}

/* Vue grille */
.tpl .list.grid .pro{grid-template-columns:1fr}
.tpl .list.grid .pro .ph{aspect-ratio:4/3}
.tpl .list.grid .pro .bd{padding:14px 16px 14px}
.tpl .list.grid .pro .cta .tbtn span{display:none}
.tpl .list.grid .pro .cta .tbtn.dark span{display:inline}
.tpl .list.grid .pro .cta .tbtn:not(.dark){width:42px;padding:0;flex:none}
.tpl .list.grid .pro .foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 8px;margin:12px -16px -14px;padding:12px 14px 14px}
.tpl .list.grid .pro .avail{justify-self:start;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.tpl .list.grid .pro .fvec{display:block;width:88px;max-width:88px;flex:none;justify-self:end}
.tpl .list.grid .pro .cta{grid-column:1/-1;width:100%}
.tpl .list.grid .pro .cta .tbtn.dark{flex:1}
.tpl .pro .bd > .foot, .tpl .list.grid .pro .bd > .foot{margin-top:auto}
.tpl .pro .bd > .tags{position:static;flex-direction:row;flex-wrap:wrap;gap:6px;margin:0 0 10px;align-items:center}
.tpl .pro .bd > .tags .badge{box-shadow:none;border:1px solid var(--line)}
.tpl .pro .bd > .tags .badge.gold,.tpl .pro .bd > .tags .badge.green,.tpl .pro .bd > .tags .badge.red{border:0}

/* Scroll infini */
.tpl .sentinel{height:1px}
.tpl .loadmore{display:flex;flex-direction:column;align-items:center;gap:14px;padding:22px 0 0}
.tpl .loadmore .progress{width:220px;height:5px;background:var(--line);border-radius:5px;overflow:hidden}
.tpl .loadmore .progress span{display:block;height:100%;width:0;background:var(--green);border-radius:5px;transition:width .4s}
.tpl .loadmore small{color:var(--muted);font-size:13px;font-weight:500}
.tpl .loadmore .spin{display:none;width:22px;height:22px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--green);animation:tpl-sp .8s linear infinite}
.tpl.loading .loadmore .spin{display:block}
.tpl.loading .loadmore .tbtn{visibility:hidden}
.tpl .loadmore .end{display:none;flex-direction:column;align-items:center;gap:10px;text-align:center}
.tpl .loadmore .end svg{width:64px;height:64px;overflow:visible}
.tpl .loadmore .end .c{fill:var(--green-soft);stroke:var(--green);stroke-width:2;transform-box:fill-box;transform-origin:center;animation:tpl-beat 2.4s ease-in-out infinite}
.tpl .loadmore .end .tick{fill:none;stroke:var(--green-dark);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:tpl-check .7s .2s ease-out forwards}
.tpl .loadmore .end .orbit{fill:none;stroke:var(--green);stroke-width:1.5;stroke-dasharray:4 8;stroke-linecap:round;animation:tpl-dash 1.4s linear infinite;opacity:.6}
.tpl .loadmore .end b{font-size:15px}
.tpl.done .loadmore .tbtn,.tpl.done .loadmore .spin{display:none}
.tpl.done .loadmore .end{display:flex}
.tpl .sk{background:var(--card);border:1px solid var(--line);border-radius:var(--r);display:grid;grid-template-columns:230px 1fr;overflow:hidden;min-height:214px}
.tpl .sk .i,.tpl .sk .b span{background:linear-gradient(90deg,#eef1f0 25%,#f7f9f8 50%,#eef1f0 75%);background-size:200% 100%;animation:tpl-sk 1.2s infinite}
.tpl .sk .b{padding:18px;display:grid;gap:10px;align-content:start}
.tpl .sk .b span{display:block;height:14px;border-radius:7px}
.tpl .list.grid .sk{grid-template-columns:1fr}
.tpl .list.grid .sk .i{aspect-ratio:4/3}
@keyframes tpl-sk{to{background-position:-200% 0}}

/* État vide */
.tpl .empty{background:#fff;border:1px dashed var(--line);border-radius:22px;padding:44px 28px;text-align:center}
.tpl .empty .ico{position:relative;width:120px;height:110px;margin:0 auto 16px}
.tpl .empty .ico svg{width:120px;height:110px;overflow:visible}
.tpl .empty .ico .pin{transform-box:fill-box;transform-origin:50% 100%;animation:tpl-floaty 2.6s ease-in-out infinite}
.tpl .empty .ico .ring{fill:none;stroke:var(--green);stroke-width:1.5;animation:tpl-ring 2.2s ease-out infinite}
.tpl .empty .ico .ring.b{animation-delay:-1.1s}
.tpl .empty .ico .search{fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:60;stroke-dashoffset:60;animation:tpl-draw 3s ease-in-out infinite}
.tpl .empty h2{font-size:22px;font-weight:800;color:var(--ink)}
.tpl .empty p{color:var(--muted);margin:8px auto 20px;max-width:46ch}
.tpl .empty .sug{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:22px}
.tpl .empty .sug a{font-size:13px;font-weight:600;background:var(--bg);border:1px solid var(--line);padding:8px 12px;border-radius:999px;display:inline-flex;align-items:center;gap:5px}
.tpl .empty .sug a:hover{border-color:var(--green);color:var(--green-dark)}

/* Modale contact (appel / SMS) */
.tpl-contact{position:fixed;inset:0;z-index:1050;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,31,26,.5);backdrop-filter:blur(8px);animation:tpl-fade .2s ease;font-family:"Plus Jakarta Sans",system-ui,sans-serif}
@keyframes tpl-fade{from{opacity:0}to{opacity:1}}
.tpl-contact .box{background:#fff;border-radius:24px;padding:28px;max-width:400px;width:100%;position:relative;box-shadow:0 25px 60px rgba(15,31,26,.3);animation:tpl-pop .25s cubic-bezier(.2,.9,.3,1.2);color:#0f1f1a}
.tpl-contact .x{position:absolute;top:14px;right:14px;border:0;background:#f6f8f7;width:34px;height:34px;border-radius:50%;font-size:18px;display:grid;place-items:center;cursor:pointer;padding:0;color:#5d6b66}
.tpl-contact .ico{width:64px;height:64px;border-radius:20px;background:#e6f8f2;color:#038a69;display:grid;place-items:center;font-size:30px;margin:0 auto 14px}
.tpl-contact h3{margin:0;text-align:center;font-size:20px;font-weight:800}
.tpl-contact p{margin:6px 0 20px;text-align:center;color:#5d6b66;font-size:14px}
.tpl-contact a{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;font-weight:700;font-size:15px;text-decoration:none;color:#0f1f1a;border:1px solid #e7ecea;margin-top:10px;transition:.15s}
.tpl-contact a i{font-size:22px;color:#038a69}
.tpl-contact a:hover{border-color:#04b489;background:#f6fdfb}
.tpl-contact a.main{background:#04b489;border-color:#04b489;color:#fff}
.tpl-contact a.main i{color:#fff}
.tpl-contact a small{display:block;font-size:12px;font-weight:500;opacity:.8}

/* Mobile */
.tpl .map-fab{display:none;position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:70;align-items:center;gap:8px;background:var(--ink);color:#fff;border:0;border-radius:999px;padding:13px 20px;font-weight:700;font-size:14px;box-shadow:0 10px 30px rgba(15,31,26,.3)}
.tpl .map-fab i{font-size:18px}
.tpl .mapcol .close-map{display:none;position:absolute;top:14px;left:14px;z-index:500}

@media (max-width:1180px){
  .tpl .layout{grid-template-columns:minmax(0,1fr) 38%}
  .tpl .pro{grid-template-columns:180px 1fr}
  .tpl .list.grid{grid-template-columns:1fr}
  .tpl.map-hidden .list.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpl.map-hidden .list:not(.grid){grid-template-columns:1fr}
}
@media (max-width:900px){
  .tpl{--search-h:0px}
  .tpl .searchbar{position:static}
  .tpl .searchbar .wrap{height:auto;padding-top:10px;padding-bottom:10px;gap:8px;flex-wrap:wrap}
  .tpl .searchbar .fav-link .t{display:none}
  .tpl .msum{display:flex}
  .tpl .tp-search{display:none;flex-basis:100%;order:3;flex-direction:column;align-items:stretch;gap:2px;padding:4px}
  .tpl.search-open .tp-search{display:flex}
  .tpl.search-open .msum{border-color:var(--ink)}
  .tpl .tp-search .sep{width:auto;height:1px;margin:0 10px}
  .tpl .tp-search .sector-btn{flex:1;width:100%}
  .tpl .tp-search .go-btn{justify-content:center;margin-top:2px}
  .tpl .toolbar{padding-top:16px}
  .tpl .hero-vec{display:none}
  .tpl .seg.only-mobile{display:inline-flex}
  .tpl .tgl-map{display:none}
  .tpl .layout{grid-template-columns:1fr;gap:0}
  .tpl .mapcol{display:none;position:fixed;inset:0;height:100vh;height:100dvh;border-radius:0;border:0;z-index:1010}
  .tpl.map-open .mapcol{display:block}
  body.tpl-map-open{overflow:hidden}
  .tpl .mapcol .close-map{display:inline-flex}
  .tpl .map-fab{display:inline-flex}
  .tpl .layout{padding-bottom:88px}
  .tpl.map-open .map-fab{display:none}
  .tpl .pro,.tpl .sk,.tpl.map-hidden .list:not(.grid) .pro{grid-template-columns:1fr}
  .tpl .pro .ph{aspect-ratio:16/9}
  .tpl .pro .fvec{display:none}
  .tpl .list.grid,.tpl.map-hidden .list.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpl .list.grid .pro .ph{aspect-ratio:1/1}
  .tpl .pro .cta{width:100%}
  .tpl .pro .cta .tbtn{flex:1}
  .tpl-modal{padding:0;align-items:stretch}
  .tpl-modal .box{max-width:none;max-height:none;border-radius:0;height:100%}
}
@media (max-width:560px){
  .tpl .wrap{padding:0 16px}
  .tpl .toolbar .row{flex-direction:column;align-items:stretch;gap:12px}
  .tpl .controls{width:100%;justify-content:space-between}
  .tpl .sortwrap{flex:1}
  .tpl .list.grid,.tpl.map-hidden .list.grid{grid-template-columns:1fr}
  .tpl .list.grid .pro .ph{aspect-ratio:16/10}
}
@media (prefers-reduced-motion:reduce){
  .tpl *,.tpl *::before,.tpl *::after,.tpl-modal *,.tpl-contact *{animation:none!important;transition:none!important}
  .tpl .pro .fvec .st,.tpl .pro .fvec .dt{opacity:.6;transform:none}
}
.tpl .tp-spin,.tp-spin{display:inline-block;animation:tp-spin .8s linear infinite}
@keyframes tp-spin{to{transform:rotate(360deg)}}
