/* Thème ECO CSE : base commune (couleurs, typographie, en-tête, pied de page, contenu). */
:root {
  --eco-g: #3DAA35; --eco-g-dark: #2E7D32; --eco-g-pale: #EEF7EC; --eco-g-line: #b9dfb4;
  --eco-ink: #14213D; --eco-muted: #4a5568; --eco-bg: #F6F8F5; --eco-card: #fff; --eco-line: #e3e8e1;
  --eco-r: 16px; --eco-shadow: 0 4px 20px rgba(20, 33, 61, .06);
  --eco-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eco-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eco-max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--eco-bg); color: var(--eco-ink); font: 400 16px/1.6 var(--eco-body); display: flex; flex-direction: column; min-height: 100vh; }
body > .eco-main, body > main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--eco-g-dark); }
h1, h2, h3, h4 { font-family: var(--eco-head); color: var(--eco-ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 800; }
:focus-visible { outline: 3px solid var(--eco-g); outline-offset: 2px; border-radius: 4px; }
.eco-container { max-width: var(--eco-max); margin: 0 auto; padding: 0 16px; }
.eco-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.eco-skip:focus { left: 8px; }

/* Boutons */
.ecs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font: 700 16px/1.2 var(--eco-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.ecs-btn-sm { padding: 9px 16px; font-size: 15px; }
.ecs-btn-primary { background: var(--eco-g); color: #fff; }
.ecs-btn-primary:hover { background: var(--eco-g-dark); color: #fff; }
.ecs-btn-outline { background: var(--eco-g-pale); border-color: var(--eco-g); color: var(--eco-g-dark); }
.ecs-btn-outline:hover { background: #dff0dc; }

/* En-tête */
.eco-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--eco-line); }
.admin-bar .eco-header { top: 32px; }
.eco-header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.eco-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--eco-ink); flex: none; }
.eco-brand img { width: 52px; height: 52px; object-fit: contain; }
.eco-brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.eco-brand-txt strong { font: 800 22px/1 var(--eco-head); color: var(--eco-g-dark); }
.eco-brand-txt small { font-size: 12px; color: var(--eco-muted); margin-top: 3px; }
.eco-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.eco-menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.eco-menu li { position: relative; }
.eco-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--eco-ink); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.eco-menu a:hover { background: var(--eco-g-pale); color: var(--eco-g-dark); }
.eco-menu .current-menu-item > a, .eco-menu .current-menu-ancestor > a, .eco-menu .current_page_item > a { background: var(--eco-g-pale); color: var(--eco-g-dark); font-weight: 700; }
.eco-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.eco-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--eco-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,33,61,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.eco-menu li:hover > .sub-menu, .eco-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.eco-menu-logout > a { color: var(--eco-muted); }
.eco-account { display: flex; align-items: center; }
.eco-member { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--eco-ink); font-weight: 600; font-size: 15px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--eco-line); background: #fff; white-space: nowrap; max-width: 230px; }
.eco-member > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.eco-avatar { flex: none; }
.eco-member:hover { border-color: var(--eco-g); }
.eco-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--eco-g); color: #fff; display: grid; place-items: center; font: 800 13px/1 var(--eco-head); }
.eco-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; padding: 11px 10px; }
.eco-burger span { display: block; height: 2px; margin: 5px 0; background: var(--eco-ink); border-radius: 2px; transition: .2s; }
.eco-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eco-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.eco-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Contenu standard */
.eco-main { padding: 0 0 56px; }
.eco-pagehead { background: linear-gradient(135deg, var(--eco-g-pale), #fff); border-bottom: 1px solid var(--eco-line); padding: 40px 0 28px; margin-bottom: 32px; }
.eco-pagehead h1 { margin: 0; }
.eco-prose > * { max-width: 820px; }
.eco-prose > * + * { margin-top: 1em; }
.eco-prose p, .eco-prose li { color: #26324d; }
.eco-prose img { border-radius: 12px; }
.eco-entry + .eco-entry { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--eco-line); }

/* 404 */
.eco-404 { text-align: center; padding: 64px 0; }
.eco-404-code { font: 800 120px/1 var(--eco-head); color: var(--eco-g); margin: 0 0 12px; }
.eco-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Pied de page */
.eco-footer { background: radial-gradient(circle at 90% 0%, rgba(143,217,135,.25) 0, transparent 45%), linear-gradient(135deg, #1f5e25, var(--eco-g-dark) 55%, #3a9a33); color: #e3f3e0; margin-top: auto; }
.eco-footer a { color: #fff; text-decoration: none; }
.eco-footer a:hover { text-decoration: underline; }
.eco-footer h2 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.eco-footer p { margin: 0 0 8px; }
.eco-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.eco-footer-brand img { width: 72px; height: 72px; border-radius: 14px; background: #fff; padding: 4px; margin-bottom: 12px; }
.eco-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eco-footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; padding-bottom: 22px; font-size: 13px; color: #cfe8cb; }

/* Mobile */
@media (max-width: 960px) {
  .eco-burger { display: block; }
  .eco-brand-txt small { display: none; }
  .eco-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; background: #fff; border-bottom: 1px solid var(--eco-line); box-shadow: 0 16px 32px rgba(20,33,61,.12); max-height: calc(100vh - 72px); overflow-y: auto; display: none; }
  .admin-bar .eco-nav { inset: 118px 0 auto 0; }
  .eco-nav.is-open { display: flex; }
  .eco-menu { flex-direction: column; align-items: stretch; }
  .eco-menu a { padding: 12px; font-size: 16px; }
  .eco-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .eco-menu .menu-item-has-children > a::after { display: none; }
  .eco-account { border-top: 1px solid var(--eco-line); padding-top: 12px; }
  .eco-account .ecs-btn { width: 100%; }
  .eco-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 782px) { .admin-bar .eco-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Espace CSE (Mes avantages) ===== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.esp-hero { background: radial-gradient(circle at 90% 10%, rgba(143,217,135,.45) 0, transparent 40%), linear-gradient(135deg, var(--eco-g-dark), var(--eco-g)); color: #fff; padding: 40px 0 72px; }
.esp-hero-in { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.eco-espace .esp-hero h1 { color: #fff; margin: 4px 0 8px; font: 800 clamp(30px, 5vw, 46px)/1.1 var(--eco-head); }
.esp-kicker { margin: 0; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.esp-lead { margin: 0 0 16px; font-size: 17px; max-width: 560px; color: #eaf6e8; }
.esp-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.esp-perks li { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.esp-perks li::before { content: "✓"; margin-right: 6px; }
.esp-card-member { display: flex; align-items: center; gap: 14px; width: 300px; max-width: 100%; aspect-ratio: 1.6; padding: 22px; border-radius: 20px; background: linear-gradient(145deg, #fff, #eef7ec); color: var(--eco-ink); box-shadow: 0 18px 40px rgba(0,0,0,.18); transform: rotate(-3deg); }
.esp-card-member img { width: 54px; height: 54px; border-radius: 12px; }
.esp-card-member span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--eco-g-dark); font-weight: 700; }
.esp-card-member strong { display: block; font: 800 22px/1.15 var(--eco-head); }
.esp-card-member small { color: var(--eco-muted); }

.esp-tools { position: relative; margin-top: -40px; background: #fff; border-radius: 20px; box-shadow: var(--eco-shadow); padding: 18px; display: grid; gap: 14px; }
.esp-search { display: flex; align-items: center; gap: 10px; background: var(--eco-bg); border: 1px solid var(--eco-line); border-radius: 14px; padding: 0 14px; }
.esp-search:focus-within { border-color: var(--eco-g); box-shadow: 0 0 0 3px rgba(61,170,53,.15); }
.esp-search svg { width: 20px; height: 20px; fill: none; stroke: var(--eco-muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.esp-search input { flex: 1; border: 0; background: transparent; font: 16px var(--eco-body); padding: 14px 0; color: var(--eco-ink); outline: none; min-width: 0; }
.esp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.esp-chip { flex: none; border: 1px solid var(--eco-line); background: #fff; color: var(--eco-ink); border-radius: 999px; padding: 8px 14px; font: 600 14px var(--eco-body); cursor: pointer; white-space: nowrap; }
.esp-chip span { color: var(--eco-muted); font-weight: 500; margin-left: 4px; }
.esp-chip:hover { border-color: var(--eco-g); }
.esp-chip.is-active { background: var(--eco-g); border-color: var(--eco-g); color: #fff; }
.esp-chip.is-active span { color: #e3f5e0; }
.esp-count { margin: 22px 0 12px; color: var(--eco-muted); font-weight: 600; }

.esp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.esp-item, .esp-tools, .esp-chips { min-width: 0; }
.esp-item { position: relative; background: #fff; border-radius: 18px; box-shadow: var(--eco-shadow); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.esp-item:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20,33,61,.12); }
.esp-item[hidden] { display: none; }
.esp-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.esp-photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--eco-g-pale); }
.esp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.esp-photo.is-empty { background: radial-gradient(circle at 80% 20%, #c9ecc4 0, transparent 50%), linear-gradient(135deg, var(--eco-g-pale), #dff0dc); }
.esp-badge { position: absolute; top: 12px; right: 12px; background: var(--eco-g); color: #fff; font: 800 15px/1 var(--eco-head); padding: 7px 11px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.esp-logo { width: 64px; height: 64px; margin: -32px 0 0 16px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(20,33,61,.12); display: grid; place-items: center; overflow: hidden; position: relative; font: 800 18px var(--eco-head); color: var(--eco-g-dark); }
.esp-logo img { width: 100%; height: 100%; object-fit: cover; }
.esp-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 0; flex: 1; }
.esp-body strong { font: 800 18px/1.25 var(--eco-head); }
.esp-body small { color: var(--eco-muted); font-size: 14px; }
.esp-body em { font-style: normal; color: var(--eco-g-dark); font-weight: 600; font-size: 14px; }
.esp-cta { margin: 14px 16px 16px; padding: 10px; border-radius: 12px; background: var(--eco-g-pale); color: var(--eco-g-dark); font-weight: 700; text-align: center; }
.esp-item:hover .esp-cta { background: var(--eco-g); color: #fff; }
.esp-coupon { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: var(--eco-ink); text-decoration: none; font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.esp-coupon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.esp-coupon:hover { background: #fff; color: var(--eco-g-dark); }
.esp-empty { background: #fff; border-radius: 16px; padding: 28px; text-align: center; color: var(--eco-muted); }
.esp-help { margin-top: 28px; color: var(--eco-muted); font-size: 14px; text-align: center; }
@media (max-width: 700px) {
  .esp-hero { padding: 28px 0 64px; }
  .esp-card-member { display: none; }
  .esp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .esp-logo { width: 48px; height: 48px; margin: -24px 0 0 12px; }
  .esp-body { padding: 8px 12px 0; }
  .esp-body strong { font-size: 15px; }
  .esp-cta { margin: 10px 12px 12px; padding: 8px; font-size: 14px; }
  .esp-coupon { font-size: 0; padding: 7px; gap: 0; }
}
@media (max-width: 380px) { .esp-grid { grid-template-columns: minmax(0, 1fr); } }
body { overflow-x: clip; }

/* ===== Effets légers ===== */
/* En-tête : ombre douce dès qu'on fait défiler */
.eco-header { transition: box-shadow .25s ease, background-color .25s ease; }
.eco-header.is-scrolled { box-shadow: 0 6px 24px rgba(20, 33, 61, .08); background: rgba(255,255,255,.97); }

/* Haut de page : apparition en CSS pur au chargement (se termine toujours visible, même sans script) */
@keyframes ecoMonte { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes ecoFondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes ecoCarte { from { opacity: 0; translate: 0 24px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
.hm-hero-txt > *, .eco-pagehead .eco-container > *, .vt-head > div > *, .esp-hero-in > div > *, .lg-box, .ecf-crumbs, .ecf-offer {
  animation: ecoMonte .6s cubic-bezier(.2, .7, .2, 1) both; }
.hm-hero-txt > :nth-child(2), .eco-pagehead .eco-container > :nth-child(2), .vt-head > div > :nth-child(2), .esp-hero-in > div > :nth-child(2) { animation-delay: .08s; }
.hm-hero-txt > :nth-child(3), .eco-pagehead .eco-container > :nth-child(3), .vt-head > div > :nth-child(3), .esp-hero-in > div > :nth-child(3) { animation-delay: .16s; }
.hm-hero-txt > :nth-child(4), .esp-hero-in > div > :nth-child(4) { animation-delay: .24s; }
.hm-visual, .esp-card-member, .lg-card { animation: ecoCarte .8s cubic-bezier(.2, .7, .2, 1) .15s both; }
.hm-bubble { animation: ecoFondu .5s ease both; }
.hm-b1 { animation-delay: .55s; } .hm-b2 { animation-delay: .7s; } .hm-b3 { animation-delay: .85s; }
.ecf-hero, .esp-tools, .vt-stats > div { animation: ecoFondu .7s ease .1s both; }
.ecf-offer { animation-delay: .15s; }

/* Au défilement : fondu + légère montée, en cascade (script theme.js) */
.eco-reveal-on [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .6s ease var(--eco-delai, 0ms), translate .6s cubic-bezier(.2, .7, .2, 1) var(--eco-delai, 0ms), transform .15s, box-shadow .15s; }
.eco-reveal-on [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Boutons : réaction douce au survol */
.ecs-btn { transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.ecs-btn:hover { transform: translateY(-1px); }
.ecs-btn-primary:hover { box-shadow: 0 8px 18px rgba(61, 170, 53, .28); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .eco-reveal-on [data-reveal] { opacity: 1; translate: none; }
  .ecs-btn:hover { transform: none; }
}

/* Plus Jakarta Sans : grands titres légèrement resserrés */
h1, .hm-hero h1, .eco-pagehead h1, .esp-hero h1 { letter-spacing: -0.015em; }

/* ===== Bandes de logos en défilement continu ===== */
.eco-defile { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.eco-defile-piste { display: flex !important; flex-wrap: nowrap !important; width: max-content; gap: 0 !important; animation: ecoDefile var(--eco-duree, 40s) linear infinite; }
.eco-defile:hover .eco-defile-piste { animation-play-state: paused; }
.eco-defile-piste > li { flex: none; margin: 0 !important; }
.hm-defile.eco-defile-piste > li { padding: 0 28px; }
.vt-defile.eco-defile-piste { padding: 8px 0 14px; }
.vt-defile.eco-defile-piste > li { width: 180px; margin-right: 16px !important; }
@keyframes ecoDefile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .eco-defile-piste { animation: none; flex-wrap: wrap !important; width: auto; } }

/* ===== Espace CSE : Autour de moi + carte ===== */
.esp-geo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; border-top: 1px solid var(--eco-line); padding-top: 14px; }
.esp-geo-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--eco-line); background: #fff; color: var(--eco-ink); border-radius: 999px; padding: 9px 16px; font: 600 15px var(--eco-body); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.esp-geo-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.esp-geo-btn:hover { border-color: var(--eco-g); color: var(--eco-g-dark); }
.esp-geo-btn.is-main { background: var(--eco-g); border-color: var(--eco-g); color: #fff; }
.esp-geo-btn.is-main:hover { background: var(--eco-g-dark); color: #fff; }
.esp-geo-btn.is-on { background: var(--eco-g-pale); border-color: var(--eco-g); color: var(--eco-g-dark); }
.esp-geo-btn:disabled { opacity: .6; cursor: progress; }
.esp-geo-info { color: var(--eco-muted); font-size: 14px; flex: 1 1 260px; }
.esp-geo-info strong { color: var(--eco-ink); }
.esp-carte { margin-top: 18px; height: 420px; border-radius: 20px; overflow: hidden; box-shadow: var(--eco-shadow); background: var(--eco-g-pale); z-index: 0; position: relative; }
.esp-carte .leaflet-container, .esp-carte.leaflet-container { font-family: var(--eco-body); }
.esp-carte .leaflet-popup-content { margin: 12px 14px; line-height: 1.45; }
.esp-carte .leaflet-popup-content a { color: var(--eco-g-dark); font-weight: 700; }
.esp-carte-err { padding: 24px; text-align: center; color: var(--eco-muted); }
.esp-pin span { display: block; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--eco-g); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 5px 12px rgba(46,125,50,.4); position: relative; }
.esp-pin span::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.esp-dist { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--eco-g-dark); background: var(--eco-g-pale); border-radius: 999px; padding: 3px 10px; align-self: flex-start; }
.esp-dist[hidden] { display: none; }
@media (max-width: 700px) {
  .esp-carte { height: 340px; }
  .esp-geo-btn { flex: 1 1 auto; justify-content: center; }
}

/* ===== UX : annuaire — outils collants, bandeau compact sur mobile ===== */
.esp-tools { position: sticky; top: 80px; z-index: 30; transition: padding .2s ease, box-shadow .2s ease, border-radius .2s ease; }
.admin-bar .esp-tools { top: 112px; }
.esp-repere { height: 1px; }
.esp-tools.is-colle { padding: 10px 12px; border-radius: 16px; box-shadow: 0 12px 30px rgba(20,33,61,.14); gap: 8px; }
.esp-tools.is-colle .esp-search input { padding: 10px 0; }
.esp-tools.is-colle .esp-geo { display: none; }
.esp-tools.is-colle .esp-chip { padding-top: 6px; padding-bottom: 6px; min-height: 38px; }
@media (max-width: 700px) {
  .esp-hero { padding: 22px 0 56px; }
  .esp-hero .esp-lead { font-size: 15px; margin-bottom: 0; }
  .esp-perks { display: none; }
  .esp-tools { top: 76px; }
  .admin-bar .esp-tools { top: 122px; }
}

/* ===== UX : cibles tactiles d'au moins 44 px, focus visible ===== */
.esp-chip { min-height: 44px; }
.esp-coupon { min-height: 40px; min-width: 40px; justify-content: center; }
.eco-footer-links a, .eco-footer p a { display: inline-block; padding: 10px 0; }
.eco-footer-links { gap: 0; }
.hm-faq summary { min-height: 56px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--eco-g); outline-offset: 3px; }

/* ===== Favoris (cœur) ===== */
.eco-fav { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(20,33,61,.12); background: rgba(255,255,255,.96); color: #8a94a6; cursor: pointer; box-shadow: 0 4px 12px rgba(20,33,61,.12); transition: color .15s, background .15s, transform .15s; padding: 0; }
.eco-fav svg { width: 22px !important; height: 22px !important; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.eco-fav:hover { color: #e0245e; }
.eco-fav.is-on { color: #e0245e; background: #fff0f4; border-color: #f7c6d4; }
.eco-fav.is-on svg { fill: currentColor; }
.eco-fav.is-pop { animation: ecoFavPop .35s cubic-bezier(.2,.7,.2,1.4); }
@keyframes ecoFavPop { 50% { transform: scale(1.25); } }
.eco-fav-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #14213D; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
.eco-fav-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .eco-fav.is-pop { animation: none; } }

.esp-item .esp-fav { position: absolute; top: 10px; right: 10px; z-index: 2; }
.esp-badge { top: auto !important; bottom: 10px; right: 10px; }
.esp-chip-fav { display: inline-flex; align-items: center; gap: 6px; }
.esp-chip-fav svg { width: 16px; height: 16px; fill: none; stroke: #e0245e; stroke-width: 2.2; }
.esp-chip-fav.is-active svg { stroke: #fff; fill: #fff; }

/* Lien vers l'application depuis l'espace CSE */
.esp-app { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 12px; border-radius: 16px; background: #fff; border: 1.5px solid var(--eco-g-line); color: var(--eco-ink); text-decoration: none; box-shadow: var(--eco-shadow); transition: border-color .15s, transform .15s; }
.esp-app:hover { border-color: var(--eco-g); transform: translateY(-1px); }
.esp-app svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--eco-g-pale); fill: none; stroke: var(--eco-g-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; box-sizing: border-box; }
.esp-app span { display: grid; line-height: 1.3; }
.esp-app small { color: var(--eco-muted); font-size: 14px; }
