/* ═══════════════════════════════════════════════════
   MIDSPOT — Styles catégories & landing (styles_cat.css)
   À charger après styles.css
   ═══════════════════════════════════════════════════ */

/* ── Landing overlay ────────────────────────────────────────────────────────── */

.landing-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;   /* les enfants prennent toute la largeur */
  padding: 0;             /* le padding est géré par les sections internes */
  overflow: hidden;       /* la zone de scroll est dans .lp-scroll */
  background-image: radial-gradient(circle at 1px 1px, rgba(61, 122, 87, 0.14) 1px, transparent 0);
  background-size: 20px 20px;
  transition: opacity .35s ease, transform .35s ease;
}

.landing-overlay.leaving {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

/* Bottom sheet ouvert : évite de clipper le panneau position:fixed (enfant direct de #landing sur mobile) */
@media (max-width: 768px) {
  .landing-overlay.landing--lsw-sheet {
    overflow: visible;
    isolation: isolate;
  }
}

/* ── Header landing : scroll → barre réduite (variable 0…1, style Airbnb) ─── */
#landing {
  --lp-header-collapse: 0;
}

.landing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 700px;
  padding-bottom: 2rem;
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */

.landing-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.landing-logo {
  display: inline-flex;
  align-items: baseline;
  gap: .2rem;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -.06em;
  color: var(--g-dark);
  line-height: 1;
}

.landing-logo-sup {
  font-size: .5rem;
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: super;
}

.landing-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  font-weight: 900;
  color: var(--txt);
  letter-spacing: -.04em;
  line-height: 1.1;
  max-width: 560px;
}

.landing-desc {
  font-size: .95rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
  max-width: 420px;
}

.landing-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  margin-top: .5rem;
}

.landing-hero-badge {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: .4rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ── Cartes catégories ──────────────────────────────────────────────────────── */

.cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

.cat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity .18s ease;
}

.cat-food::before { background: var(--g-dark); }
.cat-sport::before { background: var(--coral); }
.cat-culture::before { background: var(--violet); }

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(27,43,32,.10);
}

.cat-card:hover::before { opacity: 1; }
.cat-food:hover { border-color: var(--g-mid); }
.cat-sport:hover { border-color: rgba(212,105,78,.35); }
.cat-culture:hover { border-color: rgba(123,111,168,.35); }

.cat-card:focus-visible {
  outline: 2px solid var(--g-dark);
  outline-offset: 2px;
}

.cat-card:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27,43,32,.08);
}

.cat-emoji {
  font-size: 2.25rem;
  line-height: 1;
}

.cat-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.2;
}

.cat-sub {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.landing-hint {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 400;
  text-align: center;
}

/* ── Bannière verte landing (carrousel) ─────────────────────────────────────── */
.landing-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, var(--g-dark) 0%, var(--g-deeper) 100%);
  border-radius: 20px;
  padding: 2rem 2.2rem;
  position: relative;
  overflow: hidden;
  margin-top: .5rem;
}
.landing-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.landing-banner::after { content: none; }

/* Carrousel dans la bannière */
.landing-banner-carousel {
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
}
.landing-banner-intro {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(245,240,232,.85);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 0;
  text-align: center;
}
.banner-slides {
  position: relative;
  min-height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-slide {
  display: none;
  justify-content: center;
}
.banner-slide.active {
  display: flex;
  animation: bannerSlideIn .45s ease;
}
@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.banner-slide-txt {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.4;
  text-align: center;
  max-width: 600px;
}
.banner-dots {
  display: flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
}
.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245,240,232,.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .25s, border-radius .25s;
  flex-shrink: 0;
}
.banner-dot.active {
  width: 20px;
  border-radius: 4px;
  background: rgba(245,240,232,.88);
}

.landing-banner-stats {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(245,240,232,.12);
  border-radius: 10px;
  padding: .55rem .9rem;
  min-width: 60px;
}
.landing-stat-n {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--cream);
  line-height: 1;
}
.landing-stat-l {
  font-size: .6rem;
  color: rgba(245,240,232,.5);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: .15rem;
}

/* Mobile : carrousel centré pleine largeur */
@media (max-width: 600px) {
  .landing-banner {
    padding: 1.75rem 1.5rem;
  }
  .banner-slide-txt { font-size: 1rem; }
}

/* ── Badge catégorie dans la sidebar ────────────────────────────────────────── */

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .22rem .65rem;
  border-radius: 99px;
  margin-top: .45rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity .15s;
}

.cat-badge--food {
  background: var(--g-light);
  color: var(--g-dark);
  border-color: var(--g-mid);
}

.cat-badge--sport {
  background: rgba(212,105,78,.08);
  color: #b5442c;
  border-color: rgba(212,105,78,.3);
}

.cat-badge--culture {
  background: rgba(123,111,168,.09);
  color: #5c4ea0;
  border-color: rgba(123,111,168,.3);
}

.cat-badge-change {
  margin-left: .3rem;
  opacity: .55;
  font-size: .65rem;
}

/* ── Sélecteur de période (culture) ───────────────────────────────────────── */

.period-btns {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.period-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: .35rem .85rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--txt);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.3;
}

.period-btn:hover {
  border-color: rgba(123, 111, 168, .35);
}

.period-btn.sel {
  background: rgba(123, 111, 168, .11);
  border-color: rgba(123, 111, 168, .4);
  color: #5c4ea0;
  font-weight: 600;
}

/* ── Événement : date + ending badge (carousel cards) ─────────────────────── */

.sc-event-meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: .15rem;
}

.sc-event-date {
  font-size: .7rem;
  font-weight: 600;
  color: #5c4ea0;
  background: rgba(123, 111, 168, .09);
  padding: .12rem .5rem;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

.sc-ending-badge {
  font-size: .66rem;
  font-weight: 700;
  color: #c44;
  background: rgba(204, 68, 68, .08);
  padding: .1rem .45rem;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
  animation: ending-pulse 2.5s ease-in-out infinite;
}

@keyframes ending-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/* ── Badge temporaire / permanent (culture) ───────────────────────────────── */

.sc-temporality {
  font-size: .62rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.sc-temporality--temp {
  color: #9a5c00;
  background: rgba(200, 155, 20, .12);
}

.sc-temporality--perm {
  color: #4a6fa0;
  background: rgba(90, 127, 166, .1);
}

.sc-venue {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .1rem;
  line-height: 1.3;
}

.sc-ticket-link {
  color: #5c4ea0 !important;
  font-weight: 600 !important;
}

/* ── Sélecteur de niveau (sport) ──────────────────────────────────────────── */

.level-btns {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.level-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: .3rem .75rem;
  font-size: .76rem;
  font-weight: 500;
  color: var(--txt);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.3;
}

.level-btn:hover {
  border-color: rgba(212, 105, 78, .35);
}

.level-btn.sel {
  background: rgba(212, 105, 78, .1);
  border-color: rgba(212, 105, 78, .4);
  color: #b5442c;
  font-weight: 600;
}

/* ── Section Use Cases ───────────────────────────────────────────────────────── */

.landing-usecases {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 2px 24px rgba(27,43,32,.07);
  width: 100%;
}

.landing-section-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.5rem;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.usecase-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.usecase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--g-mid);
}

.usecase-emoji {
  font-size: 2rem;
  line-height: 1;
}

.usecase-title {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.usecase-desc {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Section Tarifs ─────────────────────────────────────────────────────────── */

.landing-pricing {
  background: var(--cream);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  width: 100%;
  border: 1.5px solid var(--border);
}
.landing-pricing .pricing-card {
  background: var(--surface);
  border-color: var(--border);
}
.landing-pricing .pricing-card--featured {
  border: 2px solid var(--g-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  transition: box-shadow .2s;
}

.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(27,43,32,.1);
}

.pricing-card--featured {
  border: 2px solid var(--g-dark);
}

.pricing-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--g-dark);
  color: var(--cream);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .8rem;
  border-radius: 99px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-emoji {
  font-size: 2rem;
  line-height: 1;
}

.pricing-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ink);
}

.pricing-price {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--g-dark);
  line-height: 1.1;
}

.pricing-price-sub {
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--ff-body);
}

.pricing-duration {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  font-size: .88rem;
}

.pricing-features li::before {
  content: '✓ ';
  color: var(--g-dark);
  font-weight: 700;
}

.pricing-feature--dim {
  color: var(--muted);
}

.pricing-feature--dim::before {
  content: '– ';
  color: var(--muted);
  font-weight: 400;
}

.pricing-cta {
  margin-top: auto;
}

.pricing-btn {
  width: 100%;
  padding: .85rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--g-dark);
  color: var(--cream);
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.pricing-btn:hover {
  background: var(--g-deeper);
  transform: translateY(-1px);
}

.pricing-btn--coral {
  background: var(--coral);
}

.pricing-btn--coral:hover {
  background: #b8432a;
}

.pricing-btn--secondary {
  background: var(--surface);
  color: var(--muted);
  border: 1.5px solid var(--border);
  cursor: default;
}

.pricing-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.pricing-tva-note {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer Landing ─────────────────────────────────────────────────────────── */

.landing-footer {
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.landing-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}

.landing-footer-nav a {
  font-size: .75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.landing-footer-nav a:hover {
  color: var(--g-dark);
}

.landing-footer-nav span {
  color: var(--border);
  font-size: .75rem;
}

.landing-footer-copy {
  font-size: .7rem;
  color: var(--muted);
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
  }

  .pricing-card {
    padding: 1.1rem .55rem .8rem;
    gap: .3rem;
    border-radius: 14px;
  }

  .pricing-badge-top {
    font-size: .5rem;
    padding: .12rem .45rem;
    top: -9px;
    letter-spacing: .04em;
  }

  .pricing-emoji {
    font-size: 1.15rem;
  }

  .pricing-name {
    font-size: .76rem;
  }

  .pricing-price {
    font-size: 1.15rem;
    line-height: 1.15;
  }

  .pricing-price-sub {
    font-size: .54rem;
    display: block;
    margin-top: 1px;
  }

  .pricing-duration {
    font-size: .56rem;
    line-height: 1.3;
  }

  .pricing-divider {
    display: none;
  }

  .pricing-features {
    display: none;
  }

  .pricing-btn {
    padding: .5rem .2rem;
    font-size: .6rem;
    border-radius: 8px;
    line-height: 1.25;
  }

  .pricing-tva-note {
    font-size: .7rem;
    margin-top: 1.25rem;
  }

  .landing-section-title {
    font-size: 1.2rem;
  }

  .landing-footer {
    padding: 1rem .75rem;
    margin-top: 1rem;
  }

  .landing-footer-nav {
    margin-bottom: .5rem;
    gap: .35rem;
  }

  .landing-footer-nav a {
    font-size: .7rem;
  }

  .landing-footer-copy {
    font-size: .65rem;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Weather badge (sport, carousel cards) ────────────────────────────────── */

.sc-weather-badge {
  font-size: .62rem;
  font-weight: 600;
  padding: .08rem .4rem;
  border-radius: 5px;
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: .3rem;
}

.sc-weather--good {
  color: #1a7a3a;
  background: rgba(34, 160, 78, .1);
}

.sc-weather--ok {
  color: #9a7000;
  background: rgba(200, 155, 20, .1);
}

.sc-weather--bad {
  color: #c44;
  background: rgba(204, 68, 68, .08);
}

.sc-weather--unknown {
  color: var(--muted);
  background: var(--bg);
}

/* ── Trail info (sport, carousel cards) ───────────────────────────────────── */

.sc-trail-info {
  font-size: .74rem;
  font-weight: 600;
  color: #2d6b3f;
  background: rgba(45, 107, 63, .07);
  padding: .15rem .55rem;
  border-radius: 6px;
  display: inline-block;
  margin-top: .1rem;
  margin-bottom: .1rem;
}

.sc-gpx-link {
  color: #2d6b3f !important;
  font-weight: 600 !important;
}

.sc-komoot-link {
  color: #1a5f8a !important;
  font-weight: 600 !important;
}

/* ── Sélecteur de catégorie (overlay) ──────────────────────────────────────── */

.cat-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 35, 28, 0.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cat-picker-overlay.visible {
  opacity: 1;
}

.cat-picker-popup {
  background: var(--surface);
  background-image: radial-gradient(circle at 1px 1px, rgba(61, 122, 87, 0.10) 1px, transparent 0);
  background-size: 20px 20px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  width: min(340px, 92vw);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.cat-picker-overlay.visible .cat-picker-popup {
  transform: translateY(0) scale(1);
}

.cat-picker-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt);
  text-align: center;
  margin-bottom: .9rem;
  letter-spacing: -0.02em;
}

.cat-picker-items {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.cat-picker-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem .95rem;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(61, 122, 87, 0.07) 1px, transparent 0);
  background-size: 18px 18px;
  cursor: pointer;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cat-picker-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 13px 0 0 13px;
  opacity: 0;
  transition: opacity .18s ease;
}

.cat-picker--food::before { background: var(--g-dark); }
.cat-picker--sport::before { background: var(--coral); }
.cat-picker--culture::before { background: var(--violet); }

.cat-picker-item:hover {
  transform: translateX(4px);
}

.cat-picker-item:hover::before { opacity: 1; }

.cat-picker--food:hover {
  border-color: var(--g-mid);
  background: var(--g-light);
  background-image: radial-gradient(circle at 1px 1px, rgba(61, 122, 87, 0.13) 1px, transparent 0);
  background-size: 18px 18px;
}

.cat-picker--sport:hover {
  border-color: rgba(212, 105, 78, .4);
  background: rgba(212, 105, 78, .05);
  background-image: radial-gradient(circle at 1px 1px, rgba(212, 105, 78, 0.1) 1px, transparent 0);
  background-size: 18px 18px;
}

.cat-picker--culture:hover {
  border-color: rgba(123, 111, 168, .4);
  background: rgba(123, 111, 168, .06);
  background-image: radial-gradient(circle at 1px 1px, rgba(123, 111, 168, 0.1) 1px, transparent 0);
  background-size: 18px 18px;
}

.cat-picker-em {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.cat-picker-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.25;
}

.cat-picker-sub {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Responsive mobile ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .landing-inner {
    gap: 2rem;
  }

  .landing-title {
    font-size: 1.7rem;
  }

  .cat-cards {
    grid-template-columns: 1fr;
    gap: .75rem;
    max-width: 360px;
  }

  .cat-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 1.1rem 1.25rem;
    gap: 1rem;
    border-radius: 14px;
  }

  .cat-card::before {
    top: 0; left: 0; bottom: 0; right: auto;
    width: 3px;
    height: auto;
    border-radius: 14px 0 0 14px;
  }

  .cat-emoji {
    font-size: 1.75rem;
    flex-shrink: 0;
  }

  .cat-name {
    font-size: .9rem;
  }

  .landing-hint {
    font-size: .75rem;
  }
}

/* ── Tablet intermédiaire ───────────────────────────────────────────────────── */

@media (min-width: 769px) and (max-width: 960px) {
  .cat-cards {
    gap: .75rem;
  }

  .cat-card {
    padding: 1.25rem .85rem;
  }

  .cat-emoji {
    font-size: 1.85rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   NOUVELLE LANDING — lp-* (header adaptatif + tabbar + searchbar)
   ═══════════════════════════════════════════════════════════════ */

/* ── Zone de défilement ─────────────────────────────────────────────────────── */

.lp-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  background: #fefcf9;
  background-image: radial-gradient(circle at 1px 1px, rgba(61, 122, 87, 0.10) 1px, transparent 0);
  background-size: 20px 20px;
}

.lp-scroll .landing-inner {
  padding: 1.5rem 1.5rem 2rem;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.lp-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .45rem 1rem;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  padding-top: max(.45rem, env(safe-area-inset-top, 0px) + .3rem);
}

/* Zone centrale : onglets catégorie + Spotter compact (révélé au scroll) */
.lp-header-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.lp-header:not(.lp-header--compact-cta) .lsw-spotter--compact {
  pointer-events: none;
}
.lp-header.lp-header--compact-cta .lsw-spotter--bar {
  pointer-events: none;
}
.lsw-bar-fields {
  display: flex;
  flex: 1;
  align-items: stretch;
  min-width: 0;
  flex-direction: row;
  opacity: calc(1 - var(--lp-header-collapse, 0));
  transform: translateY(calc(var(--lp-header-collapse, 0) * -4px));
  max-height: calc((1 - var(--lp-header-collapse, 0)) * 240px);
  overflow: hidden;
  transition: opacity 0.24s ease, max-height 0.32s ease, transform 0.24s ease;
}
/* Logo */
.lp-logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  text-decoration: none;
}

.lp-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.lp-wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -.05em;
  color: var(--g-dark);
  line-height: 1;
}

/* Slogan caché par défaut (mobile), affiché sur desktop */
.lp-slogan {
  display: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .65rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .01em;
  white-space: nowrap;
  margin-top: .12rem;
}

/* Cats dans le header (desktop) */
.lp-header-cats {
  display: none; /* caché sur mobile */
  align-items: center;
  gap: .35rem;
  margin-left: .5rem;
}

.lp-hcat {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .52rem 1.15rem;
  font-size: .92rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.lp-hcat:hover { box-shadow: 0 2px 10px rgba(61,122,87,.15); }
.lp-hcat--food:hover    { background: rgba(61,122,87,.08);    border-color: var(--g-mid);         color: var(--g-dark); }
.lp-hcat--sport:hover   { background: rgba(200,86,59,.07);    border-color: rgba(212,105,78,.4);  color: var(--coral); }
.lp-hcat--culture:hover { background: rgba(123,111,168,.07);  border-color: rgba(123,111,168,.4); color: var(--violet); }

/* Bouton compte header : affiché ≥769px ; ≤768px → tab bar uniquement */
.lp-header-right {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
}

.lp-account-btn {
  border: none;
  background: none;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  padding: .3rem .5rem;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s;
  flex-shrink: 0;
}
.lp-account-btn:hover { color: var(--g-dark); }

.lp-account-lbl {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .62rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Fake searchbar (2 variantes) ──────────────────────────────────────────── */

.lp-searchbar {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.lp-searchbar:hover,
.lp-searchbar:focus-visible {
  border-color: var(--g-mid);
  box-shadow: 0 2px 14px rgba(61,122,87,.12);
}

.lp-sb-icon { color: var(--muted); flex-shrink: 0; }

.lp-sb-text {
  flex: 1;
  text-align: left;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 400;
}

/* Variante header (mobile) */
.lp-searchbar--header {
  flex: 1;
  min-width: 0;
  padding: .6rem 1rem .6rem 1.1rem;
  box-shadow: 0 2px 14px rgba(61,122,87,.09);
  border-radius: 28px;
}

/* Variante hero (desktop) — caché sur mobile */
.lp-searchbar--hero {
  display: none;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: .65rem .85rem .65rem 1rem;
  box-shadow: 0 4px 24px rgba(61,122,87,.10);
}

.lp-searchbar--hero:hover {
  box-shadow: 0 6px 32px rgba(61,122,87,.16);
}

.lp-sb-cta {
  flex-shrink: 0;
  background: var(--g-dark);
  color: #fff;
  border-radius: 18px;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* ── Pills catégories mobiles ───────────────────────────────────────────────── */

/* Anciennes pills catégorie mobile — retirées du HTML ; garder masqué si réintroduites */
.lp-cats-mobile {
  display: none !important;
}

.lp-ccat {
  flex: 1 1 0;           /* taille égale pour les 3 boutons */
  min-width: 0;
  display: flex;
  flex-direction: column; /* emoji au-dessus, texte en-dessous */
  align-items: center;
  justify-content: center;
  gap: .18rem;
  padding: .55rem .4rem .5rem;
  border-radius: 22px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}
.lp-ccat-em {
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}
.lp-ccat-lbl {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
}
.lp-ccat--food:hover    { background: rgba(61,122,87,.08);    border-color: var(--g-mid);         color: var(--g-dark); }
.lp-ccat--sport:hover   { background: rgba(200,86,59,.07);    border-color: rgba(212,105,78,.4);  color: var(--coral); }
.lp-ccat--culture:hover { background: rgba(123,111,168,.07);  border-color: rgba(123,111,168,.4); color: var(--violet); }
.lp-ccat:active { transform: scale(.96); }

/* ── Tab bar mobile ─────────────────────────────────────────────────────────── */

.lp-tabbar {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  /* safe area bottom (home bar iPhone) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.lp-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  padding: .6rem .5rem .6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--muted);
  transition: color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}

.lp-tab:hover,
.lp-tab:focus-visible { color: var(--g-dark); background: rgba(61,122,87,.05); }

.lp-tab:active { color: var(--g-dark); background: rgba(61,122,87,.1); }

.lp-tab--spot:hover,
.lp-tab--spot:active { color: var(--g-dark); }
.lp-tab--hist:hover,
.lp-tab--hist:active  { color: var(--g-dark); }
.lp-tab--acct:hover,
.lp-tab--acct:active  { color: var(--g-dark); }

.lp-tab-ico { display: block; }

.lp-tab-lbl {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}

/* Highlight special tab Spotter */
.lp-tab--spot {
  position: relative;
}
.lp-tab--spot::after {
  content: '';
  position: absolute;
  top: .45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--g-dark);
  z-index: -1;
  opacity: 0;
  transition: opacity .15s;
}

/* ── DESKTOP overrides ──────────────────────────────────────────────────────── */

@media (min-width: 769px) {
  /*
   * Header desktop : 3 colonnes
   *   Col 1 : branding (centré verticalement)
   *   Col 2 : onglets (row 1) + searchbar (row 2)
   *   Col 3 : connexion (centré verticalement)
   */
  .lp-header-row1 {
    display: contents;
  }
  .lp-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 0.45rem 1.75rem 0.55rem;
    column-gap: 1.5rem;
    row-gap: 0;
    flex-wrap: unset;
  }
  .lp-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: start;
    gap: 0.55rem;
  }
  .lp-logo-img     { width: 48px; height: 48px; }
  .lp-wordmark     { font-size: 1.85rem; color: var(--ink); line-height: 1; }
  .lp-slogan       { display: block; font-size: 0.68rem; margin-top: 0.08rem; }
  .lp-header-mid {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: end;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    min-width: 0;
    width: 100%;
    max-width: min(100%, 920px);
  }
  .lp-header-mid .lsw-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px;
    padding: 0;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
  }
  .lp-header-mid .lsw-tab {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px 8px 0 0;
    line-height: 1.2;
  }
  .lp-header-right {
    display: flex;
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    margin-left: 0;
  }
  .lp-header .lp-search-widget {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    justify-self: center;
  }
  .lp-header .lsw-bar {
    margin-top: calc((1 - var(--lp-header-collapse, 0)) * 2px);
  }
  .lp-searchbar--header { display: none; }
  .lp-tabbar      { display: none; }
  .lp-cats-mobile { display: none; }
  .lp-scroll .landing-inner {
    padding: 2.5rem 2rem 3rem;
    max-width: 1080px;
    margin: 0 auto;
  }
}

/* ── Relief des sections landing ────────────────────────────────────────────── */

/* Badges hero */
.landing-hero-badges {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .25rem;
}
.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  color: var(--g-dark);
  background: rgba(61,122,87,.1);
  border: 1px solid rgba(61,122,87,.2);
  border-radius: 99px;
  padding: .2rem .65rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Mobile : midspot en noir + slogan à côté (header landing) ───────────── */
@media (max-width: 768px) {
  .lp-logo {
    display: flex;
    align-items: center;
  }
  .lp-logo-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    line-height: 1.15;
  }
  .lp-wordmark {
    font-size: 0.95rem;
    color: var(--ink);
    flex-shrink: 0;
  }
  .lp-slogan {
    display: block;
    margin-top: 0;
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--muted);
    white-space: normal;
    max-width: 12rem;
    line-height: 1.2;
  }
  .lp-logo-img { width: 28px !important; height: 28px !important; }
  .lp-searchbar--header .lp-sb-cta {
    padding: .35rem .75rem;
    font-size: .75rem;
  }
}

/* Pricing mobile : prix lisible */
@media (max-width: 768px) {
  .landing-pricing {
    border-radius: 20px;
    padding: 2rem 1rem;
  }
  .landing-usecases {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }
}

/* Pricing mobile : grille en colonne unique sous 480px, compact entre 480-680 */
@media (max-width: 480px) {
  .landing-pricing .pricing-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .landing-pricing .pricing-card {
    padding: 1.5rem 1.25rem 1.25rem;
    gap: .55rem;
    border-radius: 16px;
  }
  .landing-pricing .pricing-price     { font-size: 2rem; }
  .landing-pricing .pricing-name      { font-size: 1.1rem; }
  .landing-pricing .pricing-features  { display: flex; font-size: .85rem; }
  .landing-pricing .pricing-divider   { display: block; }
  .landing-pricing .pricing-btn       { padding: .75rem 1rem; font-size: .88rem; border-radius: 10px; }
}
@media (min-width: 481px) and (max-width: 680px) {
  .landing-pricing .pricing-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto;
  }
  .landing-pricing .pricing-card { padding: 1.25rem 1.1rem; }
  .landing-pricing .pricing-price { font-size: 1.8rem; }
  .landing-pricing .pricing-features { display: flex; font-size: 0.83rem; }
  .landing-pricing .pricing-divider { display: block; }
  .landing-pricing .pricing-btn {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-radius: 10px;
  }
}

/* Tab bar mobile : padding-bottom généreux pour que les mentions légales soient bien au-dessus */
@media (max-width: 768px) {
  .lp-scroll .landing-inner {
    padding-bottom: 3.5rem;
  }
}

/* ── Boutons groupés dans l'en-tête de la sidebar ────────────────────────── */

.sb-head-btns {
  display: flex;
  gap: .35rem;
  align-items: center;
  flex-shrink: 0;
  /* récupère le margin de positionnement de l'ancien nav-panel-close seul */
  margin: -0.25rem -0.35rem 0 0;
}
.sb-head-btns .nav-panel-close {
  margin: 0;  /* annule le margin individuel hérité */
}

/* ════════════════════════════════════════════════════════
   SEARCH WIDGET LANDING — Style Airbnb (lsw-*)
   Utilise uniquement les variables CSS du design system.
   ════════════════════════════════════════════════════════ */

.lp-search-widget {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

/* ── Onglets catégorie ── */
.lsw-tabs {
  display: flex;
  justify-content: center;
  padding: 0;
  gap: 4px;
  background: transparent;
  border-bottom: none;
}
.lsw-tab {
  flex: 0 1 auto;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ff-body);
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: color .15s, border-color .15s, font-weight .15s;
  white-space: nowrap;
  text-align: center;
  opacity: 0.7;
}
.lsw-tab:hover { opacity: 1; color: var(--ink); }
.lsw-tab--active {
  opacity: 1;
  font-weight: 800;
  border-bottom: 2px solid;
}

/* Accent couleur par catégorie */
.lsw-tab--food.lsw-tab--active    { border-bottom-color: var(--g-dark); color: var(--g-dark); }
.lsw-tab--sport.lsw-tab--active   { border-bottom-color: var(--coral); color: var(--coral); }
.lsw-tab--culture.lsw-tab--active { border-bottom-color: var(--violet); color: var(--violet); }

/* ── Barre de champs ── */
.lsw-bar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: calc((1 - var(--lp-header-collapse, 0)) * 4px);
  margin-top: calc((1 - var(--lp-header-collapse, 0)) * 4px);
  background: var(--surface);
  border-width: calc((1 - var(--lp-header-collapse, 0)) * 1.5px);
  border-style: solid;
  border-color: var(--cream-dark);
  border-radius: 16px;
  box-shadow: 0 calc(4px * (1 - var(--lp-header-collapse, 0))) calc(28px * (1 - var(--lp-header-collapse, 0))) rgba(27, 43, 32, 0.1);
  transition: padding 0.24s ease, min-height 0.3s ease, box-shadow 0.24s ease, max-height 0.32s ease, margin-top 0.24s ease, border-width 0.24s ease;
  min-height: calc((1 - var(--lp-header-collapse, 0)) * 46px);
  max-height: calc((1 - var(--lp-header-collapse, 0)) * 260px);
  overflow: hidden;
}
.lsw-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 14px;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: background .12s, border-color .12s;
  min-width: 0;
  font-family: var(--ff-body);
}
.lsw-field:hover {
  background: var(--cream);
}
.lsw-field--active {
  background: var(--surface);
  border-color: var(--g-dark);
  box-shadow: 0 0 0 3px rgba(61,122,87,.10);
}
.lsw-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  white-space: nowrap;
}
.lsw-field-value {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.lsw-sep {
  width: 1px;
  background: var(--cream-dark);
  margin: 10px 0;
  flex-shrink: 0;
  align-self: stretch;
}

/* ── Bouton Spotter ── */
.lsw-spotter {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--g-dark);
  color: var(--cream);
  border: none;
  border-radius: 12px;
  padding: 0 18px;
  margin: 6px 4px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--ff-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
  letter-spacing: .01em;
}
.lsw-spotter:hover  { background: var(--g-deeper); }
.lsw-spotter:active { transform: scale(.97); }

.lsw-spotter.lsw-spotter--bar {
  box-sizing: border-box;
  overflow: hidden;
  max-width: calc((1 - var(--lp-header-collapse, 0)) * 220px);
  min-height: calc((1 - var(--lp-header-collapse, 0)) * 42px);
  margin: calc((1 - var(--lp-header-collapse, 0)) * 4px)
    calc((1 - var(--lp-header-collapse, 0)) * 4px);
  padding-inline: calc((1 - var(--lp-header-collapse, 0)) * 18px);
  transition: opacity 0.22s ease, transform 0.22s ease, max-width 0.28s ease,
    min-height 0.26s ease, padding 0.24s ease, margin 0.2s ease;
  opacity: calc(1 - var(--lp-header-collapse, 0));
  transform: translateY(calc(var(--lp-header-collapse, 0) * -6px))
    scale(calc(1 - var(--lp-header-collapse, 0) * 0.06));
}

/* Variante compacte dans la rangée d’onglets (après .lsw-spotter pour gagner la cascade) */
.lsw-spotter.lsw-spotter--compact {
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: calc(38px * var(--lp-header-collapse, 0));
  max-width: calc(var(--lp-header-collapse, 0) * 200px);
  padding-block: 0;
  padding-inline: calc(var(--lp-header-collapse, 0) * 14px);
  margin: 0;
  border-radius: 12px;
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: 0 2px 10px rgba(61, 122, 87, calc(0.22 * var(--lp-header-collapse, 0)));
  opacity: var(--lp-header-collapse, 0);
  overflow: hidden;
  transform: translateX(calc((1 - var(--lp-header-collapse, 0)) * 10px))
    scale(calc(0.9 + 0.1 * var(--lp-header-collapse, 0)));
  transition: opacity 0.22s ease, transform 0.24s ease, max-width 0.28s ease,
    min-height 0.26s ease, padding 0.24s ease, box-shadow 0.2s ease;
}
.lsw-spotter.lsw-spotter--compact:hover {
  background: var(--g-deeper);
}

/* ── Panel déroulant ── */
.lsw-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  padding: 16px 20px 20px;
  border-radius: 0 0 16px 16px;
  background: var(--surface);
  border: 1.5px solid var(--cream-dark);
  border-top: none;
  box-shadow: 0 8px 32px rgba(27,43,32,.18);
  animation: lswFadeIn .15s ease;
  z-index: 100;
}
.lsw-panel--open { display: block; }
/* Fermeture mobile — masqué sur desktop (panneau inline sous la barre) */
.lsw-panel-close {
  display: none;
}
@keyframes lswFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lswSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.lsw-panel-section { margin-bottom: 20px; }
.lsw-panel-section:last-child { margin-bottom: 0; }
.lsw-panel-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  font-family: var(--ff-body);
}

/* ── Chips ── */
.lsw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lsw-chip {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--cream-dark);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--ff-body);
  transition: border-color .12s, background .12s;
  line-height: 1;
}
.lsw-chip:hover { border-color: var(--g-mid); background: var(--g-light); }
.lsw-chip--sel {
  border-color: var(--g-dark);
  background: var(--g-light);
  color: var(--g-dark);
  font-weight: 600;
}

.lsw-chips-more-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px dashed var(--cream-dark);
  background: transparent;
  color: var(--muted);
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.lsw-chips-more-btn:hover {
  border-color: var(--g-mid);
  color: var(--g-dark);
  background: var(--g-light);
}

/* ── Slider ── */
.lsw-slider-wrap { display: flex; align-items: center; gap: 14px; }
.lsw-slider { flex: 1; accent-color: var(--g-dark); }
/* Firefox : barre de progression lisible (WebKit utilise --p via styles.css) */
.lsw-panel .lsw-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--cream-dark);
}
.lsw-panel .lsw-slider::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--g);
}
.lsw-slider-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  min-width: 52px;
  text-align: right;
}

/* ── Budget grid ── */
.lsw-budget-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.lsw-budget-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--cream-dark);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--ff-body);
  transition: border-color .12s, background .12s;
  min-width: 80px;
}
.lsw-budget-btn:hover { border-color: var(--g-mid); background: var(--g-light); }
.lsw-budget-btn--sel {
  border-color: var(--g-dark);
  background: var(--g-light);
}

/* ── Boutons période / niveau ── */
.lsw-period-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.lsw-period-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--cream-dark);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.lsw-period-btn:hover { border-color: var(--g-mid); background: var(--g-light); }
.lsw-period-btn--sel {
  border-color: var(--g-dark);
  background: var(--g-light);
  color: var(--g-dark);
  font-weight: 600;
}

/* ── Carte participant dans le panel ── */
.lsw-p-card { margin-bottom: 12px; }
.lsw-add-p-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px dashed var(--g-mid);
  background: none;
  color: var(--g-dark);
  font-size: 13px;
  font-family: var(--ff-body);
  cursor: pointer;
}
.lsw-add-p-btn:hover { background: var(--g-light); }

/* ── Participants (panel) : aligné barre / chips landing ── */
.lsw-panel .lsw-participants-scope .p-card {
  background: var(--surface);
  border: 1.5px solid var(--cream-dark);
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(27, 43, 32, 0.06);
  margin-bottom: 10px;
  overflow: hidden;
}
.lsw-panel .lsw-participants-scope .p-card[data-pi="0"],
.lsw-panel .lsw-participants-scope .p-card[data-pi="1"],
.lsw-panel .lsw-participants-scope .p-card[data-pi="2"] {
  border-top: none;
}
.lsw-panel .lsw-participants-scope .p-card[data-pi="0"] { border-left: 3px solid var(--blue); }
.lsw-panel .lsw-participants-scope .p-card[data-pi="1"] { border-left: 3px solid var(--coral); }
.lsw-panel .lsw-participants-scope .p-card[data-pi="2"] { border-left: 3px solid var(--violet); }
.lsw-panel .lsw-participants-scope .p-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  border-radius: 14px 14px 0 0;
  background-image: none;
}
.lsw-panel .lsw-participants-scope .p-av {
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.lsw-panel .lsw-participants-scope .p-name-inp {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.lsw-panel .lsw-participants-scope .p-body {
  padding: 12px 12px 14px;
  gap: 10px;
}
.lsw-panel .lsw-participants-scope .addr-inp-row {
  border-radius: 12px;
  border-color: var(--cream-dark);
  background: var(--surface);
}
.lsw-panel .lsw-participants-scope .addr-inp-row:focus-within {
  border-color: var(--g-dark);
  box-shadow: 0 0 0 3px rgba(61, 122, 87, 0.12);
}
.lsw-panel .lsw-participants-scope .p-card[data-pi="0"] .addr-inp-row:focus-within,
.lsw-panel .lsw-participants-scope .p-card[data-pi="1"] .addr-inp-row:focus-within,
.lsw-panel .lsw-participants-scope .p-card[data-pi="2"] .addr-inp-row:focus-within {
  border-color: var(--g-dark);
  box-shadow: 0 0 0 3px rgba(61, 122, 87, 0.12);
}
.lsw-panel .lsw-participants-scope .addr-inp {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink);
}
.lsw-panel .lsw-participants-scope .p-card.addr-ok .addr-inp-row {
  border-color: var(--g-dark);
  background: var(--g-light);
}
.lsw-panel .lsw-participants-scope .p-card.addr-ok .addr-ico::after {
  content: ' ✓';
  color: var(--g-dark);
  font-size: 11px;
  font-weight: 700;
}
.lsw-panel .lsw-participants-scope .t-label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
  margin-bottom: 6px;
}
.lsw-panel .lsw-participants-scope .t-row {
  gap: 6px;
}
.lsw-panel .lsw-participants-scope .t-pill {
  padding: 7px 12px;
  border-radius: 20px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--cream-dark);
  background: var(--surface);
  color: var(--ink);
}
.lsw-panel .lsw-participants-scope .t-pill:hover {
  border-color: var(--g-mid);
  background: var(--g-light);
  color: var(--g-dark);
}
.lsw-panel .lsw-participants-scope .t-pill.sel {
  border-color: var(--g-dark);
  background: var(--g-light);
  color: var(--g-dark);
  font-weight: 600;
}
.lsw-panel .lsw-participants-scope .rm-btn {
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 8px;
}

/* ── Message d'erreur ── */
.lsw-error {
  font-size: 12px;
  color: var(--coral);
  padding: 6px 0 0;
  display: none;
}
.lsw-error--visible { display: block; }

/* ════════════════════════════════════════════════════
   MOBILE (≤ 768px) — search bar toujours visible, bottom sheet panel
   ════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .lp-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lp-header-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    min-width: 0;
  }

  .lp-logo {
    align-self: center;
    flex: 1;
    min-width: 0;
  }

  /* Icône + libellé compte : uniquement dans la tab bar (footer) */
  .lp-header-right {
    display: none;
  }

  /* Collapse header réservé au desktop (évite trou dans la rangée d’onglets) */
  .lsw-spotter--compact {
    display: none !important;
  }

  .lp-header-mid {
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
  }

  .lp-header .lp-search-widget {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
  }

  .lsw-bar {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 4px;
    gap: 0;
    border-radius: 12px;
    min-height: 42px;
    background: var(--surface);
    border: 1.5px solid var(--cream-dark);
    box-shadow: 0 2px 12px rgba(27, 43, 32, 0.08);
    margin-top: 4px;
  }

  .lsw-bar-fields {
    flex: 1;
    min-width: 0;
    flex-direction: row;
    align-items: stretch;
  }

  #lsw-field-right,
  #lsw-field-main + .lsw-sep {
    display: none !important;
  }

  .lsw-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 4px;
    gap: 2px;
    justify-content: center;
  }
  .lsw-tabs::-webkit-scrollbar { display: none; }

  .lsw-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }
  .lsw-tab--active { font-weight: 800; }

  .lsw-chip {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 40px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }

  .lsw-period-btn {
    padding: 10px 18px;
    min-height: 40px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }

  .lsw-sep {
    width: 1px;
    height: auto;
    margin: 8px 0;
    align-self: stretch;
    flex-shrink: 0;
  }

  .lsw-field {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5px 12px;
    min-height: 44px;
    box-sizing: border-box;
    border-radius: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .lsw-field-label {
    margin-bottom: 2px;
    margin-right: 0;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    font-size: 11px;
    white-space: normal;
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  .lsw-field-value {
    text-align: left;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .lsw-spotter {
    width: auto;
    min-height: 44px;
    min-width: 44px;
    padding: 0 12px;
    margin: 3px;
    border-radius: 10px;
    font-size: 13px;
    box-sizing: border-box;
    align-self: stretch;
    flex-shrink: 0;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .lsw-spotter.lsw-spotter--bar {
    width: auto;
    min-height: 44px;
    min-width: 44px;
    max-width: none;
    margin: 4px;
    padding: 0 14px;
    opacity: 1;
    transform: none;
  }

  /* Bottom sheet — uniquement à l’ouverture (au-dessus du voile, sous rien d’autre) */
  .lsw-panel.lsw-panel--open {
    display: block;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* vh seul dépasse souvent l’écran mobile (Safari / barre d’adresse) → feuille coupée en haut */
    max-height: 85vh;
    max-height: min(92svh, 96dvh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    border-radius: 20px 20px 0 0;
    border: none;
    border-top: 1px solid var(--cream-dark);
    box-shadow: 0 -6px 32px rgba(27, 43, 32, 0.18);
    padding: 48px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 2000;
    pointer-events: auto;
    animation: lswSlideUp 0.22s ease;
  }

  .lsw-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: var(--cream-dark);
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .lsw-panel-close:active {
    background: var(--border);
  }
}
