/* ==========================================================================
   HISTORIRE.FR — 7 ARCHITECTURES INTERACTIVES (PRODUCTION WORDPRESS)
   La Gazette · Le Musée · Map Monde · Archives Secrètes · Métro · Machine · Enquête
   ========================================================================== */

:root {
  --bg: #f5eee0;
  --bg-alt: #eae0cc;
  --surface: #fbf7ee;
  --surface-2: #efe6d4;
  --ink: #181410;
  --ink-muted: #5c5346;
  --accent: #b51d1a;
  --accent-2: #1c2e4a;
  --accent-ink: #fffdf8;
  --border: #1e1914;
  --border-soft: rgba(30, 25, 20, 0.22);
  --mark-bg: rgba(181, 29, 26, 0.14);
  --mark-ink: #181410;
  --radius: 2px;
  --radius-pill: 999px;
  --shadow: none;
  --shadow-hover: 0 10px 24px rgba(24, 20, 16, 0.1);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-w: 1200px;
}

/* 7 PALETTES */
html[data-theme="gazette"] {
  --bg: #f5eee0; --bg-alt: #eae0cc; --surface: #fbf7ee; --surface-2: #efe6d4;
  --ink: #181410; --ink-muted: #5c5346; --accent: #b51d1a; --accent-2: #1c2e4a; --accent-ink: #fffdf8;
  --border: #1e1914; --border-soft: rgba(30, 25, 20, 0.22); --mark-bg: rgba(181, 29, 26, 0.14); --mark-ink: #181410;
  --radius: 2px; --shadow: none; --shadow-hover: 0 10px 24px rgba(24, 20, 16, 0.1);
  --font-display: 'Playfair Display', Georgia, serif; --font-body: 'Libre Baskerville', Georgia, serif; --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html[data-theme="musee"] {
  --bg: #faf9f5; --bg-alt: #f1eee7; --surface: #ffffff; --surface-2: #f4f1ea;
  --ink: #121210; --ink-muted: #66635b; --accent: #a67c2e; --accent-2: #19473a; --accent-ink: #ffffff;
  --border: #dcd6c8; --border-soft: rgba(18, 18, 16, 0.11); --mark-bg: rgba(166, 124, 46, 0.18); --mark-ink: #121210;
  --radius: 4px; --shadow: 0 2px 14px rgba(18, 18, 16, 0.04); --shadow-hover: 0 14px 36px rgba(18, 18, 16, 0.09);
  --font-display: 'Cormorant Garamond', Georgia, serif; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif; --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html[data-theme="mappemonde"] {
  --bg: #f1f5f9; --bg-alt: #e2e8f0; --surface: #ffffff; --surface-2: #f8fafc;
  --ink: #0f172a; --ink-muted: #475569; --accent: #0ea5e9; --accent-2: #f97316; --accent-ink: #ffffff;
  --border: #cbd5e1; --border-soft: rgba(15, 23, 42, 0.12); --mark-bg: rgba(14, 165, 233, 0.16); --mark-ink: #0f172a;
  --radius: 16px; --shadow: 0 8px 28px rgba(15, 23, 42, 0.08); --shadow-hover: 0 16px 36px rgba(14, 165, 233, 0.18);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif; --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html[data-theme="archives"] {
  --bg: #e6dec8; --bg-alt: #d9cfb5; --surface: #f7f3e7; --surface-2: #ece5d1;
  --ink: #1b241f; --ink-muted: #525d55; --accent: #b82924; --accent-2: #214032; --accent-ink: #fffaf0;
  --border: #214032; --border-soft: rgba(33, 64, 50, 0.28); --mark-bg: #f6e781; --mark-ink: #1b241f;
  --radius: 6px; --shadow: 0 3px 0 rgba(33, 64, 50, 0.22); --shadow-hover: 0 10px 24px rgba(33, 64, 50, 0.16);
  --font-display: 'IBM Plex Mono', monospace; --font-body: 'Libre Baskerville', Georgia, serif; --font-ui: 'IBM Plex Mono', monospace;
}

html[data-theme="metro"] {
  --bg: #f3f5f8; --bg-alt: #e4e9f0; --surface: #ffffff; --surface-2: #edf2f8;
  --ink: #10203a; --ink-muted: #50617a; --accent: #0055a4; --accent-2: #00a88f; --accent-ink: #ffffff;
  --border: #10203a; --border-soft: rgba(16, 32, 58, 0.18); --mark-bg: rgba(255, 204, 0, 0.42); --mark-ink: #10203a;
  --radius: 12px; --shadow: 0 4px 14px rgba(16, 32, 58, 0.08); --shadow-hover: 0 10px 24px rgba(0, 85, 164, 0.16);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif; --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html[data-theme="machine"] {
  --bg: #111216; --bg-alt: #191c22; --surface: #1b1f27; --surface-2: #242934;
  --ink: #f3efe6; --ink-muted: #a6abb8; --accent: #ff7b00; --accent-2: #2be4dc; --accent-ink: #111216;
  --border: #c59b43; --border-soft: rgba(197, 155, 67, 0.36); --mark-bg: rgba(255, 123, 0, 0.25); --mark-ink: #ffd188;
  --radius: 10px; --shadow: 0 10px 30px rgba(0, 0, 0, 0.5); --shadow-hover: 0 0 24px rgba(43, 228, 220, 0.22);
  --font-display: 'Orbitron', 'Bricolage Grotesque', sans-serif; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif; --font-ui: 'IBM Plex Mono', monospace;
}

html[data-theme="enquete"] {
  --bg: #b98f61; --bg-alt: #a4794b; --surface: #fdfbf6; --surface-2: #fff6b8;
  --ink: #1d1a16; --ink-muted: #544b3e; --accent: #c81e1e; --accent-2: #1d1a16; --accent-ink: #ffffff;
  --border: #2c241b; --border-soft: rgba(44, 36, 27, 0.28); --mark-bg: #fff06b; --mark-ink: #1d1a16;
  --radius: 4px; --shadow: 4px 8px 18px rgba(32, 20, 8, 0.34); --shadow-hover: 8px 14px 26px rgba(32, 20, 8, 0.45);
  --font-display: 'Caveat', cursive; --font-body: 'Plus Jakarta Sans', system-ui, sans-serif; --font-ui: 'IBM Plex Mono', monospace;
}

/* RESET & BASE */
body.e404-themed, body.e404-themed * { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.e404-themed {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); line-height: 1.65; min-height: 100vh;
  transition: background-color 0.24s ease, color 0.24s ease;
}
body.e404-themed img { max-width: 100%; height: auto; display: block; }
body.e404-themed a { color: inherit; }
body.e404-themed button { font-family: inherit; cursor: pointer; }
.leaflet-container img, .leaflet-tile, .leaflet-pane img { max-width: none !important; max-height: none !important; }
.leaflet-tile-pane { opacity: 1 !important; }

/* Textures d'ambiance */
html[data-theme="archives"] .site-frame {
  background-image: radial-gradient(rgba(33, 64, 50, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}
html[data-theme="enquete"] .site-frame {
  background-color: #b78c5d;
  background-image:
    radial-gradient(rgba(74, 46, 18, 0.25) 1px, transparent 0),
    radial-gradient(rgba(255, 232, 195, 0.22) 1px, transparent 0),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08));
  background-size: 16px 16px, 23px 23px, 100% 100%;
  background-position: 0 0, 8px 11px, 0 0;
}

/* HEADER & NAV */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border-soft); position: relative; z-index: 40; }
html[data-theme="gazette"] .site-header { background: var(--bg); border-bottom: 4px double var(--border); }
html[data-theme="musee"] .site-header { background: rgba(250, 249, 245, 0.95); border-bottom: 1px solid var(--border); }
html[data-theme="mappemonde"] .site-header { background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #0c4a6e 100%); color: #f8fafc; border-bottom: 3px solid #0ea5e9; }
html[data-theme="archives"] .site-header { background: var(--accent-2); color: #f7f3e7; border-bottom: 4px solid var(--accent); }
html[data-theme="metro"] .site-header { background: #0d2346; color: #ffffff; border-bottom: 6px solid #00a88f; }
html[data-theme="machine"] .site-header { background: linear-gradient(180deg, #252831 0%, #15171d 100%); border-bottom: 4px solid #c59b43; }
html[data-theme="enquete"] .site-header { background: #1b1815; color: #f7f1e3; border-bottom: 8px solid #f7c911; }

.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 16px 18px 0; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.brand__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.brand__title { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; }
.brand__dot { color: var(--accent); }
.brand__tagline { font-family: var(--font-ui); font-size: 13px; color: var(--ink-muted); }

html[data-theme="musee"] .brand__title { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
html[data-theme="mappemonde"] .brand__eyebrow { color: #38bdf8; }
html[data-theme="mappemonde"] .brand__dot { color: #f97316; }
html[data-theme="mappemonde"] .brand__tagline { color: rgba(248, 250, 252, 0.78); }
html[data-theme="archives"] .brand__eyebrow { color: #e8c77a; }
html[data-theme="archives"] .brand__dot { color: #f6e781; }
html[data-theme="archives"] .brand__tagline { color: rgba(247, 243, 231, 0.8); }
html[data-theme="metro"] .brand__eyebrow { color: #ffcc00; }
html[data-theme="metro"] .brand__dot { color: #00d4b5; }
html[data-theme="metro"] .brand__tagline { color: rgba(255, 255, 255, 0.82); }
html[data-theme="machine"] .brand__title { color: #ff9c3b; letter-spacing: 0.04em; }
html[data-theme="machine"] .brand__dot { color: #2be4dc; }
html[data-theme="enquete"] .brand__eyebrow { color: #f7c911; }
html[data-theme="enquete"] .brand__title { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase; }
html[data-theme="enquete"] .brand__dot { color: #e03131; }
html[data-theme="enquete"] .brand__tagline { color: #d5cab8; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.action-pill {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; padding: 9px 14px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
}
.action-pill--theme { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
html[data-theme="mappemonde"] .action-pill { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.25); }
html[data-theme="mappemonde"] .action-pill--theme { background: #f97316; border-color: #f97316; color: #fff; }
html[data-theme="archives"] .action-pill { border-radius: 4px; border-color: rgba(247,243,231,0.4); background: rgba(255,255,255,0.1); color: #f7f3e7; }
html[data-theme="archives"] .action-pill--theme { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="metro"] .action-pill { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
html[data-theme="metro"] .action-pill--theme { background: #ffcc00; color: #0d2346; border-color: #ffcc00; }
html[data-theme="machine"] .action-pill { background: #101216; border-color: #c59b43; color: #f3efe6; }
html[data-theme="machine"] .action-pill--theme { background: #ff7b00; color: #111216; border-color: #ff7b00; }
html[data-theme="enquete"] .action-pill { background: #2c2722; color: #fff; border-color: #f7c911; }
html[data-theme="enquete"] .action-pill--theme { background: #c81e1e; border-color: #c81e1e; color: #fff; }

.cat-nav { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 12px; border-top: 1px solid var(--border-soft); -webkit-overflow-scrolling: touch; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-tab { flex: 0 0 auto; text-decoration: none; font-family: var(--font-ui); font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: var(--radius-pill); color: var(--ink-muted); white-space: nowrap; }
.cat-tab:hover { color: var(--ink); background: var(--surface-2); }
.cat-tab.is-active { background: var(--ink); color: var(--bg); }
html[data-theme="gazette"] .cat-tab { border-radius: 0; text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.06em; }
html[data-theme="gazette"] .cat-tab.is-active { background: var(--accent); color: #fff; }
html[data-theme="musee"] .cat-tab { border-radius: 0; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; font-size: 11.5px; border-bottom: 2px solid transparent; }
html[data-theme="musee"] .cat-tab.is-active { background: transparent; color: var(--ink); border-bottom-color: var(--accent); }
html[data-theme="mappemonde"] .cat-nav { border-top-color: rgba(255,255,255,0.14); }
html[data-theme="mappemonde"] .cat-tab { color: #cbd5e1; }
html[data-theme="mappemonde"] .cat-tab.is-active { background: #0ea5e9; color: #fff; }
html[data-theme="archives"] .cat-nav { border-top-color: rgba(247,243,231,0.2); padding-bottom: 0; }
html[data-theme="archives"] .cat-tab { color: #d9e5dc; border-radius: 8px 8px 0 0; border: 1px solid transparent; border-bottom: none; padding: 8px 14px 9px; font-size: 12px; }
html[data-theme="archives"] .cat-tab.is-active { background: var(--bg); color: var(--ink); border-color: var(--border); }
html[data-theme="metro"] .cat-nav { border-top-color: rgba(255,255,255,0.16); }
html[data-theme="metro"] .cat-tab { color: #d1e2fa; }
html[data-theme="metro"] .cat-tab.is-active { background: #00a88f; color: #fff; }
html[data-theme="machine"] .cat-tab { color: #c4cad8; }
html[data-theme="machine"] .cat-tab.is-active { background: #2be4dc; color: #111216; }
html[data-theme="enquete"] .cat-tab { color: #e3d8c7; }
html[data-theme="enquete"] .cat-tab.is-active { background: #f7c911; color: #1b1815; }

/* LAYOUT 2 COLONNES + SIDEBAR DROITE */
.show-mobile-only { display: none; }
.site-main { max-width: var(--max-w); margin: 0 auto; padding: 22px 18px 110px; }
.layout-shell { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 26px; align-items: start; }
.main-col { min-width: 0; }
.site-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; }
body.admin-bar .site-sidebar { top: 52px; }

.sidebar-widget { background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); font-family: var(--font-ui); }
html[data-theme="gazette"] .sidebar-widget { border: none; border-top: 3px double var(--border); border-bottom: 1px solid var(--border); }
html[data-theme="archives"] .sidebar-widget { border: 1.5px solid var(--border); border-top: 4px solid var(--accent-2); }
html[data-theme="enquete"] .sidebar-widget { background: #fff9db; border: 1px solid #d5c78a; box-shadow: 5px 9px 20px rgba(28, 17, 6, 0.34); }
.widget-kicker { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.widget-title { margin: 0 0 12px; font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1.2; }
html[data-theme="musee"] .widget-title { font-size: 21px; font-weight: 600; }

.sb-form { display: flex; flex-direction: column; gap: 10px; }
.sb-search-row { display: flex; gap: 6px; }
.sb-input, .sb-select { width: 100%; font-family: var(--font-ui); font-size: 13.5px; padding: 9px 11px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--border-soft); border-radius: var(--radius); outline: none; min-height: 40px; }
html[data-theme="machine"] .sb-input, html[data-theme="machine"] .sb-select { background: #0d1017; color: #f3efe6; border-color: #4b556b; }
.sb-divider { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin: 2px 0; }
.sb-divider::before, .sb-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.sb-date-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
.sb-btn { border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-family: var(--font-ui); font-size: 13px; font-weight: 800; padding: 9px 13px; border-radius: var(--radius); min-height: 40px; text-decoration: none; text-align: center; }
html[data-theme="musee"] .sb-btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.sb-btn-row { display: flex; gap: 8px; }
.sb-btn-row .sb-btn { flex: 1; }

/* CALENDRIER ÉPHÉMÉRIDE */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.cal-month-label { font-family: var(--font-display); font-size: 16px; font-weight: 800; text-align: center; }
.cal-nav { width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid var(--border-soft); background: var(--surface-2); color: var(--ink); font-weight: 800; display: grid; place-items: center; }
.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-weekdays span { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--ink-muted); padding-bottom: 4px; }
.cal-cell { aspect-ratio: 1; border: 1px solid transparent; background: transparent; color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; font-weight: 600; border-radius: var(--radius); display: grid; place-items: center; position: relative; padding: 0; text-decoration: none; }
.cal-cell:hover { background: var(--surface-2); color: var(--ink); }
.cal-cell.is-has-post { background: var(--surface-2); color: var(--ink); font-weight: 800; border-color: var(--accent); }
.cal-cell.is-has-post::after { content: ""; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-cell.is-has-post:hover, .cal-cell.is-selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cal-cell.is-has-post:hover::after, .cal-cell.is-selected::after { background: var(--accent-ink); }
.cal-legend { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-soft); font-size: 11.5px; color: var(--ink-muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-dot-sample { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 4px; }

/* NUAGE DE MOTS-CLÉS */
.tag-cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.tag-cloud__item { text-decoration: none; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-soft); background: var(--surface-2); color: var(--ink); font-weight: 700; line-height: 1.25; }
.tag-cloud__item:hover, .tag-cloud__item.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tag-cloud__item.w-1 { font-size: 11.5px; opacity: 0.86; }
.tag-cloud__item.w-2 { font-size: 13px; }
.tag-cloud__item.w-3 { font-size: 14.5px; }
.tag-cloud__item.w-4 { font-size: 16px; border-color: var(--accent); }
html[data-theme="gazette"] .tag-cloud__item { border-radius: 0; font-family: var(--font-display); font-style: italic; }
html[data-theme="musee"] .tag-cloud__item { border-radius: 2px; background: transparent; }
html[data-theme="archives"] .tag-cloud__item { border-radius: 4px; font-family: var(--font-mono); background: var(--bg); }

/* ÉLÉMENTS PARTAGÉS : HERO GAZETTE, CARTES, CATÉGORIES, ARTICLES, PAGINATION */
.ephe-ribbon { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding: 8px 2px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-ui); font-size: 13px; }
.ephe-ribbon__label { font-weight: 800; letter-spacing: 0.04em; }
.ephe-day-controls { display: flex; align-items: center; gap: 6px; }
.ephe-nav-btn { border: 1px solid var(--border-soft); background: var(--surface); color: var(--ink); border-radius: var(--radius-pill); padding: 5px 11px; font-size: 12px; font-weight: 700; }

.hero-card { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; position: relative; }
.hero-media { position: relative; min-height: 280px; background: var(--bg-alt); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-date-badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--accent-ink); padding: 8px 13px; border-radius: var(--radius); font-family: var(--font-ui); line-height: 1.1; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.hero-date-badge strong { display: block; font-size: 16px; font-weight: 800; }
.hero-date-badge span { font-size: 12px; font-family: var(--font-mono); }
.hero-body { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.kicker { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.hero-title { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.7vw, 31px); line-height: 1.18; font-weight: 800; }
.hero-excerpt { margin: 0; color: var(--ink-muted); font-size: 15px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-ui); font-size: 12px; color: var(--ink-muted); }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; text-decoration: none; background: var(--accent); color: var(--accent-ink); font-family: var(--font-ui); font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--accent); margin-top: 4px; }
html[data-theme="musee"] .cta-btn { border-radius: 2px; background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
html[data-theme="archives"] .cta-btn { border-radius: 4px; background: var(--accent-2); border-color: var(--accent-2); }

.section-heading { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 27px); font-weight: 800; }
.articles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
html[data-theme="gazette"] .post-card { border: none; border-top: 2px solid var(--border); border-bottom: 1px solid var(--border-soft); background: transparent; }
html[data-theme="gazette"] .post-card:hover { background: var(--surface); transform: none; }
.post-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__date { position: absolute; bottom: 10px; left: 10px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: var(--radius); }
.post-card__body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; font-family: var(--font-ui); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-soft); text-decoration: none; }
.badge--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.post-card__title { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.28; font-weight: 800; }
.post-card__excerpt { margin: 0; font-size: 13.5px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); display: flex; justify-content: space-between; }

/* LA GAZETTE : MASONRY VRAI */
html[data-theme="gazette"] .articles-grid { display: block; columns: 2; column-gap: 22px; }
html[data-theme="gazette"] .articles-grid .post-card { display: inline-flex; width: 100%; margin-bottom: 22px; break-inside: avoid; page-break-inside: avoid; }
html[data-theme="gazette"] .articles-grid .post-card:nth-child(5n+1) .post-card__media { aspect-ratio: 3 / 4; }
html[data-theme="gazette"] .articles-grid .post-card:nth-child(5n+2) .post-card__media { aspect-ratio: 16 / 9; }
html[data-theme="gazette"] .articles-grid .post-card:nth-child(5n+3) .post-card__media { aspect-ratio: 1 / 1; }
html[data-theme="gazette"] .articles-grid .post-card:nth-child(5n+4) .post-card__media { aspect-ratio: 4 / 3; }
html[data-theme="gazette"] .articles-grid .post-card:nth-child(5n+5) .post-card__media { aspect-ratio: 5 / 4; }

/* ARCHIVE / CATÉGORIE / ARTICLE */
.cat-banner { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
html[data-theme="gazette"] .cat-banner { border-left: none; border-right: none; border-top: 4px double var(--border); border-bottom: 2px solid var(--border); background: var(--surface-2); }
.cat-banner__title { margin: 6px 0 8px; font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); line-height: 1.1; }
.cat-banner__desc { margin: 0; color: var(--ink-muted); font-size: 15px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 12.5px; color: var(--ink-muted); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; font-weight: 700; }
.in-article-theme-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; margin-bottom: 18px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius); font-family: var(--font-ui); font-size: 12.5px; }
.in-article-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-theme-btn { border: 1.5px solid var(--border-soft); background: var(--surface); color: var(--ink); font-family: var(--font-ui); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); }
.mini-theme-btn.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.article-sheet { background: var(--surface); border: 1.5px solid var(--border-soft); border-radius: var(--radius); padding: clamp(20px, 4vw, 38px); box-shadow: var(--shadow); }
html[data-theme="gazette"] .article-sheet { border: none; border-top: 4px double var(--border); border-bottom: 4px double var(--border); }
html[data-theme="archives"] .article-sheet { border: 2px solid var(--border); }
html[data-theme="enquete"] .article-sheet { background: #fdfbf4; border: 2px solid #2c241b; }
.article-ephe-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 700; }
.article-title { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(25px, 3.8vw, 38px); line-height: 1.18; font-weight: 900; }
html[data-theme="musee"] .article-title { font-weight: 600; font-size: clamp(28px, 4.2vw, 42px); }
html[data-theme="enquete"] .article-title { font-family: 'IBM Plex Mono', monospace; font-size: clamp(22px, 3vw, 30px); }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; font-family: var(--font-ui); font-size: 12.5px; color: var(--ink-muted); }
.article-hero-img { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); background: var(--bg-alt); }
.article-hero-img img { width: 100%; max-height: 460px; object-fit: cover; }
.article-hero-img figcaption { padding: 9px 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-muted); background: var(--surface-2); }

.article-content { font-size: 16.5px; line-height: 1.76; }
.article-content h2, .article-content h3, .article-content h4 { font-family: var(--font-display); line-height: 1.25; margin: 1.5em 0 0.6em; color: var(--ink); }
.article-content p { margin: 0 0 1.1em; }
html[data-theme="gazette"] .article-content > p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-size: 3.6em; line-height: 0.84; padding: 4px 10px 0 0; font-weight: 900; color: var(--accent); }
.article-content mark { background: var(--mark-bg) !important; color: var(--mark-ink) !important; padding: 1px 5px; border-radius: 3px; }
.article-content blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--surface-2); font-style: italic; }
.article-content ul, .article-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-content figure.wp-block-table, .article-content .table-wrap { width: 100%; overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--border-soft); border-radius: var(--radius); }
.article-content table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 14px; }
.article-content th, .article-content td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); text-align: left; }
.article-content thead th, .article-content tr:first-child th { background: var(--surface-2); font-weight: 800; }

/* ENCADRÉ L'HISTOIRE VRAIE */
.true-history-box { margin-top: 30px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface-2); border: 2px solid var(--accent-2); }
.true-history-box__badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; background: var(--accent-2); color: #ffffff; margin-bottom: 12px; }
html[data-theme="musee"] .true-history-box { background: #f5f2eb; border: none; border-left: 3px solid var(--accent); }
html[data-theme="archives"] .true-history-box { background: #f2ecda; border: 2px dashed var(--accent-2); }
html[data-theme="machine"] .true-history-box { background: #0d1a21; border: 2px solid #2be4dc; }
html[data-theme="machine"] .true-history-box__badge { background: #2be4dc; color: #090b0f; }
html[data-theme="enquete"] .true-history-box { background: #fff38a; border: 2px dashed #c81e1e; }
html[data-theme="enquete"] .true-history-box__badge { background: #c81e1e; color: #ffffff; }

/* BLOC À LIRE AUSSI (e404-suite) & PAGINATION WP */
.e404-suite { margin-top: 32px; padding-top: 20px; border-top: 2px solid var(--border-soft); }
.e404-suite__eyebrow { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 800; margin-bottom: 14px; color: var(--ink); }
.e404-suite__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.e404-suite__grid .e404-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.e404-suite__grid .e404-card a { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.e404-suite__grid .e404-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.e404-suite__grid .e404-card span { padding: 10px 12px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); }

.wp-pagination { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-family: var(--font-ui); }
.wp-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-soft); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13.5px; }
.wp-pagination .page-numbers.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* FOOTER */
.site-footer { border-top: 2px solid var(--border-soft); background: var(--surface-2); padding: 28px 18px 104px; font-family: var(--font-ui); font-size: 13px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.footer-satire { max-width: 660px; }
.footer-satire p { margin: 6px 0 0; color: var(--ink-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-link { text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-soft); background: var(--surface); color: var(--ink); font-size: 12.5px; }
.footer-link--btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* BOUTON FLOTTANT & TIROIR DE THÈMES */
.floating-switcher { position: fixed; right: 16px; bottom: 18px; z-index: 9990; display: flex; align-items: center; gap: 8px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.float-cycle-btn { width: 48px; height: 48px; border-radius: 999px; border: 2px solid #fff; background: #141821; color: #fff; font-size: 18px; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,0,0,0.34); }
.float-main-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; min-height: 52px; border-radius: 999px; border: 2px solid #fff; background: #141821; color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,0.38); text-align: left; }
.float-main-btn__icon { font-size: 20px; }
.float-main-btn__text { display: flex; flex-direction: column; line-height: 1.15; }
.float-main-btn__text small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #9eb0cf; }
.float-main-btn__text strong { font-size: 13.5px; font-weight: 800; }
.float-main-btn__dots { display: flex; gap: 3px; padding-left: 4px; }
.float-main-btn__dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,12,18,0.58); backdrop-filter: blur(4px); z-index: 9994; }
.theme-drawer { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(780px, calc(100vw - 24px)); max-height: 84vh; overflow-y: auto; background: #141821; color: #f4f6fb; border: 1px solid rgba(255,255,255,0.18); border-radius: 22px; padding: 20px; z-index: 9996; box-shadow: 0 26px 70px rgba(0,0,0,0.6); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.theme-drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.theme-drawer__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #ffe600; font-weight: 700; }
.theme-drawer h2 { margin: 4px 0 0; font-size: 20px; color: #fff; }
.theme-drawer__context { margin: 8px 0 16px; font-size: 13px; color: #a6b3cb; }
.drawer-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; font-size: 16px; }
.drawer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.drawer-card { border: 2px solid transparent; border-radius: 14px; padding: 13px 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.drawer-card.is-active { box-shadow: 0 0 0 3px #fff; }
.drawer-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer-card__name { font-weight: 800; font-size: 15px; }
.drawer-card__tag { font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.drawer-card__desc { font-size: 12px; opacity: 0.9; line-height: 1.38; }
.theme-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; background: #141821; color: #fff; border: 1px solid rgba(255,255,255,0.22); padding: 9px 16px; border-radius: 999px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 13px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.exp-ribbon { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #ff3b8d; color: #fff; margin-left: 6px; vertical-align: middle; }

/* ==========================================================================
   PARTIE 2 : LES 6 ARCHITECTURES D'ACCUEIL SUR-MESURE + RESPONSIVE MOBILE
   ========================================================================== */

/* 1. MUSÉE DES ERREURS — SALLE D'EXPOSITION + MASONRY + 6 STYLES DE CADRES */
.museum-hall-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; background: #19473a; color: #f6f1e6; border-bottom: 3px solid #a67c2e; margin-bottom: 18px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.museum-wings { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.museum-wing-tab { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid #d7d0c0; color: #121210; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 600; }
.museum-wing-tab:hover { border-color: #a67c2e; background: #f5f1e7; }
.museum-wing-tab span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: #a67c2e; font-weight: 700; }
.museum-wall { background: radial-gradient(ellipse 68% 48% at 38% 0%, rgba(255,248,224,0.95) 0%, rgba(242,237,227,0.35) 55%, rgba(226,219,206,0.72) 100%), #e9e4da; border: 1px solid #d5cebe; padding: clamp(22px, 3.6vw, 38px) clamp(18px, 3vw, 32px) 26px; margin-bottom: 30px; }
.museum-wall__spotlight { display: flex; justify-content: center; gap: 48px; margin-bottom: 18px; }
.museum-lamp { width: 34px; height: 8px; background: #23221f; border-radius: 0 0 6px 6px; box-shadow: 0 12px 34px 12px rgba(255,238,185,0.65); }
.museum-showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px; align-items: center; }
.museum-frame { display: block; background: #faf9f5; padding: 16px; border: 10px solid #231f1a; outline: 2px solid #b5892b; outline-offset: -12px; box-shadow: 0 22px 44px rgba(18,16,12,0.26); text-decoration: none; }
.museum-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.museum-plaque { background: #fff; border: 1px solid #ded8c9; border-left: 4px solid #a67c2e; padding: 20px 22px; box-shadow: 0 8px 22px rgba(18,16,12,0.08); }
.museum-plaque__inv { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.09em; color: #a67c2e; font-weight: 700; text-transform: uppercase; }
.museum-plaque__title { margin: 8px 0 10px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(24px, 3vw, 33px); line-height: 1.15; font-weight: 600; font-style: italic; }
.museum-plaque__medium { font-size: 12px; color: #6f6a5e; border-top: 1px solid #ece7db; border-bottom: 1px solid #ece7db; padding: 8px 0; margin-bottom: 12px; }
.museum-plaque__excerpt { font-size: 14px; color: #3f3d37; margin: 0 0 16px; }
.museum-rope { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 2px solid rgba(139,30,36,0.35); font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #6b6458; }

.museum-gallery { columns: 2; column-gap: 28px; }
.museum-artwork { text-decoration: none; display: inline-flex; flex-direction: column; width: 100%; gap: 12px; margin-bottom: 32px; break-inside: avoid; page-break-inside: avoid; }
.museum-artwork__frame { position: relative; transition: transform 0.22s ease; }
.museum-artwork:hover .museum-artwork__frame { transform: translateY(-4px); }
.museum-artwork__frame img { width: 100%; object-fit: cover; display: block; }
.museum-artwork.size--tall .museum-artwork__frame img { aspect-ratio: 3 / 4; }
.museum-artwork.size--wide .museum-artwork__frame img { aspect-ratio: 16 / 9; }
.museum-artwork.size--square .museum-artwork__frame img { aspect-ratio: 1 / 1; }
.museum-artwork.size--classic .museum-artwork__frame img { aspect-ratio: 4 / 3; }
.museum-artwork.size--compact { width: 88%; margin-left: auto; margin-right: auto; }
.museum-artwork.size--compact .museum-artwork__frame img { aspect-ratio: 5 / 4; }
.frame--baroque-gold { background: #fbf6e9; padding: 16px; border: 11px ridge #c89b3c; outline: 2px solid #7e5c17; outline-offset: -13px; box-shadow: 0 18px 34px rgba(32,22,8,0.24); }
.frame--ebony-minimal { background: #fff; padding: 20px; border: 5px solid #141414; box-shadow: 0 14px 28px rgba(0,0,0,0.15); }
.frame--emerald-museum { background: #f5f2e8; padding: 14px; border: 9px solid #164236; outline: 2px solid #d2aa52; outline-offset: -11px; box-shadow: 0 16px 30px rgba(22,66,54,0.22); }
.frame--walnut-vintage { background: #efe5cf; padding: 12px; border: 12px solid #5a341e; outline: 1.5px solid #c99d4b; outline-offset: -13px; box-shadow: 0 18px 32px rgba(58,32,16,0.28); }
.frame--crimson-salon { background: #faf5ef; padding: 13px; border: 8px solid #7b1e26; outline: 1.5px solid #dfb45c; outline-offset: -10px; box-shadow: 0 14px 28px rgba(90,20,26,0.22); }
.frame--brass-float { background: #1a1917; padding: 7px; border: 4px solid #be9236; box-shadow: 0 16px 32px rgba(18,16,12,0.24); }
.museum-artwork__cartel { background: #fff; border: 1px solid #e2dccf; border-left: 3px solid #a67c2e; padding: 11px 14px; margin: 0 6px; }
.museum-artwork__cartel small { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: #a67c2e; letter-spacing: 0.06em; text-transform: uppercase; }
.museum-artwork__cartel h3 { margin: 5px 0 4px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; line-height: 1.18; font-weight: 600; color: #121210; }
.museum-artwork__cartel span { font-size: 12px; color: #6d685e; }

/* 2. MAP MONDE MODERNE & ZOOMABLE (LEAFLET + POP-UPS VIGNETTES) */
.atlas-stage { background: #fff; border: 1px solid #cbd5e1; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 46px rgba(15,23,42,0.12); margin-bottom: 24px; }
.atlas-toolbar { background: #0f172a; color: #f8fafc; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12.5px; font-weight: 600; }
.atlas-view-toggle { display: inline-flex; flex-wrap: wrap; background: rgba(255,255,255,0.1); border-radius: 999px; padding: 3px; gap: 4px; }
.atlas-mode-btn { border: none; background: transparent; color: #cbd5e1; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.atlas-mode-btn.is-active { background: #0ea5e9; color: #fff; }
.atlas-map-wrap { position: relative; width: 100%; height: 470px; background: #dbeafe; overflow: hidden; }
.atlas-leaflet-map { width: 100%; height: 100%; z-index: 1; }
.atlas-zoom-badge { position: absolute; bottom: 12px; left: 12px; z-index: 450; background: rgba(15,23,42,0.82); backdrop-filter: blur(8px); color: #f8fafc; font-family: 'IBM Plex Mono', monospace; font-size: 11px; padding: 6px 11px; border-radius: 999px; pointer-events: none; }
.modern-map-pin-icon { background: transparent; border: none; }
.modern-map-pin { position: relative; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -85%); cursor: pointer; }
.modern-map-pin__avatar { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(15,23,42,0.35), 0 0 0 2px #0ea5e9; overflow: hidden; background: #0f172a; transition: transform 0.18s ease; }
.modern-map-pin__avatar img { width: 100% !important; height: 100% !important; object-fit: cover; }
.modern-map-pin__tag { margin-top: 3px; background: #0f172a; color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.modern-map-pin:hover .modern-map-pin__avatar, .modern-map-pin.is-active .modern-map-pin__avatar { transform: scale(1.2); box-shadow: 0 0 0 4px rgba(249,115,22,0.45), 0 0 0 2.5px #f97316; }
.modern-map-pin.is-active .modern-map-pin__tag { background: #f97316; }

.atlas-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; background: #fff; color: #0f172a; box-shadow: 0 18px 42px rgba(15,23,42,0.36); border: 2px solid #0ea5e9; }
.atlas-popup .leaflet-popup-content { margin: 0; width: 268px !important; }
.atlas-popup .leaflet-popup-tip { background: #fff; }
.map-popup-card { display: block; text-decoration: none; color: #0f172a; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.map-popup-card__img { position: relative; width: 100%; height: 136px; overflow: hidden; background: #0f172a; }
.map-popup-card__img img { width: 100% !important; height: 100% !important; object-fit: cover; }
.map-popup-card__date { position: absolute; bottom: 8px; left: 8px; background: rgba(15,23,42,0.88); color: #f8fafc; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.map-popup-card__body { padding: 11px 13px 12px; }
.map-popup-card__cats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.map-popup-card__cat { font-size: 10.5px; font-weight: 800; text-transform: uppercase; background: #e0f2fe; color: #0369a1; padding: 2px 7px; border-radius: 999px; }
.map-popup-card__title { margin: 0 0 8px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 14.5px; line-height: 1.26; font-weight: 800; color: #0f172a; }
.map-popup-card__cta { font-size: 12px; font-weight: 800; color: #f97316; }

.atlas-stop-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 22px; background: linear-gradient(135deg, #fff 0%, #f8fafc 100%); border-top: 1px solid #e2e8f0; }
.atlas-stop-card img { width: 100%; height: 162px; object-fit: cover; border-radius: 14px; }
.atlas-stop-card__place { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 700; color: #0284c7; background: #e0f2fe; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.atlas-stop-card__title { margin: 8px 0 8px; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(20px, 2.3vw, 25px); line-height: 1.2; }
.atlas-stop-card__excerpt { margin: 0 0 14px; font-size: 14px; color: #475569; }
.atlas-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.atlas-region-box { background: #fff; border: 1px solid #cbd5e1; border-radius: 16px; padding: 15px; }
.atlas-region-box h3 { margin: 0 0 10px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }
.atlas-region-list { display: flex; flex-direction: column; gap: 7px; }
.atlas-loc-btn { text-align: left; border: 1px solid #e2e8f0; background: #f8fafc; color: #0f172a; padding: 9px 11px; border-radius: 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.atlas-loc-btn strong { color: #0284c7; }
.atlas-loc-btn:hover, .atlas-loc-btn.is-active { background: #0f172a; color: #fff; border-color: #0f172a; }
.atlas-loc-btn:hover strong, .atlas-loc-btn.is-active strong { color: #38bdf8; }

/* 3. ARCHIVES SECRÈTES — CHEMISE OUVERTE + CENSURE + REGISTRE À VIGNETTES */
.arch-clearance-bar { background: #1b2f26; color: #e9dfbe; border: 1.5px solid #214032; padding: 10px 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.arch-folder-wrap { position: relative; padding-top: 26px; margin-bottom: 26px; }
.arch-folder-tab { position: absolute; top: 0; left: 16px; background: #e1d4b0; border: 2px solid #214032; border-bottom: none; border-radius: 10px 10px 0 0; padding: 5px 16px 4px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 700; color: #214032; }
.arch-open-folder { background: linear-gradient(90deg, #f3ebd4 0%, #f8f3e3 48%, #e4d8b6 50%, #f8f3e3 52%, #f4ecd7 100%); border: 2px solid #214032; border-radius: 0 10px 10px 10px; padding: 22px; box-shadow: 0 10px 24px rgba(27,36,31,0.2); display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 24px; position: relative; }
.arch-stamp { position: absolute; top: 14px; right: 18px; border: 3px solid #b82924; color: #b82924; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; padding: 4px 10px; transform: rotate(7deg); background: rgba(248,243,227,0.85); pointer-events: none; }
.arch-photo-clip { position: relative; background: #fff; padding: 8px 8px 12px; border: 1px solid #c7ba97; box-shadow: 2px 5px 12px rgba(27,36,31,0.18); transform: rotate(-1.2deg); margin: 0; }
.arch-photo-clip::before { content: "📎"; position: absolute; top: -14px; left: 16px; font-size: 24px; transform: rotate(-18deg); }
.arch-photo-clip img { width: 100%; height: 205px; object-fit: cover; filter: sepia(0.22) contrast(1.04); }
.arch-photo-clip figcaption { margin-top: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #4f5951; }
.arch-meta-table { width: 100%; border-collapse: collapse; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; margin-bottom: 12px; }
.arch-meta-table td { padding: 4px 6px; border-bottom: 1px dashed rgba(33,64,50,0.3); }
.arch-meta-table td:first-child { font-weight: 700; color: #214032; width: 118px; }
.redacted { background: #161b18; color: #161b18; padding: 1px 5px; border-radius: 2px; cursor: pointer; transition: all 0.2s ease; user-select: none; }
.redacted:hover, .redacted.is-revealed { background: #f6e781; color: #161b18; }
.arch-redacted-hint { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #b82924; margin: 0 0 12px; }
.arch-drawers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -2px; padding-left: 8px; }
.arch-drawer-tab { border: 2px solid #214032; border-bottom: none; border-radius: 8px 8px 0 0; background: #d9cfb3; color: #214032; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 700; padding: 8px 13px; }
.arch-drawer-tab.is-active { background: #f7f3e7; color: #b82924; position: relative; z-index: 2; }
.arch-ledger { background: #f7f3e7; border: 2px solid #214032; border-radius: 0 8px 8px 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(27,36,31,0.14); }
.arch-ledger-row { display: grid; grid-template-columns: 82px 88px 86px minmax(0, 1fr) 118px; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px dashed rgba(33,64,50,0.35); text-decoration: none; color: #1b241f; }
.arch-ledger-row:last-child { border-bottom: none; }
.arch-ledger-row:hover { background: #eee5cc; }
.arch-ledger-row--head { background: #214032; color: #f7f3e7; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 14px; }
.arch-thumb-wrap { width: 82px; height: 58px; background: #fff; padding: 3px; border: 1px solid #bfb38f; box-shadow: 2px 3px 6px rgba(27,36,31,0.16); transform: rotate(-1.2deg); overflow: hidden; }
.arch-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.18) contrast(1.03); }
.arch-cote { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 700; color: #b82924; }
.arch-date-col { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #3f4b43; }
.arch-obj-col strong { display: block; font-family: 'Libre Baskerville', Georgia, serif; font-size: 14.5px; line-height: 1.3; margin-bottom: 3px; }
.arch-obj-col small { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #5a665d; }
.arch-status-pill { display: inline-block; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 700; padding: 4px 8px; border: 1.5px solid #214032; color: #214032; border-radius: 3px; }
.arch-ledger-row:hover .arch-status-pill { background: #b82924; border-color: #b82924; color: #fff; }

/* 4. LE MÉTRO DU TEMPS */
.metro-board { background: #10151e; color: #ffd000; border: 3px solid #2d384c; border-radius: 14px; padding: 18px 20px; margin-bottom: 24px; font-family: 'IBM Plex Mono', monospace; }
.metro-board__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #7ee8d4; border-bottom: 1px dashed rgba(255,208,0,0.28); padding-bottom: 10px; margin-bottom: 12px; }
.metro-board__main { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.metro-board__thumb { width: 96px; height: 76px; border-radius: 8px; object-fit: cover; border: 2px solid #ffd000; }
.metro-board__title { margin: 0 0 6px; font-size: 18px; line-height: 1.25; color: #ffe359; font-family: 'Bricolage Grotesque', sans-serif; }
.metro-board__meta { font-size: 12px; color: #b5c7e3; display: flex; flex-wrap: wrap; gap: 10px; }
.metro-board__actions { display: flex; flex-direction: column; gap: 6px; }
.metro-led-btn { text-decoration: none; text-align: center; background: #ffd000; color: #10151e; border: none; border-radius: 8px; padding: 9px 14px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.metro-led-btn--ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.metro-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.metro-legend__pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid rgba(16,32,58,0.16); font-size: 11.5px; font-weight: 700; text-decoration: none; color: #10203a; }
.metro-legend__dot { width: 12px; height: 12px; border-radius: 50%; }
.metro-map { position: relative; padding: 8px 0 12px 34px; display: flex; flex-direction: column; gap: 16px; }
.metro-map::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 18px; width: 8px; border-radius: 999px; background: linear-gradient(to bottom, #d97706 0%, #7c3aed 18%, #0284c7 36%, #059669 56%, #dc2626 78%, #00a88f 100%); }
.metro-station { position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr) 92px; gap: 14px; align-items: center; background: #fff; border: 2px solid rgba(16,32,58,0.14); border-left: 6px solid var(--line-color, #0055a4); border-radius: 12px; padding: 12px 14px; text-decoration: none; }
.metro-station::before { content: ""; position: absolute; left: -30px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--line-color, #0055a4); box-shadow: 0 0 0 3px #f3f5f8; }
.metro-station__year { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; border-radius: 8px; background: var(--line-color, #0055a4); color: #fff; font-family: 'IBM Plex Mono', monospace; text-align: center; }
.metro-station__year strong { font-size: 16px; }
.metro-station__year span { font-size: 10px; }
.metro-station__info h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.25; font-family: 'Bricolage Grotesque', sans-serif; color: #10203a; }
.metro-station__transfers { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 11px; color: #50617a; }
.metro-line-badge { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; }
.metro-transfer-chip { font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #edf2f8; color: #10203a; font-size: 10.5px; }
.metro-station__thumb { width: 92px; height: 66px; object-fit: cover; border-radius: 8px; }

/* 5. MACHINE À REMONTER LE TEMPS (COCKPIT + 3 CARTOUCHES PLEIN FOND / LIGNE) */
.tm-cockpit { background: linear-gradient(160deg, #232833 0%, #14171e 100%); border: 3px solid #c59b43; border-radius: 18px; padding: 20px; box-shadow: 0 18px 46px rgba(0,0,0,0.55); margin-bottom: 24px; }
.tm-cockpit.is-warping { animation: tmWarpFlash 0.42s ease; }
@keyframes tmWarpFlash { 0% { filter: brightness(1); } 45% { box-shadow: 0 0 50px 8px rgba(43,228,220,0.9); filter: brightness(1.45); } 100% { filter: brightness(1); } }
.tm-cockpit__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #2be4dc; }
.tm-dials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tm-dial { background: #090b0f; border: 2px solid #434b5c; border-radius: 10px; padding: 10px 12px; text-align: center; }
.tm-dial small { display: block; font-size: 10px; color: #8c95a8; margin-bottom: 4px; }
.tm-dial strong { display: block; font-family: 'Orbitron', monospace; font-size: clamp(15px, 2vw, 22px); }
.tm-dial--orange strong { color: #ff7b00; text-shadow: 0 0 12px rgba(255,123,0,0.65); }
.tm-dial--cyan strong { color: #2be4dc; text-shadow: 0 0 12px rgba(43,228,220,0.6); }
.tm-dial--green strong { color: #54ff9f; text-shadow: 0 0 12px rgba(84,255,159,0.55); }
.tm-viewport { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: center; background: #0d1017; border: 2px solid rgba(43,228,220,0.45); border-radius: 14px; padding: 16px; }
.tm-hublot { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid #c59b43; box-shadow: 0 0 26px rgba(43,228,220,0.25); }
.tm-hublot img { width: 100%; height: 100%; object-fit: cover; }
.tm-dest__title { margin: 4px 0 8px; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.2; color: #fff; }
.tm-dest__excerpt { margin: 0 0 12px; font-size: 14px; color: #b7becf; }
.tm-meter { margin-bottom: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #ffd188; }
.tm-meter__bar { height: 7px; background: #242934; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.tm-meter__fill { height: 100%; background: linear-gradient(90deg, #2be4dc, #ff7b00); }
.tm-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-btn { border-radius: 10px; padding: 11px 16px; font-family: 'Orbitron', sans-serif; font-size: 12px; font-weight: 800; border: 2px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.tm-btn--warp { background: linear-gradient(135deg, #ff7b00, #ff4500); color: #fff; border-color: #ffd188; }
.tm-btn--open { background: #2be4dc; color: #0b0e14; }
.tm-btn--step { background: #1b1f27; color: #f3efe6; border-color: #5b6478; }

.tm-rack-title { margin: 0 0 14px; font-family: 'Orbitron', sans-serif; font-size: 16px; letter-spacing: 0.08em; color: #c59b43; text-transform: uppercase; }
.tm-cartridges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tm-cartridge { position: relative; overflow: hidden; background: #151922; border: 2px solid #444d63; border-top: 6px solid #c59b43; border-radius: 12px; padding: 16px; min-height: 196px; color: #fff; display: flex; flex-direction: column; cursor: pointer; transition: all 0.18s ease; }
.tm-cartridge__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.35s ease; }
.tm-cartridge__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,13,22,0.56) 0%, rgba(10,13,22,0.72) 48%, rgba(10,13,22,0.92) 100%); }
.tm-cartridge__content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; flex: 1; text-shadow: 0 2px 8px rgba(0,0,0,0.85); }
.tm-cartridge:hover .tm-cartridge__bg, .tm-cartridge.is-loaded .tm-cartridge__bg { transform: scale(1.06); }
.tm-cartridge:hover, .tm-cartridge.is-loaded { border-color: #2be4dc; border-top-color: #ff7b00; box-shadow: 0 0 24px rgba(43,228,220,0.28); transform: translateY(-2px); }
.tm-cartridge__code { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: 'Orbitron', monospace; font-size: 15px; font-weight: 800; color: #ffab4a; }
.tm-cartridge__day { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #f1f5f9; background: rgba(10,13,22,0.62); padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.tm-cartridge__name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 800; line-height: 1.28; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tm-cartridge__go { font-size: 13.5px; color: #5ef3ec; text-decoration: none; font-weight: 800; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.22); }

/* 6. MUR D'ENQUÊTE EN LIÈGE — POLAROIDS MASONRY & FILS ROUGES */
.crime-tape { background: repeating-linear-gradient(-45deg, #f7c911, #f7c911 18px, #191714 18px, #191714 34px); padding: 5px; border-radius: 4px; margin-bottom: 22px; }
.crime-tape__inner { background: #f7c911; color: #191714; font-family: 'IBM Plex Mono', monospace; font-weight: 800; font-size: 12px; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.cork-stage { position: relative; margin-bottom: 28px; }
.cork-strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.cork-hero-row { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 20px; align-items: start; }
.polaroid-hero { background: #fff; padding: 14px 14px 20px; box-shadow: 6px 12px 26px rgba(28,17,6,0.42); transform: rotate(-1.1deg); position: relative; }
.pushpin { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6b6b, #b91c1c 68%, #6b0f0f); box-shadow: 0 5px 8px rgba(0,0,0,0.45); z-index: 5; }
.pushpin--yellow { background: radial-gradient(circle at 35% 30%, #fff08a, #d99b00 70%, #7a5200); }
.pushpin--blue { background: radial-gradient(circle at 35% 30%, #7cc4ff, #1d4ed8 70%, #0f256e); }
.polaroid-hero img { width: 100%; height: 240px; object-fit: cover; filter: sepia(0.08); }
.polaroid-hero__caption { margin-top: 12px; font-family: 'Caveat', cursive; font-size: 27px; line-height: 1.1; font-weight: 700; color: #1c1917; }
.polaroid-hero__sub { margin: 8px 0 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #52483d; }
.sticky-note { background: #fff38a; color: #242014; padding: 18px 16px; box-shadow: 5px 10px 20px rgba(32,20,8,0.34); transform: rotate(2.1deg); position: relative; font-family: 'Caveat', cursive; font-size: 21px; line-height: 1.25; }
.sticky-note::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 74px; height: 22px; background: rgba(255,255,255,0.52); }
.sticky-note strong { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #b91c1c; margin-bottom: 6px; }

.cork-wall { position: relative; z-index: 2; columns: 2; column-gap: 22px; }
.polaroid-card { display: inline-flex; flex-direction: column; width: 100%; margin-bottom: 24px; break-inside: avoid; page-break-inside: avoid; background: #fff; padding: 10px 10px 15px; text-decoration: none; color: #1c1917; box-shadow: 5px 9px 20px rgba(28,17,6,0.38); position: relative; transition: transform 0.18s ease; }
.polaroid-card:nth-child(odd) { transform: rotate(-1.5deg); }
.polaroid-card:nth-child(even) { transform: rotate(1.3deg); }
.polaroid-card:hover { transform: rotate(0deg) scale(1.02) !important; z-index: 10; }
.polaroid-card__tag { position: absolute; top: 16px; right: 16px; background: rgba(200,30,30,0.92); color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; padding: 3px 7px; transform: rotate(3deg); z-index: 2; }
.polaroid-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(0.08); }
.polaroid-card:nth-child(5n+1) img { aspect-ratio: 3 / 4; }
.polaroid-card:nth-child(5n+2) img { aspect-ratio: 16 / 10; }
.polaroid-card:nth-child(5n+3) img { aspect-ratio: 1 / 1; }
.polaroid-card:nth-child(5n+4) img { aspect-ratio: 4 / 3; }
.polaroid-card:nth-child(5n+5) img { aspect-ratio: 16 / 9; }
.polaroid-card__title { margin: 10px 0 4px; font-family: 'Caveat', cursive; font-size: 22px; line-height: 1.12; font-weight: 700; }
.polaroid-card__meta { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #5b5042; display: flex; justify-content: space-between; margin-top: auto; padding-top: 6px; }

/* RESPONSIVE MOBILE */
@media (max-width: 960px) {
  .layout-shell { grid-template-columns: 1fr; }
  .site-sidebar { position: static; }
  .show-mobile-only { display: inline-flex; }
}
@media (max-width: 820px) {
  .hero-card, .museum-showcase, .atlas-stop-card, .atlas-regions, .arch-open-folder, .cork-hero-row { grid-template-columns: 1fr; }
  .tm-cartridges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e404-suite__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch-ledger-row--head { display: none; }
  .arch-ledger-row { grid-template-columns: 78px minmax(0, 1fr); gap: 8px 12px; }
  .arch-status-pill { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .articles-grid, .tm-cartridges, .tm-dials, .tm-viewport, .metro-board__main, .e404-suite__grid { grid-template-columns: 1fr; }
  .museum-gallery, .cork-wall, html[data-theme="gazette"] .articles-grid { columns: 1 !important; }
  .museum-artwork.size--compact { width: 100%; }
  .metro-station { grid-template-columns: 62px minmax(0, 1fr); }
  .metro-station__thumb { display: none; }
  .tm-hublot { width: 170px; margin: 0 auto; }
  .atlas-map-wrap { height: 350px; }
  .polaroid-hero, .sticky-note, .polaroid-card { transform: none !important; }
  .header-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hide-xs { display: none; }
  .floating-switcher { left: 12px; right: 12px; bottom: 12px; justify-content: flex-end; }
  .float-main-btn__dots { display: none; }
  .theme-drawer { bottom: 0; width: 100vw; border-radius: 22px 22px 0 0; padding-bottom: 26px; }
}
