/* ============================================
   Le Baguette Index — La Presse Artisanale v2
   ============================================ */

:root {
  --fond: #FAF6F0;
  --encre: #1A1612;
  --croute: #C8956C;
  --farine: #FFFFFF;
  --pierre: #8C8279;
  --bon-prix: #3D7A5F;
  --cher: #C44536;
  --ble: #E8DCC8;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 3px rgba(26,22,18,0.05), 0 1px 2px rgba(26,22,18,0.03);
  --shadow-elevated: 0 8px 24px rgba(26,22,18,0.08), 0 2px 6px rgba(26,22,18,0.04);
  --shadow-heavy: 0 16px 48px rgba(26,22,18,0.12), 0 4px 12px rgba(26,22,18,0.06);
  --transition: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  background: var(--fond);
  color: var(--encre);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle paper noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.15;
}

.price-figure {
  font-family: 'JetBrains Mono', 'Source Code Pro', monospace;
  font-variant-numeric: tabular-nums;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fond);
  border-bottom: 1px solid var(--ble);
  backdrop-filter: blur(12px);
  background: rgba(250, 246, 240, 0.92);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo-link {
  text-decoration: none;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--encre);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-accent {
  color: var(--croute);
}

/* ============================================
   BAGUETTE NAV — vertical scroll indicator
   ============================================ */
/* ============================================
   PAGE ROUTING
   ============================================ */
.page { display: none; }
.page.page--active { display: block; }

/* ============================================
   GRIGNE SEPARATOR
   ============================================ */
.grigne-sep {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.grigne-sep svg {
  width: 120px;
  height: 24px;
}

.grigne-sep svg line {
  stroke: var(--croute);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.35;
}

/* ============================================
   MIETTE CRUMBS — breadcrumb trail
   ============================================ */
.miette-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 4px;
}

.miette-crumb {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pierre);
  text-decoration: none;
  transition: color 0.2s ease;
}

.miette-crumb:hover {
  color: var(--croute);
}

/* Literal bread crumbs — dots of increasing size */
.miette-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--croute);
  opacity: 0.3;
  flex-shrink: 0;
}

.miette-dot:nth-child(2) {
  width: 3px;
  height: 3px;
  opacity: 0.2;
}

.miette-dot:nth-child(3) {
  width: 4px;
  height: 4px;
  opacity: 0.3;
}

.miette-dot:nth-child(4) {
  width: 5px;
  height: 5px;
  opacity: 0.45;
}

.miette-current {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--encre);
}

/* ============================================
   HEADER NAV — horizontal top navigation
   ============================================ */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pierre);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.header-nav-link:hover {
  color: var(--encre);
  background: rgba(200, 149, 108, 0.1);
}

.header-nav-link.active {
  color: var(--encre);
  font-weight: 700;
  background: rgba(200, 149, 108, 0.12);
}

/* ============================================
   BAGUETTE NAV — vertical page navigator (right)
   ============================================ */
.baguette-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

.baguette-body {
  width: 22px;
  padding: 18px 0;
  background: linear-gradient(
    180deg,
    #dfc69c 0%,
    #c8a56a 15%,
    #d4b07a 40%,
    #c8a56a 60%,
    #dfc69c 85%,
    #c8a56a 100%
  );
  border-radius: 11px;
  box-shadow:
    inset -3px 0 6px rgba(160, 120, 60, 0.25),
    inset 3px 0 6px rgba(255, 240, 210, 0.3),
    0 2px 12px rgba(26, 22, 18, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* Flour texture */
.baguette-body::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.25) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 70%, rgba(255,255,255,0.12) 0%, transparent 40%);
  pointer-events: none;
}

/* Score marks (grignes) */
.baguette-grigne {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.baguette-grigne::before {
  content: '';
  width: 12px;
  height: 3px;
  background: rgba(120, 80, 30, 0.3);
  border-radius: 2px;
  transform: rotate(-35deg);
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
}

.baguette-grigne:hover::before,
.baguette-grigne.active::before {
  background: rgba(100, 55, 10, 0.7);
  width: 14px;
  height: 4px;
  box-shadow:
    inset 0 1px 1px rgba(0,0,0,0.15),
    0 0 6px rgba(200, 149, 108, 0.4);
}

/* Labels — appear on hover, always shown for active */
.baguette-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  white-space: nowrap;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--encre);
  background: var(--farine);
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(26, 22, 18, 0.1);
  border: 1px solid var(--ble);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.baguette-grigne:hover .baguette-label,
.baguette-grigne.active .baguette-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 72px 0 56px;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--croute);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--encre);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-count {
  color: var(--croute);
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
  min-width: 2.5ch;
}

.hero-prose {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--pierre);
  max-width: 600px;
  margin-bottom: 36px;
  min-height: 3.6em;
}

.hero-prose strong {
  color: var(--encre);
  font-weight: 600;
}

.hero-prose .num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--encre);
}

.hero-prose .num-bon { color: var(--bon-prix); }
.hero-prose .num-cher { color: var(--cher); }

/* Word-by-word prose reveal */
.hero-word {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(4px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
  display: inline;
}

.hero-word.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* --- Hero share strip --- */
.hero-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-share.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-share-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pierre);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Search Box --- */
.search-box {
  max-width: 520px;
  position: relative;
}

.search-inner {
  display: flex;
  align-items: center;
  background: var(--farine);
  border: 2px solid var(--ble);
  border-radius: 100px;
  padding: 4px 6px 4px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-inner:focus-within {
  border-color: var(--croute);
  box-shadow: 0 0 0 4px rgba(200, 149, 108, 0.12);
}

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

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--encre);
  padding: 10px 12px;
}

.search-input::placeholder {
  color: var(--pierre);
  font-style: italic;
}

.geo-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--encre);
  color: var(--farine);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.geo-btn svg {
  width: 18px;
  height: 18px;
}

.geo-btn:hover {
  background: var(--croute);
  transform: scale(1.05);
}

.geo-btn.loading {
  animation: pulse 1s infinite;
}

.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
}
.search-suggestions.open { display: block; }

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--ble);
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover,
.search-suggestion.active { background: rgba(200, 149, 108, 0.08); }

.search-suggestion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: var(--ble);
  color: var(--encre);
}
.search-suggestion-icon.suggestion-bakery { background: rgba(200, 149, 108, 0.18); }
.search-suggestion-icon.suggestion-address { background: rgba(140, 130, 121, 0.12); }

.search-suggestion-text {
  flex: 1;
  min-width: 0;
}
.search-suggestion-name {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--encre);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggestion-detail {
  font-size: 0.75rem;
  color: var(--pierre);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggestion-price {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
}

.search-suggestions-divider {
  padding: 4px 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pierre);
  background: rgba(232, 220, 200, 0.3);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}

.search-hint {
  font-size: 0.78rem;
  color: var(--pierre);
  margin-top: 8px;
  padding-left: 18px;
}

/* ============================================
   MAP
   ============================================ */
.map-section {
  margin-bottom: 0;
  padding: 48px 0 56px;
  background: var(--farine);
}

.map-outer {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(26,22,18,0.10), 0 1px 4px rgba(26,22,18,0.06);
  border: 1px solid var(--ble);
}

#map {
  height: 560px;
  width: 100%;
  z-index: 1;
}

/* Scroll hint overlay */
.map-scroll-hint {
  position: absolute;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-scroll-hint.visible {
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}

.map-scroll-hint-text {
  background: var(--farine);
  color: var(--encre);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 100px;
  box-shadow: 0 2px 16px rgba(26,22,18,0.12);
  border: 1px solid var(--ble);
}

/* Dimmed state when map is inactive */
.map-outer.inactive::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  z-index: 799;
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 0.3s ease;
}

.leaflet-tile-pane {
  filter: sepia(10%) saturate(88%) brightness(103%);
}

/* Custom price-colored clusters */
.price-cluster-icon {
  background: transparent !important;
  border: none !important;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: transparent !important;
}

/* Popup */
.leaflet-popup-content-wrapper {
  background: var(--farine);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--ble);
  padding: 0;
}

.leaflet-popup-content {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  min-width: 200px;
}

.leaflet-popup-tip {
  background: var(--farine);
  border: 1px solid var(--ble);
}

.popup-inner { padding: 14px; }

.popup-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1px;
}

.popup-address {
  font-size: 0.76rem;
  color: var(--pierre);
  margin-bottom: 4px;
}

.popup-google {
  font-size: 0.74rem;
  color: var(--pierre);
  margin-bottom: 8px;
}
.popup-google a {
  color: var(--croute);
  text-decoration: none;
  font-weight: 500;
}
.popup-google a:hover { text-decoration: underline; }

.popup-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.popup-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 12px;
  font-size: 0.78rem;
}

.popup-details dt { color: var(--pierre); }
.popup-details dd { font-weight: 600; text-align: right; }

.popup-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 7px;
  background: var(--fond);
  border: 1px solid var(--ble);
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.76rem;
  color: var(--pierre);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.popup-btn:hover {
  background: var(--ble);
  color: var(--encre);
}

/* Legend */
.map-legend {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  z-index: 1000;
  box-shadow: var(--shadow-card);
}

.map-legend-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pierre);
  margin-bottom: 5px;
  font-weight: 600;
}

.map-legend-gradient {
  width: 140px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, var(--bon-prix), var(--ble), var(--croute), var(--cher));
}

.map-legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--pierre);
  margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
}

/* --- Nearby Panel --- */
.nearby-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 360px;
  background: var(--farine);
  border-right: 1px solid var(--ble);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  box-shadow: 4px 0 24px rgba(26,22,18,0.08);
}

.nearby-panel.open {
  transform: translateX(0);
}

.nearby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ble);
  position: sticky;
  top: 0;
  background: var(--farine);
  z-index: 2;
}

.nearby-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.nearby-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--pierre);
  line-height: 1;
  padding: 4px;
  transition: color var(--transition);
}

.nearby-close:hover { color: var(--encre); }

.nearby-stats {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--pierre);
  border-bottom: 1px solid var(--ble);
  background: var(--fond);
}

.nearby-stats .num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--encre);
}

.nearby-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ble);
  cursor: pointer;
  transition: background var(--transition);
}

.nearby-item:hover {
  background: var(--fond);
}

.nearby-item-info { flex: 1; padding-right: 12px; }

.nearby-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.nearby-item-address {
  font-size: 0.74rem;
  color: var(--pierre);
}

.nearby-item-distance {
  font-size: 0.72rem;
  color: var(--croute);
  font-weight: 600;
  margin-top: 2px;
}

.nearby-item-right {
  text-align: right;
  flex-shrink: 0;
}

.nearby-item-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
}

.nearby-item-detail {
  font-size: 0.7rem;
  color: var(--pierre);
}

/* ============================================
   ANALYTICS
   ============================================ */
.analytics-section {
  padding: 64px 0;
  background: var(--farine);
}

/* --- Section header system --- */
.section-kicker {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--croute);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--croute);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--pierre);
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.6;
}

/* ============================================
   PODIUM
   ============================================ */
.podium-section {
  padding: 64px 0;
  background: var(--fond);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.podium-card {
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.podium-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.podium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.podium-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

.podium-award {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f0e6d3 0%, #e8dcc4 100%);
  border: 1px solid #d4c9b4;
  padding: 3px 12px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.06);
  text-transform: none;
}

.podium-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3px;
}

.podium-address {
  font-size: 0.76rem;
  color: var(--pierre);
  margin-bottom: 12px;
}

.podium-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.podium-detail {
  font-size: 0.78rem;
  color: var(--pierre);
}

.podium-runners {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ble);
}

.podium-runner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  padding: 3px 0;
}

.podium-runner-name {
  color: var(--encre);
  font-weight: 500;
}

.podium-runner-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.82rem;
}

.podium-share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ble);
  opacity: 0.4;
  transition: opacity var(--transition);
}

.podium-card:hover .podium-share { opacity: 1; }

.analytics-section > .container > .section-title {
  margin-bottom: 24px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--ble);
  margin-bottom: 32px;
}

.tab {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--pierre);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--croute);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.tab:hover { color: var(--encre); }

.tab.active {
  color: var(--encre);
  font-weight: 600;
}

.tab.active::after {
  transform: scaleX(1);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Chart cards */
.chart-card {
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.chart-header {
  margin-bottom: 16px;
}

.chart-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.chart-subtitle {
  font-size: 0.82rem;
  color: var(--pierre);
  margin-top: 2px;
}

canvas {
  display: block;
  max-width: 100%;
}

/* Distribution layout */
.distrib-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

.distrib-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.stat-block {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
}

.stat-block-label {
  font-size: 0.82rem;
  color: var(--pierre);
}

.stat-block-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
}

.stat-divider {
  height: 1px;
  background: var(--ble);
  margin: 8px 0;
}

/* Percentile tool */
.percentile-tool {
  margin-top: 8px;
}

.percentile-label {
  font-size: 0.78rem;
  color: var(--pierre);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.percentile-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.percentile-input {
  width: 80px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 6px 10px;
  border: 2px solid var(--ble);
  border-radius: var(--radius-sm);
  background: var(--fond);
  color: var(--encre);
  outline: none;
  transition: border-color var(--transition);
}

.percentile-input:focus {
  border-color: var(--croute);
}

.percentile-euro {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--pierre);
}

/* ============================================
   BAGUETTE THERMOMETER
   ============================================ */
.baguette-thermo {
  margin-top: 12px;
}

.baguette-thermo-track {
  position: relative;
  height: 18px;
  border-radius: 9px;
  background: linear-gradient(
    90deg,
    #ece2d0 0%,
    #ddd2bc 30%,
    #e4d9c5 60%,
    #ddd2bc 100%
  );
  box-shadow:
    inset 0 -2px 4px rgba(160, 120, 60, 0.12),
    inset 0 2px 4px rgba(255, 240, 210, 0.15),
    0 1px 4px rgba(26, 22, 18, 0.06);
  overflow: hidden;
}

/* Grignes décoratives sur le track */
.baguette-thermo-track::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    110deg,
    transparent 0px,
    transparent 18px,
    rgba(120, 80, 30, 0.08) 18px,
    rgba(120, 80, 30, 0.08) 20px,
    transparent 20px,
    transparent 22px
  );
}

.baguette-thermo-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 9px;
  background: linear-gradient(
    90deg,
    #3D7A5F 0%,
    #8db870 20%,
    #dfc69c 45%,
    #c8a56a 65%,
    #C8956C 80%,
    #C44536 100%
  );
  box-shadow: inset 0 -2px 4px rgba(160, 120, 60, 0.2);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.baguette-thermo-marker {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.baguette-thermo-pct {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--farine);
  background: var(--encre);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  position: relative;
  top: -22px;
}

/* Little arrow pointing down from the pct badge */
.baguette-thermo-pct::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--encre);
}

.baguette-thermo-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.62rem;
  color: var(--pierre);
  font-weight: 500;
}

.baguette-thermo-lo { color: var(--bon-prix); }
.baguette-thermo-hi { color: var(--cher); }

.percentile-result {
  font-size: 0.85rem;
  margin-top: 8px;
  line-height: 1.4;
  color: var(--encre);
}

.percentile-result strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* Arrondissements layout */
.arr-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.arr-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
}

.arr-card {
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.arr-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}

.arr-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.arr-card-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--farine);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arr-card-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arr-card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
}

.arr-card-bar {
  height: 5px;
  background: var(--ble);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.arr-card-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.arr-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--pierre);
}

/* Correlations layout */
.corr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.corr-insights {
  margin-top: 24px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.corr-insight-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.corr-insight-item + .corr-insight-item {
  border-top: 1px solid var(--ble);
}

.corr-insight-label {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--croute);
  padding-top: 3px;
  width: 50px;
}

/* ============================================
   EXPLORER
   ============================================ */
.explorer-section {
  padding: 64px 0;
  background: var(--farine);
}

.explorer-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.explorer-search-wrap {
  flex: 1;
  min-width: 200px;
}

.explorer-search {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  padding: 9px 14px;
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  background: var(--farine);
  color: var(--encre);
  outline: none;
  transition: border-color var(--transition);
}

.explorer-search:focus {
  border-color: var(--croute);
}

.explorer-search::placeholder {
  color: var(--pierre);
}

.explorer-filters {
  display: flex;
  gap: 8px;
}

.explorer-select {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  padding: 9px 12px;
  padding-right: 28px;
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  background: var(--farine);
  color: var(--encre);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238C8279' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.explorer-count {
  font-size: 0.82rem;
  color: var(--pierre);
  white-space: nowrap;
}

.explorer-table-wrap {
  overflow-x: auto;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.explorer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.explorer-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.explorer-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--pierre);
  padding: 12px 16px;
  text-align: left;
  background: var(--fond);
  border-bottom: 2px solid var(--ble);
  white-space: nowrap;
}

.th-price, .th-weight, .th-length, .th-value, .th-rating { text-align: right; }
.td-rating { font-size: 0.76rem; white-space: nowrap; }
.td-stars { letter-spacing: -1px; }
.th-arr { text-align: center; }

.explorer-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--ble);
  vertical-align: middle;
}

.explorer-table tbody tr {
  cursor: pointer;
  transition: background var(--transition);
}

.explorer-table tbody tr:hover {
  background: var(--fond);
}

.td-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.td-address {
  font-size: 0.72rem;
  color: var(--pierre);
  display: block;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.td-arr {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pierre);
}

.td-price {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
}

.td-num {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.page-btn {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--ble);
  border-radius: var(--radius-sm);
  background: var(--farine);
  color: var(--pierre);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.page-btn:hover {
  border-color: var(--croute);
  color: var(--encre);
}

.page-btn.active {
  background: var(--encre);
  color: var(--farine);
  border-color: var(--encre);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.page-ellipsis {
  font-size: 0.82rem;
  color: var(--pierre);
  padding: 0 4px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--farine);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-heavy);
}

.modal > .miette-crumbs {
  padding: 14px 24px 0;
  margin-bottom: 0;
}

.modal-header {
  padding: 12px 24px 14px;
  border-bottom: 1px solid var(--ble);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-address {
  font-size: 0.78rem;
  color: var(--pierre);
  margin-top: 2px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--pierre);
  padding: 0;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--encre); }

.modal-body { padding: 20px 24px; }

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
}

.modal-percentile {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 600;
  font-style: italic;
  color: var(--encre);
  background: linear-gradient(135deg, #f0e6d3 0%, #e8dcc4 100%);
  border: 1px solid #d4c9b4;
  padding: 5px 14px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.06);
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
}

.modal-detail-label { color: var(--pierre); }

.modal-detail-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.modal-conv-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pierre);
  font-weight: 600;
  margin-bottom: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--ble);
}

.conversation-text {
  font-size: 0.92rem;
  line-height: 1.8;
  white-space: pre-line;
  color: var(--encre);
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--ble);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag {
  background: var(--fond);
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--pierre);
}

.modal-share { margin-left: auto; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 40px 0;
  background: var(--fond);
  border-top: 1px solid var(--ble);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--pierre);
  max-width: 420px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--pierre);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--croute); }

/* ============================================
   SHARED SHARE ICONS
   ============================================ */
.share-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--pierre);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.share-link svg {
  width: 14px;
  height: 14px;
}

.share-link:hover {
  color: var(--encre);
  background: var(--ble);
}

.share-link--copied {
  color: var(--bon-prix) !important;
}

/* ============================================
   UTILITY
   ============================================ */
.price-bon { color: var(--bon-prix); }
.price-moyen { color: var(--croute); }
.price-cher { color: var(--cher); }

/* ============================================
   ÉTIQUETTES BOULANGERIE — kraft price tags
   ============================================ */
.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  font-weight: 600;
  font-style: italic;
  padding: 4px 14px 4px 12px;
  background: linear-gradient(135deg, #f0e6d3 0%, #e8dcc4 100%);
  border: 1px solid #d4c9b4;
  border-radius: 2px;
  position: relative;
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.06);
  color: var(--encre);
}

/* Zigzag left edge (serrated) */
.etiquette::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 3px,
    #f0e6d3 3px,
    #f0e6d3 4px,
    transparent 4px,
    transparent 7px
  );
  mask-image: repeating-linear-gradient(
    180deg,
    black 0px, black 3px,
    transparent 3px, transparent 4px
  );
  -webkit-mask-image: repeating-linear-gradient(
    180deg,
    black 0px, black 3px,
    transparent 3px, transparent 4px
  );
}

/* Pin hole */
.etiquette::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  border: 1px solid #c4b8a2;
  background: var(--fond);
}

.etiquette--bon {
  border-left: 3px solid var(--bon-prix);
  color: var(--bon-prix);
}

.etiquette--cher {
  border-left: 3px solid var(--cher);
  color: var(--cher);
}

.etiquette--moyen {
  border-left: 3px solid var(--croute);
  color: #8a6d42;
}

/* ============================================
   COMPARE / COMMUNITY SECTION
   ============================================ */
.compare-section,
.wall-section {
  padding: 64px 0;
  background: var(--fond);
}

.compare-vs-bon { color: var(--bon-prix); }
.compare-vs-cher { color: var(--cher); }
.compare-vs-moyen { color: var(--croute); }

/* --- Arrondissement picker grid --- */
.arr-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.arr-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.arr-pick-btn:hover {
  border-color: var(--croute);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.arr-pick-btn.active {
  background: var(--encre);
  border-color: var(--encre);
  color: var(--farine);
  box-shadow: var(--shadow-elevated);
}

.arr-pick-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

.arr-pick-name {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.65rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.arr-pick-count {
  font-size: 0.58rem;
  opacity: 0.5;
}

/* --- Battle arena --- */
.battle-arena {
  animation: fadeIn 0.3s ease;
}

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

.battle-header {
  margin-bottom: 24px;
}

.battle-header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.battle-header-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--pierre);
}

.battle-stat strong {
  color: var(--encre);
}

/* --- Duel cards --- */
.battle-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 28px;
}

.duel-card {
  background: var(--farine);
  border: 2px solid var(--ble);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.duel-card--bon { border-color: var(--bon-prix); }
.duel-card--cher { border-color: var(--cher); }

.duel-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--pierre);
}

.duel-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.duel-address {
  font-size: 0.72rem;
  color: var(--pierre);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duel-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.duel-rating {
  font-size: 0.75rem;
  color: var(--pierre);
  margin-bottom: 4px;
}

.duel-detail {
  font-size: 0.75rem;
  color: var(--pierre);
}

.duel-vs {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--croute);
  padding: 0 16px;
  text-align: center;
}

/* --- Battle ranking --- */
.battle-ranking {
  margin-bottom: 24px;
}

.battle-ranking-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pierre);
  margin-bottom: 10px;
}

.battle-ranking-list {
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  max-height: 320px;
  overflow-y: auto;
}

.battle-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ble);
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.85rem;
}

.battle-rank-row:last-child { border-bottom: none; }
.battle-rank-row:hover { background: rgba(200, 149, 108, 0.05); }

.battle-rank-row.battle-rank-top {
  font-weight: 600;
  background: rgba(200, 149, 108, 0.04);
}

.battle-rank-pos {
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

.battle-rank-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.battle-rank-rating {
  font-size: 0.7rem;
  color: var(--pierre);
  white-space: nowrap;
}

.battle-rank-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.battle-rank-weight {
  font-size: 0.75rem;
  color: var(--pierre);
  flex-shrink: 0;
  width: 45px;
  text-align: right;
}

/* --- Challenger input --- */
.battle-challenger {
  background: var(--farine);
  border: 2px dashed var(--ble);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.battle-challenger-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.battle-challenger-row {
  display: flex;
  gap: 10px;
  max-width: 360px;
}

.battle-input {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  background: var(--fond);
  color: var(--encre);
  outline: none;
  transition: border-color 0.15s;
}

.battle-input:focus { border-color: var(--croute); }
.battle-input::placeholder { color: var(--pierre); font-weight: 400; }

.battle-go {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--encre);
  color: var(--farine);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.battle-go:hover {
  background: var(--croute);
  transform: translateY(-1px);
}

/* --- Challenger result --- */
.battle-challenger-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ble);
  animation: fadeIn 0.3s ease;
}

.challenger-verdict {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.challenger-verdict-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.challenger-verdict-text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.challenger-rank {
  font-size: 0.88rem;
  color: var(--encre);
  margin-bottom: 2px;
}

.challenger-diff {
  font-size: 0.82rem;
  color: var(--pierre);
}

.challenger-share {
  margin-top: 10px;
}
.compare-vs-moyen { color: var(--croute); }

/* --- Wall header --- */
.wall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wall-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.wall-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wall-filter-arr {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  padding: 5px 10px;
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  background: var(--farine);
  color: var(--encre);
  cursor: pointer;
}

.wall-count {
  font-size: 0.78rem;
  color: var(--pierre);
  white-space: nowrap;
}

/* --- Wall filter pills --- */
.wall-filter-pills {
  display: flex;
  gap: 4px;
}

.wall-pill {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid var(--ble);
  border-radius: 100px;
  background: transparent;
  color: var(--pierre);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wall-pill:hover { border-color: var(--croute); color: var(--encre); }

.wall-pill.active {
  background: var(--encre);
  border-color: var(--encre);
  color: var(--farine);
}

/* --- Wall feed (masonry-like variable grid) --- */
.wall-feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 10px;
}

/* --- Wall card --- */
.wall-card {
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  padding: 12px 14px 10px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

.wall-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}

/* Medium card: spans 2 cols */
.wall-card--md {
  grid-column: span 2;
}

/* Large/featured card: spans 2 cols, elevated */
.wall-card--lg {
  grid-column: span 2;
  border-color: var(--croute);
  background: linear-gradient(135deg, var(--farine) 0%, rgba(200,149,108,0.04) 100%);
  box-shadow: var(--shadow-elevated);
}
.wall-card--lg .wall-bakery { font-size: 1.1rem; }
.wall-card--lg .wall-price { font-size: 1.15rem; }

/* User's own card */
.wall-card.wall-card--mine {
  border-color: var(--croute);
  box-shadow: 0 0 0 1px var(--croute), var(--shadow-card);
}

.wall-card-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.wall-card-header {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.wall-bakery {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.wall-rating {
  font-size: 0.68rem;
  color: var(--pierre);
  white-space: nowrap;
}

.wall-arr-pill {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 100px;
  background: var(--fond);
  color: var(--pierre);
  flex-shrink: 0;
  margin-top: 2px;
}

.wall-address {
  font-size: 0.72rem;
  color: var(--pierre);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wall-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.wall-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
}

.wall-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 100px;
  background: var(--fond);
}

.wall-verdict-inline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-weight: 600;
  font-style: italic;
  white-space: nowrap;
  background: linear-gradient(135deg, #f0e6d3 0%, #e8dcc4 100%);
  border: 1px solid #d4c9b4;
  padding: 2px 10px;
  border-radius: 2px;
}

/* "votre baguette" badge */
.wall-you-badge {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--croute);
  padding: 1px 8px;
  border: 1px solid var(--croute);
  border-radius: 100px;
  margin-bottom: 4px;
}

/* --- Card links row --- */
.wall-links {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.wall-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  color: var(--pierre);
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
}

.wall-link:hover { color: var(--croute); }
.wall-link svg { flex-shrink: 0; }

/* --- Google stars --- */
.stars { color: #E8A838; font-size: 0.72rem; letter-spacing: -1px; }
.stars-empty { opacity: 0.2; }

/* --- Emoji reactions row --- */
.wall-reactions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--ble);
  flex-wrap: wrap;
}

.wall-emoji-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px 3px 4px;
  border: 1px solid var(--ble);
  border-radius: 100px;
  background: var(--farine);
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--pierre);
}

.wall-emoji-btn:hover {
  border-color: var(--croute);
  background: rgba(200, 149, 108, 0.06);
  transform: scale(1.08);
}

.wall-emoji-btn.wall-emoji-active {
  border-color: var(--croute);
  background: rgba(200, 149, 108, 0.12);
}

.wall-emoji-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.wall-emoji-char {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.wall-emoji-btn:hover .wall-emoji-img,
.wall-emoji-btn:hover .wall-emoji-char {
  transform: scale(1.15);
}

/* "+" add reaction button */
.wall-emoji-add {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px dashed var(--ble);
  background: transparent;
  color: var(--pierre);
  font-size: 1rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.wall-emoji-add:hover {
  border-color: var(--croute);
  color: var(--croute);
  background: rgba(200, 149, 108, 0.06);
  transform: scale(1.1);
}

/* Pop animation on react */
@keyframes emojiPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.6) rotate(-8deg); }
  60%  { transform: scale(0.9) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

.wall-emoji-pop {
  animation: emojiPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wall-emoji-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--encre);
}

/* --- Emoji picker popup --- */
.emoji-picker {
  position: absolute;
  bottom: calc(100% + 6px);
  right: -4px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  width: 210px;
  z-index: 50;
  animation: pickerIn 0.15s ease;
}

@keyframes pickerIn {
  from { opacity: 0; transform: translateY(4px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.emoji-picker-item {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, transform 0.12s;
}

.emoji-picker-item:hover {
  background: rgba(200, 149, 108, 0.1);
  transform: scale(1.2);
}

.emoji-picker-item.emoji-picker-active {
  background: rgba(200, 149, 108, 0.18);
}

.emoji-picker-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.emoji-picker-char {
  font-size: 1.15rem;
  line-height: 1;
}

/* --- Google link in modal --- */
.modal-google-link {
  color: var(--croute);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}
.modal-google-link:hover { text-decoration: underline; }

/* --- Google rating in nearby --- */
.nearby-item-rating {
  display: inline;
  font-size: 0.72rem;
  color: var(--pierre);
}

/* ============================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
  /* Hide baguette nav on tablet, header nav is enough */
  .baguette-nav { display: none; }

  /* Grids → single column */
  .distrib-grid,
  .arr-grid,
  .corr-grid { grid-template-columns: 1fr; }

  /* Map */
  #map { height: 420px; }
  .map-section { padding: 36px 0 44px; }
  .nearby-panel { width: 320px; }

  /* Hero */
  .hero { padding: 56px 0 40px; }
  .hero-headline { font-size: 2.2rem; }

  /* Podium: 2 + 1 layout */
  .podium-grid { grid-template-columns: 1fr 1fr; }
  .podium-grid > :last-child { grid-column: 1 / -1; }

  /* Arr sidebar: remove max-height when stacked under chart */
  .arr-sidebar { max-height: none; }

  /* Explorer controls stack */
  .explorer-controls { flex-direction: column; align-items: stretch; }
  .explorer-filters { flex-wrap: wrap; }
  .explorer-search-wrap { min-width: 0; }

  /* Battle */
  .arr-picker { grid-template-columns: repeat(4, 1fr); }
  .battle-duel { grid-template-columns: 1fr auto 1fr; }
  .duel-price { font-size: 1.3rem; }
  .wall-feed { grid-template-columns: repeat(2, 1fr); }
  .wall-card--lg, .wall-card--md { grid-column: span 2; }
  .wall-filter-pills { flex-wrap: wrap; }
}

/* ============================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================ */
@media (max-width: 600px) {
  /* Base */
  .container { padding: 0 16px; }

  /* Header */
  .header-row { height: 48px; }
  .logo { font-size: 1.25rem; }

  /* Hide header nav text links on mobile, show bottom tab bar instead */
  .header-nav { display: none; }
  .baguette-nav {
    position: fixed;
    right: auto;
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    transform: none;
    z-index: 100;
    opacity: 1;
    pointer-events: auto;
  }
  .baguette-body {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
    background: var(--farine);
    border-radius: 0;
    box-shadow: none;
    gap: 0;
    border-top: 1px solid var(--ble);
  }
  .baguette-body::before { display: none; }
  .baguette-grigne {
    width: auto;
    height: auto;
    flex-direction: column;
    padding: 4px 12px;
  }
  .baguette-grigne::before { display: none; }
  .baguette-label {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 0.68rem;
    color: var(--pierre);
  }
  .baguette-grigne.active .baguette-label {
    color: var(--croute);
    font-weight: 700;
    transform: none;
  }

  /* Pad body for bottom nav */
  body { padding-bottom: 60px; }

  /* Hero */
  .hero { padding: 36px 0 28px; }
  .hero-kicker { font-size: 0.72rem; margin-bottom: 10px; letter-spacing: 0.08em; }
  .hero-headline { font-size: clamp(1.5rem, 7vw, 2rem); margin-bottom: 14px; }
  .hero-prose { font-size: 0.95rem; min-height: 5em; margin-bottom: 24px; }
  .search-box { max-width: 100%; }
  .search-input { font-size: 0.88rem; padding: 8px 10px; }
  .search-hint { font-size: 0.72rem; padding-left: 12px; }

  /* Map */
  #map { height: 300px; }
  .map-section { padding: 24px 0 32px; }
  .map-outer { border-radius: 12px; }
  .nearby-panel { width: 100%; max-height: 340px; }
  .map-legend { bottom: 8px; right: 8px; padding: 8px 10px; }
  .map-legend-gradient { width: 100px; }
  .map-legend-title { font-size: 0.62rem; }
  .map-legend-labels { font-size: 0.62rem; }

  /* Podium */
  .podium-grid { grid-template-columns: 1fr; gap: 14px; }
  .podium-grid > :last-child { grid-column: auto; }
  .podium-card { padding: 18px 16px 14px; }
  .podium-icon { font-size: 1.5rem; margin-bottom: 8px; }
  .podium-award { font-size: 0.65rem; margin-bottom: 8px; }
  .podium-name { font-size: 1.05rem; }
  .podium-value { font-size: 1.3rem; }
  .podium-runner-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
  }
  .podium-runner { font-size: 0.75rem; }
  .podium-runner-value { font-size: 0.76rem; }

  /* Analytics */
  .analytics-section > .container > .section-title { margin-bottom: 16px; }
  .section-kicker { font-size: 0.66rem; margin-bottom: 8px; }
  .section-title { padding-bottom: 12px; }
  .section-title::after { width: 28px; height: 2px; }
  .section-subtitle { font-size: 0.9rem; margin-bottom: 20px; }
  .podium-section,
  .analytics-section,
  .compare-section,
  .wall-section,
  .explorer-section { padding: 40px 0; }

  /* Tabs — horizontal scroll, no scrollbar */
  .tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    margin-bottom: 24px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 8px 14px; font-size: 0.8rem; }

  /* Chart cards */
  .chart-card { padding: 14px; border-radius: var(--radius-md); }
  .chart-title { font-size: 1rem; }
  .chart-subtitle { font-size: 0.76rem; }

  /* Distribution sidebar */
  .distrib-sidebar { padding: 14px; }
  .stat-block-label { font-size: 0.78rem; }
  .stat-block-value { font-size: 0.9rem; }
  .percentile-input { width: 72px; font-size: 0.95rem; padding: 5px 8px; }
  .percentile-result { font-size: 0.8rem; }

  /* Arr cards */
  .arr-sidebar { max-height: none; gap: 8px; }
  .arr-card { padding: 10px 12px; }
  .arr-card-top { gap: 6px; margin-bottom: 6px; }
  .arr-card-rank { width: 20px; height: 20px; font-size: 0.62rem; }
  .arr-card-label { font-size: 0.88rem; }
  .arr-card-price { font-size: 0.95rem; }
  .arr-card-meta { font-size: 0.68rem; }

  /* Correlation insights — stack label above text */
  .corr-insight-item { flex-direction: column; gap: 2px; }
  .corr-insight-label { width: auto; font-size: 0.68rem; }
  .corr-insight-item span:last-child { font-size: 0.84rem; }
  .corr-insights { padding: 14px 16px; }

  /* Explorer */
  .explorer-table th,
  .explorer-table td { padding: 8px 10px; }
  /* Hide Long., €/100g, and Google columns on mobile */
  .explorer-table th:nth-child(5),
  .explorer-table td:nth-child(5),
  .explorer-table th:nth-child(6),
  .explorer-table td:nth-child(6),
  .explorer-table th:nth-child(7),
  .explorer-table td:nth-child(7) { display: none; }
  .td-name { font-size: 0.88rem; }
  .td-address { display: none; }
  .td-price { font-size: 0.88rem; }
  .td-num { font-size: 0.8rem; }
  .td-arr { font-size: 0.72rem; }
  .explorer-select { font-size: 0.78rem; padding: 8px 10px; padding-right: 26px; }

  /* Pagination */
  .page-btn { min-width: 32px; height: 32px; font-size: 0.78rem; }

  /* Modal */
  .modal-overlay { padding: 10px; }
  .modal {
    max-height: 92vh;
    border-radius: var(--radius-md);
    max-width: 100%;
  }
  .modal-header { padding: 16px 16px 12px; }
  .modal-title { font-size: 1.15rem; }
  .modal-address { font-size: 0.72rem; }
  .modal-body { padding: 14px 16px; }
  .modal-price { font-size: 1.5rem; }
  .modal-price-row { flex-wrap: wrap; gap: 8px; }
  .modal-percentile { font-size: 0.74rem; }
  .modal-details-grid { grid-template-columns: 1fr; gap: 6px; }
  .modal-detail { font-size: 0.8rem; }
  .modal-conv-label { font-size: 0.68rem; padding-top: 12px; }
  .conversation-text { font-size: 0.85rem; line-height: 1.7; }
  .modal-footer { padding: 10px 16px; flex-wrap: wrap; gap: 6px; }
  .tag { font-size: 0.65rem; padding: 2px 8px; }

  /* Battle */
  .arr-picker { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .arr-pick-btn { padding: 8px 4px; }
  .arr-pick-num { font-size: 0.82rem; }
  .arr-pick-name { font-size: 0.58rem; }
  .arr-pick-count { display: none; }
  .battle-duel { grid-template-columns: 1fr; gap: 8px; }
  .duel-vs { padding: 4px 0; font-size: 1.2rem; }
  .duel-price { font-size: 1.3rem; }
  .duel-card { padding: 14px; }
  .battle-header-stats { flex-direction: column; gap: 4px; }
  .battle-ranking-list { max-height: 260px; }
  .battle-rank-weight { display: none; }
  .battle-rank-rating { display: none; }
  .battle-challenger { padding: 14px 16px; }
  .battle-challenger-row { flex-direction: column; max-width: none; }
  .wall-feed { grid-template-columns: 1fr; }
  .wall-card--lg, .wall-card--md { grid-column: span 1; }
  .wall-card { padding: 10px 12px 8px; }
  .wall-bakery { font-size: 0.88rem; }
  .wall-price { font-size: 0.92rem; }
  .wall-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wall-controls { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
  .wall-emoji-img { width: 16px; height: 16px; }
  .wall-emoji-char { font-size: 0.85rem; }
  .wall-emoji-btn { padding: 2px 6px 2px 3px; }
  .wall-emoji-add { width: 22px; height: 22px; font-size: 0.9rem; }
  .emoji-picker { width: 180px; right: -8px; }
  .wall-pill { font-size: 0.68rem; padding: 3px 8px; }

  /* Footer */
  .footer-content { flex-direction: column; gap: 20px; }
  .site-footer { padding: 28px 0; }
  .footer-logo { font-size: 1.1rem; }
  .footer-text { font-size: 0.78rem; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .footer-links a { font-size: 0.78rem; }
}

/* ============================================
   RESPONSIVE — Small phones (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
  .hero-headline { font-size: 1.4rem; }
  .hero-prose { font-size: 0.88rem; }
  .search-inner { padding: 3px 4px 3px 12px; }
  .geo-btn { width: 34px; height: 34px; }
  .geo-btn svg { width: 16px; height: 16px; }

  .podium-value { font-size: 1.15rem; }
  .podium-runners { margin-top: 10px; padding-top: 10px; }
  .podium-runner { font-size: 0.72rem; }

  .explorer-filters { flex-direction: column; }
  .explorer-select { width: 100%; }

  .tab { padding: 7px 10px; font-size: 0.76rem; }

  .modal-price { font-size: 1.3rem; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
