:root {
  --gs-blue: #4A7AC7;
  --gs-green: #1a9e5b;
  --gs-red: #d93640;
  --gs-amber: #b8880a;
  --gs-bg: #e8e3db;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--gs-bg); }
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* ── Shell ── */
.app-shell {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
}
@media (min-width: 500px) {
  body:not(.body--admin) { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
  .app-shell {
    height: min(900px, calc(100vh - 40px));
    border-radius: 36px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.07);
  }
}

/* ── Header ── */
.gs-header {
  padding: 14px 20px 0;
  flex-shrink: 0;
  background: white;
}
.gs-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  text-decoration: none;
  color: inherit;
}
.gs-logomark { display: block; flex-shrink: 0; }
.gs-title-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.gs-gresi {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: #4A7AC7;
  letter-spacing: 0.5px;
}
.gs-sorties {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 25px;
  color: #E63946;
}
.gs-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: #b0a899;
  margin-top: -1px;
}

/* ── Filter pills ── */
.gs-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0 14px;
  margin-right: -20px;
}
.gs-filters::after { content: ''; width: 20px; flex-shrink: 0; }
.gs-pill {
  padding: 6px 14px;
  border-radius: 22px;
  flex-shrink: 0;
  cursor: pointer;
  background: #f2f0ed;
  color: #888;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.gs-pill:active { transform: scale(0.97); }
.gs-pill--active { background: #E63946; color: white; }

.gs-divider { height: 1px; background: #f2f0ec; flex-shrink: 0; }

/* ── Event list ── */
.gs-list {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
}
.gs-empty {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: #b0a899;
  text-align: center;
  padding: 48px 20px;
}
.gs-list-end {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: #b0a899;
  text-align: center;
  padding: 24px 20px 32px;
}

/* ── Bucket section ── */
.gs-bucket-header {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #E63946;
  padding: 18px 16px 4px;
}

/* ── Day group ── */
.gs-day-group { }
.gs-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 10px;
}
.gs-day-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #111;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}
.gs-day-line { flex: 1; height: 1px; background: #f0f0f0; }
.gs-day-count {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: #bbb;
  flex-shrink: 0;
}
.gs-cards { padding: 0 16px; }

/* ── Event card ── */
.gs-card {
  display: block;
  background: white;
  border: 1.5px solid #f0f0f0;
  border-left-width: 4px;
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 120ms ease, transform 120ms ease;
}
.gs-card:hover  { background: #fdfcfb; }
.gs-card:active { background: #f8f6f2; transform: scale(0.993); }

.gs-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
  margin-bottom: 8px;
}
.gs-card-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.gs-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: #888;
}
.gs-meta-item svg { display: block; flex-shrink: 0; }
.gs-price-icon { font: 700 12px 'Space Grotesk', sans-serif; color: #c8c8c8; line-height: 1; }

/* ── Detail page ── */
.detail-shell {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 500px) {
  .detail-shell {
    height: min(900px, calc(100vh - 40px));
    border-radius: 36px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.07);
  }
}
.detail-back {
  padding: 12px 16px 8px;
  flex-shrink: 0;
}
.detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: 'Caveat', cursive;
  font-size: 17px;
  color: #4A7AC7;
}
.detail-hero {
  margin: 0 16px;
  border-radius: 16px;
  padding: 18px 20px 20px;
  background: #E63946;
  flex-shrink: 0;
}
.detail-hero-meta {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 6px;
}
.detail-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: white;
  line-height: 1.25;
  letter-spacing: 0.2px;
}
.detail-badge {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.2px;
}
.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 100px;
}
.detail-info-row {
  display: flex;
  gap: 13px;
  margin-bottom: 15px;
  align-items: flex-start;
}
.detail-info-icon {
  width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  justify-content: center;
}
.detail-info-label {
  font-family: 'Caveat', cursive;
  font-size: 12px;
  color: #c0b8ae;
  line-height: 1;
  margin-bottom: 2px;
}
.detail-info-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
}
.detail-sep { height: 1px; background: #f2f0ec; margin: 6px 0 16px; }
.detail-desc {
  font-family: 'Caveat', cursive;
  font-size: 15px;
  color: #777;
  line-height: 1.75;
}
.detail-source {
  display: inline-block;
  margin-top: 14px;
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: #4A7AC7;
  text-decoration: none;
}
.detail-cta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px 16px;
  background: white;
  border-top: 1px solid #f2f0ec;
}


/* ══════════════════════════════════════════════════
   ADMIN — port littéral de design/Grési Sorties Admin.html
   ══════════════════════════════════════════════════ */

html:has(body.body--admin) { background: #f5f4f1 !important; height: auto !important; }
body.body--admin table,
body.body--admin input,
body.body--admin button,
body.body--admin select,
body.body--admin textarea { font-family: inherit; color: inherit; }
body.body--admin {
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
  height: auto !important;
  min-height: 100vh;
  background: #f5f4f1 !important;
  font-family: 'Space Grotesk', sans-serif;
  color: #18171a;
}

/* ── Header ── */
.adm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e4e2de;
  height: 54px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.adm-brand { display: flex; align-items: center; gap: 10px; }
.adm-logo { display: block; flex-shrink: 0; }
.adm-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #18171a;
}
.adm-brand-badge {
  background: #eeecea;
  color: #6b6a67;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.07em;
}
.adm-meta { display: flex; align-items: center; gap: 20px; }
.adm-date { font-size: 12.5px; color: #9e9c99; }
.adm-logout { font-size: 12.5px; color: #6b6a67; text-decoration: none; }
.adm-logout:hover { color: #18171a; }

/* ── Main shell ── */
.adm-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px 60px;
}
.adm-h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: #18171a;
  margin: 0;
}
.adm-section-h2 { margin-top: 28px; margin-bottom: 12px; }
.adm-h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #9e9c99;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 20px 0 10px;
}
.adm-divider { height: 1px; background: #e8e6e2; margin: 24px 0 0; }
.adm-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
  opacity: 0;
}

/* ── KPI strip ── */
.adm-kpi-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-kpi {
  flex: 1 1 180px;
  background: #fff;
  border: 1px solid #e4e2de;
  border-radius: 8px;
  padding: 16px 20px;
}
.adm-kpi--amber { background: #fffbf0; border-color: #f0d78a; }
.adm-kpi--red   { background: #fff5f5; border-color: #f5c0c2; }
.adm-kpi--link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.adm-kpi--link:hover { border-color: #b0aea9; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.adm-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #9e9c99;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adm-kpi-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: #18171a;
}
.adm-kpi-num--green { color: #1a9e5b; }
.adm-kpi-num--amber { color: #b8880a; }
.adm-kpi-num--red   { color: #d93640; }
.adm-kpi-scraper { display: flex; align-items: center; gap: 8px; }
.adm-kpi-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.adm-kpi-scraper-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}
.adm-kpi-sub { font-size: 11px; color: #c0bebc; margin-top: 5px; }
.adm-kpi-sub--total { opacity: 0.7; margin-top: 3px; }

/* ── Scraper section (toujours visible) ── */
.adm-scraper-section {
  background: #fff;
  border: 1px solid #e4e2de;
  border-radius: 8px;
  overflow: hidden;
}
.adm-btn-run-all {
  background: #18171a;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 12px;
  font: 600 12px 'Space Grotesk', sans-serif;
  cursor: pointer;
}
.adm-btn-run-all:hover { background: #2a2829; }
.adm-mon-table { width: 100%; border-collapse: collapse; }
.adm-mon-table thead tr { background: #faf9f8; }
.adm-mon-table thead th {
  padding: 7px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #9e9c99;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid #f0eeed;
}
.adm-mon-table thead th:last-child { text-align: right; }
.adm-mon-tr { border-top: 1px solid #f5f4f1; }
.adm-mon-tr:first-of-type { border-top: none; }
.adm-mon-tr:hover td { background: #fafaf8 !important; }
.adm-mon-td { padding: 9px 20px; font-size: 13px; color: #18171a; vertical-align: middle; }
.adm-mon-td--ok   { background: #fff; }
.adm-mon-td--info { background: #f4f7fd; }
.adm-mon-td--warn { background: #fffdf5; }
.adm-mon-td--err  { background: #fff8f8; }
.adm-mon-source { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.adm-scraper-fold-row--hidden { display: none; }
.adm-scraper-fold-btn { display: block; margin: 8px auto 0; background: none; border: 1px solid #d0cec9; border-radius: 6px; padding: 5px 16px; font-size: 13px; color: #666; cursor: pointer; }
.adm-scraper-fold-btn:hover { background: #f5f4f2; }
.adm-mon-when { font-size: 12.5px; color: #6b6a67; letter-spacing: 0.02em; }
.adm-mon-when--err { color: #d93640; }
.adm-mon-num--zero     { color: #d4650a; font-weight: 600; font-size: 13px; }
.adm-mon-num--none     { color: #d93640; font-weight: 600; font-size: 13px; }
.adm-mon-num--filtered { color: #5b8dd9; font-weight: 600; font-size: 13px; }
.adm-mon-silent { font-size: 11px; font-weight: 400; }
.adm-mon-silent--info { color: #5b8dd9; }
.adm-mon-stat { display: flex; align-items: center; gap: 6px; }
.adm-mon-stat-dot { width: 7px; height: 7px; border-radius: 50%; }
.adm-mon-stat-lab { font-size: 12.5px; }
.adm-mon-stat-lab--ok   { color: #1a9e5b; }
.adm-mon-stat-lab--info { color: #5b8dd9; }
.adm-mon-stat-lab--warn { color: #d4650a; font-weight: 600; }
.adm-mon-stat-lab--err  { color: #d93640; font-weight: 600; }
.adm-mon-td--right { text-align: right; }
.adm-btn-relaunch {
  background: none;
  color: #4A7AC7;
  border: 1px solid #c3d4ec;
  border-radius: 4px;
  padding: 3px 10px;
  font: 500 12px 'Space Grotesk', sans-serif;
  cursor: pointer;
}
.adm-btn-relaunch:hover { background: #f0f4fc; }
.adm-mon-err-row td {
  padding: 5px 20px 8px 48px;
  font-size: 12px;
  color: #d93640;
  background: #fff8f8;
  font-family: monospace;
}

/* ── Queue ── */
.adm-queue { margin-top: 28px; }
.adm-queue-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.adm-queue-sub { font-size: 12.5px; color: #9e9c99; }
.adm-empty {
  background: #fff;
  border: 1px solid #e4e2de;
  border-radius: 8px;
  padding: 36px 20px;
  text-align: center;
}
.adm-empty-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #1a9e5b;
  margin-bottom: 6px;
}
.adm-empty-sub { font-size: 13px; color: #9e9c99; }

/* ── Event card (details/summary) ── */
.adm-ev {
  background: #fff;
  border-radius: 7px;
  margin-bottom: 5px;
  border: 1px solid #e4e2de;
  border-left: 3px solid #999;
  overflow: hidden;
}
.adm-ev-row {
  padding: 0;
  cursor: pointer;
  list-style: none;
  list-style-type: none;
}
.adm-ev-row::-webkit-details-marker { display: none; }
.adm-ev-row::marker { content: ''; display: none; }
.adm-ev-row-inner {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  gap: 12px;
}
.adm-ev-row:hover .adm-ev-row-inner { background: #f8f7f5; }
.adm-ev[open] > .adm-ev-row .adm-ev-row-inner { background: #f8f7f5; }
.adm-ev-title {
  flex: 0 1 300px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #18171a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-ev-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex-wrap: wrap;
}
.adm-ev-date { font-size: 12.5px; color: #5c5b58; white-space: nowrap; flex-shrink: 0; }
.adm-ev-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.adm-ev-source {
  font-size: 12px;
  color: #4A7AC7;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.adm-ev-source:hover { text-decoration: none; }
.adm-ev-scraped { font-size: 11.5px; color: #c0bebc; white-space: nowrap; flex-shrink: 0; }
.adm-ev-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.adm-ev-actions form { margin: 0; display: contents; }
.adm-btn-pub {
  background: #1a9e5b;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 14px;
  font: 600 12.5px 'Space Grotesk', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.adm-btn-pub:hover { background: #178a50; }
.adm-btn-rej {
  background: #fff;
  color: #6b6966;
  border: 1px solid #e4e2de;
  border-radius: 5px;
  padding: 5px 10px;
  font: 600 12.5px 'Space Grotesk', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.adm-btn-rej:hover { background: #f4f2ee; color: #d93640; border-color: #e8c4c6; }
.adm-evt-td--heure { white-space: nowrap; }
.adm-btn-pub { padding: 5px 10px; }
.adm-btn-del {
  background: none;
  color: #9e9c99;
  border: 1px solid #e4e2de;
  border-radius: 5px;
  padding: 5px 10px;
  font: 600 12.5px 'Space Grotesk', sans-serif;
  cursor: pointer;
}
.adm-btn-del:hover { background: #fef2f2; color: #d93640; border-color: #e8c4c6; }

.adm-ev-exp {
  padding: 12px 18px 14px;
  border-top: 1px solid #f0eeed;
  background: #fdfcfb;
}
.adm-ev-desc {
  font-size: 13px;
  color: #3d3c3a;
  line-height: 1.65;
  margin-bottom: 12px;
}

/* ── Slot edit / add ── */
.adm-slot-edit, .adm-slot-add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: #f7f5f2;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.adm-slot-add-form { background: #f0f4fb; margin-top: 6px; }
.adm-slot-lab { font-size: 11px; color: #888; }
.adm-slot-input-date,
.adm-slot-input-time {
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 6px;
}
.adm-slot-input-time { width: 100px; }
.adm-btn-slot-save, .adm-btn-slot-add {
  background: #4A7AC7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.adm-slot-add { font-size: 13px; }
.adm-slot-add > summary {
  cursor: pointer;
  color: #4A7AC7;
  font-size: 12px;
  list-style: none;
}
.adm-slot-add > summary::-webkit-details-marker { display: none; }

/* ── Group edit form ── */
.adm-ev-title-link { color: inherit; text-decoration: none; }
.adm-ev-title-link:hover { text-decoration: underline; color: #4A7AC7; }
.adm-ev-dates { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
.adm-group-edit { flex-direction: column; align-items: flex-start; }
.adm-group-edit .adm-slot-lab { margin-top: 4px; }
.adm-slot-input-text {
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 8px;
  width: 100%;
  max-width: 480px;
}
.adm-slot-input-text--short { max-width: 180px; }
.adm-slot-input-textarea {
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 8px;
  width: 100%;
  max-width: 480px;
  min-height: 70px;
  resize: vertical;
  font-family: inherit;
}
.adm-occ-list { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.adm-occ-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f4fb;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12.5px;
}
.adm-occ-date { color: #3d3c3a; flex: 1; }

/* ── Stats ── */
.adm-stats { margin-top: 28px; }
.adm-stats-row {
  display: flex;
  gap: 10px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}
.adm-stat {
  flex: 1 1 140px;
  background: #fff;
  border: 1px solid #e4e2de;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.adm-stat-lab {
  font-size: 11px;
  font-weight: 600;
  color: #9e9c99;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.adm-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: #18171a;
}
.adm-stat--green { border-color: #a8d4c0; background: #f3faf8; }
.adm-stat--green .adm-stat-num { color: #1a9e5b; }
.adm-stat--amber { border-color: #f0d78a; background: #fffbf0; }
.adm-stat--amber .adm-stat-num { color: #b8880a; }
.adm-stat--red   { border-color: #f5c0c2; background: #fff5f5; }
.adm-stat--red   .adm-stat-num { color: #d93640; }

.adm-break-row { display: flex; gap: 20px; flex-wrap: wrap; }
.adm-break {
  flex: 1;
  min-width: 240px;
  background: #fff;
  border: 1px solid #e4e2de;
  border-radius: 10px;
  padding: 14px 16px;
}
.adm-break-title {
  font-size: 11px;
  font-weight: 600;
  color: #9e9c99;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.adm-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.adm-bar-lab {
  width: 130px;
  flex-shrink: 0;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-bar-track {
  flex: 1;
  height: 8px;
  background: #f0eeed;
  border-radius: 4px;
  overflow: hidden;
}
.adm-bar-fill {
  height: 100%;
  border-radius: 4px;
  min-width: 4px;
  transition: width 400ms ease;
}
.adm-bar-fill--blue { background: #4A7AC7; }
.adm-bar-fill--purple { background: #7c5cbf; }
.adm-bar-n {
  width: 28px;
  text-align: right;
  color: #888;
  font-size: 12px;
  flex-shrink: 0;
}

.adm-empty-data { color: #b0a899; font-style: italic; font-size: 14px; }

/* ── Historique semaine ── */
.adm-history { margin-top: 20px; padding-bottom: 4px; }
.adm-history-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.adm-history-chev { font-size: 11px; color: #c0bebc; }
.adm-history-chev--open  { display: none; }
#adm-history-toggle:checked ~ .adm-history .adm-history-chev--closed { display: none; }
#adm-history-toggle:checked ~ .adm-history .adm-history-chev--open   { display: inline; }
.adm-history-title {
  font-size: 12px;
  font-weight: 600;
  color: #c0bebc;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.adm-history-body {
  display: none;
  margin-top: 10px;
  background: #fff;
  border: 1px solid #e4e2de;
  border-radius: 8px;
  overflow: hidden;
}
#adm-history-toggle:checked ~ .adm-history .adm-history-body { display: block; }
.adm-history-empty {
  padding: 18px 20px;
  font-size: 13px;
  color: #c0bebc;
  text-align: center;
}
.adm-history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}
.adm-history-row--sep { border-top: 1px solid #f5f4f1; }
.adm-history-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}
.adm-history-badge--published { background: #edf7f1; color: #1a9e5b; }
.adm-history-badge--rejected  { background: #fef2f2; color: #d93640; }
.adm-history-ev-title {
  font-size: 13px;
  color: #18171a;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-history-commune {
  font-size: 12px;
  color: #c0bebc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.adm-history-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.adm-history-date { font-size: 12px; color: #c0bebc; flex-shrink: 0; }

/* ── Tableau événements unifié (#66) ── */
.adm-events-search-wrap { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; }
.adm-events-search {
  flex: 1; max-width: 400px;
  padding: 7px 12px;
  border: 1px solid #e0deda; border-radius: 6px;
  font-size: 13px; font-family: inherit; color: #18171a; background: #fafaf8;
}
.adm-events-search:focus { outline: none; border-color: #4A7AC7; background: #fff; }
.adm-events-count { font-size: 12px; color: #9e9c99; }
.adm-events-table { width: 100%; border-collapse: collapse; }
.adm-evt-th {
  padding: 8px 12px;
  font-size: 11.5px; font-weight: 600; color: #6b6a67;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: #faf9f8; border-bottom: 1px solid #e8e6e2;
  text-align: left;
}
.adm-evt-th--title { width: 30%; }
.adm-evt-th--age { white-space: nowrap; }
.adm-evt-td--age { white-space: nowrap; }
.adm-evt-th--actions { text-align: left; }
.adm-evt-th--sortable { cursor: pointer; user-select: none; }
.adm-evt-th--sortable:hover { color: #3a3a38; }
.adm-sort-arrow { font-style: normal; font-size: 10px; margin-left: 3px; color: #bbb; }
.adm-evt-th--sort-asc .adm-sort-arrow::after { content: '▲'; color: #4A7AC7; }
.adm-evt-th--sort-desc .adm-sort-arrow::after { content: '▼'; color: #4A7AC7; }
.adm-status-pill { font-size: 11px; white-space: nowrap; }
.adm-evt-td--source { font-size: 12px; color: #6b6a67; white-space: nowrap; }
.adm-evt-section-th {
  padding: 6px 12px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: #6b6a67; text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left;
}
.adm-evt-section-header + .adm-evt-tr { border-top: none; }
.adm-evt-tr { border-top: 1px solid #f0ede8; }
.adm-evt-tr:first-of-type { border-top: none; }
.adm-evt-td { padding: 9px 12px; font-size: 13px; color: #18171a; vertical-align: top; }
.adm-evt-td--dates { white-space: nowrap; }
.adm-evt-td--actions { text-align: left; white-space: nowrap; }
.adm-evt-td--actions form { display: inline; margin: 0; }
.adm-evt-edit-td { padding: 0 !important; }
.adm-evt-edit-wrap { padding: 12px 16px; border-top: 1px dashed #e0deda; }
.adm-evt-edit-meta { margin-top: 8px; }
.adm-evt-date { font-size: 12px; color: #5c5b58; }
.adm-badge-more {
  display: inline-block; margin-left: 4px; padding: 1px 5px;
  border-radius: 10px; font-size: 10px; font-weight: 600;
  background: #e8e7e4; color: #6b6a67; cursor: default; vertical-align: middle;
}
.adm-badge-running {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: 10px; font-size: 10px; font-weight: 600;
  background: #fff3cd; color: #856404;
}
.adm-toast {
  background: #1a1a18; color: #f0ede8; padding: 10px 16px;
  border-radius: 8px; font-size: 13px; font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); pointer-events: auto;
  animation: adm-toast-in .2s ease;
}
@keyframes adm-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.adm-evt-status {
  display: inline-block; padding: 2px 8px;
  border-radius: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.adm-evt-status--pending   { background: #fff8e6; color: #b8880a; }
.adm-evt-status--published { background: #edf7f1; color: #1a9e5b; }
.adm-evt-status--rejected  { background: #fef2f2; color: #d93640; }
.adm-btn-expand {
  background: #f5f4f1; border: 1px solid #e0deda; color: #5c5b58;
  font: 600 12.5px 'Space Grotesk', sans-serif;
  padding: 5px 14px; border-radius: 5px;
  cursor: pointer; white-space: nowrap;
}
.adm-btn-expand:hover { background: #eae9e6; color: #18171a; }
.adm-load-more-wrap { display: none; }
#adm-load-more { display: block; margin: 12px auto; }
.adm-load-more-btn {
  background: #f5f4f1; border: 1px solid #e0deda; color: #5c5b58;
  font-size: 13px; padding: 8px 20px; border-radius: 6px;
  cursor: pointer; font-family: inherit;
}
.adm-load-more-btn:hover { background: #eae9e6; color: #18171a; }
.adm-evt-zebra { background: #fafafa; }
.adm-row-future { background: #fffbf2 !important; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.gs-footer {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; color: #b0a899;
}
.gs-footer-links { display: flex; align-items: center; gap: 10px; }
.gs-footer a { color: #888; text-decoration: none; }
.gs-footer a:hover { color: #444; }
.gs-footer-sep { color: #ccc; }
.gs-footer-logo { opacity: 0.45; flex-shrink: 0; }
.gs-footer-coffee { white-space: nowrap; }

/* ── Pages statiques (À propos, Contact) ────────────────────────────────── */
.gs-static-page {
  flex: 1; overflow-y: auto;
  max-width: 640px; margin: 0 auto; padding: 28px 20px 16px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px;
  color: #2a2a2a; line-height: 1.65;
}
.gs-back-link {
  display: inline-block; margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  color: #b0a899; text-decoration: none;
}
.gs-back-link:hover { color: #888; }
.gs-static-page h1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 28px; color: #4A7AC7; margin: 0 0 22px;
}
.gs-static-page h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 18px; color: #111; margin: 24px 0 6px;
}
.gs-static-page p { margin: 0 0 12px; }
.gs-static-page a { color: #4A7AC7; }
.gs-static-page a:hover { text-decoration: underline; }
.gs-static-page ul { margin: 8px 0 12px; padding-left: 22px; }
.gs-static-page li { margin-bottom: 4px; }
.gs-sources-list { margin: 8px 0 16px; padding-left: 18px; font-size: 14px; }
.gs-sources-list li { margin-bottom: 6px; }

.gs-sources-list { list-style: none; padding: 0; }
.gs-sources-list > li { margin-bottom: 10px; }
.gs-sources-list > li > ul { margin: 4px 0 0; padding-left: 16px; color: #555; font-size: 14px; }

/* Contact form */
.gs-contact-form { margin-top: 20px; }
.gs-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
.gs-field label { font-size: 13px; font-weight: 600; color: #444; }
.gs-required { color: #E63946; }
.gs-optional { color: #aaa; font-weight: 400; }
.gs-field input, .gs-field select, .gs-field textarea {
  padding: 9px 12px; border: 1px solid #d8d3cb; border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px;
  background: #faf9f7; color: #111;
  transition: border-color 150ms;
}
.gs-field input:focus, .gs-field select:focus, .gs-field textarea:focus {
  outline: none; border-color: #4A7AC7;
}
.gs-field textarea { resize: vertical; }
.gs-contact-submit {
  background: #4A7AC7; color: white; border: none; border-radius: 6px;
  padding: 10px 24px; font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 150ms;
}
.gs-contact-submit:hover { background: #3a6ab7; }
.gs-contact-confirm {
  background: #edf7f1; border: 1px solid #b2dfc8; border-radius: 8px;
  padding: 18px 20px; color: #1a9e5b; font-size: 15px;
}
.gs-contact-back { display: inline-block; margin-top: 10px; color: #4A7AC7; text-decoration: none; font-size: 14px; }
.gs-contact-back:hover { text-decoration: underline; }
.gs-contact-error {
  background: #fef2f2; border: 1px solid #fccaca; border-radius: 6px;
  padding: 10px 14px; color: #d93640; font-size: 14px; margin-bottom: 14px;
}

/* ── Bouton + dialog ajout événement manuel (#191) ── */
.adm-btn-new-evt {
  background: #4A7AC7; color: white; border: none; border-radius: 6px;
  padding: 5px 12px; font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; margin-left: auto;
}
.adm-btn-new-evt:hover { background: #3a6ab7; }
.adm-new-evt-dialog {
  border: none; border-radius: 10px; padding: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 540px; width: 96vw;
}
.adm-new-evt-dialog::backdrop { background: rgba(0,0,0,0.35); }
.adm-new-evt-form { padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.adm-new-evt-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #18171a; }
