:root {
  --white: #ffffff;
  --off-white: #f8f7f4;
  --light-gray: #f0eeea;
  --mid-gray: #e0ddd8;
  --text-gray: #666;
  --ink: #111111;
  --ink-soft: #333333;
  --red: #c0392b;
  --red-dark: #a93226;
  --red-pale: #fdf1f0;
  --border: #ddd;
  --border-light: #ececec;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  background-color: var(--off-white);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 32px;
  border-bottom: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-gray);
  font-family: 'Inter', sans-serif;
}

.header-meta-center {
  font-style: italic;
  color: #aaa;
}

.header-main {
  padding: 20px 32px 16px;
  text-align: center;
  border-bottom: 3px double #ccc;
}

.header-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

h1 span { color: var(--red); }

.header-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 8px;
}

.header-vote-cta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: stretch;
  border-top: 2px solid var(--ink);
  background: var(--white);
}

.nav-item {
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  border-right: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
}

.nav-item:first-child { border-left: none; }
.nav-item:hover { background: var(--light-gray); color: var(--red); }

.nav-item.active {
  background: var(--ink);
  color: var(--white);
}

.nav-separator { flex: 1; }

.nav-item.nav-cta {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  font-weight: 700;
  padding: 10px 24px;
  border-left: 1px solid var(--border-light);
}

.nav-item.nav-cta:hover { background: var(--red-dark); }

/* ===== TICKER ===== */
.ticker-band {
  background: var(--ink);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 34px;
}

.ticker-label {
  background: var(--red);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track span {
  display: inline-block;
  white-space: nowrap;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding-left: 16px;
}

@keyframes ticker-marquee {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  padding: 16px 40px;
  text-align: center;
}

.stat-clickable {
  cursor: pointer;
  transition: opacity 0.15s;
}
.stat-clickable:hover { opacity: 0.7; }

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  display: block;
  line-height: 1;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-top: 4px;
  display: block;
}

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

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.section-rubric {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 3px 9px;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-gray);
  margin-left: auto;
  font-style: italic;
}

/* ===== CATEGORIES ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.category-card {
  background: var(--white);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.category-card:hover,
.category-card.active {
  background: var(--red);
}

.category-card:hover .cat-name,
.category-card.active .cat-name { color: var(--white); }

.category-card:hover .cat-count,
.category-card.active .cat-count { color: rgba(255,255,255,0.65); }

.cat-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 10px;
}

.cat-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: block;
  transition: color 0.15s;
  line-height: 1.3;
}

.cat-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 5px;
  display: block;
  transition: color 0.15s;
}

/* ===== PODIUM ===== */
.podiums-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.podium-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.podium-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  padding: 24px;
  position: relative;
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.podium-place {
  text-align: center;
  flex: 1;
  max-width: 240px;
}

.podium-rank {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--mid-gray);
  line-height: 1;
}

.podium-place:nth-child(2) .podium-rank {
  color: var(--red);
  font-size: 64px;
}

.podium-bar {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--mid-gray);
  padding: 16px;
  margin-top: 8px;
  min-height: 110px;
}

.podium-place:nth-child(1) .podium-bar { min-height: 110px; }
.podium-place:nth-child(2) .podium-bar {
  background: var(--red-pale);
  border-color: var(--red);
  border-top-color: var(--red);
  min-height: 150px;
}
.podium-place:nth-child(3) .podium-bar { min-height: 80px; }

.podium-empty {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-gray);
  text-align: center;
  padding: 24px;
  width: 100%;
}

.podium-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  display: block;
  line-height: 1.3;
}

.podium-votes {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  margin-top: 6px;
  display: block;
}

.podium-cat {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-gray);
  display: block;
  margin-top: 3px;
}

.podium-share-wrap {
  position: absolute;
  top: 12px;
  right: 12px;
}
.podium-share {
  background: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  letter-spacing: .04em;
}
.podium-share:hover { border-color: var(--ink); color: var(--ink); }

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.specimen-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeInUp 0.4s ease both;
  display: flex;
  flex-direction: column;
}

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

.specimen-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-ribbon {
  position: absolute;
  top: 12px;
  right: 0;
  background: var(--red);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.card-ribbon.gold {
  background: #b8860b;
}

.card-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.specimen-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--mid-gray);
  line-height: 1;
  flex-shrink: 0;
}

.specimen-meta { flex: 1; }

.specimen-category {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 5px;
}

.specimen-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.screenshot-area {
  background: var(--light-gray);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshot-area img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

.analysis {
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  margin: 16px 16px 0;
  background: var(--red-pale);
}

.context-block {
  border-left-color: #888;
  background: var(--light-gray);
}

.analysis-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 5px;
}

.analysis-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.card-footer {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

@keyframes vote-pulse {
  0%, 100% { border-color: var(--border); box-shadow: none; }
  50% { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-pale); }
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.15s;
  animation: vote-pulse 2s ease-in-out 3;
}
.vote-btn:hover, .vote-btn.voted { animation: none; }

.vote-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.vote-btn.voted {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-gray);
  transition: all 0.15s;
}
.share-btn:hover { background: var(--light-gray); color: var(--ink); border-color: var(--mid-gray); }

.share-popover {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 1200;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}
.share-popover a,
.share-popover button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.share-popover a:last-child,
.share-popover button:last-child { border-bottom: none; }
.share-popover a:hover,
.share-popover button:hover { background: var(--light-gray); }

.specimen-card.highlighted {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ===== SUBMIT BANNER ===== */
.submit-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  padding: 22px 28px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.submit-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.submit-text p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-gray);
}

.submit-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.submit-btn:hover { background: var(--red-dark); }

/* ===== NEWSLETTER BANNER ===== */
.newsletter-banner {
  background: var(--ink);
  padding: 28px 32px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.newsletter-text p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: var(--white);
  padding: 9px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  width: 240px;
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.4); }

.newsletter-form button {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  padding: 9px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--red-dark); }

.newsletter-msg {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  margin-top: 8px;
  display: none;
}

.newsletter-msg.ok { color: #4ade80; display: block; }
.newsletter-msg.err { color: #f87171; display: block; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--white);
  border-top: 4px solid var(--red);
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.modal-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 3px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.modal-body { padding: 24px; }

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-gray);
}

.form-privacy-notice {
  margin-top: 8px;
  padding: 8px 10px;
  background: #fffbf0;
  border-left: 3px solid #e6a817;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.form-input,
.form-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus { border-color: var(--red); }

.form-file-label {
  display: block;
  padding: 24px;
  border: 2px dashed var(--border);
  text-align: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-gray);
  transition: all 0.15s;
}

.form-file-label:hover { border-color: var(--red); color: var(--red); }

.form-file-info {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-gray);
  margin-top: 4px;
  text-align: center;
}

.form-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}

.form-submit:hover:not(:disabled) { background: var(--red-dark); }
.form-submit:disabled { opacity: 0.5; cursor: default; }

.form-msg {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-align: center;
  display: none;
}

.form-msg.ok  { color: #2e7d32; display: block; }
.form-msg.err { color: var(--red); display: block; }

/* ===== GALLERY EMPTY ===== */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-gray);
  font-size: 16px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  padding: 32px 40px;
  text-align: center;
}

.footer-main { margin-bottom: 16px; }

.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-motto {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.35);
}

.footer-note {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stats-bar { flex-wrap: wrap; }
  .stat-item { padding: 12px 20px; }
  .stat-divider { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .podiums-grid { grid-template-columns: 1fr; gap: 12px; }
  .header-meta-center { display: none; }
  .header-meta-right { display: none; }
  .submit-banner { flex-direction: column; }
  .newsletter-banner { flex-direction: column; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; border-right: 1px solid rgba(255,255,255,0.15); }
  .nav-separator { display: none; }
  .section-title { font-size: 16px; }

  /* Nav mobile : items partagent la largeur, CTA passe en dessous */
  .header-nav { flex-wrap: wrap; }
  .nav-item { flex: 1; min-width: 0; padding: 10px 6px; font-size: 10px; justify-content: center; text-align: center; }
  .nav-item.nav-cta { flex: 0 0 100%; justify-content: center; border-left: none; border-top: 1px solid var(--border-light); padding: 10px; }
}

/* ── Lightbox ── */
.screenshot-area img { cursor: zoom-in; }

#lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1200; cursor: zoom-out; padding: 20px;
}
#lightbox.hidden { display: none; }
#lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
#lightbox-close {
  position: fixed; top: 20px; right: 28px; z-index: 1201;
  color: white; font-size: 32px; cursor: pointer; line-height: 1;
  opacity: 0.7; font-family: sans-serif;
}
#lightbox-close:hover { opacity: 1; }

/* ── Gallery controls ── */
.gallery-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 0 0 20px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light); margin-bottom: 24px;
}
.gallery-sort-select {
  background: var(--white); border: 1px solid var(--border);
  color: var(--ink-soft); font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 7px 10px; cursor: pointer;
  appearance: auto;
}
.gallery-actions { display: flex; gap: 6px; align-items: center; }

/* Bouton secondaire : même charte que share-btn */
.filter-btn {
  background: var(--white); border: 1px solid var(--border);
  color: var(--text-gray); font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 7px 12px; cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { background: var(--light-gray); color: var(--ink); border-color: var(--mid-gray); }
.filter-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* Bouton diaporama : accentué rouge, même gabarit que submit-btn */
.slideshow-btn {
  background: var(--red); color: var(--white); border: none;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; cursor: pointer; transition: background 0.15s;
}
.slideshow-btn:hover { background: var(--red-dark); }

/* Badge compteur */
.badge {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 1px 6px; margin-left: 4px;
  vertical-align: middle;
}

/* ── Point "non vu" ── */
.unseen-dot {
  position: absolute; top: 10px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); z-index: 2;
  box-shadow: 0 0 0 2px var(--white);
}
.specimen-card { position: relative; }

/* ── Pagination ── */
.pagination {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 32px 0 16px;
}
.pagination-info {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-gray);
}
.pagination-controls { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.page-btn {
  background: var(--white); border: 1px solid var(--border);
  color: var(--ink-soft); font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; padding: 6px 11px;
  cursor: pointer; transition: all 0.15s; min-width: 34px; text-align: center;
}
.page-btn:hover:not(:disabled) { background: var(--light-gray); color: var(--ink); }
.page-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* ── Diaporama ── */
#slideshow-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
}
#slideshow-modal.hidden { display: none; }
.ss-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.88);
}
.ss-wrap {
  position: relative; z-index: 1; width: min(580px, calc(100vw - 100px));
  max-height: 90vh; overflow-y: auto;
}
.ss-wrap .specimen-card { margin: 0; animation: none !important; }
.ss-progress {
  text-align: center; color: rgba(255,255,255,0.45);
  font-family: 'Inter', sans-serif; font-size: 10px;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 10px 0 2px;
}
.ss-nav {
  position: relative; z-index: 1; background: none; border: none;
  color: rgba(255,255,255,0.4); font-size: 48px; line-height: 1;
  cursor: pointer; padding: 12px; transition: color 0.15s; flex-shrink: 0;
  user-select: none; font-weight: 300;
}
.ss-nav:hover { color: rgba(255,255,255,0.9); }
.ss-close {
  position: absolute; top: 16px; right: 20px; z-index: 2; background: none; border: none;
  color: rgba(255,255,255,0.4); font-family: 'Inter', sans-serif;
  font-size: 20px; cursor: pointer; line-height: 1; transition: color 0.15s;
}
.ss-close:hover { color: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
  .ss-wrap { width: calc(100vw - 72px); }
  .ss-nav { font-size: 36px; padding: 8px; }
  .gallery-controls { flex-direction: column; align-items: stretch; gap: 6px; }
  .gallery-actions { flex-direction: row; }
  .filter-btn, .slideshow-btn { flex: 1; text-align: center; }
}
