/* ============================================
   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%) translateX(40px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(.2, .7, .3, 1);
}

.baguette-nav--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.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-caption {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--croute);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--encre);
  margin-bottom: 10px;
  max-width: 780px;
}

.hero-range {
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  white-space: nowrap;
}
.hero-range-lo { color: var(--bon-prix); }
.hero-range-hi { color: var(--cher); }

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  color: var(--encre);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  max-width: 680px;
  margin-bottom: 22px;
}

/* --- Inline distribution strip (full viewport width) --- */
.hero-strip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 240px;
  margin-top: 20px;
  margin-bottom: 36px;
  position: relative;
  overflow: visible;
}

.hero-strip canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
}

.hero-strip-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-strip-tag {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-strip-tag.visible {
  opacity: 1;
}

.hero-strip-tag:hover .hero-strip-tag-card {
  transform: rotate(0deg) translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.hero-strip-tag-line {
  height: 1px;
  background: linear-gradient(to right, rgba(91, 63, 46, 0.55), rgba(91, 63, 46, 0.15));
  position: absolute;
  left: 0;
  top: 0;
}

.hero-strip-tag-cardwrap {
  position: absolute;
  transform: translateX(-50%);
}

.hero-strip-tag-card {
  padding: 5px 10px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  line-height: 1.15;
  position: relative;
}

.hero-strip-tag:nth-child(even) .hero-strip-tag-card {
  transform: rotate(1.5deg);
}

.hero-strip-tag-kicker {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pierre);
  font-weight: 600;
}

.hero-strip-tag-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--encre);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-strip-tag-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--croute);
}

.hero-strip-tooltip {
  position: absolute;
  background: rgba(40, 32, 25, 0.95);
  color: #FAF4E8;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-family: 'Source Sans 3', sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 8px));
  transition: opacity 0.12s ease;
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-strip-tooltip.visible {
  opacity: 1;
}

.scatter-tip {
  position: absolute;
  display: none;
  background: rgba(40, 32, 25, 0.95);
  color: #FAF4E8;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-family: 'Source Sans 3', sans-serif;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1.3;
}
.scatter-tip-name { font-weight: 600; }
.scatter-tip-meta { opacity: 0.85; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; margin-top: 2px; }

.hero-strip-tooltip-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  margin-left: 6px;
}

@media (max-width: 600px) {
  .hero-strip {
    height: auto;
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    margin-bottom: 24px;
  }
  .hero-strip canvas { height: 160px; }
  .hero-strip-tag-name { font-size: 0.82rem; max-width: 110px; }
  .hero-strip-tag-kicker { font-size: 0.58rem; }
  .hero-strip-tag-price { font-size: 0.72rem; }
}

/* Stacked tags — replaces overlapping cards on narrow widths */
.hero-strip-tags--stacked {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 16px 0;
  pointer-events: auto;
}
.hero-strip-tag-stack {
  --dot-color: var(--croute);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--ble);
  background: var(--farine);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  transition: box-shadow var(--transition);
}
.hero-strip-tag-stack:hover {
  box-shadow: var(--shadow-card);
}
.hero-strip-tag-stack-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-color);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--farine), 0 0 0 3px rgba(91, 63, 46, 0.25);
}
.hero-strip-tag-stack-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}
.hero-strip-tag-stack-kicker {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pierre);
  font-weight: 600;
}
.hero-strip-tag-stack-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--encre);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-strip-tag-stack-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--croute);
  flex-shrink: 0;
}

/* --- Method line with counter --- */
.hero-method {
  font-size: 1.02rem;
  color: var(--pierre);
  margin-bottom: 32px;
  max-width: 640px;
  line-height: 1.55;
}

.hero-count {
  color: var(--croute);
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-block;
  min-width: 2.5ch;
  letter-spacing: -0.01em;
}

/* --- 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-nodata {
  margin-top: 6px;
  padding: 10px 0 4px;
  font-size: 0.82rem;
  color: var(--pierre);
  font-style: italic;
  line-height: 1.45;
}

.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;
}

/* --- Map filters overlay --- */
.map-filters {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 248px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 1000;
  font-family: 'Source Sans 3', sans-serif;
  overflow: hidden;
}

.map-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--ble);
  background: rgba(232, 220, 200, 0.4);
}

.map-filters-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pierre);
  font-weight: 600;
}

.map-filters-toggle {
  background: transparent;
  border: 1px solid var(--ble);
  border-radius: 4px;
  color: var(--pierre);
  width: 22px;
  height: 22px;
  line-height: 1;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.map-filters-toggle:hover {
  background: var(--ble);
  color: var(--encre);
}

.map-filters.collapsed .map-filters-body {
  display: none;
}

.map-filters-body {
  padding: 12px 14px 10px;
}

.map-filter-group {
  margin-bottom: 14px;
}

.map-filter-group:last-of-type {
  margin-bottom: 10px;
}

.map-filter-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.map-filter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pierre);
  font-weight: 600;
}

.map-filter-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--encre);
  font-weight: 600;
}

/* --- Dual range slider --- */
.map-filter-slider-wrap {
  position: relative;
  height: 22px;
  margin: 0 4px;
}

.map-filter-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ble);
  border-radius: 3px;
  transform: translateY(-50%);
}

.map-filter-slider-fill {
  position: absolute;
  top: 50%;
  height: 3px;
  background: var(--croute);
  border-radius: 3px;
  transform: translateY(-50%);
  pointer-events: none;
}

.map-filter-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 22px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.map-filter-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--farine);
  border: 2px solid var(--croute);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  cursor: pointer;
  margin-top: 0;
}

.map-filter-slider::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--farine);
  border: 2px solid var(--croute);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  cursor: pointer;
}

.map-filter-slider::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
}

.map-filter-slider::-moz-range-track {
  background: transparent;
  border: none;
}

/* Rating pills */
.map-filter-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.map-filter-pill {
  padding: 5px 9px;
  border: 1px solid var(--ble);
  background: var(--farine);
  border-radius: 100px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.74rem;
  color: var(--pierre);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.map-filter-pill:hover {
  background: var(--ble);
  color: var(--encre);
}

.map-filter-pill.active {
  background: var(--croute);
  border-color: var(--croute);
  color: #FAF4E8;
}

.map-filters-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed var(--ble);
  margin-top: 4px;
}

.map-filters-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--pierre);
}

.map-filters-reset {
  background: transparent;
  border: none;
  color: var(--croute);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  text-decoration-color: rgba(196, 69, 54, 0.3);
  transition: text-decoration-color var(--transition);
}

.map-filters-reset:hover {
  text-decoration-color: var(--croute);
}

/* --- Share strip beneath the map --- */
.map-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding: 10px 14px;
  flex-wrap: wrap;
}
.map-share-label {
  font-size: 0.82rem;
  color: var(--pierre);
  font-style: italic;
}
@media (max-width: 600px) {
  .map-share { gap: 10px; margin-top: 14px; padding: 8px 4px; }
  .map-share-label { font-size: 0.76rem; }
}

/* --- 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: 24px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: end; /* cards flush to a common baseline — the podium floor */
}

.podium-card {
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  padding: 24px 22px 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(.2,.7,.3,1),
    box-shadow var(--transition);
  will-change: opacity, transform;
}

.podium-card:hover {
  box-shadow: var(--shadow-elevated);
}

.podium-grid--revealed .podium-card {
  opacity: 1;
  transform: translateY(0);
}
.podium-grid--revealed .podium-card:nth-child(2) { transition-delay: 0.12s; }
.podium-grid--revealed .podium-card:nth-child(3) { transition-delay: 0.24s; }

/* Featured (gold, best-rated) card sits on the top step of the podium */
@media (min-width: 901px) {
  .podium-card--featured {
    padding-top: 44px;
    padding-bottom: 24px;
    box-shadow: 0 14px 32px -10px rgba(26, 22, 18, 0.24), var(--shadow-card);
    background: linear-gradient(to bottom, #fbf3dc 0%, var(--farine) 90px);
  }
  .podium-card--featured .podium-accent {
    height: 5px;
  }
  .podium-card--featured .podium-award {
    font-size: 0.95rem;
    padding: 6px 20px;
  }
  .podium-card--featured .podium-value {
    font-size: 1.8rem;
  }
  .podium-card--featured .podium-icon {
    font-size: 1.85rem;
  }
}

.podium-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1;
}

.podium-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.podium-icon {
  font-size: 1.55rem;
  line-height: 1;
}

.podium-award {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  padding: 5px 20px;
  background: color-mix(in srgb, currentColor 16%, #fdf5e2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 30%, transparent);
  clip-path: polygon(
    8px 0,
    calc(100% - 8px) 0,
    100% 50%,
    calc(100% - 8px) 100%,
    8px 100%,
    0 50%
  );
  transform-origin: left center;
  transform: scaleX(0.35);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1), opacity 0.4s;
}
.podium-grid--revealed .podium-card .podium-award {
  transform: scaleX(1);
  opacity: 1;
  transition-delay: 0.2s;
}
.podium-grid--revealed .podium-card:nth-child(2) .podium-award { transition-delay: 0.32s; }
.podium-grid--revealed .podium-card:nth-child(3) .podium-award { transition-delay: 0.44s; }

.podium-criterion {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pierre);
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ble);
}

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

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

.podium-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.podium-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.podium-pill {
  display: inline-flex;
  align-items: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
}

.podium-pill--lo {
  background: rgba(61, 122, 95, 0.12);
  color: #2e6149;
}

.podium-pill--hi {
  background: rgba(196, 69, 54, 0.12);
  color: #a5372c;
}

.podium-pill--gold {
  background: rgba(194, 134, 58, 0.14);
  color: #8a5f23;
}

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

.podium-chart {
  margin-bottom: 18px;
}

.podium-chart-caption {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pierre);
  font-weight: 600;
  margin-bottom: 6px;
}

.podium-strip {
  height: 30px;
  position: relative;
}

.podium-strip-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.podium-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--pierre);
  font-variant-numeric: tabular-nums;
}

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

.podium-runners-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pierre);
  font-weight: 600;
  margin-bottom: 8px;
}

.podium-runner {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 3px 0;
}

.podium-runner-rank {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ble);
  color: var(--encre);
  border-radius: 50%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
}

.podium-runner-name {
  color: var(--encre);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-runner-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.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);
}

/* Matrice (quadrant) chart */
.chart-card--matrice { position: relative; }

.matrice-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 10px 20px;
  align-items: center;
}
.matrice-corner {
  --quadrant-color: var(--pierre);
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.82rem;
  padding: 2px 0;
}
.matrice-corner--tl { grid-column: 1; grid-row: 1; justify-self: start; }
.matrice-corner--tr { grid-column: 2; grid-row: 1; justify-self: end;   text-align: right; flex-direction: row-reverse; }
.matrice-corner--bl { grid-column: 1; grid-row: 3; justify-self: start; }
.matrice-corner--br { grid-column: 2; grid-row: 3; justify-self: end;   text-align: right; flex-direction: row-reverse; }
.matrice-wrap       { grid-column: 1 / -1; grid-row: 2; position: relative; }

.matrice-corner-head {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--quadrant-color);
}
.matrice-corner-icon { font-size: 1rem; line-height: 1; }
.matrice-corner-name {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.matrice-corner-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--pierre);
  font-weight: 600;
}

@media (max-width: 560px) {
  .matrice-frame { gap: 8px 10px; }
  .matrice-corner { font-size: 0.74rem; gap: 6px; }
  .matrice-corner-name { font-weight: 600; }
  .matrice-corner-count { font-size: 0.7rem; }
}

.matrice-tooltip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  min-width: 200px;
  max-width: 260px;
  padding: 10px 12px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  font-size: 0.82rem;
  line-height: 1.4;
}
.matrice-tip-quadrant {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.matrice-tip-name {
  font-weight: 600;
  color: var(--encre);
  margin-bottom: 4px;
}
.matrice-tip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--pierre);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.factor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.chart-header {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ble);
}

.chart-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--encre);
}

.chart-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--pierre);
  margin-top: 4px;
  line-height: 1.4;
}

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-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.corr-insights {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.corr-insight-item {
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--encre);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
}

.corr-insight-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--croute);
}

/* ============================================
   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-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-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: var(--fond);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
}

.modal-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

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

.modal-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--encre);
  line-height: 1.3;
}

.modal-stat-value .stars,
.modal-stat-value .stars-empty {
  font-size: 0.88rem;
  margin-right: 2px;
}

.modal-stat-aux {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--pierre);
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.modal-link:hover {
  background: var(--ble);
  border-color: var(--croute);
}
.modal-link svg { flex-shrink: 0; }

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

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

/* ============================================
   FOOTER — dense two-row editorial layout
   ============================================ */
.site-footer {
  padding: 0 0 22px;
  background: var(--fond);
  margin-top: 60px;
}

.footer-grigne {
  margin: 0 auto 28px;
  width: 120px;
  display: flex;
  justify-content: center;
}
.footer-grigne svg {
  width: 100%;
  height: 22px;
  stroke: var(--croute);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.5;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Top row: brand + Coulisses CTA ── */
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 40px;
  align-items: center;
}

.footer-brand { display: flex; flex-direction: column; gap: 2px; }

.footer-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--croute);
  font-weight: 600;
}

#footer-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--encre);
  line-height: 1.1;
  margin-top: 2px;
}

.footer-text {
  font-size: 0.86rem;
  color: var(--pierre);
  max-width: 460px;
  line-height: 1.5;
  margin-top: 6px;
}

/* Coulisses CTA card — denser */
.footer-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fdf5e2;
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--encre);
  transition: transform var(--transition), box-shadow var(--transition), background 0.2s ease;
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  background: #fbeec9;
}
.footer-cta:hover .footer-cta-arrow { transform: translateX(4px); }

.footer-cta-icon {
  font-size: 1.55rem;
  line-height: 1;
}

.footer-cta-body { display: block; line-height: 1.3; }

.footer-cta-title {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--encre);
}

.footer-cta-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--pierre);
  margin-top: 1px;
}

.footer-cta-arrow {
  font-size: 1.25rem;
  color: var(--croute);
  transition: transform var(--transition);
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1;
}

/* ── Bottom row: share + update date ── */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--ble);
  font-size: 0.76rem;
  color: var(--pierre);
}

.footer-share-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-share-label {
  font-weight: 500;
  color: var(--pierre);
  letter-spacing: 0.01em;
}

.footer-share-icons { display: inline-flex; gap: 2px; }

.footer-meta {
  font-variant-numeric: tabular-nums;
  color: var(--pierre);
}

/* ============================================
   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(7, 1fr);
  gap: 6px;
  margin-bottom: 28px;
}

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

.arr-pick-btn:hover {
  border-color: var(--croute);
  background: var(--farine);
}

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

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

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

.arr-pick-count {
  font-size: 0.55rem;
  opacity: 0.45;
}

/* --- 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 search box --- */
.wall-search-wrap {
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 360px;
  position: relative;
}
.wall-search-wrap::before {
  content: '';
  position: absolute;
  left: 12px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  background: var(--pierre);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") center / contain no-repeat;
  pointer-events: none;
}
.wall-search {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.84rem;
  padding: 7px 12px 7px 34px;
  border: 1px solid var(--ble);
  border-radius: var(--radius-md);
  background: var(--farine);
  color: var(--encre);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wall-search:focus {
  border-color: var(--croute);
  box-shadow: 0 0 0 3px rgba(200,149,108,0.15);
}
.wall-search::placeholder { color: var(--pierre); }

/* --- Empty + load more --- */
.wall-feed-footer { margin-top: 28px; text-align: center; }
.wall-empty {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--pierre);
  padding: 40px 16px;
}
.wall-load-more {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border: 1px solid var(--ble);
  border-radius: 100px;
  background: var(--farine);
  color: var(--encre);
  cursor: pointer;
  transition: all 0.15s ease;
}
.wall-load-more:hover {
  border-color: var(--croute);
  color: var(--croute);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}
.wall-load-more-remain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--pierre);
  font-weight: 400;
}

/* --- 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 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: stack the 3 cards on tablet to keep each card breathing */
  .podium-grid { grid-template-columns: 1fr; }

  /* 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 {
    display: block;
    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-caption { font-size: 0.68rem; margin-bottom: 10px; letter-spacing: 0.1em; }
  .hero-headline {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
    margin-bottom: 8px;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .hero-range { font-size: 0.95em; }
  .hero-tagline { font-size: 0.95rem; margin-bottom: 20px; }
  .hero-chips { gap: 8px; margin-bottom: 24px; }
  .hero-chip { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 10px 14px; }
  .hero-chip-label { font-size: 0.62rem; }
  .hero-chip-value { font-size: 0.9rem; }
  .hero-method { font-size: 0.85rem; margin-bottom: 20px; }
  .hero-count, .hero-cities { font-size: 1rem; }
  .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; }
  .map-filters { top: 8px; left: 8px; width: 188px; }
  .map-filters.collapsed { width: auto; }
  .map-filters-body { padding: 10px 12px 8px; }
  .map-filter-pill { padding: 4px 7px; font-size: 0.7rem; }

  /* Podium */
  .podium-grid { grid-template-columns: 1fr; gap: 14px; }
  .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-criterion { font-size: 0.64rem; margin-bottom: 8px; padding-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 { padding: 14px 16px; font-size: 0.84rem; }
  .corr-insight-label { font-size: 0.68rem; }

  /* Explorer */
  .explorer-table { table-layout: fixed; }
  .explorer-table th,
  .explorer-table td { padding: 8px 10px; }
  /* On mobile show only Name + Prix — arr is hogged by long city names */
  .explorer-table th:nth-child(2),
  .explorer-table td:nth-child(2),
  .explorer-table th:nth-child(4),
  .explorer-table td:nth-child(4),
  .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; }
  .explorer-table th:nth-child(3),
  .explorer-table td:nth-child(3) { width: 80px; }
  .explorer-table td:first-child {
    overflow: hidden;
  }
  .td-name {
    font-size: 0.88rem;
    word-break: break-word;
    overflow-wrap: break-word;
    display: block;
  }
  .td-address {
    display: block;
    font-size: 0.7rem;
    color: var(--pierre);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .td-price { font-size: 0.95rem; }
  .td-num { font-size: 0.8rem; }
  .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-stats { padding: 12px 14px; gap: 12px; }
  .modal-stat-label { font-size: 0.64rem; }
  .modal-stat-value { font-size: 0.88rem; }
  .modal-link { padding: 9px 14px; font-size: 0.82rem; }
  .modal-footer { padding: 10px 16px; flex-wrap: wrap; gap: 6px; }

  /* 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 */
  .site-footer { margin-top: 40px; padding-bottom: 20px; }
  .footer-grigne { margin-bottom: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
  .footer-logo { font-size: 1.3rem; }
  .footer-text { font-size: 0.82rem; }
  .footer-cta { padding: 12px 14px; gap: 10px; }
  .footer-cta-icon { font-size: 1.4rem; }
  .footer-cta-title { font-size: 1rem; }
  .footer-cta-sub { font-size: 0.74rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 12px; font-size: 0.72rem; }
}

/* ============================================
   RESPONSIVE — Small phones (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
  .hero-headline { font-size: 1.4rem; }
  .hero-tagline { font-size: 0.88rem; }
  .hero-chip { flex: 1 1 100%; }
  .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; }
}

/* ============================================
   BLOG / COULISSES
   ============================================ */
.blog-section { padding: 72px 0 96px; }
.blog-container { max-width: 1180px; }

/* TOC + article two-column layout */
.blog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}

.blog-article {
  margin-top: 0;
  padding: 36px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--encre);
  min-width: 0;
}
.blog-placeholder { color: var(--pierre); }
.blog-placeholder em { color: var(--encre); font-style: italic; }

/* --- Long-form blog (English article) --- */
.blog-longform { padding: 56px 64px; font-family: 'Source Sans 3', sans-serif; font-size: 1.05rem; line-height: 1.7; }
.blog-hero { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--ble); }
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--encre);
  text-wrap: balance;
}
.blog-byline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--pierre);
  margin: 0;
}
.blog-section-block { margin-bottom: 44px; }
.blog-section-block:last-child { margin-bottom: 0; }
.blog-h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--encre);
  margin: 0 0 18px;
  position: relative;
  padding-left: 18px;
}
.blog-h3::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 2px;
  background: var(--croute);
  transform: rotate(-30deg);
}
.blog-longform p { margin: 0 0 16px; }
.blog-longform strong { color: var(--encre); font-weight: 600; }
.blog-longform em { font-style: italic; color: var(--encre); }
.blog-longform code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--fond);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--ble);
  color: var(--croute);
}
.blog-ol, .blog-ul { margin: 0 0 16px; padding-left: 24px; }
.blog-ol li, .blog-ul li { margin-bottom: 8px; }
.blog-quote {
  margin: 20px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--croute);
  background: var(--fond);
  border-radius: 0 8px 8px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-style: italic;
  color: var(--encre);
}
.blog-aside {
  font-size: 0.88rem;
  color: var(--pierre);
  font-style: italic;
  padding: 8px 14px;
  border-left: 2px dotted var(--ble);
}
.blog-table-figure { margin: 20px 0; overflow-x: auto; }
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
}
.blog-table th, .blog-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ble);
}
.blog-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pierre);
  font-weight: 600;
}
.blog-table tbody tr:hover { background: var(--fond); }
.blog-table-note { font-size: 0.78em; color: var(--pierre); font-weight: 400; }

/* --- Embedded chart figure --- */
.blog-chart {
  margin: 32px -16px;
  padding: 28px;
  background: var(--fond);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  position: relative;
}
.blog-chart::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--croute), transparent);
  opacity: 0.4;
}
.blog-chart-caption {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--pierre);
  margin: 0 0 20px;
  max-width: 640px;
}
.blog-chart-caption strong { color: var(--encre); font-weight: 600; }

/* --- Sankey funnel chart --- */
.sankey-host {
  width: 100%;
  min-height: 380px;
  position: relative;
}
.sankey-svg { width: 100%; height: auto; display: block; overflow: visible; }
.sankey-flow {
  fill-opacity: 0.55;
  transition: fill-opacity 0.2s ease;
  cursor: pointer;
}
.sankey-host:hover .sankey-flow { fill-opacity: 0.18; }
.sankey-host:hover .sankey-flow.is-hovered { fill-opacity: 0.85; }
.sankey-node-rect {
  transition: opacity 0.2s ease;
}
.sankey-node-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: var(--encre);
  pointer-events: none;
}
.sankey-node-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  fill: var(--pierre);
  pointer-events: none;
}
.sankey-node-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  fill: var(--croute);
  pointer-events: none;
}
.sankey-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--encre);
  color: var(--farine);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.sankey-tooltip.is-visible { opacity: 1; }
.sankey-tooltip strong { color: var(--croute); }

/* ====== TOC sidebar ====== */
.blog-toc {
  position: sticky;
  top: 84px;
  align-self: start;
  font-family: 'Source Sans 3', sans-serif;
}
.blog-toc-inner {
  padding: 22px 18px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}
.blog-toc-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--croute);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ble);
}
.blog-toc-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  counter-reset: toc;
}
.blog-toc-list li { margin: 0; }
.blog-toc-link {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 7px 4px 7px 6px;
  text-decoration: none;
  color: var(--pierre);
  font-size: 0.86rem;
  line-height: 1.3;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  border-radius: 0 6px 6px 0;
}
.blog-toc-link:hover {
  color: var(--encre);
  background: var(--fond);
  border-left-color: var(--croute);
}
.blog-toc-link.is-active {
  color: var(--encre);
  border-left-color: var(--cher);
  background: var(--fond);
  font-weight: 600;
}
.blog-toc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--croute);
  font-weight: 700;
}
.blog-toc-link.is-active .blog-toc-num { color: var(--cher); }
.blog-toc-text { display: block; }

.blog-toc-progress {
  height: 3px;
  background: var(--ble);
  border-radius: 2px;
  overflow: hidden;
}
.blog-toc-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--croute), var(--cher));
  transition: width 0.2s ease;
}

/* ====== Section number badge inside h3 ====== */
.blog-h3 { display: flex; align-items: baseline; gap: 14px; padding-left: 0; }
.blog-h3::before { display: none; }
.blog-h3-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cher);
  letter-spacing: 0.08em;
  position: relative;
  top: -0.2em;
}
.blog-h3-num::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--croute);
  vertical-align: middle;
  margin-left: 8px;
  position: relative;
  top: -2px;
}
.blog-section-block { scroll-margin-top: 80px; }

/* ====== Inline highlights (animated marker) ====== */
.blog-mark {
  background-image: linear-gradient(120deg, transparent 0%, rgba(200,149,108,0.28) 18%, rgba(200,149,108,0.32) 82%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 0% 60%;
  background-position: 0 82%;
  padding: 0 2px;
  color: var(--encre);
  font-weight: 600;
  border-radius: 1px;
  transition: background-size 0.6s cubic-bezier(.2,.7,.3,1);
}
.blog-mark.is-revealed {
  background-size: 100% 60%;
}
.blog-mark--final {
  background-image: linear-gradient(120deg, rgba(196,69,54,0.0) 0%, rgba(196,69,54,0.22) 18%, rgba(196,69,54,0.32) 82%, transparent 100%);
}

/* Styled inline keywords (Brigitte, HappyRobot, Vibecoding…) */
.blog-keyword {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--croute);
  letter-spacing: -0.01em;
  position: relative;
  padding: 0 3px;
  background: linear-gradient(180deg, transparent 60%, rgba(232,220,200,0.6) 60%);
  transition: color 0.2s ease, background 0.2s ease;
}
.blog-keyword:hover {
  color: var(--cher);
  background: linear-gradient(180deg, transparent 60%, rgba(196,69,54,0.18) 60%);
}

/* ====== Source / footnote markers ====== */
.blog-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72em;
  color: var(--cher);
  cursor: help;
  text-decoration: none;
  padding: 0 2px;
  position: relative;
  vertical-align: super;
  line-height: 0;
}
.blog-note:hover { color: var(--encre); }
.blog-note-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--encre);
  color: var(--farine);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  width: 280px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.blog-note-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--encre);
}
.blog-note:hover .blog-note-tooltip,
.blog-note:focus .blog-note-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
  pointer-events: auto;
}
.blog-note-tooltip a {
  color: var(--croute);
  text-decoration: underline;
}

/* ====== Sources panel ====== */
.blog-sources {
  margin: 56px -8px 0;
  padding: 28px 32px;
  background: var(--fond);
  border-left: 3px solid var(--croute);
  border-radius: 0 12px 12px 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.86rem;
  color: var(--pierre);
  line-height: 1.55;
}
.blog-sources-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--encre);
  margin: 0 0 14px;
}
.blog-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: src;
}
.blog-sources-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  scroll-margin-top: 90px;
}
.blog-sources-list li:target {
  background: rgba(200,149,108,0.12);
  border-radius: 6px;
  padding: 4px 4px 4px 28px;
  margin-left: -4px;
}
.blog-sources-sup {
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--croute);
  color: var(--farine);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
}
.blog-sources-list a {
  color: var(--cher);
  text-decoration: none;
  border-bottom: 1px dotted var(--croute);
  transition: color 0.15s ease;
}
.blog-sources-list a:hover { color: var(--encre); }

/* ====== Two more chart hosts ====== */
.bucket-host, .notrad-host {
  width: 100%;
  position: relative;
}
.bucket-svg, .notrad-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Weight bucket bars */
.bucket-bar {
  fill: var(--croute);
  transition: fill 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  transform-origin: left center;
}
.bucket-bar.is-best { fill: var(--bon-prix); }
.bucket-bar:hover { fill: var(--cher); }
.bucket-label, .bucket-value, .bucket-n {
  font-family: 'Source Sans 3', sans-serif;
  pointer-events: none;
}
.bucket-label { font-size: 13px; font-weight: 600; fill: var(--encre); }
.bucket-label .bucket-legal { font-size: 10px; fill: var(--pierre); font-weight: 400; }
.bucket-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; fill: var(--encre); }
.bucket-n { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: var(--pierre); }
.bucket-axis-tick { stroke: var(--ble); stroke-width: 1; }
.bucket-axis-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  fill: var(--pierre);
}

/* No-tradition by city */
.notrad-row { cursor: default; }
.notrad-bar {
  fill: var(--croute);
  transition: fill 0.2s ease;
}
.notrad-row:hover .notrad-bar { fill: var(--cher); }
.notrad-row.is-highest .notrad-bar { fill: var(--cher); }
.notrad-row.is-lowest .notrad-bar { fill: var(--bon-prix); }
.notrad-city {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: var(--encre);
  pointer-events: none;
}
.notrad-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  fill: var(--farine);
  pointer-events: none;
}
.notrad-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  fill: var(--pierre);
  pointer-events: none;
}

/* Mobile blog */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .blog-toc {
    position: relative;
    top: 0;
  }
  .blog-toc-inner {
    padding: 16px 18px;
  }
  .blog-toc-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .blog-toc-list li { flex: 1 0 auto; }
  .blog-toc-link {
    grid-template-columns: 22px 1fr;
    padding: 5px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .blog-toc-link:hover, .blog-toc-link.is-active {
    border-left: none;
    border-bottom-color: var(--cher);
  }
  .blog-toc-progress { display: none; }
}

@media (max-width: 700px) {
  .blog-longform { padding: 32px 22px; font-size: 1rem; }
  .blog-hero { margin-bottom: 32px; padding-bottom: 24px; }
  .blog-title { font-size: 1.6rem; }
  .blog-h3 { font-size: 1.35rem; gap: 8px; }
  .blog-h3-num { font-size: 0.7rem; }
  .blog-h3-num::after { width: 12px; margin-left: 6px; }
  .blog-chart { margin: 24px -10px; padding: 18px; }
  .blog-quote { font-size: 1.05rem; padding: 12px 16px; }
  .sankey-host { min-height: 320px; }
  .sankey-node-label { font-size: 11px; }
  .sankey-node-count { font-size: 10px; }
  .blog-note-tooltip { width: 240px; font-size: 0.78rem; }
  .blog-sources { margin: 40px -8px 0; padding: 22px 20px; }
}

.coulisses-section-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--encre);
  margin: 56px 0 8px;
}
.coulisses-section-lead {
  font-size: 0.98rem;
  color: var(--pierre);
  margin-bottom: 24px;
  max-width: 620px;
}

/* --- Outcome pills --- */
.coulisses-outcomes { margin-top: 48px; }
.outcome-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.outcome-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
  border-right: 1px solid var(--ble);
  grid-column: span 1;
}
.outcome-total-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--encre);
  line-height: 1;
}
.outcome-total-label {
  font-size: 0.78rem;
  color: var(--pierre);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.outcome-pill {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--farine);
  border: 1px solid var(--ble);
  position: relative;
  overflow: hidden;
}
.outcome-pill::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--pierre);
}
.outcome-pill.outcome-priced::before { background: var(--bon-prix); }
.outcome-pill.outcome-notrad::before { background: var(--croute); }
.outcome-pill.outcome-pending::before { background: var(--pierre); }
.outcome-pill-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--encre);
  line-height: 1;
}
.outcome-pill-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--pierre);
  margin-top: 2px;
}
.outcome-pill-label {
  font-size: 0.82rem;
  color: var(--encre);
  margin-top: 8px;
  font-weight: 500;
}

/* --- Transcripts --- */
.coulisses-transcripts { margin-top: 24px; }
.transcripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.transcript-card {
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
}
.transcript-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--ble);
  background: var(--fond);
  color: var(--encre);
}
.transcript-badge--success      { border-color: #BBD6C5; color: var(--bon-prix); background: rgba(61, 122, 95, 0.08); }
.transcript-badge--no_tradition { border-color: #E2C9A9; color: var(--croute); background: rgba(200, 149, 108, 0.08); }
.transcript-badge--confused     { border-color: #D5C9BE; color: var(--pierre); }
.transcript-bakery {
  color: var(--pierre);
  font-size: 0.78rem;
}
.transcript-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--encre);
  line-height: 1.3;
}
.transcript-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 8px 0;
  border-top: 1px dashed var(--ble);
  border-bottom: 1px dashed var(--ble);
  font-size: 0.72rem;
}
.transcript-meta > div { display: flex; flex-direction: column; }
.transcript-meta dt {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pierre);
  font-size: 0.64rem;
}
.transcript-meta dd {
  color: var(--encre);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
}
.transcript-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.transcript-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.transcript-who {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pierre);
  font-weight: 600;
}
.transcript-line--agent .transcript-text { color: var(--encre); }
.transcript-line--boulangerie .transcript-text {
  color: var(--encre);
  font-style: italic;
}

@media (max-width: 600px) {
  .blog-section { padding: 48px 0 72px; }
  .blog-article { padding: 24px; font-size: 1.02rem; }
  .coulisses-section-title { font-size: 1.35rem; margin-top: 40px; }
  .outcome-pills { grid-template-columns: 1fr; gap: 10px; }
  .outcome-total { border-right: none; border-bottom: 1px solid var(--ble); padding: 14px 16px; flex-direction: row; align-items: baseline; gap: 10px; }
  .outcome-total-n { font-size: 1.6rem; }
  .outcome-total-label { margin-top: 0; }
  .outcome-pill { padding: 14px 16px; flex-direction: row; align-items: baseline; gap: 10px; }
  .outcome-pill-pct { font-size: 1.4rem; }
  .outcome-pill-n { margin-top: 0; }
  .outcome-pill-label { margin-top: 0; flex: 1; }
  .transcripts-grid { grid-template-columns: 1fr; gap: 14px; }
  .transcript-card { padding: 18px; }
  .transcript-title { font-size: 1.1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* --- Contact --- */
.coulisses-contact { margin-top: 24px; scroll-margin-top: 80px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--farine);
  border: 1px solid var(--ble);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--encre);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-card:hover {
  border-color: var(--croute);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.contact-card-icon { font-size: 1.6rem; line-height: 1; }
.contact-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.contact-card-text {
  font-size: 0.92rem;
  color: var(--pierre);
  line-height: 1.45;
  flex: 1;
}
.contact-card-link {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--croute);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* --- Footer mailto --- */
.footer-contact-link {
  color: var(--pierre);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-contact-link:hover { color: var(--croute); }
.footer-meta-sep { color: var(--ble); margin: 0 4px; }
.footer-bunka-link {
  color: var(--croute);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted var(--croute);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-bunka-link:hover { color: var(--cher); border-bottom-color: var(--cher); }

/* ============================================
   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; }
}
