/* TC Search — barre de recherche de conversion. Palette du site (Blocksy) : encre #1A1612, terracotta #8B3A1A, or #C9973A, parchemin #f9f3e4, vert #2D4A2D. */
:root{
  --tcsr-ink:var(--theme-palette-color-1,#1A1612);
  --tcsr-mut:#6b6055;
  --tcsr-line:rgba(26,22,18,.14);
  --tcsr-soft:#f7f1e3;
  --tcsr-soft2:#efe6d0;
  --tcsr-acc:var(--theme-palette-color-2,#8B3A1A);
  --tcsr-acc-ink:#fff;
  --tcsr-gold:var(--theme-palette-color-3,#C9973A);
  --tcsr-green:var(--theme-palette-color-5,#2D4A2D);
}
html.tcsr-lock{overflow:hidden}

/* ── La barre : shortcode [tc_search] (invisible tant que le moteur n'est ni actif ni en aperçu) ── */
.tcsr-bar{display:none}
html.tcsr-on .tcsr-bar{display:inline-flex;vertical-align:middle;max-width:100%}
.tcsr-bar-btn{
  display:inline-flex;align-items:center;gap:10px;width:var(--tcsr-bar-w,290px);max-width:100%;height:42px;padding:0 16px 0 14px;margin:0;
  border:1px solid var(--tcsr-line);border-radius:999px;background:#fff;color:var(--tcsr-mut);font:inherit;font-size:14px;line-height:1;text-align:left;
  cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.05);transition:border-color .15s,box-shadow .15s;-webkit-appearance:none;appearance:none;text-transform:none;letter-spacing:0;
}
.tcsr-bar-btn:hover,.tcsr-bar-btn:focus-visible{border-color:var(--tcsr-gold);box-shadow:0 2px 10px rgba(0,0,0,.14);outline:0;background:#fff;color:var(--tcsr-mut)}
.tcsr-bar-ic{flex:none;color:var(--tcsr-acc)}
.tcsr-bar-tx{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tcsr-bar--dark .tcsr-bar-btn{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.42);color:#fff;box-shadow:none}
.tcsr-bar--dark .tcsr-bar-btn:hover,.tcsr-bar--dark .tcsr-bar-btn:focus-visible{background:rgba(255,255,255,.2);border-color:var(--tcsr-gold);color:#fff}
.tcsr-bar--dark .tcsr-bar-ic{color:var(--tcsr-gold)}
@media (max-width:1279px){ .tcsr-bar-btn{width:var(--tcsr-bar-w,210px)} }
/* dans la zone de widgets du header : la barre se place À CÔTÉ du sélecteur de langue, pas au-dessus */
[data-id^="widget-area"]:has(.tcsr-bar){display:flex;flex-direction:row;align-items:center;gap:12px;flex-wrap:nowrap}
[data-id^="widget-area"]:has(.tcsr-bar) .ct-widget,[data-id^="widget-area"]:has(.tcsr-bar) .widget_block{margin:0}
/* variante « hero » : grande barre pour une page ou un bandeau */
html.tcsr-on .tcsr-bar--hero{display:flex;justify-content:center;width:100%}
.tcsr-bar--hero .tcsr-bar-btn{width:min(680px,100%);height:58px;font-size:16px;padding:0 8px 0 20px;box-shadow:0 8px 30px rgba(0,0,0,.16)}
.tcsr-bar-go{flex:none;background:var(--tcsr-acc);color:var(--tcsr-acc-ink);border-radius:999px;padding:11px 20px;font-weight:700;font-size:15px}
/* mobile : la pilule se réduit à une loupe ronde (mobile="bar" pour la garder pleine largeur) */
@media (max-width:767px){
  .tcsr-bar--pill.tcsr-bar--m-icon .tcsr-bar-btn{width:42px;padding:0;justify-content:center;gap:0}
  .tcsr-bar--pill.tcsr-bar--m-icon .tcsr-bar-tx{display:none}
  .tcsr-bar--pill.tcsr-bar--m-bar .tcsr-bar-btn{width:var(--tcsr-bar-w,100%)}
  .tcsr-bar--hero .tcsr-bar-btn{height:52px;font-size:15px}
  .tcsr-bar--hero .tcsr-bar-go{padding:9px 14px;font-size:14px}
}

/* ── Option « remplacer la loupe Blocksy » : pilule sur desktop, loupe seule sur mobile ── */
.tcsr-pill{display:none}
@media (min-width:1000px){
  html.tcsr-on [data-device="desktop"] .ct-header-search.tcsr-trigger{
    display:inline-flex;align-items:center;gap:10px;height:42px;padding:0 18px 0 14px;min-width:210px;
    border:1px solid var(--tcsr-line);border-radius:999px;background:#fff;color:var(--tcsr-mut);font-size:14px;line-height:1;
    box-shadow:0 1px 2px rgba(0,0,0,.04);transition:border-color .15s,box-shadow .15s;
  }
  html.tcsr-on [data-device="desktop"] .ct-header-search.tcsr-trigger:hover{border-color:var(--tcsr-gold);box-shadow:0 2px 10px rgba(0,0,0,.1)}
  html.tcsr-on [data-device="desktop"] .ct-header-search.tcsr-trigger .tcsr-pill{display:inline;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
  html.tcsr-on [data-device="desktop"] .ct-header-search.tcsr-trigger .ct-icon{order:-1;flex:none;width:16px;height:16px}
}

/* ── Panneau (au-dessus de tout : barre de raccourcis du bas, bulle de Tosco…) ── */
.tcsr-bd{position:fixed;inset:0;z-index:2147483000;background:rgba(26,22,18,.55);backdrop-filter:blur(2px)}
.tcsr-bd[hidden],.tcsr-panel[hidden]{display:none}
.tcsr-panel{
  position:fixed;z-index:2147483001;left:50%;top:var(--tcsr-top,72px);transform:translateX(-50%);
  width:min(1080px,calc(100vw - 32px));max-height:calc(100vh - var(--tcsr-top,72px) - 16px);
  display:flex;flex-direction:column;background:#fffdf8;color:var(--tcsr-ink);border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.4);overflow:hidden;font-size:15px;line-height:1.35;
}
.tcsr-panel *{box-sizing:border-box}
.tcsr-top{flex:none;display:flex;align-items:center;gap:12px;padding:14px 16px 10px;border-bottom:1px solid var(--tcsr-line)}
.tcsr-form{flex:1;display:flex;align-items:center;gap:10px;height:52px;padding:0 8px 0 16px;border:2px solid var(--tcsr-acc);border-radius:999px;background:#fff;margin:0}
.tcsr-form .tcsr-ic{flex:none;color:var(--tcsr-acc)}
.tcsr-form input[type=search]{flex:1;min-width:0;height:100%;border:0!important;background:transparent!important;box-shadow:none!important;outline:0;padding:0;font-size:17px;color:var(--tcsr-ink);-webkit-appearance:none;appearance:none}
.tcsr-form input[type=search]::-webkit-search-cancel-button{display:none}
.tcsr-clear{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:var(--tcsr-soft);color:var(--tcsr-mut);font-size:22px;line-height:1;cursor:pointer}
.tcsr-close{flex:none;border:0;background:transparent;color:var(--tcsr-mut);font-size:14px;cursor:pointer;padding:8px 6px;text-decoration:underline;text-underline-offset:3px}
.tcsr-close:hover{color:var(--tcsr-ink)}
.tcsr-tabs{flex:none;display:flex;gap:6px;padding:10px 16px 0;overflow-x:auto;scrollbar-width:none}
.tcsr-tabs:empty{display:none}
.tcsr-tabs::-webkit-scrollbar{display:none}
.tcsr-tabs button,.tcsr-tabs a{flex:none;border:1px solid var(--tcsr-line);background:#fff;color:var(--tcsr-ink);border-radius:999px;padding:7px 14px;font-size:14px;line-height:1.2;cursor:pointer;text-decoration:none;white-space:nowrap}
.tcsr-tabs small{color:var(--tcsr-mut);margin-left:3px}
.tcsr-tabs .is-on{background:var(--tcsr-ink);border-color:var(--tcsr-ink);color:#fff}
.tcsr-tabs .is-on small{color:rgba(255,255,255,.75)}
.tcsr-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;padding:14px 16px 16px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
.tcsr-main.is-loading{opacity:.55;transition:opacity .15s}
.tcsr-h{margin:14px 0 8px;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--tcsr-mut);font-weight:700}
.tcsr-main .tcsr-h:first-child,.tcsr-side .tcsr-h:first-child{margin-top:4px}
.tcsr-h small{font-weight:600;color:var(--tcsr-mut);margin-left:4px;letter-spacing:0}
.tcsr-chips{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 6px}
.tcsr-chips span{background:var(--tcsr-soft);border:1px solid var(--tcsr-soft2);border-radius:999px;padding:4px 11px;font-size:13px;font-weight:600}
.tcsr-note{margin:2px 0 8px;font-size:13.5px;color:var(--tcsr-mut)}
.tcsr-empty{padding:22px 4px;color:var(--tcsr-mut)}
.tcsr-empty strong{color:var(--tcsr-ink)}

/* ── Une ligne de résultat (panneau) ── */
.tcsr-list{display:flex;flex-direction:column;gap:2px}
.tcsr-list--picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}
.tcsr-it{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:14px;padding:8px 10px 8px 8px;border-radius:12px;color:var(--tcsr-ink)!important;text-decoration:none!important;border:1px solid transparent}
.tcsr-it:hover,.tcsr-it.is-f,.tcsr-it:focus-visible{background:var(--tcsr-soft);border-color:var(--tcsr-soft2);outline:0}
.tcsr-th{width:72px;height:72px;border-radius:10px;overflow:hidden;background:var(--tcsr-soft);display:block}
.tcsr-th img{width:100%;height:100%;object-fit:cover;display:block}
.tcsr-noimg{display:block;width:100%;height:100%;background:repeating-linear-gradient(135deg,#ebe2cc 0 8px,#f4ecd9 8px 16px)}
.tcsr-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.tcsr-tx b{font-size:15.5px;font-weight:650;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tcsr-tx i{font-style:normal;font-size:13px;color:var(--tcsr-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tcsr-kind{align-self:flex-start;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;padding:1px 7px;border-radius:5px;background:#ece5d3;color:#4a4032}
.tcsr-k-agri .tcsr-kind{background:#e3ecd8;color:#2D4A2D}
.tcsr-k-heb .tcsr-kind{background:#dfe7ef;color:#25466b}
.tcsr-k-acti .tcsr-kind{background:#f7e4d0;color:#8B3A1A}
.tcsr-k-resto .tcsr-kind{background:#f4dfd8;color:#7a2a1a}
.tcsr-k-circ .tcsr-kind{background:#ece3d2;color:#5a4a20}
.tcsr-k-lieu .tcsr-kind{background:#e6e2d8;color:#3f3a30}
.tcsr-k-post .tcsr-kind{background:#ece9e2;color:#5a5140}
.tcsr-meta{display:flex;gap:10px;font-size:13px}
.tcsr-meta em{font-style:normal;font-weight:700}
.tcsr-rt{color:#a9771a}
.tcsr-pr{color:var(--tcsr-green)}
.tcsr-go{font-size:13px;font-weight:700;color:var(--tcsr-acc);white-space:nowrap;opacity:0;transform:translateX(-4px);transition:opacity .15s,transform .15s}
.tcsr-it:hover .tcsr-go,.tcsr-it.is-f .tcsr-go{opacity:1;transform:none}

/* ── Colonne latérale : pages utiles, populaires, exploration, conversion ── */
.tcsr-side{display:flex;flex-direction:column;gap:2px}
.tcsr-pops{display:flex;flex-wrap:wrap;gap:6px}
.tcsr-pops button{border:1px solid var(--tcsr-line);background:#fff;color:var(--tcsr-ink);border-radius:999px;padding:6px 12px;font-size:13.5px;cursor:pointer}
.tcsr-pops button:hover{border-color:var(--tcsr-acc);color:var(--tcsr-acc)}
.tcsr-hubs{display:flex;flex-wrap:wrap;gap:6px}
.tcsr-hubs a{background:var(--tcsr-soft);color:var(--tcsr-ink)!important;text-decoration:none!important;border-radius:8px;padding:6px 11px;font-size:13.5px;font-weight:600}
.tcsr-hubs a:hover{background:var(--tcsr-soft2)}
.tcsr-links{display:flex;flex-direction:column;gap:6px}
.tcsr-links a{display:flex;flex-direction:column;background:var(--tcsr-soft);border-radius:10px;padding:9px 12px;color:var(--tcsr-ink)!important;text-decoration:none!important;font-weight:650;font-size:14.5px}
.tcsr-links a span{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--tcsr-mut);font-weight:700}
.tcsr-links a:hover{background:var(--tcsr-soft2)}
.tcsr-plan{display:flex;flex-direction:column;gap:4px;margin-top:16px;padding:14px 16px;border-radius:14px;background:var(--tcsr-ink);color:#f3ead6!important;text-decoration:none!important;border:1px solid var(--tcsr-gold)}
.tcsr-plan strong{font-size:16px;color:#E3BB6C}
.tcsr-plan span{font-size:13px;opacity:.92}
.tcsr-plan:hover{filter:brightness(1.15)}
.tcsr-foot{flex:none;border-top:1px solid var(--tcsr-line);padding:10px 16px;text-align:right}
.tcsr-foot:empty{display:none}
.tcsr-all{font-weight:700;color:var(--tcsr-acc)!important;text-decoration:none!important}
.tcsr-all:hover{text-decoration:underline!important}

/* ── Mobile : plein écran ── */
@media (max-width:899px){
  .tcsr-body{grid-template-columns:1fr;gap:6px}
  .tcsr-list--picks{grid-template-columns:1fr}
}
@media (max-width:767px){
  .tcsr-panel{left:0;top:0;transform:none;width:100vw;max-height:none;height:100dvh;border-radius:0}
  .tcsr-top{padding:10px 12px 8px}
  .tcsr-form{height:48px}
  .tcsr-it{grid-template-columns:64px minmax(0,1fr);gap:12px}
  .tcsr-th{width:64px;height:64px}
  .tcsr-go{display:none}
  .tcsr-close{font-size:0;width:34px;height:34px;padding:0;position:relative;text-decoration:none}
  .tcsr-close::before{content:"×";font-size:28px;color:var(--tcsr-ink);position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
  .tcsr-body{padding:10px 12px 90px}
  .tcsr-foot{position:sticky;bottom:0;background:#fffdf8;text-align:center}
}
@media (prefers-reduced-motion:reduce){.tcsr-go,.tcsr-main.is-loading,.tcsr-bar-btn{transition:none}}

/* ── Page de résultats /?s= ── */
.tcsr-page{padding:28px 0 60px}
.tcsr-pg{max-width:1180px;margin:0 auto;padding:0 20px}
.tcsr-pg-h{font-size:clamp(24px,3.2vw,34px);margin:0 0 10px}
.tcsr-pg .tcsr-chips{margin-bottom:8px}
.tcsr-pg .tcsr-tabs{padding:6px 0 14px;flex-wrap:wrap}
.tcsr-useful{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 18px}
.tcsr-useful b{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--tcsr-mut);margin-right:4px}
.tcsr-useful a{background:var(--tcsr-soft);border-radius:999px;padding:6px 13px;font-size:14px;font-weight:600;color:var(--tcsr-ink);text-decoration:none}
.tcsr-useful a:hover{background:var(--tcsr-soft2)}
.tcsr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.tcsr-grid .tcsr-it{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border:1px solid var(--tcsr-line);border-radius:14px;overflow:hidden;background:#fff}
.tcsr-grid .tcsr-it:hover{box-shadow:0 8px 24px rgba(0,0,0,.12);border-color:var(--tcsr-line)}
.tcsr-grid .tcsr-th{width:100%;height:auto;aspect-ratio:16/10;border-radius:0}
.tcsr-grid .tcsr-tx{padding:12px 14px 6px;gap:4px}
.tcsr-grid .tcsr-go{opacity:1;transform:none;padding:0 14px 14px}
.tcsr-planbar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin:28px 0 0;padding:16px 20px;border-radius:14px;background:var(--tcsr-soft)}
.tcsr-cta{display:inline-block;background:var(--tcsr-acc);color:var(--tcsr-acc-ink)!important;border-radius:999px;padding:10px 20px;font-weight:700;text-decoration:none!important}
.tcsr-cta:hover{filter:brightness(1.1)}
