/* =============================================================
   LISTES — lot 6 (docs/franchises/08-lot6-listes.md)
   Référence visuelle : docs/franchises/mockup/listes/fr-lists.css
   Tokens (couleurs, échelle de texte, hauteurs) dans style.css.
   Classes préfixées l- (lu- pour le line-up) ; les composants
   Bootstrap ne sont restylés qu'à l'intérieur de .l-head / .l-card.
   ============================================================= */

/* ---------- En-tête de liste : titre + compteurs à gauche, actions à droite ---------- */
.l-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.l-head h1 { font-family: var(--font-title); font-size: var(--t-h1); font-weight: 700; letter-spacing: -.01em; color: var(--fr-ink); margin: 0; }
.l-head .f-crumbs { margin-bottom: 4px; }
.l-head-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; font-size: var(--t-sm); color: var(--fr-ink-2); }
.l-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.l-head-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }

/* ---------- Carte de liste ---------- */
.l-card { background: var(--fr-surface); border: 1px solid var(--fr-line); border-radius: 18px; box-shadow: var(--fr-hi), var(--fr-shadow); color: var(--fr-ink); min-width: 0; margin-bottom: 16px; }
.l-card-h { padding: 14px 18px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.l-card-h h2 { font-family: var(--font-title); font-size: var(--t-lg); font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--fr-ink); }
.l-card-h p { font-size: var(--t-sm); color: var(--fr-ink-2); margin: 2px 0 0; }
.l-card-b { padding: 14px 18px 18px; }
.l-card .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.l-card .btn.btn-icon { display: inline-grid; place-items: center; }

/* Onglets de vue en tête de carte (À venir / Passées, Actifs / Orphelins) : liens ou boutons */
.l-vtabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--fr-line); flex-wrap: wrap; }
.l-vtab { position: relative; height: 32px; padding: 0 14px; font: inherit; font-size: var(--t-base); font-weight: 500; color: var(--fr-ink-2); border: 0; border-radius: 999px; display: flex; gap: 7px; align-items: center; background: none; cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.l-vtab:hover { color: var(--fr-ink); background: var(--fr-btn); }
.l-vtab.is-active { color: var(--fr-ink); background: var(--fr-accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fr-accent) 35%, transparent); }
.l-vtab:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--fr-ring); }
[data-bs-theme="light"] .l-vtabs { gap: 18px; padding: 0 18px; }
[data-bs-theme="light"] .l-vtab { height: 40px; padding: 0; border-radius: 0; color: var(--fr-ink-3); }
[data-bs-theme="light"] .l-vtab:hover { background: none; color: var(--fr-ink); }
[data-bs-theme="light"] .l-vtab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--fr-accent); transform: scaleX(0); transition: transform .3s var(--ease); }
[data-bs-theme="light"] .l-vtab.is-active { background: none; box-shadow: none; color: var(--fr-ink); font-weight: 600; }
[data-bs-theme="light"] .l-vtab.is-active::after { transform: scaleX(1); }
.l-count { font-size: var(--t-2xs); background: var(--fr-btn-hover); border-radius: 999px; padding: 0 7px; color: var(--fr-ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
[data-bs-theme="light"] .l-vtab.is-active .l-count { background: var(--fr-ink); color: #fff; }
.l-count--warn { background: var(--warn-soft); box-shadow: none; color: var(--warn-ink); }

/* ---------- Barre de recherche / filtres : gabarit unique ----------
   [Recherche (flex, 240 px mini)] [filtres à largeur fixe] [f-seg] … [Effacer] */
/* Lot 7 : barre en pilule posée dans la carte (creusée en sombre, blanche et soulevée en clair) */
.l-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 12px 12px; padding: 6px; border: 1px solid var(--fr-line); border-radius: 26px; background: var(--fr-ground); box-shadow: var(--fr-hi); }
[data-bs-theme="light"] .l-toolbar { background: var(--fr-surface); border-color: var(--fr-line-2); box-shadow: var(--fr-shadow); }
.l-search { position: relative; flex: 1 1 240px; min-width: 200px; }
.l-search > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--fr-ink-3); font-size: 13px; pointer-events: none; }
.l-toolbar-end { margin-left: auto; display: flex; gap: 6px; align-items: center; }

.l-card :is(.form-control, .form-select) { height: var(--h-in); min-height: var(--h-in); border: 1px solid var(--fr-line-2); border-radius: 999px; background-color: var(--fr-input); color: var(--fr-ink); font-family: var(--font-body); font-size: var(--t-base); padding-top: 0; padding-bottom: 0; transition: border-color .15s, box-shadow .2s var(--ease), background-color .15s; }
.l-card textarea.form-control { height: auto; border-radius: 18px; padding-top: 10px; padding-bottom: 10px; }
[data-bs-theme="light"] .l-card :is(.form-control, .form-select) { border-color: transparent; }
.l-card .form-control { padding-left: 16px; padding-right: 16px; }
.l-card .form-select { padding-left: 16px; padding-right: 36px; background-position: right 14px center; }
.l-search > .form-control { padding-left: 38px; }
.l-card .form-control::placeholder { color: var(--fr-ink-3); opacity: 1; }
.l-card :is(.form-control, .form-select):hover:not(:focus):not(:disabled) { border-color: var(--fr-line-3); }
[data-bs-theme="light"] .l-card :is(.form-control, .form-select):hover:not(:focus):not(:disabled) { border-color: transparent; background-color: var(--fr-btn-hover); }
.l-card :is(.form-control, .form-select):focus { border-color: var(--fr-accent); box-shadow: 0 0 0 4px var(--fr-ring); background-color: var(--fr-surface); }
[data-bs-theme="light"] .l-card :is(.form-control, .form-select):focus { border-color: var(--fr-ink); }
/* Filtre actif : champ teinté accent (.is-set posé par table_scripts ou par la vue) */
.l-card .form-select.l-filter.is-set,
.l-card .form-control.l-filter.is-set { border-color: color-mix(in srgb, var(--fr-accent) 55%, var(--fr-line-2)); background-color: var(--fr-accent-soft); color: var(--fr-accent-ink); font-weight: 500; }
/* Libellé dans le champ (variante à la première option) : <label class="l-filter-k"><span>Lieu</span><select class="form-select l-filter">… */
.l-filter-k { position: relative; display: block; margin: 0; }
.l-filter-k > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: var(--t-sm); color: var(--fr-ink-3); pointer-events: none; }
.l-w-140 { width: 140px; flex: 0 0 140px; }
.l-w-160 { width: 160px; flex: 0 0 160px; }
.l-w-180 { width: 180px; flex: 0 0 180px; }
.l-w-200 { width: 200px; flex: 0 0 200px; }
.l-w-240 { width: 240px; flex: 0 0 240px; }
/* Contrôle segmenté du lot 5 à la hauteur des champs */
.l-toolbar .f-seg { height: var(--h-in); padding: 3px; align-items: stretch; }
.l-toolbar .f-seg > .btn { min-height: 0; padding: 0 12px; font-size: var(--t-sm); }

/* Filtres actifs en puces / ligne d'aide sous la barre */
.l-chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--fr-line); background: var(--fr-surface-2); font-size: var(--t-sm); color: var(--fr-ink-3); }
.l-chips--plain { background: var(--fr-surface); }
.l-chips--plain.is-off { background: var(--fr-surface-2); color: var(--fr-ink-2); }
.l-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; background: transparent; border: 1px dashed var(--fr-line-3); border-radius: 999px; padding: 2px 4px 2px 12px; font-size: var(--t-sm); color: var(--fr-ink-2); transition: background-color .18s, border-color .18s, color .18s; }
.l-chip:hover { border-style: solid; background: var(--fr-btn); color: var(--fr-ink); }
.l-chip.is-on { border-style: solid; border-color: color-mix(in srgb, var(--fr-accent) 45%, transparent); background: var(--fr-accent-soft); color: var(--fr-ink); }
[data-bs-theme="light"] .l-chip.is-on { border-color: var(--fr-ink); background: var(--fr-ink); color: #fff; }
.l-chip button { width: 20px; height: 20px; border: 0; background: transparent; color: inherit; opacity: .7; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; font-size: 10px; transition: background-color .15s, color .15s, opacity .15s; }
.l-chip button:hover { opacity: 1; background: color-mix(in srgb, var(--stop) 20%, transparent); color: var(--stop-ink); }

/* Barre d'actions en masse (line-up en masse) */
.l-bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--fr-line); background: var(--fr-accent-soft); }
.l-bulkbar-n { font-weight: 600; color: var(--fr-accent-ink); margin-right: 6px; font-size: var(--t-base); }

/* ---------- Tableau de données : <table class="table l-table"> ---------- */
.l-scroll { overflow-x: auto; position: relative; } /* relative : les .visually-hidden des en-têtes restent dans le défilement */
.table.l-table { --bs-table-bg: transparent; --bs-table-color: var(--fr-ink); --bs-table-border-color: var(--fr-line); --bs-table-hover-bg: var(--fr-hover); --bs-table-hover-color: var(--fr-ink); width: 100%; margin: 0; border-collapse: collapse; font-size: var(--t-base); font-variant-numeric: tabular-nums; }
.l-table > thead th { text-align: left; font-weight: 600; font-size: var(--t-2xs); letter-spacing: .07em; text-transform: uppercase; color: var(--fr-ink-3); padding: 9px 12px; border-bottom: 1px solid var(--fr-line); background: var(--fr-thead); white-space: nowrap; vertical-align: middle; }
.l-table > thead th[data-sort], .l-table > thead th.is-sortable { cursor: pointer; user-select: none; }
.l-table > thead th[data-sort]:hover { color: var(--fr-ink-2); }
.l-table > thead th.is-sorted { color: var(--fr-ink); }
.l-table > thead th.is-sorted::after { content: " ↑"; color: var(--fr-accent-ink); }
.l-table > thead th.is-sorted.is-desc::after { content: " ↓"; }
.l-table > tbody > tr > td { padding: 8px 12px; border-bottom: 1px solid var(--fr-line); vertical-align: middle; height: var(--h-row); background: transparent; color: var(--fr-ink); transition: background-color .15s; }
.l-table > tbody > tr:hover > td { background: var(--fr-hover); }
.l-table > tbody > tr.is-selected > td { background: color-mix(in srgb, var(--fr-accent) 6%, var(--fr-surface)); }
.l-table > tbody > tr.is-current > td { background: var(--fr-highlight); }
.l-table > tbody > tr.is-past > td { color: var(--fr-ink-3); }
.l-table > tbody > tr.is-orphan > td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.l-table > tbody > tr:last-child > td { border-bottom: 0; }
.l-table .l-cb { width: 40px; padding-right: 0; }
.l-table .l-num { text-align: right; }
.l-table .l-act { width: 1%; white-space: nowrap; text-align: right; }
.l-table .l-star { width: 36px; padding-right: 0; text-align: center; }
.l-table .l-grip { width: 32px; padding-right: 0; color: var(--fr-ink-3); cursor: grab; }
.l-table > tbody > tr.l-group > td { height: auto; padding: 7px 12px; background: var(--fr-surface-2); font-size: var(--t-2xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fr-ink-2); }
.l-dash { color: var(--fr-ink-3); }

/* Cellules */
.l-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.l-t1 { font-weight: 600; color: var(--fr-ink); display: flex; align-items: center; gap: 6px; }
.l-t1 a { color: inherit; }
.l-t1 a:hover { color: var(--fr-accent-ink); }
.l-t2 { font-size: var(--t-sm); color: var(--fr-ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.l-mono { font-family: var(--font-mono); font-size: var(--t-sm); }
.l-cell-txt { min-width: 0; }
.l-ink2 { color: var(--fr-ink-2); }
.l-table > tbody > tr > td.l-ink2 { color: var(--fr-ink-2); }
/* Ligne secondaire tronquée (description) */
.l-ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Cellule principale : prend la place restante, sa ligne secondaire se tronque au lieu d'élargir le tableau */
.l-table .l-main { width: 100%; max-width: 0; min-width: 200px; }
.l-ellipsis > * + * { margin-left: 6px; }
/* Glisser-déposer suspendu (tri ou filtre actif) */
.l-table .l-grip.drag-handle { cursor: grab; }
.l-table.is-drag-off .l-grip.drag-handle { opacity: .35; cursor: not-allowed; }
.l-table tr.sortable-ghost > td { background: var(--fr-accent-soft); }
.l-thumb { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; object-fit: cover; background: linear-gradient(140deg, color-mix(in srgb, var(--fr-accent) 40%, #111114), #111114); display: grid; place-items: center; color: rgba(255,255,255,.8); font-family: var(--font-title); font-weight: 700; font-size: 11px; overflow: hidden; }
.l-thumb--round { border-radius: 50%; }
.l-thumb--poster { width: 30px; height: 38px; border-radius: 7px; }
.l-thumb--empty { background: var(--fr-surface-2); box-shadow: inset 0 0 0 1px var(--fr-line); color: var(--fr-ink-3); }
.l-date { width: 46px; min-height: 46px; text-align: center; border-radius: 14px; background: var(--fr-btn); box-shadow: inset 0 0 0 1px var(--fr-line); padding: 4px 0; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; transition: box-shadow .2s, background-color .2s, color .2s, transform .25s var(--ease); }
.l-date b { display: block; font-family: var(--font-title); font-size: 15px; line-height: 1.1; color: var(--fr-ink); transition: color .2s; }
.l-date small { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fr-ink-3); transition: color .2s; }
.l-table > tbody > tr:hover .l-date { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fr-accent) 50%, transparent); }
[data-bs-theme="light"] .l-date { box-shadow: none; }
[data-bs-theme="light"] .l-table > tbody > tr:hover .l-date { background: var(--fr-ink); box-shadow: none; transform: rotate(-4deg); }
[data-bs-theme="light"] .l-table > tbody > tr:hover .l-date :is(b, small) { color: #fff; }
.l-date--today { background: var(--fr-accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fr-accent) 40%, transparent); }
.l-date--today b, .l-date--today small { color: var(--fr-accent-ink); }

/* Étoile « À la une » */
.l-star-btn { width: 30px; height: 30px; border: 0; background: none; padding: 0; line-height: 1; color: var(--fr-ink-3); cursor: pointer; border-radius: 50%; font-size: 15px; display: inline-grid; place-items: center; transition: background-color .15s, color .15s; }
.l-star-btn:hover { color: var(--fr-ink); background: var(--fr-btn); }
.l-star-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--fr-ring); }
.l-star-btn.is-on { color: var(--warn); }
.l-star-btn.is-on > i { animation: fr-pop .4s var(--ease); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--warn) 60%, transparent)); }
[data-bs-theme="light"] .l-star-btn.is-on { color: var(--fr-accent); }
[data-bs-theme="light"] .l-star-btn.is-on > i { filter: none; }

/* En-têtes triés côté serveur (liens) */
.l-table > thead th a { color: inherit; text-decoration: none; }
.l-table > thead th a:hover { color: var(--fr-ink); }

/* Lien chiffré (soirées d'un artiste) */
.l-num-link { font-weight: 600; color: var(--fr-ink); text-decoration: none; }
.l-num-link:hover { color: var(--fr-accent-ink); text-decoration: underline; }

/* Marqueur basculable sur place (« Résident ») : badge accent si actif, discret au survol sinon */
.l-flag { display: inline-flex; align-items: center; border: 1px dashed var(--fr-line-3); background: transparent; color: var(--fr-ink-3); font-size: var(--t-xs); font-weight: 600; line-height: 1.5; padding: 1px 9px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.l-flag:hover { color: var(--fr-ink); border-color: var(--fr-ink-3); }
.l-flag.is-on { background: var(--fr-accent-soft); color: var(--fr-accent-ink); border: 1px solid transparent; }
.l-flag.is-on:hover { border-color: color-mix(in srgb, var(--fr-accent) 45%, transparent); }
.l-flag:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--fr-ring); }
@media (hover: hover) {
    .l-table > tbody > tr:not(:hover) .l-flag:not(.is-on):not(:focus-visible) { opacity: 0; }
}

/* Réseaux : icônes 26 px neutres */
.l-socials { display: flex; gap: 2px; flex-wrap: nowrap; }
.btn.btn-icon--sm { width: 26px; height: 26px; font-size: 13px; }
.l-table td.l-bio { width: 240px; min-width: 240px; max-width: 240px; font-size: var(--t-sm); color: var(--fr-ink-2); }
@media (max-width: 1100px) { .l-table td.l-bio { width: 160px; min-width: 160px; max-width: 160px; } }

/* Actions de ligne : propres, modifier, supprimer ; masquées puis glissées au survol (pointeur fin), visibles au clavier */
.l-rowacts { display: flex; gap: 2px; justify-content: flex-end; align-items: center; transition: opacity .18s, transform .2s var(--ease); }
@media (hover: hover) {
    :is(.l-table > tbody > tr, .lu-slot):not(:hover):not(:focus-within) .l-rowacts { opacity: 0; transform: translateX(6px); }
}

/* Tag en pastille */
.l-tagdot { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--fr-ink-2); }
.l-tagdot > i { width: 8px; height: 8px; border-radius: 50%; display: block; flex-shrink: 0; }

/* Soirées (6.7) : note des onglets de vue, mois sous le jour, colonne Line-up */
.l-vtabs-note { margin-left: auto; align-self: center; display: inline-flex; gap: 6px; align-items: center; font-size: var(--t-sm); color: var(--fr-ink-3); padding: 0 6px; }
.l-date small + b + small { margin-top: 1px; }
.l-table > tbody > tr.is-past :is(.l-t1, .l-date b) { color: var(--fr-ink-3); }
.l-tix { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
@media (max-width: 1500px) {
    .l-table--dense > :is(thead, tbody) > tr > :is(th, td) { padding-left: 8px; padding-right: 8px; }
}
.l-lineup { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.l-lineup .btn-xs { gap: 5px; padding: 0 9px; font-variant-numeric: tabular-nums; }
/* Badge de statut modifiable sur place : <button class="f-badge … l-dd-toggle" data-bs-toggle="dropdown"> */
.l-dd-toggle { cursor: pointer; font-family: inherit; line-height: 1.5; }
.l-dd-toggle > i { font-size: 8px; opacity: .7; margin-left: 1px; }
.l-dd-toggle { transition: border-color .15s, filter .15s; }
.l-dd-toggle:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); filter: brightness(1.08); }
[data-bs-theme="light"] .l-dd-toggle:hover { filter: brightness(.97); }
.l-dd-toggle:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--fr-ring); }
.l-card .dropdown-menu { --bs-dropdown-min-width: 9rem; --bs-dropdown-link-active-bg: var(--fr-accent-soft); --bs-dropdown-link-active-color: var(--fr-accent-ink); --bs-dropdown-link-hover-bg: var(--fr-hover); --bs-dropdown-link-color: var(--fr-ink); --bs-dropdown-border-radius: 14px; --bs-dropdown-padding-x: 6px; --bs-dropdown-padding-y: 6px; --bs-dropdown-bg: var(--fr-surface); border-color: var(--fr-line-2); box-shadow: var(--fr-shadow-2); }
.l-card .dropdown-item { border-radius: 9px; }
.l-card .dropdown-item.active { font-weight: 600; }
/* Affiche en vignette : bouton de téléchargement au survol, aperçu 200 px (#posterZoomPreview) */
.l-thumb--poster > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-thumb--poster > i { font-size: 12px; opacity: .6; }
.poster-thumb-wrap { position: relative; cursor: zoom-in; }
.poster-download-btn { position: absolute; bottom: 0; right: 0; width: 16px; height: 16px; background: rgba(0,0,0,.62); color: #fff; border-radius: 4px 0 0 0; display: flex; align-items: center; justify-content: center; font-size: 8px; opacity: 0; transition: opacity .15s; z-index: 2; }
.poster-thumb-wrap:hover .poster-download-btn, .poster-download-btn:focus-visible { opacity: 1; color: #fff; }
#posterZoomPreview { position: fixed; width: 200px; height: 200px; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,.35); border: 3px solid var(--fr-surface); z-index: 9999; pointer-events: none; opacity: 0; transform: scale(.88); transition: opacity .14s ease, transform .14s ease; }
#posterZoomPreview.visible { opacity: 1; transform: scale(1); }
#posterZoomPreview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ad Manager (6.10) : badges groupés, boutons de contenus, avancement */
.l-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.l-btnrow { display: flex; gap: 4px; flex-wrap: nowrap; }
.l-t1--plain { font-weight: 500; }
.l-link { color: var(--fr-accent-ink); text-decoration: none; }
.l-link:hover { text-decoration: underline; }
.l-table td.l-progress-cell { min-width: 150px; }
.l-progress-cell .f-progress { margin-bottom: 4px; }
@media (max-width: 1500px) {
    .l-btnrow { flex-wrap: wrap; max-width: 170px; }
    .l-table td.l-progress-cell { min-width: 120px; }
}

/* Billetterie (6.11) : URL tronquée, interrupteur-lien, bandeau des orphelins */
.l-table td.l-url { max-width: 240px; }
.l-table td.l-clubs { min-width: 240px; }
.l-table td.l-ibcheck { min-width: 200px; }
.l-url .l-ellipsis { display: block; }
.l-table .l-wrap { white-space: normal; max-width: 220px; }
.l-chips--warn { background: var(--warn-soft); color: var(--warn-ink); }
.l-head-meta code { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--fr-ink-2); background: var(--fr-btn-hover); padding: 1px 6px; border-radius: 6px; }
.l-head-meta .badge-ibiza { flex-shrink: 0; }
.l-rowacts .l-rowacts-btn { margin-right: 4px; }
/* Interrupteur porté par un lien (GET existant) : <a class="l-switch is-on" role="switch"><span></span></a> */
.l-switch { display: inline-block; position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--fr-btn-hover); box-shadow: inset 0 0 0 1px var(--fr-line-2); vertical-align: middle; transition: background-color .25s, box-shadow .25s; }
.l-switch > span { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #B9BAC1; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .2s; }
[data-bs-theme="light"] .l-switch { background: #D7D7DE; box-shadow: none; }
[data-bs-theme="light"] .l-switch > span { background: #fff; box-shadow: 0 1px 3px rgba(17,17,20,.3); }
.l-switch.is-on { background: var(--fr-accent); box-shadow: none; }
[data-bs-theme="dark"] .l-switch.is-on { box-shadow: 0 0 16px -3px var(--fr-accent); }
.l-switch.is-on > span { transform: translateX(14px); background: #fff; }
.l-switch:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--fr-ring); }

/* Administration (6.12) : pastille de franchise, clé créée, documentation de l'API */
.l-frbadge { width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 11px; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.l-rowacts-gap { width: 30px; display: inline-block; }
.l-stop { color: var(--stop-ink); font-weight: 600; }
.l-card code, .l-newkey code { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--fr-ink-2); background: var(--fr-btn-hover); padding: 1px 6px; border-radius: 6px; }
.l-card-h h2 > i { color: var(--fr-ink-3); font-size: 13px; }
.l-newkey { align-items: flex-start; color: var(--fr-ink); }
.l-newkey > i { color: var(--ok-ink); }
.l-newkey-b { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.l-newkey-b > strong { color: var(--ok-ink); }
.l-newkey-row { display: flex; gap: 8px; align-items: center; }
.l-newkey .l-newkey-val { flex: 1; min-width: 0; word-break: break-all; font-size: var(--t-sm); color: var(--fr-ink); background: var(--fr-surface); border: 1px solid var(--fr-line); border-radius: 12px; padding: 7px 12px; }
.l-newkey-row .btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.l-newkey-hint { font-size: var(--t-sm); color: var(--fr-ink-2); }
.l-doc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.l-doc > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.l-doc-k { font-size: var(--t-sm); font-weight: 600; color: var(--fr-ink); }
.l-doc code { display: block; padding: 8px 12px; border: 1px solid var(--fr-line); border-radius: 12px; word-break: break-all; }
@media (max-width: 900px) { .l-doc { grid-template-columns: minmax(0, 1fr); } }

/* Interrupteur restylé dans les listes */
.l-card .form-switch { margin: 0; min-height: 0; padding-left: 0; display: inline-flex; }
.l-card .form-switch .form-check-input { width: 34px; height: 20px; margin: 0; float: none; } /* couleurs : règles communes de forms.css */

/* Niveau (emplacements pub) et avancement en tableau */
.l-meter { display: inline-flex; gap: 3px; }
.l-meter > i { width: 14px; height: 5px; border-radius: 999px; background: var(--fr-line-2); display: block; }
.l-meter > i.is-on { background: var(--fr-accent); }
.l-table .f-progress { width: 90px; height: 5px; box-shadow: inset 0 0 0 1px var(--fr-line); }

/* ---------- Pied de carte : compteur + pagination ---------- */
.l-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--fr-line); font-size: var(--t-sm); color: var(--fr-ink-2); }
.l-pager { display: flex; gap: 2px; align-items: center; margin: 0; padding: 0; list-style: none; }
.l-pager > :is(a, button, span) { min-width: 30px; height: 30px; border-radius: 999px; border: 0; background: transparent; font: inherit; font-size: var(--t-sm); color: var(--fr-ink-2); cursor: pointer; padding: 0 8px; display: inline-grid; place-items: center; text-decoration: none; transition: background-color .15s, color .15s; }
.l-pager > :is(a, button):hover:not(.is-active):not(:disabled):not(.is-disabled) { background: var(--fr-btn-hover); color: var(--fr-ink); }
.l-pager > :is(a, button):focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--fr-ring); }
.l-pager > .is-active { background: var(--fr-ink); color: var(--fr-ground); font-weight: 700; }
.l-pager > :is(:disabled, .is-disabled) { opacity: .4; cursor: default; pointer-events: none; }
.l-pager > .l-pager-gap { cursor: default; }

/* ---------- État vide ---------- */
.l-empty { margin: 14px; padding: 32px 20px; border-radius: 16px; background: var(--fr-btn); box-shadow: inset 0 0 0 1px var(--fr-line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fr-ink-2); }
[data-bs-theme="light"] .l-empty { background: var(--fr-ground); box-shadow: none; border-radius: 18px; }
.l-empty-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--fr-accent-soft); display: grid; place-items: center; color: var(--fr-accent-ink); font-size: 16px; margin-bottom: 2px; }
.l-empty b { color: var(--fr-ink); font-size: var(--t-md); }
.l-table > tbody > tr > td.l-empty-cell { height: auto; padding: 0; }
.l-table > tbody > tr:hover > td.l-empty-cell { background: transparent; }

/* ---------- Mise en page : liste + colonne latérale ---------- */
.l-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.l-cols--340 { grid-template-columns: minmax(0, 1fr) 340px; }
.l-cols--360 { grid-template-columns: minmax(0, 1fr) 360px; }
.l-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.l-sticky { position: sticky; top: 16px; }

/* =============================================================
   LINE-UP (onglet de la soirée, 6.8)
   ============================================================= */
.lu-room { border-top: 1px solid var(--fr-line); }
.lu-room:first-child { border-top: 0; }
.lu-rh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 8px; flex-wrap: wrap; }
.lu-rh h3 { font-family: var(--font-title); font-size: var(--t-md); font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--fr-ink); }
.lu-rh-hint { display: flex; gap: 10px; align-items: center; font-size: var(--t-sm); color: var(--fr-ink-3); }
/* Frise horaire de la salle : ouverture → fermeture, passages placés en % */
.lu-strip { margin: 0 16px 6px; position: relative; height: 26px; border-radius: 10px; background: var(--fr-surface-2); box-shadow: inset 0 0 0 1px var(--fr-line); overflow: hidden; }
.lu-strip > i { position: absolute; top: 3px; bottom: 3px; border-radius: 7px; background: color-mix(in srgb, var(--fr-accent) 22%, var(--fr-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fr-accent) 45%, transparent); font-style: normal; font-size: var(--t-2xs); color: var(--fr-accent-ink); font-weight: 600; padding: 0 6px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
[data-bs-theme="light"] .lu-strip > i { color: color-mix(in srgb, var(--fr-accent) 55%, black); }
.lu-strip > i.is-main { background: var(--fr-accent); color: var(--fr-on-accent); box-shadow: none; }
.lu-strip > i.is-clash { background: var(--stop-soft); box-shadow: inset 0 0 0 1.5px var(--stop); color: var(--stop-ink); }
.lu-strip > i.is-gap { background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--warn) 22%, transparent) 5px 7px); box-shadow: none; color: var(--warn-ink); }
.lu-scale { margin: 0 16px 10px; display: flex; justify-content: space-between; font-size: 10px; color: var(--fr-ink-3); font-family: var(--font-mono); }
.lu-slot { display: grid; grid-template-columns: 92px 18px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--fr-line); min-height: var(--h-row); transition: background-color .15s; }
.lu-slot:hover { background: var(--fr-hover); }
.lu-slot.is-editing { background: color-mix(in srgb, var(--fr-accent) 7%, var(--fr-surface)); box-shadow: inset 3px 0 0 var(--fr-accent); }
.lu-slot.is-clash .lu-time b { color: var(--stop-ink); }
.lu-time { font-family: var(--font-mono); font-size: var(--t-sm); line-height: 1.3; }
.lu-time b { font-weight: 500; color: var(--fr-ink); display: block; }
.lu-time span { color: var(--fr-ink-3); }
/* Trait B2B qui relie les artistes d'un même groupe */
.lu-b2b { width: 18px; align-self: stretch; position: relative; }
.lu-b2b.is-top::before, .lu-b2b.is-mid::before, .lu-b2b.is-bot::before { content: ""; position: absolute; left: 7px; width: 2px; background: var(--fr-accent); }
.lu-b2b.is-top::before { top: 50%; bottom: -9px; }
.lu-b2b.is-mid::before { top: -9px; bottom: -9px; }
.lu-b2b.is-bot::before { top: -9px; bottom: 50%; }
.lu-b2b.is-top::after, .lu-b2b.is-bot::after { content: ""; position: absolute; left: 4px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--fr-accent); }
.lu-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lu-who .l-t1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-gap { margin: 0 16px; padding: 6px 10px 6px 122px; font-size: var(--t-sm); color: var(--warn-ink); display: flex; gap: 8px; align-items: center; border-top: 1px dashed color-mix(in srgb, var(--warn) 40%, transparent); }
.lu-add { padding: 10px 16px 14px; border-top: 1px solid var(--fr-line); }
.lu-add .btn { justify-content: flex-start; }
.lu-poster { width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; object-fit: cover; background: linear-gradient(160deg, color-mix(in srgb, var(--fr-accent) 45%, #111114), #111114 70%); display: grid; place-items: center; color: rgba(255,255,255,.8); font-family: var(--font-title); font-weight: 700; font-size: 18px; text-align: center; letter-spacing: .04em; }
.lu-navpn { display: flex; gap: 4px; align-items: center; }
/* Autocomplétion artiste : Fiche locale / Importer d'Ibiza / Créer la fiche */
.lu-ac { border: 1px solid var(--fr-line-2); border-radius: 14px; background: var(--fr-surface); box-shadow: 0 8px 24px rgba(17,17,20,.12); overflow: hidden; margin-top: 4px; }
.lu-ac-i { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: var(--t-base); border-top: 1px solid var(--fr-line); cursor: pointer; color: var(--fr-ink); }
.lu-ac-i:first-child { border-top: 0; }
.lu-ac-i:hover, .lu-ac-i.is-active { background: var(--fr-hover); }
.lu-ac-i .l-thumb { width: 26px; height: 26px; font-size: 9px; }
.lu-ac-r { margin-left: auto; }
/* Formulaire de passage en modification : cadre accent */
.lu-form.is-editing { border-color: var(--fr-accent); box-shadow: 0 0 0 3px var(--fr-ring); }
/* En-têtes de carte séparés, badges chevauchement / trou */
.lu-card-h { padding-bottom: 12px; border-bottom: 1px solid var(--fr-line); }
.lu-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lu-room-empty { margin: 0; padding: 4px 16px 14px; font-size: var(--t-sm); color: var(--fr-ink-3); }
/* Graduations placées comme les passages (left en %) */
.lu-scale { position: relative; display: block; height: 14px; }
.lu-scale > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.lu-scale > span.is-first { transform: none; }
.lu-scale > span.is-last { transform: translateX(-100%); }
.lu-clash { color: var(--stop-ink); font-weight: 500; }
.lu-clash::before { content: "· "; color: var(--fr-ink-3); font-weight: 400; }
.lu-slot .l-rowacts { flex-wrap: nowrap; }
/* Navigation précédente / suivante */
.lu-navpos { font-size: var(--t-sm); color: var(--fr-ink-3); padding: 0 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lu-navpn .btn { display: inline-flex; align-items: center; gap: 6px; }
/* Colonne latérale : état, formulaire, affiche */
.lu-status { display: flex; flex-direction: column; gap: 8px; }
.lu-fields { display: flex; flex-direction: column; gap: 12px; }
.lu-form .form-label { font-size: var(--t-sm); font-weight: 500; color: var(--fr-ink); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.lu-form .form-control.is-invalid { border-color: var(--stop); }
.lu-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lu-row2 .form-control.l-mono { font-size: var(--t-sm); padding-left: 8px; padding-right: 4px; }
.lu-hint { display: flex; gap: 6px; align-items: center; font-size: var(--t-sm); color: var(--fr-ink-3); margin-top: 4px; }
.lu-hint--tight { margin-top: -6px; }
.lu-hint--ok { color: var(--ok-ink); }
.lu-link { color: var(--fr-accent-ink); text-decoration: none; display: inline-flex; }
.lu-link:hover { text-decoration: underline; }
.lu-form-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--fr-line); }
.lu-form-f .btn { display: inline-flex; align-items: center; gap: 7px; }
.lu-ac-plus { width: 26px; text-align: center; color: var(--fr-accent-ink); }
.lu-ac-i--create { color: var(--fr-accent-ink); font-weight: 500; }
.lu-poster-card { display: flex; gap: 12px; align-items: flex-start; }
.lu-poster--sm { width: 84px; flex-shrink: 0; }
.lu-poster-txt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lu-poster-txt .lu-hint { margin-top: 0; }
.lu-poster-k { font-size: var(--t-sm); font-weight: 600; color: var(--fr-ink); }
/* Line-up en masse (6.9) */
.l-table .form-check-input { margin: 0; float: none; }
.l-bulkbar.is-empty { background: var(--fr-surface-2); }
.l-bulkbar.is-empty .l-bulkbar-n { color: var(--fr-ink-2); font-weight: 500; }
.lu-form.is-danger { border-color: color-mix(in srgb, var(--stop) 55%, var(--fr-line)); }
.lu-hint--flat { margin-top: 0; }
.lu-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.lu-switch .form-check-label { font-size: var(--t-sm); color: var(--fr-ink-2); cursor: pointer; white-space: nowrap; }
.l-filter-k > .form-control { padding-left: 34px; }
.l-bulkbar .lu-bulk-tip { margin: 0 0 0 auto; }
.lu-bulk-note { margin: 10px 14px 0; }
.lu-bulk-scroll { max-height: 560px; overflow-y: auto; }
.lu-bulk-scroll .l-table > thead th { position: sticky; top: 0; z-index: 1; }
.lu-bulk-scroll .l-table > tbody > tr > td { height: 44px; }
.f-modal .l-card .l-table > tbody > tr > td { height: 40px; }

/* ---------- Comparaison en masse avec Ibiza (artists.ejs) ---------- */
.bc-body { min-height: 400px; }
.bc-strong { font-weight: 600; color: var(--fr-ink); }
.bc-ok { color: var(--ok-ink); }
.bc-warn { color: var(--warn-ink); }
.bc-stop { color: var(--stop-ink); }
.bc-filter { width: 240px; }
.bc-scroll { max-height: 450px; overflow-y: auto; border: 1px solid var(--fr-line); border-radius: 14px; position: relative; }
.bc-table > thead th { position: sticky; top: 0; z-index: 1; }
.bc-avatar { width: 32px; height: 32px; }
.bc-table > tbody > tr.bc-detail-row > td.bc-detail-cell { height: auto; padding: 0; background: var(--fr-surface-2); }
.bc-detail { padding: 10px 16px 12px 52px; }
.table.bc-fields { --bs-table-bg: transparent; --bs-table-color: var(--fr-ink); --bs-table-border-color: var(--fr-line); font-size: var(--t-sm); table-layout: fixed; }
.bc-fields > thead th { font-size: var(--t-2xs); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fr-ink-3); }
.bc-fields td.bc-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Cases à cocher de la comparaison */
.bc-checkbox { width: 16px; height: 16px; border: 1.5px solid var(--fr-line-3); border-radius: 5px; appearance: none; -webkit-appearance: none; cursor: pointer; position: relative; background: var(--fr-input); vertical-align: middle; margin: 0; transition: background-color .15s, border-color .15s, box-shadow .2s; }
.bc-checkbox:hover:not(:disabled) { border-color: var(--fr-accent); }
[data-bs-theme="light"] .bc-checkbox:hover:not(:disabled) { border-color: var(--fr-ink); }
.bc-checkbox:checked { background: var(--fr-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%230B0B0D' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--fr-accent); }
[data-bs-theme="light"] .bc-checkbox:checked { background: var(--fr-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--fr-ink); }
.bc-checkbox:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--fr-ring); }
.bc-checkbox:disabled { opacity: .35; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
    .l-rowacts, .l-date, .l-switch, .l-switch > span, .l-vtab, .l-vtab::after, .l-chip, .l-table > tbody > tr > td, .lu-slot { transition: none !important; }
    .l-rowacts { transform: none !important; }
    [data-bs-theme="light"] .l-table > tbody > tr:hover .l-date { transform: none; }
    .l-star-btn.is-on > i { animation: none; }
}

/* ---------- Repli ---------- */
@media (max-width: 1100px) {
    .l-cols, .l-cols--340, .l-cols--360 { grid-template-columns: minmax(0, 1fr); }
    .l-sticky { position: static; }
    /* Colonnes de chiffres au plus juste : la cellule principale garde la place */
    .l-table .l-num { width: 1%; white-space: nowrap; }
    .l-table > thead th, .l-table > tbody > tr > td { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 900px) {
    .l-toolbar-end { margin-left: 0; }
    .lu-slot { grid-template-columns: 70px 12px minmax(0, 1fr) auto; }
    .lu-slot .lu-role { display: none; }
    .lu-gap { padding-left: 16px; }
}
