:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #241a2e;
  background: #f5f0e9;
  --paper: #fffefb;
  --ink: #241a2e;
  --muted: #584e62;
  --line: #d8d2dc;
  --soft: #f1edf6;
  --accent: #63406f;
  --accent-bg: #eee8f5;
  --nav: #eee9f6;
  --radius: 12px;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, h3, ul, dl { margin: 0; }
body { min-width: 20rem; }
button, select, input, textarea { font: inherit; }
button, select { cursor: pointer; }
a, button, input, select { -webkit-touch-callout: none; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .18em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid #684c78; outline-offset: -2px; }
:is(.button.primary, .ajout-element, .reglages-switch input:checked):focus-visible { outline-color: #fff; }
h1 { font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.042em; line-height: 1.12; }
h2 { font-size: clamp(1.05rem, 2vw, 1.32rem); line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
small, .muted, .secondary { color: var(--muted); font-size: .875rem; line-height: 1.45; }
select, input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), textarea {
  min-width: 0; min-height: 2.2rem; padding: .48rem .6rem; border: 1px solid #c8bfcd;
  border-radius: .4rem; color: var(--ink); background: white;
}
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--accent); }
textarea { min-height: 5rem; width: 100%; }
button[aria-disabled="true"], button:disabled, select:disabled { cursor: default; opacity: .58; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .45rem .68rem;
  border: 1px solid #c8bfcd; border-radius: .45rem; color: var(--ink); background: var(--paper);
  min-height: 2.18rem; font-size: .875rem; font-weight: 630; line-height: 1.2; text-decoration: none; text-align: center;
}
.button:not(:disabled, [aria-disabled="true"]):hover { background: #f2edf8; border-color: #beb0cf; }
.button.primary { background: #563267; border-color: #563267; color: #fff; }
.button.primary:hover { background: #42254f; border-color: #42254f; }
.button[aria-pressed="true"], .button[aria-current="page"] { color: #463054; background: var(--accent-bg); border-color: #cbb9da; }
.icon-button { width: 2.2rem; flex: 0 0 auto; padding: .2rem; font-size: 1rem; }
.ajout-element {
  --ajout-debut: #79508e;
  --ajout-fin: #512e62;
  --taille-ajout: 2.15rem;
  display: inline-grid; place-items: center; flex: none;
  width: var(--taille-ajout); height: var(--taille-ajout); min-width: 0;
  padding: 0; border: 0; border-radius: .62rem;
  background: linear-gradient(145deg, var(--ajout-debut), var(--ajout-fin));
  color: #fff; box-shadow: 0 .11rem .28rem #37214330;
}
.ajout-element > span { display: grid; place-items: center; width: .82rem; height: .82rem; }
.ajout-element > span::before, .ajout-element > span::after {
  content: ''; grid-area: 1 / 1; border-radius: .035rem; background: currentColor;
}
.ajout-element > span::before { width: 100%; height: .15rem; }
.ajout-element > span::after { width: .15rem; height: 100%; }
.ajout-element-clients { --ajout-debut: #416986; --ajout-fin: #314b73; }
.ajout-element-equipe { --ajout-debut: #407772; --ajout-fin: #285957; }
.ajout-element-repertoire { --ajout-debut: #596bb2; --ajout-fin: #3d4287; }
.ajout-element-materiel { --ajout-debut: #905b3d; --ajout-fin: #693e31; }
.ajout-element-taches { --ajout-debut: #875775; --ajout-fin: #5d365a; }
.ajout-element-gestion { --ajout-debut: #5d6490; --ajout-fin: #42426c; }
button.ajout-element:is(:hover, :focus-visible) { filter: brightness(1.13); }
@media (prefers-reduced-motion: no-preference) {
  .ajout-element > span { animation: respirer-ajout 4.6s ease-in-out infinite; }
  @keyframes respirer-ajout { 0%, 62%, 100% { transform: scale(1); } 78% { transform: scale(1.14); } }
}
label.field { display: grid; gap: .35rem; font-weight: 610; font-size: .9rem; }
label.field small { font-weight: 450; }
fieldset { min-width: 0; border: 1px solid var(--line); padding: .75rem; border-radius: .5rem; }
legend { font-weight: 640; }
.icone { display: inline-flex; justify-content: center; align-items: center; width: 1.45rem; flex: 0 0 1.45rem; font-size: 1.18rem; font-weight: 500; line-height: 1; }
.icone-illustration { width: 1.52rem; height: 1.52rem; flex-basis: 1.52rem; background: url('pictogrammes-maelo.png?v=6')
  var(--picto-x) var(--picto-y) / 450% 450% no-repeat; }

.layout { display: grid; grid-template-columns: 12.25rem minmax(0,1fr); min-height: 100vh; }
.layout.is-collapsed { grid-template-columns: 3.75rem minmax(0,1fr); }
.sidebar { position: sticky; top: 0; z-index: 5; height: 100dvh; background: var(--nav); color: var(--ink); border-right: 1px solid #d5c9e2; }
.sidebar-interieur { height: 100%; overflow-y: auto; overflow-x: hidden; padding: .58rem .52rem .9rem; scrollbar-width: thin; }
.sidebar-toggle {
  position: absolute; top: 1.02rem; right: -.67rem; display: grid; place-items: center;
  width: 1.32rem; height: 1.98rem; border: 1px solid #c7b5d8; border-radius: .54rem;
  padding: 0; color: #63406f; background: #f8f3fb; box-shadow: 0 1px 5px #34234b16;
}
.sidebar-toggle:hover { background: #e6daee; }
.sidebar-chevron { width: .65rem; height: .78rem; background: currentColor;
  clip-path: polygon(76% 7%, 90% 19%, 33% 50%, 90% 81%, 76% 93%, 10% 50%); }
.brand { display: flex; align-items: center; gap: .72rem; color: inherit; padding: .55rem .5rem; text-decoration: none; font-weight: 740; font-size: 1.17rem; letter-spacing: -.033em; white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 2rem; height: 2rem; border: 1px solid #b69bc8; border-radius: .55rem; background: #63406f; flex: 0 0 auto; }
.brand-mark i { width: 3px; height: 10px; border-radius: 2px; background: #f4e3c4; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 7px; }
.sidebar .brand:hover, .sidebar .brand[aria-current="page"] { color: #51315f; background: #e7dcf3; border-radius: .5rem; }
.nav-group { padding: .45rem 0 .15rem; }
.nav-group + .nav-group { margin-top: .4rem; border-top: 1px solid #d9ccdf; }
.nav-group-name { margin: .25rem .55rem .3rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 620; font-size: .72rem; color: #665272; }
.nav-link {
  display: flex; align-items: center; gap: .56rem; width: 100%; min-height: 2.14rem;
  padding: .35rem .58rem; border: 1px solid transparent; border-radius: .46rem; font-size: .875rem;
  color: var(--ink); background: transparent; text-decoration: none; text-align: left; white-space: nowrap;
}
.nav-link + .nav-link { margin-top: .06rem; }
.nav-link:hover { background: #e5daef; }
.nav-link[aria-current="page"] { color: #40274e; background: #e2d6f1; font-weight: 680; border-color: #cbb5df; }
.nav-link:focus-visible, .brand:focus-visible { outline-color: #744887; outline-offset: -2px; }
.is-collapsed .brand-name, .is-collapsed .nav-label, .is-collapsed .nav-group-name { display: none; }
.is-collapsed .nav-link, .is-collapsed .brand { justify-content: center; padding-inline: 0; }
.is-collapsed .sidebar-chevron { transform: scaleX(-1); }
.desk { min-width: 0; }
/* Navigation permanente, recherche et session */
.topbar {
  position: sticky; top: 0; z-index: 4; display: grid; align-items: center;
  grid-template-columns: minmax(0,1fr) minmax(11rem,min(48%,43rem)) minmax(max-content,1fr);
  gap: .65rem; min-height: 3.65rem; padding: .45rem clamp(1.05rem,2vw,1.5rem); background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar-section, .topbar-titre { min-width: 0; display: flex; align-items: center; gap: .42rem; flex-wrap: wrap; }
.topbar-titre { flex: 1 1 9rem; }
.topbar-section h1 { font-size: 1.03rem; font-weight: 720; letter-spacing: -.025em; }
.topbar-section .demo-label { font-size: .73rem; margin-right: .25rem; }
.page-navigation, .commandes-historique { display: inline-flex; align-items: center; gap: .22rem; flex: none; }
.page-navigation .icon-button { min-height: 1.85rem; width: 1.85rem; padding: 0; color: var(--accent); font-size: 1.23rem; }
.page-navigation .icon-button[aria-disabled="true"] { opacity: .43; }
#aide-section:empty { display: none; }
.global-search { position: relative; display: flex; align-items: center; min-width: 0; }
.global-search > .icone { position: absolute; left: .65rem; pointer-events: none; color: #6a5a78; font-size: 1.4rem; }
#chercher-partout { width: 100%; padding-left: 2.25rem; background: #f7f3fa; border-color: #dfd4e6; }
.search-results { position: absolute; inset: calc(100% + .43rem) 0 auto; border: 1px solid var(--line); border-radius: .6rem; overflow: auto; max-height: 23rem; background: #fff; box-shadow: 0 7px 25px #eee9f629; }
.search-results a { display: flex; align-items: center; gap: .55rem; padding: .55rem .72rem; text-decoration: none; color: var(--ink); }
.search-results a + a { border-top: 1px solid var(--line); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--accent-bg); }
.search-results a small { display: block; }
.search-results .icone { color: var(--accent); }
.search-empty { color: var(--muted); padding: .75rem; }
.top-actions { display: flex; align-items: center; justify-self: end; gap: .42rem; }
.demo-label { color: #754d12; font-size: .78rem; white-space: nowrap; }
.avatar { display: grid; place-items: center; border-radius: 50%; width: 2rem; height: 2rem; flex: 0 0 auto; background: #ece3f4; color: #5e3d6c; font-size: .72rem; font-weight: 700; }
.session { display: flex; min-width: 0; align-items: center; gap: .45rem; padding-left: .25rem; }
.session-infos { display: grid; line-height: 1.22; white-space: nowrap; }
.session-infos strong { font-size: .84rem; }
.session-infos small { font-size: .72rem; }
.annotation-toggle { white-space: nowrap; }

.content { width: 100%; max-width: 108rem; margin-inline: auto; padding: clamp(.85rem, 1.8vw, 1.65rem); }
.view { min-width: 0; }
.view > :first-child { margin-top: 0; }
.page-title, .section-title { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.page-title { margin: 0 0 .58rem; }
.page-title > div:first-child, .title-with-tip { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.section-title { margin-bottom: .8rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(.85rem, 1.45vw, 1.25rem); min-width: 0; overflow-wrap: anywhere; }
.panel + .panel { margin-top: 0; }
.empty { padding: 1.25rem; color: var(--muted); }
.empty p { margin: .6rem 0; }
.toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-block: .7rem; }
/* Tableaux : défilement, commandes d’en-tête et édition */
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: .9rem; }
.data-table th, .data-table td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table :is(th, td, a) { overflow-wrap: break-word; }
.data-table th { background: #f3eff8; color: #4f3d64; font-size: .82rem; font-weight: 665; }
.data-table td { min-height: 2.65rem; }
.data-table td:first-child, .data-table th:first-child { padding-left: .6rem; }
.data-table tbody tr:last-child td { border-bottom-color: transparent; }
.data-table tbody tr[data-row-href] { cursor: pointer; }
.data-table tbody tr[data-row-href]:hover, .data-table tbody tr[data-row-href]:focus-within { background-color: #f6f1fa; }
.data-table tbody tr[aria-selected="true"] { background-color: #ede3f7; }
.data-table tbody tr:focus-visible { outline-offset: -2px; }
.plage-empilee { position: relative; display: inline-grid; gap: .12rem; max-width: 100%; vertical-align: middle; text-align: left;
  line-height: 1.22; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table th button { background: transparent; border: 0; padding: .1rem; color: #57356b; text-decoration: underline dotted; font-weight: 690; text-underline-offset: .22em; }
.data-table th .column-sort, .column-sort, .column-filter summary {
  display: inline-flex; align-items: center; gap: .28rem; min-height: 1.7rem;
  font: inherit; font-weight: 680; color: var(--ink); background: transparent; border: 1px solid transparent;
  border-radius: .33rem; padding: .18rem .3rem; text-decoration: none; line-height: 1.18; cursor: pointer;
}
.column-sort:is(:hover, :focus-visible), .column-filter summary:is(:hover, :focus-visible), .column-filter[open] summary {
  border-color: #cab8d8; background: #e8def2;
}
.column-direction { color: #695778; font-size: .82em; }
.column-sort[data-sort-icon] .column-label { display: none; }
.column-view {
  display: inline-flex; align-items: center; min-height: 1.65rem; white-space: nowrap; text-decoration: none;
  padding: .18rem .45rem; border: 1px solid #c8b3d6; border-radius: .36rem;
  background: #f3ebf8; color: #563367; line-height: 1.15; font-weight: 690;
}
.column-view:is(:hover, :focus-visible, [aria-current]) { background: #e4d5ef; border-color: #a581bb; }
.column-filter { display: inline-block; vertical-align: middle; }
.column-filter summary { list-style: none; white-space: nowrap; }
.column-filter summary::-webkit-details-marker { display: none; }
.column-filter-options {
  position: fixed; inset: auto; z-index: 8; display: grid; gap: .14rem; min-width: 10.5rem;
  max-width: min(19rem, calc(100vw - 1rem)); max-height: min(18rem, 55vh); overflow: auto;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .55rem;
  box-shadow: 0 .45rem 1.25rem #37214327; padding: .38rem;
}
.column-filter-options label { display: flex; align-items: center; gap: .38rem; padding: .24rem .32rem; font-weight: 500; }
.column-filter-options button:not(:disabled) { font-weight: 620; text-decoration: none; padding: .24rem .34rem; text-align: left; }
.column-filter-options :is(label, button):hover { background: var(--accent-bg); border-radius: .28rem; }
.entete-selection.button {
  display: inline-grid; place-items: center;
  width: 1.65rem; min-width: 1.65rem; min-height: 1.65rem; padding: 0;
  border: 1px solid transparent; border-radius: .4rem; background: transparent; text-decoration: none;
}
.entete-selection[aria-disabled="true"] { opacity: .43; cursor: default; }
.picto-entete-tableau {
  position: relative; display: block; overflow: hidden;
  width: 1.1rem; height: .9rem; border: .09rem solid #644273; border-radius: .21rem;
  background: linear-gradient(to bottom, transparent 63%, #8a6599 63% 73%, transparent 73%), #fffafc;
}
.picto-entete-tableau::before {
  content: ''; position: absolute; inset: 0 0 auto; height: .22rem;
  border-bottom: 1px solid #644273; background: #d7c0e8;
}
.picto-entete-tableau::after {
  content: ''; position: absolute; inset: .22rem auto 0 0; width: .3rem;
  border-right: 1px solid #644273; background: #f2c682;
}
.cell-value {
  display: inline-block; width: auto; max-width: 100%; padding: .12rem .22rem;
  color: inherit; background: transparent; border: 1px solid transparent; border-radius: .32rem;
  font: inherit; text-align: left; vertical-align: middle; line-height: inherit; cursor: pointer;
}
.valeur-vide { color: #8e829b; font-weight: 400; }
.titre-fiche {
  display: inline-block; max-width: 100%; padding: .12rem .28rem;
  border-radius: .35rem; color: var(--ink); font-weight: 690; text-decoration: none;
}
.titre-fiche:is(:hover, :focus-visible) { background: #e9dfef; color: var(--ink); }
.picto-action {
  flex: none; display: inline-block; width: 1.55rem; height: 1.55rem; vertical-align: middle;
  background: url('pictogrammes-actions.png?v=6') no-repeat; background-size: 420% 420%;
}
.carte-liee {
  display: flex; align-items: flex-start; gap: .45rem; min-width: 0; width: 100%; padding: .38rem .55rem;
  color: var(--ink); text-align: left; text-decoration: none; background: #fffafc;
  border: 1px solid var(--line); border-radius: .55rem; font: inherit; line-height: 1.28;
}
:is(a, button).carte-liee { cursor: pointer; }
:is(a, button).carte-liee:is(:hover, :focus-visible) { border-color: #b7a0c3; background: #f3ecf7; }
.carte-liee-texte { display: grid; gap: .08rem; min-width: 0; overflow-wrap: anywhere; }
.carte-liee-texte strong { font-weight: 690; }
.carte-liee-texte small { font-size: .79rem; line-height: 1.27; }
.carte-liee-meta { display: flex; flex-wrap: wrap; column-gap: .42rem; }
.carte-liee-meta span + span::before { content: '·'; margin-right: .42rem; }
.cell-value:is(:hover,:focus-visible) { border-color: #dacbe1; background: #f0e9f4; }
.data-table td > .cell-value:only-child:not(.cell-value-vide) {
  /* Les bords de la commande gagnent la place rendue par ses marges. */
  max-width: calc(100% + .44rem);
  margin: -.12rem -.22rem;
}
.data-table td:has(> .cell-value-vide:only-child) { position: relative; }
.data-table td > .cell-value-vide:only-child::before { content: ''; position: absolute; inset: 0; }
.data-table td :is(.cell-value-vide, .saisie-cellule-vide) {
  --hauteur-cellule-vide: 1.75rem;
  display: inline-flex; width: 100%; min-width: 3.5rem; min-height: var(--hauteur-cellule-vide); margin: 0;
}
.data-table td .cell-value-vide:is(:hover, :focus-visible, :active),
.data-table td:hover > .cell-value-vide:only-child { border-color: #cdbbd6; background: #e9dfef; }
.saisie-en-place { display: inline-flex; align-items: center; vertical-align: middle; flex-wrap: wrap; gap: .22rem;
  width: min(100%, 21rem); min-width: min(100%, 6.3rem); color: var(--ink); }
.saisie-en-place :is(input, select, textarea) { width: min(12rem, 100%); flex: 1 1 6rem; min-width: 0; min-height: 1.78rem;
  max-width: 100%; padding: .2rem .38rem; font-size: .875rem; border-color: #967bab; background: white; }
.saisie-en-place textarea { min-height: 4.5rem; resize: vertical; }
.saisie-en-place [data-valider-saisie] { width: 1.65rem; min-height: 1.72rem; color: var(--accent); }
.saisie-erreur { flex: 1 0 100%; color: #962d45; font-size: .75rem; }
.data-table td .saisie-cellule-vide > :is(input, select, textarea) {
  flex: 1 1 0; width: 0; height: var(--hauteur-cellule-vide); min-height: var(--hauteur-cellule-vide);
}
.data-table td:has(.saisie-en-place:not(.saisie-cellule-vide)) { min-width: 8.5rem; }
.tag-stack { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .28rem; }
.compact-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; min-width: 0; }
.event-search { display: flex; position: relative; flex: 1 1 16rem; min-width: min(13rem, 100%); max-width: 25rem; }
.entity-search-compact { flex: 0 1 13rem; min-width: min(10rem, 100%); max-width: 13rem; }
.event-search input { width: 100%; padding-right: 2rem; }
.event-search input::-webkit-search-cancel-button { display: none; }
.event-search [data-event-clear] {
  position: absolute; inset: .22rem .25rem auto auto; width: 1.7rem; min-height: 1.7rem; min-width: 1.7rem;
  padding: 0; border-color: transparent; color: var(--muted); background: transparent;
}
.event-search-results {
  position: absolute; z-index: 7; inset: calc(100% + .26rem) 0 auto; max-height: 19rem; overflow: auto;
  border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); box-shadow: 0 .45rem 1.25rem #37214327;
}
.event-search-results button { display: grid; gap: .15rem; width: 100%; padding: .5rem .65rem;
  text-align: left; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.event-search-results button:is(:hover, [aria-selected="true"]) { background: var(--accent-bg); }
:is(.search-results, .event-search-results) [aria-selected="true"] { box-shadow: inset 3px 0 var(--accent); }
.event-search-results button:last-child { border-bottom: 0; }
.saisie-avec-suggestions { position: relative; min-width: 0; }
body:has(input[aria-autocomplete="list"][aria-expanded="true"][aria-describedby~="info-bulle"]) #info-bulle { visibility: hidden; }
.event-search-results p { padding: .55rem .65rem; font-size: .875rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; min-height: 1.52rem; padding: .16rem .42rem; background: #edf1f3; border-radius: .35rem; color: #3b525a; font-size: .78rem; font-weight: 650; line-height: 1.22; }
.pill-vert { color: #1d5e43; background: #e1f3e8; }
.pill-bleu { color: #245476; background: #e4f1fb; }
.pill-orange { color: #79500a; background: #fcf0d7; }
.pill-rouge { color: #8c323a; background: #f8e6e8; }
.pill-violet { color: #5a4886; background: #efeaf9; }
.annotation { display: inline-grid; place-items: center; border: 1px solid #bca4cc; border-radius: 50%; padding: 0;
  width: 1.5rem; height: 1.5rem; flex: 0 0 auto; color: #654274; background: #f3eaf9; font-weight: 720; font-size: .875rem; }
body:not(.show-annotations) .annotation { display: none; }
.tooltip { position: fixed; z-index: 16; width: max-content; max-width: min(20rem, calc(100vw - 1rem)); overflow-wrap: anywhere; pointer-events: none;
  background: #372143; color: white; box-shadow: 0 4px 12px #37214340; border-radius: .4rem;
  padding: .5rem .65rem; font-size: .84rem; line-height: 1.42; }
.notification { position: fixed; z-index: 12; left: 50%; bottom: 1.3rem; transform: translateX(-50%); width: max-content;
  max-width: calc(100% - 2rem); border-radius: .55rem; padding: .58rem .85rem; background: #543461; color: white;
  font-size: .9rem; box-shadow: 0 3px 14px #eee9f640; }
dialog { width: min(35rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
dialog::backdrop { background: #30233e80; }
.dialog-titre, .dialog-actions { display: flex; align-items: center; gap: .55rem; }
.dialog-titre { justify-content: space-between; }
.dialog-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: .9rem; }
.dialog-corps { display: grid; gap: .65rem; margin-top: .85rem; overflow-wrap: anywhere; }
.dialog-corps p { line-height: 1.45; }
.status-error { padding: .55rem; color: #85323b; background: #f9e9eb; border-radius: .35rem; font-size: .875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.login-layout {
  display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  width: min(52rem, calc(100% - 2rem)); margin: clamp(1rem, 8vh, 6rem) auto;
  border: 1px solid #d6c9d9; border-radius: 1rem; overflow: hidden; background: var(--paper);
  box-shadow: 0 .85rem 2.5rem #38274412;
}
.login-brand {
  display: grid; place-items: center; min-width: 0; padding: 1.5rem;
  color: #fff9f0; background: radial-gradient(ellipse at 12% 9%, #785871 0%, transparent 62%), linear-gradient(150deg, #5f446b, #392641);
}
.login-brand .brand { padding: 0; gap: .85rem; font-size: clamp(1.35rem, 2.7vw, 1.95rem); }
.login-brand .brand-mark { width: 2.65rem; height: 2.65rem; border-color: #bca3c7; background: #53395f; }
.login-identite { display: grid; justify-items: center; gap: .45rem; }
.login-identite > small { color: #f0dfc7; }
.login-card { display: grid; align-content: center; gap: .85rem; min-width: 0; padding: clamp(1.1rem, 3.7vw, 2.7rem); }
.login-titre { display: flex; align-items: center; gap: .46rem; }
.login-titre h1 { font-size: clamp(1.55rem, 3vw, 2rem); }
.login-form { display: grid; gap: .75rem; min-width: 0; }
.login-form input, .login-essai select { width: 100%; }
.login-form input { min-height: 2.75rem; background: #fff; }
.login-form input[readonly] { color: var(--muted); background: #f3eff6; }
.login-champ-secret { display: grid; gap: .35rem; }
.login-libelle-secret { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .06rem .5rem; }
.login-libelle-secret label { font-size: .9rem; font-weight: 610; }
.login-libelle-secret > a { font-size: .81rem; }
.login-secret { position: relative; }
.login-secret > input { padding-inline-end: 3rem; }
.login-oeil {
  position: absolute; inset: .15rem .15rem .15rem auto; display: grid; place-items: center; width: 2.5rem;
  padding: 0; border: 0; border-radius: .3rem; color: var(--accent); background: transparent;
}
.login-oeil:hover { background: var(--accent-bg); }
.login-oeil span { position: relative; display: grid; place-items: center; width: 1.15rem; height: .75rem;
  border: 1.5px solid currentColor; border-radius: 62% 62%; }
.login-oeil span::before { content: ''; width: .32rem; height: .32rem; border-radius: 50%; background: currentColor; }
.login-oeil[aria-pressed="true"] span::after { content: ''; position: absolute; width: 1.34rem; height: 1.5px;
  background: currentColor; box-shadow: 0 1px 0 #fff; transform: rotate(-42deg); }
.login-primaire { width: 100%; min-height: 2.75rem; }
.login-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .8rem; }
.login-lien { display: inline-block; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
button.login-lien { background: none; border: 0; padding: 0; text-align: left; }
.login-lien:hover { color: #41224f; }
.login-actions > .login-lien { font-size: .9rem; }
.login-aide { display: grid; justify-items: start; gap: .52rem; border-top: 1px solid var(--line); padding-top: .77rem;
  color: var(--muted); font-size: .82rem; line-height: 1.5; }
.login-recu { display: grid; gap: .3rem; padding: .58rem .7rem; border-radius: .45rem; color: #275948; background: #e8f3ec; font-size: .86rem; }
.login-essai { color: var(--muted); font-size: .82rem; }
.login-essai summary { width: max-content; max-width: 100%; cursor: pointer; }
.login-essai label { margin-top: .4rem; }

.home-summary { display: flex; gap: .7rem 1.2rem; flex-wrap: wrap; padding: .65rem 1rem; margin-bottom: .8rem; }
.home-summary span { display: inline-flex; gap: .4rem; align-items: baseline; color: var(--muted); font-size: .875rem; }
.home-summary strong { color: var(--ink); font-size: 1.18rem; letter-spacing: -.03em; }
.home-alert { margin-bottom: .8rem; padding: .72rem .9rem; border: 1px solid #e5c779; border-radius: .6rem; background: #fff3d4; color: #523a10;
  display: flex; align-items: center; justify-content: space-between; gap: .45rem .85rem; flex-wrap: wrap; }
.home-alert .alert-message { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr); gap: .9rem; align-items: start; }
.home-layout > div { display: grid; gap: .9rem; min-width: 0; }
.home-layout .panel .section-title { margin-bottom: .65rem; }
.focus-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 10rem),1fr)); gap: .55rem; list-style: none; padding: 0; }
.focus-cards li { border: 1px solid #dbcee8; border-radius: .5rem; padding: .58rem .65rem; background: #f6f0fb; }
.focus-cards a { font-weight: 665; line-height: 1.3; }
.focus-cards div { margin-top: .34rem; display: flex; justify-content: space-between; gap: .3rem; flex-wrap: wrap; }
.activity-list { padding: 0; list-style: none; }
.activity-list li { padding: .6rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0,1fr); gap: .5rem; align-items: start; }
.activity-list li:last-child { padding-bottom: 0; }
.activity-list a { font-weight: 630; }
.activity-list small { display: block; }
.activity-dot { width: .56rem; height: .56rem; border-radius: 50%; background: #8875ad; margin-top: .39rem; }
.activity-highlight .activity-dot { background: #a96d18; }
.activity-highlight a { color: #58447e; }
@media (max-width: 1230px) {
  .session-infos small { display: none; }
  .topbar-section .demo-label { font-size: .69rem; }
}
@media (max-width: 1015px) {
  .session-infos, .topbar-section .demo-label { display: none; }
  .home-layout { grid-template-columns: minmax(0,1fr); }
  .home-journaux { grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); }
  .topbar { grid-template-columns: minmax(0,1fr) auto; gap: .45rem; }
  .global-search { grid-column: 1 / -1; grid-row: 2; }
  .top-actions { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  .layout, .layout.is-collapsed { grid-template-columns: 3.2rem minmax(0,1fr); }
  .sidebar-interieur { padding-inline: .33rem; }
  .menu-mobile-ouvert .sidebar { width: 12.25rem; z-index: 6; box-shadow: .6rem 0 1.4rem #3925493b; }
  .content { padding: .7rem; }
  .topbar { padding: .5rem .65rem .5rem .85rem; }
  .topbar-section { gap: .35rem; }
  .login-layout { grid-template-columns: minmax(0, 1fr); margin: 1rem auto; }
  .login-brand { padding: .82rem 1.1rem; place-items: center start; }
  .login-brand .brand-mark { width: 2.2rem; height: 2.2rem; }
  .login-identite { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
  .login-card { gap: .76rem; }
}
@media (max-width: 440px) {
  .top-actions .session { padding-left: 0; }
  .top-actions .avatar { width: 1.65rem; height: 1.65rem; font-size: .64rem; }
  .top-actions { gap: .24rem; }
  .top-actions .icon-button { min-height: 1.85rem; width: 1.85rem; }
  .topbar-section h1 { font-size: .95rem; }
}
@media (max-width: 420px) {
  .topbar { padding-inline: .5rem; }
  .topbar-section { display: contents; }
  .page-navigation { grid-column: 1; grid-row: 1; }
  .topbar-titre { grid-column: 1 / -1; grid-row: 2; }
  .global-search { grid-row: 3; }
  .topbar :is(.page-navigation, .top-actions) .icon-button { min-height: 1.65rem; width: 1.65rem; padding: 0; }
}
@media (max-width: 380px) {
  .global-search > .icone { left: .28rem; width: 1.05rem; }
  #chercher-partout { padding-inline: 1.55rem .35rem; }
  #chercher-partout::placeholder { font-size: .9375rem; }
}
@media (max-height: 780px) and (min-width: 641px) {
  .sidebar .nav-link { min-height: 1.83rem; padding-block: .2rem; }
  .sidebar .nav-group { padding-block: .32rem .1rem; }
  .sidebar .nav-group + .nav-group { margin-top: .24rem; }
}

/* Simulateur */
.simul-layout {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start; gap: .8rem; max-width: 75rem;
}
.simul-form, .simul-synthese { display: grid; gap: .7rem; min-width: 0; }
.simul-ton-transport {
  --simul-fond: #fff3dc; --simul-bord: #e2c48f; --simul-liseret: #b67a29; --simul-texte: #58370e;
}
.simul-ton-marge {
  --simul-fond: #f3ebfa; --simul-bord: #dcc8e9; --simul-liseret: #9070ad; --simul-texte: #53336c;
}
.simul-form .panel, .simul-resultat {
  display: grid; gap: .6rem; min-width: 0; border: 1px solid var(--simul-bord);
  border-inline-start: .22rem solid var(--simul-liseret); background: var(--simul-fond);
}
.simul-form .section-title { margin: 0; }
.simul-form h2, .simul-total-fort { color: var(--simul-texte); }
.simul-equipe { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .8rem; }
.simul-equipe .entity-search { flex: 1 1 16rem; }
.simul-destination { display: grid; gap: .35rem; min-width: 0; }
.simul-destination input { width: 100%; }
.simul-cocher { display: flex; gap: .35rem; align-items: center; font-weight: 630; }
.simul-personnes:empty, [data-simul-distances]:empty { display: none; }
.simul-offre-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .55rem .85rem; }
.simul-groupe { display: grid; gap: .35rem; min-width: 0; padding: 0; margin: 0; border: 0; }
.simul-groupe legend { margin-bottom: .28rem; font-size: .88rem; font-weight: 630; }
.simul-ligne { display: flex; align-items: center; gap: .35rem .8rem; justify-content: space-between; }
.simul-ligne label { min-width: 0; overflow-wrap: anywhere; }
.simul-ligne input { width: 6rem; }
.simul-unite { display: flex; align-items: center; gap: .32rem; }
.simul-unite input { min-width: 0; }
.simul-adresse-manquante { display: block; color: #854919; }
.simul-reponse > h2 { margin-bottom: .65rem; }
.simul-resultat { padding: .62rem .7rem; border-radius: .52rem; }
.simul-total, .simul-trajets > div {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: .6rem; align-items: baseline;
}
.simul-total { padding-block: .32rem; }
.simul-total + .simul-total { border-top: 1px solid var(--simul-bord); }
.simul-total dd { margin: 0; text-align: right; font-weight: 660; font-variant-numeric: tabular-nums; }
.simul-total-fort { font-weight: 690; }
.simul-total-fort dd { font-size: 1.16rem; }
.simul-total-fort .pill { display: table; margin: .28rem 0 0 auto; font-size: .7rem; }
.simul-attente, .simul-resultat details { color: var(--muted); font-size: .83rem; }
.simul-trajets { display: grid; gap: .28rem; margin-top: .35rem; }
.simul-trajets dd { margin: 0; text-align: right; }
@media (max-width: 930px) { .simul-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .simul-ligne input { width: 5.6rem; } }

.nav-picto {
  position: relative; z-index: 0; display: grid; flex: none; place-items: center;
  width: 1.65rem; height: 1.65rem; border-radius: .54rem;
}
.icone-indispo::after {
  content: '−'; position: absolute; right: -.08rem; bottom: -.01rem; display: grid; place-items: center;
  width: .75rem; height: .75rem; border: 1px solid #fff9f0; border-radius: 50%;
  background: #e4d5ef; color: #543b72; font: 800 .66rem/1 system-ui;
}
.nav-link.has-notification { font-weight: 750; }
.nav-link .notification-pastille { margin-inline-start: auto; }
.notification-pastille {
  position: relative; z-index: 1; display: inline-grid; flex: none; place-items: center;
  min-width: 1.25rem; min-height: 1.25rem; padding: 0 .24rem; border-radius: 2rem;
  color: #fff; background: #865132; border: 1px solid #fff9f0;
  box-shadow: 0 0 0 .06rem #945b3954; font-size: .69rem; font-weight: 760; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.notification-pastille[hidden] { display: none; }
.has-notification > .nav-picto::before, .messagerie-bouton.has-notification::before {
  content: ''; pointer-events: none; position: absolute; z-index: -1; inset: -.13rem; border-radius: inherit;
  background: linear-gradient(140deg, #f8d896 6%, #eeb5ab 48%, #c5b4ed 100%);
  box-shadow: 0 0 0 .12rem #ab783942; animation: souffle-notification 2.45s ease-in-out infinite;
}
@keyframes souffle-notification {
  0%, 100% { opacity: .64; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.11); }
}
.is-collapsed .nav-link { position: relative; }
.is-collapsed .nav-link .notification-pastille {
  position: absolute; inset-block-start: -.16rem; inset-inline-end: -.02rem;
  min-width: 1.04rem; min-height: 1.04rem; padding-inline: .16rem; font-size: .62rem;
}
/* Messages et notifications du bandeau */
.messagerie-bouton {
  position: relative; z-index: 0; overflow: visible; isolation: isolate;
  color: #463453; background: #f5eef9;
}
.messagerie-bouton.has-notification { border-color: #dac2d9; }
.messagerie-bouton.has-notification::before { inset: 0; }
.messagerie-bouton .notification-pastille {
  position: absolute; inset-block-start: -.42rem; inset-inline-end: -.37rem;
  min-width: 1.06rem; min-height: 1.06rem; font-size: .63rem;
}
.messagerie-volet {
  position: fixed; inset: calc(var(--hauteur-bandeau, 3.65rem) + .4rem) clamp(.55rem, 1.7vw, 1.45rem) auto auto;
  width: min(24rem, calc(100% - 1.1rem));
  max-height: min(32rem, calc(100dvh - var(--hauteur-bandeau, 3.65rem) - 1rem));
  margin: 0; padding: 0; overflow: visible;
  border: 1px solid var(--line); border-radius: .85rem;
  background: var(--paper); color: var(--ink); box-shadow: 0 .7rem 2rem #3b264633;
}
.messagerie-volet:popover-open { display: flex; flex-direction: column; }
.messagerie-salons {
  display: grid; flex: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: .45rem; margin: 0; padding: .55rem; list-style: none;
}
.messagerie-salons + .messagerie-liste { border-top: 1px solid var(--line); }
.messagerie-liste {
  min-height: 0; padding: .55rem; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.messagerie-liste ul { display: grid; gap: .3rem; padding: 0; margin: 0; list-style: none; }
.messagerie-liste:focus-visible { outline-offset: -.15rem; }
.messagerie-entree {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .55rem;
  width: 100%; padding: .52rem .6rem; border: 1px solid var(--line); border-radius: .6rem;
  background: var(--paper); color: var(--ink); text-align: start;
}
.messagerie-salons .messagerie-entree {
  display: flex; justify-content: center; min-height: 2.45rem; padding: .32rem .4rem;
}
.messagerie-entree.has-notification { border-color: #dbc0cf; background: #f7eef7; }
.messagerie-entree:is(:hover, :focus-visible) { background: var(--accent-bg); border-color: #aa86bc; }
.messagerie-entree-picto {
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .55rem; background: #ede3f2;
}
.messagerie-entree-texte { display: grid; gap: .13rem; min-width: 0; }
.messagerie-entree-texte strong, .messagerie-entree-texte small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.messagerie-entree-texte small, .messagerie-entree time, .messagerie-vide {
  color: var(--muted); font-size: .78rem;
}
.messagerie-entree time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.messagerie-retour { justify-self: start; font-size: .85rem; min-height: 1.95rem; }
@media (max-width: 440px) {
  .messagerie-entree { gap: .35rem; padding-inline: .43rem; }
  .messagerie-entree-picto { width: 1.53rem; height: 1.53rem; }
  .messagerie-entree time { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  .has-notification > .nav-picto::before, .messagerie-bouton.has-notification::before { animation: none; }
}

.tooltip[data-annotation] { background: #60406f; }
