/* Page d'accueil du portail -- coup de jeune 2026-10-07 (surcharge index_style.css, chargee apres lui) */
:root{--wp-brand:#ff6749;--wp-brand-d:#e9502f;--wp-soft:#fff1ec;--wp-text:#1F2328;--wp-muted:#5C6570;--wp-line:#E7E2DD;--wp-bg:#FAF8F6}
html{scroll-behavior:smooth}
body{font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--wp-bg);color:var(--wp-text)}

/* ---- bandeau (maquette : texte a gauche, barre de recherche qui chevauche l'image) ---- */
body #hero-section{min-height:0;height:auto;padding-bottom:70px;display:block}
body #hero-section .hero-overlay{background:linear-gradient(90deg,rgba(14,10,9,.78) 0,rgba(14,10,9,.45) 55%,rgba(14,10,9,.15) 100%)}
body #main-header{background:transparent;box-shadow:none}
body #main-header .logo{font-weight:700;letter-spacing:.01em}
body #hero-content{padding:clamp(96px,10vw,130px) 24px 0;max-width:1240px;width:100%;margin:0 auto;text-align:left;display:flex;flex-direction:column;align-items:flex-start;position:relative;z-index:2}
.hero-eyebrow{margin:0 0 14px;font-size:.82rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:#fff;opacity:.9}
body #hero-content h1{font-size:clamp(1.9rem,4.2vw,3rem);line-height:1.1;letter-spacing:-.02em;text-shadow:0 2px 14px rgba(0,0,0,.35);margin:0 0 16px;max-width:19ch;text-align:left}
body #hero-content p:not(.hero-eyebrow){font-size:clamp(1rem,2.2vw,1.2rem);line-height:1.55;max-width:44ch;margin:0 0 26px;opacity:.96;text-shadow:0 1px 8px rgba(0,0,0,.35);text-align:left}
body .hero-cta-btn{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 28px;border-radius:999px;font-weight:700;background:var(--wp-brand);color:#fff;box-shadow:0 8px 24px rgba(255,103,73,.4);transition:transform .15s,background .15s}
body .hero-cta-btn:hover{background:var(--wp-brand-d);transform:translateY(-1px)}
.hero-quick{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.hero-quick a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.38);color:#fff;text-decoration:none;font-weight:600;font-size:.95rem;backdrop-filter:blur(6px)}
.hero-quick a:hover{background:#fff;color:var(--wp-brand)}

/* ---- barre de filtres : carte blanche qui chevauche le bandeau ---- */
@media (min-width:768px){body #weetable_filter-bar{box-sizing:border-box;position:relative;top:auto;max-width:1240px;margin:-48px auto 0;width:calc(100% - 48px);background:#fff;border:1px solid var(--wp-line);border-radius:26px;box-shadow:0 14px 40px rgba(31,35,40,.14);padding:14px 18px;z-index:30}}
body #weetable_filter-bar .filter-bar-btn,body #weetable_filter-bar input[type=text],body #weetable_filter-bar .weetable_selected-ot,body #weetable_filter-bar .weetable_selected-communes{border-radius:999px;min-height:44px;font-family:inherit}
body #weetable_filter-bar input[type=text]{border:1px solid var(--wp-line);background:#fff;padding:0 18px}
body #weetable_filter-bar .filter-bar-btn{font-weight:600}
body #weetable_filter-bar .filter-bar-btn.active{background:var(--wp-brand);border-color:var(--wp-brand);color:#fff}

/* ---- carte a gauche, liste sur 2 colonnes a droite ---- */
body #content{width:100%;max-width:1240px;margin:0 auto;gap:24px;padding:26px 24px 10px;align-items:flex-start}
body #map{width:40%;flex:0 0 40%;border-radius:22px;box-shadow:0 10px 30px rgba(31,35,40,.12);margin-right:0;top:20px;height:calc(100vh - 40px);max-height:760px}
body #sidebar{flex:1;min-width:0}
body #sidebar .count{font-size:1.02rem;font-weight:700;color:var(--wp-text)!important}
body .card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:10px}
body .card{display:grid;grid-template-columns:38% minmax(0,1fr);border-radius:18px;border:1px solid var(--wp-line);box-shadow:none;transition:box-shadow .18s,transform .18s;overflow:hidden;background:#fff}
body .card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(31,35,40,.12)}
body .card-image-container{height:100%;min-height:150px;aspect-ratio:auto;background:linear-gradient(135deg,#fff1ec,#F1ECE8)}
body .card img{height:100%;width:100%;object-fit:cover}
body .card .logo_ot{top:8px;right:auto;left:8px;border-radius:10px;max-width:54px;padding:3px;background:rgba(255,255,255,.92)}
body .card-content{padding:14px 16px;display:flex;flex-direction:column;gap:2px;min-width:0}
body .card-content h2{font-size:1.04rem;line-height:1.3;margin:0}
body .card-content h2 a{color:var(--wp-text);text-decoration:none}
body .card-content h2 a:hover{color:var(--wp-brand)}
body .card-content p{color:var(--wp-muted);font-size:.85rem;text-transform:capitalize;margin:0}
body .card-rating{order:2;margin-top:6px;font-size:.82rem;color:var(--wp-muted)}
body .card-rating i{color:var(--wp-brand)!important}
body .card-cta{order:3;margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border-radius:999px;background:var(--wp-brand);color:#fff;font-weight:600;font-size:.82rem;margin-top:10px}
body .card-cta i{font-size:.75rem}

/* ---- texte de reference (SEO) ---- */
#seo-home{background:#fff;border-top:1px solid var(--wp-line);padding:44px 0 20px}
#seo-home .seo-wrap{max-width:1100px;margin:0 auto;padding:0 20px}
#seo-home h2{font-size:clamp(1.4rem,3vw,1.9rem);margin:0 0 10px;color:var(--wp-text)}
#seo-home h3{font-size:1.15rem;margin:30px 0 10px;color:var(--wp-text)}
#seo-home .seo-lead{max-width:78ch;color:var(--wp-muted);font-size:1.03rem;line-height:1.6;margin:0 0 22px}
.seo-tiles{list-style:none;margin:0 0 6px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.seo-tiles a{display:flex;flex-direction:column;gap:2px;padding:16px 18px;border-radius:16px;background:var(--wp-bg);border:1px solid var(--wp-line);text-decoration:none;color:var(--wp-text);transition:border-color .15s,box-shadow .15s}
.seo-tiles a:hover{border-color:var(--wp-brand);box-shadow:0 6px 18px rgba(136,46,25,.12)}
.seo-tiles b{font-size:1.9rem;line-height:1.1;color:var(--wp-brand)}
.seo-tiles span{color:var(--wp-muted);font-size:.93rem}
.seo-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:2px 24px}
.seo-links li{display:flex;justify-content:space-between;gap:10px;align-items:baseline;border-bottom:1px solid var(--wp-line)}
.seo-links a{display:inline-block;padding:10px 0;color:var(--wp-brand);font-weight:600;text-decoration:none}
.seo-links a:hover{text-decoration:underline}
.seo-links span{color:var(--wp-muted);font-size:.85rem;white-space:nowrap}
#seo-home .faq{margin:34px 0 10px}
#seo-home .faq h2{font-size:1.3rem}
#seo-home .faq details{background:var(--wp-bg);border:1px solid var(--wp-line);border-radius:14px;padding:0 18px;margin-bottom:10px}
#seo-home .faq summary{cursor:pointer;font-weight:600;padding:15px 0;list-style:none;display:flex;justify-content:space-between;gap:12px}
#seo-home .faq summary::-webkit-details-marker{display:none}
#seo-home .faq summary::after{content:"+";font-size:1.3rem;color:var(--wp-brand);line-height:1}
#seo-home .faq details[open] summary::after{content:"–"}
#seo-home .faq details p{margin:0 0 16px;color:var(--wp-muted)}

/* ---- partenaires et pied de page ---- */
body #partners-section{background:var(--wp-bg)}
body #partners-section h2{color:var(--wp-text)}
body footer{background:#1F2328;color:#d8dce1}
body footer a{color:#fff}

@media (max-width:1100px){
  body .card-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:900px){
  body #content{flex-direction:column;padding:14px}
  body #map{width:100%;flex:none;height:320px;position:relative;top:0;margin:0 0 16px}
  body .card{grid-template-columns:34% minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){body .card,.seo-tiles a,body .hero-cta-btn{transition:none}body .card:hover{transform:none}html{scroll-behavior:auto}}

/* =====================  BARRE DE FILTRES (refonte)  ===================== */
body #weetable_control-groups-wrapper{box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:14px;width:100%;max-width:none;margin:0}
body .weetable_filter-main-controls{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:12px;align-items:stretch;width:100%;max-width:none;margin:0}
body #weetable_ot-wrapper[style*='display: none'],body #weetable_ot-wrapper{grid-column:auto}
body #weetable_search{width:100%;min-height:48px;height:48px;border:1px solid var(--wp-line);border-radius:14px;padding:0 16px 0 44px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235C6570' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 14px center no-repeat;font:inherit;font-size:.97rem;color:var(--wp-text);margin:0;box-sizing:border-box}
body #weetable_search:focus{outline:3px solid #ffd9ce;border-color:var(--wp-brand)}
body .weetable_multi-select-wrapper{position:relative;margin:0;min-width:0}
body .weetable_selected-ot,body .weetable_selected-communes{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;height:48px;padding:0 40px 0 16px;border:1px solid var(--wp-line);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6570' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat;font:inherit;font-size:.97rem;font-style:normal;color:var(--wp-text);cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;border-radius:14px!important}
body .weetable_selected-ot.weetable_placeholder,body .weetable_selected-communes.weetable_placeholder{color:var(--wp-muted);font-style:normal}
body .weetable_multi-select{border-radius:14px;box-shadow:0 14px 36px rgba(31,35,40,.18);border:1px solid var(--wp-line);z-index:60}
body .weetable_filter-advanced-controls{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;width:100%;max-width:none;margin:0}
body .weetable_rating-filter{display:inline-flex;flex-direction:row-reverse;align-items:center;gap:2px;margin:0;padding:0 4px 0 12px;min-height:44px;border:1px solid var(--wp-line);border-radius:999px;background:#fff}
body .weetable_rating-filter label{font-size:1.15rem;padding:0 2px;cursor:pointer;line-height:1}
body .weetable_rating-filter .reset-rating{order:99;color:var(--wp-muted);font-size:.9rem;padding:0 10px 0 4px}
body .weetable_rating-filter .reset-rating i{font-size:.85rem;color:var(--wp-muted)}
body .weetable_time-filter{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
body .weetable_time-filter .filter-bar-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--wp-line);background:#fff;color:var(--wp-text);font:600 .93rem inherit;cursor:pointer}
body .weetable_time-filter .filter-bar-btn:hover{border-color:var(--wp-brand);color:var(--wp-brand)}
body .weetable_time-filter .filter-bar-btn.active{background:var(--wp-brand);border-color:var(--wp-brand);color:#fff;box-shadow:0 6px 16px rgba(255,103,73,.3)}
body #reset-filters-btn.filter-bar-btn{display:inline-flex;align-items:center;gap:8px;grid-column:1/-1;justify-self:start;min-height:36px;padding:0 4px;border:0;background:none;color:var(--wp-muted);font:600 .88rem inherit;cursor:pointer;text-decoration:underline;order:9;box-shadow:none}
body #reset-filters-btn.filter-bar-btn:hover{color:var(--wp-brand);background:none}
@media (max-width:900px){
  body .weetable_filter-main-controls{grid-template-columns:minmax(0,1fr)}
}

/* =====================  PANNEAU DE DETAIL (slider)  ===================== */
body #panel{max-width:760px;border-radius:24px 0 0 24px;box-shadow:-18px 0 50px rgba(20,24,31,.28);font-family:inherit}
body #panel .close-btn{position:sticky;top:12px;float:right;margin:12px 14px 0 0;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;color:var(--wp-text);font-size:1.7rem;font-weight:400;box-shadow:0 4px 14px rgba(0,0,0,.2);z-index:5;line-height:1}
body .panel-photos-carousel{border-radius:0 0 22px 0;overflow:hidden;background:#EFE9E4}
body .panel-photos-carousel .swiper-slide>div:first-child{background-size:cover;background-position:center}
body .panel-photos-carousel .photo-credit{position:absolute;left:12px;bottom:8px;margin:0;color:#fff;font-size:.72rem;text-shadow:0 1px 4px rgba(0,0,0,.6)}
body .panel-photos-carousel .swiper-button-prev,body .panel-photos-carousel .swiper-button-next{color:#fff;--swiper-navigation-size:22px;background:rgba(0,0,0,.35);width:40px;height:40px;border-radius:50%}
body .panel-photos-carousel .swiper-pagination-bullet-active{background:var(--wp-brand)}
body .panel-details-body{padding:24px 28px 32px}
body .panel-details-body h1{font-size:clamp(1.5rem,3vw,2rem);line-height:1.2;margin:0 0 8px;color:var(--wp-text);letter-spacing:-.01em}
body .panel-details-body p{margin:0 0 8px;color:var(--wp-muted);line-height:1.55}
body .panel-details-body p strong{color:var(--wp-text)}
body .panel-details-body h4{margin:28px 0 12px;padding:0;border:0;color:var(--wp-text);font-size:1.05rem}
body .panel-contacts{display:flex;flex-direction:column;gap:6px;margin:14px 0}
body .panel-contacts p{margin:0}
body .panel-contacts .contact-link{display:inline-flex;align-items:center;gap:10px;color:var(--wp-text);text-decoration:none;font-weight:500;padding:6px 0}
body .panel-contacts .contact-link i{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--wp-soft);color:var(--wp-brand);font-size:.9rem}
body .panel-contacts .contact-link:hover{color:var(--wp-brand)}
body .panel-contact-btn{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 20px;border-radius:999px;border:1px solid var(--wp-brand);background:#fff;color:var(--wp-brand);font:700 .93rem inherit;cursor:pointer}
body .panel-contact-btn:hover{background:var(--wp-soft)}
body .panel-schedule-list{max-width:none;margin:0;border:1px solid var(--wp-line);border-radius:16px;overflow:hidden}
body .panel-schedule-list li{padding:11px 16px;border-bottom:1px solid var(--wp-line);font-size:.95rem}
body .panel-schedule-list li:last-child{border-bottom:0}
body .panel-schedule-list li.is-today{background:var(--wp-soft);font-weight:700}
body .panel-payment-tags span{background:var(--wp-bg);border:1px solid var(--wp-line);padding:6px 12px;font-size:.82rem;color:var(--wp-text)}
body .panel-cta-wrap{position:sticky;bottom:0;margin:20px -28px -32px!important;padding:14px 28px 18px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 40%)}
body .panel-cta{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border-radius:999px;background:var(--wp-brand);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 8px 22px rgba(255,103,73,.35)}
body .panel-cta:hover{background:var(--wp-brand-d);opacity:1}
@media (max-width:700px){body #panel{width:100%;max-width:none;border-radius:0}}

/* =====================  SECTIONS DE CONTENU  ===================== */
body #seo-home{background:transparent;border:0;padding-top:50px}
.seo-faq .faq h2{font-size:1.4rem;margin:0 0 14px}
.seo-faq .faq details{background:#fff;border:1px solid var(--wp-line);border-radius:14px;padding:0 18px;margin-bottom:10px}
.seo-faq .faq summary{cursor:pointer;font-weight:600;padding:15px 0;list-style:none;display:flex;justify-content:space-between;gap:12px}
.seo-faq .faq summary::-webkit-details-marker{display:none}
.seo-faq .faq summary::after{content:"+";font-size:1.3rem;color:var(--wp-brand);line-height:1}
.seo-faq .faq details[open] summary::after{content:"–"}
.seo-faq .faq details p{margin:0 0 16px;color:var(--wp-muted)}
body footer.pb-footer{background:#1F2328}

/* filtres : une seule rangee qui s'enroule */
body #weetable_control-groups-wrapper{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}
body .weetable_filter-main-controls,body .weetable_filter-advanced-controls,body .weetable_time-filter{display:contents}
body #weetable_search{flex:1 1 240px;width:auto;min-width:200px}
body .weetable_multi-select-wrapper{flex:0 1 230px}
body .weetable_rating-filter{flex:none}
body .weetable_time-filter .filter-bar-btn{flex:none}
body #reset-filters-btn.filter-bar-btn{order:20;grid-column:auto;margin-left:auto}

/* ===== En-tete de l'accueil avec burger + police ===== */
body,body button,body input,body select{font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
body #main-header{display:flex!important;align-items:center;justify-content:space-between;padding:10px 24px;background:#fff;box-shadow:0 1px 0 var(--wp-line)}
body #main-header .logo{color:var(--wp-text);font-weight:700;font-size:1.3rem}
body #main-header .logo i{color:var(--wp-brand)}
body #hero-content h1{font-family:inherit}

/* ===== cartes : pastilles midi / soir ===== */
body .card-image-container{position:relative}
body .card-badges{position:absolute;left:8px;bottom:8px;z-index:11;display:flex;gap:5px;flex-wrap:wrap}
body .card-badges .cb{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:700;padding:4px 9px;border-radius:999px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.22)}
body .card-badges .cb-midi{color:#8A5300}
body .card-badges .cb-soir{color:#27316d}
body .card-badges .cb i{font-size:.7rem}

/* ===== panneau : nouvelle structure ===== */
body .pd-sub{margin:0 0 12px;color:var(--wp-muted)}
body .pd-meta{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
body .pd-chip{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 12px;border-radius:999px;background:var(--wp-bg);border:1px solid var(--wp-line);font-size:.86rem;color:var(--wp-text)}
body .pd-chip i{color:var(--wp-brand)}
body .pd-chip b{font-weight:700}
body .pd-chip.pd-open{background:#E3F5EC;border-color:#B5E1CC;color:#0B5D49}
body .pd-chip.pd-open i{color:#0F7A5E}
body .pd-chip.pd-closed{background:#F1F2F4;color:#5C6570}
body .pd-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
body .pd-act{flex:1 1 110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:68px;padding:10px 8px;border-radius:16px;border:1px solid var(--wp-line);background:#fff;color:var(--wp-text);text-decoration:none;font:600 .86rem inherit;cursor:pointer}
body .pd-act i{font-size:1.1rem;color:var(--wp-brand)}
body .pd-act:hover{border-color:var(--wp-brand);background:var(--wp-soft)}
body .pd-desc{margin:0 0 18px}
body .pd-desc p{margin:0;color:var(--wp-muted);line-height:1.6;text-transform:none}
body .pd-clamp{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
body .pd-clamp.open{display:block;-webkit-line-clamp:unset}
body .pd-more{border:0;background:none;color:var(--wp-brand);font:700 .9rem inherit;cursor:pointer;padding:6px 0;text-decoration:underline}
body .pd-hours{border:1px solid var(--wp-line);border-radius:16px;overflow:hidden;margin:0 0 16px;background:#fff}
body .pd-hours summary{cursor:pointer;padding:13px 16px;font-weight:700;list-style:none;display:flex;justify-content:space-between}
body .pd-hours summary::-webkit-details-marker{display:none}
body .pd-hours summary::after{content:"+";color:var(--wp-brand);font-size:1.2rem;line-height:1}
body .pd-hours[open] summary::after{content:"–"}
body .pd-hours .panel-schedule-list{border:0;border-top:1px solid var(--wp-line);border-radius:0}


/* ===== mobile : le filtre est une feuille plein ecran (ouverte par le bouton entonnoir) ===== */
@media (max-width:767px){
  body #weetable_filter-bar{padding:0 18px 28px;border:0;border-radius:0;box-shadow:none;margin:0;width:100%}
  body #weetable_filter-bar::before{height:64px}
  body #weetable_control-groups-wrapper{flex-direction:column;align-items:stretch;gap:12px;padding-top:6px}
  body .weetable_filter-main-controls,body .weetable_filter-advanced-controls,body .weetable_time-filter{display:flex;flex-direction:column;gap:12px;width:100%}
  body #weetable_search,body .weetable_multi-select-wrapper{flex:none;width:100%}
  body .weetable_rating-filter{align-self:flex-start}
  body .weetable_time-filter .filter-bar-btn{width:100%;justify-content:center}
  body #reset-filters-btn.filter-bar-btn{margin-left:0;justify-self:auto;order:0}
  body #mobile-filter-close{background:#fff;border:1px solid var(--wp-line)}
  body #mobile-filter-toggle{background:var(--wp-brand)}
  body #hero-content{padding-top:48px}
  body #hero-content h1{font-size:1.9rem}
  body #content{padding:12px}
  body #map{height:260px}
  body #main-header{padding:8px 16px}
}

/* ===== accueil : pas de debordement horizontal ===== */
body #hero-content{box-sizing:border-box}
body #hero-content p:not(.hero-eyebrow){max-width:100%}
body .hero-quick{max-width:100%}
@media (max-width:767px){
  body #weetable_filter-bar,body #weetable_filter-bar *{box-sizing:border-box}
  body #weetable_filter-bar{max-width:100%;overflow-x:hidden}
  body #weetable_search,body .weetable_selected-ot,body .weetable_selected-communes,body .weetable_time-filter .filter-bar-btn{max-width:100%}
}

/* ===== selection (coeurs), autour de moi, cuisine ===== */
body .card-heart{position:absolute;right:8px;top:8px;z-index:12;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.95);box-shadow:0 2px 8px rgba(0,0,0,.25);cursor:pointer;display:flex;align-items:center;justify-content:center;color:#2b2f36;font-size:1rem;transition:transform .15s}
body .card-heart:hover{transform:scale(1.08)}
body .card-heart.on,body .card-heart.on i{color:var(--wp-brand)}
body .card-dist{position:absolute;right:8px;bottom:8px;z-index:11;background:rgba(31,35,40,.85);color:#fff;font-size:.72rem;font-weight:700;padding:4px 9px;border-radius:999px}
body .weetable_extra-filter{display:contents}
body #near-radius,body #cuisine-filter{min-height:44px;padding:0 34px 0 14px;border:1px solid var(--wp-line);border-radius:999px;background:#fff;font:600 .9rem inherit;color:var(--wp-text);cursor:pointer;flex:none}
body #near-radius[hidden],body #cuisine-filter[hidden]{display:none}
body #near-btn,body #sel-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--wp-line);background:#fff;color:var(--wp-text);font:600 .93rem inherit;cursor:pointer;flex:none}
body #near-btn.active{background:#1F2328;border-color:#1F2328;color:#fff}
body #near-btn.loading{opacity:.6}
body #sel-btn i{color:var(--wp-brand)}
body .sel-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--wp-brand);color:#fff;font-size:.78rem;font-weight:700}
body .sel-count[hidden]{display:none}
@media (max-width:767px){body #near-btn,body #sel-btn,body #near-radius,body #cuisine-filter{width:100%;justify-content:center}body .weetable_extra-filter{display:flex;flex-direction:column;gap:12px}}

/* panneau : titre, coeur, partage, itineraire, liens */
body .pd-titlerow{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
body .pd-ico{display:flex;gap:8px;flex:none}
body .pd-icobtn{width:44px;height:44px;border-radius:50%;border:1px solid var(--wp-line);background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.1);cursor:pointer;color:var(--wp-text);font-size:1rem}
body .pd-icobtn.on,body .pd-icobtn.on i{color:var(--wp-brand)}
body .pd-sub i{color:var(--wp-brand);margin-right:4px}
body .pd-cuisine{margin:-6px 0 12px;color:var(--wp-muted);font-size:.9rem}
body .pd-route{cursor:default}
body .pd-route-links{display:flex;gap:10px;margin-top:2px}
body .pd-route-links a{color:var(--wp-brand);font-weight:700;font-size:.8rem;text-decoration:underline}
body .pd-ctas{display:flex;gap:10px;flex-wrap:wrap}
body .pd-ctas .panel-cta{flex:1 1 180px}
body .panel-cta-alt{background:#fff;color:var(--wp-brand);border:2px solid var(--wp-brand);box-shadow:none}
body .panel-cta-alt:hover{background:var(--wp-soft);color:var(--wp-brand)}
body .panel-photos-carousel .swiper-pagination{position:absolute;right:70px;left:auto;bottom:12px;width:auto;background:rgba(255,255,255,.95);border-radius:999px;padding:4px 14px;font-size:.82rem;font-weight:700;color:var(--wp-text)}

/* tiroir "Ma selection" + messages */
.px-drawer{position:fixed;inset:0;z-index:99999;background:rgba(20,24,31,.55);display:flex;justify-content:flex-end;opacity:0;transition:opacity .2s;font-family:inherit}
.px-drawer[hidden]{display:none}.px-drawer.on{opacity:1}
.px-dr-box{background:#fff;width:min(460px,100%);height:100%;display:flex;flex-direction:column;box-shadow:-18px 0 50px rgba(0,0,0,.25);transform:translateX(30px);transition:transform .2s}
.px-drawer.on .px-dr-box{transform:none}
.px-dr-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #E7E2DD}
.px-dr-head h2{margin:0;font-size:1.3rem}
.px-x{border:0;background:none;font-size:32px;line-height:1;cursor:pointer;color:#333}
.px-dr-body{flex:1;overflow:auto;padding:14px 22px}
.px-list{list-style:none;margin:0;padding:0}
.px-list li{display:flex;align-items:center;gap:8px;border-bottom:1px solid #EEE;padding:10px 0}
.px-it{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:0;background:none;text-align:left;cursor:pointer;font:inherit;padding:0}
.px-th{width:64px;height:64px;border-radius:12px;background:#F1ECE8;overflow:hidden;flex:none}
.px-th img{width:100%;height:100%;object-fit:cover}
.px-tx{display:flex;flex-direction:column;min-width:0}.px-tx b{font-size:1rem;line-height:1.25}.px-tx small{color:#5C6570;text-transform:capitalize}
.px-rm{border:0;background:#F1F2F4;width:34px;height:34px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;color:#444}
.px-empty{text-align:center;padding:50px 10px;color:#5C6570}.px-empty i{font-size:2.4rem;color:#ff6749;margin-bottom:10px}.px-empty p{margin:4px 0}.px-sub{font-size:.9rem}
.px-acts{display:flex;flex-direction:column;gap:8px;padding:18px 0 4px}
.px-btn{min-height:46px;padding:0 20px;border:0;border-radius:999px;background:#ff6749;color:#fff;font:700 .95rem inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.px-btn:disabled{opacity:.6}
.px-link{border:0;background:none;color:#5C6570;text-decoration:underline;cursor:pointer;font:inherit;padding:8px}
.px-dr-mail{border-top:1px solid #E7E2DD;padding:16px 22px 22px;background:#FAF8F6}
.px-dr-mail[hidden]{display:none}
.px-dr-mail p{margin:0 0 10px;font-size:.9rem;color:#5C6570}
.px-row{display:flex;gap:8px}.px-row input{flex:1;min-width:0;min-height:46px;padding:0 14px;border:1px solid #CBD2DA;border-radius:999px;font:inherit}
.px-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.px-msg{min-height:20px;margin-top:8px;font-size:.9rem}.px-msg.ok{color:#0B5D49}.px-msg.err{color:#8E221C}
.px-toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);z-index:100000;background:#1F2328;color:#fff;padding:12px 20px;border-radius:999px;font-size:.92rem;box-shadow:0 8px 24px rgba(0,0,0,.3);transition:opacity .3s}
.px-toast.out{opacity:0}
body .pd-act span:not(.pd-route-links){font-size:.9rem;font-weight:600;color:var(--wp-text)}

/* ===== panneau de detail : fidele a la maquette (v3) ===== */
body #panel{width:min(640px,96vw);max-width:640px;border-radius:26px 0 0 26px;background:#fff}
body #panel-content{padding:0}
/* photo : encadree, coins arrondis, pastille "Restaurant", fleches en bas a droite */
body .panel-photos-carousel{position:relative;margin:10px 10px 0;border-radius:22px;overflow:hidden;background:#EFE9E4}
body .panel-photos-carousel .swiper-slide>div:first-child{aspect-ratio:16/9;background-size:cover;background-position:center;margin:0}
body .pd-badge{position:absolute;left:14px;bottom:14px;z-index:5;display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 13px;border-radius:999px;background:#fff;font-size:.82rem;font-weight:600;color:var(--wp-text);box-shadow:0 2px 8px rgba(0,0,0,.18)}
body .pd-badge i{color:var(--wp-brand)}
body .panel-photos-carousel .swiper-button-prev,body .panel-photos-carousel .swiper-button-next{top:auto;bottom:12px;margin:0;width:32px;height:32px;border-radius:50%;background:#fff;color:var(--wp-text);--swiper-navigation-size:13px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
body .panel-photos-carousel .swiper-button-next{right:12px;left:auto}
body .panel-photos-carousel .swiper-button-prev{right:92px;left:auto}
body .panel-photos-carousel .swiper-pagination{position:absolute;bottom:12px;right:52px;left:auto;width:auto;min-width:36px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;background:#fff;border-radius:0;font-size:.86rem;font-weight:700;color:var(--wp-text);line-height:1}
body .panel-photos-carousel .photo-credit{display:none}
body #panel .close-btn{top:16px;margin:16px 18px 0 0;width:46px;height:46px;border-radius:50%;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:1.6rem}
/* contenu */
body .panel-details-body{padding:26px 30px 36px}
body .pd-titlerow{margin-bottom:6px}
body .panel-details-body h1{font-size:2rem;line-height:1.15;font-weight:800;letter-spacing:-.02em;margin:0}
body .pd-icobtn{width:50px;height:50px;border:0;box-shadow:0 4px 14px rgba(0,0,0,.14);font-size:1.1rem}
body .pd-sub{margin:4px 0 2px;font-size:1.08rem;color:var(--wp-text);font-weight:500;display:flex;align-items:center;gap:8px}
body .pd-sub i{color:var(--wp-brand);font-size:1.05rem}
body .pd-addr{margin:0 0 8px 26px;color:var(--wp-muted);font-size:.92rem}
body .pd-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:4px 0 8px}
body .pd-rate{display:inline-flex;align-items:center;gap:3px;font-size:1.05rem}
body .pd-rate i{color:var(--wp-brand)!important;font-size:1rem}
body .pd-rate b{margin-left:8px;font-size:1.1rem;color:var(--wp-text)}
body .pd-rate .pd-rc{color:var(--wp-muted);font-weight:400}
body .pd-cuisine{margin:0 0 16px;color:var(--wp-muted);font-size:.9rem}
body .pd-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:0 0 22px}
body .pd-act{min-height:84px;border-radius:16px;border:1px solid var(--wp-line);box-shadow:0 2px 10px rgba(31,35,40,.06);gap:8px;padding:12px 8px}
body .pd-act i{font-size:1.25rem}
body .pd-act span:not(.pd-route-links){font-size:.95rem;font-weight:500}
body .pd-desc p{font-size:1.02rem;line-height:1.7;color:#5f6773}
body .pd-hours{border:0;border-radius:0;margin:6px 0 20px;background:transparent}
body .pd-hours summary{padding:6px 0 12px;font-size:1.15rem;font-weight:700;justify-content:flex-start}
body .pd-hours summary span i{color:var(--wp-brand);margin-right:10px}
body .pd-hours summary::after{display:none}
body .pd-hours .panel-schedule-list{border:0;border-radius:0}
body .pd-hours .panel-schedule-list li{padding:11px 14px;border-bottom:1px solid var(--wp-line);font-size:1rem;display:flex;justify-content:space-between}
body .pd-hours .panel-schedule-list li strong{font-weight:400;color:var(--wp-text)}
body .pd-hours .panel-schedule-list li span{color:var(--wp-muted)}
body .pd-hours .panel-schedule-list li.is-today{background:var(--wp-soft);border-left:3px solid var(--wp-brand);font-weight:700}
body .pd-hours .panel-schedule-list li.is-today strong,body .pd-hours .panel-schedule-list li.is-today span{color:var(--wp-brand);font-weight:700}
body .panel-cta-wrap{margin:14px -30px -36px!important;padding:16px 30px 22px}
body .panel-cta{min-height:56px;font-size:1.02rem}
@media (max-width:700px){body #panel{width:100%;max-width:none;border-radius:0}body .panel-details-body{padding:22px 18px 30px}body .panel-cta-wrap{margin:14px -18px -30px!important;padding:14px 18px 20px}}
body .pd-route-links{gap:6px;flex-wrap:nowrap}
body .pd-route-links a{white-space:nowrap;font-size:.72rem}

/* ===== panneau v4 : photo pleine largeur, pastille de navigation, icones d'itineraire ===== */
body .panel-photos-carousel{margin:0;border-radius:0 0 24px 24px}
body .panel-photos-carousel .swiper-slide{width:100%}
body .panel-photos-carousel .swiper-slide>div:first-child{width:100%!important;max-width:none;margin:0!important}
body .pd-nav{position:absolute;right:14px;bottom:14px;z-index:6;display:flex;align-items:center;gap:2px;background:#fff;border-radius:999px;padding:3px 6px;box-shadow:0 2px 10px rgba(0,0,0,.2)}
body .pd-nav .swiper-button-prev,body .pd-nav .swiper-button-next{position:static;width:28px;height:28px;margin:0;border-radius:50%;background:none;box-shadow:none;color:var(--wp-text);--swiper-navigation-size:12px}
body .pd-nav .swiper-button-disabled{opacity:.3}
body .pd-nav .swiper-pagination{position:static;width:auto;min-width:42px;height:28px;padding:0;background:none;border-radius:0;box-shadow:none;display:flex;align-items:center;justify-content:center;font-size:.84rem;font-weight:700;color:var(--wp-text)}
body .pd-badge{bottom:16px}
body .pd-route{gap:8px}
body .pd-route-links{display:flex;gap:10px;margin-top:0}
body .pd-rt{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;font-size:.9rem;transition:transform .15s}
body .pd-rt:hover{transform:scale(1.1)}
body .pd-rt-g{background:#4285F4}
body .pd-rt-w{background:#33CCFF}
body .pd-route-links a{text-decoration:none;font-size:.9rem}

/* bouton fermer : plus de flottant (il rognait la photo) -- colle en haut a droite, la photo reste pleine largeur */
body #panel .close-btn{position:sticky;top:14px;float:none;display:flex;width:46px;height:46px;margin:14px 18px -60px auto;z-index:20}

/* photo du panneau : pas de ligne vide au-dessus/en dessous (le texte inline des pastilles creait une bande beige) */
body .panel-photos-carousel{font-size:0;line-height:0}
body .pd-badge{font-size:.82rem;line-height:1}
body .pd-nav .swiper-pagination{font-size:.84rem;line-height:1}
body .pd-rt i{color:#fff!important;font-size:.95rem}

/* ===== boutons de la barre de filtres : un seul style (police, taille, hauteur, bordure) et un classement lisible ===== */
body #weetable_filter-bar,body #weetable_filter-bar *:not(i):not(.fas):not(.far):not(.fab),body .card-cta,body .card-badges *:not(i):not(.fas):not(.far):not(.fab){font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important}
body #weetable_filter-bar .filter-bar-btn,
body #weetable_filter-bar #near-btn,
body #weetable_filter-bar #sel-btn,
body #weetable_filter-bar #near-radius,
body #weetable_filter-bar #cuisine-filter,
body #weetable_filter-bar .weetable_selected-communes,
body #weetable_filter-bar .weetable_selected-ot,
body #weetable_filter-bar #weetable_search{box-sizing:border-box;min-height:46px;height:46px;font-size:15px!important;font-weight:600;line-height:1;border-radius:999px!important}
body #weetable_filter-bar #weetable_search,body #weetable_filter-bar .weetable_selected-communes,body #weetable_filter-bar .weetable_selected-ot{font-weight:500;padding-left:18px}
body #weetable_filter-bar #weetable_search{padding-left:44px}
body #weetable_filter-bar #near-radius,body #weetable_filter-bar #cuisine-filter{appearance:none;-webkit-appearance:none;padding:0 38px 0 18px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6570' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat;font-weight:500}
body #weetable_filter-bar .filter-bar-btn,body #weetable_filter-bar #near-btn,body #weetable_filter-bar #sel-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 20px;border:1px solid var(--wp-line);background:#fff;color:var(--wp-text);cursor:pointer;transition:background .15s,border-color .15s,color .15s,box-shadow .15s}
body #weetable_filter-bar .filter-bar-btn i,body #weetable_filter-bar #near-btn i,body #weetable_filter-bar #sel-btn i{font-size:1rem;color:var(--wp-brand)}
body #weetable_filter-bar .filter-bar-btn:hover,body #weetable_filter-bar #near-btn:hover,body #weetable_filter-bar #sel-btn:hover{border-color:var(--wp-brand);background:var(--wp-soft)}
body #weetable_filter-bar .filter-bar-btn.active,body #weetable_filter-bar #near-btn.active{background:var(--wp-brand);border-color:var(--wp-brand);color:#fff;box-shadow:0 6px 16px rgba(255,103,73,.3)}
body #weetable_filter-bar .filter-bar-btn.active i,body #weetable_filter-bar #near-btn.active i{color:#fff}
body #weetable_filter-bar #reset-filters-btn{height:auto;min-height:36px;border:0;background:none;padding:0 4px;color:var(--wp-muted);font-weight:600;text-decoration:underline;border-radius:0!important}
body #weetable_filter-bar #reset-filters-btn i{color:var(--wp-muted)}
body #weetable_filter-bar #reset-filters-btn:hover{background:none;color:var(--wp-brand)}
body #weetable_filter-bar .sel-count{height:22px;min-height:22px;font-size:.78rem!important}
body #weetable_filter-bar .weetable_rating-filter{min-height:46px;height:46px;box-sizing:border-box}

/* ordre : filtres de recherche d'abord, puis les boutons d'action */
@media (min-width:768px){
  body #weetable_control-groups-wrapper{row-gap:14px}
  body #weetable_search{order:1;flex:1 1 280px}
  body #weetable_ot-wrapper{order:2}
  body .weetable_multi-select-wrapper{order:2}
  body #cuisine-filter{order:3}
  body .weetable_rating-filter{order:4}
  body #filter-midi-main{order:10}
  body #filter-soir-main{order:11}
  body #near-btn{order:12}
  body #near-radius{order:13}
  body #sel-btn{order:14}
  body #reset-filters-btn{order:20;margin-left:auto}
}
/* cartes : bouton "Voir le detail" */
body .card-cta{font-size:.84rem;font-weight:700;min-height:38px;padding:0 16px}
@media (min-width:768px){
  /* saut de ligne entre les filtres de recherche et les boutons d'action */
  body #weetable_control-groups-wrapper::after{content:"";order:9;flex:0 0 100%;height:0;margin:-6px 0}
}

/* ===================== BARRE DE FILTRES v2 ===================== */
/* ancienne mise en page neutralisee une fois la nouvelle construite */
body #weetable_filter-bar.fb-on #weetable_control-groups-wrapper,
body #weetable_filter-bar.fb-on .weetable_filter-main-controls,
body #weetable_filter-bar.fb-on .weetable_filter-advanced-controls,
body #weetable_filter-bar.fb-on .weetable_extra-filter,
body #weetable_filter-bar.fb-on .weetable_time-filter,
body #weetable_filter-bar.fb-on #weetable_selected-ot-container,
body #weetable_filter-bar.fb-on #weetable_selected-communes-container{display:none!important}
body #weetable_filter-bar.fb-on{display:block;padding:12px 16px;border-radius:22px}
@media (min-width:768px){
  body #weetable_filter-bar.fb-on{position:sticky;top:10px;z-index:60}
  body #map{top:96px}
}

.fb-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fb-search{flex:1 1 280px;min-width:220px}
.fb-search #weetable_search{width:100%}
.fb-chips{display:flex;gap:8px;flex-wrap:wrap}
body #weetable_filter-bar.fb-on .fb-chips .filter-bar-btn,body #weetable_filter-bar.fb-on .fb-chips #near-btn,body #weetable_filter-bar.fb-on .fb-more,body #weetable_filter-bar.fb-on #sel-btn{height:46px;min-height:46px;padding:0 16px}
.fb-more{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--wp-line);background:#fff;border-radius:999px;font:600 15px "Poppins",system-ui,sans-serif!important;color:var(--wp-text);cursor:pointer}
.fb-more:hover,.fb-more[aria-expanded="true"]{border-color:var(--wp-brand);background:var(--wp-soft)}
.fb-more i{color:var(--wp-brand)}
.fb-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--wp-brand);color:#fff;font-size:.78rem;font-weight:700}
.fb-badge[hidden]{display:none}

/* filtres actifs */
.fb-active{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--wp-line)}
.fb-active[hidden]{display:none}
.fb-chip{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:0 8px 0 14px;border:0;border-radius:999px;background:var(--wp-soft);color:var(--wp-brand);font:700 .86rem "Poppins",system-ui,sans-serif!important;cursor:pointer}
.fb-chip i{font-style:normal;width:20px;height:20px;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.95rem;line-height:1}
.fb-chip:hover{background:var(--wp-brand);color:#fff}
.fb-clear{border:0;background:none;color:var(--wp-muted);font:600 .86rem "Poppins",system-ui,sans-serif!important;text-decoration:underline;cursor:pointer;margin-left:auto;padding:6px 4px}
.fb-clear:hover{color:var(--wp-brand)}

/* volet des filtres (bureau : volet deroulant sous la barre) */
.fb-sheet{display:none}
body #weetable_filter-bar.fb-open .fb-sheet{display:block;position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid var(--wp-line);border-radius:20px;box-shadow:0 18px 50px rgba(31,35,40,.18);padding:18px 22px 18px;z-index:70;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 26px}
.fb-sheet-head{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.fb-sheet-head b{font-size:1.1rem}
.fb-x{border:0;background:none;font-size:30px;line-height:1;cursor:pointer;color:#444}
.fb-sec{margin:8px 0}
.fb-sec[hidden]{display:none}
.fb-sec h3{margin:0 0 8px;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--wp-muted)}
.fb-sec .weetable_multi-select-wrapper,.fb-sec #cuisine-filter,.fb-sec #near-radius{width:100%;max-width:none;flex:none}
.fb-sec #cuisine-filter,.fb-sec #near-radius{display:block}
.fb-foot{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:14px;border-top:1px solid var(--wp-line)}
body #weetable_filter-bar .fb-foot #reset-filters-btn{display:inline-flex!important;margin:0!important;order:0}
.fb-apply{min-height:48px;padding:0 26px;border:0;border-radius:999px;background:var(--wp-brand);color:#fff;font:700 .98rem "Poppins",system-ui,sans-serif!important;cursor:pointer;box-shadow:0 6px 16px rgba(255,103,73,.3)}
.fb-apply:hover{background:var(--wp-brand-d)}

/* mobile : la feuille plein ecran d'origine affiche tout, le bouton "Filtres" est inutile */
@media (max-width:767px){
  body #weetable_filter-bar.fb-on{position:fixed;padding:0 18px 28px;border-radius:0}
  body #weetable_filter-bar.fb-on .fb-top{flex-direction:column;align-items:stretch}
  body #weetable_filter-bar.fb-on .fb-more{display:none}
  body #weetable_filter-bar.fb-on .fb-chips{flex-direction:column}
  body #weetable_filter-bar.fb-on .fb-chips>*,body #weetable_filter-bar.fb-on #sel-btn{width:100%;justify-content:center}
  .fb-sheet{display:block!important;position:static!important;border:0!important;box-shadow:none!important;padding:8px 0 0!important}
  .fb-sheet-head{display:none}
  .fb-active{margin-top:14px}
}
@media (min-width:768px){
  body #weetable_filter-bar.fb-on{top:62px}
  body #map{top:calc(62px + var(--fb-h,72px) + 14px);height:calc(100vh - 62px - var(--fb-h,72px) - 34px)}
}
@media (max-width:767px){
  body #weetable_filter-bar.fb-on .fb-search{flex:none;min-width:0;width:100%}
  body #weetable_filter-bar.fb-on .fb-top{gap:12px}
}

/* ===================== CARTES (v3) : photo, note, horaire du jour, cuisine, actions rapides ===================== */
body .card{grid-template-columns:40% minmax(0,1fr);border-radius:20px;border:1px solid var(--wp-line);overflow:hidden;background:#fff;transition:box-shadow .2s,transform .2s,border-color .2s}
body .card:hover{border-color:#ffd2c6;box-shadow:0 14px 34px rgba(31,35,40,.13);transform:translateY(-3px)}
body .card-image-container{position:relative;min-height:176px;background:linear-gradient(135deg,#F6ECE8,#EDE6E1);overflow:hidden}
body .card-image-container img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
body .card:hover .card-image-container img{transform:scale(1.06)}
body .card-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:3.2rem;font-weight:800;color:var(--wp-brand);opacity:.55}
/* contenu */
body .card-content{padding:16px 18px 14px;display:flex;flex-direction:column;gap:6px;min-width:0}
body .card-content h2{font-size:1.1rem;line-height:1.28;margin:0;font-weight:700;letter-spacing:-.005em}
body .card-content h2 a{color:var(--wp-text);text-decoration:none}
body .card-content .card-place{margin:0;font-size:.88rem;color:var(--wp-muted);text-transform:none;display:flex;align-items:center;gap:6px}
body .card-place i{color:var(--wp-brand);font-size:.8rem}
body .card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:2px;font-size:.88rem;color:var(--wp-text)}
body .card-rate{display:inline-flex;align-items:center;gap:5px}
body .card-rate i{color:var(--wp-brand);font-size:.85rem}
body .card-rate b{font-weight:700}
body .card-rate small{color:var(--wp-muted);font-size:.82rem}
body .card-hours{display:inline-flex;align-items:center;gap:6px;color:#0B5D49;font-weight:600;font-size:.84rem}
body .card-hours i{color:#0F7A5E}
body .card-tags{display:flex;flex-wrap:wrap;gap:6px}
body .card-tags span{font-size:.76rem;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--wp-bg);border:1px solid var(--wp-line);color:var(--wp-muted)}
body .card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px}
body .card-cta{margin:0;min-height:36px;padding:0 14px;font-size:.84rem;order:0}
body .card-qa{display:inline-flex;gap:8px}
body .card-qa a{width:36px;height:36px;border-radius:50%;border:1px solid var(--wp-line);background:#fff;color:var(--wp-text);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:.85rem;transition:background .15s,color .15s,border-color .15s}
body .card-qa a:hover{background:var(--wp-brand);border-color:var(--wp-brand);color:#fff}
/* ancienne note en etoiles : retiree du balisage, regle neutralisee */
body .card-rating{display:none}
/* mobile : photo au-dessus si l'ecran est tres etroit */
@media (max-width:480px){
  body .card{grid-template-columns:34% minmax(0,1fr)}
  body .card-image-container{min-height:150px}
  body .card-content{padding:12px 12px 12px}
  body .card-qa a{width:34px;height:34px}
}
@media (prefers-reduced-motion:reduce){body .card,body .card-image-container img{transition:none}body .card:hover{transform:none}body .card:hover .card-image-container img{transform:none}}
body .card-cta{white-space:nowrap}
body .card-hours{white-space:normal}

/* ===================== CARTES (v4) : en-tete photo / contenu / boutons / pied (partenaire) ===================== */
body .card{display:flex;flex-direction:column;grid-template-columns:none;border-radius:22px;overflow:hidden}
/* en-tete : photo */
body .card-image-container{height:auto;min-height:0;aspect-ratio:16/10;width:100%;flex:none}
body .card-image-container img{position:absolute;inset:0;width:100%;height:100%}
body .card-heart{right:12px;top:12px;width:40px;height:40px}
body .card-badges{left:12px;bottom:12px}
body .card-dist{right:12px;bottom:12px}
/* contenu */
body .card-content{padding:16px 18px 0;gap:6px;flex:1;display:flex;flex-direction:column}
body .card-content h2{font-size:1.15rem}
/* boutons */
body .card-foot{margin-top:auto;padding:14px 0 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
body .card-qa{display:inline-flex;gap:8px}
body .card-qa a{width:40px;height:40px;border:0;color:#fff;font-size:.95rem}
body .card-qa .qa-tel{background:#1F9D6B}
body .card-qa .qa-maps{background:#4285F4}
body .card-qa .qa-waze{background:#33CCFF}
body .card-qa a:hover{filter:brightness(.92);color:#fff;background:inherit;transform:translateY(-1px)}
body .card-qa .qa-tel:hover{background:#1F9D6B}body .card-qa .qa-maps:hover{background:#4285F4}body .card-qa .qa-waze:hover{background:#33CCFF}
body .card-cta{min-height:40px;padding:0 18px;font-size:.9rem;margin:0}
/* pied : office de tourisme partenaire */
body .card-ot{display:flex;align-items:center;gap:10px;padding:10px 18px;border-top:1px solid var(--wp-line);background:#FBF9F7;font-size:.78rem;color:var(--wp-muted);min-width:0}
body .card-ot img{height:22px;width:auto;max-width:64px;object-fit:contain;flex:none}
body .card-ot span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:480px){
  body .card{border-radius:18px}
  body .card-content{padding:14px 14px 0}
  body .card-ot{padding:9px 14px}
}
/* titre des cartes : meme couleur que le texte (il restait marron quand la fiche n'a pas de page en ligne) */
body .card-content h2,body .card-content h2 a{color:var(--wp-text)}
body .card:hover .card-content h2,body .card:hover .card-content h2 a{color:var(--wp-brand)}

/* statut d'ouverture en temps reel + logo Waze */
body .card-hours{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.84rem;font-weight:600}
body .card-hours i{font-size:.55rem}
body .card-hours small{color:var(--wp-muted);font-weight:500;font-size:.8rem}
body .card-hours.st-open,body .card-hours.st-open i{color:#0B7A55}
body .card-hours.st-soon,body .card-hours.st-soon i{color:#B26A00}
body .card-hours.st-closed,body .card-hours.st-closed i{color:#8A2D2D}
body .card-hours.st-closed small{color:var(--wp-muted)}
body .card-qa .wz,body .pd-rt .wz{display:block;width:22px;height:22px}

/* ===== cartes : survol lie a la carte, description, fond colore sans photo ===== */
body .card.is-hover{border-color:var(--wp-brand);box-shadow:0 14px 34px rgba(255,103,73,.2)}
body .card-desc{margin:2px 0 0;font-size:.86rem;line-height:1.5;color:var(--wp-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-transform:none}
body .card-ph{--c:#ff6749;background:#F6ECE8;background:linear-gradient(135deg,color-mix(in srgb,var(--c) 14%,#fff),color-mix(in srgb,var(--c) 30%,#fff));color:var(--c);opacity:1}
body .card-ph::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(255,255,255,.55),transparent 55%)}
body .card-ph{font-size:3.6rem}
body .card-content p.card-desc{text-transform:none!important;margin:2px 0 0}

/* ===== cartes : boutons d'action sur une ligne, « Voir le détail » dessous sur toute la largeur (identique aux pages /restaurants/...) ===== */
body .card-foot{flex-direction:column;align-items:stretch;gap:12px}
body .card-qa{display:flex;flex-wrap:wrap;gap:8px}
body .card-qa button{width:40px;height:40px;border:0;border-radius:50%;color:#fff;font-size:.95rem;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:filter .15s,transform .15s}
body .card-qa .qa-mail,body .card-qa .qa-mail:hover{background:#7A5AF8}
body .card-qa button:hover{filter:brightness(.92);transform:translateY(-1px)}
body .card-cta{width:100%;box-sizing:border-box;justify-content:center;min-height:42px;margin:0}

/* boutons du panneau : plus compacts */
body .panel-cta{min-height:44px;padding:0 18px;font-size:.92rem;border-radius:999px;gap:8px;box-shadow:none}
body .panel-cta i{font-size:.85rem}
body .panel-cta-wrap{padding-top:10px;padding-bottom:12px}
body .pd-ctas{gap:8px}
body .pd-ctas .panel-cta{flex:1 1 150px;margin-top:0}
