.global-search { padding: 14px 30px; background: white; border-bottom: 1px solid var(--line); }
.global-search .search { max-width: 1120px; margin: auto; }
#recherche-apercu { max-width: 1120px; margin: 12px auto 0; padding: 12px 0; border-top: 1px solid var(--line); }
#recherche-apercu button { display: block; width: 100%; text-align: left; border: 0; }
#recherche-apercu p { margin: 0 12px 8px; }
.views { display: grid; gap: 4px; margin-bottom: 26px; }
.views .theme { font-weight: 800; }
.library-heading p { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.filters { align-items: end; gap: 14px; margin: 0 0 18px; }
.filters label { flex: 1 1 145px; min-width: 0; }
.filters select, .filters input { width: 100%; background: white; }
.filters .wide { flex-basis: 220px; }
.list-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 14px 0 22px; }
.check { display: flex; align-items: center; gap: 9px; min-height: 46px; font-weight: 400; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.trip-list { background: white; border-radius: var(--radius); }
.trip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 23px 24px; border-bottom: 1px solid var(--line); }
.trip-row:last-child { border-bottom: 0; }
.trip-open { display: block; background: transparent; border: none; padding: 0; min-height: 46px; text-align: left; font-size: 1.1rem; overflow-wrap: anywhere; }
.trip-open:hover { color: var(--accent); background: transparent; }
.trip-meta { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.trip-metrics { text-align: right; display: grid; gap: 6px; font-variant-numeric: tabular-nums; font-size: .9rem; }
.trip-metrics small { color: var(--muted); }
.year-heading { margin: 30px 0 12px; font-size: 1.1rem; }
.year-heading:first-child { margin-top: 0; }
.paper { background: white; border-radius: var(--radius); padding: 25px; min-width: 0; }
.view-heading { margin-bottom: 26px; }
.view-heading > button { margin-bottom: 20px; }
.view-heading p { margin-top: 10px; color: var(--muted); }
.detail-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.detail-actions { margin-top: 20px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .8fr); gap: 28px; }
.detail-layout section + section { margin-top: 30px; }
.paper h2 { margin-bottom: 14px; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.file-list li:last-child { border: 0; }
.file-list a { display: inline-block; padding: 7px 0; font-weight: 700; }
.file-list small { display: block; color: var(--muted); }
.file-list .download { margin-left: 16px; font-size: .85rem; font-weight: 400; }
.editor { max-width: 940px; }
.editor section + section { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.editor h2 { margin-bottom: 18px; }
.editor input:not([type=checkbox]), .editor select, .editor textarea { width: 100%; }
.editor fieldset { padding: 0; border: 0; margin: 20px 0 0; min-width: 0; }
.editor legend { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.checkboxes { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.inline-create { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.inline-create input { flex: 1; min-width: 0; }
.inline-create button { flex-shrink: 0; }
.editor .help { margin-top: 10px; }
.attachment-edit { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; margin: 14px 0; }
.editor-footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.management-group + .management-group { margin-top: 36px; }
.management-group h2 { margin-bottom: 8px; }
.management-group .help { margin-bottom: 18px; }
.group-row { align-items: center; flex-wrap: wrap; }
.group-row form { display: flex; flex: 1; min-width: 0; gap: 8px; }
.group-row form input { min-width: 0; width: 100%; }
.cohort-row { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.cohort-row:last-child { border: 0; }
.cohort-row h2 { overflow-wrap: anywhere; }
.success { padding: 14px 30px; color: var(--green); background: #e7f3eb; }
#message a { margin-left: 8px; color: inherit; }
#confirmation { width: min(540px, calc(100% - 32px)); }
.print-only { display: none; }
@media (max-width: 1050px) {
 .detail-layout { grid-template-columns: 1fr; }
 .trip-row { gap: 18px; padding: 20px; }
 .filters label { flex-basis: 160px; }
}
@media (max-width: 680px) {
 .global-search { padding: 12px 16px; }
 .views { display: flex; overflow-x: auto; gap: 8px; margin-bottom: 14px; padding: 3px; }
 .views .theme { flex-shrink: 0; font-size: .85rem; }
 .library { padding: 26px 16px 50px; }
 .trip-row { grid-template-columns: 1fr; padding: 18px; gap: 12px; }
 .trip-metrics { text-align: left; display: flex; flex-wrap: wrap; gap: 10px 18px; }
 .paper { padding: 20px 16px; }
 .filters label { flex-basis: 100%; }
 .editor .form-grid { grid-template-columns: 1fr; }
 .editor-footer .primary { width: 100%; }
 .cohort-row { flex-wrap: wrap; gap: 10px; }
 .group-row form { flex-basis: 100%; }
 .header-actions { width: 100%; }
 .header-actions #etat { flex: 1; }
 .success { padding: 14px 16px; }
 .facts div { gap: 12px; }
 .facts dt { max-width: 60%; }
}
@media print {
 .app-header, .global-search, .themes, #message, .skip, .filters, .list-options, .heading-actions, .detail-actions, .view-heading > button, .inline-actions, dialog { display: none !important; }
 .workspace { display: block; }
 .library { padding: 0; }
 .detail-layout { display: block; }
 .paper { padding: 12px 0; }
 .trip-row { break-inside: avoid; }
 .trip-metrics { color: black; }
 .print-only { display: block; }
 body { background: white; }
}
