@font-face {
  font-family: Fraunces;
  src: url('/fraunces-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --fond: #f9f5ee;
  --papier: #fffdfa;
  --encre: #143933;
  --second: #49655e;
  --sarcelle: #0c4f4c;
  --vert: #1c8a83;
  --pale: #e7f1eb;
  --orange: #f29a4a;
  --trait: #dedfd4;
  --danger: #8a382c;
  --rayon: 20px;
  font: 16px/1.5 system-ui,sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  min-width: 0;
}
h1,h2,h3,p {
  margin: 0;
}
h1,h2 {
  font-family: Fraunces,Georgia,serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
}
h1 {
  font-size: clamp(2rem,5vw,3.45rem);
}
h2 {
  font-size: clamp(1.4rem,2vw,1.85rem);
}
h3 {
  font-size: 1rem;
  line-height: 1.35;
}
a {
  color: var(--sarcelle);
  text-underline-offset: .2em;
}
button,input,textarea,select {
  font: inherit;
}
button,select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: .55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #a65928;
  outline-offset: 3px;
}
[hidden] {
  display: none!important;
}
.charge {
  padding: 2rem;
}
.icone {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}
.marque {
  font: 800 1.65rem/1 Fraunces,Georgia,serif;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.identite {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.boitier {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 14.25rem minmax(0,1fr);
}
.rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  height: 100dvh;
  padding: 1.75rem 1.05rem 1rem;
  background: #103f3c;
  color: #fff9ee;
  overflow: auto;
}
.rail .identite {
  margin-left: .38rem;
}
.espace {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem;
  background: #ffffff0d;
  border: 1px solid #ffffff25;
  border-radius: 13px;
  min-width: 0;
}
.espace strong,.espace small {
  display: block;
  overflow-wrap: anywhere;
}
.espace strong {
  font-size: .87rem;
}
.espace small {
  font-size: .8rem;
  color: #e0eee7;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--sarcelle);
  font-size: .8rem;
  font-weight: 800;
  object-fit: cover;
}
.espace .avatar {
  border-radius: 10px;
  background: #ddede5;
}
.navigation {
  display: grid;
  gap: .25rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: .68rem;
  min-height: 46px;
  text-align: left;
  padding: .5rem .75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-weight: 650;
  font-size: .94rem;
}
.rail .nav:hover,.rail .nav[aria-current=page] {
  background: #ffffff19;
}
.rail .nav[aria-current=page] .icone {
  color: #ffc38c;
}
.sortie {
  margin-top: auto;
}
.rail .session {
  width: 100%;
  margin-top: .4rem;
}
.rail .session .avatar {
  width: 34px;
  height: 34px;
}
.session-texte {
  display: grid;
  min-width: 0;
}
.session-texte small {
  color: #e0eee7;
  font-weight: 500;
  font-size: .8rem;
  overflow-wrap: anywhere;
}
.session-mobile {
  display: none;
  padding: 0;
  border: 2px solid var(--pale);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.session-mobile .avatar {
  width: 40px;
  height: 40px;
}
.avatar.grand {
  width: 72px;
  height: 72px;
  font-size: 1.4rem;
}
.profil-entete {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.profil-entete small {
  display: block;
  opacity: .75;
  overflow-wrap: anywhere;
}
a.choix-discussion {
  text-decoration: none;
  color: inherit;
}
.rail .profil-nom {
  margin: .3rem .7rem .25rem;
  color: #e0eee7;
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.trame {
  min-width: 0;
}
.bandeau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  min-height: 75px;
  padding: .55rem clamp(1rem,3.4vw,3.1rem);
  border-bottom: 1px solid var(--trait);
  background: #fffdf8;
}
.bandeau .identite,.navigation-mobile {
  display: none;
}
.emplacement {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  min-width: 0;
}
.emplacement select {
  width: auto;
  max-width: 100%;
  background: #fffdf8;
  margin: 0;
}
.etiquette {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: .18rem .55rem;
  border: 1px solid #e5d7bd;
  background: #fbebd2;
  color: #70441c;
  border-radius: 20px;
  font-size: .79rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.etiquette.vert {
  color: #155241;
  background: #e8f1e8;
  border-color: #d8e8db;
}
.etiquette.rouge {
  color: #8a2d1c;
  background: #f8e1dc;
  border-color: #efc9bf;
}
.bloc-liste.conge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.rangee-etiquettes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: .25rem 0;
}
.a-voir {
  margin-bottom: 1rem;
  border-color: #f2c79a;
  background: #fff6ea;
}
.a-voir p {
  margin: .3rem 0;
}
.session-mobile,.navigation-mobile .nav {
  position: relative;
}
.session-mobile .pastille {
  position: absolute;
  top: -5px;
  right: -7px;
}
.navigation-mobile .pastille {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
}
.rail .nav .pastille {
  margin-left: auto;
}
.bouton .pastille {
  margin-left: .4rem;
}
.pastille {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 .35rem;
  border-radius: 99px;
  color: #583015;
  background: #ffdbb5;
  font-size: .77rem;
  font-weight: 800;
  line-height: 1;
}
.contenu {
  width: min(100%,81rem);
  margin: auto;
  padding: 1.9rem clamp(1rem,3.4vw,3.1rem) 3rem;
  min-width: 0;
}
.titre-page {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .7rem 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.titre-page .date-titre {
  color: var(--second);
  font-size: .9rem;
  font-weight: 680;
  margin-bottom: .18rem;
}
.sous-texte {
  color: var(--second);
  font-size: .91rem;
}
.rangee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  gap: .45rem;
  align-items: center;
  flex-wrap: wrap;
}
.bouton,.bouton-icone {
  border: 1px solid var(--trait);
  border-radius: 10px;
  background: var(--papier);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .5rem .82rem;
  text-decoration: none;
  font-weight: 710;
  font-size: .91rem;
  line-height: 1.25;
  text-align: center;
}
.bouton:hover,.bouton-icone:hover {
  background: #edf1e9;
}
.bouton-icone {
  width: 44px;
  padding: .5rem;
}
.bouton.primaire {
  background: var(--sarcelle);
  color: #fffdf4;
  border-color: var(--sarcelle);
}
.bouton.primaire:hover {
  background: #176662;
}
.bouton.texte {
  border-color: transparent;
  background: transparent;
  padding-inline: .45rem;
}
.bouton.danger {
  color: var(--danger);
}
.bouton[aria-pressed=true],.onglet[aria-pressed=true] {
  background: var(--pale);
  border-color: #91b1a4;
  color: #164d43;
}
.carte {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: 1.25rem;
  min-width: 0;
}
.carte h2 .icone {
  display: inline-block;
  vertical-align: middle;
  margin-right: .3rem;
}
.grille-accueil {
  display: grid;
  grid-template-columns: minmax(0,1.62fr) minmax(16rem,1fr);
  gap: 1rem;
  align-items: start;
}
.colonne {
  display: grid;
  gap: 1rem;
  min-width: 0;
  align-content: start;
}
.service {
  color: #fff9ea;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 0;
  padding: 1.28rem 1.35rem 1.35rem;
  background: linear-gradient(115deg,#0c4f4c,#146b64);
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 100% 119%,#fff6ea20 0 1px,transparent 1px 22px);
  pointer-events: none;
}
.service .bouton {
  background: #ffffff10;
  color: #fff9ea;
  border-color: #ffffff60;
}
.service .bouton:hover {
  background: #ffffff27;
}
.service[data-demo] .bouton {
  background: #0c4f4c;
  color: #fff9ea;
}
.service[data-demo] .bouton:hover {
  background: #146b64;
}
.service .sous-texte {
  color: #e1f0e8;
}
.chiffres {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin-top: .95rem;
}
.chiffre {
  padding: .3rem .65rem .2rem 0;
}
.chiffre+.chiffre {
  border-left: 1px solid #ffffff55;
  padding-left: .95rem;
}
.chiffre strong {
  display: block;
  color: #ffd0a3;
  font: 800 2.25rem/1 Fraunces,Georgia,serif;
}
.chiffre span {
  display: block;
  font-size: .88rem;
  margin-top: .3rem;
}
.barre {
  display: block;
  width: 100%;
  height: .47rem;
  margin: .8rem 0 .55rem;
  appearance: none;
  border: 0;
  border-radius: 1rem;
  background: #e3ebe3;
  overflow: hidden;
  accent-color: var(--sarcelle);
}
.barre::-webkit-progress-bar {
  background: #e3ebe3;
}
.barre::-webkit-progress-value {
  background: #207568;
}
.barre::-moz-progress-bar {
  background: #207568;
}
.liste {
  display: grid;
  gap: 0;
  margin: .55rem 0 0;
  padding: 0;
  list-style: none;
}
.liste>li+li {
  border-top: 1px solid var(--trait);
}
.tache {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: .3rem;
  min-height: 53px;
}
.tache label {
  display: grid;
  grid-template-columns: 1.55rem minmax(0,1fr);
  gap: .65rem;
  align-items: center;
  min-height: 53px;
  cursor: pointer;
  padding: .3rem 0;
}
.tache input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--sarcelle);
}
.tache small,.jour-quart small,.bloc-liste small {
  display: block;
  color: var(--second);
  font-size: .84rem;
}
.tache .termine {
  color: var(--second);
  text-decoration: line-through;
}
.phase {
  margin-top: 1.15rem;
  color: #33544b;
  font-weight: 800;
}
.bloc-liste {
  border-bottom: 1px solid var(--trait);
  padding: .72rem 0;
  overflow-wrap: anywhere;
}
.bloc-liste:last-child {
  border-bottom: 0;
}
.bloc-liste p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entete-carte {
  margin-bottom: .5rem;
}
.aucun {
  padding: .5rem 0;
  color: var(--second);
}
.onglets {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
}
.onglet {
  min-height: 44px;
  padding: .45rem .75rem;
  border: 1px solid var(--trait);
  border-radius: 9px;
  background: var(--papier);
  font-weight: 700;
  font-size: .9rem;
}
.calendrier {
  margin-top: 1rem;
  display: grid;
  gap: .5rem;
}
.calendrier.semaine {
  grid-template-columns: repeat(7,minmax(0,1fr));
}
.calendrier.mois {
  grid-template-columns: repeat(7,minmax(0,1fr));
}
.case-date {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: .35rem .5rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-weight: 800;
  font-size: .88rem;
}
.case-date[aria-current=date] {
  background: var(--pale);
  color: #0e554a;
}
.case-date:hover {
  background: #e8efe7;
}
.jour-cal {
  min-width: 0;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: .28rem;
}
.jour-cal.hors-mois {
  background: transparent;
}
.jour-quart {
  padding: .4rem .35rem;
  border-top: 1px solid var(--trait);
  overflow-wrap: anywhere;
  font-size: .9rem;
}
.jour-quart strong {
  display: block;
}
.jour-quart .actions {
  gap: 0;
}
.jour-quart .bouton {
  justify-content: flex-start;
  text-align: left;
  font-size: .83rem;
}
.liste-jours {
  display: grid;
  gap: .6rem;
  margin-top: 1rem;
}
.outils-horaire {
  margin-top: 1rem;
}
.flex-message {
  display: grid;
  grid-template-columns: minmax(11rem,.65fr) minmax(0,1.8fr);
  gap: 1rem;
}
.canaux .nav {
  width: 100%;
  justify-content: space-between;
}
.canaux .nav[aria-pressed=true],.canaux .nav:hover {
  background: var(--pale);
}
.discussion {
  min-width: 0;
}
.messages {
  height: min(47vh,32rem);
  min-height: 15rem;
  overflow: auto;
  padding: .4rem .25rem .5rem 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.message {
  max-width: 86%;
  padding: .62rem .8rem;
  margin: .6rem 0;
  background: #f2eee5;
  border-radius: 13px 13px 13px 4px;
  overflow-wrap: anywhere;
}
.message.moi {
  margin-left: auto;
  background: var(--pale);
  border-radius: 13px 13px 4px 13px;
}
.message p {
  white-space: pre-wrap;
}
.message small {
  color: var(--second);
  display: block;
  font-size: .78rem;
}
.ecrire {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: .45rem;
  align-items: end;
  margin-top: .55rem;
}
.ecrire label {
  margin-bottom: 0;
}
.ecrire textarea {
  resize: vertical;
  min-height: 53px;
}
.champs {
  display: grid;
  gap: .75rem;
  margin-top: .85rem;
}
label.champ {
  display: grid;
  gap: .25rem;
  font-weight: 650;
}
input:not([type=checkbox]):not([type=radio]),textarea,select {
  width: 100%;
  min-width: 0;
  border: 1px solid #a9b6ab;
  border-radius: 8px;
  padding: .45rem .65rem;
  background: white;
  color: var(--encre);
  min-height: 44px;
}
input[type=file] {
  padding: .4rem;
}
fieldset {
  margin: 0;
  border: 1px solid var(--trait);
  border-radius: 9px;
  padding: .6rem;
}
fieldset label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: .6rem;
  gap: .25rem;
}
fieldset input[type=checkbox],fieldset input[type=radio] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--sarcelle);
}
.duo {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .55rem;
}
.calcule {
  margin: 1rem 0 0;
  border: 1px solid #dbc8a7;
  border-radius: 12px;
  background: #ffefd6;
  padding: 1rem;
}
.calcule ul {
  margin: .4rem 0 0;
  padding-left: 1.3rem;
}
dialog {
  width: min(92vw,31rem);
  max-height: 90dvh;
  border: 1px solid var(--trait);
  border-radius: 18px;
  padding: 1.2rem;
  background: var(--papier);
  color: var(--encre);
  overflow: auto;
}
dialog::backdrop {
  background: #0e302bae;
}
dialog h2 {
  padding-right: .25rem;
}
dialog form+.actions,dialog form .actions {
  margin-top: .35rem;
}
dialog .erreur,.erreur {
  color: var(--danger);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  z-index: 4;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: min(89vw,26rem);
  background: #123f39;
  color: white;
  padding: .72rem 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 15px #10201d3b;
  overflow-wrap: anywhere;
}
.toast[data-erreur] {
  background: #813b30;
}
.connexion {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  background: radial-gradient(ellipse at 98% -10%,#deeee2,transparent 56%),var(--fond);
}
.connexion .carte {
  width: min(100%,29rem);
  padding: clamp(1.1rem,4vw,2rem);
}
.connexion h1 {
  font-size: 2.25rem;
  margin-top: 1.25rem;
}
.connexion .sous-texte {
  margin-top: .35rem;
}
.connexion .bouton {
  margin-top: .35rem;
}
.sr {
  width: 1px;
  height: 1px;
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 1100px){
  .calendrier.semaine {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .boitier {
    grid-template-columns: 12rem minmax(0,1fr);
  }
}
@media (max-width: 850px), (max-width: 950px) and (max-height: 520px) and (pointer: coarse) {
  .boitier {
    grid-template-columns: minmax(0,1fr);
  }
  .rail {
    display: none;
  }
  .bandeau {
    min-height: 64px;
  }
  .bandeau .identite {
    display: flex;
  }
  .bandeau .logo {
    width: 37px;
    height: 37px;
  }
  .bandeau .marque {
    font-size: 1.4rem;
  }
  .bandeau>.etiquette {
    display: none;
  }
  .session-mobile {
    display: block;
  }
  .emplacement .icone {
    display: none;
  }
  .emplacement select {
    min-height: 44px;
    padding: .35rem;
  }
  .navigation-mobile {
    position: fixed;
    z-index: 3;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    left: 0;
    bottom: 0;
    right: 0;
    background: var(--papier);
    border-top: 1px solid var(--trait);
    padding: .18rem .15rem calc(.18rem + env(safe-area-inset-bottom));
    box-shadow: 0 -3px 16px #3738280e;
  }
  .navigation-mobile .nav {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: .2rem;
    font-size: .78rem;
    min-height: 53px;
    padding: .28rem .1rem;
    overflow-wrap: anywhere;
  }
  .navigation-mobile .nav[aria-current=page] {
    background: var(--pale);
    color: var(--sarcelle);
  }
  .contenu {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(4rem + env(safe-area-inset-bottom));
    right: .8rem;
  }
}
@media (max-width: 640px){
  .grille-accueil,.flex-message {
    grid-template-columns: minmax(0,1fr);
  }
  .carte {
    padding: 1rem;
  }
  .contenu {
    padding-top: 1rem;
  }
  .titre-page {
    margin-bottom: 1rem;
  }
  .calendrier.semaine {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .calendrier.mois .case-date {
    min-height: 44px;
    padding: 0;
    text-align: center;
  }
  .calendrier.mois {
    gap: .18rem;
  }
  .calendrier.mois .jour-cal {
    padding: 0;
  }
  .flex-message .canaux {
    padding: .45rem;
  }
  .canaux .navigation {
    display: flex;
    gap: .15rem;
    flex-wrap: wrap;
  }
  .canaux .nav {
    width: auto;
    font-size: .86rem;
    padding: .3rem .55rem;
    gap: .25rem;
  }
  .duo {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,8.2rem),1fr));
  }
}
@media (max-width: 390px){
  .navigation-mobile .nav {
    font-size: .70rem;
  }
  .bandeau {
    padding-inline: .55rem;
  }
  .emplacement select {
    max-width: 47vw;
  }
  .service .rangee .bouton {
    font-size: .83rem;
  }
}
.centre {
  text-align: center;
}
.connexion .etiquette {
  margin-top: 1rem;
}
.notice-mobile {
  display: none;
}
.jour-entete {
  padding: .2rem;
  color: var(--second);
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}
@media (max-width: 850px){
  .notice-mobile {
    display: block;
    padding: .32rem clamp(.55rem,3.4vw,3.1rem);
    background: #fbebd2;
    color: #70441c;
    font-weight: 700;
    font-size: .8rem;
  }
}
@media (max-width: 390px){
  .navigation-mobile .nav {
    font-size: .69rem;
  }
}
.notice-mobile .avatar {
  width: 25px;
  height: 25px;
  border-radius: 5px;
}
@media (max-width: 850px){
  .notice-mobile {
    display: flex;
    align-items: center;
    gap: .4rem;
  }
}
@media (max-width: 640px){
  .calendrier.mois .quantite-quarts {
    display: none;
  }
}
.legende-calendrier {
  margin-top: .7rem;
}
.actions .bouton[aria-pressed=true]::before,.onglets .bouton[aria-pressed=true]::before {
  content: '✓';
  font-weight: 850;
}
.types-offre {
  display: grid;
  gap: .15rem;
}
.types-offre input[type=radio] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0 .2rem 0 0;
  min-height: 0;
  accent-color: var(--sarcelle);
}
.message small:last-child {
  line-height: 1.55;
}
@media (max-width: 850px), (max-width: 950px) and (max-height: 520px) and (pointer: coarse) {
  .boitier {
    height: 100dvh;
    grid-template-rows: minmax(0,1fr) auto;
    overflow: hidden;
  }
  .trame {
    grid-row: 1;
    overflow: auto;
    scroll-padding-block-end: 1rem;
  }
  .navigation-mobile {
    position: static;
    grid-row: 2;
  }
  .contenu {
    padding-bottom: 1.75rem;
  }
  .navigation-mobile .nav span {
    white-space: nowrap;
    font-weight: 660;
  }
}
@media (max-width: 390px){
  .navigation-mobile .nav {
    font-size: .67rem;
    letter-spacing: -.02em;
  }
}
@media (max-width: 350px){
  .bandeau {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    padding-block: .45rem;
  }
  .emplacement select {
    width: 100%;
    max-width: none;
  }
}

/* Nouvelle discussion : un grand choix par ligne, facile au pouce. */
.choix-discussion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  width: 100%;
  min-height: 56px;
  padding: .7rem .9rem;
  border: 1px solid var(--trait);
  border-radius: 9px;
  background: var(--papier);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.choix-discussion:hover, .choix-discussion:focus-visible { border-color: var(--sarcelle); }
.choix-discussion strong { color: var(--sarcelle); font-size: 1.02rem; }
.choix-discussion span { font-size: .9rem; opacity: .75; }

/* Liste des conversations : titre, puis la date du dernier message en petit et pâle (Maxim, 23 nov.). */
.canal-texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}
.canal-nom {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.canal-date {
  font-size: .74rem;
  font-weight: 400;
  opacity: .62;
}
.canal-suivant { display: none; }

@media (max-width: 640px), (max-width: 950px) and (max-height: 520px) and (pointer: coarse) {
  .canaux.carte { padding: .2rem .55rem; }
  .canaux .navigation { display: grid; gap: 0; }
  .canal + .canal { border-top: 1px solid var(--trait); }
  .canaux .nav {
    width: 100%;
    min-height: 56px;
    justify-content: flex-start;
    padding: .55rem .6rem;
    gap: .6rem;
    color: var(--encre);
  }
  .canal-nom { overflow-wrap: anywhere; }
  .canal-date { opacity: 1; color: var(--second); }
  .canal-suivant { display: flex; margin-left: auto; color: var(--sarcelle); }
  .canal-suivant .icone { width: 1rem; height: 1rem; }
  .canal .canal-x { width: 44px; height: 44px; opacity: .72; }
  .retour-messages { margin: -.45rem 0 .2rem; }
  .retour-messages .bouton { min-height: 44px; padding-inline: .25rem .55rem; }
  .flex-message.fil-mobile { grid-template-columns: minmax(0, 1fr); }
  .fil-mobile .messages { min-height: min(11rem, 45dvh); }
  .fil-mobile .messages-fiches { height: auto; max-height: none; }
  .fil-mobile .fp > table { table-layout: fixed; }
  .fil-mobile .fp > table :is(th, td) { overflow-wrap: anywhere; white-space: normal; }
}
.epinglee .icone {
  width: .85rem;
  height: .85rem;
  color: var(--sarcelle);
}

/* La croix d'une discussion : supprimer une directe ou quitter un groupe. */
.canal {
  display: flex;
  align-items: center;
  gap: .1rem;
  min-width: 0;
}
.canal .nav {
  flex: 1;
  min-width: 0;
}
.canal-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: .5;
  cursor: pointer;
}
.canal-x:hover, .canal-x:focus-visible {
  opacity: 1;
  background: var(--pale);
}
.canal-x .icone {
  width: 1rem;
  height: 1rem;
}

/* Tâches : les sept jours à cocher et les lignes de sections. */
.jours-semaine {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .2rem;
}
.section-ligne {
  display: flex;
  align-items: flex-end;
  gap: .6rem;
}
.section-ligne .champ {
  flex: 1;
}
.section-ligne .retirer-section {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 44px;
}
.tache-a-cocher {
  margin: 0;
  font-weight: 700;
}
.note-horaire {
  margin: 0 0 .5rem;
}
/* Grille de la semaine, comme dans Seven Shifts (Maxim, 23 nov.) */
.grille-defilement {
  overflow-x: auto;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: #fffdf8;
}
.grille-horaire {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .86rem;
}
.grille-horaire th,.grille-horaire td {
  padding: .35rem .4rem;
  border-bottom: 1px solid var(--trait);
  text-align: left;
  vertical-align: top;
}
.grille-horaire thead th {
  overflow: hidden;
  background: #f3ece0;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.grille-horaire thead th:first-child {
  width: 165px;
}
.grille-horaire thead th.total {
  width: 80px;
}
.grille-horaire thead .case-date {
  padding: 0;
  font-size: .8rem;
}
.grille-horaire thead th.aujourdhui .case-date {
  color: var(--sarcelle);
  text-decoration: underline;
}
.grille-horaire th[scope=row] {
  position: sticky;
  left: 0;
  z-index: 1;
  overflow-wrap: anywhere;
  background: #fffdf8;
}
.grille-horaire th[scope=row] .identite {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.grille-horaire th[scope=row] .avatar {
  width: 30px;
  height: 30px;
  font-size: .7rem;
}
.grille-horaire th[scope=row] small {
  display: block;
  font-weight: 500;
  opacity: .7;
}
.grille-horaire .total {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.grille-horaire tfoot th,.grille-horaire tfoot td {
  background: #f7f1e7;
  font-size: .8rem;
  white-space: nowrap;
}
.puce-quart {
  display: block;
  width: 100%;
  margin: .1rem 0;
  padding: .18rem .3rem;
  font-size: .8rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.puce-quart small {
  display: block;
  font-weight: 500;
  opacity: .8;
}
.puce-quart.ressource {
  background: #dceeea;
  color: #0c4f4c;
}
.puce-quart.serveur {
  background: #fde3c8;
  color: #70441c;
}
.puce-quart.four {
  background: #eadfd3;
  color: #5a3a22;
}
.puce-quart.brouillon {
  border-style: dashed;
  border-color: currentColor;
  background: transparent;
}
.puce-conge {
  display: block;
  margin: .12rem 0;
  padding: .25rem .4rem;
  border-radius: 8px;
  background: #ece9e4;
  color: #5f5a52;
  font-size: .8rem;
}
.ajout-case {
  display: block;
  width: 100%;
  min-height: 20px;
  padding: 0;
  line-height: 1;
  border: 1px dashed transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--sarcelle);
  font-weight: 700;
  opacity: 0;
  cursor: pointer;
}
.grille-horaire td:hover .ajout-case,.ajout-case:focus-visible {
  opacity: 1;
  border-color: var(--trait);
}
@media (hover: none) {
  .ajout-case {
    opacity: .45;
  }
}

/* Horaire : « Mes quarts », « Qui travaille » (liste et barres par heure), comme Seven Shifts (Maxim, 23 nov.). */
.resume-semaine,.monde-jour,.etat-semaine {
  margin: .7rem 0 0;
  font-weight: 600;
}
.sous-onglets {
  margin: .9rem 0 .2rem;
}
.qui-travaille {
  margin-top: .7rem;
}
.qui-travaille .monde-jour {
  margin: 0 0 .4rem;
}
.liste-qui {
  list-style: none;
  margin: 0;
  padding: 0;
}
.liste-qui li + li {
  border-top: 1px solid var(--trait);
}
.ligne-qui {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  padding: .7rem .5rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ligne-qui:hover,.ligne-qui:focus-visible {
  background: var(--pale);
}
.ligne-qui .avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.qui-texte {
  display: grid;
  gap: .05rem;
  min-width: 0;
}
.qui-texte small {
  color: var(--second);
}
.qui-heures {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-variant-numeric: tabular-nums;
}
.qui-heures .icone {
  width: 16px;
  height: 16px;
}
.en-conge {
  margin: .7rem .5rem 0;
}
.chrono-defilement {
  overflow-x: auto;
}
.chrono {
  position: relative;
  min-width: 600px;
}
.chrono-heures {
  position: relative;
  height: 1.7rem;
  border-bottom: 1px solid var(--trait);
  color: var(--second);
  font-size: .75rem;
}
.chrono-heures span {
  position: absolute;
  top: .25rem;
  padding-left: 4px;
  white-space: nowrap;
}
.chrono-lignes {
  position: relative;
  display: grid;
  gap: .45rem;
  padding: .6rem 0;
  background: repeating-linear-gradient(to right, var(--trait) 0 1px, transparent 1px calc(100% / var(--heures)));
}
.chrono-barre {
  position: relative;
  z-index: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 .6rem 0 0;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  font: inherit;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.chrono-barre b {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 2rem;
  background: rgb(0 0 0 / .14);
}
.chrono-barre span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.chrono-barre small {
  font-weight: 500;
  opacity: .9;
}
.chrono-barre.ressource {
  background: #14706a;
  color: #fff;
}
.chrono-barre.serveur {
  background: #f29a4a;
  color: #3b2208;
}
.chrono-barre.four {
  background: #6e4a30;
  color: #fff;
}
.chrono-barre:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 2px;
}
.chrono-maintenant {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--second);
  pointer-events: none;
}
.chrono-maintenant::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--second);
}
/* Postes : palette fixe (Maxim, 23 nov. 11 h 55). Pleine pour les barres et pastilles, pâle pour les puces de la grille. */
.chrono-barre.couleur-sarcelle,.pastille-poste.couleur-sarcelle {
  background: #14706a;
  color: #ffffff;
}
.puce-quart.couleur-sarcelle {
  background: #dceeea;
  color: #0c4f4c;
}
.chrono-barre.couleur-orange,.pastille-poste.couleur-orange {
  background: #f29a4a;
  color: #3b2208;
}
.puce-quart.couleur-orange {
  background: #fde3c8;
  color: #70441c;
}
.chrono-barre.couleur-brun,.pastille-poste.couleur-brun {
  background: #6e4a30;
  color: #ffffff;
}
.puce-quart.couleur-brun {
  background: #eadfd3;
  color: #5a3a22;
}
.chrono-barre.couleur-prune,.pastille-poste.couleur-prune {
  background: #7b4a8c;
  color: #ffffff;
}
.puce-quart.couleur-prune {
  background: #eee2f2;
  color: #55306a;
}
.chrono-barre.couleur-bleu,.pastille-poste.couleur-bleu {
  background: #3f5f8a;
  color: #ffffff;
}
.puce-quart.couleur-bleu {
  background: #e0e8f3;
  color: #2b4466;
}
.chrono-barre.couleur-rouge,.pastille-poste.couleur-rouge {
  background: #b04a3c;
  color: #ffffff;
}
.puce-quart.couleur-rouge {
  background: #f6dfdb;
  color: #7a2f25;
}
.chrono-barre.couleur-moutarde,.pastille-poste.couleur-moutarde {
  background: #d9a520;
  color: #3b2a00;
}
.puce-quart.couleur-moutarde {
  background: #f8edc9;
  color: #6b4f00;
}
.chrono-barre.couleur-vert,.pastille-poste.couleur-vert {
  background: #4f7f3a;
  color: #ffffff;
}
.puce-quart.couleur-vert {
  background: #e2efdc;
  color: #345f27;
}
.chrono-barre.couleur-rose,.pastille-poste.couleur-rose {
  background: #c24d74;
  color: #ffffff;
}
.puce-quart.couleur-rose {
  background: #f9e0e8;
  color: #8a2f4f;
}
.chrono-barre.couleur-gris,.pastille-poste.couleur-gris {
  background: #5f6966;
  color: #ffffff;
}
.puce-quart.couleur-gris {
  background: #e7e9e8;
  color: #3f4745;
}
.puce-quart.brouillon {
  background: transparent;
}
.pastille-poste {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: .4rem;
  border-radius: 50%;
  vertical-align: -2px;
  font-weight: 800;
}
.pastille-poste.grande {
  width: 37px;
  height: 37px;
  margin: 0;
  font-size: 1rem;
}
.couleurs {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
  gap: .2rem .6rem;
}
.couleurs legend {
  grid-column: 1 / -1;
}
/* Le bouton de date garde la même largeur (Aujourd’hui, Hier, 21/11/2026, Semaine du…) : les flèches ne bougent jamais (Maxim, 23 nov. 12 h 05). */
.bouton-date {
  width: 12.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Sections de la grille (Maxim, 23 nov. 13 h 49) : une par poste ; le titre reste visible quand la grille défile. */
.grille-horaire .section-grille th {
  padding-top: .65rem;
  background: #f3ece0;
  font-weight: 800;
}
.grille-horaire .section-grille .titre-section {
  position: sticky;
  left: .4rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.grille-horaire .section-grille small {
  font-weight: 500;
  opacity: .7;
}
/* « Préférences » sous le nom (Maxim, 23 nov. 15 h 54) : petit, clair, le texte au survol et au clic. */
.grille-horaire th[scope=row] .bouton-preference {
  display: inline-flex; align-items: center; gap: .25rem; width: max-content; margin-top: .25rem;
  padding: .12rem .5rem .12rem .4rem; border: 1px solid var(--trait); border-radius: 999px;
  background: var(--papier); color: var(--second); font: inherit; font-size: .74rem; font-weight: 650; line-height: 1.3; cursor: pointer;
}
.grille-horaire th[scope=row] .bouton-preference:hover,.grille-horaire th[scope=row] .bouton-preference:focus-visible { background: var(--pale); color: var(--encre); }
.grille-horaire th[scope=row] .bouton-preference .icone { width: 13px; height: 13px; }
.texte-preference { margin: 0; font-size: 1.05rem; line-height: 1.5; white-space: pre-line; }
.grille-horaire .total small {
  display: block;
  font-weight: 500;
  opacity: .7;
}
.souhaits small {
  display: block;
  opacity: .75;
}
.aide-champ {
  margin: -.3rem 0 .4rem;
}

/* Contour d'accord des quarts (Maxim, 23 nov. 14 h) : vert sauge, moutarde et brique, dans la palette sarcelle et orange. */
.puce-quart.accord-ok, .puce-quart.accord-hors {
  position: relative;
  border-width: 2px;
  padding: calc(.18rem - 1px) calc(.3rem - 1px);
}
.puce-quart.accord-ok { border-color: #3f9a5c; }
.puce-quart.accord-hors { border-color: #c0412d; box-shadow: 0 0 0 2px #f4d3cb; }
.legende-accord {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin: .2rem 0 .6rem;
  font-size: .82rem;
  color: var(--second);
}
.legende-accord span::before {
  content: "";
  display: inline-block;
  width: .95rem;
  height: .7rem;
  margin-right: .35rem;
  vertical-align: -1px;
  border: 2px solid;
  border-radius: 4px;
  background: var(--papier);
}
.legende-accord .accord-ok::before { border-color: #3f9a5c; }
.legende-accord .accord-hors::before { border-color: #c0412d; }
.dispo-case {
  display: block;
  margin-bottom: .1rem;
  font-size: .7rem;
  color: var(--second);
  white-space: nowrap;
}
.dispo-case.non { color: #a8432f; }
.total.au-dela small { color: #9a6a00; font-weight: 700; }
.total.au-dela { background: #fdf3d3; color: #8a5f00; }
.total.au-dela.trop { background: #fbe3df; color: #a8432f; }
.total.au-dela.trop small { color: #a8432f; }
.cache-ecran {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Début et fin avec leur raccourci Open / Close (Maxim, 23 nov. 14 h 10). */
.champ-heure {
  display: grid;
  gap: .3rem;
  align-content: start;
}
.bouton.raccourci {
  justify-self: start;
  min-height: 0;
  padding: .3rem .7rem;
  font-size: .82rem;
  border-radius: 999px;
  background: var(--pale);
  color: var(--sarcelle);
}
.resume-quart {
  margin: 0;
  font-size: 1rem;
}
.resume-quart small {
  display: block;
  margin-top: .15rem;
  color: var(--second);
  font-size: .82rem;
}

/* Glisser un quart (Maxim, 23 nov. 14 h 17). */
.puce-quart[data-glisser] {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.puce-quart.en-glisse { opacity: .35; }
.fantome-quart {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  margin: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(20, 57, 51, .25);
  rotate: -2deg;
}
body.glisse-actif, body.glisse-actif * { cursor: grabbing !important; user-select: none; }
td.cible-glisse {
  background: var(--pale);
  outline: 2px dashed var(--vert);
  outline-offset: -3px;
}
.legende-accord em {
  font-style: normal;
  color: var(--second);
  opacity: .85;
}
.alerte-deplacement {
  margin: .4rem 0 0;
  padding: .55rem .75rem;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fdf0e1;
  color: #5b3714;
}

/* Le X de chaque quart de la grille (Maxim, 23 nov. 14 h 25). */
.puce-enveloppe {
  position: relative;
  display: block;
}
.retirer-quart {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  z-index: 1;
  padding: 0;
  border: 1px solid var(--trait);
  border-radius: 50%;
  background: var(--papier);
  color: var(--second);
  cursor: pointer;
  opacity: .8;
  box-shadow: 0 1px 3px rgba(20, 57, 51, .15);
}
.retirer-quart svg { width: 11px; height: 11px; }
.retirer-quart:hover, .retirer-quart:focus-visible {
  opacity: 1;
  color: #ffffff;
  background: #c0412d;
  border-color: #c0412d;
}

/* La bande « à republier » (Maxim, 23 nov. 14 h 43) : à la place des questions et des boutons Besoins et Proposer. */
.bande-publier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  margin: .2rem 0 .8rem;
  padding: .7rem 1rem;
  border: 1px solid #f3c99a;
  border-left: 5px solid var(--orange);
  border-radius: 14px;
  background: #fdf0e1;
  color: #5b3714;
}
.bande-publier span { display: grid; gap: .1rem; }
.bande-publier small { color: #7a5329; }
.bande-publier.a-jour {
  border-color: #cfe3d6;
  border-left-color: #3f9a5c;
  background: #eef6f0;
  color: #24553a;
}
.puce-quart.a-retirer {
  opacity: .5;
  text-decoration: line-through;
  background: transparent;
  border-style: dashed;
  border-color: currentColor;
}
.retirer-quart.garder { font-size: .8rem; font-weight: 700; color: var(--sarcelle); }

/* Page Quarts en trois sections (Maxim, 23 nov. 15 h 14) : À approuver, Offres ouvertes, Historique. */
.section-approuver { border-color: #f2c79a; }
.section-approuver h2 { display: flex; align-items: center; gap: .5rem; }
.pastille-texte {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem;
  border-radius: 999px; background: var(--orange); color: #fff; font: 700 .85rem/1 system-ui, sans-serif;
}
.bloc-liste.a-approuver { border-left: 4px solid var(--orange); padding-left: .85rem; }
.bloc-liste p + p { margin-top: .15rem; }
.propositions { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.propositions-recues { margin-top: .6rem; }
.nombre-propositions { margin: 0; font-size: .85rem; font-weight: 700; color: var(--second); }
/* Propositions en petites cases côte à côte : six sur une ligne à l'ordinateur, deux au téléphone (Maxim, 23 nov. 15 h 49). */
.propositions-recues .propositions { margin-top: .35rem; grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr)); gap: .4rem; }
.propositions-recues .propositions li {
  display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: .05rem;
  padding: .45rem .6rem; border-radius: 10px; background: var(--pale); line-height: 1.3;
}
.propositions-recues .poste-propose { font-weight: 650; }
.propositions-recues .propositions strong { font-size: .9rem; }
.quart-propose { font-size: .8rem; color: var(--second); }
.propositions-recues .actions { margin-top: auto; padding-top: .35rem; gap: .3rem; flex-wrap: nowrap; }
.propositions-recues .actions .bouton { flex: 1; min-height: 36px; padding: .25rem .4rem; font-size: .82rem; border-radius: 8px; white-space: nowrap; }
.propositions-recues .actions .bouton-icone { width: 36px; min-height: 36px; padding: .35rem; border-radius: 8px; flex: none; }
.propositions li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  padding: .6rem .8rem; border-radius: 12px; background: var(--pale);
}
.historique { list-style: none; margin: .5rem 0 0; padding: 0; }
.historique li {
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .4rem 1rem; align-items: baseline;
  padding: .65rem 0; border-top: 1px solid var(--trait); font-size: .93rem;
}
.historique .quand { color: var(--second); font-variant-numeric: tabular-nums; }
.historique .issue { font-weight: 700; color: var(--vert); white-space: nowrap; }
.historique li.refuse .issue { color: var(--danger); }
@media (max-width: 640px) {
  .historique li { grid-template-columns: 1fr; gap: .15rem; }
  .historique .issue { white-space: normal; }
}
.section-quarts + .section-quarts { margin-top: 1rem; }

/* Punch (Maxim, 23 nov. 16 h 04) : code à quatre chiffres, un seul bouton, la réponse en gros. */
.punch .rangee-actions { display: flex; align-items: center; gap: .5rem; }
.punch-saisie { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.punch-saisie .champ { flex: 1 1 9rem; }
.punch-saisie input { font-size: 1.4rem; letter-spacing: .35em; text-align: center; }
.punch-saisie .bouton { min-width: 7.5rem; min-height: 2.9rem; font-size: 1.05rem; }
.punch-resultat { min-height: 1.6rem; margin: .6rem 0 .2rem; }
.punch-resultat strong { font-size: 1.15rem; margin-right: .35rem; }
.punch-resultat.entree strong { color: var(--vert); }
.punch-resultat.sortie strong { color: var(--orange); }
.ligne-punch { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--trait); }
.ligne-punch > div:first-child { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ligne-punch small { color: var(--second); }
.ligne-punch.attente { background: var(--pale); border-radius: var(--rayon); padding: .6rem .7rem; border-bottom: 0; margin-bottom: .4rem; }
.ligne-punch .actions { flex-shrink: 0; }
@media (max-width: 560px) { .ligne-punch { flex-direction: column; } }
.punch-saisie input::placeholder { letter-spacing: .2em; }
/* Code de punch masqué sans être un mot de passe (pas de gestionnaire de mots de passe), 23 nov. 16 h 19. */
.code-masque { -webkit-text-security: disc; text-security: disc; }
.etiquette-modifie { display: inline-block; margin-left: .4rem; padding: .05rem .45rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: middle; }
.ligne-punch.modifiee { background: var(--pale); border-radius: var(--rayon); padding: .55rem .7rem; }
/* Une ligne par entrée-sortie (Maxim, 23 nov. 16 h 27). */
.ligne-punch .paire { display: block; }
.ligne-punch .paire.corrigee { font-weight: 600; }
.paire-punch { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; border: 1px solid var(--trait); border-radius: var(--rayon); padding: .5rem .7rem .7rem; margin: 0; }
.paire-punch legend { padding: 0 .3rem; font-weight: 700; font-size: .9rem; }

/* L'espace en haut, devant le choix de la succursale (Maxim, 23 nov. 16 h 48) ; au téléphone, la notice le dit déjà. */
.espace-haut {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-right: .75rem;
  border-right: 1px solid #d6e2dc;
  font-weight: 800;
  white-space: nowrap;
}
.espace-haut .avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ddede5;
}
@media (max-width: 850px){
  .espace-haut {
    display: none;
  }
}

/* Quart offert : il reste à son auteur sur l'horaire (Maxim, 23 nov. 16 h 50). */
.puce-quart.offert::after {
  content: "Offert";
  display: inline-block;
  margin-top: .15rem;
  padding: 0 .35rem;
  border-radius: 6px;
  background: #fff1e3;
  color: #9a4a12;
  font-size: .68rem;
  font-weight: 800;
}
.avis-responsable {
  margin: .6rem 0 0;
  padding: .55rem .7rem;
  border-left: 3px solid #e07b2f;
  background: #fff6ec;
  border-radius: 8px;
  font-size: .9rem;
}

/* Réservations (Maxim, 23 nov. 2026) : liste du jour à gauche, plan de table à droite ; au téléphone, l'un sous l'autre. */
.resa-actions { align-items: center; flex-wrap: wrap; }
.resa-date { font: inherit; padding: 8px 10px; border: 1px solid #c9d3d2; border-radius: 10px; background: #fff; }
.resa-grille { display: grid; grid-template-columns: minmax(320px, 2fr) minmax(380px, 3fr); gap: 16px; align-items: start; }
.resa-ligne { border-top: 1px solid #e3e8e7; padding: 8px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; }
.resa-ligne.choisie { background: #fff4ea; border-radius: 12px; padding-left: 8px; padding-right: 8px; }
.resa-ligne.statut-annulee, .resa-ligne.statut-absente, .resa-ligne.statut-partie { opacity: .55; }
.resa-choisir { all: unset; cursor: pointer; display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; min-width: 0; }
.resa-choisir:focus-visible { outline: 2px solid var(--sarcelle); border-radius: 8px; }
.resa-choisir:disabled { cursor: default; }
.resa-heure { font-weight: 700; color: var(--sarcelle); }
.resa-qui { min-width: 0; }
.resa-qui small { display: block; color: #5d6b6a; }
.resa-tables { font-weight: 600; font-size: 14px; color: var(--sarcelle); background: #e6f0ef; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.resa-tables.a-placer { color: #8a4515; background: #fde9d6; }
.resa-tables:empty { display: none; }
.resa-details { grid-column: 1 / -1; margin: 0 0 0 72px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.badge-resa { background: #ede4f3; color: #5b2f74; border-radius: 999px; padding: 2px 9px; font-weight: 600; }
.badge-resa.discret { background: #eef1f1; color: #5d6b6a; }
.resa-note { color: #3c4848; }
.resa-ligne > .actions { gap: 6px; }
.resa-consigne { background: #fff4ea; border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.resa-quand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.resa-quand select { font: inherit; padding: 6px 8px; border-radius: 10px; border: 1px solid #c9d3d2; }
.salle { position: relative; aspect-ratio: 16 / 10; background: repeating-linear-gradient(0deg, #f7f3ea 0 39px, #efe8da 39px 40px), #f7f3ea; border: 2px solid #d9cfbb; border-radius: 16px; overflow: hidden; touch-action: none; margin: 10px 0; }
.salle.en-edition { border-style: dashed; border-color: var(--sarcelle); }
.table-resa { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  width: 10.5%; aspect-ratio: 1; padding: 2px; border-radius: 10px; border: 2px solid #9fb3b1; background: #fff; color: #1f2a2a; font: inherit; font-size: 12px; line-height: 1.15; cursor: pointer; }
.table-resa.forme-ronde { border-radius: 50%; }
.table-resa.forme-longue { width: 16%; aspect-ratio: 1.7; }
.table-resa.places-2 { width: 8%; }
.table-resa.places-6, .table-resa.places-8 { width: 13%; }
.table-resa.forme-longue.places-6, .table-resa.forme-longue.places-8 { width: 18%; }
.table-nom { font-weight: 800; font-size: 15px; }
.table-places { color: #5d6b6a; font-size: 11px; }
.table-client { font-weight: 700; font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-resa.plus-tard { border-color: var(--sarcelle); background: #e6f0ef; }
.table-resa.occupee { border-color: #d9772b; background: #fde9d6; }
.table-resa.assise { border-color: var(--sarcelle); background: var(--sarcelle); color: #fff; }
.table-resa.assise .table-places { color: #d6e6e4; }
.table-resa.bloquee { border-color: #b3412e; background: #f6d5cf; color: #7d2414; }
.table-resa.a-la-choisie { outline: 3px solid #d9772b; outline-offset: 2px; }
.salle.en-edition .table-resa { cursor: grab; }
.table-resa.glissee { cursor: grabbing; box-shadow: 0 6px 16px rgba(0,0,0,.18); z-index: 2; }
.legende-salle { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; color: #5d6b6a; margin: 0 0 8px; }
.legende-salle .pt { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 2px solid #9fb3b1; background: #fff; margin-right: -6px; }
.legende-salle .pt.plus-tard { border-color: var(--sarcelle); background: #e6f0ef; }
.legende-salle .pt.occupee { border-color: #d9772b; background: #fde9d6; }
.legende-salle .pt.assise { border-color: var(--sarcelle); background: var(--sarcelle); }
.legende-salle .pt.bloquee { border-color: #b3412e; background: #f6d5cf; }
.grille-durees { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
@media (max-width: 900px) {
  .resa-grille { grid-template-columns: 1fr; }
  .table-resa { font-size: 10px; } .table-nom { font-size: 13px; } .table-places { display: none; }
}
.resa-actions { display: flex; flex-direction: row; gap: 8px; }
.resa-actions .resa-date { width: auto; flex: 0 0 auto; }
.resa-grille { grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.35fr); }
.resa-ligne { grid-template-columns: 1fr; }
.resa-ligne > .actions { justify-content: flex-end; flex-direction: row; }
.resa-quand { white-space: nowrap; }
.resa-actions input.resa-date[type=date] { width: auto; min-width: 0; flex: 0 0 auto; }
/* Plan de GP (24 nov.) : murs, noms de section, salle dense (57 tables), bande de couleur par section. */
.mur { position: absolute; background: #3d4545; border-radius: 3px; pointer-events: none; }
.etiquette-salle { position: absolute; transform: translate(-50%, -50%); font-weight: 800; letter-spacing: .12em; font-size: 15px; color: rgba(12,79,76,.45); pointer-events: none; white-space: nowrap; }
.salle.dense .table-resa { width: 5.4%; aspect-ratio: 1; border-radius: 7px; font-size: 10px; padding: 1px; }
.salle.dense .table-nom { font-size: 13px; }
.salle.dense .table-places { display: none; }
.salle.dense .table-client { font-size: 9.5px; }
.table-resa.zone-avant { box-shadow: inset 0 -4px 0 #2b8a83; }
.table-resa.zone-arriere { box-shadow: inset 0 -4px 0 #c0703a; }
.table-resa.bloquee.zone-avant, .table-resa.bloquee.zone-arriere { box-shadow: none; }

/* Réservations, 24 nov. 2026 11 h 26 (Maxim) : la liste plus mince, le plan plus large ; statuts blanc, orange, vert, jaune. */
.resa-grille { grid-template-columns: minmax(300px, 0.75fr) minmax(480px, 2fr); }
.resa-ligne { grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 6px; padding: 4px 6px; font-size: 14px; border-radius: 8px; border-top-color: #edf0ef; }
.resa-ligne.choisie { padding-left: 6px; padding-right: 6px; }
.resa-choisir { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 6px; }
.resa-heure { font-size: 14px; }
.resa-qui { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.resa-qui strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.resa-nb { font-weight: 700; background: #eef1f1; border-radius: 6px; padding: 0 6px; }
.resa-tel { color: #5d6b6a; white-space: nowrap; }
.resa-ligne .badge-resa { font-size: 12px; padding: 0 7px; }
.resa-tables { font-size: 13px; padding: 1px 8px; }
.resa-fleche { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #d9772b; color: #fff; animation: resa-clignote 1.1s ease-in-out infinite; }
.resa-fleche .icone { width: 18px; height: 18px; stroke: #fff; stroke-width: 3; }
.resa-ligne.choisie .resa-fleche { animation: none; outline: 3px solid #f6c79d; }
@keyframes resa-clignote { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .resa-fleche { animation: none; } }
.resa-note { grid-column: 1 / -1; margin: 0 0 0 58px; font-size: 13px; color: #5d6b6a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resa-statut { font: inherit; font-size: 13px; font-weight: 700; padding: 4px 6px; border-radius: 8px; border: 2px solid #9fb3b1; background: #fff; color: #1f2a2a; cursor: pointer; max-width: 120px; }
span.resa-statut { cursor: default; }
.resa-ligne > .bouton-icone, .resa-ligne > button.icone-bouton { width: 32px; height: 32px; }
.st-confirmee { --fond: #fff; --bord: #46524f; --texte: #1f2a2a; }
.st-arrivee { --fond: #f7a25a; --bord: #c9661c; --texte: #3d1d05; }
.st-activite { --fond: #6cbf73; --bord: #3d8a48; --texte: #0f3315; }
.st-fete { --fond: #ffd84d; --bord: #c9a200; --texte: #3d3100; }
.st-partie, .st-absente, .st-annulee { --fond: #eef1f1; --bord: #c9d3d2; --texte: #5d6b6a; }
.resa-statut[class*="st-"] { background: var(--fond); border-color: var(--bord); color: var(--texte); }
.resa-ligne.statut-arrivee { box-shadow: inset 4px 0 #f7a25a; }
.resa-ligne.statut-activite { box-shadow: inset 4px 0 #6cbf73; }
.resa-ligne.statut-fete { box-shadow: inset 4px 0 #ffd84d; }
.table-resa.libre { border-color: #c9d3d2; }
.table-resa.plus-tard { background: #fff; border: 2px dashed #7f9896; }
.table-resa[class*=" st-"] { background: var(--fond); border-color: var(--bord); color: var(--texte); }
.table-resa.st-confirmee { border-width: 3px; }
.table-resa[class*=" st-"] .table-places { color: inherit; opacity: .75; }
.legende-salle .pt.libre { border-color: #c9d3d2; }
.legende-salle .pt.plus-tard { background: #fff; border: 2px dashed #7f9896; }
.legende-salle .pt[class*=" st-"] { background: var(--fond); border-color: var(--bord); margin-left: 6px; }
.resa-quand { font-size: 14px; color: #5d6b6a; font-weight: 600; }
@media (max-width: 1000px) { .resa-grille { grid-template-columns: 1fr; } }
.resa-grille { grid-template-columns: minmax(350px, 0.9fr) minmax(480px, 2fr); }
.resa-qui { display: block; min-width: 0; }
.resa-l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.resa-l1 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.resa-qui small { display: flex; flex-wrap: wrap; gap: 0 6px; align-items: center; font-size: 12.5px; line-height: 1.3; }
.resa-statut { max-width: 108px; padding: 3px 4px; }
.resa-ligne > .bouton-icone { width: 30px; height: 30px; min-height: 0; padding: 0; }
.resa-ligne > .bouton-icone .icone { width: 16px; height: 16px; }
/* Sur ordinateur, le statut est un carré de sa couleur : on le touche, la liste des statuts s'ouvre (le plan garde la place). */
.resa-choisir { grid-template-columns: 46px minmax(0, 1fr) auto; }
.resa-heure { font-size: 13.5px; }
.resa-ligne .badge-resa { white-space: nowrap; }
.resa-note { margin-left: 52px; }
@media (min-width: 1001px) {
  select.resa-statut { appearance: none; -webkit-appearance: none; width: 30px; height: 30px; padding: 0; color: transparent; border-radius: 8px; border-width: 2px; }
  select.resa-statut option { color: #1f2a2a; background: #fff; }
}
.resa-choisir { grid-template-columns: 52px minmax(0, 1fr) auto; }
.resa-heure { white-space: nowrap; }
@media (min-width: 1001px) {
  .resa-ligne select.resa-statut[data-resa-statut] { width: 30px; min-width: 30px; max-width: 30px; height: 30px; min-height: 0; flex: 0 0 30px; padding: 0; font-size: 0; color: transparent; text-indent: -999px; background-image: none; }
}
.resa-choisir { grid-template-columns: 58px minmax(0, 1fr) auto; }
.resa-note { margin-left: 64px; }
.resa-ligne select.resa-statut[data-resa-statut] { appearance: none; -webkit-appearance: none; width: 30px; min-width: 30px; max-width: 30px; height: 30px; min-height: 0; flex: 0 0 30px; padding: 0; font-size: 0; color: transparent; text-indent: -999px; background-image: none; border-radius: 8px; }
.resa-ligne select.resa-statut option { color: #1f2a2a; background: #fff; font-size: 16px; }
@media (max-width: 1000px) { .resa-grille { grid-template-columns: 1fr; } }

/* 24 nov. 2026 11 h 56 (Maxim) : Pas arrivée en gris, tables choisies, carré de sélection, plan dézoomé, menu vert repliable. */
.st-confirmee { --fond: #d5dbda; --bord: #7d8b89; --texte: #1f2a2a; }
.table-resa.st-confirmee { border-width: 2px; }
.table-resa.selectionnee { outline: 3px solid #1f6fd1; outline-offset: 2px; z-index: 1; }
.lasso { position: absolute; border: 2px dashed #1f6fd1; background: rgba(31, 111, 209, .12); border-radius: 4px; pointer-events: none; z-index: 3; }
.salle:not(.en-edition) { cursor: crosshair; }
.salle:not(.en-edition) .table-resa { cursor: pointer; }
.resa-consigne .sous-texte { flex-basis: 100%; margin: 0; }
.resa-grille { grid-template-columns: minmax(330px, 0.8fr) minmax(480px, 2.2fr); }
.salle.dense .table-resa { width: 4.8%; border-radius: 6px; }
.salle.dense .table-nom { font-size: 12px; }
.salle.dense .table-client { font-size: 9px; }
.replier-rail { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 14px; height: 56px; padding: 0; border: 0; border-radius: 8px 0 0 8px;
  background: rgba(255, 249, 238, .14); color: #fff9ee; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.replier-rail:hover, .replier-rail:focus-visible { background: rgba(255, 249, 238, .3); }
.replier-rail .icone { width: 14px; height: 14px; }
.boitier.rail-replie { grid-template-columns: 4.6rem minmax(0, 1fr); }
.rail-replie .rail { padding-left: .55rem; padding-right: .95rem; }
.rail-replie .rail .marque, .rail-replie .rail .nav > span:not(.pastille), .rail-replie .rail .session-texte { display: none; }
.rail-replie .rail .nav { justify-content: center; }
.rail-replie .rail .identite { margin-left: 0; justify-content: center; }
@media (max-width: 850px) { .replier-rail { display: none; } .boitier.rail-replie { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .resa-grille { grid-template-columns: 1fr; } }
.resa-ligne .resa-tables { max-width: 76px; overflow: hidden; text-overflow: ellipsis; padding: 1px 6px; }
.resa-l1 strong { min-width: 3.5em; }
.resa-grille { grid-template-columns: minmax(360px, 0.85fr) minmax(480px, 2.2fr); }
.resa-ligne .resa-tables { max-width: 64px; }
@media (max-width: 1000px) { .resa-grille { grid-template-columns: 1fr; } }

/* Menu d'une table (Maxim, 24 nov. 12 h 08) : statut ou modifier pour une table occupée ; rouge au clic droit. */
.menu-table { position: fixed; z-index: 50; min-width: 220px; max-width: 280px; background: #fff; border: 1px solid #c9d3d2; border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 63, 60, .22); padding: 6px; display: flex; flex-direction: column; }
.menu-table .menu-titre { margin: 4px 8px 6px; font-size: 14px; color: #3c4848; }
.menu-table button { all: unset; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #1f2a2a; }
.menu-table button:hover, .menu-table button:focus-visible { background: #eef4f3; }
.menu-table button[aria-current="true"] { font-weight: 700; background: #f3f6f5; }
.menu-table .pt { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--bord, #9fb3b1); background: var(--fond, #fff); }
.menu-table hr { border: 0; border-top: 1px solid #e3e8e7; margin: 4px 0; width: 100%; }

/* Tracer un carré sur le plan ne surligne plus le texte (Maxim, 24 nov. 12 h 12). */
.salle { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body.lasso-actif, body.lasso-actif * { user-select: none !important; -webkit-user-select: none !important; }

/* 24 nov. 2026 12 h 18 (Maxim) : lignes de même hauteur, nom au complet ; détails sous une petite flèche au milieu du bas. */
.resa-ligne { position: relative; }
.resa-l1 strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resa-deplier { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); z-index: 2; width: 30px; height: 14px; min-height: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d6dedd; border-radius: 999px; background: #fff; color: #5d6b6a; cursor: pointer; }
.resa-deplier .icone { width: 12px; height: 12px; transform: rotate(90deg); stroke-width: 2.5; transition: transform .15s; }
.resa-deplier[aria-expanded="true"] .icone { transform: rotate(-90deg); }
.resa-deplier.a-details { background: #ede4f3; border-color: #c9b2da; color: #5b2f74; }
.resa-deplier:hover, .resa-deplier:focus-visible { border-color: var(--sarcelle); color: var(--sarcelle); outline: none; }
.resa-details { grid-column: 1 / -1; margin: 2px 0 8px 64px; padding: 6px 10px; background: #f6f8f8; border-radius: 8px; font-size: 13px; display: grid; gap: 4px; }
.resa-details p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.resa-etiquette { min-width: 62px; color: #5d6b6a; font-weight: 600; }
.resa-note-texte { white-space: pre-wrap; flex: 1 1 160px; }
.resa-details .resa-tables { white-space: normal; }
@media (max-width: 1000px) { .resa-details { margin-left: 0; } }
.guide-alignement { position: absolute; pointer-events: none; z-index: 1; }
.guide-alignement.h { left: 0; right: 0; height: 0; border-top: 1.5px dashed #2b8a83; }
.guide-alignement.v { top: 0; bottom: 0; width: 0; border-left: 1.5px dashed #2b8a83; }
.resa-details p { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.resa-details p > :last-child { min-width: 0; overflow-wrap: anywhere; }
.resa-besoins { display: flex; flex-wrap: wrap; gap: 4px; }
.resa-etiquette { min-width: 0; }
.resa-note-texte { flex: none; }

/* 24 nov. 2026 12 h 26 (Maxim) : la flèche des détails dans la réservation, sous le contenu ; places du plan sous le plan, à droite. */
.resa-ligne { padding-bottom: 16px; }
.resa-deplier { bottom: 2px; height: 12px; width: 34px; border-color: transparent; background: #eef1f1; }
.resa-deplier.a-details { background: #ede4f3; border-color: transparent; }
.resa-ligne.ouverte .resa-details { margin-bottom: 4px; }
.legende-salle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; }
.places-plan { margin-left: auto; font-weight: 700; color: #3c4848; white-space: nowrap; }
.table-resa.a-venir .table-client { font-weight: 700; }
.legende-salle { display: flex; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.legende-items { min-width: 0; }
.legende-etat { display: contents; }
.places-plan { margin-left: 0; flex: none; }
.legende-items { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.legende-salle { align-items: center; }

/* 24 nov. 2026 12 h 34 (Maxim) : le nombre de personnes dans un carré, aligné avec le statut et le crayon. */
.resa-ligne { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.resa-nb-carre { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 30px; height: 30px; border: 2px solid #c9d3d2;
  border-radius: 8px; background: #fff; color: #1f2a2a; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .resa-ligne { grid-template-columns: minmax(0, 1fr) auto auto auto; } }
/* Avec le carré du nombre, la liste s'élargit un peu pour garder les noms au complet. */
.resa-grille { grid-template-columns: minmax(395px, 0.95fr) minmax(480px, 2fr); }
.resa-ligne { column-gap: 5px; }
@media (max-width: 1000px) { .resa-grille { grid-template-columns: 1fr; } }

/* 24 nov. 2026 12 h 41 (Maxim) : les réservations à placer à part, en tête ; Confirmer et Annuler dans la salle, en bas à gauche. */
.resa-section { margin: 6px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5d6b6a; }
.resa-section.a-placer { color: #b35a17; }
.resa-separation { border: 0; border-top: 2px solid #d6dedd; margin: 10px 0 6px; }
.salle-actions { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.salle-actions .bouton { box-shadow: 0 2px 8px rgba(20, 57, 51, .18); }
/* Empilés et compacts : le coin bas-gauche (sous AVANT, à gauche du mur) ne cache aucune table. */
.salle-actions { left: 10px; bottom: 10px; flex-direction: column; align-items: stretch; gap: 6px; }
.salle-actions .bouton { min-height: 0; padding: 6px 14px; font-size: 14px; }

/* Gestion (Maxim, 24 nov. 12 h 48) : la section de la gérance, à bâtir le 25 nov. */
.gestion-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gestion-bloc h2 { display: flex; align-items: center; gap: 8px; }
.gestion-bloc h2 .icone { width: 22px; height: 22px; }

/* Aide des réservations (Maxim, 24 nov. 12 h 57) : une petite page au centre, tout ce qu'on peut faire. */
.aide-resa h3 { margin: 4px 0 6px; font-size: 15px; }
.aide-resa ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.aide-resa li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.35; }
.aide-resa li strong { font-weight: 600; }
@media (max-width: 560px) { .aide-resa li { grid-template-columns: 1fr; gap: 0; } }

/* Statuts (Maxim, 24 nov. 13 h 03) : Complétée en mauve, No show et Annulée en rouge ; ils ne vivent plus que dans l'Historique, sans voile. */
.st-partie { --fond: #dcc8ef; --bord: #8a5cb0; --texte: #3d1a5c; }
.st-absente, .st-annulee { --fond: #f7cdc8; --bord: #c0392b; --texte: #5c130b; }
.resa-ligne.statut-annulee, .resa-ligne.statut-absente, .resa-ligne.statut-partie { opacity: 1; }
.resa-ligne.statut-partie { box-shadow: inset 4px 0 #8a5cb0; }
.resa-ligne.statut-absente, .resa-ligne.statut-annulee { box-shadow: inset 4px 0 #c0392b; }
.resa-onglets { margin: 2px 0 10px; }
.resa-onglets .bouton { flex: 1; white-space: nowrap; font-size: 14px; padding-inline: 8px; min-height: 38px; }

/* Le haut des réservations (Maxim, 24 nov. 13 h 10) : date en lettres, boîte de largeur fixe, les flèches ne bougent jamais. */
.resa-date-boite { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 18.75em; flex: 0 0 18.75em;
  min-height: 44px; padding: 8px 10px; border: 1px solid #c9d3d2; border-radius: 10px; background: #fff; font-weight: 700; white-space: nowrap; cursor: pointer; overflow: hidden; }
.resa-date-boite:hover { border-color: #7d9a97; }
.resa-date-courte { display: none; }
.resa-navigation-date, .resa-commandes { display: contents; }
.resa-date-boite input.resa-date[type=date] { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.resa-aujourdhui[data-cache] { visibility: hidden; }
.resa-actions .bouton.primaire { margin-left: 8px; }
.resa-bas { flex-wrap: wrap; }

@media (max-width: 640px), (max-width: 950px) and (max-height: 520px) and (pointer: coarse) {
  .navigation-mobile .nav-libelle {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .navigation-mobile .nav { min-height: 50px; }
  .navigation-mobile .nav > .icone { width: 1.35rem; height: 1.35rem; }
  .navigation-mobile .pastille { min-width: 1.1rem; height: 1.1rem; font-size: .66rem; padding-inline: .2rem; }
  .titre-page:has(.resa-actions) .date-titre { display: none; }
  .resa-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    width: min(100%, 26rem);
  }
  .resa-navigation-date {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: .4rem;
    width: 100%;
  }
  .resa-date-boite { width: auto; padding-inline: .25rem; font-size: clamp(.78rem, 3.6vw, .94rem); }
  .resa-commandes { display: flex; justify-content: center; gap: .45rem; width: 100%; }
  .resa-commandes .bouton { flex: 1 1 auto; padding-inline: .55rem; }
  .resa-commandes .bouton.primaire { margin-left: 0; }
  .resa-aujourdhui { grid-row: 3; }
  .resa-aujourdhui[data-cache] { display: none; }
  .qui-travaille .note-exemples { margin-bottom: .35rem; }
  .legende-etat { display: inline-flex; align-items: center; gap: .35rem; }
  .legende-etat .pt { margin-right: 0; }
}

@media (max-width: 380px) {
  .resa-date-texte { display: none; }
  .resa-date-courte { display: inline; }
}

/* Liste complète des réservations du jour (Maxim, 24 nov. 14 h 11, comme la liste de Libro) : une fenêtre large, heure par heure. */
dialog:has(.liste-complete) { width: min(96vw, 68rem); }
.liste-complete .sous-texte { margin: 0 0 10px; }
.lc-tableau { display: grid; border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; }
.lc-titres, .lc-ligne { display: grid; grid-template-columns: minmax(150px, 1.4fr) 46px minmax(130px, 1.1fr) minmax(70px, .7fr) minmax(120px, 1fr) minmax(140px, 1.5fr) 112px; gap: 10px; align-items: center; padding: 8px 12px; }
.lc-titres { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--gris, #5d6b6a); background: #f3efe6; }
.lc-heure { display: flex; gap: 12px; align-items: baseline; padding: 6px 12px; background: #e6f0ef; border-top: 1px solid var(--trait); font-size: 14px; }
.lc-heure strong { color: #0c4f4c; font-size: 15px; min-width: 56px; }
.lc-ligne { border-top: 1px solid var(--trait); font-size: 14px; line-height: 1.3; }
.lc-ligne small { display: block; color: var(--gris, #5d6b6a); font-size: 12px; overflow-wrap: anywhere; }
.lc-nb { font-weight: 800; font-size: 16px; text-align: center; }
.lc-cases { display: flex; flex-wrap: wrap; gap: 4px; }
.lc-note { overflow-wrap: anywhere; }
.lc-placer { color: #c4621d; font-weight: 700; }
.lc-vide { color: #a7b3b2; }
.lc-terminee { opacity: .6; }
.lc-ligne .resa-statut { display: inline-block; max-width: none; }
@media (max-width: 760px) {
  .lc-titres { display: none; }
  .lc-ligne { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .lc-qui { grid-column: 1; } .lc-nb { grid-column: 2; grid-row: 1; }
  .lc-coord, .lc-tables, .lc-cases, .lc-note { grid-column: 1 / -1; }
  .lc-ligne > span:last-child { grid-column: 1 / -1; }
  .lc-vide { display: none; }
}

/* Cadenas de la Liste (Maxim, 24 nov. 14 h 22) : vert ouvert = on réserve en ligne ; rouge fermé = plus en ligne. */
.lc-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; flex-wrap: wrap; }
.lc-haut .sous-texte { margin: 0; }
.lc-heure { align-items: center; min-height: 40px; }
.lc-heure-vide { background: #f4f8f7; }
.lc-heure-vide strong { color: #5d7c7a; font-weight: 600; }
.lc-heure-fermee { background: #fbeeec; }
.lc-ferme-texte { margin-left: auto; white-space: nowrap; font-style: normal; font-size: 12px; font-weight: 700; color: #b23a2e; }
.lc-cadenas, .lc-cadenas-vide { margin-left: auto; flex: none; width: 32px; height: 32px; }
.lc-ferme-texte + .lc-cadenas { margin-left: 0; }
.lc-cadenas { display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #2e8b57; cursor: pointer; padding: 0; }
.lc-cadenas:hover:not(:disabled) { background: rgba(46, 139, 87, .12); }
.lc-cadenas.ferme { color: #c0392b; }
.lc-cadenas.ferme:hover:not(:disabled) { background: rgba(192, 57, 43, .12); }
.lc-cadenas:disabled { cursor: default; opacity: .7; }
.lc-cadenas .icone { width: 20px; height: 20px; }
.lc-cadenas-jour { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: #2e8b57; padding: 2px 4px; }
.lc-cadenas-jour .lc-rond { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid currentColor; border-radius: 50%; }
.lc-cadenas-jour .icone { width: 20px; height: 20px; }
.lc-cadenas-jour.ferme { color: #c0392b; }
.lc-cadenas-jour.ferme .lc-rond { background: #fbeeec; }
.bouton.lc-liste-fermee .icone { color: #c0392b; }

/* Walk-in dans le menu d'une table : 1 à 10 personnes en petite grille (Maxim, 24 nov. 14 h 13). */
.menu-table .menu-sous { margin: 6px 10px 4px; font-size: 13px; font-weight: 700; color: #5d6b6a; }
.menu-table .menu-nombres { display: grid; grid-template-columns: repeat(5, 40px); gap: 6px; padding: 4px 10px 10px; }
.menu-table .menu-nombres button { width: 40px; height: 40px; padding: 0; justify-content: center; text-align: center; font-weight: 800; font-size: 16px; border: 1px solid var(--trait); border-radius: 10px; }

/* Table déjà prise (Maxim, 24 nov. 14 h 35) : Échanger, Forcer ou Annuler. */
.conflit-resa p { margin: 0 0 8px; }
.conflit-resa ul { margin: 0 0 14px; padding-left: 20px; }
.conflit-resa li { margin: 3px 0; }
.conflit-choix { display: grid; gap: 10px; }
.conflit-option { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; }
.conflit-option .bouton { width: 100%; justify-content: center; }
.conflit-option p { margin: 0; font-size: 14px; }
.conflit-option.impossible p { color: #b23a2e; }
@media (max-width: 520px) { .conflit-option { grid-template-columns: 1fr; gap: 6px; } }

/* Survol d'une table (Maxim, 24 nov. 14 h 47) : l'encadré dans l'espace vide du plan ; « +1 » = d'autres réservations sur la table.
   Le détail rapetisse s'il manque de place ; « Ensuite » reste toujours visible en bas. */
.fiche-table { position: absolute; z-index: 6; display: flex; flex-direction: column; overflow: hidden; padding: 9px 11px; background: #fffdf8; border: 1px solid #d9cfbb; border-left: 4px solid var(--sarcelle); border-radius: 12px; box-shadow: 0 8px 24px rgba(12, 79, 76, .16); font-size: 12.5px; line-height: 1.3; pointer-events: none; }
.fiche-table[hidden] { display: none; }
.fiche-table p { margin: 0 0 4px; }
.fiche-table .ft-detail { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.fiche-table .ft-suite { flex: 0 0 auto; }
.fiche-table .ft-table { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #5d6b6a; }
.fiche-table .ft-nom { font-size: 15px; font-weight: 800; color: #10302f; overflow-wrap: anywhere; line-height: 1.2; }
.fiche-table .ft-quand { font-weight: 700; color: var(--sarcelle); }
.fiche-table .ft-ligne { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fiche-table .ft-ligne .resa-statut { font-size: 11px; padding: 2px 7px; }
.fiche-table small { color: #5d6b6a; font-size: 11.5px; }
.fiche-table .ft-coord small { display: block; overflow-wrap: anywhere; }
.fiche-table .ft-badges { display: flex; flex-wrap: wrap; gap: 3px; }
.fiche-table .ft-badges .badge-resa { font-size: 11px; }
.fiche-table .ft-note { padding: 4px 7px; background: #f3efe6; border-radius: 7px; overflow-wrap: anywhere; }
.fiche-table .ft-petit { font-size: 11.5px; color: #5d6b6a; }
.fiche-table .ft-titre { margin: 5px 0 2px; padding-top: 5px; border-top: 1px solid #e6dfcf; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #5d6b6a; }
.fiche-table ul { margin: 0; padding: 0; list-style: none; }
.fiche-table li { margin: 1px 0; overflow-wrap: anywhere; }
.fiche-table li strong { display: inline-block; min-width: 3.2em; color: var(--sarcelle); }
.table-plus { position: absolute; top: -8px; right: -9px; min-width: 14px; height: 14px; padding: 0 2px; border-radius: 7px; background: #e07a2e; color: #fff; font-size: 8.5px; font-weight: 800; line-height: 14px; text-align: center; box-shadow: 0 0 0 1.5px #f7f3ea; z-index: 1; }
/* Maxim, 24 nov. 14 h 58 : l'encadré ouvert par un clic reste, avec les statuts et les gestes ; il peut descendre jusqu'en bas du plan. */
.fiche-table.epinglee { pointer-events: auto; overflow-y: auto; overscroll-behavior: contain; border-left-color: var(--orange, #e07a2e); box-shadow: 0 10px 30px rgba(12, 79, 76, .22); }
.fiche-table.epinglee .ft-detail { flex: none; overflow: visible; }
.fiche-table .ft-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.fiche-table .ft-fermer { all: unset; flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin: -4px -5px 0 0; border-radius: 7px; cursor: pointer; color: #5d6b6a; }
.fiche-table .ft-fermer .icone { width: 16px; height: 16px; }
.fiche-table .ft-fermer:hover, .fiche-table .ft-fermer:focus-visible, .fiche-table .ft-points:hover, .fiche-table .ft-points:focus-visible { background: #eef4f3; color: #10302f; }
.fiche-table .ft-actions { margin: 6px 0 2px; padding-top: 7px; border-top: 1px solid #e6dfcf; }
.fiche-table .ft-statuts { display: flex; flex-wrap: wrap; gap: 3px; }
.fiche-table .ft-statuts button { all: unset; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 7px 3px 5px; border: 1px solid #e6dfcf; border-radius: 8px; background: #fff; cursor: pointer; font-size: 11.5px; line-height: 1.25; color: #1f2a2a; }
.fiche-table .ft-statuts button:hover, .fiche-table .ft-statuts button:focus-visible { background: #eef4f3; border-color: #c9d3d2; }
.fiche-table .ft-statuts button[aria-current="true"] { font-weight: 700; border-color: var(--sarcelle); background: #eef4f3; }
.fiche-table .pt { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 4px; border: 2px solid var(--bord, #9fb3b1); background: var(--fond, #fff); }
.fiche-table .ft-boutons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fiche-table .ft-boutons .bouton { flex: 1 1 auto; justify-content: center; gap: 4px; min-height: 0; padding: 4px 7px; font-size: 11.5px; line-height: 1.25; }
.fiche-table .ft-boutons .icone { width: 12px; height: 12px; }
.fiche-table.epinglee { padding: 8px 9px; }
.fiche-table li { display: flex; align-items: center; gap: 4px; }
.fiche-table .ft-li-texte { flex: 1 1 auto; min-width: 0; }
.fiche-table .ft-points { all: unset; flex: none; display: grid; place-items: center; width: 28px; height: 22px; border-radius: 7px; cursor: pointer; color: #3c4848; }
.fiche-table .ft-points .icone { width: 18px; height: 18px; fill: currentColor; }
.salle .table-resa.epinglee { outline: 3px solid var(--orange, #e07a2e); outline-offset: 2px; z-index: 4; }
/* Maxim, 24 nov. 15 h 14 : le statut de la liste est un bouton (carré de couleur) qui ouvre les encadrés de couleur. */
.resa-ligne button.resa-statut-carre { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 30px; text-align: center; }
.resa-ligne button.resa-statut-carre:focus-visible { outline: 3px solid var(--sarcelle); outline-offset: 2px; }
@media (min-width: 1001px) {
  .resa-ligne button.resa-statut-carre { width: 30px; min-width: 30px; max-width: 30px; height: 30px; flex: 0 0 30px; padding: 0; }
  .resa-ligne button.resa-statut-carre .rs-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.menu-statut .pt { width: 18px; height: 18px; border-radius: 5px; }
/* Paie et pourboires (Maxim, 24 nov. 15 h 19). */
.gestion-ouvert .bouton { align-self: flex-start; margin-top: 8px; }
.paie-saisie, .paie-alertes, .paie-page { margin-bottom: 16px; }
.paie-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.paie-jour { display: flex; flex-direction: column; gap: 3px; padding: 7px; border: 1px solid #e3e8e7; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 700; color: #3c4848; }
.paie-jour.a-venir { opacity: .6; }
.paie-jour input { width: 100%; min-width: 0; box-sizing: border-box; padding: 6px 7px; border: 1.5px solid #c9d3d2; border-radius: 8px; font: inherit; font-size: 15px; text-align: right; }
.paie-jour input:focus { outline: 3px solid var(--sarcelle); outline-offset: 1px; }
.paie-jour small { font-weight: 500; color: #5d6b6a; }
.paie-total { margin: 12px 0 0; }
.paie-ecart, .paie-rouge, .paie-rouge td, .paie-rouge th { color: #b3412e; }
.paie-alertes { border-left: 4px solid #b3412e; }
.paie-alertes ul { margin: 6px 0 0; padding-left: 18px; }
.paie-alertes li { margin: 3px 0; color: #7a2a1d; }
.paie-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.paie-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.paie-table caption { text-align: left; font-weight: 800; margin-bottom: 4px; color: var(--sarcelle); }
.paie-table th, .paie-table td { padding: 5px 8px; border-bottom: 1px solid #e9edec; text-align: left; }
.paie-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #5d6b6a; }
.paie-table .nb { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paie-table tfoot td { font-weight: 800; border-top: 2px solid #c9d3d2; border-bottom: 0; }
.paie-detail .paie-jour-titre th { padding-top: 12px; background: #f3f6f5; color: #10302f; text-transform: none; font-size: 13px; letter-spacing: 0; }
.paie-four td:not(.paie-case) { color: #8a7a68; }
.paie-case label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; }
.paie-case small { color: #5d6b6a; }
.paie-imprime { display: none; }
.fiches-paie { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; } .fp { min-width: 0; }
.messages.messages-fiches { height: auto; min-height: 0; overflow: visible; } /* une fiche se lit en entier, la page défile */
.fp { background: #f3ead8; border-radius: 14px; padding: 18px 20px; color: #20343a; }
.fp h3 { font-size: 22px; margin: 0; color: #1f6f73; }
.fp .fp-s { margin: 3px 0 0; font-size: 14.5px; color: #5b6b6e; }
.fp h4 { font-size: 16px; color: #1f6f73; margin: 16px 0 7px; }
.fp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.fp-j { background: #fff; border-radius: 8px; padding: 5px 3px; text-align: center; font-size: 12px; line-height: 1.25; }
.fp-j b { display: block; color: #1f6f73; } .fp-j span { display: block; color: #7a8689; font-size: 11px; } .fp-j i { display: block; font-style: normal; font-weight: 700; font-size: 13.5px; }
.fp table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 9px; overflow: hidden; font-size: 14px; }
.fp th { background: #1f6f73; color: #fff; text-align: left; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.fp td { padding: 4.5px 10px; border-bottom: 1px solid #eee3cf; } .fp tbody tr:nth-child(even) td { background: #fbf7ef; }
.fp tfoot td { background: #e6f0ef; font-weight: 700; border-bottom: 0; }
.fp .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .fp .f { font-weight: 700; }
.fp-note { font-size: 12px; color: #5b6b6e; margin: 8px 0 0; line-height: 1.4; }
.fp-pied { font-size: 12px; color: #5b6b6e; margin: 10px 0 0; }
.fp-detail { margin-top: 12px; } .fp-detail summary { cursor: pointer; font-weight: 700; color: #1f6f73; padding: 6px 0; }
.fp-grille { overflow-x: auto; margin-top: 6px; border-radius: 9px; }
.fp-grille table { font-size: 11px; } .fp-grille th { font-weight: 400; font-size: 10.5px; padding: 4px 3px; text-align: center; line-height: 1.2; }
.fp-grille td { padding: 2px 3px; text-align: center; line-height: 1.15; } .fp-grille td b { display: block; } .fp-grille td small { display: block; color: #5b6b6e; font-size: 9.5px; }
.fp-grille th:first-child, .fp-grille td:first-child { text-align: left; position: sticky; left: 0; white-space: nowrap; padding-left: 8px; }
.fp-grille td:first-child { background: #fff; } .fp-grille th:first-child { background: #1f6f73; } .fp-vide { color: #c9bfae; }
@media (max-width: 700px) { .fp-cal { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fp { padding: 14px 12px; } .fp table { font-size: 13px; } .fp td, .fp th { padding: 4px 6px; } }
.paie-deplier { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 14px; padding: 10px 12px; border: 1px solid #e3e8e7; border-radius: 10px; background: #f3f6f5; color: #10302f; font: inherit; text-align: left; cursor: pointer; }
.paie-deplier span { display: flex; flex-direction: column; gap: 2px; }
.paie-deplier small { font-size: 13px; color: #5d6b6a; }
.paie-deplier .icone { flex: none; width: 18px; height: 18px; transform: rotate(90deg); stroke-width: 2.5; transition: transform .15s; }
.paie-deplier[aria-expanded="true"] .icone { transform: rotate(-90deg); }
.paie-deplier[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.paie-deplier:hover, .paie-deplier:focus-visible { border-color: var(--sarcelle); outline: none; }
.paie-detail-corps { padding: 4px 2px 0; }
@media (max-width: 1000px) { .paie-jours { grid-template-columns: repeat(2, minmax(0, 1fr)); } .paie-deux { grid-template-columns: 1fr; } }
@media print {
  body * { visibility: hidden; }
  .paie-rapport, .paie-rapport * { visibility: visible; }
  .facture-rapport, .facture-rapport * { visibility: visible; }
  .facture-rapport { position: absolute; inset: 0 auto auto 0; width: 100%; box-shadow: none; border: 0; padding: 0; }
  .facture-rapport-defile { overflow: visible !important; }
  .facture-rapport tr { break-inside: avoid; }
  .paie-rapport { position: absolute; inset: 0 auto auto 0; width: 100%; }
  .paie-rapport .paie-imprime { display: block; }
  .paie-rapport h1.paie-imprime { font-size: 18px; margin: 0 0 10px; }
  .paie-page { box-shadow: none; border: 0; padding: 0; break-inside: auto; }
  .paie-page + .paie-page { break-before: page; }
  .paie-case input { display: none; }
  .paie-deplier { display: none; }
  .paie-detail-corps, .paie-detail-corps[hidden] { display: block !important; break-before: page; }
}
.paie-jour label { display: flex; flex-direction: column; gap: 2px; }
.paie-jour label small { font-size: 11px; font-weight: 600; color: #5d6b6a; }
.paie-jour input + input { margin-top: 4px; }
.paie-stats { margin-bottom: 16px; }
.paie-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.paie-tuile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #eef4f3; }
.paie-tuile small { font-size: 12px; font-weight: 700; color: #3c4848; }
.paie-tuile strong { font-size: 20px; color: var(--sarcelle); font-variant-numeric: tabular-nums; }
.paie-tuile span { font-size: 12px; color: #5d6b6a; }

/* Période de la paie entre les deux flèches (Maxim, 24 nov.) */
.paie-periode { display: inline-flex; align-items: center; gap: 6px; }
.paie-periode-nom { display: inline-flex; flex-direction: column; align-items: center; min-width: 128px; line-height: 1.15; }
.paie-periode-nom small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #5d6b6a; }
.paie-periode-nom strong { font-size: 15px; font-weight: 800; color: var(--sarcelle); white-space: nowrap; }

/* Classeur de la Gestion (Maxim, 24 nov.) : Factures, Écoles, Documents utiles */
.classeur-onglets { flex-wrap: wrap; margin-bottom: 12px; }
.classeur-onglets small { margin-left: 4px; font-weight: 600; opacity: .65; }
.classeur-recherche { display: flex; align-items: center; gap: 8px; max-width: 520px; margin-bottom: 14px; padding: 0 12px; border: 1.5px solid #c9d3d2; border-radius: 10px; background: #fff; }
.classeur-recherche svg { width: 18px; height: 18px; flex: none; color: #5d6b6a; }
.classeur-recherche input { flex: 1; min-width: 0; border: 0; padding: 10px 0; font: inherit; background: transparent; }
.classeur-recherche:focus-within { outline: 3px solid var(--sarcelle); outline-offset: 1px; }
.classeur-recherche input:focus { outline: none; }
.classeur-depot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; border: 2px dashed #9fb7b4; background: #f4f8f7; }
.classeur-depot > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; }
.classeur-depot span { color: #4d5b5a; font-size: 14px; }
.classeur-depot em { font-style: normal; font-weight: 700; color: var(--sarcelle); }
.classeur-depot.survol { border-color: var(--sarcelle); background: #e2efed; }
.classeur-choisir { position: relative; cursor: pointer; }
.classeur-choisir input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.classeur-choisir:focus-within { outline: 3px solid var(--sarcelle); outline-offset: 2px; }
.classeur-sorte { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.classeur-sorte select { padding: 7px 8px; border: 1.5px solid #c9d3d2; border-radius: 8px; font: inherit; }
.classeur-rapport { margin-bottom: 16px; }
.classeur-rapport .paie-tuile.classeur-du strong { color: #b3412e; }
.classeur-groupes { margin-top: 12px; max-width: 720px; }
.classeur-liste ul { list-style: none; margin: 8px 0 0; padding: 0; }
.classeur-ligne { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid #e9edec; }
.classeur-ligne.impayee { box-shadow: inset 3px 0 0 #d9826b; padding-left: 8px; }
.classeur-vignette { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #e8efee; color: var(--sarcelle); font-weight: 800; font-size: 13px; text-decoration: none; border: 1px solid #d7e0df; }
.classeur-vignette img { width: 100%; height: 100%; object-fit: cover; }
.classeur-champs { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.classeur-champ { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: #5d6b6a; }
.classeur-champ input, .classeur-champ select { padding: 6px 8px; border: 1.5px solid #c9d3d2; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 500; color: #1f2b2b; background: #fff; }
.classeur-champ input:focus, .classeur-champ select:focus { outline: 3px solid var(--sarcelle); outline-offset: 1px; }
.classeur-titre { flex: 2 1 220px; } .classeur-tiers, .classeur-categorie { flex: 1 1 150px; } .classeur-note { flex: 3 1 260px; }
.classeur-date { flex: 0 1 150px; } .classeur-montant { flex: 0 1 110px; } .classeur-montant input { text-align: right; } .classeur-statut, .classeur-genre { flex: 0 1 120px; }
.classeur-meta { margin: 6px 0 0; font-size: 12.5px; color: #5d6b6a; overflow-wrap: anywhere; }
.classeur-meta a { color: var(--sarcelle); font-weight: 700; }
@media (max-width: 700px) {
  .classeur-ligne { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; }
  .classeur-vignette { width: 48px; height: 48px; }
  .classeur-champ { flex: 1 1 100% !important; }
  .classeur-date, .classeur-montant, .classeur-statut { flex: 1 1 30% !important; }
}
.classeur-recherche input[type=search], .classeur-recherche input[type=search]:focus { border: 0; box-shadow: none; outline: none; border-radius: 0; padding: 10px 0; background: transparent; }
.paie-publie { margin: -4px 0 14px; padding: 8px 12px; border-radius: 10px; background: #fbf1e6; color: #7a4a1d; font-weight: 600; font-size: 14px; }
.paie-publie.fait { background: #e6f1ef; color: var(--sarcelle); }
@media print { .paie-publie { display: none; } }

.resa-liste-mobile { min-width: 0; }
.resa-liste-mobile .lc-titres { display: none; }
.resa-liste-mobile .lc-ligne {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .3rem .6rem;
}
.resa-liste-mobile .lc-qui { grid-column: 1; overflow-wrap: anywhere; }
.resa-liste-mobile .lc-nb { grid-column: 2; grid-row: 1; }
.resa-liste-mobile .lc-coord,
.resa-liste-mobile .lc-tables,
.resa-liste-mobile .lc-cases,
.resa-liste-mobile .lc-note { grid-column: 1 / -1; }
.resa-liste-mobile .lc-vide { display: none; }
.resa-liste-mobile .lc-etat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
}
.resa-liste-mobile .lc-etat .bouton-icone,
.resa-liste-mobile .lc-cadenas { min-width: 44px; min-height: 44px; }
.resa-liste-mobile .lc-cadenas-jour { min-height: 44px; }
.resa-liste-mobile .lc-tableau, .resa-liste-mobile .lc-qui { min-width: 0; }
.resa-liste-mobile .lc-heure { gap: 8px; padding: 4px 10px; }
.resa-liste-mobile .lc-heure > span { flex: 1; min-width: 0; font-size: 13px; }

/* Ligne du temps au téléphone (Maxim, 25 nov. 15 h 10) : 14-15 personnes d'un coup d'œil, sans défilement de côté. */
.chrono-compact { --nom: 5.2rem; position: relative; }
.cc-heures { position: relative; height: 1.25rem; margin-left: var(--nom); border-bottom: 1px solid var(--trait); color: var(--second); font-size: .72rem; }
.cc-heures span { position: absolute; top: .1rem; transform: translateX(-50%); white-space: nowrap; }
.cc-lignes { position: relative; display: grid; gap: 3px; padding: 4px 0; }
.cc-fond { position: absolute; top: 0; bottom: 0; left: var(--nom); right: 0; pointer-events: none;
  background: repeating-linear-gradient(to right, var(--trait) 0 1px, transparent 1px calc(100% / var(--heures))); }
.cc-rangee { all: unset; position: relative; display: grid; grid-template-columns: var(--nom) minmax(0, 1fr); align-items: center; height: 30px; cursor: pointer; }
.cc-rangee:focus-visible { outline: 3px solid var(--encre); outline-offset: 1px; border-radius: 6px; }
.cc-nom { overflow: hidden; padding-right: .35rem; font-size: .8rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cc-piste { position: relative; display: block; height: 100%; }
.chrono-compact .cc-barre { height: 100%; min-height: 0; gap: .3rem; padding: 0 .3rem 0 0; border-radius: 6px; font-size: .72rem; }
.chrono-compact .cc-barre b { min-width: 1.1rem; font-size: .7rem; }
.chrono-compact .cc-barre small { overflow: hidden; font-weight: 600; text-overflow: ellipsis; }
.chrono-compact .cc-essai { background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .25) 0 4px, transparent 4px 9px); }
.chrono-compact .chrono-maintenant { z-index: 2; }
.horaire-plus { position: relative; }
.horaire-plus .pastille { position: absolute; top: -4px; right: -4px; }
.menu-horaire .pastille { margin-left: auto; }
@media (max-width: 640px), (max-width: 950px) and (max-height: 520px) and (pointer: coarse) {
  .onglets-horaire { flex-wrap: nowrap; gap: .3rem; }
  .onglets-horaire .bouton { padding: .45rem .55rem; font-size: .85rem; white-space: nowrap; }
  .qui-compact { padding: .55rem .5rem .4rem; }
  .qui-compact .sous-texte { margin: 0 0 .35rem; font-size: .78rem; }
  .sous-onglets .bouton { min-height: 38px; padding-block: .3rem; }
  .cc-lignes { gap: 2px; }
  .cc-rangee { height: 28px; }
}
@media (max-width: 640px), (max-width: 950px) and (max-height: 520px) and (pointer: coarse) {
  .rangee > .actions:has(.horaire-plus) { flex-wrap: nowrap; }
  .rangee > .actions:has(.horaire-plus) .bouton-date { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 359px) { .onglets-horaire { flex-wrap: wrap; } }

/* Graphiques de la paie (Maxim, 25 nov. 15 h 10) : l'année choisie en sarcelle, les deux d'avant derrière. */
.paie-tuile { position: relative; }
.paie-tuile-graphe { display: inline-flex; align-items: center; gap: .3rem; margin-top: .45rem; min-height: 36px; padding: .25rem .6rem; border: 1px solid #c9d3d2; border-radius: 999px; background: #fff; color: #0c4f4c; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.paie-tuile-graphe .icone { width: 16px; height: 16px; }
.paie-tuile-graphe[aria-pressed="true"] { background: #0c4f4c; border-color: #0c4f4c; color: #fff; }
.paie-graphe { margin: 1rem 0; padding: .8rem; border: 1px solid var(--trait); border-radius: 12px; background: #fffdf8; }
.paie-graphe-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.paie-graphe-tete h3 { margin: 0; font-size: 1.05rem; }
.paie-graphe-tete .actions { align-items: center; }
.paie-graphe-an { min-width: 3.2rem; text-align: center; font-size: 1.05rem; }
.pg-legende { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .5rem 0; padding: 0; list-style: none; font-size: .85rem; font-weight: 700; }
.pg-legende li { display: flex; align-items: center; gap: .35rem; }
.pg-legende svg { width: 34px; height: 12px; overflow: visible; }
.pg-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pg-grille { stroke: #e3e8e7; stroke-width: 1; }
.pg-axe { fill: #5d6b6a; font-size: 12px; }
.pg-ligne { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pg-an-0 line, .pg-an-0 .pg-ligne { stroke: #14706a; stroke-width: 3; }
.pg-an-0 circle { fill: #14706a; stroke: #fff; stroke-width: 1.5; }
.pg-an-1 line, .pg-an-1 .pg-ligne { stroke: #e07f2a; stroke-width: 2.5; stroke-dasharray: 7 5; }
.pg-an-1 rect { fill: #e07f2a; stroke: #fff; stroke-width: 1.5; }
.pg-an-2 line, .pg-an-2 .pg-ligne { stroke: #8a6a4a; stroke-width: 2.2; stroke-dasharray: 2 4; }
.pg-an-2 path:not(.pg-ligne) { fill: #8a6a4a; stroke: #fff; stroke-width: 1.5; }
.pg-table td small { display: block; color: var(--gris, #5d6b6a); font-size: .72rem; font-weight: 500; }
@media (max-width: 640px) {
  .paie-graphe { padding: .6rem .5rem; }
  .pg-table { width: 100%; table-layout: fixed; font-size: .8rem; }
  .pg-table th, .pg-table td { padding: .35rem .2rem; overflow-wrap: anywhere; }
  .pg-table th:first-child, .pg-table td:first-child { width: 3.2rem; }
  .paie-graphe .sous-texte { font-size: .82rem; }
}

/* Paie et pourboires au téléphone (Maxim, 25 nov. 15 h 34) : rien ne dépasse, la page ne glisse plus de côté.
   Les tableaux se resserrent (police, marges, en-têtes sur deux lignes) au lieu de déborder. */
@media (max-width: 640px), (max-width: 950px) and (max-height: 520px) and (pointer: coarse) {
  .paie-page, .paie-stats, .paie-saisie, .paie-alertes { padding-inline: 10px; }
  .paie-table { font-size: 12px; }
  .paie-table caption { font-size: 13px; }
  .paie-table th, .paie-table td { padding: 5px 3px; }
  .paie-table thead th, .paie-table thead th.nb { font-size: 10px; letter-spacing: 0; white-space: normal; overflow-wrap: break-word; hyphens: auto; vertical-align: bottom; }
  .paie-table td:not(.nb), .paie-table th:not(.nb) { overflow-wrap: break-word; }
  .paie-table tbody td:first-child { min-width: 3.4em; }
  .paie-table .nb { font-size: 11.5px; }
  .paie-case label { display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: 12px; }
}

/* Disponibilité à la Seven Shifts (Maxim, 25 nov. 15 h 45) : les sept jours d'un coup, Récurrent ou Temporaire. */
.dispo-mode { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; border: 0; padding: 0; margin: 0; }
.dispo-mode legend { margin-bottom: .35rem; font-weight: 700; }
.dispo-mode label { display: flex; gap: .5rem; align-items: flex-start; padding: .6rem .7rem; border: 1px solid #c9d3d2; border-radius: 10px; cursor: pointer; }
.dispo-mode label:has(input:checked) { border-color: #0c4f4c; background: #eef4f3; box-shadow: inset 0 0 0 1px #0c4f4c; }
.dispo-mode input { margin-top: .2rem; accent-color: #0c4f4c; }
.dispo-mode small { display: block; color: #5d6b6a; font-size: .78rem; font-weight: 500; }
.dispo-jours { display: grid; gap: .35rem; }
.dispo-jour { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: .5rem; padding: .35rem .5rem; border: 1px solid #e3e8e7; border-radius: 10px; }
.dispo-jour.inactif { background: #f6f7f6; }
.dispo-jour.inactif .dispo-heures { opacity: .55; }
.dispo-coche { display: flex; align-items: center; gap: .45rem; min-height: 40px; font-weight: 700; cursor: pointer; }
.dispo-coche input { width: 20px; height: 20px; accent-color: #0c4f4c; }
.dispo-heures { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.dispo-heures { flex-wrap: nowrap; }
.dispo-heures select { min-width: 0; width: 5.2rem; min-height: 40px; padding: .2rem .3rem; border: 1px solid #c9d3d2; border-radius: 8px; background: #fff; font: inherit; }
.dispo-heures .bouton.raccourci { min-height: 34px; padding: .15rem .5rem; font-size: .78rem; }
.dispo-souhaits { display: grid; gap: .5rem; border: 1px solid #e3e8e7; border-radius: 10px; padding: .6rem .7rem; }
.dispo-souhaits legend { padding: 0 .3rem; font-weight: 700; }
.dispo-bloc { margin-bottom: .6rem; }
.dispo-bloc h3 { margin: .2rem 0 .35rem; font-size: .95rem; }
.dispo-bloc .rangee { align-items: center; }
.dispo-semaine { margin: 0; padding: 0; list-style: none; border: 1px solid #e3e8e7; border-radius: 10px; }
.dispo-semaine li { display: flex; justify-content: space-between; gap: .75rem; padding: .35rem .6rem; border-top: 1px solid #eef1f0; font-size: .9rem; }
.dispo-semaine li:first-child { border-top: 0; }
.dispo-semaine em { color: #7a8786; font-style: normal; }
.dispo-personne { border-bottom: 1px solid #e3e8e7; padding: .4rem 0; }
.dispo-personne summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }
@media (max-width: 640px) {
  .dispo-mode { grid-template-columns: 1fr; }
  .dispo-jour { grid-template-columns: 1fr; gap: .2rem; }
  .dispo-jour { padding: .3rem .45rem; }
  .dispo-heures select { width: 4.9rem; }
  .dispo-heures .bouton.raccourci { padding: .15rem .4rem; }
}

/* Liens légaux au bas de l'accueil et de la connexion (Maxim, 25 nov. 16 h 07) : très pâles, discrets. */
.pied-legal { text-align: center; font-size: 12px; color: #9aa5a4; margin: 28px 0 8px; }
.pied-legal a { color: inherit; text-decoration: none; }
.pied-legal a:hover, .pied-legal a:focus-visible { text-decoration: underline; color: #5d6b6a; }
.connexion .pied-legal { margin-top: 18px; }

/* Rester connecté (25 nov.) : case discrète sous le mot de passe, une ligne d'aide pâle. */
.connexion .rester { display: flex; align-items: flex-start; gap: .55rem; min-height: 44px; padding-top: .35rem; cursor: pointer; font-weight: 600; }
.connexion .rester input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; accent-color: var(--sarcelle); }
.connexion .rester small { display: block; font-weight: 400; font-size: .82rem; color: var(--second); margin-top: .1rem; }
.installer { margin-top: .4rem; padding: .85rem 1rem; background: var(--pale); border-radius: 14px; }
.installer p { margin: 0 0 .4rem; }
.installer p:last-child { margin-bottom: 0; }

/* Factures (25 nov. 21 h 26) : deux portes (Cash, En ligne), puis quatre trimestres ; l'année à droite des onglets. */
.facture-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.facture-barre .classeur-onglets { margin: 0; }
.facture-annee { display: inline-flex; align-items: center; gap: .35rem; }
.facture-annee strong { min-width: 3.2rem; text-align: center; font-size: 1.05rem; }
.facture-portes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin: .9rem 0 .35rem; }
.facture-trimestres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facture-porte { display: grid; gap: .2rem; align-content: start; text-align: left; font: inherit; color: var(--encre); background: var(--papier);
  border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.1rem; cursor: pointer; min-height: 44px; }
.facture-porte:hover, .facture-porte:focus-visible { border-color: var(--vert); box-shadow: 0 0 0 3px var(--pale); }
.facture-porte-titre { font-weight: 800; font-size: 1.08rem; }
.facture-porte small { color: var(--second); }
.facture-porte strong { font-size: 1.35rem; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.facture-porte span:last-child { color: var(--second); font-size: .88rem; }
.facture-porte em { color: var(--danger); font-style: normal; font-weight: 700; }
.facture-aide { margin: 0 0 .9rem; }
.classeur-rapport h2 small { font-weight: 500; color: var(--second); font-size: .9rem; }
.classeur-groupes td small { color: var(--second); margin-left: .3rem; }
@media (max-width: 760px) { .facture-trimestres { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facture-porte strong { font-size: 1.15rem; } }
.facture-ventilation { width: 100%; max-width: 420px; border-collapse: collapse; margin-top: .9rem; font-variant-numeric: tabular-nums; }
.facture-ventilation td { padding: .3rem 0; border-bottom: 1px solid var(--trait); }
.facture-ventilation td.nb { text-align: right; }
.facture-ventilation tfoot td { border-bottom: 0; border-top: 2px solid var(--encre); font-weight: 800; padding-top: .45rem; }

/* Écoles (25 nov. 21 h 40) : le suivi en cinq colonnes (une seule au téléphone), une carte par activité. */
.ecoles-suivi .rangee { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.ecoles-cadran { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); align-items: start; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .2rem; }
.ecole-colonne { background: var(--fond); border-radius: 16px; padding: .7rem .6rem; border-top: 4px solid var(--trait); min-width: 0; }
.ecole-col-a-confirmer { border-top-color: var(--orange); }
.ecole-col-preparation { border-top-color: var(--vert); }
.ecole-col-ecole { border-top-color: var(--sarcelle); }
.ecole-col-four { border-top-color: var(--danger); }
.ecole-col-prete { border-top-color: #c9a227; }
.ecole-col-livree { border-top-color: var(--second); }
.ecole-colonne h3 { margin: 0; font-size: 1rem; }
.ecole-entete { width: 100%; display: flex; align-items: center; gap: .4rem; font: inherit; font-weight: 800; color: var(--encre); background: none; border: 0;
  padding: 0; min-height: 36px; cursor: pointer; text-align: left; border-radius: 10px; }
.ecole-entete span { flex: 1; min-width: 0; }
.ecole-entete small { color: var(--second); font-weight: 700; background: var(--papier); border-radius: 999px; padding: 0 .5rem; }
.ecole-entete .icone { width: 22px; height: 22px; flex: none; color: var(--second); transition: transform .15s; }
.ecole-entete:hover .icone, .ecole-entete:focus-visible .icone { color: var(--vert); }
.ecole-colonne.fermee { padding-top: .35rem; padding-bottom: .35rem; }
.ecole-colonne.fermee .ecole-entete .icone { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .ecole-entete .icone { transition: none; } }
.ecole-colonne > .sous-texte { margin: .15rem 0 .55rem; font-size: .8rem; }
.ecole-colonne ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ecole-vide { color: var(--second); font-size: .85rem; margin: .3rem 0; }
.ecole-carte { background: var(--papier); border: 1px solid var(--trait); border-radius: 12px; padding: .6rem .65rem; display: grid; gap: .3rem; min-width: 0; }
.ecole-carte p { margin: 0; }
.ecole-nom { font: inherit; font-weight: 800; font-size: .95rem; line-height: 1.25; text-align: left; color: var(--encre); background: none; border: 0; padding: 0;
  cursor: pointer; min-height: 32px; overflow-wrap: break-word; }
.ecole-nom:hover, .ecole-nom:focus-visible { color: var(--vert); text-decoration: underline; }
.ecole-quand { font-size: .85rem; font-weight: 700; }
.ecole-details { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .8rem; color: var(--second); }
.ecole-formule { white-space: nowrap; background: var(--pale); color: var(--sarcelle); border-radius: 999px; padding: .05rem .5rem; font-weight: 700; }
.ecole-formule.ecole-animation { background: #fde9d6; color: #8a4a12; }
.ecole-formule.ecole-cafe { background: #efe7da; color: #5b4a2f; }
.ecole-soumission { font-size: .82rem; font-weight: 700; }
.ecole-note { font-size: .8rem; }
.ecole-etape { display: grid; gap: .1rem; font-size: .75rem; color: var(--second); }
.ecole-etape select { min-height: 36px; font-size: .8rem; width: 100%; min-width: 0; padding-left: .4rem; padding-right: 1.6rem; }
/* Six étapes depuis « Prête à être livrée » (27 nov.) : deux rangées de trois tant que l'écran n'est pas très large. */
@media (min-width: 761px) and (max-width: 1500px) { .ecoles-cadran { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ecole-colonne > ul { max-height: 24rem; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; } }
@media (max-width: 760px) { .ecoles-cadran { grid-template-columns: 1fr; } }

/* Rapport des factures (Maxim, 25 nov. 23 h 54) : par type, puis le détail de chaque facture ; imprimable et en fichier pour Excel. */
.facture-rapport-actions { flex-wrap: wrap; margin-bottom: .6rem; }
.facture-rapport h2 { margin: .1rem 0 .4rem; }
.facture-rapport h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.facture-rapport table { width: 100%; }
.facture-rapport-types { max-width: 520px; }
.facture-rapport tfoot td { font-weight: 800; border-top: 2px solid var(--encre); }
.facture-rapport-defile { overflow-x: auto; }
.facture-rapport-detail td:nth-child(2) { overflow-wrap: break-word; }
.facture-rapport-detail td:first-child, .facture-rapport-detail td.nb { white-space: nowrap; }
.facture-rapport-detail .etat-court { display: none; font-size: 11px; font-weight: 700; color: var(--second); }
.facture-rapport-detail tr.impayee td.nb .etat-court { color: var(--danger); }
@media (max-width: 560px) {
  .facture-rapport .paie-table { font-size: 13px; }
  .facture-rapport .paie-table th, .facture-rapport .paie-table td { padding: 5px 4px; }
  .facture-rapport .paie-table th { font-size: 10px; letter-spacing: 0; }
  .facture-rapport-detail .col-etat { display: none; }
  .facture-rapport-detail .etat-court { display: block; }
}
.facture-rapport-detail tr.impayee td:last-child { color: var(--danger); }
.facture-rapport-pied { margin-top: .8rem; font-size: .8rem; }
.classeur-rapport .rangee { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.classeur-rapport .rangee h2 { margin: 0; }

/* Mes quarts : carte encadrée, bande à la couleur du poste (Maxim, 27 nov.) ; calendrier : heures du jour pour la gérance. */
.jour-quart.quart-colore { position: relative; border: 1px solid var(--trait); border-radius: 10px; padding: .45rem .5rem .45rem .9rem; margin-top: .35rem; background: var(--papier); overflow: hidden; }
.jour-quart .barre-poste { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; height: auto; margin: 0; border-radius: 0; }
.heures-jour { font-weight: 700; }

/* Case « Allergie » (Maxim, 27 nov.) : badge rouge qui dit laquelle ; un ⚠ à côté du nom dans les lignes repliées. */
.badge-resa.badge-allergie, .resa-ligne .badge-resa.badge-allergie { background: #fbeeec; color: #9e2a1f; border: 1px solid #e5a49b; white-space: normal; }
.marque-allergie { display: inline-block; margin-left: 5px; color: #c0392b; font-weight: 800; font-size: .95em; line-height: 1; }
.champ-allergie[hidden] { display: none; }

/* Liste des réservations au téléphone (Maxim, 27 nov.) : chaque ligne repliée (heure, nom, nombre, table, carré de statut) ;
   un toucher sur la ligne ouvre le détail ; les trois points gardent les actions. */
.resa-liste-mobile .lc-ligne.lc-pliee { grid-template-columns: minmax(0, 1fr) auto; gap: 0 2px; padding: 0 2px 0 0; align-items: center; }
.lc-sommaire { all: unset; box-sizing: border-box; grid-column: 1; grid-row: 1; min-width: 0; min-height: 48px; padding: 4px 4px 4px 10px; cursor: pointer;
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 1.8rem auto 12px; gap: 5px; align-items: center; }
.lc-sommaire:focus-visible { outline: 2px solid var(--sarcelle); outline-offset: -2px; border-radius: 8px; }
.lcs-heure { font-size: 12.5px; font-weight: 700; color: #0c4f4c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lcs-nom { min-width: 0; display: flex; align-items: center; }
.lcs-nom strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcs-nom .marque-allergie { flex: none; }
.lcs-nb { font-weight: 800; text-align: center; background: #f3efe6; border-radius: 6px; padding: 2px 0; }
.lcs-table { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; max-width: 4.6rem; overflow: hidden; text-overflow: ellipsis; }
.lcs-table.lc-vide { display: inline; color: #a7b3b2; }
.lcs-statut { width: 12px; height: 12px; border-radius: 3px; background: var(--fond, #fff); border: 2px solid var(--bord, #46524f); box-sizing: border-box; }
.resa-liste-mobile .lc-pliee > .bouton-icone { grid-column: 2; grid-row: 1; min-width: 44px; min-height: 44px; }
.resa-liste-mobile .lc-ouverte { background: #f6f8f8; }
.resa-liste-mobile .lc-ouverte .lc-sommaire { background: #eef4f3; }
.resa-liste-mobile .lc-ouverte .lc-nb, .resa-liste-mobile .lc-ouverte .lc-tables, .resa-liste-mobile .lc-ouverte .lc-qui strong { display: none; }
.resa-liste-mobile .lc-ouverte > span[role="cell"] { grid-column: 1 / -1; padding: 0 12px 0 calc(3.4rem + 13px); }
.resa-liste-mobile .lc-ouverte > span[role="cell"]:last-child { padding-bottom: 8px; justify-content: flex-start; }

/* Périodes fermées aux congés (Maxim, 27 nov.). */
.titre-periodes { margin: 4px 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #5d6b6a; }
.periode-fermee { background: #fdf3f1; border-radius: 10px; }
.avis-periodes { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #fbeeec; color: #7c2318; font-size: 14px; line-height: 1.4; }
.resa-liste-mobile .lc-ouverte .lcs-nom strong { white-space: normal; overflow: visible; overflow-wrap: anywhere; }

/* Plan de table plus grand (Maxim, 27 nov.) : marges réduites autour du plan, et un mode plein écran (bouton, Échap pour sortir). */
.resa-plan.carte { padding: 12px 12px 10px; }
.resa-plan .salle { margin-left: -2px; margin-right: -2px; }
@media (min-width: 1001px) { .resa-grille { grid-template-columns: minmax(330px, 0.75fr) minmax(480px, 2.5fr); gap: 12px; } }
.resa-bouton-plein { margin-left: auto; }
.resa-plan.plein-ecran { position: fixed; inset: 0; z-index: 60; margin: 0; border-radius: 0; border: 0; overflow: auto; padding: 10px 14px; background: var(--papier, #fffdf8); }
.resa-plan.plein-ecran .salle { width: min(100%, calc((100vh - 84px) * var(--ratio-salle, 1.6))); margin: 0 auto; }
body.plan-plein-ecran .menu-table { z-index: 70; }
body.plan-plein-ecran { overflow: hidden; }

/* Repères du plan (Maxim, 27 nov., comme Libro) : carré rouge = en retard ; carré jaune = occupée depuis plus de 3 h ;
   contour pointillé rouge = deux réservations à moins de 3 h d'écart sur cette table. La couleur du statut ne change pas.
   11 h 39 : le rectangle jaune devient un carré dans le coin, comme le retard (une table en retard n'est jamais occupée :
   les deux ne se rencontrent pas) ; le pointillé passe du mauve au rouge, plus visible. */
.table-resa .repere { position: absolute; pointer-events: none; }
.table-resa .repere-retard { top: -5px; left: -5px; width: 10px; height: 10px; background: #d63a2b; border: 1.5px solid #fff; border-radius: 2px; box-shadow: 0 0 0 1px #a52a1e; }
.table-resa .repere-long { top: -5px; left: -5px; width: 10px; height: 10px; background: #f2c400; border: 1.5px solid #fff; border-radius: 2px; box-shadow: 0 0 0 1px #a88600; }
.table-resa .repere-serre { inset: -5px; border: 2px dashed #d63a2b; border-radius: 9px; }
.legende-repere .repere-ex { display: inline-block; position: relative; vertical-align: -1px; margin-right: 5px; }
.repere-ex.repere-retard { width: 10px; height: 10px; background: #d63a2b; border-radius: 2px; }
.repere-ex.repere-long { width: 10px; height: 10px; background: #f2c400; border-radius: 2px; box-shadow: inset 0 0 0 1px #a88600; }
.repere-ex.repere-serre { width: 12px; height: 12px; border: 2px dashed #d63a2b; border-radius: 4px; }

/* Conversation Four (Maxim, 27 nov.) : deux rangées de cases sur 14 jours, sans prendre de place ; les lignes cochées en pâle. */
.cases-four { display: grid; grid-template-columns: 3.6rem repeat(14, minmax(0, 1fr)); gap: 3px; align-items: center; margin: 4px 0 10px; padding: 8px; background: #f6f8f8; border-radius: 10px; }
.cf-libelle { font-size: 12px; font-weight: 700; color: #0c4f4c; }
.cf-jour { display: flex; flex-direction: column; align-items: center; font-size: 10.5px; line-height: 1.15; color: #5d6b6a; }
.cf-jour b { font-size: 9.5px; font-weight: 600; text-transform: uppercase; }
.cf-jour.aujourdhui { color: #0c4f4c; font-weight: 800; }
.cf-case { all: unset; box-sizing: border-box; height: 26px; display: grid; place-items: center; border: 1.5px solid #c9d3d2; border-radius: 6px; background: #fff;
  color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; }
.cf-case.cochee { background: var(--sarcelle); border-color: var(--sarcelle); }
.cf-case.aujourdhui { border: 2px solid #0c4f4c; }
.cf-case:focus-visible { outline: 2px solid #e07a2e; outline-offset: 1px; }
.message-discret { align-self: center; margin: 2px auto; max-width: 92%; text-align: center; font-size: 12.5px; font-style: italic; color: #8a9796; }
.message-discret small { margin-left: 6px; font-style: normal; color: #a7b3b2; white-space: nowrap; }
@media (max-width: 600px) { .cases-four { grid-template-columns: 3.3rem repeat(14, minmax(0, 1fr)); gap: 2px; padding: 6px; } .cf-case { height: 24px; border-radius: 5px; } .cf-libelle { font-size: 11px; } }

/* Horodateur (Maxim, 27 nov.) : un employé par carte repliable, ses punchs en tableau ; deux couleurs, une légende. */
.horo-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 14px; font-size: 14px; color: #3d4a49; }
.horo-cle { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.horo-liste { display: grid; gap: 10px; max-width: 760px; }
.horo-employe { padding: 0; overflow: hidden; }
.horo-employe summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 16px; cursor: pointer; list-style: none; }
.horo-employe summary::-webkit-details-marker { display: none; }
.horo-employe summary::before { content: '›'; font-size: 20px; line-height: 1; color: var(--sarcelle); transition: transform .15s; }
.horo-employe[open] summary::before { transform: rotate(90deg); }
.horo-employe summary strong { flex: 1 1 auto; }
.horo-employe.horo-vide summary { color: #6b7877; }
.horo-total { font-weight: 800; font-variant-numeric: tabular-nums; }
.horo-pastille { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.horo-employe > .sous-texte { padding: 0 16px 14px; margin: 0; }
.horo-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horo-table th, .horo-table td { padding: 7px 12px; text-align: left; border-top: 1px solid #e6e1d6; white-space: nowrap; }
.horo-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5d6b6a; background: #f6f2ea; }
.horo-table td:last-child, .horo-table th:last-child { text-align: right; }
.horo-table td small { display: block; font-size: 11px; font-weight: 700; }
.horo-manque { color: #9aa5a4; }
.horo-modifie { background: #e3ecf7; box-shadow: inset 4px 0 0 #3b6ea8; color: #1f4673; }
.horo-retard { background: #fbe3dd; color: #9a2b1c; }
.horo-modifie.horo-retard { box-shadow: inset 4px 0 0 #3b6ea8; }
@media (max-width: 520px) { .horo-table th, .horo-table td { padding: 6px 8px; font-size: 14px; } }
.horo-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.horo-fiche { position: fixed; z-index: 80; width: max-content; max-width: min(300px, calc(100vw - 16px)); }
.horo-fiche p:last-child { margin-bottom: 0; }
.cal-fiche { position: fixed; z-index: 80; width: max-content; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); }
.cal-fiche p:last-child { margin-bottom: 0; }
.cal-fiche-liste { list-style: none; margin: 2px 0 6px; padding: 0; display: grid; gap: 4px; }
.cal-fiche-liste li { display: flex; align-items: center; gap: 7px; }
.cal-fiche-liste .pastille-poste { width: 4px; height: 26px; border-radius: 3px; flex-shrink: 0; }
.cal-fiche-nom { display: flex; flex-direction: column; font-weight: 700; color: #10302f; min-width: 0; margin-right: auto; }
.cal-fiche-nom small { font-weight: 400; font-size: 11px; color: #5d6b6a; }
.cal-fiche-liste .ft-quand { white-space: nowrap; font-size: 12px; }
.cal-fiche-liste li.moi { background: #e8f1ef; border-radius: 6px; margin: 0 -4px; padding: 2px 4px; }
.jour-quart[data-jour-qui] { cursor: pointer; }
.mq-liste { display: grid; gap: 6px; max-height: min(46vh, 22rem); overflow-y: auto; overscroll-behavior: contain; margin: 4px 0 8px; }
.mq-ligne { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e1e7e6; border-radius: 10px; background: #fff; cursor: pointer; }
.mq-ligne:has(input:checked) { border-color: var(--sarcelle); background: #eef5f3; }
.mq-ligne input { width: 20px; height: 20px; margin: 0; accent-color: var(--sarcelle); flex-shrink: 0; }
.mq-ligne .barre-poste { width: 4px; height: 30px; border-radius: 3px; flex-shrink: 0; }
.mq-texte { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.mq-texte small { color: var(--second); }
.mq-offert { opacity: .7; cursor: default; background: #f6f8f8; }
.mq-etat { font-size: 12px; font-weight: 700; color: #b5651d; white-space: nowrap; }
.horo-table td[data-horo] { cursor: help; }
.horo-table td[data-horo]:focus-visible { outline: 2px solid var(--sarcelle); outline-offset: -2px; }
/* Légende du plan (Maxim, 27 nov. 11 h 20) : chaque repère reste collé à son texte, et un petit trait sépare les éléments. */
.legende-items { gap: 6px 0; }
.legende-salle .legende-etat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 10px; border-left: 1px solid #cfd8d7; }
/* Le trait de l'élément qui commence une ligne sort à gauche de la légende et ne se voit pas. */
.legende-salle { overflow: hidden; }
.legende-salle .legende-items { margin-left: -11px; }
.legende-salle .legende-etat .pt { margin: 0; }
.legende-salle .legende-repere .repere-ex { margin-right: 0; }
/* Plein écran (Maxim, 27 nov. 11 h 26) : toute la grille, la liste de la journée à gauche, le plan à droite. */
.resa-grille.plein-ecran { position: fixed; inset: 0; z-index: 60; margin: 0; padding: 10px; gap: 10px; display: grid;
  grid-template-columns: minmax(330px, 29%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); background: var(--fond, #f6f2ea); }
.resa-grille.plein-ecran > .carte { margin: 0; min-height: 0; overflow: auto; }
.resa-grille.plein-ecran .resa-plan.plein-ecran { position: static; inset: auto; z-index: auto; border-radius: 16px; border: 1px solid var(--trait); }
.resa-grille.plein-ecran .resa-plan.plein-ecran .salle { width: min(100%, calc((100vh - 110px) * var(--ratio-salle, 1.6))); }
@media (max-width: 800px) { .resa-grille.plein-ecran { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 35vh) minmax(0, 1fr); } }
/* Qui travaille, liste (Maxim, 27 nov. 11 h 26) : la carte de Mes quarts, encadrée, bande à la couleur du poste. */
.liste-qui li + li { border-top: 0; margin-top: .4rem; }
.ligne-qui.qui-colore { position: relative; overflow: hidden; border: 1px solid var(--trait); border-radius: 10px; padding-left: 1rem; background: var(--papier); }
.ligne-qui .barre-poste { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; height: auto; margin: 0; border-radius: 0; }

/* Barre des heures (Maxim, 27 nov. 11 h 41, revue à 11 h 49) : à droite du plan, un quart d'heure par ligne, sans chiffre ni barre de
   défilement visible (la molette défile) ; au survol, les tables qui ne sont pas libres passent en retrait, les libres ressortent.
   Elle s'aligne sur le haut et le bas du plan (la marge de la salle passe au conteneur) et se réduit en languette « Heures ». */
.salle-heures { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 6px; align-items: stretch; margin: 10px 0; }
.salle-heures > .salle { min-width: 0; margin-top: 0; margin-bottom: 0; }
.salle-heures.sans-barre { grid-template-columns: minmax(0, 1fr); }
.salle-heures:has(.barre-heures.reduite) { grid-template-columns: minmax(0, 1fr) 24px; }
.barre-heures { position: relative; min-height: 160px; border: 1px solid var(--trait, #dfe5e4); border-radius: 12px; background: #fff; overflow: hidden; }
.barre-heures ol { position: absolute; inset: 28px 0 0; margin: 0; padding: 2px 4px 4px; list-style: none; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -ms-overflow-style: none; }
.barre-heures ol::-webkit-scrollbar { display: none; }
.barre-heures .barre-reduire { position: absolute; top: 0; left: 0; right: 0; height: 26px; display: flex; align-items: center; justify-content: center;
  border: 0; border-bottom: 1px solid #e3e8e7; background: #f6f8f8; color: #5d6b6a; cursor: pointer; padding: 0; }
.barre-heures .barre-reduire svg { width: 16px; height: 16px; }
.barre-heures .barre-reduire:hover { background: #e6f0ef; color: var(--sarcelle, #0f6e6a); }
.barre-heures.reduite { min-height: 0; border-radius: 10px; }
.barre-heures .barre-ouvrir { position: absolute; inset: 0; width: 100%; border: 0; background: #f6f8f8; color: #3d4a49; cursor: pointer; padding: 0; font: inherit;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.barre-heures .barre-ouvrir span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; }
.barre-heures .barre-ouvrir:hover { background: #e6f0ef; color: var(--sarcelle, #0f6e6a); }
.barre-heures .creneau { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 30px; margin: 0 0 2px; padding: 3px 2px;
  border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 700; color: #3d4a49; cursor: default; line-height: 1.15; }
.barre-heures .creneau.pile { border-top: 1px solid #e3e8e7; border-radius: 0 0 8px 8px; }
.barre-heures .creneau.passe { color: #a7b2b1; }
.barre-heures .creneau.courant { box-shadow: inset 3px 0 0 var(--sarcelle, #0f6e6a); }
.barre-heures .creneau:hover, .barre-heures .creneau.actif { background: var(--sarcelle, #0f6e6a); color: #fff; }
.barre-heures .creneau[aria-pressed="true"] { outline: 2px solid #d9772b; outline-offset: -2px; }
.salle.survol-heure .table-resa { transition: opacity .12s, filter .12s; }
.salle.survol-heure .table-resa:not(.libre-a) { opacity: .22; filter: grayscale(.8); }
.salle.survol-heure .table-resa.libre-a { opacity: 1; box-shadow: 0 0 0 3px #2f9e6a, 0 2px 8px rgba(0, 0, 0, .18); z-index: 3; }
.salle.survol-heure .repere { opacity: 0; }
@media (max-width: 700px) { .salle-heures { grid-template-columns: minmax(0, 1fr) !important; } .barre-heures { display: none; } }
/* Plein écran (Maxim, 27 nov. 11 h 42) : « Quitter le plein écran » plus petit, et pas de boutons sous le plan (on sort du plein écran pour les réglages). */
.resa-plan.plein-ecran .resa-bas { display: none; }
.resa-plan.plein-ecran .resa-bouton-plein { padding: 4px 10px; min-height: 0; font-size: 13px; line-height: 1.2; }
.resa-plan.plein-ecran .salle-heures { margin: 8px 0 6px; }
/* Le texte du survol (« À 12 h 30 · 51 libres… ») ne doit jamais faire passer Plein écran à la ligne : le plan sauterait. */
.resa-plan > .rangee { flex-wrap: nowrap; gap: 8px; }
.resa-plan > .rangee h2 { flex-shrink: 0; }
.resa-plan .resa-quand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resa-plan .resa-bouton-plein { flex-shrink: 0; }
/* Entre 1001 et 1100 px, la liste se resserre pour que la carte du plan ne dépasse plus à droite (déjà le cas avant la barre). */
@media (min-width: 1001px) and (max-width: 1100px) { .resa-grille { grid-template-columns: minmax(290px, .75fr) minmax(0, 2.5fr); } }
/* Formation (Maxim, 27 nov. 11 h 55) : une petite carte sur l'Accueil, puis la liste des vidéos et le lecteur dans une fenêtre. */
.carte-formation { padding-top: 12px; padding-bottom: 12px; }
.carte-formation .rangee { margin: 0; }
.carte-formation h2 { margin: 0; }
.formation-liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.formation-ligne { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--trait, #dfe5e4);
  border-radius: 12px; background: var(--papier, #fff); font: inherit; color: inherit; cursor: pointer; }
.formation-ligne:hover, .formation-ligne:focus-visible { border-color: var(--sarcelle, #0f6e6a); background: #f1f7f6; }
.formation-ligne strong { display: block; }
.formation-ligne small { display: block; color: #5d6b6a; margin-top: 2px; }
.formation-jeu { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sarcelle, #0f6e6a); color: #fff; }
.formation-jeu svg { width: 18px; height: 18px; }
.formation-groupe { font-size: 13px; margin: 12px 0 6px; color: #5d6b6a; text-transform: uppercase; letter-spacing: .04em; }
dialog:has(.formation-video) { width: min(960px, 96vw); }
.formation-video { display: block; width: 100%; max-height: 70vh; background: #000; border-radius: 12px; }

/* Accueil (Maxim, 27 nov. 13 h 12) : les tâches du jour s'allongent jusqu'au bas de la colonne de droite. */
@media (min-width: 641px) {
  .grille-accueil { align-items: stretch; }
  .colonne-taches { grid-template-rows: auto 1fr; align-content: stretch; }
  .carte-taches-jour { display: flex; flex-direction: column; }
}
/* Liste de formation par employé (Maxim, 27 nov. 13 h 12). */
.carte-formation > .sous-texte { margin: 10px 0 6px; }
.carte-formation > .barre { margin: 4px 0 6px; }
.formation-encours { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.formation-encours .formation-ligne { flex-wrap: wrap; gap: 4px 10px; padding: 8px 10px; }
.formation-encours .formation-ligne > span { flex: 1 1 auto; }
.formation-encours .barre { flex: 0 0 100%; margin: 0; height: 6px; }
.formation-section { border: 1px solid var(--trait, #dfe5e4); border-radius: 10px; padding: 8px 12px 10px; margin: 0 0 10px; }
.formation-section legend { font-weight: 700; padding: 0 6px; }
.formation-point { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-top: 1px solid #eef2f1; cursor: pointer; }
.formation-point:first-of-type { border-top: 0; }
.formation-point input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--sarcelle, #0f6e6a); }
.formation-point small { display: block; color: #2f7d5b; font-size: 12px; margin-top: 2px; }
.formation-point input:checked + span { color: #5d6b6a; }
.formation-point input:disabled { cursor: default; }
/* Gestion › Formation en deux onglets (Maxim, 27 nov. 13 h 24) : Vidéos et Listes de formation. */
.formation-onglets { margin: 0 0 14px; }
.formation-listes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.formation-nombre { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: #e7f1ef; color: #0f6e6a; font-size: 13px; font-family: inherit; vertical-align: middle; text-align: center; }

/* Punch plus gros sur l'ordi (Maxim, 27 nov. 13 h 32) : l'historique et la modification s'élargissent, les heures grossissent. */
@media (min-width: 900px) {
  dialog:has(.ligne-punch), dialog:has(.paire-punch) { width: min(92vw, 46rem); padding: 1.6rem 1.8rem; }
  dialog:has(.ligne-punch) .ligne-punch { font-size: 1.08rem; padding: .7rem 0; }
  dialog:has(.ligne-punch) .ligne-punch.modifiee { padding: .7rem .9rem; }
  dialog:has(.paire-punch) .paire-punch { gap: 1rem; padding: .7rem 1rem 1rem; }
  dialog:has(.paire-punch) .paire-punch input[type="time"] { font-size: 1.15rem; padding: .6rem .7rem; }
  dialog:has(.paire-punch) .paire-punch legend { font-size: 1.02rem; }
}
.punch-motif textarea { min-height: 3.2rem; }
.ligne-punch .punch-motif-lu { color: var(--encre); font-style: italic; }

/* Écoles au four (Maxim, 27 nov. 13 h 38) : sous les cases, une liste qui défile si elle s'allonge. */
.four-ecoles { margin: -4px 0 10px; padding: 8px; background: #f6f8f8; border-radius: 10px; }
.four-ecoles-tete { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: .5rem; padding: 2px 2px; cursor: pointer; border-radius: 6px; }
.four-ecoles-tete:focus-visible { outline: 2px solid #e07a2e; outline-offset: 2px; }
.four-ecoles-compte { font-size: .78rem; color: var(--second); }
.four-ecoles-compte.plein { color: #0c4f4c; background: #fff; border: 1px solid #cfe2d8; border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.four-ecoles-fleche { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid #e1e7e6; color: #0c4f4c; font-size: 14px; transform: rotate(-90deg); transition: transform .15s; }
.four-ecoles.ouverte .four-ecoles-fleche { transform: none; }
.four-ecoles-corps { display: none; margin-top: 6px; }
.four-ecoles.ouverte .four-ecoles-corps { display: block; }
.four-ecoles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 11.5rem; overflow-y: auto; overscroll-behavior: contain; }
.four-ecole { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: .6rem; padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px solid #e1e7e6; cursor: pointer; }
.four-ecole .cf-case { width: 26px; flex-shrink: 0; }
.four-ecole > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.four-ecole strong { font-size: .92rem; }
.four-ecole small { color: var(--second); font-size: .78rem; }
.four-ecole.cuite { background: var(--pale); border-color: #cfe2d8; }
.four-ecole:focus-visible { outline: 2px solid #e07a2e; outline-offset: 1px; }
.four-ecoles-vide { margin: 0; font-size: .82rem; color: var(--second); }

/* Plan de table au téléphone (Maxim, 27 nov. 14 h 19). Sur iPhone (Safari), la salle s'écrasait à quelques pixels dans la grille
   salle + barre des heures (la barre est cachée au téléphone) : on n'y voyait le plan qu'en plein écran, qui brisait tout.
   Au téléphone : plus de plein écran, la salle en bloc sur toute la largeur, la liste de la journée repliable, la légende tout en bas. */
.resa-telephone .salle-heures { display: block; margin: 8px -4px 0; }
.resa-telephone .salle-heures > .salle { display: block; width: 100%; height: auto; margin: 0; }
.resa-telephone .resa-plan.carte { padding: 12px 10px 12px; }
.resa-telephone .resa-plan .rangee { flex-wrap: nowrap; }
.resa-telephone .resa-plan .resa-quand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.resa-telephone .resa-plan .resa-bas { margin-top: 12px; }
.resa-journee-tete { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; border-radius: 10px; min-height: 44px; }
.resa-journee-tete:focus-visible { outline: 2px solid #e07a2e; outline-offset: 2px; }
.resa-journee-tete h2 { margin: 0; }
.resa-journee-tete .sous-texte { display: block; margin: 2px 0 0; }
.resa-journee-tete > svg { width: 26px; height: 26px; flex: none; transition: transform .2s; color: var(--sarcelle, #0f5c5a); }
.resa-journee-tete[aria-expanded="true"] > svg { transform: rotate(180deg); }
.resa-liste.repliee { padding-bottom: 12px; }
.resa-telephone .resa-liste:not(.repliee) #resa-journee-corps { margin-top: 10px; }
.resa-telephone .legende-salle.legende-bas { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: 8px 12px;
  margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--trait, #dfe5e4); overflow: visible; }
.resa-telephone .legende-salle.legende-bas .legende-items { margin-left: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.resa-telephone .legende-salle.legende-bas .places-plan { flex-basis: 100%; }
.resa-telephone .legende-salle.legende-bas .legende-etat { border-left: 0; padding: 0 14px 0 0; }
/* Safari (iPad, Mac), même famille : dans la grille, la salle prenait la hauteur de la barre des heures (160 px) et une largeur
   tirée de là. Largeur pleine et hauteur par le rapport de la salle ; la barre s'étire à côté. */
.salle-heures > .salle { width: calc(100% + 4px); align-self: start; }
.salle-heures > .barre-heures { align-self: stretch; }
/* Zoom à deux doigts sur le plan, au téléphone (Maxim, 27 nov. 14 h 26) : le cadre garde sa taille, le plan s'agrandit dedans
   et se fait glisser d'un doigt. En « Modifier le plan », le doigt déplace encore les tables. */
.resa-telephone .salle-heures { overflow: hidden; border-radius: 16px; }
.resa-telephone .salle-heures.zoome { overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.resa-telephone .salle-heures > .salle { transform-origin: 0 0; }
.resa-telephone .salle-heures > .salle:not(.en-edition) { touch-action: pan-x pan-y; }
.resa-telephone .resa-zoom-normal { padding: 4px 10px; min-height: 0; font-size: 13px; line-height: 1.2; flex: none; }
.resa-telephone .resa-zoom-normal[hidden] { display: none; }
/* Plan agrandi : la petite fiche d'une table garde sa taille normale (elle ne grossit pas avec le plan). */
.resa-telephone .salle-heures.zoome .fiche-table { transform: scale(calc(1 / var(--zoom-plan, 1))); transform-origin: 0 0; }
/* Téléphone (Maxim, 27 nov. 14 h 35) : sur le plan, seulement le numéro de la table ; l'heure et le reste se voient en la touchant.
   Les repères de couleur (en retard, plus de 3 h…) et la pastille « +1 » restent. */
.resa-telephone .salle .table-client, .resa-telephone .salle .table-places { display: none; }
/* Ordi : la liste de la journée s'arrête au bas du plan et défile seule ; les onglets restent en haut. */
.resa-liste.calee { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.resa-liste.calee #resa-journee-corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-right: -8px; padding-right: 8px; }
.resa-liste.calee .resa-onglets { position: sticky; top: 0; z-index: 3; background: var(--papier, #fffdf8); margin-top: 0; padding-bottom: 8px; margin-bottom: 2px; }
/* Liste de la journée sur l'ordi (Maxim, 27 nov. 14 h 40) : un trait gris pâle entre l'heure et le nom ; le nom et le téléphone ne passent
   plus sous la flèche orange « à placer ». La colonne de la liste prend 20 px de plus (le téléphone en demande 88) ; sur un écran plus étroit,
   le texte se coupe avant la flèche au lieu de passer dessous. */
.resa-liste .resa-choisir { grid-template-columns: 60px minmax(0, 1fr) auto; column-gap: 6px; }
.resa-liste .resa-heure { align-self: stretch; display: flex; align-items: center; font-size: 13px; white-space: nowrap; padding-right: 4px; border-right: 1px solid #dfe5e4; }
.resa-liste .resa-qui { min-width: 0; overflow: hidden; }
.resa-liste .resa-qui strong, .resa-liste .resa-qui small, .resa-liste .resa-tel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.resa-liste .resa-qui small { display: block; }
@media (min-width: 1001px) { .resa-grille:not(.plein-ecran) { grid-template-columns: minmax(350px, 0.75fr) minmax(480px, 2.5fr); } }
@media (min-width: 801px) { .resa-grille.plein-ecran { grid-template-columns: minmax(350px, 29%) minmax(0, 1fr); } }
/* Plein écran : la liste s'étire sur toute la hauteur et défile (avant, elle était coupée en bas, sans défilement). */
.resa-grille.plein-ecran > .resa-liste { align-self: stretch; }

/* Flèche d'une réservation (Maxim, 27 nov. 14 h 53) : en blanc, les tables qui peuvent la recevoir ; les autres, complètement en rouge. */
.salle .table-resa.choix-libre { background: #fff; border-color: #c9d3d2; color: inherit; }
.salle .table-resa.choix-prise { background: #d64533; border-color: #a8301f; color: #fff; }
.salle .table-resa.choix-prise .table-nom, .salle .table-resa.choix-prise .table-places, .salle .table-resa.choix-prise .table-client { color: #fff; }
.salle .table-resa.choix-prise .table-plus { background: rgba(255, 255, 255, .9); color: #a8301f; }
.salle .table-resa.choix-prise .table-client, .salle .table-resa.choix-prise .table-places { display: none; }
.legende-salle .pt.pt-prise { background: #d64533; border-color: #a8301f; }

/* Curseur en croix du plan (Maxim, 27 nov. 14 h 59) : en sarcelle, bordé de blanc, pour bien le voir sur le fond beige. */
.salle:not(.en-edition) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 1v22M1 12h22' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M12 2v20M2 12h20' stroke='%230c4f4c' stroke-width='2'/%3E%3C/svg%3E") 12 12, crosshair; }

/* Tailles de table (Maxim, 27 nov. 15 h 16) : en sarcelle, les tables permises pour la taille choisie ; en gris pointillé, les autres. */
.tailles-barre { display: grid; gap: 8px; margin-bottom: 10px; }
.tailles-onglets { display: flex; flex-wrap: wrap; gap: 6px; }
.tailles-barre .resa-consigne { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tailles-tout { display: inline-flex; gap: 6px; margin-left: auto; }
.salle.en-tailles .table-resa { cursor: pointer; }
.salle .table-resa.taille-oui { background: #0c4f4c; border-color: #0c4f4c; color: #fff; }
.salle .table-resa.taille-oui .table-nom { color: #fff; }
.salle .table-resa.taille-non { background: #ece8e1; border: 1px dashed #9aa3a2; color: #7c8483; box-shadow: none; }
.salle .table-resa.taille-oui .table-client, .salle .table-resa.taille-oui .table-places, .salle .table-resa.taille-oui .table-plus,
.salle .table-resa.taille-non .table-client, .salle .table-resa.taille-non .table-places, .salle .table-resa.taille-non .table-plus { display: none; }
.legende-salle .pt.pt-taille-oui { background: #0c4f4c; border-color: #0c4f4c; }
.legende-salle .pt.pt-taille-non { background: #ece8e1; border: 1px dashed #9aa3a2; }

/* Console Équipéo */
.console .date-titre { color: var(--second); font-weight: 700; }
.console-liste, .console-grille > div { display: grid; gap: 14px; }
.console-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.console-ligne-texte, .console-ligne-chiffres { display: grid; gap: 2px; overflow-wrap: anywhere; }
.console-ligne-texte strong { font-size: 17px; }
.console-ligne-chiffres { text-align: right; }
.console-ligne small, .console-outil small { color: var(--second); }
.console-ligne:hover, .console-ligne:focus-visible { border-color: var(--sarcelle); }
.console-portee { max-width: 25rem; margin-bottom: 18px; }
.console-succursale { margin: 0; color: var(--second); }
.console-succursale strong { color: var(--encre); margin-right: 8px; }
.console-grille { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "catalogue resume"; gap: 16px; align-items: start; }
.console-composition > div { grid-area: catalogue; }
.console-apercu { grid-area: resume; position: sticky; top: 90px; }
.console-titre-outils h2, .console-titre-outils p, .console-groupe header p { margin: 0; }
.console-groupe header p { color: var(--second); }
.console-outil { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 64px; padding-top: 4px; border-top: 1px solid var(--trait); margin-top: 8px; }
.console-outil > div { display: grid; gap: 3px; }
.console-interrupteur { position: relative; width: 52px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.console-interrupteur::before { content: ''; position: absolute; inset: 9px 2px; border-radius: 999px; border: 1px solid var(--second); background: var(--trait); }
.console-interrupteur span { position: absolute; top: 12px; left: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--papier); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.console-interrupteur[aria-checked="true"]::before { background: var(--sarcelle-fond, var(--sarcelle)); border-color: transparent; }
.console-interrupteur[aria-checked="true"] span { transform: translateX(20px); }
.console-interrupteur:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.console-forfait { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0; }
.console-forfait strong { color: var(--sarcelle); font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.console-action-signature { margin-block: 8px 6px; }
.console-apercu h3 { margin: 14px 0 2px; font-size: .95rem; }
.console-apercu h3 + p { margin: 0; color: var(--second); }
.console-apercu .console-selection-cell { display: none; }
.console-apercu details { border-top: 1px solid var(--trait); margin-top: 12px; padding-top: 10px; }
.console-apercu summary { cursor: pointer; min-height: 44px; align-content: center; }
.console-apercu ul { padding-inline-start: 1.3em; margin-bottom: 0; }
.console-barre { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; z-index: 2; }
.console-barre-suivie { position: sticky; bottom: 0; }
.console-barre p { margin: 0; }
.console .titre-page h1 { overflow-wrap: anywhere; }
.console-barre p small { display: block; color: var(--second); }
.console-outil button { scroll-margin-block-end: 120px; }
.console-barre button { min-height: 44px; }
.console-barre button:disabled { opacity: .65; }
.sans-four .paie-case { display: none; }
@media (max-width: 760px) {
  .console-grille { grid-template-columns: 1fr; grid-template-areas: "resume" "catalogue"; }
  .console-apercu { position: static; }
  .console-apercu .console-selection-cell { display: block; }
  .console-selection { display: none; }
  .console-ligne { grid-template-columns: auto minmax(0, 1fr); }
  .console-ligne-chiffres { grid-column: 2; text-align: left; }
  .console-barre { flex-wrap: wrap; padding: 10px; }
  .bandeau-console .etiquette-console { display: none; }
}

@media (max-height: 440px) {
  .console-barre-suivie, .console-apercu { position: static; }
}

/* Inventaire de la céramique (Maxim, 29 nov. 2026) : couleurs par variables. */
.inventaire-page { display: grid; gap: 16px; }
.couts-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 8px; }
.couts-tuile { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--trait); border-radius: 12px; }
.couts-tuile span { color: var(--second); font-size: 13px; }
.couts-tuile strong { font-size: 22px; color: var(--sarcelle); font-variant-numeric: tabular-nums; }
.couts-table td { vertical-align: middle; } .couts-table .nb { white-space: nowrap; font-variant-numeric: tabular-nums; }
.couts-nom { font-weight: 600; }
.couts-lien { padding: 0; border: 0; background: none; color: var(--sarcelle); font: inherit; font-weight: 700; text-align: left; text-decoration: underline; cursor: pointer; }
.couts-orange, .couts-tuile strong.couts-orange { color: #a35010; font-weight: 700; }
.couts-rouge, .couts-tuile strong.couts-rouge { color: #b3261e; font-weight: 700; }
.couts-qte { display: flex; gap: 6px; align-items: center; }
.couts-qte input { width: 80px; padding: 6px 8px; border: 1px solid var(--trait); border-radius: 8px; background: var(--papier); color: var(--encre); font: inherit; text-align: right; }
.couts-qte select, .couts-unite select { padding: 6px; border: 1px solid var(--trait); border-radius: 8px; background: var(--papier); color: var(--encre); font: inherit; }
.inventaire-rangee .champ.couts-court { flex: 0 0 130px; } .inventaire-rangee .champ.couts-unite { flex: 0 0 96px; }
.inventaire-rangee .champ.couts-production { flex-basis: 10.5rem; }
#couts-production-aide { margin: 4px 0 8px; }
#couts-p-quantite { flex: 1 1 4rem; width: auto; max-width: 8rem; }
.couts-total-recette { margin: 12px 0 8px; }
.couts-sous-titre { margin: 18px 0 8px; font-size: 16px; }
.inventaire-table .inventaire-gestes input { flex: 0 0 64px; width: 64px; min-width: 0; }
.inventaire-rangee { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inventaire-rangee .champ { flex: 1 1 220px; margin: 0; }
.inventaire-rangee .inventaire-nb { flex: 0 0 110px; }
.inventaire-rangee .inventaire-code { flex: 0 0 120px; }
.inventaire-rangee .inventaire-prix { flex: 0 0 120px; }
.inventaire-indice { margin: 8px 0 0; min-height: 1.2em; }
.inventaire-cherche { display: block; max-width: 360px; margin: 0 0 12px; }
.inventaire-code-piece { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--trait); color: var(--encre); font-size: 15px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.inventaire-prix-piece { white-space: nowrap; font-variant-numeric: tabular-nums; }
.inventaire-table tr.inventaire-choisie td { background: color-mix(in srgb, var(--sarcelle) 10%, transparent); }
.inventaire-fin .inventaire-retirer + .inventaire-retirer { margin-left: 12px; }
.inventaire-table td { vertical-align: middle; }
.inventaire-nom { color: var(--second); font-size: 14px; }
.inventaire-code-cel { white-space: nowrap; }
.inventaire-qte { font-size: 18px; font-weight: 700; color: var(--sarcelle); }
.inventaire-gestes { display: flex; gap: 6px; align-items: center; }
.inventaire-gestes input { width: 64px; padding: 6px 8px; border: 1px solid var(--trait); border-radius: 8px; background: var(--papier); color: var(--encre); font: inherit; text-align: center; }
.inventaire-pas { width: 34px; height: 34px; border: 1px solid var(--trait); border-radius: 50%; background: var(--papier); color: var(--sarcelle); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
.inventaire-pas:hover, .inventaire-pas:focus-visible { border-color: var(--sarcelle); }
.inventaire-fin { text-align: right; }
.inventaire-retirer { padding: 0; border: 0; background: none; color: var(--second); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.inventaire-histo { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.inventaire-histo li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.inventaire-histo strong { min-width: 38px; color: var(--sarcelle); }
.inventaire-histo strong.inventaire-moins { color: var(--orange); }
.inventaire-histo small { color: var(--second); }
@media (max-width: 760px) {
  .inventaire-table thead, .couts-table thead { display: none; }
  .couts-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
  .couts-table td { padding: 0; border: 0; } .couts-table td.couts-nom, .couts-table td[colspan] { grid-column: 1 / -1; }
  .couts-menu td.nb::before { content: attr(data-l); }
  .inventaire-rangee .champ.couts-court, .inventaire-rangee .champ.couts-unite { flex: 1 1 100px; }
  .inventaire-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
  .inventaire-table td { padding: 0; border: 0; }
  .inventaire-table td.inventaire-nom { grid-column: 1 / -1; }
  .inventaire-table td.inventaire-prix-piece { text-align: left; align-self: center; }
  .inventaire-table td.inventaire-qte::after { content: ' en stock'; font-size: 13px; font-weight: 500; color: var(--second); }
  .inventaire-fin { text-align: left; }
  .inventaire-rangee .inventaire-code, .inventaire-rangee .inventaire-prix { flex: 1 1 100px; }
}

/* La journée en mode clair (Maxim, 30 nov. 2026 9 h 32) : comme en mode sombre, chaque réservation dans son carré
   à peine teinté sur le fond de la carte, avec un petit espace entre elles (avant : tout blanc). */
.resa-liste .resa-ligne { border-top-color: transparent; border-radius: 10px; padding-left: 8px; padding-right: 8px; margin-bottom: 5px; }
.resa-liste .resa-ligne:not(.choisie) { background: #eff4f1; }

/* Console à part (Maxim, 2 déc. 2026 15 h 29) : son propre écran, sans le menu de gauche ni la barre de l'app. */
.boitier-console { min-height: 100dvh; }
.bandeau-console .console-marque { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.bandeau-console .identite { display: flex; }
.etiquette-console { background: var(--orange); border-color: var(--orange); color: #fff; }
/* Gestion (Maxim, 2 déc. 2026 15 h 31) : toute la carte ouvre sa section ; le bouton du titre couvre la carte. */
.gestion-ouvert { position: relative; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.gestion-ouvert:hover, .gestion-ouvert:focus-within { border-color: var(--sarcelle); box-shadow: 0 2px 10px rgba(12, 79, 76, .12); }
.gestion-lien { all: unset; cursor: pointer; }
.gestion-lien::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gestion-lien:focus-visible { outline: none; }
.gestion-ouvert:has(.gestion-lien:focus-visible) { outline: 3px solid var(--sarcelle); outline-offset: 2px; }
.gestion-ouvert .sous-texte { margin-bottom: 0; }
/* Au téléphone, les sections tiennent dans un écran : deux colonnes, le titre seulement (la description se lit à l'ordi). */
@media (max-width: 640px) {
  .gestion-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gestion-grille .gestion-bloc { display: flex; align-items: center; min-height: 72px; padding: .8rem .85rem; }
  .gestion-grille .gestion-bloc h2 { margin: 0; font-size: 1.12rem; line-height: 1.15; }
  .gestion-grille .gestion-bloc .sous-texte, .gestion-grille .gestion-bloc .badge-resa { display: none; }
}

/* Calculs de la Gestion. */
.gestion-outil { display: grid; gap: 16px; max-width: 64rem; }
.gestion-calcul { display: grid; gap: 14px; min-width: 0; }
.gestion-champs { display: grid; gap: 12px; align-items: end; }
.trajet-distances { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.gestion-calcul .champ { margin: 0; min-width: 0; }
.trajet-distances .bouton { min-height: 44px; }
.trajet-distances .bouton:disabled { cursor: default; }
.trajet-aide { grid-column: 1 / -1; }
.gestion-resultat { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 14px; border-block: 1px solid var(--trait); padding: 12px 0; font-weight: 650; }
.gestion-resultat small { display: block; color: var(--second); font-weight: 500; }
.gestion-resultat small:empty { display: none; }
.gestion-resultat strong { font-size: 1.5rem; color: var(--sarcelle); font-variant-numeric: tabular-nums; }
.trajet-estimation { display: grid; grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr); align-items: end; gap: 12px 20px; }
.gestion-calcul > .sous-texte { margin: 0; }
.gestion-calcul a { color: var(--sarcelle); }
@media (max-width: 540px) {
  .titre-page:has(+ .gestion-outil) h1 { font-size: clamp(1.7rem, 6vw, 2rem); }
  .trajet-distances { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .trajet-distances .bouton { grid-area: 2 / 2; justify-self: stretch; }
  .trajet-aide { grid-area: 2 / 1; align-self: center; }
  .trajet-estimation { grid-template-columns: 1fr; }
  .gestion-calcul input, .gestion-outil select { font-size: 16px; }
}

/* Le formulaire et l’historique des pertes se lisent dans l’ordre de saisie. */
.pertes-identite { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pertes-quantites { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pertes-page h2 { margin: 0; }
.pertes-entete { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.pertes-entete .bouton { min-height: 44px; }
#pertes-titre-historique { scroll-margin-top: 12px; }
#pertes-historique > .champ { max-width: 24rem; margin: 12px 0; }
.pertes-groupe { margin-top: 18px; }
.pertes-groupe h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--trait); font-size: 1rem; overflow-wrap: anywhere; }
.pertes-groupe ul { list-style: none; padding: 0; margin: 0; }
.pertes-groupe li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--trait); overflow-wrap: anywhere; }
.pertes-groupe li > strong, .pertes-groupe h3 > strong { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.pertes-groupe li small { display: block; color: var(--second); }
.gestion-calcul button[type="submit"] { min-height: 44px; justify-self: start; }
.gestion-erreur { color: var(--danger); font-weight: 650; margin: 0; }
@media (max-width: 540px) {
  .pertes-identite { grid-template-columns: 1fr; }
  .pertes-quantites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pertes-quantites .champ:first-child { grid-column: 1 / -1; }
  .gestion-calcul button[type="submit"] { justify-self: stretch; }
}

/* mode-sombre:debut — bloc généré par generer.mjs (fil wm32y), ne pas modifier à la main */
:root[data-theme="sombre"] {
  color-scheme: dark;
  --fond: #0e1918;
  --papier: #152321;
  --encre: #e3eeea;
  --second: #9fb6b0;
  --sarcelle: #6cc5bb;
  --sarcelle-fond: #1d746d;
  --vert: #4fb8ae;
  --pale: #1a302d;
  --orange: #f29a4a;
  --trait: #2a3b38;
  --danger: #ef8f80;
}
:root[data-theme="sombre"] dialog::backdrop {
  background: rgba(2, 8, 7, .62);
}
/* Retouches à la main (Maxim, 29 nov. 15 h 36) : La journée garde le fond des cartes ; chaque réservation a son carré
   un peu plus clair, avec un petit espace entre elles (15 h 31 : toute la section éclaircie, défait à sa demande) */
:root[data-theme="sombre"] .resa-liste .resa-ligne {
  border-top-color: transparent;
  border-radius: 10px;
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 5px;
}
:root[data-theme="sombre"] .resa-liste .resa-ligne:not(.choisie) {
  background: #1f3330;
}
/* Même chose pour la Liste complète des réservations (Maxim, 30 nov. 9 h 24) : chaque réservation en carré, 5 px entre elles */
:root[data-theme="sombre"] .lc-tableau {
  border-color: transparent;
  gap: 5px;
  overflow: visible;
}
:root[data-theme="sombre"] .lc-tableau .lc-ligne {
  border-top-color: transparent;
  border-radius: 10px;
  background: #1f3330;
}
/* Numéros de table toujours en blanc au plan, plein écran compris (Maxim, 2 déc. 15 h 30) ; un halo sombre les garde
   lisibles sur l'orange, le vert et le jaune des statuts */
:root[data-theme="sombre"] .salle .table-nom {
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, .9), 0 1px 2px rgba(0, 0, 0, .7);
}
/* « Pas arrivée » : le nom du client sortait gris foncé sur fond foncé */
:root[data-theme="sombre"] .st-confirmee {
  --texte: #e3eeea;
}
:where(:root[data-theme="sombre"]) .rail {
    background: #24504d
}
:where(:root[data-theme="sombre"]) .espace .avatar {
    background: #182221
}
:where(:root[data-theme="sombre"]) .bandeau {
    background: #101a19
}
:where(:root[data-theme="sombre"]) .emplacement select {
    background: #101a19
}
:where(:root[data-theme="sombre"]) .etiquette {
    border: 1px solid #3f392c;
    background: #241d12;
    color: #d8a67d
}
:where(:root[data-theme="sombre"]) .etiquette.vert {
    color: #8cc7b2;
    background: #16201f;
    border-color: #2b3a39
}
:where(:root[data-theme="sombre"]) .etiquette.rouge {
    color: #f8907b;
    background: #192322;
    border-color: #493732
}
:where(:root[data-theme="sombre"]) .a-voir {
    border-color: #4d3821;
    background: #131c1b
}
:where(:root[data-theme="sombre"]) .pastille {
    color: #e5b496;
    background: #2e1f0d
}
:where(:root[data-theme="sombre"]) .bouton:hover, :where(:root[data-theme="sombre"]) .bouton-icone:hover {
    background: #161f1f
}
:where(:root[data-theme="sombre"]) .bouton.primaire {
    background: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .bouton[aria-pressed=true], :where(:root[data-theme="sombre"]) .onglet[aria-pressed=true] {
    border-color: #3d4e47;
    color: #92c8bb
}
:where(:root[data-theme="sombre"]) .service {
    background: linear-gradient(115deg,#11524f,#146b64)
}
:where(:root[data-theme="sombre"]) .barre {
    background: #182221;
    accent-color: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .barre::-webkit-progress-bar {
    background: #182221
}
:where(:root[data-theme="sombre"]) .tache input {
    accent-color: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .phase {
    color: #99bdb2
}
:where(:root[data-theme="sombre"]) .case-date[aria-current=date] {
    color: #85c5b7
}
:where(:root[data-theme="sombre"]) .case-date:hover {
    background: #172020
}
:where(:root[data-theme="sombre"]) .message {
    background: #16201f
}
:where(:root[data-theme="sombre"]) input:not([type=checkbox]):not([type=radio]), :where(:root[data-theme="sombre"]) textarea, :where(:root[data-theme="sombre"]) select {
    border: 1px solid #3a4a49;
    background: #101919
}
:where(:root[data-theme="sombre"]) fieldset input[type=checkbox], :where(:root[data-theme="sombre"]) fieldset input[type=radio] {
    accent-color: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .calcule {
    border: 1px solid #463d2c;
    background: #221b10
}
:where(:root[data-theme="sombre"]) .toast {
    background: #25514a;
    box-shadow: 0 3px 15px rgba(159,179,175,0.231)
}
:where(:root[data-theme="sombre"]) .connexion {
    background: radial-gradient(ellipse at 98% -10%,#182221,transparent 56%),var(--fond)
}
@media (max-width: 850px), (max-width: 950px) and (max-height: 520px) and (pointer: coarse) {
    :where(:root[data-theme="sombre"]) .navigation-mobile {
        box-shadow: 0 -3px 16px rgba(174,176,157,0.055)
    }
}
@media (max-width: 850px) {
    :where(:root[data-theme="sombre"]) .notice-mobile {
        background: #241d12;
        color: #d8a67d
    }
}
:where(:root[data-theme="sombre"]) .types-offre input[type=radio] {
    accent-color: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .grille-defilement {
    background: #101a19
}
:where(:root[data-theme="sombre"]) .grille-horaire thead th {
    background: #17201f
}
:where(:root[data-theme="sombre"]) .grille-horaire th[scope=row] {
    background: #101a19
}
:where(:root[data-theme="sombre"]) .grille-horaire tfoot th, :where(:root[data-theme="sombre"]) .grille-horaire tfoot td {
    background: #151e1e
}
:where(:root[data-theme="sombre"]) .puce-quart.ressource {
    background: #182221;
    color: #8ac7c3
}
:where(:root[data-theme="sombre"]) .puce-quart.serveur {
    background: #291e12;
    color: #d8a67d
}
:where(:root[data-theme="sombre"]) .puce-quart.four {
    background: #1b2524;
    color: #d9b297
}
:where(:root[data-theme="sombre"]) .puce-conge {
    background: #182221;
    color: #9dafad
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-sarcelle {
    background: #182221;
    color: #8ac7c3
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-orange {
    background: #291e12;
    color: #d8a67d
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-brun {
    background: #1b2524;
    color: #d9b297
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-prune {
    background: #192322;
    color: #d1a8eb
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-bleu {
    background: #192322;
    color: #9fbde5
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-rouge {
    background: #1a2323;
    color: #f29b8d
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-moutarde {
    background: #231e0d;
    color: #c9ab69
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-vert {
    background: #182121;
    color: #90bf83
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-rose {
    background: #192222;
    color: #f08ba8
}
:where(:root[data-theme="sombre"]) .puce-quart.couleur-gris {
    background: #182221;
    color: #acbebc
}
:where(:root[data-theme="sombre"]) .grille-horaire .section-grille th {
    background: #17201f
}
:where(:root[data-theme="sombre"]) .puce-quart.accord-hors {
    box-shadow: 0 0 0 2px #2f211e
}
:where(:root[data-theme="sombre"]) .dispo-case.non {
    color: #ea846e
}
:where(:root[data-theme="sombre"]) .total.au-dela small {
    color: #cd9b47
}
:where(:root[data-theme="sombre"]) .total.au-dela {
    background: #201b0d;
    color: #ca9c51
}
:where(:root[data-theme="sombre"]) .total.au-dela.trop {
    background: #182221;
    color: #ea846e
}
:where(:root[data-theme="sombre"]) .total.au-dela.trop small {
    color: #ea846e
}
:where(:root[data-theme="sombre"]) .fantome-quart {
    box-shadow: 0 10px 24px rgba(144,183,175,0.25)
}
:where(:root[data-theme="sombre"]) .alerte-deplacement {
    background: #151e1d;
    color: #deb38e
}
:where(:root[data-theme="sombre"]) .retirer-quart {
    box-shadow: 0 1px 3px rgba(144,183,175,0.15)
}
:where(:root[data-theme="sombre"]) .bande-publier {
    border: 1px solid #4c3820;
    background: #151e1d;
    color: #deb38e
}
:where(:root[data-theme="sombre"]) .bande-publier small {
    color: #cba074
}
:where(:root[data-theme="sombre"]) .bande-publier.a-jour {
    border-color: #2c3c3a;
    background: #141e1d;
    color: #91c4a4
}
:where(:root[data-theme="sombre"]) .section-approuver {
    border-color: #4d3821
}
:where(:root[data-theme="sombre"]) .espace-haut {
    border-right: 1px solid #2c3b3a
}
:where(:root[data-theme="sombre"]) .espace-haut .avatar {
    background: #182221
}
:where(:root[data-theme="sombre"]) .puce-quart.offert::after {
    background: #141e1d;
    color: #e38c5a
}
:where(:root[data-theme="sombre"]) .avis-responsable {
    background: #131c1b
}
:where(:root[data-theme="sombre"]) .resa-date {
    border: 1px solid #30403e;
    background: #101919
}
:where(:root[data-theme="sombre"]) .resa-ligne {
    border-top: 1px solid #293937
}
:where(:root[data-theme="sombre"]) .resa-ligne.choisie {
    background: #131d1c
}
:where(:root[data-theme="sombre"]) .resa-qui small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .resa-tables {
    background: #16201f
}
:where(:root[data-theme="sombre"]) .resa-tables.a-placer {
    color: #e29569;
    background: #251c14
}
:where(:root[data-theme="sombre"]) .badge-resa {
    background: #182221;
    color: #d2a2f0
}
:where(:root[data-theme="sombre"]) .badge-resa.discret {
    background: #151f1e;
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .resa-note {
    color: #abbdbc
}
:where(:root[data-theme="sombre"]) .resa-consigne {
    background: #131d1c
}
:where(:root[data-theme="sombre"]) .resa-quand select {
    border: 1px solid #30403e
}
:where(:root[data-theme="sombre"]) .salle {
    background: repeating-linear-gradient(0deg, #141e1d 0 39px, #182221 39px 40px), #141e1d;
    border: 2px solid #31403f
}
:where(:root[data-theme="sombre"]) .table-resa {
    border: 2px solid #3c4b4a;
    background: #101919;
    color: #c1d4d2
}
:where(:root[data-theme="sombre"]) .table-places {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .table-resa.plus-tard {
    background: #16201f
}
:where(:root[data-theme="sombre"]) .table-resa.occupee {
    background: #251c14
}
:where(:root[data-theme="sombre"]) .table-resa.assise {
    background: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .table-resa.bloquee {
    background: #2e201e;
    color: #fd9883
}
:where(:root[data-theme="sombre"]) .legende-salle {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .legende-salle .pt {
    border: 2px solid #3c4b4a;
    background: #101919
}
:where(:root[data-theme="sombre"]) .legende-salle .pt.plus-tard {
    background: #16201f
}
:where(:root[data-theme="sombre"]) .legende-salle .pt.occupee {
    background: #251c14
}
:where(:root[data-theme="sombre"]) .legende-salle .pt.assise {
    background: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .legende-salle .pt.bloquee {
    background: #2e201e
}
:where(:root[data-theme="sombre"]) .mur {
    background: #414a4a
}
:where(:root[data-theme="sombre"]) .etiquette-salle {
    color: rgba(138,199,195,0.45)
}
:where(:root[data-theme="sombre"]) .resa-ligne {
    border-top-color: #273635
}
:where(:root[data-theme="sombre"]) .resa-nb {
    background: #151f1e
}
:where(:root[data-theme="sombre"]) .resa-tel {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .resa-ligne.choisie .resa-fleche {
    outline: 3px solid #4d3722
}
:where(:root[data-theme="sombre"]) .resa-note {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .resa-statut {
    border: 2px solid #3c4b4a;
    background: #101919;
    color: #c1d4d2
}
:where(:root[data-theme="sombre"]) .st-confirmee {
    --fond: #101919;
    --texte: #3f4a4a
}
:where(:root[data-theme="sombre"]) .st-arrivee {
    --texte: #613e27
}
:where(:root[data-theme="sombre"]) .st-activite {
    --texte: #2e5132
}
:where(:root[data-theme="sombre"]) .st-fete {
    --texte: #53471a
}
:where(:root[data-theme="sombre"]) .st-partie, :where(:root[data-theme="sombre"]) .st-absente, :where(:root[data-theme="sombre"]) .st-annulee {
    --fond: #151f1e;
    --bord: #222c2b
}
:where(:root[data-theme="sombre"]) .table-resa.libre {
    border-color: #30403e
}
:where(:root[data-theme="sombre"]) .table-resa.plus-tard {
    background: #101919;
    border: 2px dashed #455554
}
:where(:root[data-theme="sombre"]) .legende-salle .pt.libre {
    border-color: #30403e
}
:where(:root[data-theme="sombre"]) .legende-salle .pt.plus-tard {
    background: #101919;
    border: 2px dashed #455554
}
:where(:root[data-theme="sombre"]) .resa-quand {
    color: #97a9a7
}
@media (min-width: 1001px) {
    :where(:root[data-theme="sombre"]) select.resa-statut option {
        color: #c1d4d2;
        background: #101919
    }
}
:where(:root[data-theme="sombre"]) .resa-ligne select.resa-statut option {
    color: #c1d4d2;
    background: #101919
}
:where(:root[data-theme="sombre"]) .st-confirmee {
    --fond: #1e2827;
    --bord: #424d4c;
    --texte: #3f4a4a
}
:where(:root[data-theme="sombre"]) .lasso {
    background: rgba(118,176,255,0.12)
}
:where(:root[data-theme="sombre"]) .menu-table {
    background: #101919;
    border: 1px solid #30403e;
    box-shadow: 0 10px 30px rgba(138,185,180,0.22)
}
:where(:root[data-theme="sombre"]) .menu-table .menu-titre {
    color: #abbdbc
}
:where(:root[data-theme="sombre"]) .menu-table button {
    color: #c1d4d2
}
:where(:root[data-theme="sombre"]) .menu-table button:hover, :where(:root[data-theme="sombre"]) .menu-table button:focus-visible {
    background: #141e1d
}
:where(:root[data-theme="sombre"]) .menu-table button[aria-current="true"] {
    background: #131d1c
}
:where(:root[data-theme="sombre"]) .menu-table .pt {
    border: 2px solid var(--bord, #3c4b4a);
    background: var(--fond, #101919)
}
:where(:root[data-theme="sombre"]) .menu-table hr {
    border-top: 1px solid #293937
}
:where(:root[data-theme="sombre"]) .resa-deplier {
    border: 1px solid #2d3c3b;
    background: #101919;
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .resa-deplier.a-details {
    background: #182221;
    border-color: #493d51;
    color: #d2a2f0
}
:where(:root[data-theme="sombre"]) .resa-details {
    background: #131c1b
}
:where(:root[data-theme="sombre"]) .resa-etiquette {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .resa-deplier {
    background: #151f1e
}
:where(:root[data-theme="sombre"]) .resa-deplier.a-details {
    background: #182221
}
:where(:root[data-theme="sombre"]) .places-plan {
    color: #abbdbc
}
:where(:root[data-theme="sombre"]) .resa-nb-carre {
    border: 2px solid #30403e;
    background: #101919;
    color: #c1d4d2
}
:where(:root[data-theme="sombre"]) .resa-section {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .resa-section.a-placer {
    color: #e48b54
}
:where(:root[data-theme="sombre"]) .resa-separation {
    border-top: 2px solid #2d3c3b
}
:where(:root[data-theme="sombre"]) .salle-actions .bouton {
    box-shadow: 0 2px 8px rgba(144,183,175,0.18)
}
:where(:root[data-theme="sombre"]) .st-partie {
    --fond: #2e2536;
    --texte: #563478
}
:where(:root[data-theme="sombre"]) .st-absente, :where(:root[data-theme="sombre"]) .st-annulee {
    --fond: #33211f;
    --texte: #772c22
}
:where(:root[data-theme="sombre"]) .resa-date-boite {
    border: 1px solid #30403e;
    background: #101919
}
:where(:root[data-theme="sombre"]) .resa-date-boite:hover {
    border-color: #455553
}
:where(:root[data-theme="sombre"]) .lc-titres {
    color: var(--gris, #97a9a7);
    background: #161f1f
}
:where(:root[data-theme="sombre"]) .lc-heure {
    background: #16201f
}
:where(:root[data-theme="sombre"]) .lc-heure strong {
    color: #8ac7c3
}
:where(:root[data-theme="sombre"]) .lc-ligne small {
    color: var(--gris, #97a9a7)
}
:where(:root[data-theme="sombre"]) .lc-placer {
    color: #e58b55
}
:where(:root[data-theme="sombre"]) .lc-heure-vide {
    background: #131c1c
}
:where(:root[data-theme="sombre"]) .lc-heure-vide strong {
    color: #8cacaa
}
:where(:root[data-theme="sombre"]) .lc-heure-fermee {
    background: #151f1e
}
:where(:root[data-theme="sombre"]) .lc-ferme-texte {
    color: #eb8374
}
:where(:root[data-theme="sombre"]) .lc-cadenas {
    color: #61ba83
}
:where(:root[data-theme="sombre"]) .lc-cadenas:hover:not(:disabled) {
    background: rgba(107,196,141,0.12)
}
:where(:root[data-theme="sombre"]) .lc-cadenas.ferme {
    color: #eb8373
}
:where(:root[data-theme="sombre"]) .lc-cadenas.ferme:hover:not(:disabled) {
    background: rgba(255,133,116,0.12)
}
:where(:root[data-theme="sombre"]) .lc-cadenas-jour {
    color: #61ba83
}
:where(:root[data-theme="sombre"]) .lc-cadenas-jour.ferme {
    color: #eb8373
}
:where(:root[data-theme="sombre"]) .lc-cadenas-jour.ferme .lc-rond {
    background: #151f1e
}
:where(:root[data-theme="sombre"]) .bouton.lc-liste-fermee .icone {
    color: #eb8373
}
:where(:root[data-theme="sombre"]) .menu-table .menu-sous {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .conflit-option.impossible p {
    color: #eb8374
}
:where(:root[data-theme="sombre"]) .fiche-table {
    background: #101a19;
    border: 1px solid #31403f;
    box-shadow: 0 8px 24px rgba(127,187,183,0.16)
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-table {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-nom {
    color: #b2d6d4
}
:where(:root[data-theme="sombre"]) .fiche-table small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-note {
    background: #161f1f
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-petit {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-titre {
    border-top: 1px solid #2c3b3a;
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .table-plus {
    box-shadow: 0 0 0 1.5px #141e1d
}
:where(:root[data-theme="sombre"]) .fiche-table.epinglee {
    box-shadow: 0 10px 30px rgba(127,187,183,0.22)
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-fermer {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-fermer:hover, :where(:root[data-theme="sombre"]) .fiche-table .ft-fermer:focus-visible, :where(:root[data-theme="sombre"]) .fiche-table .ft-points:hover, :where(:root[data-theme="sombre"]) .fiche-table .ft-points:focus-visible {
    background: #141e1d;
    color: #b2d6d4
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-actions {
    border-top: 1px solid #2c3b3a
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-statuts button {
    border: 1px solid #2c3b3a;
    background: #101919;
    color: #c1d4d2
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-statuts button:hover, :where(:root[data-theme="sombre"]) .fiche-table .ft-statuts button:focus-visible {
    background: #141e1d;
    border-color: #30403e
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-statuts button[aria-current="true"] {
    background: #141e1d
}
:where(:root[data-theme="sombre"]) .fiche-table .pt {
    border: 2px solid var(--bord, #3c4b4a);
    background: var(--fond, #101919)
}
:where(:root[data-theme="sombre"]) .fiche-table .ft-points {
    color: #abbdbc
}
:where(:root[data-theme="sombre"]) .paie-jour {
    border: 1px solid #293937;
    background: #101919;
    color: #abbdbc
}
:where(:root[data-theme="sombre"]) .paie-jour input {
    border: 1.5px solid #30403e
}
:where(:root[data-theme="sombre"]) .paie-jour small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .paie-ecart, :where(:root[data-theme="sombre"]) .paie-rouge, :where(:root[data-theme="sombre"]) .paie-rouge td, :where(:root[data-theme="sombre"]) .paie-rouge th {
    color: #ea8470
}
:where(:root[data-theme="sombre"]) .paie-alertes li {
    color: #f79b89
}
:where(:root[data-theme="sombre"]) .paie-table th, :where(:root[data-theme="sombre"]) .paie-table td {
    border-bottom: 1px solid #283736
}
:where(:root[data-theme="sombre"]) .paie-table thead th {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .paie-table tfoot td {
    border-top: 2px solid #30403e
}
:where(:root[data-theme="sombre"]) .paie-detail .paie-jour-titre th {
    background: #131d1c;
    color: #b2d6d4
}
:where(:root[data-theme="sombre"]) .paie-four td:not(.paie-case) {
    color: #b2a28f
}
:where(:root[data-theme="sombre"]) .paie-case small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fp {
    background: #172120;
    color: #b5cdd5
}
:where(:root[data-theme="sombre"]) .fp h3 {
    color: #69b4b7
}
:where(:root[data-theme="sombre"]) .fp .fp-s {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fp h4 {
    color: #69b4b7
}
:where(:root[data-theme="sombre"]) .fp-j {
    background: #101919
}
:where(:root[data-theme="sombre"]) .fp-j b {
    color: #69b4b7
}
:where(:root[data-theme="sombre"]) .fp-j span {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fp table {
    background: #101919
}
:where(:root[data-theme="sombre"]) .fp td {
    border-bottom: 1px solid #2a3938
}
:where(:root[data-theme="sombre"]) .fp tbody tr:nth-child(even) td {
    background: #131c1b
}
:where(:root[data-theme="sombre"]) .fp tfoot td {
    background: #16201f
}
:where(:root[data-theme="sombre"]) .fp-note {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fp-pied {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fp-detail summary {
    color: #69b4b7
}
:where(:root[data-theme="sombre"]) .fp-grille td small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .fp-grille td:first-child {
    background: #101919
}
:where(:root[data-theme="sombre"]) .paie-deplier {
    border: 1px solid #293937;
    background: #131d1c;
    color: #b2d6d4
}
:where(:root[data-theme="sombre"]) .paie-deplier small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .paie-jour label small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .paie-tuile {
    background: #141e1d
}
:where(:root[data-theme="sombre"]) .paie-tuile small {
    color: #abbdbc
}
:where(:root[data-theme="sombre"]) .paie-tuile span {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .paie-periode-nom small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .classeur-recherche {
    border: 1.5px solid #30403e;
    background: #101919
}
:where(:root[data-theme="sombre"]) .classeur-recherche svg {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .classeur-depot {
    border: 2px dashed #3b4a49;
    background: #131c1c
}
:where(:root[data-theme="sombre"]) .classeur-depot span {
    color: #9fb1af
}
:where(:root[data-theme="sombre"]) .classeur-depot.survol {
    background: #172120
}
:where(:root[data-theme="sombre"]) .classeur-sorte select {
    border: 1.5px solid #30403e
}
:where(:root[data-theme="sombre"]) .classeur-rapport .paie-tuile.classeur-du strong {
    color: #ea8470
}
:where(:root[data-theme="sombre"]) .classeur-ligne {
    border-top: 1px solid #283736
}
:where(:root[data-theme="sombre"]) .classeur-vignette {
    background: #16201f;
    border: 1px solid #2c3b3a
}
:where(:root[data-theme="sombre"]) .classeur-champ {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .classeur-champ input, :where(:root[data-theme="sombre"]) .classeur-champ select {
    border: 1.5px solid #30403e;
    color: #c1d3d2;
    background: #101919
}
:where(:root[data-theme="sombre"]) .classeur-meta {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .paie-publie {
    background: #141e1d;
    color: #d6a073
}
:where(:root[data-theme="sombre"]) .paie-publie.fait {
    background: #16201f
}
:where(:root[data-theme="sombre"]) .paie-tuile-graphe {
    border: 1px solid #30403e;
    background: #101919;
    color: #8ac7c3
}
:where(:root[data-theme="sombre"]) .paie-tuile-graphe[aria-pressed="true"] {
    background: #11524f;
    border-color: #4b8683
}
:where(:root[data-theme="sombre"]) .paie-graphe {
    background: #101a19
}
:where(:root[data-theme="sombre"]) .pg-an-0 line, :where(:root[data-theme="sombre"]) .pg-an-0 .pg-ligne {
    stroke: #65b6af
}
:where(:root[data-theme="sombre"]) .pg-an-1 line, :where(:root[data-theme="sombre"]) .pg-an-1 .pg-ligne {
    stroke: #e18e4d
}
:where(:root[data-theme="sombre"]) .pg-an-2 line, :where(:root[data-theme="sombre"]) .pg-an-2 .pg-ligne {
    stroke: #c09d7c
}
:where(:root[data-theme="sombre"]) .pg-table td small {
    color: var(--gris, #97a9a7)
}
:where(:root[data-theme="sombre"]) .dispo-mode label {
    border: 1px solid #30403e
}
:where(:root[data-theme="sombre"]) .dispo-mode label:has(input:checked) {
    border-color: #4b8683;
    background: #141e1d
}
:where(:root[data-theme="sombre"]) .dispo-mode input {
    accent-color: #11524f
}
:where(:root[data-theme="sombre"]) .dispo-mode small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .dispo-jour {
    border: 1px solid #293937
}
:where(:root[data-theme="sombre"]) .dispo-jour.inactif {
    background: #131c1c
}
:where(:root[data-theme="sombre"]) .dispo-coche input {
    accent-color: #11524f
}
:where(:root[data-theme="sombre"]) .dispo-heures select {
    border: 1px solid #30403e;
    background: #101919
}
:where(:root[data-theme="sombre"]) .dispo-souhaits {
    border: 1px solid #293937
}
:where(:root[data-theme="sombre"]) .dispo-semaine {
    border: 1px solid #293937
}
:where(:root[data-theme="sombre"]) .dispo-semaine li {
    border-top: 1px solid #273634
}
:where(:root[data-theme="sombre"]) .dispo-semaine em {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .dispo-personne {
    border-bottom: 1px solid #293937
}
:where(:root[data-theme="sombre"]) .pied-legal a:hover, :where(:root[data-theme="sombre"]) .pied-legal a:focus-visible {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .connexion .rester input {
    accent-color: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .ecole-formule.ecole-animation {
    background: #251c14;
    color: #dd9664
}
:where(:root[data-theme="sombre"]) .ecole-formule.ecole-cafe {
    background: #182221;
    color: #c4b193
}
:where(:root[data-theme="sombre"]) .badge-resa.badge-allergie, :where(:root[data-theme="sombre"]) .resa-ligne .badge-resa.badge-allergie {
    background: #151f1e;
    color: #f2897a;
    border: 1px solid #5c3b37
}
:where(:root[data-theme="sombre"]) .marque-allergie {
    color: #eb8373
}
:where(:root[data-theme="sombre"]) .lcs-heure {
    color: #8ac7c3
}
:where(:root[data-theme="sombre"]) .lcs-nb {
    background: #161f1f
}
:where(:root[data-theme="sombre"]) .lcs-statut {
    background: var(--fond, #101919);
    border: 2px solid var(--bord, #717e7a)
}
:where(:root[data-theme="sombre"]) .resa-liste-mobile .lc-ouverte {
    background: #131c1b
}
:where(:root[data-theme="sombre"]) .resa-liste-mobile .lc-ouverte .lc-sommaire {
    background: #141e1d
}
:where(:root[data-theme="sombre"]) .titre-periodes {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .periode-fermee {
    background: #131d1c
}
:where(:root[data-theme="sombre"]) .avis-periodes {
    background: #151f1e;
    color: #fe9987
}
:where(:root[data-theme="sombre"]) .resa-plan.plein-ecran {
    background: var(--papier, #101a19)
}
:where(:root[data-theme="sombre"]) .table-resa .repere-retard {
    border: 1.5px solid #223130
}
:where(:root[data-theme="sombre"]) .table-resa .repere-long {
    border: 1.5px solid #223130
}
:where(:root[data-theme="sombre"]) .cases-four {
    background: #131c1b
}
:where(:root[data-theme="sombre"]) .cf-libelle {
    color: #8ac7c3
}
:where(:root[data-theme="sombre"]) .cf-jour {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .cf-jour.aujourdhui {
    color: #8ac7c3
}
:where(:root[data-theme="sombre"]) .cf-case {
    border: 1.5px solid #30403e;
    background: #101919
}
:where(:root[data-theme="sombre"]) .cf-case.cochee {
    background: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .cf-case.aujourdhui {
    border: 2px solid #4b8683
}
:where(:root[data-theme="sombre"]) .message-discret {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .horo-legende {
    color: #aabcbb
}
:where(:root[data-theme="sombre"]) .horo-employe.horo-vide summary {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .horo-table th, :where(:root[data-theme="sombre"]) .horo-table td {
    border-top: 1px solid #2b3a39
}
:where(:root[data-theme="sombre"]) .horo-table th {
    color: #97a9a7;
    background: #141e1d
}
:where(:root[data-theme="sombre"]) .horo-modifie {
    background: #172120;
    color: #92bdf1
}
:where(:root[data-theme="sombre"]) .horo-retard {
    background: #182221;
    color: #f38b79
}
:where(:root[data-theme="sombre"]) .cal-fiche-nom {
    color: #b2d6d4
}
:where(:root[data-theme="sombre"]) .cal-fiche-nom small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .cal-fiche-liste li.moi {
    background: #16201f
}
:where(:root[data-theme="sombre"]) .mq-ligne {
    border: 1px solid #2a3938;
    background: #101919
}
:where(:root[data-theme="sombre"]) .mq-ligne:has(input:checked) {
    background: #141e1d
}
:where(:root[data-theme="sombre"]) .mq-ligne input {
    accent-color: var(--sarcelle-fond)
}
:where(:root[data-theme="sombre"]) .mq-offert {
    background: #131c1b
}
:where(:root[data-theme="sombre"]) .mq-etat {
    color: #e18e4c
}
:where(:root[data-theme="sombre"]) .legende-salle .legende-etat {
    border-left: 1px solid #2f3e3d
}
:where(:root[data-theme="sombre"]) .resa-grille.plein-ecran {
    background: var(--fond, #141e1d)
}
:where(:root[data-theme="sombre"]) .barre-heures {
    border: 1px solid var(--trait, #2a3a38);
    background: #101919
}
:where(:root[data-theme="sombre"]) .barre-heures .barre-reduire {
    border-bottom: 1px solid #293937;
    background: #131c1b;
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .barre-heures .barre-reduire:hover {
    background: #16201f;
    color: var(--sarcelle, #66b7b2)
}
:where(:root[data-theme="sombre"]) .barre-heures .barre-ouvrir {
    background: #131c1b;
    color: #aabcbb
}
:where(:root[data-theme="sombre"]) .barre-heures .barre-ouvrir:hover {
    background: #16201f;
    color: var(--sarcelle, #66b7b2)
}
:where(:root[data-theme="sombre"]) .barre-heures .creneau {
    color: #aabcbb
}
:where(:root[data-theme="sombre"]) .barre-heures .creneau.pile {
    border-top: 1px solid #293937
}
:where(:root[data-theme="sombre"]) .formation-ligne {
    border: 1px solid var(--trait, #2a3a38);
    background: var(--papier, #101919)
}
:where(:root[data-theme="sombre"]) .formation-ligne:hover, :where(:root[data-theme="sombre"]) .formation-ligne:focus-visible {
    border-color: var(--sarcelle, #368a85);
    background: #131d1c
}
:where(:root[data-theme="sombre"]) .formation-ligne small {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .formation-groupe {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .formation-video {
    background: #484848
}
:where(:root[data-theme="sombre"]) .formation-section {
    border: 1px solid var(--trait, #2a3a38)
}
:where(:root[data-theme="sombre"]) .formation-point {
    border-top: 1px solid #263534
}
:where(:root[data-theme="sombre"]) .formation-point small {
    color: #6bb792
}
:where(:root[data-theme="sombre"]) .formation-point input:checked + span {
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .formation-nombre {
    background: #16201f;
    color: #66b7b2
}
:where(:root[data-theme="sombre"]) .four-ecoles {
    background: #131c1b
}
:where(:root[data-theme="sombre"]) .four-ecoles-compte.plein {
    color: #8ac7c3;
    background: #101919;
    border: 1px solid #2d3c3b
}
:where(:root[data-theme="sombre"]) .four-ecoles-fleche {
    background: #101919;
    border: 1px solid #2a3938;
    color: #8ac7c3
}
:where(:root[data-theme="sombre"]) .four-ecole {
    background: #101919;
    border: 1px solid #2a3938
}
:where(:root[data-theme="sombre"]) .four-ecole.cuite {
    border-color: #2d3c3b
}
:where(:root[data-theme="sombre"]) .resa-journee-tete > svg {
    color: var(--sarcelle, #7cc0bd)
}
:where(:root[data-theme="sombre"]) .resa-telephone .legende-salle.legende-bas {
    border-top: 1px solid var(--trait, #2a3a38)
}
:where(:root[data-theme="sombre"]) .resa-liste.calee .resa-onglets {
    background: var(--papier, #101a19)
}
:where(:root[data-theme="sombre"]) .resa-liste .resa-heure {
    border-right: 1px solid #2a3a38
}
:where(:root[data-theme="sombre"]) .salle .table-resa.choix-libre {
    background: #101919;
    border-color: #30403e
}
:where(:root[data-theme="sombre"]) .salle .table-resa.choix-prise {
    border-color: #c74d3a
}
:where(:root[data-theme="sombre"]) .salle .table-resa.choix-prise .table-plus {
    color: #ec8573
}
:where(:root[data-theme="sombre"]) .legende-salle .pt.pt-prise {
    border-color: #c74d3a
}
:where(:root[data-theme="sombre"]) .salle .table-resa.taille-oui {
    background: #11524f;
    border-color: #4b8683
}
:where(:root[data-theme="sombre"]) .salle .table-resa.taille-non {
    background: #182221;
    border: 1px dashed #40504f;
    color: #97a9a7
}
:where(:root[data-theme="sombre"]) .legende-salle .pt.pt-taille-oui {
    background: #11524f;
    border-color: #4b8683
}
:where(:root[data-theme="sombre"]) .legende-salle .pt.pt-taille-non {
    background: #182221;
    border: 1px dashed #40504f
}
:where(:root[data-theme="sombre"]) .couts-orange, :where(:root[data-theme="sombre"]) .couts-tuile strong.couts-orange {
    color: #e48b54
}
:where(:root[data-theme="sombre"]) .couts-rouge, :where(:root[data-theme="sombre"]) .couts-tuile strong.couts-rouge {
    color: #eb8375
}
:where(:root[data-theme="sombre"]) .inventaire-table tr.inventaire-choisie td {
    background: color-mix(in srgb, var(--sarcelle-fond) 10%, transparent)
}
:where(:root[data-theme="sombre"]) .resa-liste .resa-ligne:not(.choisie) {
    background: #141e1d
}
:where(:root[data-theme="sombre"]) .gestion-ouvert:hover, :where(:root[data-theme="sombre"]) .gestion-ouvert:focus-within {
    box-shadow: 0 2px 10px rgba(127,187,183,0.12)
}
/* mode-sombre:fin */
