

:root:not(.hors-session) {
  --or: #ffc21a;
  --or-texte: #8a5a00;      
  --acc: #ffc21a;
  --acc-fonce: #d99a00;
  --acc-doux: #fff4cc;
  --acc-rgb: 255, 194, 26;
  --acc-trait: #b88500;     
}

:root[data-accent="citron"]:not(.hors-session) { --or: #ffd60a; --acc: #ffd60a; --acc-rgb: 255, 214, 10; --acc-fonce: #d4ae00; --or-texte: #7a5e00; --acc-trait: #ad8d00; --acc-doux: #fff8c7; }
:root[data-accent="ambre"]:not(.hors-session) { --or: #f5a300; --acc: #f5a300; --acc-rgb: 245, 163, 0; --acc-fonce: #c27f00; --or-texte: #8a4b00; --acc-trait: #b87400; --acc-doux: #ffefcf; }
:root[data-accent="or"]:not(.hors-session) { --or: #c9a24b; --acc: #c9a24b; --acc-rgb: 201, 162, 75; --acc-fonce: #a8842f; --or-texte: #8a6b26; --acc-trait: #a8842f; --acc-doux: #f7efd9; }

:root[data-sombre="oui"]:not(.hors-session) {
  --or-texte: var(--acc);
  --acc-doux: rgba(var(--acc-rgb), .14);
}
:root:not(.hors-session) .segments span.actif,
:root:not(.hors-session) .bascule button.actif { background: var(--acc); color: #17202B; }

@media (min-width: 981px) {
  header.bandeau .titre-ligne > .menu-boutique { margin: 0 auto 2px 6px; align-self: flex-end; }
  header.bandeau .titre-ligne > .menu-boutique .pilule {
    width: auto; min-width: 210px; background: var(--carte); border: 1px solid var(--bord); color: var(--encre);
  }
  header.bandeau .titre-ligne > .menu-boutique .liste-menu { min-width: 240px; }
}

:root:not(.hors-session) .fil-ariane .sous { flex-basis: 100%; }
:root:not(.hors-session) .fil-ariane .sous:not(:empty)::before { content: none; }
:root:not(.hors-session) #bouton-plage { display: none; }
@media (min-width: 981px) {
  :root:not(.hors-session) header.bandeau .large { position: relative; }
  :root:not(.hors-session) header.bandeau .barre { position: absolute; top: 20px; right: 24px; height: auto; min-height: 0; padding: 0; z-index: 3; }
  :root:not(.hors-session) header.bandeau .titre-ligne { padding-top: 16px; padding-right: 150px; align-items: center; }
}

@media (min-width: 981px) and (max-width: 1180px) {
  :root:not(.hors-session) body { padding-left: 92px; }
  :root:not(.hors-session) .tiroir { width: 92px; padding: 18px 8px; }
  :root:not(.hors-session) .marque-tiroir { justify-content: center; padding: 0 0 10px; }
  :root:not(.hors-session) .marque-tiroir > div,
  :root:not(.hors-session) .groupe-tiroir { display: none; }
  :root:not(.hors-session) .tiroir-liens { gap: 4px; }
  :root:not(.hors-session) .lien-tiroir {
    position: relative; flex-direction: column; justify-content: center; gap: 4px; padding: 9px 2px;
    border-radius: 12px; font-size: 11px; line-height: 1.2; text-align: center;
  }
  :root:not(.hors-session) .lien-tiroir.actif { font-weight: 800; }
  :root:not(.hors-session) .lien-tiroir .acc-pastille-tiroir { position: absolute; top: 3px; right: 12px; margin: 0; }
}

.acc-pastille-tiroir {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px;
  background: #D93025; color: #FFFFFF; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

#cartes.acc { display: flex; flex-direction: column; gap: 18px; }
.acc h2 { margin: 0; }

.acc-jour {
  display: grid; grid-template-columns: minmax(240px, auto) minmax(0, 1fr) 150px; gap: 26px; align-items: center;
  padding: 22px 26px; border-radius: 18px; background: var(--monde); color: #FFFFFF;
}

[data-sombre="oui"] .acc-jour { border: 1px solid rgba(255, 255, 255, .09); }
.acc-jour-total { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.acc-jour-salut { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nuit-sous); }
.acc-jour-salut::first-letter { color: var(--or-marque); }
.acc-jour-montant { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-jour-montant b { font-size: 38px; line-height: 1.05; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.acc-jour-avant { font-size: 12.5px; color: var(--nuit-sous); }
.acc-jour-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.acc-jour-col { display: flex; flex-direction: column; gap: 3px; padding: 2px 16px; border-left: 1px solid rgba(255, 255, 255, .12); min-width: 0; }
.acc-jour-titre { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nuit-sous); }
.acc-jour-col b { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-jour-sous { font-size: 11.5px; color: var(--nuit-sous); }
.acc-jour-col.acc-sorti b { color: #F2A48F; }

.acc-jour-ill { width: 150px; justify-self: end; }
.acc-ill { display: block; width: 100%; height: auto; --ill-fond: rgba(255, 255, 255, .07); --ill-gris: #3A3326; --ill-ligne: #55492F; --ill-habit: #6B5A3A; }
.acc-ill .f { fill: var(--ill-fond); } .acc-ill .g { fill: var(--ill-gris); } .acc-ill .l { fill: var(--ill-ligne); }
.acc-ill .b { fill: #FFFFFF; } .acc-ill .o { fill: var(--acc); } .acc-ill .o2 { fill: var(--acc-fonce); }
.acc-ill .m { fill: var(--ill-habit); } .acc-ill .p { fill: #7A4A2E; } .acc-ill .h { fill: #1B1410; }
.acc-ill .v { fill: #2E8B57; } .acc-ill .v2 { fill: #3FA36B; } .acc-ill .r { fill: #D9534A; }
.acc-ill .flotte { animation: acc-ill-flotte 3.2s ease-in-out infinite; }
.acc-ill .flotte2 { animation: acc-ill-flotte 3.8s ease-in-out .8s infinite; }
.acc-ill .balance { transform-box: fill-box; transform-origin: 50% 100%; animation: acc-ill-balance 3.6s ease-in-out infinite; }
.acc-ill .lueur { animation: acc-ill-lueur 2.4s ease-in-out infinite; }
@keyframes acc-ill-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes acc-ill-balance { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes acc-ill-lueur { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .acc-ill * { animation: none !important; } }

.acc .delta { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.acc .delta.up { background: #E3F4EA; color: #17663F; }
.acc .delta.down { background: #FBE6E1; color: #A3341F; }
.acc .delta.plat { background: var(--fond); color: var(--gris); }
.acc-jour .delta.up { background: rgba(88, 196, 143, .18); color: #7FDCAA; }
.acc-jour .delta.down { background: rgba(217, 132, 106, .2); color: #F2A48F; }
[data-sombre="oui"] .acc .delta.up { background: rgba(88, 196, 143, .16); color: #7FDCAA; }
[data-sombre="oui"] .acc .delta.down { background: rgba(217, 132, 106, .18); color: #F2A48F; }

.acc-surveiller, .acc-affaires {
  padding: 18px 20px; border-radius: 18px; background: var(--carte); border: 1px solid var(--bord);
}
.acc-tete-bloc { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.acc-tete-bloc h2 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-fort, var(--gris)); }
.acc-tete-droite { font-size: 12px; font-weight: 700; color: var(--or-texte); }

.acc-surveiller-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.acc-alerte {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; text-align: left;
  font: inherit; color: var(--encre); cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}
.acc-alerte.ambre { background: #FFF6DB; border-color: #F1DC9A; }
.acc-alerte.rouge { background: #FDECEA; border-color: #F3C8C0; }
.acc-alerte-titre { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.3; }
.acc-alerte-ico { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.acc-alerte.ambre .acc-alerte-ico { color: #A86B00; }
.acc-alerte.rouge .acc-alerte-ico { color: #B42318; }
.acc-alerte-ico svg { width: 100%; height: 100%; display: block; }
.acc-alerte-texte { font-size: 12.5px; line-height: 1.4; color: var(--gris); }
.acc-alerte-lien { font-size: 12.5px; font-weight: 800; color: var(--encre); margin-top: auto; }
.acc-plus { margin: 10px 0 0; font-size: 12.5px; color: var(--gris); }
[data-sombre="oui"] .acc-alerte.ambre { background: rgba(255, 194, 26, .10); border-color: rgba(255, 194, 26, .28); }
[data-sombre="oui"] .acc-alerte.rouge { background: rgba(240, 120, 100, .12); border-color: rgba(240, 120, 100, .30); }
[data-sombre="oui"] .acc-alerte.ambre .acc-alerte-ico { color: #ffc21a; }
[data-sombre="oui"] .acc-alerte.rouge .acc-alerte-ico { color: #F2A48F; }

.acc-tete-affaires { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.acc-titres { display: flex; flex-direction: column; gap: 2px; }
.acc-titres h2 { font-size: 19px; }
.acc-titres span { font-size: 12.5px; color: var(--gris); }
.acc-commandes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-filtres, .acc-bascule { display: inline-flex; gap: 6px; }
.acc-filtre, .acc-vue {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--bord); background: var(--carte); color: var(--encre); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.acc-filtre.actif, .acc-vue.actif { background: var(--acc); border-color: var(--acc); color: #17202B; }
.acc-compte { min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 6px; background: var(--fond); font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }
.acc-filtre.actif .acc-compte { background: rgba(23, 32, 43, .14); }
.acc-bascule { padding: 3px; border-radius: 12px; background: var(--fond); }
.acc-vue { height: 30px; border-color: transparent; background: transparent; }
.acc-vue-ico { width: 15px; height: 15px; display: inline-flex; }
.acc-vue-ico svg { width: 100%; height: 100%; fill: currentColor; }

.acc-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.acc-tuile {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; text-align: left;
  border: 1px solid var(--bord); background: var(--carte); color: var(--encre); font: inherit; min-width: 0;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, border-color .2s ease;
}
button.acc-tuile { cursor: pointer; }
.acc-tuile-tete { display: flex; align-items: flex-start; gap: 10px; }
.acc-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acc-ico svg { width: 24px; height: 24px; display: block; }
.acc-ico.petit { width: 26px; height: 26px; border-radius: 8px; }
.acc-ico.petit svg { width: 18px; height: 18px; }
.acc-b .acc-ico { background: #FFF2C7; }
.acc-p .acc-ico { background: #E3ECFC; }
.acc-c .acc-ico { background: #DFF3E7; }
.acc-tuile-noms { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-tuile-noms b { font-size: 15px; line-height: 1.25; }
.acc-badge { align-self: flex-start; padding: 1px 7px; border-radius: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.acc-b .acc-badge { background: #FFE9A6; color: #6E4500; }
.acc-p .acc-badge { background: #D6E4FB; color: #1C4A9C; }
.acc-c .acc-badge { background: #D2EEDD; color: #1A6040; }
.acc-lieu { font-size: 12px; font-weight: 700; color: var(--or-texte); }
.acc-lieu-gris { font-size: 12px; color: var(--gris); line-height: 1.35; }
.acc-mesure { display: flex; flex-direction: column; gap: 2px; }
.acc-libelle { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gris); }
.acc-montant { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-montant b { font-size: 23px; font-variant-numeric: tabular-nums; }
.acc-barres { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.acc-barres i { flex: 1; border-radius: 3px; min-height: 4px; }
.acc-b .acc-barres i { background: #FBE7A6; }
.acc-p .acc-barres i { background: #CFDFFA; }
.acc-c .acc-barres i { background: #CDEBD9; }
.acc-b .acc-barres i.auj { background: var(--acc); }
.acc-p .acc-barres i.auj { background: #2F6FD6; }
.acc-c .acc-barres i.auj { background: #2E9461; }
.acc-pied { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.acc-mots { font-size: 12px; color: var(--gris); }
.acc-pied-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acc-etat { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--gris); min-width: 0; }
.acc-etat i { width: 7px; height: 7px; border-radius: 4px; flex-shrink: 0; }
.acc-ouvrir { font-size: 12.5px; font-weight: 800; color: var(--or-texte); white-space: nowrap; }
.acc-muet { margin: 0; font-size: 13px; color: var(--gris); }
.acc-tuile.muette { opacity: .78; }
.acc-ajouter { border-style: dashed; background: transparent; gap: 8px; }
.acc-plus-rond { width: 40px; height: 40px; border-radius: 20px; border: 1.5px solid var(--bord); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--gris); flex-shrink: 0; }
.acc-bientot { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-top: 4px; }
.acc-bientot-ligne { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.acc-bientot-ligne .acc-ico { background: var(--fond); }

[data-sombre="oui"] .acc-b .acc-ico, [data-sombre="oui"] .acc-b .acc-badge { background: rgba(255, 194, 26, .16); color: #ffc21a; }
[data-sombre="oui"] .acc-p .acc-ico, [data-sombre="oui"] .acc-p .acc-badge { background: rgba(90, 150, 240, .18); color: #9DC0F5; }
[data-sombre="oui"] .acc-c .acc-ico, [data-sombre="oui"] .acc-c .acc-badge { background: rgba(80, 190, 130, .18); color: #8ED8AE; }
[data-sombre="oui"] .acc-b .acc-barres i { background: rgba(255, 194, 26, .22); }
[data-sombre="oui"] .acc-p .acc-barres i { background: rgba(90, 150, 240, .26); }
[data-sombre="oui"] .acc-c .acc-barres i { background: rgba(80, 190, 130, .26); }
[data-sombre="oui"] .acc-b .acc-barres i.auj { background: var(--acc); }
[data-sombre="oui"] .acc-p .acc-barres i.auj { background: #5A96F0; }
[data-sombre="oui"] .acc-c .acc-barres i.auj { background: #50BE82; }

@media (hover: hover) {
  button.acc-tuile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 24, 32, .10); border-color: var(--acc); }
  .acc-alerte:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 24, 32, .08); }
  .acc-filtre:not(.actif):hover, .acc-vue:not(.actif):hover { border-color: var(--acc); }
}
@media (prefers-reduced-motion: reduce) {
  .acc-tuile, .acc-alerte { transition: none; }
  button.acc-tuile:hover, .acc-alerte:hover { transform: none; }
}

.acc-rangee { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.acc-rangee.seule { grid-template-columns: minmax(0, 1fr); }
.acc-bloc {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; box-sizing: border-box;
  padding: 18px 20px; border-radius: 18px; background: var(--carte); border: 1px solid var(--bord);
}
.acc-bloc .acc-tete-bloc { margin-bottom: 0; }
.acc-courbe-ligne { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.acc-courbe-titre { font-size: 15px; font-weight: 800; }
.acc-courbe-droite { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-courbe-droite b { font-size: 15px; font-variant-numeric: tabular-nums; }
.acc-courbe-compare { font-size: 12.5px; color: var(--gris); }
.acc-courbe-trace svg { display: block; width: 100%; height: auto; }
.acc-courbe-trace text { font-size: 11px; fill: #7B8494; font-family: inherit; }
.acc-grille { stroke: rgba(120, 130, 145, .18); stroke-width: 1; }
.acc-aire { fill: rgba(var(--acc-rgb), .16); }
.acc-avant { fill: none; stroke: #A3ABB8; stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.acc-trait { fill: none; stroke: var(--acc-trait); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.acc-maintenant { stroke: var(--acc-trait); stroke-width: 1; stroke-dasharray: 2 3; opacity: .6; }
.acc-point { fill: var(--acc-trait); }
.acc-halo { fill: var(--acc-trait); opacity: .18; }
.acc-point-avant { fill: #A3ABB8; }
.acc-courbe-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--gris); }
.acc-courbe-legende span { display: inline-flex; align-items: center; gap: 7px; }
.acc-trait-plein { width: 18px; height: 3px; border-radius: 2px; background: var(--acc); }
.acc-trait-tirets { width: 18px; border-top: 2px dashed #A3ABB8; }

.acc-argent-etat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gris); white-space: nowrap; }
.acc-argent-etat i { width: 7px; height: 7px; border-radius: 50%; background: #12B76A; flex-shrink: 0; }
.acc-argent-etat.vieux i { background: #A3ABB8; }
.acc-argent-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acc-argent-total span { font-size: 13.5px; color: var(--gris); }
.acc-argent-total b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acc-argent-barre { display: flex; gap: 2px; height: 8px; width: 100%; }
.acc-argent-barre span { min-width: 4px; border-radius: 99px; }
.acc-argent-ligne {
  display: flex; align-items: center; gap: 12px; padding: 9px 8px; margin: 0 -8px; border-radius: 10px;
  border-top: 1px solid var(--filet);
}
.acc-argent-rond {
  width: 32px; height: 32px; border-radius: 50%; background: #F7EFD9; color: var(--encre); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.acc-argent-rond.chez { background: var(--encre); color: var(--carte); }
.acc-argent-noms { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.acc-argent-noms b { font-size: 14px; }
.acc-argent-noms span { font-size: 12px; color: var(--gris); }
.acc-argent-ligne > b { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acc-ecart { font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: #FBE9E7; color: var(--sortie); white-space: nowrap; }
.acc-ecart.plus { background: #E3F2EC; color: var(--entree); }
[data-sombre="oui"] .acc-argent-rond:not(.chez) { background: #2B2414; }
[data-sombre="oui"] .acc-ecart { background: #331A16; }
[data-sombre="oui"] .acc-ecart.plus { background: #18291B; }
@media (hover: hover) { .acc-argent-ligne:hover { background: var(--survol); } }

.acc-bienvenue {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 16px; background: var(--acc-doux); border: 1.5px solid var(--acc);
}
.acc-bienvenue-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 320px; }
.acc-bienvenue-sur { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--or-texte); }
.acc-bienvenue-texte b { font-size: 16.5px; }
.acc-bienvenue-texte span:last-child { font-size: 13.5px; color: var(--gris); line-height: 1.45; }
.acc-bienvenue-actions { display: flex; gap: 8px; }
.acc-bienvenue-voir, .acc-bienvenue-fermer {
  height: 38px; padding: 0 16px; border-radius: 11px; display: inline-flex; align-items: center; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; text-decoration: none;
}
.acc-bienvenue-voir { background: var(--acc); color: #17202B; border: 0; }
.acc-bienvenue-fermer { background: transparent; color: var(--encre); border: 1px solid var(--bord); }

.acc-nouveaute { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; color: var(--encre); text-decoration: none; font-size: 13px; }
.acc-nouveaute span { color: var(--gris); line-height: 1.4; }
.acc-nouveaute.neuve { background: var(--acc-doux); }
.acc-nouveaute-date { font-size: 11.5px; }
a.acc-nouveaute:hover { background: var(--fond); }

@media (max-width: 1180px) {
  .acc-jour { grid-template-columns: 1fr; gap: 16px; }
  .acc-jour-ill { display: none; }
  .acc-jour-col:first-child { border-left: 0; padding-left: 0; }
  
  .acc-rangee { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .acc-jour { padding: 18px; }
  .acc-jour-montant b { font-size: 32px; }
  .acc-jour-cols { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .acc-jour-col { border-left: 0; padding: 0 8px 0 0; }
  
  .acc-surveiller-grille { grid-template-columns: 1fr; gap: 8px; }
  .acc-alerte { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 12px; }
  .acc-alerte-texte { display: none; }
  .acc-alerte-lien { margin-top: 0; white-space: nowrap; font-size: 0; }
  .acc-alerte-lien::after { content: "→"; font-size: 16px; }
  .acc-tuiles { grid-template-columns: 1fr; }
  .acc-tete-affaires { align-items: flex-start; }
  .acc-filtres { flex-wrap: wrap; }
  
  #cartes.acc > .filtres, #ventes-contenu > .filtres, #comptes-contenu > .filtres, #rapports-contenu > .filtres, #journal-contenu > .filtres { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  #cartes.acc > .filtres .menu-boutique, #ventes-contenu > .filtres .menu-boutique, #comptes-contenu > .filtres .menu-boutique, #rapports-contenu > .filtres .menu-boutique, #journal-contenu > .filtres .menu-boutique { grid-column: 1; }
  #cartes.acc > .filtres .menu:not(.menu-boutique), #ventes-contenu > .filtres .menu:not(.menu-boutique), #comptes-contenu > .filtres .menu:not(.menu-boutique), #rapports-contenu > .filtres .menu:not(.menu-boutique), #journal-contenu > .filtres .menu:not(.menu-boutique) { grid-column: 2; grid-row: 1; }
  #cartes.acc > .filtres .segments, #ventes-contenu > .filtres .segments, #comptes-contenu > .filtres .segments, #rapports-contenu > .filtres .segments, #journal-contenu > .filtres .segments { grid-column: 1 / -1; margin: 0; }
  #cartes.acc > .filtres .pilule, #ventes-contenu > .filtres .pilule, #comptes-contenu > .filtres .pilule, #rapports-contenu > .filtres .pilule, #journal-contenu > .filtres .pilule,
  #cartes.acc > .filtres .pilule-icone, #ventes-contenu > .filtres .pilule-icone, #comptes-contenu > .filtres .pilule-icone, #rapports-contenu > .filtres .pilule-icone, #journal-contenu > .filtres .pilule-icone,
  #cartes.acc > .filtres .segments, #ventes-contenu > .filtres .segments, #comptes-contenu > .filtres .segments, #rapports-contenu > .filtres .segments, #journal-contenu > .filtres .segments { background: var(--carte); border-color: var(--bord); color: var(--encre); }
  #cartes.acc > .filtres .pilule .chevron, #ventes-contenu > .filtres .pilule .chevron, #comptes-contenu > .filtres .pilule .chevron, #rapports-contenu > .filtres .pilule .chevron, #journal-contenu > .filtres .pilule .chevron,
  #cartes.acc > .filtres .pilule-icone svg, #ventes-contenu > .filtres .pilule-icone svg, #comptes-contenu > .filtres .pilule-icone svg, #rapports-contenu > .filtres .pilule-icone svg, #journal-contenu > .filtres .pilule-icone svg { color: var(--gris); }
}

.ven { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.ven + .ven { margin-top: 18px; }
.ven-gauche { min-width: 0; position: sticky; top: 12px; }
.ven-gauche .releve-affaires { position: static; padding: 20px; }
.ven-releve > .k, .ven-pilules > .k { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; }

.ven .delta { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.ven .delta.up { background: rgba(74, 222, 128, .14); color: #4ADE80; }
.ven .delta.down { background: rgba(248, 113, 113, .16); color: #F87171; }
.ven .delta.plat { background: rgba(243, 237, 224, .10); color: var(--nuit-sous); }
.ven-releve-sq { height: 520px; border-radius: 18px; }

.ven-pilules { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 4px; margin-top: 4px; border-top: 1px solid rgba(243, 237, 224, .10); }
.ven-pilules > .k { margin-bottom: 2px; }
.ven-pilule {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 9px 10px 9px 14px;
  border: 0; border-radius: 99px; font: inherit; text-align: left; cursor: pointer;
  background-color: rgba(243, 237, 224, .06); color: #F2EDE2;
  transition: background-color .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease;
}
.ven-pilule-noms { display: flex; flex-direction: column; gap: 1px; flex-grow: 1; min-width: 0; }
.ven-pilule-noms b { font-size: 13.5px; font-weight: 800; }
.ven-pilule-noms span { font-size: 11.5px; color: var(--nuit-sous); }
.ven-pilule-montant { font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ven-fleche { display: inline-flex; flex-shrink: 0; font-size: 16px; line-height: 1; opacity: 0; transform: translateX(-6px); transition: opacity .22s ease, transform .22s ease; }
.ven-pilule.on { background-color: var(--acc); color: #17140F; box-shadow: 0 6px 18px rgba(var(--acc-rgb), .30); }
.ven-pilule.on .ven-pilule-noms span { color: rgba(23, 20, 15, .70); }
.ven-pilule.on .ven-fleche { opacity: 1; transform: none; }
.ven-pilule:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (hover: hover) {
  .ven-pilule:not(.on):hover { background-color: rgba(243, 237, 224, .14); transform: translateX(4px); }
  .ven-pilule:hover .ven-fleche { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ven-pilule, .ven-fleche { transition: none; } .ven-pilule:hover { transform: none; } }
.ven-pilule-detail { display: flex; flex-direction: column; gap: 6px; margin: 2px 12px 6px; font-size: 12px; line-height: 1.45; color: var(--nuit-sous); }
.ven-jauge { display: block; height: 6px; border-radius: 99px; background: rgba(243, 237, 224, .12); overflow: hidden; }
.ven-jauge i { display: block; height: 100%; border-radius: 99px; background: var(--acc); }
.ven-pilules .note { font-size: 11.5px; color: var(--nuit-sous); line-height: 1.4; margin-top: 4px; }

.ven-replier {
  height: 36px; border-radius: 12px; border: 1px dashed rgba(243, 237, 224, .28); background: transparent; color: #F2EDE2;
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .15s ease;
}
@media (hover: hover) { .ven-replier:hover { background: rgba(243, 237, 224, .08); } }
.ven-replier:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.ven-portes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 16px; margin-top: 6px; border-top: 1px solid rgba(243, 237, 224, .10); }
.ven-porte { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; border: 0; border-radius: 12px; background: none; font: inherit; color: #F2EDE2; cursor: pointer; font-size: 11.5px; font-weight: 700; }
.ven-disque { width: 44px; height: 44px; border-radius: 50%; background: #fff3cf; display: inline-flex; align-items: center; justify-content: center; }
.ven-disque svg { display: block; }
.ven-porte:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (hover: hover) { .ven-porte:hover { background: rgba(243, 237, 224, .08); } }

.ven-carte { gap: 12px; }
.ven-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ven-tete h2 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-fort, var(--gris)); }
.ven-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ven-cherche {
  display: flex; align-items: center; gap: 8px; height: 40px; width: 100%; max-width: 380px; padding: 0 14px;
  border: 1px solid var(--bord); border-radius: 10px; background: var(--fond); color: var(--gris); box-sizing: border-box;
}
.ven-loupe { display: inline-flex; }
.ven-cherche input { border: 0; outline: none; background: transparent; color: var(--encre); font: inherit; font-size: 13.5px; width: 100%; }
.ven-cherche:focus-within { border-color: var(--acc); }
.ven-tri { font-size: 12px; font-weight: 700; color: var(--gris); }
.ven-legende { margin: 0; font-size: 12px; color: var(--gris); line-height: 1.45; }
.ven-legende b { color: var(--encre); }
.ven-note { margin: 0; font-size: 12px; color: var(--gris); }

.ven-ligne {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 1.7fr);
  gap: 4px 10px; align-items: center; width: 100%; box-sizing: border-box; padding: 10px 8px; margin: 0;
  border: 0; border-top: 1px solid var(--filet); border-radius: 10px; background: none; font: inherit; color: var(--encre); text-align: left;
}
button.ven-ligne { cursor: pointer; }
.ven-ligne > :nth-child(2), .ven-ligne > :nth-child(3) { text-align: right; }
.ven-entete { border-top: 0; border-bottom: 1px solid var(--filet); border-radius: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.ven-entete > :last-child { text-align: right; }
.ven-defile { max-height: 620px; overflow-y: auto; border-bottom: 1px solid var(--filet); }
.ven-defile > .ven-ligne:first-child { border-top: 0; }
.ven-art { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ven-vignette {
  width: 40px; height: 40px; border-radius: 10px; background: #F7EFD9; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12.5px;
}
.ven-noms { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ven-noms b { font-size: 14px; }
.ven-prix { font-size: 12px; color: var(--gris); }
.ven-sous-tel, .ven-reste-tel { display: none; }
.ven-vendu { white-space: nowrap; }
.ven-vendu b { font-size: 15px; }
.ven-vendu span { font-size: 13px; font-weight: 600; color: var(--gris); }
.ven-rapporte { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ven-reste { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }

.ven-reste-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; }
.ven-reste-haut b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ven-etat { white-space: nowrap; }
.ven-etat.epuise { font-size: 10.5px; font-weight: 800; color: var(--sortie); background: #FBE9E7; padding: 2px 7px; border-radius: 5px; }
.ven-etat.peu { font-size: 10.5px; font-weight: 800; color: #8A6400; background: #FBF1D6; padding: 2px 7px; border-radius: 5px; }
.ven-etat.ok { font-size: 11.5px; color: var(--gris); }
.ven-etat.nc { font-size: 11.5px; color: var(--gris); font-style: italic; }
.ven-jours { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--gris); white-space: nowrap; }
.ven-jauge.clair { width: 70px; background: var(--filet); }
.ven-jauge.clair i.epuise { background: var(--sortie); }
.ven-jauge.clair i.peu { background: #C99A1E; }
.ven-jauge.clair i.ok { background: var(--entree); }
.ven-detail { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 12px; margin-top: 4px; border-radius: 10px; background: var(--fond); font-size: 12.5px; }
.ven-detail[hidden] { display: none; }
.ven-detail b.epuise { color: var(--sortie); }
.ven-detail b.peu { color: #8A6400; }
.ven-detail b.ok { color: var(--entree); }
.ven-ligne.muet .ven-rapporte, .ven-ligne.muet .ven-vendu b { color: var(--gris); }
.ven-rien { padding: 18px 8px; }
.ven-plus { margin: 10px auto 2px; display: flex; }
.ven-pied { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0 2px; border-top: 2px solid var(--encre); font-size: 14px; font-weight: 800; }
@media (hover: hover) { .ven-ligne:not(.ven-entete):hover { background: var(--survol); } }

[data-sombre="oui"] .ven-vignette { background: #2B2414; }
[data-sombre="oui"] .ven-etat.epuise { background: #331A16; }
[data-sombre="oui"] .ven-etat.peu { background: #2B2410; color: #E0B43C; }
[data-sombre="oui"] .ven-detail b.peu { color: #E0B43C; }
[data-sombre="oui"] .ven-disque { background: #2B2414; }

@media (max-width: 1180px) {
  .ven { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .ven { grid-template-columns: minmax(0, 1fr); }
  #ventes-contenu > .filtres, #comptes-contenu > .filtres, #rapports-contenu > .filtres, #journal-contenu > .filtres { margin-bottom: 14px; }
  .ven-carte { order: -1; }
  .ven-gauche { position: static; }
  .ven-entete, .ven-vendu, .ven-prix { display: none; }
  .ven-sous-tel { display: block; font-size: 12px; color: var(--gris); }
  .ven-ligne { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 0; border-radius: 0; }
  .ven-ligne > :nth-child(3) { text-align: right; }
  .ven-rapporte { font-size: 14.5px; }
  .ven-reste {
    grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 7px 10px; border-radius: 10px; background: var(--fond);
  }
  .ven-reste-tel { display: inline; font-size: 12px; color: var(--gris); }
  .ven-jours { width: 100%; justify-content: flex-end; }
  .ven-defile { max-height: none; overflow: visible; border-bottom: 0; }
  .ven-vignette { width: 38px; height: 38px; font-size: 12px; }
}

.cre { display: grid; grid-template-columns: 330px minmax(0, 1fr); grid-template-areas: "releve carte" "relance carte"; gap: 18px; align-items: start; }
.cre-releve { grid-area: releve; min-width: 0; }
.cre-releve .releve-affaires { position: static; padding: 20px; }
.cre-carte { grid-area: carte; grid-row: 1 / span 2; }
.cre-relance { grid-area: relance; }
.cre .delta { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }

.cre-puces { flex-wrap: wrap; }
.cre-resume { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--fond); }
.cre-resume-ligne { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.cre-resume-ligne > span { color: var(--gris); }
.cre-vert { color: var(--entree); }
.cre-terre { color: var(--sortie); }

.cre-jauge { display: block; width: 100%; height: 8px; border-radius: 99px; background: rgba(176, 82, 59, .20); overflow: hidden; }
.cre-jauge.retard { background: rgba(176, 82, 59, .45); }
.cre-jauge.grosse { height: 10px; }
.cre-jauge.moyenne { height: 9px; }
.cre-jauge i { display: block; height: 100%; border-radius: 99px; background: var(--entree); }

.cre-avatar {
  border-radius: 50%; background: #F7EFD9; color: var(--encre); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.cre-avatar.retard { background: #FBE9E7; color: var(--sortie); }
.cre-etiquette { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.cre-etiquette.retard { color: var(--sortie); background: #FBE9E7; }
.cre-etiquette.fournisseur { color: var(--encre); background: var(--fond); }
.cre-noms { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cre-noms b { font-size: 14.5px; line-height: 1.25; }
.cre-noms > span { font-size: 12px; color: var(--gris); }
.cre-noms > span b { font-size: inherit; color: var(--encre); }
.cre-mots { font-size: 11.5px; color: var(--gris); line-height: 1.35; }
.cre-quand { font-size: 12px; font-weight: 800; color: var(--gris); }
.cre-quand.retard { color: var(--sortie); }

.cre-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.cre-tuile {
  display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 16px; min-width: 0; box-sizing: border-box;
  background: var(--carte); border: 1px solid var(--bord); color: var(--encre); font: inherit; text-align: left; cursor: pointer;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, border-color .22s ease;
}
.cre-tuile-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; }
.cre-doit { display: flex; flex-direction: column; gap: 1px; }
.cre-doit span { font-size: 10.5px; font-weight: 800; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.cre-doit b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cre-tuile.ouverte, .cre-ligne.ouverte { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .35); }

.cre-liste { display: flex; flex-direction: column; }
.cre-ligne {
  display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px 8px; box-sizing: border-box; border: 0;
  border-top: 1px solid var(--filet); border-radius: 12px; background: none; font: inherit; color: var(--encre); text-align: left; cursor: pointer;
}
.cre-ligne-haut { display: flex; align-items: center; gap: 12px; }
.cre-ligne-haut .cre-noms { flex-grow: 1; }
.cre-ligne-nom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cre-ligne-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.cre-ligne-droite > b { font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cre-ligne-bas { display: flex; flex-direction: column; gap: 5px; padding-left: 52px; }
.cre-ligne-bas .cre-mots { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.cre-ligne-bas .cre-mots b { color: var(--encre); }
.cre-ligne-bas .cre-mots b.cre-vert { color: var(--entree); }
@media (hover: hover) {
  .cre-tuile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(23, 32, 43, .13); }
  .cre-ligne:hover { background: var(--survol); }
}
@media (prefers-reduced-motion: reduce) { .cre-tuile { transition: none; } .cre-tuile:hover { transform: none; } }

.cre-relance-haut { display: flex; align-items: center; gap: 12px; }
.cre-relance-texte { display: flex; flex-direction: column; gap: 5px; flex-grow: 1; min-width: 0; }
.cre-relance-texte b { font-size: 15px; }
.cre-relance-texte span { font-size: 12.5px; color: var(--gris); line-height: 1.45; }
.cre-relance-ill { width: 120px; flex-shrink: 0; }
.cre-relance-ill svg { display: block; width: 100%; height: auto; }
.acc-ill-clair { --ill-fond: #EAEEF4; --ill-gris: #DCE2EA; --ill-ligne: #C3CCD8; --ill-habit: var(--monde); }
[data-sombre="oui"] .acc-ill-clair { --ill-fond: rgba(243, 237, 224, .06); --ill-gris: #3A3326; --ill-ligne: #55492F; --ill-habit: #6B5A3A; }
.acc-ill .pt { animation: acc-ill-point 1.4s ease-in-out infinite; }
.acc-ill .pt2 { animation-delay: .2s; }
.acc-ill .pt3 { animation-delay: .4s; }
@keyframes acc-ill-point { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.cre-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; width: 100%; box-sizing: border-box;
  border: 0; border-radius: 12px; background-color: #1F7A50; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; text-decoration: none;
}
.cre-whatsapp:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (hover: hover) { .cre-whatsapp:hover { background-color: #186842; } }
.cre-relance-liste { display: flex; flex-direction: column; }
.cre-relance-liste[hidden] { display: none; }
.cre-relance-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--filet); }
.cre-relance-ligne > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cre-relance-ligne > span b { font-size: 13.5px; }
.cre-relance-ligne > span span { font-size: 12px; color: var(--gris); }
.cre-relance-lien { font-size: 12.5px; font-weight: 800; color: #1F7A50; white-space: nowrap; text-decoration: none; }
[data-sombre="oui"] .cre-relance-lien { color: #4ADE80; }

.cre-voile { position: fixed; inset: 0; z-index: 60; background: rgba(13, 11, 7, .42); cursor: pointer; animation: cre-voile .22s ease; }
.cre-tiroir {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: 400px; max-width: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 14px; padding: 20px; overflow-y: auto;
  background: var(--carte); color: var(--encre); box-shadow: -18px 0 40px rgba(13, 11, 7, .22);
  animation: cre-tiroir .28s cubic-bezier(.2, .8, .2, 1);
}
.cre-voile.sans-entree, .cre-tiroir.sans-entree { animation: none; }
@keyframes cre-voile { from { opacity: 0; } to { opacity: 1; } }
@keyframes cre-tiroir { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cre-voile, .cre-tiroir { animation: none; } }
.cre-tiroir-tete { display: flex; align-items: center; gap: 12px; }
.cre-tiroir-tete .cre-noms { flex-grow: 1; }
.cre-tiroir-nom { font-size: 18px !important; letter-spacing: -.01em; }
.cre-fermer { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--bord); background: var(--carte); color: var(--encre); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.cre-boites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cre-boite { padding: 12px; border-radius: 14px; }
.cre-boite span { display: block; font-size: 12px; font-weight: 700; }
.cre-boite b { font-size: 22px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cre-boite.terre { background: #FBE9E7; }
.cre-boite.terre span { color: var(--sortie); }
.cre-boite.vert { background: #E3F2EC; }
.cre-boite.vert span { color: var(--entree); }
.cre-phrase { margin: 0; font-size: 12.5px; color: var(--gris); line-height: 1.45; }
.cre-fil-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.cre-fil-titre span:first-child { font-size: 12px; font-weight: 800; color: var(--gris); text-transform: uppercase; letter-spacing: .08em; }
.cre-fil-titre span:last-child { font-size: 12px; color: var(--gris); }
.cre-fil { position: relative; display: flex; flex-direction: column; }
.cre-fil::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--filet); }
.cre-fil-ligne { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; position: relative; }
.cre-point { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; box-shadow: 0 0 0 3px var(--carte); }
.cre-point.pris { background: var(--acc); }
.cre-point.rendu { background: var(--entree); }
.cre-point.echeance { background: #B0523B; }
.cre-fil-corps { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; font-size: 12.5px; }
.cre-fil-haut { font-size: 13px; }
.cre-fil-corps > span:last-child:not(.cre-fil-haut) { color: var(--gris); }

.cre-fil-articles { color: var(--encre) !important; font-weight: 600; overflow-wrap: anywhere; }
.cre-fil-ligne.cliquable { cursor: pointer; border-radius: 10px; margin: 0 -8px; padding: 6px 8px; }
@media (hover: hover) { .cre-fil-ligne.cliquable:hover { background: var(--survol); } }
.cre-fil-montant { font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cre-fil-montant.rendu { color: var(--entree); }

[data-sombre="oui"] .cre-avatar { background: #2B2414; }
[data-sombre="oui"] .cre-avatar.retard, [data-sombre="oui"] .cre-etiquette.retard, [data-sombre="oui"] .cre-boite.terre { background: #331A16; }
[data-sombre="oui"] .cre-boite.vert { background: #18291B; }

@media (max-width: 1180px) {
  .cre { grid-template-columns: 290px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .cre { grid-template-columns: minmax(0, 1fr); grid-template-areas: "releve" "carte" "relance"; }
  .cre-carte { grid-row: auto; }
  .cre-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cre-doit b { font-size: 18px; }
  .cre-ligne-bas { padding-left: 0; }
  .cre-tiroir { width: 100%; }
  .cre-relance-ill { width: 108px; }
}

.sto-rang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sto-lien { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--or-texte); cursor: pointer; }
.sto-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 12px; color: var(--gris); }
.sto-legende b { color: var(--encre); }
.sto-legende-trait, .sto-legende-point { display: inline-flex; align-items: center; gap: 6px; }
.sto-legende-trait i { width: 2px; height: 12px; border-radius: 1px; background: var(--encre); opacity: .45; }
.sto-legende-point i { width: 8px; height: 8px; border-radius: 50%; }
.sto-legende-point i.epuise { background: #B0523B; }
.sto-legende-point i.bas { background: #B58A00; }
.sto-legende-point i.ok { background: #1F7A50; }

.sto-cadre { max-height: 760px; overflow-y: auto; margin: 0 -8px; padding: 2px 8px 6px; }
.sto-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.sto-liste { display: flex; flex-direction: column; }

.sto-tuile {
  display: flex; flex-direction: column; gap: 9px; width: 100%; min-width: 0; box-sizing: border-box; padding: 14px;
  border-radius: 16px; background: var(--carte); border: 1px solid var(--bord); color: var(--encre); font: inherit; text-align: left; cursor: pointer;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, border-color .22s ease;
}
.sto-tuile .sto-photo { position: relative; display: block; height: 112px; margin: -14px -14px 2px; border-radius: 15px 15px 0 0; overflow: hidden; }
.sto-sans-photo {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #f7f2e8, #e8e0d0); color: #8A7E68;
}
.sto-sans-photo b { font-size: 2em; color: #5A4F3C; }
.sto-sans-photo span { font-size: 10.5px; font-weight: 700; }
.sto-etat {
  position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #FFFFFF;
}
.sto-etat.epuise { background: #B0523B; }
.sto-etat.bas { background: #B58A00; }
.sto-etat.ok { background: #1F7A50; }
.sto-boutique { position: absolute; top: 9px; right: 8px; font-size: 11px; font-weight: 700; color: #3A3428; background: rgba(255, 255, 255, .92); padding: 1px 7px; border-radius: 5px; white-space: nowrap; max-width: calc(100% - 50px); overflow: hidden; text-overflow: ellipsis; }
.sto-boutique.en-ligne { position: static; background: var(--fond); color: var(--encre); }
.sto-noms { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sto-nom-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sto-nom { font-size: 14px; line-height: 1.25; }
.sto-mesure { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sto-chiffre { display: flex; align-items: baseline; gap: 5px; }
.sto-chiffre b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sto-chiffre span { font-size: 13px; font-weight: 600; color: var(--gris); }
.sto-terre { color: var(--sortie); }

.sto-jauge { position: relative; display: block; width: 100%; height: 8px; border-radius: 99px; background: var(--filet); }
.sto-jauge i { display: block; height: 100%; border-radius: 99px; }
.sto-jauge i.epuise { background: #B0523B; }
.sto-jauge i.bas { background: #B58A00; }
.sto-jauge i.ok { background: #1F7A50; }
.sto-trait { position: absolute; left: 50%; top: -3px; width: 2px; height: 14px; border-radius: 1px; background: var(--encre); opacity: .45; }
.sto-mots { font-size: 11.5px; color: var(--gris); line-height: 1.35; }
.sto-racheter { align-self: flex-start; font-size: 12px; font-weight: 800; color: var(--or-texte); background: var(--acc-doux); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.sto-negatif { font-size: 11.5px; font-weight: 700; color: var(--sortie); }
.sto-tuile.ouverte, .sto-ligne.ouverte { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .35); }

.sto-ligne {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(120px, 190px); gap: 4px 14px; align-items: center; width: 100%;
  padding: 10px 8px; box-sizing: border-box; border: 0; border-top: 1px solid var(--filet); border-radius: 12px; background: none;
  font: inherit; color: var(--encre); text-align: left; cursor: pointer;
}
.sto-ligne .sto-photo { position: relative; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; }
.sto-ligne .sto-sans-photo b { font-size: 14px; }
.sto-ligne .sto-etat { top: auto; left: auto; right: -3px; bottom: -3px; width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--carte); }
.sto-ligne .sto-etat svg { width: 11px; height: 11px; }
.sto-ligne .sto-mesure { align-items: flex-end; }
.sto-ligne .sto-negatif { grid-column: 2 / -1; }
@media (hover: hover) {
  .sto-tuile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(23, 32, 43, .13); }
  .sto-ligne:hover { background: var(--survol); }
  .sto-lien:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) { .sto-tuile { transition: none; } .sto-tuile:hover { transform: none; } }

.sto-bulle {
  display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: 16px 16px 4px 16px;
  background: #E9F7E4; color: #17140F; font-size: 13.5px; line-height: 1.5;
}
.sto-bulle b { font-weight: 800; }
.sto-bulle-heure { align-self: flex-end; font-size: 11.5px; color: #5A6E55; }

.sto-tiroir { width: 460px; }
.sto-tiroir .fs-tete { display: flex; align-items: center; gap: 12px; }
.sto-tiroir .fs-nom { flex-grow: 1; min-width: 0; }
.sto-tiroir .fs-corps { flex-direction: column; align-items: stretch; }
.sto-tiroir .fs-colonne-qui { display: none; }
.sto-tiroir .fs-carte-qui { display: flex; }
.sto-tiroir .fs-carte { padding: 14px 16px; }
.sto-tiroir .fs-carte-haut { gap: 12px; }
.sto-tiroir .fs-trait { display: none; }
.sto-tiroir .fs-chiffre { font-size: 34px; }
.sto-tiroir .fs-calcul-mots { font-size: 12.5px; }
.sto-tiroir .fs-titre { font-size: 19px; }
.sto-tiroir .fs-releve { padding: 0; border: 0; background: transparent; }
.sto-tiroir .fs-releve-tete .fs-surtitre-gris { flex-basis: 100%; }

[data-sombre="oui"] .sto-sans-photo { background: linear-gradient(180deg, #2B2414, #201A11); color: #9C927E; }
[data-sombre="oui"] .sto-sans-photo b { color: #E6DFD0; }
[data-sombre="oui"] .sto-bulle { background: #1E3324; color: #F2EDE2; }
[data-sombre="oui"] .sto-bulle-heure { color: #9CB596; }
[data-sombre="oui"] .sto-etat { box-shadow: 0 0 0 2px #201A11; }

@media (max-width: 980px) {
  .sto-cadre { max-height: none; overflow: visible; margin: 0; padding: 0; }
  .sto-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sto-ligne { grid-template-columns: 44px minmax(0, 1fr); }
  .sto-ligne .sto-mesure { grid-column: 2; align-items: stretch; }
  .sto-tiroir { width: 100%; }
}

.arg-bande { grid-template-columns: minmax(240px, auto) minmax(0, 1fr); margin-bottom: 18px; }
.arg-bande .acc-jour-salut::first-letter { color: inherit; }
.acc-jour-col.arg-entre b { color: #7FDCAA; }
.arg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.arg-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.arg-titres { display: flex; flex-direction: column; gap: 3px; }
.arg-titres b { font-size: 16px; }
.arg-titres > span { font-size: 12.5px; color: var(--gris); }
.arg-titres > span b { font-size: inherit; color: var(--encre); }
.arg-date { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gris); }
.arg-date input { height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--bord); background: var(--carte); color: var(--encre); font: inherit; }
.arg-point { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.arg-total { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0 2px; border-top: 2px solid var(--encre); font-size: 14px; font-weight: 800; }
.arg-total b { font-size: 16px; font-variant-numeric: tabular-nums; }

.arg-liste { display: flex; flex-direction: column; }
.arg-ligne { display: flex; align-items: center; gap: 12px; padding: 11px 8px; margin: 0 -8px; border-radius: 12px; border-top: 1px solid var(--filet); }
.arg-heure { width: 76px; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--gris); }
.arg-disque { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.arg-corps { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; min-width: 0; }
.arg-corps b { font-size: 14px; }
.arg-corps > span { font-size: 12.5px; color: var(--gris); line-height: 1.4; }
.arg-corps > .arg-tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--encre); background: var(--fond); padding: 1px 7px; border-radius: 5px; }
.arg-montant { font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.arg-montant.entree { color: var(--entree); }
.arg-montant.sortie { color: var(--sortie); }
.arg-montant.caisse { color: var(--gris); }
@media (hover: hover) { .arg-ligne:hover { background: var(--survol); } }

[data-sombre="oui"] .arg-disque { filter: saturate(.9) brightness(.85); }

@media (max-width: 1180px) {
  .arg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .arg-bande { grid-template-columns: 1fr; }
  .arg-ligne { align-items: flex-start; }
  .arg-heure { width: 50px; }
  .arg-disque { display: none; }
}

.rap-choix { margin-bottom: 18px; }
.rap-boutons { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.rap-bouton {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--bord); background: var(--carte); color: var(--encre); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.rap-bouton.or { background: var(--acc); border-color: var(--acc); color: #17202B; }
.rap-cadres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rap-cadre {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; min-width: 0; box-sizing: border-box;
  border: 1px solid var(--bord); background: var(--carte); color: var(--encre); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rap-cadre.on { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .35); background: var(--acc-doux); }
.rap-ico { width: 34px; height: 34px; border-radius: 10px; background: #FFF2C7; color: #7A4B00; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rap-noms { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rap-noms b { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rap-noms > span { font-size: 12px; color: var(--gris); line-height: 1.4; }
.rap-pro { font-size: 9.5px; font-weight: 800; letter-spacing: .07em; padding: 1px 6px; border-radius: 5px; background: #FFE9A6; color: #6E4500; }
.rap-cadre-sq { height: 64px; border-radius: 14px; }
.rap-filtres { margin-top: 2px; }
.rap-feuille { width: 100%; max-width: 980px; margin: 0 auto; }
@media (hover: hover) { .rap-cadre:not(.on):hover { border-color: var(--acc); } .rap-bouton:not(.or):hover { border-color: var(--acc); } }
[data-sombre="oui"] .rap-ico { background: rgba(255, 194, 26, .16); color: #ffc21a; }
[data-sombre="oui"] .rap-pro { background: rgba(255, 194, 26, .16); color: #ffc21a; }

@media (max-width: 1180px) { .rap-cadres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .rap-cadres { grid-template-columns: minmax(0, 1fr); }
  .rap-boutons { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rap-bouton { justify-content: center; }
  #rapports-contenu > .filtres, #journal-contenu > .filtres { margin-bottom: 14px; }
}

.jou-tete, .jou-filtres { margin-bottom: 18px; }
.jou-sur { font-size: 11.5px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris) !important; }
.jou-grand { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.jou-grand b { font-size: 26px !important; font-weight: 800; letter-spacing: -.02em; }
.jou-regarder { font-size: 13px; font-weight: 800; color: var(--sortie); }
.jou-gens { display: flex; flex-wrap: wrap; gap: 8px; }
.jou-personne { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border-radius: 99px; background: var(--fond); font-size: 13px; font-weight: 700; }
.jou-ini { width: 26px; height: 26px; border-radius: 50%; background: #F7EFD9; color: var(--encre); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.jou-vide { margin: 0; }
.jou-rang { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.jou-rang + .jou-rang { padding-top: 10px; border-top: 1px solid var(--filet); }
.jou-rang-nom { width: 44px; font-size: 12px; font-weight: 800; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.jou-titre { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.jou-ligne {
  display: grid; grid-template-columns: 96px 150px minmax(0, 1fr) 150px 120px; gap: 4px 12px; align-items: center;
  padding: 10px 8px; margin: 0 -8px; border-top: 1px solid var(--filet); border-radius: 10px;
}
.jou-entete { border-top: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.jou-entete > :last-child, .jou-montant { text-align: right; }
.jou-heure { font-size: 12px; font-weight: 700; color: var(--gris); }
.jou-qui { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jou-qui b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jou-quoi { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.jou-quoi > b { font-size: 14px; }
.jou-alerte { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jou-alerte > span:last-child { font-size: 12px; color: var(--encre); }
.jou-etiquette { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sortie); background: #FBE9E7; padding: 2px 7px; border-radius: 5px; }
.jou-ou { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jou-montant { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .jou-ligne:not(.jou-entete):hover { background: var(--survol); } }
[data-sombre="oui"] .jou-ini { background: #2B2414; }
[data-sombre="oui"] .jou-etiquette { background: #331A16; }

@media (max-width: 1180px) {
  .jou-ligne { grid-template-columns: 80px 120px minmax(0, 1fr) 110px; }
  .jou-ou, .jou-entete > :nth-child(4) { display: none; }
}
@media (max-width: 980px) {
  .jou-entete { display: none; }
  .jou-ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .jou-heure { grid-column: 1 / -1; }
  .jou-qui { grid-column: 1 / -1; }
  .jou-quoi { grid-column: 1; }
  .jou-rang-nom { width: auto; }
  #journal-contenu > .filtres { margin-bottom: 14px; }
}

.reg { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.reg-nav { padding: 10px; gap: 2px; }
.reg-section {
  width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--gris); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer;
}
.reg-section.actif { background: var(--acc-doux); color: var(--encre); font-weight: 800; }
@media (hover: hover) { .reg-section:not(.actif):hover { background: var(--survol); color: var(--encre); } }
.reg-carte { max-width: 760px; gap: 0; }
.reg-titre { margin: 0 0 12px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.reg-bloc { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--filet); }
.reg-nom { font-size: 14px; }
.reg-aide { font-size: 12.5px; line-height: 1.45; color: var(--gris); }
.reg-aide.att { color: var(--sortie); font-weight: 700; }
.reg-champ {
  width: 100%; max-width: 360px; height: 42px; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--bord);
  border-radius: 10px; background: var(--puce); color: var(--encre); font: inherit; font-size: 14px; outline: none;
}
.reg-champ:focus { border-color: var(--acc-trait); }
.reg-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reg-rond {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--acc-doux);
  color: var(--encre); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
}
.reg-rond img { width: 100%; height: 100%; object-fit: cover; }
.reg-seg { display: inline-flex; align-self: flex-start; gap: 2px; padding: 4px; border-radius: 12px; background: var(--puce); border: 1px solid var(--bord); }
.reg-seg button {
  height: 32px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--gris);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.reg-seg button.actif { background: var(--acc); color: #17140F; font-weight: 700; }
.reg-pastilles { display: flex; flex-wrap: wrap; gap: 14px; }
.reg-pastille {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent;
  color: var(--encre); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.reg-teinte { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--bord); transition: box-shadow .15s ease; }
.reg-pastille.actif .reg-teinte { box-shadow: 0 0 0 3px var(--carte), 0 0 0 5px var(--encre); }
@media (hover: hover) { .reg-pastille:not(.actif):hover .reg-teinte { box-shadow: 0 0 0 3px var(--carte), 0 0 0 5px var(--bord); } }
.reg-ligne { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--filet); }
.reg-q { display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px; min-width: 0; }
.reg-q > b { font-size: 14px; }
.reg-etat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--gris); white-space: nowrap; }
.reg-etat i { width: 8px; height: 8px; border-radius: 50%; background: #A3ABB8; flex-shrink: 0; }
.reg-etat.vert i { background: #12B76A; }
.reg-etat.ambre i { background: #B58A00; }
.reg-actions, .reg-choix { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.reg-danger { margin-top: 10px; padding: 14px; border-radius: 14px; background: #FBE9E7; display: flex; flex-direction: column; gap: 8px; }
.reg-danger > b { font-size: 14px; color: var(--sortie); }
.reg-danger-bouton {
  height: 36px; padding: 0 14px; border: 1.5px solid var(--sortie); border-radius: 10px; background: transparent;
  color: var(--sortie); font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer;
}
.reg-danger-bouton.plein { background: var(--sortie); color: #fff; }
[data-sombre="oui"] .reg-danger { background: #331A16; }
[data-sombre="oui"] .reg-danger-bouton.plein { color: #1A0D0B; }

@media (max-width: 980px) {
  .reg { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .reg-nav { flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .reg-nav::-webkit-scrollbar { display: none; }
  .reg-section { width: auto; flex-shrink: 0; white-space: nowrap; }
}

.fil { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }

.fil, .fil-fiche { --disque: var(--acc-doux); }
[data-sombre="oui"] .fil, [data-sombre="oui"] .fil-fiche { --disque: #2B2414; }
.fil-jour {
  display: flex; flex-direction: column; gap: 0; min-width: 0; box-sizing: border-box; padding: 20px 22px;
  border-radius: 18px; background: var(--monde); color: #F3EDE0;
}
.fil-sur { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--or); }
.fil-grand { margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.fil-sous { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--nuit-sous); }
.fil-recap { margin-top: 16px; }
.fil-recap-ligne {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0;
  border-top: 1px solid rgba(243, 237, 224, .10); font-size: 14px; font-weight: 700;
}
.fil-recap-ligne b { font-variant-numeric: tabular-nums; }
.fil-qui { display: flex; flex-direction: column; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(243, 237, 224, .10); }
.fil-qui .fil-sur { color: var(--nuit-sous); margin-bottom: 4px; }
.fil-qui .fil-recap-ligne { font-size: 13px; font-weight: 600; border-top: 0; padding: 5px 0; }
.fil-gris { color: var(--nuit-sous); white-space: nowrap; }

.fil-fil { gap: 14px; }
.fil-tete { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; }
.fil-titres { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fil-titre { font-size: 17px; font-weight: 800; }
.fil-direct { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: 12.5px; color: var(--gris); }
.fil-direct i { width: 8px; height: 8px; border-radius: 50%; background: #12B76A; flex-shrink: 0; }
.fil-direct b { color: var(--entree); }
.fil-periodes { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 12px; background: var(--puce); border: 1px solid var(--bord); }
.fil-periode {
  position: relative; height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--gris);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.fil-periode.actif { background: var(--acc); color: #17140F; font-weight: 700; }

.fil-champ-date { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.fil-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.fil-puce {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--bord); background: var(--carte); color: var(--encre); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.fil-puce.actif { background: var(--acc); border-color: var(--acc); color: #17140F; }
.fil-nb {
  font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 6px;
  background: var(--fond); display: inline-flex; align-items: center; justify-content: center;
}
.fil-puce.actif .fil-nb { background: rgba(255, 255, 255, .55); }
.fil-liste { position: relative; display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid var(--filet); }

.fil-ligne::before { content: ""; position: absolute; left: 85px; top: 0; bottom: 0; width: 2px; background: var(--filet); }
.fil-ligne:first-child::before { top: 22px; }
.fil-ligne:last-child::before { bottom: auto; height: 22px; }
.fil-ligne { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 5px 0; }
.fil-heure { width: 54px; flex-shrink: 0; padding-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--gris); text-align: right; white-space: nowrap; }
.fil-rond {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--disque);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px var(--carte);
}
.fil-rond svg { width: 26px; height: 26px; }
.fil-geste {
  flex: 1 1 auto; min-width: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 10px 10px 12px; border-radius: 10px; border-bottom: 1px solid var(--filet);
}
.fil-ligne:last-child .fil-geste { border-bottom-color: transparent; }
.fil-jour .ven-portes { margin-top: 18px; }

.fil-fiche { display: flex; flex-direction: column; gap: 4px; }
.fil-fiche > .fil-geste { align-items: center; margin-bottom: 8px; }
.fil-fiche-journal { margin-top: 12px; align-self: flex-start; }
.fil-q { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fil-q > b { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.fil-detail { font-size: 12.5px; color: var(--gris); }
.fil-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.fil-tag {
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap;
  background: var(--carte); color: var(--encre); border: 1px solid var(--bord);
}
.fil-montant { font-size: 14px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fil-geste.cliquable { cursor: pointer; }
@media (hover: hover) { .fil-geste.cliquable:hover { background: var(--survol); } }
.fil-plus {
  align-self: center; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bord);
  background: var(--carte); color: var(--encre); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}

@media (max-width: 1180px) {
  .fil { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .fil { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fil-jour { order: 2; }   
  .fil-heure { width: 42px; font-size: 12px; }
  .fil-ligne::before { left: 73px; }
  .fil-geste { flex-wrap: wrap; padding: 8px 6px 10px; }
  .fil-droite { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 6px; }
}

@media (min-width: 981px) {
  .arg-liste, .jou-corps, .fil-liste {
    max-height: 600px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin;
  }
  
  .arg-liste, .jou-corps { padding: 0 8px; margin: 0 -8px; }
}

.equ-droite { grid-area: carte; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.equ-titre-ligne { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 18px; flex-wrap: wrap; }
.equ-titres { display: flex; flex-direction: column; gap: 4px; }
.equ-titre { font-size: 12px; font-weight: 800; color: var(--gris); text-transform: uppercase; letter-spacing: .08em; }
.equ-gris { font-size: 12.5px; font-weight: 600; color: var(--gris); }
.equ-etiq { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.equ-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--nuit-sous); }
.equ-empilee { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--filet); }
.equ-empilee span { display: block; height: 100%; }
.equ-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.equ-legende > span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.equ-legende i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.equ-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.equ-carte {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; min-width: 0; box-sizing: border-box;
  background: var(--carte); border: 1px solid var(--bord); color: var(--encre); font: inherit; text-align: left; cursor: pointer;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, border-color .22s ease;
}
.equ-carte .cre-noms b { font-size: 15px; }
.equ-carte-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.equ-vendu { display: flex; flex-direction: column; gap: 2px; }
.equ-vendu > b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.equ-cols { display: flex; align-items: flex-end; gap: 6px; height: 62px; padding-top: 4px; }
.equ-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.equ-col-barre { display: block; width: 100%; border-radius: 5px; }
.equ-col-nom { font-size: 10px; font-weight: 700; color: var(--gris); white-space: nowrap; }
.equ-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.equ-puce { font-size: 11.5px; font-weight: 700; background: var(--puce); padding: 3px 9px; border-radius: 99px; }
.equ-puce.moins, .equ-point.moins { color: var(--sortie); }
.equ-puce.or, .equ-point.or { color: var(--or-texte); }
.equ-puce.gris, .equ-point.gris { color: var(--gris); }
.equ-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.equ-badge.moins { color: var(--sortie); background: #FBE9E7; }
.equ-badge.plus, .equ-badge.ouverte { color: var(--entree); background: #E3F2EC; }
[data-sombre="oui"] .equ-badge.moins { background: #331A16; }
[data-sombre="oui"] .equ-badge.plus, [data-sombre="oui"] .equ-badge.ouverte { background: #18291B; }
.equ-carte.ouverte, .equ-ligne-personne.ouverte { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .35); }

.equ-liste { display: flex; flex-direction: column; }
.equ-ligne {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; box-sizing: border-box;
  border: 0; border-top: 1px solid var(--filet); background: none; font: inherit; color: var(--encre); text-align: left;
}
.equ-ligne .cre-noms { flex-grow: 1; }
.equ-ligne .cre-noms b { font-size: 13.5px; }
.equ-ligne-personne { padding: 12px 8px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; border-top-color: var(--filet); }
.equ-ligne-montant { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; white-space: nowrap; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.equ-ligne-personne .equ-ligne-montant b { font-size: 17px; }
.equ-ligne.cliquable { cursor: pointer; border-radius: 10px; }
.equ-point { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.equ-ouverte { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--entree); white-space: nowrap; }
.equ-ouverte i { width: 8px; height: 8px; border-radius: 50%; background: #12B76A; }
.equ-bas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (hover: hover) {
  .equ-carte:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(23, 32, 43, .13); }
  .equ-ligne-personne:hover, .equ-ligne.cliquable:hover { background: var(--survol); }
}
@media (prefers-reduced-motion: reduce) { .equ-carte { transition: none; } .equ-carte:hover { transform: none; } }

.equ-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.equ-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.equ-stat b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.equ-barre { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.equ-barre b { font-size: 12.5px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.equ-piste { display: block; height: 10px; border-radius: 99px; background: var(--filet); overflow: hidden; }
.equ-piste i { display: block; height: 100%; background: var(--acc); border-radius: 99px; }

@media (max-width: 980px) {
  .equ-droite { grid-row: auto; }
  .equ-bas { grid-template-columns: minmax(0, 1fr); }
  .equ-cartes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .equ-vendu > b { font-size: 21px; }
}
