/* Vision oreille Echo · 2026-09-16 · panel /app/ */
html {
  font-size: 125%;
  scrollbar-width: thin;
  scrollbar-color: #c9b48a #0e1328;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  font-family: "Sora", system-ui, sans-serif;
  color: #e8ecff;
  background: #12162c;
}
.panel {
  width: 100%;
  min-height: 100vh;
  padding: 1.4rem 4% 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bar-mid {
  margin-right: auto;
  color: #9aa6d4;
  font-size: .85rem;
}
a.new-fiche {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.2;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  background: #c9b48a;
  color: #12162c;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
a.new-fiche:hover { filter: brightness(1.06); color: #12162c; }
.bar-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
}
a.go-media {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.2;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  background: #5b6abf;
  color: #e8ecff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
a.go-media:hover { filter: brightness(1.08); color: #e8ecff; }
a.go-media.add-images {
  flex: 0 0 auto;
  text-decoration: none;
}
.bar strong {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.crumbs {
  font-size: .78rem;
  color: #9aa6d4;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: baseline;
}
.crumbs a { color: #9aa6d4; }
.crumbs a:hover { color: #e8ecff; }
.crumbs .here { color: #e8ecff; }
.heard {
  width: 100%;
  background: #0e1328;
  border-radius: 1.15rem;
  padding: 1.15rem 4%;
}
.heard .k {
  color: #c9b48a;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 .45rem;
}
.heard p#heard {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0;
}
.split {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3%;
  align-items: start;
}
.split .gallery {
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  max-height: 72vh;
  overflow-y: auto;
  padding: 1.1rem 4%;
  border-radius: 1.1rem;
  background: rgba(26, 32, 64, .85);
  scrollbar-width: thin;
  scrollbar-color: #c9b48a #0e1328;
}
.split .gallery::-webkit-scrollbar { width: .55rem; }
.split .gallery::-webkit-scrollbar-track {
  background: #0e1328;
  border-radius: 999px;
}
.split .gallery::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9b48a, #5b6abf);
  border-radius: 999px;
}
.lift-item { cursor: pointer; border-radius: .85rem; position: relative; }
.gallery.lift .lift-item[draggable="true"] { cursor: grab; }
.gallery.lift .lift-item.dragging { opacity: .45; cursor: grabbing; }
.gallery.lift .lift-item.drag-over { outline: 2px solid #5b6abf; outline-offset: 2px; }
.rm-form {
  position: absolute;
  top: .4rem;
  right: .4rem;
  margin: 0;
  z-index: 2;
}
button.rm {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 22, 44, .88);
  color: #e8ecff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button.rm:hover { background: #5b6abf; color: #e8ecff; }
.lift-item.sel img, .lift-item.sel b {
  outline: 3px solid #c9b48a;
  outline-offset: 2px;
}
.leg-row { display: none; }
.leg-row.on { display: block; }
.fact-row { display: none; }
.fact-row.on { display: block; }
.edit-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.split .gallery img, .split .gallery b {
  height: auto;
  min-height: 0;
  max-height: 42vh;
  object-fit: contain;
}
.gallery {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2%;
}
.gallery figure { margin: 0; }
.gallery img, .gallery b {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  border-radius: .85rem;
  background: #1a2040;
}
.gallery figcaption {
  margin-top: .4rem;
  font-size: .72rem;
  color: #9aa6d4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gallery label.lift-item {
  display: block;
  cursor: pointer;
}
.gallery label.lift-item input[type=checkbox] {
  margin: .4rem .2rem 0 0;
}
.gallery.media-pick {
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .75rem;
  align-items: start;
}
.gallery.media-pick label.lift-item {
  position: relative;
  margin: 0;
  color: #e8ecff;
  font-size: .72rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.gallery.media-pick label.lift-item img,
.gallery.media-pick label.lift-item b {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  min-height: 0;
  object-fit: cover;
  border-radius: .85rem;
  background: #1a2040;
}
.gallery.media-pick label.lift-item input[type=checkbox] {
  position: absolute;
  top: .45rem;
  left: .45rem;
  margin: 0;
  z-index: 2;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #c9b48a;
}
.gallery.media-pick .file-name {
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9aa6d4;
}
.fiche, .box, main.panel .list-wrap {
  width: 100%;
  background: rgba(26, 32, 64, .85);
  border-radius: 1.1rem;
  padding: 1.1rem 4%;
}
h1 {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin: .2rem 0 .55rem;
  letter-spacing: -.02em;
}
label {
  display: block;
  color: #9aa6d4;
  font-size: .78rem;
  margin: .55rem 0 .35rem;
}
input[type=text], input[type=search], #code, textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  line-height: 1.45;
  color: #e8ecff;
  background: #12162c;
  border: 0;
  border-radius: .7rem;
  padding: .7rem .85rem;
}
textarea {
  min-height: 9rem;
  resize: vertical;
}
.do {
  margin-top: .85rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
button, .do a.btn {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.2;
  padding: .65rem 1.1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
button[type=submit], .save { background: #c9b48a; color: #12162c; }
.play { background: #5b6abf; color: #e8ecff; }
a { color: #9aa6d4; font-weight: 600; text-decoration: none; }
a:hover { color: #e8ecff; }
.ok { color: #c9b48a; }
.err { color: #e0a0a0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .65rem .2rem; }
th {
  color: #9aa6d4;
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.2%;
  align-items: start;
  margin: .65rem 0;
}
.row img {
  width: 100%;
  height: 18vh;
  object-fit: cover;
  border-radius: .85rem;
  background: #1a2040;
}
.paves {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4%;
}
.pave {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .35rem;
  min-height: 24vh;
  padding: 1.2rem 8%;
  border-radius: 1.1rem;
  background: #1a2040;
  color: #e8ecff;
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -.02em;
}
.pave span {
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: .78rem;
  color: #9aa6d4;
  letter-spacing: 0;
}
.atelier { opacity: .85; }
/* Upload isolé · une ligne au-dessus du split (@ego 15:40) */
.atelier-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  background: rgba(26, 32, 64, .85);
  border-radius: 1.1rem;
  padding: 0;
  opacity: 1;
}
.atelier-bar .atelier-label {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: 1.1rem;
  color: #c9b48a;
  white-space: nowrap;
}
.atelier-bar .file-pick {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
}
.atelier-bar .file-pick input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
}
.file-pick-btn {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.2;
  padding: .65rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: #5b6abf;
  color: #e8ecff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
.file-pick:hover .file-pick-btn { filter: brightness(1.08); }
a.file-pick-btn { text-decoration: none; }
.file-name {
  font-size: .78rem;
  color: #9aa6d4;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
textarea.leg { min-height: 11rem; resize: vertical; }
.file-pick-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #9aa6d4;
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-pick-name.has-file { color: #e8ecff; }
.atelier-bar input[type=text] {
  flex: 1 1 10rem;
  min-width: 8rem;
  width: auto;
}
.atelier-bar button {
  flex: 0 0 auto;
  align-self: center;
}
.head-fiche {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .85rem;
}
.head-copy { flex: 1 1 12rem; min-width: 0; }
.head-fiche h1 { margin-bottom: .35rem; }
.head-fiche .atelier { opacity: 1; }
.head-fiche .atelier-bar {
  width: auto;
  flex: 0 1 auto;
  margin: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
/* Liste · ligne entière · nuances sans bordure */
.list-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin: .4rem 0 1rem;
}
.list-tools input[type=search] {
  flex: 1 1 14rem;
  width: auto;
  font: inherit;
  font-size: .95rem;
  color: #e8ecff;
  background: #12162c;
  border: 0;
  border-radius: .7rem;
  padding: .7rem .85rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.fiche-list th a { color: #9aa6d4; font-weight: 600; }
.fiche-list th a:hover { color: #e8ecff; }
.fiche-list tbody tr.hit {
  cursor: pointer;
  border-radius: .7rem;
  transition: background .15s ease;
}
.fiche-list tbody tr.hit td {
  padding: .8rem .65rem;
  background: rgba(14, 19, 40, .35);
}
.fiche-list tbody tr.hit:nth-child(even) td {
  background: rgba(26, 32, 64, .55);
}
.fiche-list tbody tr.hit:hover td,
.fiche-list tbody tr.hit:focus td {
  background: rgba(91, 106, 191, .28);
}
.fiche-list tbody tr.hit td:first-child { border-radius: .7rem 0 0 .7rem; }
.fiche-list tbody tr.hit td:last-child { border-radius: 0 .7rem .7rem 0; }
.fiche-list .go span {
  color: #c9b48a;
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: .85rem;
}
.muted { color: #9aa6d4; font-size: .85rem; }
.img-meta {
  margin: .45rem 0 0;
  display: grid;
  gap: .2rem;
  font-size: .68rem;
  color: #9aa6d4;
  line-height: 1.35;
}
.img-meta > div {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: .35rem;
}
.img-meta dt {
  margin: 0;
  color: #c9b48a;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .62rem;
}
.img-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #c5cce8;
}
.lift-item .img-meta { opacity: .85; }
.facts .img-meta {
  margin: 0;
  padding: .55rem .7rem;
  background: rgba(14, 19, 40, .55);
  border-radius: .7rem;
}
footer.hint { margin: 0; }
@media (max-width: 900px) {
  .split .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .split, .gallery, .row, .paves { grid-template-columns: 1fr; }
  .split .gallery { grid-template-columns: 1fr 1fr; }
  .head-fiche { align-items: stretch; }
  .head-fiche .atelier-bar { width: 100%; justify-content: flex-end; }
  .atelier-bar { flex-direction: column; align-items: stretch; }
  .atelier-bar .file-pick,
  .atelier-bar input[type=text] { width: 100%; min-width: 0; }
  .pave { min-height: 18vh; font-size: 1.35rem; }
  html { font-size: 112%; }
}

p.hint {
  color: #9aa6d4;
  font-size: .85rem;
  margin: .35rem 0 .65rem;
}

.fiche-tabs {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 1.1rem 4%;
  background: rgba(26, 32, 64, .85);
  border-radius: 1.1rem;
  justify-content: flex-end;
}
.tab-btn {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.2;
  padding: .65rem 1.1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #5b6abf;
  color: #e8ecff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
.tab-btn:hover { filter: brightness(1.08); color: #e8ecff; }
.tab-btn.on, .tab-btn[aria-selected="true"] {
  box-shadow: inset 0 0 0 2px #e8ecff, 0 0 0 1px rgba(201, 180, 138, .55);
  filter: brightness(1.1);
}
.tab-btn.on:hover, .tab-btn[aria-selected="true"]:hover {
  filter: brightness(1.14);
}
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.slider-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.slider-actions {
  display: flex;
  justify-content: center;
  margin: 0 0 .85rem;
}
.slider-actions.in-edit {
  margin: 0 0 .85rem;
  justify-content: center;
}
.slider-actions.in-edit .go-media.add-images {
  display: inline-flex;
}
.edit-col.solo {
  max-width: 100%;
}

.tax-box {
  margin: .85rem 0;
  border: 1px solid #2a3358;
  border-radius: .85rem;
  padding: .65rem .85rem .75rem;
}
.tax-box legend {
  padding: 0 .35rem;
  color: #9aa6d4;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tax-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
}
.tax-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #e8ecff;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
}
.tax-item input { accent-color: #c9b48a; }

.tab-panel[hidden] { display: none !important; }

/* tabs: never show slider chrome on projet */
.tab-panel:not(.on),
.tab-panel[hidden] { display: none !important; }
#tab-projet .slider-actions { display: none !important; }
#tab-projet > .edit-col > .slider-actions .go-media.add-images,
#tab-projet .slider-actions .go-media.add-images { display: none !important; }
#tab-projet .liste-actions .go-media.add-images { display: inline-flex !important; }
.list-tools select {
  font-family: "Sora", sans-serif;
  font-size: .9rem;
  color: #e8ecff;
  background: #12162c;
  border: 0;
  border-radius: .7rem;
  padding: .65rem .75rem;
  min-width: 9rem;
}


/* login */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.login-card {
  width: min(100%, 22rem);
  background: #161b33;
  border-radius: 1.15rem;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.login-brand {
  margin: 0 0 .35rem;
  color: #c9b48a;
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
}
.login-card h1 {
  margin: 0 0 .35rem;
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: #e8ecff;
}
.login-hint {
  margin: 0 0 1rem;
  color: #9aa6d4;
  font-size: .92rem;
}
.login-card label {
  display: block;
  margin: .65rem 0 .3rem;
  color: #9aa6d4;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.login-card input[type=text],
.login-card input[type=password] {
  width: 100%;
  box-sizing: border-box;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: #e8ecff;
  background: #12162c;
  border: 0;
  border-radius: .7rem;
  padding: .75rem .85rem;
}
.login-card .do {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
}
.bar .who {
  color: #9aa6d4;
  font-size: .88rem;
  margin-right: .35rem;
}
.bar .out {
  color: #c9b48a;
  text-decoration: none;
  font-size: .88rem;
}
.bar .out:hover { color: #e8ecff; }


/* logs = pastille indigo (go-media) */
a.go-media.go-logs { text-decoration: none; }
.bar-user {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: .25rem;
}
.logs-box h1 {
  margin: 0 0 .35rem;
  font-family: "Figtree", sans-serif;
  font-size: 1.45rem;
}
.log-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.log-list li {
  background: #12162c;
  border-radius: .7rem;
  padding: .65rem .85rem;
}
.log-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  color: #e8ecff;
  white-space: pre-wrap;
  word-break: break-word;
}


/* brand */
a.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  text-decoration: none;
  color: inherit;
  line-height: 1.15;
}
a.brand .brand-host {
  font-family: "Figtree", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8ecff;
  letter-spacing: -.02em;
}
a.brand strong {
  font-family: "Sora", sans-serif;
  font-size: .78rem;
  font-weight: 500;
  color: #9aa6d4;
  margin: 0;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  margin: 0 0 1rem;
  line-height: 1.15;
  text-align: center;
}
.login-brand .brand-host {
  font-family: "Figtree", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #e8ecff;
  letter-spacing: -.02em;
}
.login-brand strong {
  font-family: "Sora", sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: #9aa6d4;
}

/* logout = prénom seul */
a.out-btn {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.2;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  background: #1a2040;
  color: #e8ecff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
}
a.out-btn:hover { filter: brightness(1.1); color: #e8ecff; }


/* craft · Image de la liste (@ego 16:12) */
.liste-img { margin: .85rem 0; }
.liste-img .hint { margin: .25rem 0 .6rem; opacity: .75; font-size: .9rem; }
.liste-preview {
  width: min(100%, 16rem);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #1a2238;
  margin: 0 0 .75rem;
}
.liste-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.liste-img select {
  width: 100%;
  max-width: 28rem;
  font-size: 1rem;
  padding: .75rem 1rem;
  border-radius: 10px;
}


/* craft · details-ux-v2 (@ego 16:22) · maj corps-blocs-v1 (@ego 20:01) */
.tax-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin: .85rem 0;
  align-items: start;
}
.tax-row .tax-box { margin: 0; }
.liste-img .liste-actions {
  display: flex;
  justify-content: flex-end;
  margin: .75rem 0 0;
}
.gallery.liste-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: .55rem;
  margin: .35rem 0 .25rem;
}
.gallery.liste-pick .lift-item {
  position: relative;
  display: block;
  margin: 0;
  border-radius: .85rem;
  overflow: hidden;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  background: #1a2040;
}
.gallery.liste-pick .lift-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gallery.liste-pick .lift-item img,
.gallery.liste-pick .lift-item b {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .85rem;
  background: #1a2040;
}
.gallery.liste-pick .lift-item.sel {
  outline-color: #c9b48a;
}
.gallery.liste-pick .liste-none-tile {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9aa6d4;
}
.liste-preview.empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.liste-empty {
  color: #9aa6d4;
  font-size: .85rem;
}
@media (max-width: 700px) {
  .tax-row { grid-template-columns: 1fr; }
}

/* craft · liste-click-v1 (@ego 16:30) */
a.liste-preview {
  display: block;
  width: min(100%, 16rem);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #1a2238;
  margin: 0 0 .75rem;
  text-decoration: none;
  color: inherit;
}
a.liste-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
a.liste-preview.empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
a.liste-preview:hover { filter: brightness(1.06); }
.gallery.media-pick .lift-item.sel {
  outline: 2px solid #c9b48a;
  outline-offset: 2px;
}
.liste-pick-media .lift-item input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.liste-pick-media .liste-none-tile {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9aa6d4;
  background: #1a2040;
  border-radius: .85rem;
}
.do a.btn {
  background: #1a2040;
  color: #e8ecff;
}

/* craft · status-select-v1 (@ego 16:39) · ex status-ta-v1 */
#tab-projet textarea[name="colonne_1"],
#tab-projet textarea[name="colonne_2"] {
  min-height: 22rem;
}
#tab-projet textarea[name="colonne_2"] {
  min-height: 18rem;
}
.tax-status .status-select-wrap {
  display: block;
  margin: .15rem 0 0;
}
.tax-status .status-select {
  width: 100%;
  font-family: "Sora", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.3;
  color: #e8ecff;
  background: #12162c;
  border: 0;
  border-radius: .7rem;
  padding: .7rem .85rem;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #c9b48a 50%), linear-gradient(135deg, #c9b48a 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - .75rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.tax-status .status-select:focus {
  outline: 2px solid #5b6abf;
  outline-offset: 2px;
}
.tax-status .status-select option {
  background: #12162c;
  color: #e8ecff;
}

/* craft · create-v1 (@ego 16:44) */
#tab-projet textarea[name="colonne_1"],
.fiche textarea[name="colonne_1"] {
  min-height: 22rem;
}
.fiche textarea[name="colonne_2"] {
  min-height: 18rem;
}

/* craft · create-v1b (@ego 16:51) */
#code {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  line-height: 1.45;
  color: #e8ecff;
  background: #12162c;
  border: 0;
  border-radius: .7rem;
  padding: .7rem .85rem;
  box-sizing: border-box;
}

/* craft · media-polish-v1 (@ego 16:59) */
.upload-status {
  color: #c9b48a;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
}
form.atelier.uploading .upload-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
form.atelier.uploading .upload-status::before {
  content: '';
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  border: 2px solid #c9b48a;
  border-top-color: transparent;
  animation: agentik-spin .7s linear infinite;
}
@keyframes agentik-spin {
  to { transform: rotate(360deg); }
}
form.atelier.uploading #upload-btn {
  opacity: .55;
  cursor: wait;
}

/* craft · save-head-v1 (@ego 17:03) */
.head-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.head-actions .save {
  margin: 0;
}
/* craft · tabs-corps-v1 (@ego 17:08) · onglet Corps · padding 1.1rem 4% */

/* craft · media-polish-v2 (@ego 17:23) */
.atelier-bar { padding: 0; }

/* craft · post-title-code (@ego 17:29) */
.liste-pick-form {
  padding: 1.8rem 0;
}

/* craft · home-latest-v1 (@ego 17:34) */
a.brand strong { display: none; }
.pave.pave-rich {
  justify-content: flex-start;
  gap: .75rem;
  text-decoration: none;
}
.pave-head {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  color: inherit;
  text-decoration: none;
}
.pave-head:hover { color: #e8ecff; filter: brightness(1.06); }
.pave-latest {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.pave-latest a {
  display: block;
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: .82rem;
  line-height: 1.35;
  color: #c9b48a;
  letter-spacing: 0;
  text-decoration: none;
}
.pave-latest a:hover { color: #e8ecff; }
.pave-empty {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 400;
  font-size: .78rem;
  color: #9aa6d4;
}

/* craft · home-thumbs-v2 (@ego 17:41) — taille fixe = 1/4 rangée, même si <4 */
.pave-thumbs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .45rem;
  margin-top: .15rem;
  justify-content: flex-start;
}
.pave-thumb {
  flex: 0 0 calc((100% - 1.35rem) / 4); /* 3 gaps × .45rem */
  width: calc((100% - 1.35rem) / 4);
  max-width: calc((100% - 1.35rem) / 4);
  box-sizing: border-box;
  aspect-ratio: 4 / 3;
  border-radius: .7rem;
  overflow: hidden;
  background: #12162c;
  display: block;
  text-decoration: none;
}
.pave-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pave-thumb.empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pave-thumb-code {
  font-family: "Sora", sans-serif;
  font-size: .65rem;
  font-weight: 600;
  color: #9aa6d4;
  letter-spacing: .04em;
}
.pave-thumb:hover { filter: brightness(1.08); }

/* craft · bar-active-v1 (@ego 17:54) — bordure claire + léger éclaircissement */
a.go-media.is-on,
a.new-fiche.is-on {
  box-shadow: inset 0 0 0 2px #e8ecff, 0 0 0 1px rgba(201, 180, 138, .55);
  filter: brightness(1.1);
}
a.go-media.is-on:hover,
a.new-fiche.is-on:hover {
  filter: brightness(1.14);
}

/* craft · media-delete-v1 (@ego 17:58) */
.media-pick .lift-item { position: relative; }
/* craft · media-rm-anchor-v1 (@ego 21:27) — × ancré sur la vignette, pas sur le titre */
.media-pick .tile-shot {
  position: relative;
  width: 100%;
}
.media-pick .tile-shot > img,
.media-pick .tile-shot > b,
.media-pick .media-pick-lab img,
.media-pick .media-pick-lab b {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  min-height: 0;
  object-fit: cover;
  display: block;
  border-radius: .85rem;
  background: #1a2040;
}
.media-pick .media-pick-lab {
  display: block;
  width: 100%;
  margin: 0;
  cursor: pointer;
}
.media-pick .media-pick-lab input[type=checkbox],
.media-pick .media-pick-lab input[type=radio] {
  position: absolute;
  top: .45rem;
  left: .45rem;
  margin: 0;
  z-index: 2;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #c9b48a;
}
.media-pick .tile-shot .rm-form {
  position: absolute;
  top: .4rem;
  right: .4rem;
  margin: 0;
  z-index: 3;
}

/* craft · media-label-retour-v1 (@ego 18:24) — titre à gauche, actions à droite */
.atelier-bar {
  justify-content: flex-start;
}
.atelier-bar .atelier-label {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -.02em;
  color: #e8ecff;
  margin: 0;
  padding: .35rem .25rem .35rem 1.5rem;
  white-space: nowrap;
  flex: 0 0 auto;
}
.atelier-bar .atelier-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

/* craft · liste-delete-v1 (@ego 19:27) */
.liste-bulk {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 .75rem;
}
.fiche-list .col-check {
  width: 2.2rem;
  text-align: center;
  vertical-align: middle;
}
.fiche-list .col-check input {
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
  accent-color: #5b6abf;
}
.fiche-list.selectable tbody tr.hit td:nth-child(2) { border-radius: 0; }
.fiche-list.selectable tbody tr.hit td.col-check { border-radius: .7rem 0 0 .7rem; }
button.save.danger {
  background: #8b3a4a;
  color: #e8ecff;
}
button.save.danger:hover { filter: brightness(1.08); }

/* craft · toasts-v1 (@ego 19:34) */
.agentik-toasts {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}
.agentik-toast {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1.35;
  padding: .85rem 1.05rem;
  border-radius: .85rem;
  color: #e8ecff;
  background: #1a2040;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}
.agentik-toast.on {
  opacity: 1;
  transform: translateY(0);
}
.agentik-toast.ok {
  background: #243056;
  box-shadow: inset 0 0 0 1px rgba(201, 180, 138, .45), 0 10px 28px rgba(0,0,0,.35);
}
.agentik-toast.err {
  background: #5a2430;
  box-shadow: inset 0 0 0 1px rgba(232, 236, 255, .25), 0 10px 28px rgba(0,0,0,.35);
}
input[type=datetime-local] {
  font: inherit;
  font-size: .95rem;
  color: #e8ecff;
  background: #12162c;
  border: 0;
  border-radius: .7rem;
  padding: .7rem .85rem;
  max-width: 100%;
}

/* craft · tabs-in-head-v1 (@ego 19:54) */
.head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  margin-left: auto;
}
.head-fiche .fiche-tabs {
  display: inline-flex;
  gap: .35rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.head-fiche .fiche-tabs .tab-btn {
  margin: 0;
}

/* craft · tabs-go-media-v1 (@ego 19:56) — tabs = go-media + is-on */

/* craft · diff-prod-v1 (@ego 20:25) · maj label+gal 20:33 — ahead = À verser */
.diff-badge {
  display: inline-flex;
  align-items: center;
  font-family: "Sora", sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
}
.diff-badge.diff-absent {
  background: rgba(201, 180, 138, .18);
  color: #c9b48a;
}
.diff-badge.diff-sync {
  background: rgba(90, 160, 120, .22);
  color: #9dceb0;
}
.diff-badge.diff-ahead {
  background: rgba(91, 106, 191, .35);
  color: #e8ecff;
}
.diff-badge.diff-na {
  background: rgba(154, 166, 212, .15);
  color: #9aa6d4;
}
.fiche-list .col-diff {
  width: 7.5rem;
}
.head-fiche .meta .diff-badge {
  margin-left: .55rem;
}

/* craft · promote-v1 (@ego 20:36) — Verser / Retirer */
.inline-prod { display: inline-flex; margin: 0; }
.inline-prod .save { margin: 0; }

/* craft · view-toggle-v1 (@ego 20:46) — liste / grille */
.list-head, .media-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .85rem;
}
.list-head h1 { margin: 0; }
.view-toggle {
  display: inline-flex;
  gap: .25rem;
  background: rgba(26, 32, 64, .85);
  border-radius: 999px;
  padding: .2rem;
}
.view-btn {
  font-family: "Figtree", sans-serif;
  font-weight: 650;
  font-size: .82rem;
  border: 0;
  border-radius: 999px;
  padding: .45rem .9rem;
  cursor: pointer;
  background: transparent;
  color: #9aa6d4;
}
.view-btn.is-on, .view-btn[aria-pressed="true"] {
  background: #5b6abf;
  color: #e8ecff;
}
.view-root[data-view="liste"] .fiche-grid { display: none !important; }
.view-root[data-view="grille"] .fiche-list { display: none !important; }
.view-root[data-view="grille"] .liste-bulk { display: none !important; }
.view-root[data-view="grille"] .fiche-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .75rem;
  margin: .65rem 0 1rem;
}
.fiche-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem .95rem;
  border-radius: 1.1rem;
  background: #1a2040;
  color: #e8ecff;
  text-decoration: none;
  min-height: 7.5rem;
}
.fiche-card:hover { filter: brightness(1.08); color: #e8ecff; }
.fiche-card-code {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #c9b48a;
}
.fiche-card-title {
  font-size: .9rem;
  line-height: 1.35;
  flex: 1;
}
.fiche-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  color: #9aa6d4;
}

/* Média · grille = paves actuels · liste = rangées compactes */
.view-root[data-view="liste"] .paves {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.view-root[data-view="liste"] .pave-rich {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  align-items: center;
  min-height: 0;
  padding: .65rem .85rem;
  gap: .75rem;
}
.view-root[data-view="liste"] .pave-thumbs {
  justify-content: flex-end;
}
.view-root[data-view="liste"] .pave-thumb {
  width: 3.2rem;
  height: 2.4rem;
}
.view-root[data-view="liste"] .gallery.media-pick {
  grid-template-columns: 1fr;
}
.view-root[data-view="liste"] .gallery.media-pick .lift-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: .75rem;
  aspect-ratio: auto;
  padding: .35rem;
}
.view-root[data-view="liste"] .gallery.media-pick .lift-item img {
  aspect-ratio: 4/3;
  height: auto;
}

/* craft · media-fiche-v1 (@ego 20:54) — Média dans .fiche comme Panel */
.fiche.media-fiche {
  margin-top: .85rem;
}
.fiche.media-fiche .list-head {
  margin-bottom: 1rem;
}
.fiche.media-fiche .atelier-bar {
  margin: 0 0 1rem;
}
