/* ═══════════════════════════════════════════════════════════════
   PAGE LISTING — Annuaire auto-écoles
   Refonte premium — hero, flash deals carousel, cards raffinées
   ═══════════════════════════════════════════════════════════════ */

.listing-page {
  background: var(--surface-page);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.listing-header {
  position: relative;
  padding: 56px 0 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.listing-header-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 22% 30%, rgba(14, 165, 233, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 78% 25%, rgba(99, 102, 241, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 95%, rgba(244, 114, 182, 0.06) 0%, transparent 65%),
    linear-gradient(180deg, #EFF8FF 0%, #F5FAFF 55%, var(--surface-page) 100%);
}

.listing-header-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.listing-header-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.listing-header-orbs .orb-1 {
  width: 320px; height: 320px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(14,165,233,0.45), transparent 70%);
  animation-delay: 0s;
}
.listing-header-orbs .orb-2 {
  width: 260px; height: 260px;
  top: 30px; right: -40px;
  background: radial-gradient(circle, rgba(56,189,248,0.4), transparent 70%);
  animation-delay: -4s;
}
.listing-header-orbs .orb-3 {
  width: 220px; height: 220px;
  bottom: 40px; left: 45%;
  background: radial-gradient(circle, rgba(244,114,182,0.25), transparent 70%);
  animation-delay: -9s;
}

@keyframes orbFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(20px, -28px, 0) scale(1.08); }
}

.listing-header-content {
  position: relative;
  z-index: 1;
}

/* Eyebrow pill */
.listing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary-active);
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}

.listing-eyebrow svg {
  color: var(--color-primary);
}

.listing-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.listing-subtitle {
  font-size: var(--text-base);
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: var(--leading-relaxed);
}

/* ── Search Bar (conservée mais affinée) ────────────────────── */

.listing-search-bar {
  display: flex;
  align-items: center;
  background: var(--surface-card);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 8px;
  max-width: 660px;
  margin: 0 auto;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(14, 165, 233, 0.10),
    0 24px 60px rgba(14, 165, 233, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.listing-search-bar:focus-within {
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 4px var(--color-primary-light),
    0 14px 36px rgba(14, 165, 233, 0.18);
}

.listing-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 10px 14px;
  min-width: 0;
}

.listing-search-field-sm { flex: 0 0 auto; }

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.icon-car { width: 18px; height: 10px; color: var(--gray-400); }

.listing-search-sep {
  width: 1px;
  height: 26px;
  background: var(--border-default);
  flex-shrink: 0;
}

.listing-search-input {
  border: none;
  outline: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-900);
  width: 100%;
  background: transparent;
}

.listing-search-input::placeholder { color: var(--gray-400); }

.listing-search-select {
  border: none;
  outline: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-600);
  background: transparent;
  cursor: pointer;
  padding-right: 8px;
  -webkit-appearance: none;
}

.listing-search-btn {
  flex-shrink: 0;
  gap: 6px;
  border-radius: var(--radius-full) !important;
  padding: 11px 24px !important;
}

.listing-search-btn .icon { width: 16px; height: 16px; }

/* ── Trust bar — chips de réassurance ──────────────────────── */

.listing-trustbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 24px;
  padding: 0;
}

.listing-trustbar li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--gray-600);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-trustbar li:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.10);
}

.listing-trustbar li strong {
  color: var(--gray-900);
  font-weight: var(--font-bold);
}

.listing-trustbar li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.listing-trustbar li:nth-child(2) svg { color: var(--color-gold); }
.listing-trustbar li:nth-child(3) svg { color: var(--color-success); }

/* ── Vague séparatrice bas de hero ───────────────────────── */

.listing-header-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  z-index: 0;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   FLASH DEALS — Carrousel horizontal
   ═══════════════════════════════════════════════════════════════ */

.flash-deals {
  position: relative;
  padding: 36px 0 8px;
  margin-bottom: 12px;
}

.flash-deals-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.flash-deals-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #FEE2E8 0%, #FFE7C7 100%);
  color: #B91C3A;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.flash-deals-pill svg { color: var(--color-accent); }

.flash-deals-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 6px;
}

.flash-deals-subtitle {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
}

.flash-deals-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
  flex-shrink: 0;
}

.flash-deals-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: liveBlink 1.6s ease-in-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ── Track : marquee infini auto-scroll ───────────────────── */

.flash-deals-track-wrapper {
  position: relative;
  overflow: hidden;
  /* Fade les deux bords pour adoucir l'apparition / disparition des cards */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.flash-deals-track {
  --marquee-gap: 18px;
  --marquee-duration: 38s;
  display: flex;
  gap: var(--marquee-gap);
  width: max-content;
  padding: 6px 4px 18px;
  animation: flashMarquee var(--marquee-duration) linear infinite;
  will-change: transform;
}

@keyframes flashMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--marquee-gap) / 2)); }
}

/* Pause au survol pour permettre la lecture */
.flash-deals-track-wrapper:hover .flash-deals-track,
.flash-deals-track:focus-within {
  animation-play-state: paused;
}

/* Flash deal card */
.flash-deal-card {
  flex: 0 0 290px;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 8px 20px rgba(14, 165, 233, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.flash-deal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow:
    0 14px 32px rgba(14, 165, 233, 0.18),
    0 4px 10px rgba(15, 23, 42, 0.05);
}

.flash-deal-photo {
  position: relative;
  height: 150px;
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 60%, #6366F1 100%);
  overflow: hidden;
}

.flash-deal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flash-deal-card:hover .flash-deal-photo img {
  transform: scale(1.05);
}

.flash-deal-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(135deg, #0EA5E9 0%, #38BDF8 50%, #6366F1 100%);
}

.flash-deal-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.45);
  animation: flashPulse 2s ease-in-out infinite;
}

@keyframes flashPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(233, 69, 96, 0.45); }
  50%      { box-shadow: 0 4px 22px rgba(233, 69, 96, 0.65); }
}

.flash-deal-countdown {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-bold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
}

.flash-deal-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.flash-deal-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--color-primary-50);
  color: var(--color-primary-active);
  font-size: 10px;
  font-weight: var(--font-bold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flash-deal-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--font-bold);
  color: var(--gray-900);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flash-deal-city {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gray-500);
  margin: 0;
}

.flash-deal-city svg { color: var(--gray-400); flex-shrink: 0; }

.flash-deal-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--gray-700);
  font-weight: var(--font-bold);
}

.flash-deal-rating svg { color: var(--color-gold); }

.flash-deal-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.flash-deal-price-original {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
}

.flash-deal-price-reduit {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: var(--font-bold);
  color: var(--color-accent);
  letter-spacing: -0.04em;
}

.flash-deal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-default);
  font-size: 12px;
  font-weight: var(--font-bold);
  color: var(--color-primary);
  transition: gap 0.2s ease;
}

.flash-deal-cta svg { transition: transform 0.2s ease; }

.flash-deal-card:hover .flash-deal-cta svg {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   RÉSULTATS — Toolbar + Grid
   ═══════════════════════════════════════════════════════════════ */

.listing-results {
  padding: 16px 0 0;
}

/* ── Toolbar refondue ──────────────────────────────────────── */

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.listing-toolbar__lead {
  min-width: 0;
}

.listing-toolbar__heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.listing-toolbar__heading strong {
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.listing-toolbar__city {
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 50%, #818CF8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.listing-toolbar__sub {
  margin: 4px 0 0;
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.listing-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.listing-sort-form {
  display: flex;
  align-items: center;
}

.listing-sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.listing-sort-icon {
  position: absolute;
  left: 12px;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  color: var(--gray-500);
}

.listing-sort-select {
  padding: 9px 28px 9px 32px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--gray-700);
  background: var(--surface-card)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>")
    no-repeat right 12px center;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.listing-sort-select:hover { border-color: var(--color-primary); }
.listing-sort-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  outline: none;
}

.listing-view-toggle {
  display: flex;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface-card);
}

.listing-view-btn {
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  background: transparent;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.listing-view-btn + .listing-view-btn {
  border-left: 1.5px solid var(--border-default);
}

.listing-view-btn svg { width: 14px; height: 14px; }
.listing-view-btn:hover { color: var(--gray-900); background: var(--gray-50); }

.listing-view-btn--active {
  background: var(--navy-900);
  color: #fff;
}
.listing-view-btn--active:hover {
  background: var(--navy-900);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   SCHOOLS GRID & CARDS
   ═══════════════════════════════════════════════════════════════ */

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

/* Staggered reveal */
.schools-grid .school-card:nth-child(1)  { animation-delay: 0s; }
.schools-grid .school-card:nth-child(2)  { animation-delay: 0.05s; }
.schools-grid .school-card:nth-child(3)  { animation-delay: 0.10s; }
.schools-grid .school-card:nth-child(4)  { animation-delay: 0.15s; }
.schools-grid .school-card:nth-child(5)  { animation-delay: 0.20s; }
.schools-grid .school-card:nth-child(6)  { animation-delay: 0.25s; }
.schools-grid .school-card:nth-child(7)  { animation-delay: 0.30s; }
.schools-grid .school-card:nth-child(8)  { animation-delay: 0.35s; }
.schools-grid .school-card:nth-child(9)  { animation-delay: 0.40s; }
.schools-grid .school-card:nth-child(10) { animation-delay: 0.45s; }
.schools-grid .school-card:nth-child(11) { animation-delay: 0.50s; }
.schools-grid .school-card:nth-child(12) { animation-delay: 0.55s; }

/* School card */
.school-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}

.school-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 0%, rgba(14, 165, 233, 0) 100%);
  transition: background 0.3s ease;
}

.school-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow:
    0 16px 40px rgba(14, 165, 233, 0.12),
    0 4px 10px rgba(15, 23, 42, 0.05);
}

/* Photo */
.school-card-photo {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--gray-100);
}

.school-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-card:hover .school-card-photo img {
  transform: scale(1.06);
}

.school-card-photo-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(14, 165, 233, 0.10) 0%, transparent 70%),
    linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  overflow: hidden;
}

.school-card-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14,165,233,0.10) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.6;
}

.school-card-photo-placeholder-glow {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.school-card-photo-placeholder svg {
  position: relative;
  z-index: 1;
}

/* Badges sur photo */
.school-card-promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(233, 69, 96, 0.35);
  animation: listing-promoPulse 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes listing-promoPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(233, 69, 96, 0.35); }
  50%      { box-shadow: 0 2px 18px rgba(233, 69, 96, 0.55); }
}

.school-card-promo-badge svg { width: 12px; height: 12px; }

.school-card-verified-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-success-dark);
  font-size: 10px;
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.school-card-verified-badge svg { color: var(--color-success); }

.school-card-views-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-bold);
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
}

.school-card-views-badge svg { width: 11px; height: 11px; }

/* Body */
.school-card-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.school-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.school-card-top-main {
  flex: 1;
  min-width: 0;
}

.school-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.school-card-distance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: var(--font-bold);
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.school-card-city {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: 1.4;
  margin-bottom: 8px;
}

.school-card-city .icon {
  width: 13px; height: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gray-400);
}

/* Mini-tags permis */
.school-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.school-card-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 10px;
  font-weight: var(--font-bold);
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.school-card-tag--accent {
  background: rgba(245, 158, 11, 0.12);
  color: #92400E;
}

.school-card-tag--soft {
  background: var(--color-primary-50);
  color: var(--color-primary-active);
  border-color: var(--color-primary-light);
}

.school-card:hover .school-card-tag {
  background: var(--gray-50);
}

/* Rating */
.school-card-rating {
  text-align: right;
  flex-shrink: 0;
}

.rating-stars {
  font-size: 13px;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.rating-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 3px;
}

.rating-value {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.rating-count {
  font-size: 11px;
  color: var(--gray-400);
}

/* Footer */
.school-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-default);
  display: flex;
  align-items: center;
  gap: 4px;
}

.school-card-footer > * {
  flex: 1;
}

.school-card-footer > *:nth-child(2) {
  text-align: center;
}

.school-card-footer > *:nth-child(3) {
  text-align: right;
}

.school-card-price {
  text-align: left;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.school-card-price::before {
  content: 'À partir de';
  font-size: 9px;
  font-weight: var(--font-semibold);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.school-card-price:has(.price-from)::before { display: none; }

.price-from {
  font-size: 11px;
  color: var(--gray-400);
  display: block;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: var(--font-bold);
  color: var(--gray-900);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.price-original-barred {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: var(--text-sm);
}

.price-block { margin-bottom: 4px; }

.price-block-promo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-block-promo svg { color: var(--color-accent); }

.price-promo {
  color: var(--color-accent);
  font-weight: var(--font-bold);
}

.price-promo-label {
  font-size: 10px;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

/* Compare */
.school-card-compare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--font-bold);
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.school-card-compare-btn svg { width: 13px; height: 13px; }

.school-card-compare-btn:hover {
  color: var(--color-primary);
  background: var(--color-primary-50);
  border-color: var(--color-primary-light);
}

.school-card-compare-btn .compare-btn-label--active { display: none; }

.school-card-compare-btn--active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.school-card-compare-btn--active .compare-btn-label { display: none; }
.school-card-compare-btn--active .compare-btn-label--active { display: inline; }

/* CTA "Voir la fiche" */
.school-card-cta {
  font-size: 11px;
  font-weight: var(--font-bold);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  transition: gap 0.2s ease;
  white-space: nowrap;
}

.school-card:hover .school-card-cta { gap: 7px; }

.school-card-cta::after {
  content: '\2192';
  font-size: 14px;
  transition: transform 0.2s ease;
}

.school-card:hover .school-card-cta::after {
  transform: translateX(2px);
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */

.listing-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
}

.listing-empty-icon {
  width: 56px;
  height: 56px;
  color: var(--gray-300);
  margin: 0 auto 20px;
}

.listing-empty h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--gray-700);
  margin-bottom: 8px;
}

.listing-empty p {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   LISTING SIM CTA — Bandeau simulateur
   ═══════════════════════════════════════════════════════════════ */

.listing-sim-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 32px;
  margin-top: 36px;
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.18), transparent 60%),
    linear-gradient(135deg, #0EA5E9 0%, #38BDF8 50%, #6366F1 100%);
  border-radius: var(--radius-2xl);
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(14, 165, 233, 0.28),
    0 4px 10px rgba(99, 102, 241, 0.18);
  isolation: isolate;
}

.listing-sim-cta-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.listing-sim-cta-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.listing-sim-cta-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.listing-sim-cta-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 4px;
}

.listing-sim-cta-sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.5;
}

.listing-sim-cta-sub strong {
  color: #fff;
  font-weight: var(--font-bold);
}

.listing-sim-cta-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  --btn-bg: #fff;
  --btn-bg-hover: #F0F9FF;
  --btn-bg-active: #E0F2FE;
  --btn-color: var(--color-primary-active);
  --btn-border: #fff;
  --btn-border-hover: #fff;
  --btn-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  --btn-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.25);
  --btn-ring: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.listing-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--gray-600);
  text-decoration: none;
  border: 1.5px solid var(--border-default);
  background: var(--surface-card);
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-btn--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.32);
}

.pagination-btn--active:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

.pagination-btn--nav { font-size: var(--text-base); }

.pagination-btn--disabled {
  opacity: 0.25;
  pointer-events: none;
}

.pagination-ellipsis {
  padding: 0 6px;
  color: var(--gray-400);
  font-weight: var(--font-medium);
}

/* ═══════════════════════════════════════════════════════════════
   MAP VIEW
   ═══════════════════════════════════════════════════════════════ */

.listing-map__container {
  height: 70vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border-default);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   COMPARE FLOATING BAR
   ═══════════════════════════════════════════════════════════════ */

.compare-floating-bar {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 24px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transition: bottom 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  white-space: nowrap;
}

.compare-floating-bar--visible { bottom: 24px; }

.compare-floating-bar__text {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.compare-floating-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-decoration: none;
  transition: background 0.2s ease;
}

.compare-floating-bar__btn:hover { background: var(--color-primary-hover); }
.compare-floating-bar__btn svg { width: 16px; height: 16px; }

.compare-floating-bar__clear {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: color 0.15s ease;
}

.compare-floating-bar__clear:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   FAB SIMULATEUR (existant)
   ═══════════════════════════════════════════════════════════════ */

.sim-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.sim-fab:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

.sim-fab svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════════════════════
   FADE-IN
   ═══════════════════════════════════════════════════════════════ */

.fade-in {
  animation: listing-fadeIn 0.5s ease both;
}

@keyframes listing-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .listing-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
  }
  .listing-toolbar__actions {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
  .listing-sort-form { flex: 1; }
  .listing-sort-wrap { width: 100%; }
  .listing-sort-select { width: 100%; }

  .listing-sim-cta {
    flex-wrap: wrap;
    padding: 22px 24px;
  }
  .listing-sim-cta-text { flex-basis: 100%; }
}

@media (max-width: 768px) {
  .listing-header {
    padding: 36px 0 56px;
  }
  .listing-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .listing-subtitle { margin-bottom: 24px; }

  .listing-eyebrow {
    font-size: 11px;
    padding: 5px 12px;
  }

  .listing-search-bar {
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-xl);
    padding: 8px;
  }
  .listing-search-field { width: 100%; }
  .listing-search-sep { width: 100%; height: 1px; }
  .listing-search-btn {
    width: 100%;
    margin-top: 6px;
    border-radius: var(--radius-lg) !important;
  }

  .listing-trustbar {
    gap: 8px;
    margin-top: 20px;
  }
  .listing-trustbar li {
    font-size: 11px;
    padding: 6px 12px;
  }

  .listing-header-wave { height: 40px; }

  .flash-deals { padding: 24px 0 4px; }
  .flash-deals-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .flash-deals-track {
    --marquee-duration: 28s;
  }
  .flash-deal-card { flex-basis: 240px; }
  .flash-deal-photo { height: 130px; }

  .schools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .school-card-photo { height: 160px; }

  .listing-sim-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 22px;
    gap: 16px;
  }
  .listing-sim-cta-btn { width: 100%; justify-content: center; }

  .sim-fab .sim-fab__label { display: none; }
  .sim-fab { padding: 14px; border-radius: 50%; }

  .compare-floating-bar {
    left: 12px;
    right: 12px;
    transform: none;
    border-radius: var(--radius-xl);
    white-space: normal;
    gap: 8px;
    padding: 10px 10px 10px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .compare-floating-bar__text { font-size: var(--text-xs); flex: none; }
  .compare-floating-bar__btn { padding: 8px 16px; font-size: var(--text-xs); gap: 4px; }
  .compare-floating-bar__clear { font-size: 10px; }
}

@media (max-width: 480px) {
  .listing-title { font-size: 1.6rem; }
  .flash-deal-card { flex-basis: 220px; }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY — reduce motion
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .listing-header-orbs .orb { animation: none; }
  .school-card-promo-badge,
  .flash-deal-discount,
  .flash-deals-live-dot { animation: none; }
  .fade-in { animation: none; }

  /* Désactive le marquee + revient à un scroll horizontal classique */
  .flash-deals-track {
    animation: none;
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .flash-deals-track-wrapper {
    -webkit-mask-image: none;
            mask-image: none;
  }
}
