

main { flex: 1; padding-top: 24px; padding-bottom: 56px; }

.carte {
  background: var(--carte); border: 1px solid var(--bord);
  border-radius: 16px; padding: 22px;
}

.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.lignes-boutiques {
  display: flex; flex-direction: column; margin-bottom: 16px;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 16px;
  padding: 4px 18px 10px; overflow: hidden;
}

.tete-bloc { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 2px 12px; }
.tete-bloc h2 { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.tete-bloc .sous { font-size: 12px; color: var(--gris); margin-top: 3px; }

.tete-bloc .bascule { background: var(--puce); border-color: var(--bord); }

.ruban-muet {
  
  display: block; margin: 10px -18px -10px; padding: 11px 18px;
  border-radius: 0 0 15px 15px;
  background: color-mix(in srgb, var(--sortie) 9%, var(--carte));
  border: 0; border-left: 3px solid var(--sortie);
  border-top: 1px solid var(--filet);
  font-size: 12.5px; color: var(--gris-fort);
}
.ruban-muet b { color: var(--sortie); }

.tete-boutiques, .ligne-boutique {
  display: grid;
  grid-template-columns: minmax(150px, 1.6fr) 132px repeat(5, minmax(78px, 1fr));
  gap: 14px; align-items: center;
}

.lignes-boutiques.en-bandes .tete-boutiques,
.lignes-boutiques.en-bandes .ligne-boutique {
  grid-template-columns: minmax(150px, 1fr) minmax(280px, 3fr) minmax(120px, 0.9fr);
  align-items: start;
}
.lignes-boutiques.en-bandes .ligne-boutique { padding: 15px 2px; }
.lignes-boutiques.en-bandes .identite { padding-top: 2px; }
.lignes-boutiques.en-bandes .cel { padding-top: 2px; }
.lignes-boutiques.en-bandes .chiffres-perso { grid-column: span 1; grid-template-columns: 1fr; }
.lignes-boutiques.en-bandes .muette-mot { grid-column: span 2; }

.milieu-bande { min-width: 0; }
.bande-pieds {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; color: var(--gris); margin-top: 7px;
}
.bande-pieds .muet-mot { color: var(--sortie); font-weight: 600; }

.tete-boutiques { padding: 0 2px 9px; }
.tete-boutiques span {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--gris-fort); font-weight: 700;
}
.tete-boutiques span.d { text-align: right; }

.ligne-boutique {
  
  border: 0; border-top: 1px solid var(--filet);
  padding: 13px 2px;
  
  width: 100%; background: none; font: inherit; color: inherit;
  text-align: left; cursor: pointer;
}
.ligne-boutique:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }
.ligne-boutique:hover { background: color-mix(in srgb, var(--encre) 4%, transparent); }
.ligne-boutique .identite { min-width: 0; }
.ligne-boutique .nom-ligne { display: flex; align-items: center; gap: 8px; }
.ligne-boutique h2 { font-size: 14.5px; font-weight: 800; }

.ligne-boutique .point {
  width: 8px; height: 8px; border-radius: 50%; flex: none; display: block;
}
.ligne-boutique .ville { margin-top: 2px; font-size: 11.5px; }

.ligne-boutique .milieu { min-width: 0; }
.ligne-boutique .milieu svg { display: block; width: 100%; height: 34px; }

.ligne-boutique .milieu .courbe path { display: none; }

.ligne-boutique .milieu .point-courbe { display: none; }

.bande-jours { display: flex; gap: 3px; height: 26px; align-items: flex-end; }
.en-bandes .bande-jours { height: 40px; gap: 5px; }

.bande-jours i { flex: 1; border-radius: 0; display: block; height: 100%; }
.bande-jours i.plein { background: var(--vert-vif); }

.bande-jours i.rien {
  height: 16% !important; border-radius: 0;
  background: color-mix(in srgb, var(--encre) 16%, transparent);
}

.bande-jours i.muet {
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--sortie) 30%, transparent) 0 3px,
    color-mix(in srgb, var(--sortie) 10%, transparent) 3px 6px);
}

.ligne-boutique .cel {
  text-align: right; font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  
  white-space: nowrap;
}
.ligne-boutique .cel.att { color: var(--sortie); }
.ligne-boutique .cel .evo { font-size: 11.5px; font-weight: 600; margin-top: 2px; }

.chiffres-perso {
  grid-column: span 5; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; text-align: right;
}
.chiffres-perso .etiquette-min { margin-bottom: 2px; }
.ligne-boutique .muette-mot {
  grid-column: span 6; font-size: 12.5px; color: var(--gris);
}

.trois-blocs { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; margin-top: 16px; }

.deux-blocs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.deux-blocs .carte { padding: 18px 22px; }
@media (max-width: 900px) { .deux-blocs { grid-template-columns: 1fr; } }

#bloc-rapporte .rangee .rang {
  font-size: 11px; font-weight: 800; color: var(--gris);
  font-variant-numeric: tabular-nums; min-width: 20px;
}

.part-sortie {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 11px;
  align-items: center; padding: 10px 0; border-top: 1px solid var(--filet);
}
.part-sortie:first-of-type { border-top: 0; }
.part-sortie > i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.part-sortie .nom { font-size: 13px; }
.piste-part {
  height: 4px; border-radius: 3px; background: var(--puce);
  margin-top: 6px; overflow: hidden;
}
.piste-part i { display: block; height: 100%; border-radius: 3px; }
.part-sortie .droite { text-align: right; }
.part-sortie .mnt { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.part-sortie .pct { font-size: 11.5px; color: var(--gris); margin-top: 2px; }
.trois-blocs .carte { padding: 18px 22px; }

.entete-carte { display: flex; align-items: center; justify-content: space-between; }
.entete-carte h2 { font-size: 16.5px; font-weight: 800; }
.statut { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.statut i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ville { font-size: 12.5px; color: var(--gris); margin-top: 2px; }

.au-comptoir {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  background: var(--puce); border-radius: 99px; padding: 4px 12px 4px 4px; font-size: 12px;
}
.au-comptoir i {
  width: 22px; height: 22px; border-radius: 50%;
  background: #FCE7D6; color: #B45309;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 10px; font-style: normal;
}
.au-comptoir span { color: var(--gris); }
.au-comptoir b { font-weight: 600; color: var(--encre); }

.ligne-chiffres {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-top: 18px;
}
.etiquette-min { font-size: 12px; color: var(--gris); }

.solde-seul {
  font-size: 29px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--or-texte);
}
.solde {
  font-size: 24px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 2px;
}
.ventes-ligne { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.ventes-ligne .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ventes-ligne .d { font-size: 11.5px; font-weight: 600; }

.courbe { position: relative; flex: 1 1 auto; min-width: 90px; max-width: 340px; height: 62px; }
.courbe svg { width: 100%; height: 100%; display: block; }
.point-courbe {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  transform: translate(-50%, -50%);
}

.carte > .ligne-chiffres .courbe { flex: none; width: 118px; height: 50px; }

.bloc-apercu .courbe { width: 100%; max-width: none; height: 54px; margin-top: 12px; }

.barres { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.barres i { width: 9px; border-radius: 4px; display: inline-block; min-height: 4px; }
.legende { font-size: 10.5px; color: var(--gris); margin-top: 6px; text-align: right; }

.actions {
  display: flex; gap: 10px; border-top: 1px solid var(--filet);
  margin-top: 18px; padding-top: 14px;
}
.bouton {
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--bord-bouton); border-radius: 10px;
  padding: 8px 14px; cursor: pointer; background: var(--carte); color: var(--gris);
}

.bouton.or {
  flex: 1; background: var(--carte); color: var(--or-actif);
  border-color: var(--or); font-weight: 700;
}
.bouton.or:hover { background: var(--survol); }
.bouton:hover { background: var(--survol); }

.bouton.plein {
  background: var(--carte); color: var(--or-actif);
  border-color: var(--or); font-size: 14px; font-weight: 700;
}

.bouton.noir {
  background: var(--nuit); color: #F2EDE2; border-color: var(--nuit); font-weight: 600;
}
.bouton.noir:hover { background: #17140F; }
.bouton.contour { background: transparent; }
.bouton.lien { border: none; background: none; color: var(--or-texte); padding: 8px 0; }

.titre-bloc { font-size: 15px; font-weight: 800; }
.entete-bloc { display: flex; align-items: center; justify-content: space-between; }
.tout-voir { font-size: 12.5px; font-weight: 600; color: var(--or-texte); cursor: default; }

.rangee {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--filet); font-size: 13.5px;
}
.rangee:last-child { border-bottom: none; }
.rangee .gauche { display: flex; align-items: center; gap: 12px; }
.rangee .tag {
  width: 30px; height: 30px; border-radius: 9px; background: var(--puce);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.rangee .lbl { font-weight: 600; }

.sub { font-size: 11.5px; color: var(--gris-fort); line-height: 1.45; }
.rangee .sub { font-size: 11.5px; color: var(--gris); margin-top: 1px; }
.rangee .mnt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vert { color: var(--entree); }
.terre { color: var(--sortie); }

.jauge { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin-top: 14px; }
.jauge i { display: inline-block; }

.part { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--filet); font-size: 13px; }
.part .n { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.part .n i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.part .m { color: var(--gris); }
.part .m b { font-weight: 700; color: var(--encre); font-variant-numeric: tabular-nums; }

.titre-top {
  font-size: 12px; font-weight: 700; color: var(--gris);
  text-transform: uppercase; letter-spacing: .05em; margin-top: 14px;
}
.article { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.article .rang { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--or-texte); margin-right: 10px; }
.article b { font-weight: 600; }
.article .q { color: var(--gris); }
.article .mnt { font-weight: 700; font-variant-numeric: tabular-nums; }

.ligne-net {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--filet);
  font-size: 12.5px; color: var(--gris);
}
.ligne-net b {
  font-weight: 700; color: var(--encre);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.gros-or {
  font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; margin-top: 12px; color: var(--or-texte);
}
.barre-progres { margin-top: 16px; height: 6px; border-radius: 3px; background: var(--puce); }
.barre-progres i { display: block; height: 6px; border-radius: 3px; background: var(--or); }
.echeance {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--filet); font-size: 12.5px;
}

#entree { display: flex; justify-content: center; padding-top: 12px; }
.carte-entree { max-width: 430px; width: 100%; }
.carte-entree h2 { font-size: 18px; font-weight: 800; }
.carte-entree p { font-size: 13px; color: var(--gris); line-height: 1.5; margin-top: 8px; }

.etapes-entree {
  margin: 14px 0 0; padding: 0; list-style: none;
  counter-reset: etape;
}
.etapes-entree li {
  counter-increment: etape;
  position: relative; padding-left: 34px; margin-top: 12px;
  font-size: 14px; line-height: 1.5; color: var(--encre);
}
.etapes-entree li::before {
  content: counter(etape);
  position: absolute; left: 0; top: -1px;
  width: 23px; height: 23px; border-radius: 50%;
  border: 1px solid var(--or); color: var(--or);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.ligne-confiance {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--bord);
  font-size: 12px; line-height: 1.6; color: var(--gris); text-align: center;
}

.entree-cols { display: block; }
.entree-qr { margin-top: 4px; }

@media (min-width: 760px) {
  .carte-entree { max-width: 760px; }
  .entree-cols {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 34px; align-items: center;
  }
  
  .entree-qr { margin-top: 0; }
  .plaque-qr { margin-top: 0; }
  .etapes-entree li { font-size: 15px; }
  .carte-entree h2 { font-size: 24px; }
}
textarea {
  width: 100%; margin-top: 12px; font-family: inherit; font-size: 13px;
  border: 1px solid var(--bord); border-radius: 12px; padding: 12px;
  resize: vertical; background: var(--fond); color: var(--encre);
}
textarea:focus { outline: 2px solid var(--or); border-color: transparent; }
.carte-entree .bouton { width: 100%; margin-top: 10px; }

.plaque-qr {
  margin: 14px auto 0; width: 232px; padding: 12px;
  background: #ffffff; border-radius: 14px;
  border: 1px solid var(--bord);
  display: flex; align-items: center; justify-content: center;
}
.plaque-qr svg { width: 208px; height: 208px; display: block; }

.plaque-qr:empty, #qr-lien:empty { min-height: 208px; min-width: 208px; }
.sous-qr {
  font-size: 12px; color: var(--gris); text-align: center; margin-top: 10px;
}

.repli-code { margin-top: 16px; border-top: 1px solid var(--bord); padding-top: 12px; }
.repli-code summary {
  cursor: pointer; font-size: 13px; font-weight: 700; color: var(--encre);
  list-style: none;
}
.repli-code summary::-webkit-details-marker { display: none; }
.repli-code summary::before { content: "\203A  "; color: var(--or); font-weight: 800; }
.repli-code[open] summary::before { content: "\2039  "; }
.repli-code summary:focus-visible { outline: 2px solid var(--or); border-radius: 6px; }

#porte-google {
  margin-top: 16px; border-top: 1px solid var(--bord); padding-top: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
#porte-google .sous-qr { margin: 0; }

#google-a-relier {
  margin-top: 14px; padding: 14px 16px;
  border: 1px solid var(--or); border-radius: 12px;
  background: rgba(201, 162, 77, .10);
  text-align: left;
}

.titre-relier { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--encre); }
.compte-relier { margin: 0 0 10px; font-size: 13px; color: var(--encre); word-break: break-all; }
.etapes-relier { margin: 0 0 10px; padding-left: 20px; font-size: 13px; line-height: 1.7; color: var(--encre); }
#google-a-relier .sous-qr { margin: 0; text-align: left; }

.message { font-size: 13px; margin-top: 10px; line-height: 1.4; color: var(--sortie); }

.grille-detail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-top: 12px; align-items: start;
}

.jours { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 14px; }
.jours .colonne { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.jours .barre { border-radius: 5px 5px 2px 2px; background: var(--or); }

.jours .colonne:not(.aujourdhui) .barre { opacity: .38; }

.jours .colonne.vide .barre { background: var(--bord); opacity: 1; }
.jours-etiquettes { display: flex; gap: 6px; margin-top: 6px; }
.jours-etiquettes span {
  flex: 1; text-align: center; font-size: 10.5px; color: var(--gris);
}
.jours-etiquettes span.aujourdhui { color: var(--or-texte); font-weight: 800; }
.deux-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.case-flux { background: var(--fond); border-radius: 12px; padding: 12px 14px; }
.case-flux .m { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }

.pied { text-align: center; padding: 14px 20px 26px; }
.pied .sous { color: var(--gris); }
.pied .bouton { margin-bottom: 10px; }

@media (min-width: 981px) {
  main { padding-top: 30px; padding-bottom: 66px; }
  .carte { padding: 24px; }
  .cartes { gap: 20px; }
  .lignes-boutiques { gap: 10px; }
  .lignes-boutiques { padding: 4px 22px 12px; }
  .ligne-boutique { padding: 15px 2px; }
  .trio-apercu { gap: 18px; }
  .rail-apercu, .deux-colonnes, .trois-blocs { gap: 20px; margin-top: 20px; }
  .carte-graph { margin-top: 18px; }
  
  .rangee { padding: 13px 0; }
  .classement { gap: 15px; }
  
  .coup-doeil { justify-content: center; gap: 34px; }
}

.bouton, .pilule, .pilule-icone, .bouton-icone, .segments span, .segments button,
.bascule button, .onglet, .onglet-bas, .sous-menu, .liste-menu span,
.rangee.cliquable, .item.cliquable, .vignette {
  transition: background-color .14s ease, color .14s ease,
              border-color .14s ease, transform .12s ease;
}

.bouton.or:hover, .bouton.noir:hover, .bouton.plein:hover { transform: translateY(-1px); }
.bouton.or:active, .bouton.noir:active, .bouton.plein:active { transform: translateY(0); }

.rangee.cliquable:hover { background: var(--survol); }
.vignette.cliquable:hover { border-color: var(--or); }

.sous-menu:hover:not(.actif) { background: var(--survol); color: var(--encre); }
.onglet:hover:not(.actif), .onglet-bas:hover:not(.actif) { color: #fff; }

.barre-bas { display: none; }

@media (max-width: 980px) {
  .cartes { grid-template-columns: 1fr; }
  
  .trois-blocs { grid-template-columns: 1fr 1fr; }
  .trois-blocs > :first-child { grid-column: 1 / -1; }

.coup-doeil {
    flex-wrap: nowrap; justify-content: space-between; gap: 7px;
    padding: 11px 14px;
  }
  .coup-doeil span { white-space: nowrap; }

.tete-boutiques { display: none; }
  .ligne-boutique {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px 14px; padding: 14px 16px;
  }
  .ligne-boutique .identite { grid-column: span 2; }
  .ligne-boutique .milieu { grid-column: span 1; }
  .ligne-boutique .cel, .chiffres-perso > div { text-align: left; }
  .ligne-boutique .cel::before, .chiffres-perso .etiquette-min {
    display: block; font-size: 9.5px; text-transform: uppercase;
    letter-spacing: .4px; color: var(--gris); font-weight: 700; margin-bottom: 2px;
  }
  .ligne-boutique .cel::before { content: attr(data-k); }
  .chiffres-perso { grid-column: span 3; }
  .ligne-boutique .muette-mot { grid-column: span 3; }

.rail { display: none; }
  .kpis { gap: 28px; }
  .kpi .valeur { font-size: 24px; }

  .barre-bas {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    
    background: var(--carte);
    border-top: 1px solid var(--bord);
    
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  }
  
  .onglet-bas {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: none; border: 0; cursor: pointer;
    padding: 7px 2px 5px;
    
    color: var(--gris-fort);
    border-top: 2.5px solid transparent;
    font: inherit; font-size: 10.5px; font-weight: 500;
  }
  .onglet-bas span {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .onglet-bas svg { flex: none; }
  
  .onglet-bas.actif { color: var(--or-actif); border-top-color: var(--or-actif); font-weight: 700; }
  .onglet-bas:focus-visible { outline: 2px solid var(--or); outline-offset: -2px; }

main { padding-bottom: 92px; }
  .pied { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .onglet-bas { font-size: 9.5px; gap: 3px; padding: 6px 1px 4px; }
  
  .bascule button { min-height: 34px; }
}

@media (max-width: 560px) {
  
  .kpis { align-items: start; gap: 10px; }
  .kpis.reglette { gap: 10px; }
  .kpi { padding: 10px 12px; }
  .kpi .valeur { margin-top: 1px; }
  
  .kpi .dessous:empty { display: none; }

.coup-doeil {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px 10px; padding: 7px 12px 8px; margin-bottom: 14px;
  }
  .coup-doeil span { align-items: baseline; gap: 6px; font-size: 11px; }
  .coup-doeil b { min-width: 1.8em; text-align: right; flex: none; }
  .coup-doeil em { flex: 1; min-width: 0; }

.sous-menus {
    display: grid; grid-template-columns: repeat(3, 1fr);
    width: 100%; gap: 3px;
  }
  .sous-menu { padding: 8px 6px; font-size: 12px; }

.lignes-boutiques { padding: 2px 12px 8px; border-radius: 14px; }
  .ligne-boutique { padding: 13px 2px; gap: 10px 12px; }
  .ruban-muet { margin: 8px -12px -8px; padding: 10px 12px; border-radius: 0 0 13px 13px; }
  .ligne-boutique .identite { grid-column: span 3; }
  .ligne-boutique .milieu { grid-column: span 3; }
  .ligne-boutique .cel { font-size: 13px; }

.ligne-boutique .milieu svg { height: 30px; }
  .bande-jours { height: 20px; }

.trois-blocs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .large { padding: 0 14px; }
  .titre-ligne { padding: 14px 2px 18px; }
  .titre-ligne h1 { font-size: 20px; }

.filtres { width: 100%; flex-wrap: wrap; gap: 8px; }

.filtres .menu { order: 1; flex: 1 1 auto; min-width: 0; }
  .pilule { width: 100%; justify-content: space-between; white-space: nowrap; }
  .pilule span { overflow: hidden; text-overflow: ellipsis; }
  
  .bascule { order: 2; flex: 0 0 auto; }
  .segments { order: 3; flex: 1 0 100%; }
  .segments span { flex: 1; text-align: center; padding: 7px 6px; white-space: nowrap; }
}

.titre-jour {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gris-fort); margin: 16px 0 4px;
}
.titre-jour:first-child { margin-top: 2px; }

.note-journal {
  font-size: 11.5px; line-height: 1.5; color: var(--gris-fort);
  background: color-mix(in srgb, var(--or) 10%, transparent);
  border-left: 2px solid var(--or); border-radius: 0 8px 8px 0;
  padding: 9px 12px; margin: 10px 0 0;
}

:root.hors-session {
  --fond: #F6F0E2;
  --carte: #FFFDF7;
  --bord: #E4DCC7;
  --filet: #EDE6D5;
  --encre: #17140F;
  --gris: #7A7364;
  
  --survol: #F1EADA;
  --puce: #EFE7D3;
  background:
    radial-gradient(115% 80% at 50% 0%, rgba(58, 50, 38, .07), transparent 62%),
    #F6F0E2;
}
:root.hors-session body { background: transparent; }

:root.hors-session .bandeau,
:root.hors-session .titre-ligne,
:root.hors-session .pied { display: none; }

:root.hors-session main { padding-top: 0; padding-bottom: 0; }

:root.hors-session #entree {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.entree-pile {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; width: 100%; max-width: 760px;
}

.carte-telecharger {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
}
.texte-telecharger { flex: 1; min-width: 0; }
.carte-telecharger h3 {
  margin: 0; font-size: 15px; font-weight: 800; color: var(--encre);
}
.carte-telecharger p {
  margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--gris);
}
.carte-telecharger .bouton { flex: none; width: auto; margin: 0; }

.illu-telecharger { flex: none; line-height: 0; }
.illu-telecharger .il-corps { fill: #3A3226; }
.illu-telecharger .il-ecran { fill: #FFFDF7; }
.illu-telecharger .il-socle { fill: #3A3226; opacity: .5; }
.illu-telecharger .il-fente-fond,
.illu-telecharger .il-fente-tige,
.illu-telecharger .il-fente-barres {
  fill: none; stroke: #D9A94B; stroke-width: 2.4; stroke-linecap: round;
}

.illu-telecharger .il-fente-fond { opacity: .22; }
.illu-telecharger .il-fente-tige {
  stroke-dasharray: 24; stroke-dashoffset: 24;
  animation: tracer-tige 3.6s ease-in-out infinite;
}
.illu-telecharger .il-fente-barres {
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: tracer-barres 3.6s ease-in-out infinite;
}
@keyframes tracer-tige {
  0%, 6%   { stroke-dashoffset: 24; }
  30%, 78% { stroke-dashoffset: 0; }
  94%,100% { stroke-dashoffset: 24; }
}
@keyframes tracer-barres {
  0%, 26%  { stroke-dashoffset: 40; }
  52%, 78% { stroke-dashoffset: 0; }
  92%,100% { stroke-dashoffset: 40; }
}
@media (prefers-reduced-motion: reduce) {
  .illu-telecharger .il-fente-tige,
  .illu-telecharger .il-fente-barres { animation: none; stroke-dashoffset: 0; }
}

.entete-vitrine {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.marque-vitrine { display: flex; align-items: center; gap: 9px; }
.bouton-vitrine-theme {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--bord); background: var(--carte); color: var(--gris);
  cursor: pointer;
}
.bouton-vitrine-theme:hover { background: var(--survol); color: var(--encre); }
.bouton-vitrine-theme:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.pied-vitrine { margin: 2px 0 0; font-size: 12px; color: var(--gris); }
.fente-signature .sig-tige,
.fente-signature .sig-barres {
  fill: none; stroke: #D9A94B; stroke-width: 2.2; stroke-linecap: round;
}
.sig-nom {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17.5px; font-weight: 700; color: var(--encre);
}
.sig-nom em { font-style: normal; color: #B08528; font-weight: 400; }
.sig-sous { font-size: 12px; color: var(--gris); }

:root.hors-session .bouton.plein {
  background: var(--encre); color: var(--fond);
  border-color: var(--encre); font-weight: 700;
}
:root.hors-session .bouton.plein:hover { background: #2E2820; border-color: #2E2820; }

:root.hors-session[data-sombre="oui"] {
  --fond: #0D0B07;
  --carte: #201A11;
  --bord: #312917;
  --filet: #2B2414;
  --encre: #F2EDE2;
  --gris: #9C927E;
  --survol: #2A2216;
  --puce: #2A2216;
  background:
    radial-gradient(115% 80% at 50% 0%, rgba(217, 169, 75, .10), transparent 62%),
    #0D0B07;
}
:root.hors-session[data-sombre="oui"] .illu-telecharger .il-corps { fill: #6E6252; }
:root.hors-session[data-sombre="oui"] .bouton.plein:hover { background: #FFFDF7; border-color: #FFFDF7; }

:root.hors-session .repli-code { margin-top: 14px; padding-top: 12px; }
:root.hors-session #porte-google { margin-top: 14px; padding-top: 14px; }
:root.hors-session .ligne-confiance { margin-top: 14px; padding-top: 12px; }
:root.hors-session .etapes-entree li { margin-top: 10px; }
:root.hors-session .etapes-entree { margin-top: 12px; }

:root.hors-session #google-a-relier {
  margin-top: 14px; padding: 14px 16px;
  border: 1px solid var(--bord); border-left: 3px solid var(--or);
  border-radius: 12px; background: var(--survol);
}
:root.hors-session #google-a-relier .titre-relier { font-size: 14.5px; }

.ligne-aide { margin: 10px 0 0; text-align: center; }
.ligne-aide a {
  font-size: 13px; font-weight: 700; color: var(--or-actif);
  text-decoration: none; border-bottom: 1px solid var(--or);
  padding-bottom: 1px;
}
.ligne-aide a:hover { color: var(--encre); border-color: var(--encre); }
.ligne-aide a:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 3px; }

.bloc-google { width: 100%; }
:root.hors-session .bloc-google #porte-google {
  margin-top: 0; padding-top: 0; border-top: 0;
}

:root.hors-session #entree { position: relative; z-index: 0; }
:root.hors-session #entree::before {
  content: "";
  position: fixed; inset: -25%;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 32% at 28% 24%, rgba(58, 50, 38, .11), transparent 70%),
    radial-gradient(32% 28% at 76% 70%, rgba(217, 169, 75, .13), transparent 70%);
  animation: deriver-fond 40s ease-in-out infinite alternate;
  will-change: transform;
}

:root.hors-session[data-sombre="oui"] #entree::before {
  background:
    radial-gradient(36% 32% at 28% 24%, rgba(217, 169, 75, .10), transparent 70%),
    radial-gradient(32% 28% at 76% 70%, rgba(88, 196, 143, .07), transparent 70%);
}
@keyframes deriver-fond {
  from { transform: translate3d(-2.5%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
  :root.hors-session #entree::before { animation: none; }
}

.trois-blocs:has(> .carte[hidden] + .carte[hidden]) {
  grid-template-columns: 1fr;
}

.transfert-nom { font-weight: 700; }
.transfert-quand { text-align: right; white-space: nowrap; }
.transfert-quand.non-confirme { color: var(--sortie); font-weight: 800; }

.table-tx tbody td:first-child {
  position: sticky; left: 0; z-index: 1; background: var(--carte);
}

.table-tx tbody tr:nth-child(even) td:first-child {
  background: color-mix(in srgb, var(--encre) 9%, var(--carte));
}
:root[data-sombre="oui"] .table-tx tbody tr:nth-child(even) td:first-child {
  background: color-mix(in srgb, var(--encre) 5%, var(--carte));
}
.table-tx thead th:first-child {
  position: sticky; left: 0; z-index: 2;
  background: color-mix(in srgb, var(--encre) 15%, var(--carte));
}
:root[data-sombre="oui"] .table-tx thead th:first-child {
  background: color-mix(in srgb, var(--encre) 12%, var(--carte));
}

.table-tx td:first-child .tag { margin-right: 8px; }
.table-tx .lbl-tx { font-weight: 500; }

.table-tx .heure-tx { color: var(--gris); font-variant-numeric: tabular-nums; }

.table-tx .tx-jour th {
  border-left: 0; background: transparent; padding: 0 10px;
  text-transform: none; letter-spacing: normal; font-weight: 400;
}
.table-tx .tx-jour + tr td { border-top: 1px solid var(--filet); }
.table-tx .tx-jour .jour-tete { padding: 14px 0 6px; }

.table-tx tbody tr.cliquable { cursor: pointer; }
.table-tx tbody tr.cliquable:hover td { background: var(--survol); }
.table-tx tbody tr.cliquable:hover td:first-child { background: var(--survol); }

.table-tx tbody tr { border-bottom: 1px solid color-mix(in srgb, var(--encre) 16%, transparent); }
.table-tx td + td, .table-tx th + th {
  border-left: 1px solid color-mix(in srgb, var(--encre) 10%, transparent);
}
.table-tx thead th { border-bottom: 2px solid color-mix(in srgb, var(--encre) 26%, transparent); }

.table-tx .tx-jour th { border-top: 1px solid color-mix(in srgb, var(--encre) 22%, transparent); }
.table-tx tbody:first-of-type .tx-jour th { border-top: 0; }

.table-tx tbody td:last-child {
  position: sticky; right: 0; z-index: 1; background: var(--carte);
}
.table-tx tbody tr:nth-child(even) td:last-child {
  background: color-mix(in srgb, var(--encre) 9%, var(--carte));
}
:root[data-sombre="oui"] .table-tx tbody tr:nth-child(even) td:last-child {
  background: color-mix(in srgb, var(--encre) 5%, var(--carte));
}
.table-tx thead th:last-child {
  position: sticky; right: 0; z-index: 2;
  background: color-mix(in srgb, var(--encre) 15%, var(--carte));
}
:root[data-sombre="oui"] .table-tx thead th:last-child {
  background: color-mix(in srgb, var(--encre) 12%, var(--carte));
}
.table-tx tbody tr.cliquable:hover td:last-child { background: var(--survol); }

.table-tx td:last-child, .table-tx th:last-child {
  border-left: 1px solid color-mix(in srgb, var(--encre) 18%, transparent);
}

@media (max-width: 700px) {
  .table-tx .col-etroite { display: none; }
  .table-tx { font-size: 13px; }
  .table-tx th, .table-tx td { padding: 8px 6px; }
  
  .table-tx td:first-child, .table-tx th:first-child { white-space: normal; }
  
  .table-tx .col-qui { white-space: normal; }
}
@media (min-width: 701px) {
  .note-colonnes { display: none; }
}
.note-colonnes {
  font-size: 11.5px; color: var(--gris-fort); padding: 8px 2px 0;
}

.kpi-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.kpi-badge {
  font-size: 11px; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--bord); border-radius: 999px; padding: 2px 8px;
  font-variant-numeric: tabular-nums;
}

.courbe-kpi { height: 30px; margin: 8px 0 2px; }

.kpis.cartes .kpi { display: flex; flex-direction: column; }
.kpis.cartes .kpi .dessous { margin-top: auto; padding-top: 6px; }
