@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Outfit:wght@300;400;500;600&display=swap');

* { box-sizing: border-box; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400; margin: 0; padding: 0;
  background: #faf9f7; color: #2c2c2c;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 2rem; background: #1a1a1a; color: #f5f0e8;
  border-bottom: 1px solid rgba(212,175,55,0.15);
}
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; }
.logout button {
  background: transparent; color: #f5f0e8; border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 0.8rem; cursor: pointer; border-radius: 2px; font-family: inherit; font-size: 0.85rem;
}
.logout button:hover { background: rgba(255,255,255,0.08); }

/* Layout */
.main { max-width: 960px; margin: 0 auto; padding: 1.5rem; }
h1 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600;
  margin: 0 0 0.25rem 0; color: #1a1a1a;
}
.meta { color: #6b6b6b; font-size: 0.9rem; margin-bottom: 1rem; font-weight: 300; }
.hint {
  background: #f5f2ed; padding: 0.75rem 1rem; border-radius: 2px;
  margin-bottom: 1.25rem; border-left: 3px solid #c9a962; font-size: 0.9rem; color: #3d3d3d;
}
.empty { font-size: 1rem; color: #555; }
.muted { color: #6b6b6b; font-size: 0.85rem; font-weight: 300; }

/* Admin topbar */
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.btn-small {
  font-size: 0.8rem; padding: 0.3rem 0.7rem; background: transparent; color: #6b6b6b;
  border: 1px solid #d0c9bc; border-radius: 2px; text-decoration: none; cursor: pointer;
}
.btn-small:hover { background: #f5f2ed; border-color: #c9a962; color: #3d3d3d; }

/* Summary bar */
.summary-bar {
  display: flex; gap: 1.5rem; margin-bottom: 1.5rem; padding: 0.6rem 1rem;
  background: #fff; border: 1px solid #e8e4dc; border-radius: 2px; font-size: 0.9rem;
}
.sum-ok strong { color: #2e7d32; }
.sum-refused strong { color: #c62828; }
.sum-pending strong { color: #9e9e9e; }

/* Category */
.cat-section { margin-bottom: 1.5rem; }
.cat-title {
  font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: #6b6b6b;
  margin: 0 0 0.5rem 0; padding-bottom: 0.3rem; border-bottom: 1px solid #e5e0d8;
}

/* Theme table */
.theme-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid #e8e4dc; border-radius: 2px; margin-bottom: 0.5rem;
}
.theme-table th {
  text-align: left; padding: 0.5rem 0.75rem; font-size: 0.8rem; font-weight: 500;
  color: #6b6b6b; background: #f8f6f2; border-bottom: 1px solid #e8e4dc;
}
.theme-table td {
  padding: 0.5rem 0.75rem; font-size: 0.9rem; border-bottom: 1px solid #f0ece4;
  vertical-align: middle;
}
.col-theme { width: 45%; }
.col-type { width: 12%; }
.col-choice { width: 30%; }
.col-status { width: 15%; }
.col-action { width: 28%; }
.admin-table .col-theme { width: 40%; }
.admin-table .col-type { width: 12%; }
.admin-table .col-status { width: 15%; }
.admin-table .col-action { width: 33%; }

.type-badge {
  display: inline-block; background: #f0ebe2; color: #5a5348; padding: 0.15rem 0.5rem;
  border-radius: 2px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.03em;
}
.btn-delete-theme {
  background: none; border: 1px solid #e0d0d0; border-radius: 3px; color: #c0392b;
  cursor: pointer; font-size: 0.8rem; padding: 0.1rem 0.35rem; margin-left: 0.3rem;
  transition: all 0.2s;
}
.btn-delete-theme:hover { background: #fdf0ef; border-color: #c0392b; }
.drag-handle {
  cursor: grab; color: #b8a070; font-size: 1.1rem; text-align: center;
  user-select: none; width: 1.5rem; padding: 0.2rem !important;
}
.drag-handle:active { cursor: grabbing; }
.drag-row.dragging { opacity: 0.4; background: #f5f0e8; }
.drag-row.drag-over { border-top: 2px solid #c9a962; }
.type-select {
  padding: 0.15rem 0.2rem; border: 1px solid #d4d0c8; border-radius: 4px;
  font-size: 0.72rem; background: #faf8f4; color: #5a5348; cursor: pointer;
  transition: border-color 0.2s; max-width: 100%;
}
.type-select:focus { border-color: #c9a962; outline: none; }
.type-select.saved { border-color: #4a7c59; background: #f0f7f0; }
.type-select.error { border-color: #c0392b; background: #fdf0ef; }

/* Row states */
.row-ok { background: #f6faf6; }
.row-refused { background: #fdf6f5; }

/* Status labels */
.status-ok { color: #2e7d32; font-weight: 500; font-size: 0.85rem; }
.status-refused { color: #c62828; font-weight: 500; font-size: 0.85rem; }
.status-pending { color: #9e9e9e; font-size: 0.85rem; }
.client-note { font-size: 0.8rem; color: #666; display: block; margin-top: 0.2rem; }

/* Radio */
.radio-label { margin-right: 1rem; cursor: pointer; font-size: 0.9rem; white-space: nowrap; }
.radio-label input { margin-right: 0.25rem; }

/* Comment row */
.comment-row td { padding: 0.25rem 0.75rem 0.5rem; background: #faf9f7; }
.comment-row textarea {
  width: 100%; padding: 0.4rem 0.6rem; border: 1px solid #e0dbd2; border-radius: 2px;
  font-family: inherit; font-size: 0.85rem; background: #fff; resize: vertical; min-height: 40px;
}
.comment-row textarea:focus { outline: none; border-color: #c9a962; }
.comment-text { font-size: 0.85rem; color: #555; margin: 0; }

/* Admin replace input */
.replace-input {
  width: 60%; padding: 0.3rem 0.5rem; border: 1px solid #e0dbd2; border-radius: 2px;
  font-family: inherit; font-size: 0.85rem; background: #fff; margin-right: 0.3rem;
}
.replace-input:focus { outline: none; border-color: #c9a962; }
.btn-replace {
  padding: 0.3rem 0.6rem; background: #1a1a1a; color: #f5f0e8; border: none;
  border-radius: 2px; cursor: pointer; font-family: inherit; font-size: 0.8rem; font-weight: 500;
}
.btn-replace:hover { background: #2d2d2d; }

/* Bottom bar */
.bottom-bar { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.bottom-hint { margin-top: 0.3rem; }

/* Buttons */
.btn {
  padding: 0.6rem 1.25rem; border-radius: 2px; border: none; cursor: pointer;
  font-size: 0.9rem; font-family: inherit; font-weight: 500; letter-spacing: 0.02em;
}
.btn-primary { background: #1a1a1a; color: #f5f0e8; }
.btn-primary:hover { background: #2d2d2d; }
.btn-primary:disabled { background: #999; cursor: not-allowed; }
.btn-secondary { background: transparent; color: #3d3d3d; border: 1px solid #c0b8a8; }
.btn-secondary:hover { background: #f5f2ed; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f5f2ed; }
.login-box {
  background: #fff; padding: 2.5rem; border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06); width: 100%; max-width: 340px; border: 1px solid #e8e4dc;
}
.login-box h1 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-top: 0; margin-bottom: 0.5rem; }
.login-subtitle { font-size: 0.85rem; color: #888; margin: 0 0 1.25rem 0; }
.login-box label { display: block; margin-top: 0.75rem; font-size: 0.85rem; color: #3d3d3d; }
.login-box input {
  width: 100%; padding: 0.5rem 0.6rem; margin-top: 0.2rem; border: 1px solid #e0dbd2;
  border-radius: 2px; font-family: inherit; font-size: 0.95rem; background: #faf9f7;
}
.login-box button {
  margin-top: 1.5rem; width: 100%; padding: 0.6rem; background: #1a1a1a; color: #f5f0e8;
  border: none; border-radius: 2px; cursor: pointer; font-family: inherit; font-weight: 500;
}
.login-box button:hover { background: #2d2d2d; }
.login-box .error { color: #a44; font-size: 0.85rem; margin-top: 0.5rem; }

/* History table */
.history-table td { font-size: 0.85rem; }
.col-date { width: 15%; white-space: nowrap; font-size: 0.8rem; color: #888; }
.status-replaced { color: #e65100; font-weight: 500; font-size: 0.85rem; }
del { color: #999; text-decoration: line-through; }

/* ── Section pré-validation admin ── */
.review-section {
  background: #fffdf7; border: 2px solid #e8d9a0; border-radius: 4px;
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.review-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.5rem; gap: 1rem;
}
.review-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600;
  color: #8a6d00; margin: 0 0 0.15rem 0;
}
.review-section .meta { margin-bottom: 0.5rem; }
.review-section .hint {
  background: #fdf6d8; border-left-color: #d4a017;
  margin-bottom: 1rem;
}
.review-table .col-theme { width: 38%; }
.review-table .col-action { width: 30%; }
.col-status-sm { width: 5%; }
.review-title-cell { font-weight: 500; }
.btn-push-to-client {
  white-space: nowrap; flex-shrink: 0;
}

/* Badges principal / backup */
.badge-principal {
  display: inline-block; background: #1a1a1a; color: #f5f0e8; padding: 0.1rem 0.45rem;
  border-radius: 2px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.03em;
}
.badge-backup {
  display: inline-block; background: #e8e4dc; color: #6b6b6b; padding: 0.1rem 0.45rem;
  border-radius: 2px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.03em;
}
.badge-signature {
  display: inline-block; background: #d4c5a0; color: #4a3f2f; padding: 0.1rem 0.4rem;
  border-radius: 2px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.03em;
  font-style: italic;
}
.row-backup { opacity: 0.65; }
.row-backup:hover { opacity: 1; }
.backup-separator td {
  padding: 0.3rem 0.75rem; background: #f8f6f2; border-bottom: 1px solid #e8e4dc;
}
.backup-label {
  font-size: 0.75rem; color: #9e9e9e; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Switch buttons */
.btn-switch {
  display: inline-block; padding: 0.15rem 0.4rem; background: transparent;
  border: 1px solid #d0c9bc; border-radius: 2px; cursor: pointer;
  font-size: 0.8rem; color: #6b6b6b; margin-left: 0.25rem; vertical-align: middle;
}
.btn-switch:hover { background: #f5f2ed; border-color: #c9a962; color: #3d3d3d; }

/* Backup replace grid (full-width row below refused theme) */
.backup-replace-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.3rem;
}
.btn-backup-replace {
  padding: 0.35rem 0.5rem; background: #f5f2ed; color: #3d3d3d; border: 1px solid #d0c9bc;
  border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 0.78rem;
  text-align: left; white-space: normal; line-height: 1.35;
}
.btn-backup-replace:hover { background: #e8e4dc; border-color: #c9a962; }
.backup-type-tag {
  display: inline-block; padding: 0.1rem 0.35rem; font-size: 0.65rem; font-weight: 600;
  border-radius: 2px; background: #c9a962; color: #fff; text-transform: uppercase;
  letter-spacing: 0.04em; margin-right: 0.2rem; vertical-align: middle;
}
.other-backups-details { margin-top: 0.3rem; }
.other-backups-details summary {
  font-size: 0.75rem; color: #9e9e9e; cursor: pointer; padding: 0.15rem 0; font-style: italic;
}
.other-backups-details summary:hover { color: #6b6b6b; }

/* Backup details (accordion) */
.backup-details { margin-top: 0.25rem; margin-bottom: 0.5rem; }
.backup-summary {
  font-size: 0.8rem; color: #9e9e9e; cursor: pointer; padding: 0.3rem 0;
  font-weight: 500; letter-spacing: 0.03em;
}
.backup-summary:hover { color: #6b6b6b; }
.backup-table { border: 1px dashed #e0dbd2; }
.backup-table td { font-size: 0.85rem; color: #888; }
.backup-page-header {
  padding: 0.3rem 0.5rem; font-size: 0.75rem; color: #9e9e9e;
  border-bottom: 1px solid #f0ede7; margin-bottom: 0.15rem;
}
.backup-pagination {
  display: flex; gap: 0.5rem; align-items: center; padding: 0.4rem 0; margin-top: 0.3rem;
}
.backup-pagination .btn-small {
  font-size: 0.78rem; padding: 0.3rem 0.7rem;
}
.backup-pagination .btn-small:disabled {
  opacity: 0.4; cursor: default;
}
.notify-bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.notify-bar .hint { margin-bottom: 0; }
.btn-notify {
  white-space: nowrap;
}

/* Client logo */
.client-logo { display: block; max-height: 60px; margin-bottom: 1rem; }

/* Links */
a { color: #1a1a1a; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.15); }
a:hover { border-bottom-color: #c9a962; }

/* ═══════════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════════ */

/* Add publication form */
.pub-add-section {
  background: #fff; border: 1px solid #e8e4dc; border-radius: 4px;
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.pub-form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.pub-field { margin-bottom: 0.75rem; flex: 1; min-width: 200px; }
.pub-field label {
  display: block; font-size: 0.8rem; font-weight: 500; color: #6b6b6b;
  margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.pub-field select, .pub-field input[type="text"], .pub-field textarea {
  width: 100%; padding: 0.45rem 0.6rem; border: 1px solid #e0dbd2; border-radius: 2px;
  font-family: inherit; font-size: 0.9rem; background: #faf9f7;
}
.pub-field select:focus, .pub-field input:focus, .pub-field textarea:focus {
  outline: none; border-color: #c9a962;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed #d0c9bc; border-radius: 4px; padding: 1.25rem;
  text-align: center; transition: border-color 0.2s, background 0.2s;
  min-height: 80px;
}
.drop-zone.drag-over { border-color: #c9a962; background: #fdf6d8; }
.drop-text { color: #9e9e9e; font-size: 0.9rem; margin: 0; }
.btn-link {
  background: none; border: none; color: #1a1a1a; text-decoration: underline;
  cursor: pointer; font-family: inherit; font-size: 0.9rem; padding: 0;
}
.file-preview { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; justify-content: center; }
.file-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: #f0ebe2; color: #5a5348; padding: 0.2rem 0.5rem; border-radius: 2px;
  font-size: 0.8rem;
}
.file-tag-remove {
  background: none; border: none; color: #999; cursor: pointer; font-size: 0.8rem; padding: 0 0.15rem;
}
.file-tag-remove:hover { color: #c62828; }

/* Publication card (admin) */
.pub-card {
  background: #fff; border: 1px solid #e8e4dc; border-radius: 4px;
  padding: 1rem; margin-bottom: 1rem;
}
.pub-card.pub-ok { border-left: 3px solid #2e7d32; }
.pub-card.pub-refused { border-left: 3px solid #c62828; }
.pub-card-header {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem;
}
.pub-card-header .btn-delete-pub {
  margin-left: auto; background: none; border: 1px solid #e0dbd2; color: #999;
  cursor: pointer; padding: 0.15rem 0.4rem; border-radius: 2px; font-size: 0.8rem;
}
.pub-card-header .btn-delete-pub:hover { color: #c62828; border-color: #c62828; }

/* Media grid (admin thumbnails) */
.pub-media-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; align-items: flex-start;
}
.pub-thumb-wrap { position: relative; display: inline-block; }
.pub-thumb {
  width: 100px; height: 100px; object-fit: cover; border-radius: 2px;
  border: 1px solid #e8e4dc; cursor: pointer;
}
.pub-thumb-video {
  width: 150px; height: 100px; border-radius: 2px; border: 1px solid #e8e4dc;
}
.btn-delete-media {
  position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: #fff;
  border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 0.7rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.pub-thumb-wrap:hover .btn-delete-media { opacity: 1; }
/* Drag handle & order badge */
.drag-handle {
  position: absolute; top: 2px; left: 2px; background: rgba(0,0,0,0.5); color: #fff;
  padding: 1px 4px; border-radius: 2px; font-size: 0.7rem; cursor: grab;
  opacity: 0; transition: opacity 0.2s; z-index: 1;
}
.pub-thumb-wrap:hover .drag-handle { opacity: 1; }
.pub-thumb-wrap[draggable="true"] { cursor: grab; }
.pub-thumb-wrap.dragging { opacity: 0.4; }
.pub-thumb-wrap.drag-over-item { border: 2px solid #c9a962; border-radius: 4px; }
.media-order {
  position: absolute; bottom: 2px; left: 2px; background: rgba(0,0,0,0.6); color: #fff;
  padding: 0 5px; border-radius: 2px; font-size: 0.7rem; font-weight: 600; z-index: 1;
}
.pub-add-more {
  display: flex; align-items: center;
}
.btn-add-more-media {
  background: #faf9f7; border: 1px dashed #d0c9bc; border-radius: 2px;
  padding: 0.4rem 0.8rem; cursor: pointer; font-family: inherit; font-size: 0.8rem; color: #6b6b6b;
}
.btn-add-more-media:hover { border-color: #c9a962; color: #3d3d3d; }

/* Publication text edit (admin) */
.pub-text-edit {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-start;
}
.pub-text-edit textarea, .pub-text-edit input {
  flex: 1; min-width: 200px; padding: 0.4rem 0.6rem; border: 1px solid #e0dbd2;
  border-radius: 2px; font-family: inherit; font-size: 0.85rem; background: #faf9f7;
}
.pub-text-edit textarea:focus, .pub-text-edit input:focus { outline: none; border-color: #c9a962; }
.btn-save-pub-text {
  padding: 0.4rem 0.7rem; background: #1a1a1a; color: #f5f0e8; border: none;
  border-radius: 2px; cursor: pointer; font-family: inherit; font-size: 0.8rem;
  white-space: nowrap; align-self: flex-end;
}
.btn-save-pub-text:hover { background: #2d2d2d; }

/* Publication card (client) */
.pub-card-client {
  background: #fff; border: 1px solid #e8e4dc; border-radius: 4px;
  padding: 1rem; margin-bottom: 1.25rem;
}
.pub-card-client.pub-ok { border-left: 3px solid #2e7d32; background: #f6faf6; }
.pub-card-client.pub-refused { border-left: 3px solid #c62828; background: #fdf6f5; }

/* Carousel */
.carousel {
  position: relative; width: 100%; max-width: 500px; margin: 0.5rem auto;
  background: #f5f2ed; border-radius: 4px; overflow: hidden;
}
.carousel-track { position: relative; min-height: 300px; }
.carousel-slide {
  display: none; width: 100%; height: auto; max-height: 500px; object-fit: contain;
}
.carousel-slide.active { display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: rgba(0,0,0,0.7); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 6px; padding: 8px 0;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #d0c9bc; cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active { background: #1a1a1a; }

/* Video player */
.pub-video-player {
  width: 100%; max-width: 500px; display: block; margin: 0.5rem auto;
  border-radius: 4px;
}

/* Single image */
.pub-single-img {
  width: 100%; max-width: 500px; display: block; margin: 0.5rem auto;
  border-radius: 4px; border: 1px solid #e8e4dc;
}

/* Caption and hashtags (client view) */
.pub-caption-display {
  font-size: 0.9rem; color: #2c2c2c; line-height: 1.5; margin: 0.75rem 0 0.25rem;
  white-space: pre-wrap;
}
.pub-hashtags-display {
  font-size: 0.8rem; color: #8a6d00; margin: 0 0 0.5rem; font-weight: 500;
}

/* Client choice for publications */
.pub-choice {
  display: flex; gap: 1.5rem; margin-top: 0.75rem; padding-top: 0.5rem;
  border-top: 1px solid #f0ece4;
}
.pub-comment-row {
  margin-top: 0.5rem;
}
.pub-comment-row textarea {
  width: 100%; padding: 0.4rem 0.6rem; border: 1px solid #e0dbd2; border-radius: 2px;
  font-family: inherit; font-size: 0.85rem; background: #fff; resize: vertical; min-height: 40px;
}
.pub-comment-row textarea:focus { outline: none; border-color: #c9a962; }

/* Move buttons (publications) */
.pub-move-btns {
  display: inline-flex; flex-direction: column; gap: 1px; margin-right: 0.25rem;
}
.btn-move-pub {
  background: transparent; border: 1px solid #d0c9bc; border-radius: 2px;
  cursor: pointer; font-size: 0.6rem; padding: 0 4px; line-height: 1.2;
  color: #6b6b6b;
}
.btn-move-pub:hover { background: #f5f2ed; border-color: #c9a962; color: #3d3d3d; }

/* ═══════════════════════════════════════════
   RESPONSIVE MOBILE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .main { padding: 1rem 0.5rem; }

  /* ── Tables thèmes : empiler verticalement ── */
  .theme-table, .theme-table thead, .theme-table tbody,
  .theme-table tr, .theme-table th, .theme-table td {
    display: block !important; width: 100% !important;
  }
  .theme-table { border: none; }
  .theme-table thead { display: none !important; }
  .theme-table td { padding: 0.3rem 0.75rem; border-bottom: none; }
  .theme-table tr.theme-row {
    background: #fff; border: 1px solid #e8e4dc; border-radius: 4px;
    padding: 0.6rem 0; margin-bottom: 0.6rem; overflow: hidden;
  }
  .theme-table tr.theme-row.row-ok { border-left: 3px solid #2e7d32; }
  .theme-table tr.theme-row.row-refused { border-left: 3px solid #c62828; }
  /* Titre du thème plus visible */
  .theme-table td.col-theme {
    font-weight: 500; font-size: 1rem; padding-top: 0.5rem;
  }
  /* Badges et status restent lisibles */
  .theme-table td.col-type, .theme-table td.col-status,
  .theme-table td.col-choice { font-size: 0.9rem; }
  .theme-table td.col-status-sm { padding: 0.15rem 0.75rem; }

  /* ── Champ édition thème — GRANDE zone sur mobile ── */
  .theme-table td.col-action {
    padding: 0.5rem 0.75rem 0.75rem;
  }
  .replace-input, .review-edit-input {
    display: block !important;
    width: 100% !important; font-size: 1.05rem !important;
    padding: 0.65rem 0.75rem !important;
    margin-bottom: 0.5rem; margin-right: 0;
    box-sizing: border-box;
    border: 1px solid #d0c9bc; border-radius: 4px;
    min-height: 44px; /* touch target */
  }
  .btn-replace, .btn-review-edit {
    display: block; width: 100%; padding: 0.6rem;
    font-size: 1rem; margin-top: 0.3rem;
    text-align: center; border-radius: 4px;
    min-height: 44px; /* touch target */
  }
  .btn-switch {
    margin-left: 0; margin-top: 0.4rem;
    display: inline-block; padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  /* Backup options */
  .backup-replace-grid {
    grid-template-columns: 1fr; gap: 0.25rem;
  }
  .btn-backup-replace {
    width: 100%; padding: 0.5rem;
    font-size: 0.85rem; white-space: normal;
  }
  .other-backups-details { width: 100%; }
  .other-backups-details summary { font-size: 0.8rem; }

  /* Backup table stacked */
  .backup-table tr.theme-row { padding: 0.4rem 0; }
  .backup-table td { padding: 0.2rem 0.75rem; }

  /* Review section */
  .review-section { padding: 1rem; }
  .review-header { flex-direction: column; gap: 0.5rem; }
  .review-table td { padding: 0.3rem 0.75rem; }
  .backup-separator td { text-align: center; }

  /* Comment row */
  .comment-row td { padding: 0.3rem 0.75rem 0.5rem; }
  .comment-row textarea { font-size: 1rem; padding: 0.5rem; min-height: 60px; }

  /* Client note */
  .client-note { font-size: 0.85rem; margin-top: 0.3rem; }

  /* ── Publications admin ── */
  .pub-form-row { flex-direction: column; }
  .pub-text-edit { flex-direction: column; }
  .pub-text-edit textarea, .pub-text-edit input {
    min-width: 0; font-size: 1rem; padding: 0.5rem;
  }
  .pub-media-grid { gap: 0.35rem; }
  .pub-thumb { width: 75px; height: 75px; }

  /* Summary bar */
  .summary-bar { flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; }
  /* Admin topbar */
  .admin-topbar { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  /* Bottom bar */
  .bottom-bar { flex-direction: column; gap: 0.5rem; }
  .notify-bar { flex-direction: column; gap: 0.5rem; }
  .btn { width: 100%; text-align: center; font-size: 0.95rem; padding: 0.7rem; }
  #linkedin-engine div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .li-regen-controls { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-left: 0 !important; margin-top: 0.3rem; }
}
