/* Palette VYBE : bleu marine (principal) + bleu ciel très clair (secondaire) */
:root {
  --bg: #f4f7fc; --surface: #fff; --text: #0f1d36; --muted: #5a6882;
  --line: #dbe3f0;
  --accent: #14295a;        /* bleu marine : boutons, liens, éléments actifs */
  --accent-ink: #fff;
  --accent-soft: #e3edff;   /* bleu ciel clair : étiquettes, survols, encadrés */
  --header-bg: #0f2147; --header-ink: #fff; --header-muted: #a9bde3;
  --header-btn: #cfe0ff; --header-btn-ink: #0f2147;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1426; --surface: #12203b; --text: #e9effb; --muted: #9fb0cc;
    --line: #22355a;
    --accent: #a9c8ff; --accent-ink: #0a1426; --accent-soft: #1b3160;
    --header-bg: #071022; --header-ink: #fff; --header-muted: #8fa6cf;
    --header-btn: #a9c8ff; --header-btn-ink: #0a1426;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--header-bg); color: var(--header-ink); }
.top-inner { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; color: var(--header-ink);
  text-decoration: none; }
.brand span { color: var(--header-muted); font-weight: 400; letter-spacing: 0; font-size: 1rem; }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav a:not(.btn) { color: var(--text); text-decoration: none; }
.top nav a:not(.btn) { color: var(--header-ink); }
.top nav a:not(.btn):hover { color: var(--header-btn); }
.top .btn { background: var(--header-btn); color: var(--header-btn-ink); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.btn-small { padding: 6px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }

.hero { padding: 32px 0 8px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 16px; line-height: 1.15; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
@media (max-width: 720px) { .filters { grid-template-columns: 1fr 1fr; }
  .filters input[type=search] { grid-column: 1 / -1; } }

.count { color: var(--muted); margin: 16px 0; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.card img, .card .ph { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--accent-soft); }
.card-body { padding: 14px 16px 18px; }
.card h2 { font-size: 1.05rem; margin: 4px 0; line-height: 1.3; }
.when { color: var(--accent); font-weight: 600; font-size: .9rem; margin: 0; }
.where { color: var(--muted); font-size: .9rem; margin: 0; }
.empty { color: var(--muted); padding: 32px 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 32px 0; }

.event { max-width: 760px; margin: 0 auto; padding: 24px 0; }
.back { text-decoration: none; }
.event h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; }
.hero-img { border-radius: var(--radius); margin: 16px 0; width: 100%; }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
.lead { font-size: 1.1rem; font-weight: 500; }
.desc { white-space: pre-line; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { background: var(--accent-soft); border-radius: 999px; padding: 2px 10px;
  font-size: .85rem; text-decoration: none; }

.narrow { max-width: 640px; margin: 0 auto; padding: 24px 0; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 500; }
.form small { color: var(--muted); font-weight: 400; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.errors { background: var(--accent-soft); border-radius: 8px; padding: 12px 12px 12px 32px; }
.flash { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; margin-top: 16px; }

.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pending { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 16px 16px; margin-bottom: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-bar { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line); }
.foot { color: var(--muted); font-size: .85rem; padding-top: 32px; padding-bottom: 32px; }

.also, .source { color: var(--muted); font-size: .9rem; }
.dup-score { font-weight: 600; margin-bottom: 4px; }
.dup-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.dup-cols h3 { margin: 2px 0; font-size: 1rem; }
.dup-cols p { margin: 2px 0; }
@media (max-width: 600px) { .dup-cols { grid-template-columns: 1fr; } }
.dup-list { padding-left: 18px; }
.dup-list li { margin-bottom: 8px; }
.dup-list form { display: inline; margin-left: 8px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none;
  color: var(--text); background: var(--surface); font-size: .95rem; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.media { position: relative; }
.badge { position: absolute; left: 8px; bottom: 8px; background: rgba(10,22,48,.78); color: #fff;
  font-size: .72rem; padding: 2px 8px; border-radius: 999px; }
figure.photo { margin: 16px 0; }
figure.photo .hero-img { margin: 0; }
figcaption { color: var(--muted); font-size: .8rem; margin-top: 6px; }
figcaption a { color: var(--muted); }
.tags span { background: var(--line); border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.illus-grid .card img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
