* { box-sizing: border-box; }
body { font-family: -apple-system, system-ui, sans-serif;
       background: #1c1d22; color: #e8e8e8; margin: 0; }
header { background: #2a2c33; padding: 16px 24px; border-bottom: 1px solid #3a3c44;
         display: flex; align-items: center; justify-content: space-between; }
header h1 { margin: 0; font-size: 20px; }
header .header-logo { height: 64px; width: auto; display: block; }
header .header-logo-diversion { height: 40px; }
header .header-logos { display: flex; align-items: center; gap: 16px; }
header .header-logos .divider { width: 1px; height: 24px; background: #44464f; }
nav { padding: 12px 24px; background: #22232a; }
nav a { color: #6cb6ff; text-decoration: none; margin-right: 18px; }
nav a:hover { text-decoration: underline; }
main { padding: 24px; max-width: 1100px; margin: 0 auto; }
h2 { color: #fff; margin-top: 0; }
h3 { color: #fff; margin: 0 0 12px; }
h4 { color: #c0c3cb; margin: 18px 0 6px; font-size: 13px;
     text-transform: uppercase; letter-spacing: 0.5px; }
.card { background: #2a2c33; border-radius: 8px; padding: 18px; margin-bottom: 16px;
        border: 1px solid #3a3c44; }
/* Repéré 2026-09-24 (sites.html) : la ligne nom+bouton renommer+badge+id
   passait sur 2 lignes (repli inline classique) même pour des noms courts,
   au lieu de rester en une ligne avec le nom tronqué "…". En cause : cette
   ligne est un <span x-show="..."> — Alpine.js ne restaure pas de façon
   fiable une valeur `display` custom écrite en inline sur un élément qu'il
   bascule lui-même via `style.display`. En posant le flex row ici, dans une
   classe EXTERNE plutôt qu'en style inline sur l'élément togglé, Alpine ne
   touche plus que `display:none`/rien — dès que l'élément est affiché, cette
   classe reprend la main et le flex s'applique de façon fiable. */
.site-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
/* Repéré 2026-09-24 : plus de troncature "…" ici — le titre a maintenant sa
   propre ligne pleine largeur (voir sites.html, rangée de boutons déplacée
   en dessous), donc le nom peut toujours s'afficher EN ENTIER ; retour à la
   ligne (au lieu de couper) dans le cas extrême d'un nom qui dépasse quand
   même la largeur de la carte. */
.site-name-text { overflow-wrap: anywhere; }
button { background: #4d9cff; color: #fff; border: 0; padding: 8px 14px;
         border-radius: 6px; cursor: pointer; font-size: 14px; }
button:hover { background: #6cb6ff; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.danger { background: #cb2431; }
button.secondary { background: #44464f; }
input, select, textarea { background: #1c1d22; color: #e8e8e8;
                          border: 1px solid #44464f; padding: 8px;
                          border-radius: 4px; font-size: 14px; width: 100%; }
input[type=number] { width: 100px; }
label { display: block; margin: 12px 0 4px; font-size: 13px; color: #a0a3ad; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #3a3c44; }
th { color: #a0a3ad; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.row { display: flex; gap: 12px; align-items: flex-end; }
.row > * { flex: 1; }
.filter-panel { padding-top: 14px; padding-bottom: 14px; }
.filter-row { display: flex; gap: 12px; align-items: end; }
.filter-field { flex: 1; max-width: 220px; }
.filter-field label { margin-top: 0; margin-bottom: 6px; }
.filter-field select { min-height: 36px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px;
         font-size: 11px; font-weight: 700; }
.badge.b2d  { background: #1f3a55; color: #4d9cff; }
.badge.b3d  { background: #2e244e; color: #a371f7; }
.badge.apk  { background: #2d4030; color: #2ea44f; }
.badge.bran { background: #4a3a20; color: #d4a72c; }
.badge.cinema      { background: #1f3a55; color: #4d9cff; }
.badge.interactif  { background: #47448f; color: #8c89cc; }
.file-list { font-family: Consolas, monospace; font-size: 13px; }
.toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 18px;
         border-radius: 6px; background: #2ea44f; color: #fff;
         box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.toast.err { background: #cb2431; }
.card.drag-over { outline: 2px dashed #4d9cff; outline-offset: 2px; }
tr.drag-over td { box-shadow: inset 0 2px 0 #4d9cff; }
.drag-handle { cursor: grab; color: #666; font-size: 16px; user-select: none; }

/* ─── Espaces (Traverse / Art Explora) — voir space.js ─── */
header { border-bottom: 3px solid #4d9cff; }
html[data-space="art_explora"] header { border-bottom-color: #e07a5f; }
html[data-space="vroo"] header { border-bottom-color: #9b7bd4; }
.space-switch { display: inline-flex; border: 1px solid #44464f; border-radius: 8px; overflow: hidden; }
.space-switch .space-btn { background: transparent; color: #aab0bb; border-radius: 0;
                           padding: 6px 12px; font-size: 13px; }
.space-switch .space-btn:hover { background: #343640; }
.space-switch .space-btn.active { color: #fff; cursor: default; }
.space-switch .space-btn-traverse.active { background: #4d9cff; }
.space-switch .space-btn-art_explora.active { background: #e07a5f; }
.space-switch .space-btn-vroo.active { background: #9b7bd4; }
/* Logos Art Explora et Vroo fournis en noir sur fond transparent : passé en blanc pour
   rester lisible sur l'en-tête sombre. */
header .header-logo-ae { filter: brightness(0) invert(1); }
/* Emplacement fixe du logo d'espace (64 px de haut, largeur du logo Traverse) :
   hauteur d'en-tête et position du sélecteur identiques dans les deux espaces. */
header .header-logo-slot { width: 132px; height: 64px; display: flex;
                           align-items: center; justify-content: center; }
header .header-logo-slot .header-logo { width: 100%; height: 100%; object-fit: contain; }
