/* Horizon Direction : la vue du patron sur Wholesale et le magasin.
   Même enseigne et mêmes teintes que Horizon Wholesale ; le magasin porte une
   couleur à lui (cuivre) pour qu'on ne confonde jamais les deux colonnes. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/public/fonts/ibm-plex-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/public/fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/public/fonts/ibm-plex-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/public/fonts/ibm-plex-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/public/fonts/ibm-plex-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/public/fonts/ibm-plex-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --papier: oklch(96.6% 0.005 228);
  --surface: oklch(99.5% 0.002 228);
  --surface-creuse: oklch(95% 0.007 226);
  --encre: oklch(21% 0.022 235);
  --encre-douce: oklch(44% 0.018 230);
  --encre-tres-douce: oklch(54% 0.014 228);
  --teal: oklch(48% 0.098 217);
  --teal-fonce: oklch(37% 0.08 220);
  --teal-vif: oklch(60% 0.115 215);
  --teal-pale: oklch(94% 0.022 212);
  --cuivre: oklch(55% 0.125 52);
  --cuivre-fonce: oklch(43% 0.105 50);
  --cuivre-pale: oklch(94.5% 0.03 60);
  --nuit: oklch(27% 0.048 224);
  --nuit-clair: oklch(34% 0.052 224);
  --sur-nuit: oklch(96.5% 0.008 215);
  --sur-nuit-doux: oklch(80% 0.028 215);
  --du: oklch(50% 0.17 32);
  --encaisse: oklch(46% 0.118 152);
  --encaisse-pale: oklch(94.5% 0.038 152);
  --attente: oklch(49% 0.115 70);
  --attente-pale: oklch(94.5% 0.045 75);
  --filet: oklch(89% 0.008 210);
  --filet-net: oklch(64% 0.016 212);
  --ombre-sm: 0 1px 2px oklch(22% 0.023 227 / 0.05);
  --rayon: 12px;
  --rayon-sm: 8px;
  --rayon-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-fonce);
}

:focus-visible {
  outline: 2px solid var(--teal-vif);
  outline-offset: 2px;
}

/* ---------- Enseigne et bande ---------- */

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.marque-signe {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}

.marque-fond {
  fill: var(--teal-vif);
}

.marque-soleil {
  fill: var(--sur-nuit);
}

.marque-ligne {
  fill: none;
  stroke: var(--sur-nuit);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.marque-nom {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.marque-horizon {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.marque-activite {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.bande {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: var(--nuit);
  color: var(--sur-nuit);
}

.bande-marque {
  color: inherit;
  text-decoration: none;
}

.bande-droite {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bande-droite form {
  margin: 0;
}

.bande-nom {
  padding: 0 8px;
  font-size: 14px;
  color: var(--sur-nuit-doux);
}

.bande-lien {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--rayon-sm);
  background: none;
  color: var(--sur-nuit);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.bande-lien:hover {
  background: var(--nuit-clair);
}

/* ---------- Page ---------- */

.contenu {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.page-titre {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-sous {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--encre-douce);
}

.page-sous::first-letter {
  text-transform: uppercase;
}

.periodes {
  margin: 20px 0 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--filet-net);
  border-radius: 999px;
  background: var(--surface);
  color: var(--encre);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--teal);
}

.chip.is-active {
  border-color: var(--nuit);
  background: var(--nuit);
  color: var(--sur-nuit);
}

.repli {
  margin-top: 8px;
}

.repli > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal-fonce);
  cursor: pointer;
}

.dates {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 4px;
}

.dates label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--encre-douce);
}

.dates input,
.champ {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--filet-net);
  border-radius: var(--rayon-sm);
  background: var(--surface);
  color: var(--encre);
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--filet-net);
  border-radius: var(--rayon-sm);
  background: var(--surface);
  color: var(--encre);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--teal);
}

.btn-plein {
  width: 100%;
  min-height: 52px;
  border-color: var(--teal);
  background: var(--teal);
  color: var(--sur-nuit);
}

.btn-plein:hover {
  background: var(--teal-fonce);
}

/* ---------- Les deux colonnes ---------- */

.duo {
  display: grid;
  gap: 20px;
}

@media (min-width: 960px) {
  .duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }

  .contenu {
    padding: 32px 32px 64px;
  }
}

.activite {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-lg);
  box-shadow: var(--ombre-sm);
}

@media (min-width: 700px) {
  .activite {
    padding: 28px;
  }
}

.activite-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--filet);
}

.etiquette {
  display: inline-block;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.etiquette-wholesale {
  background: var(--teal-pale);
  color: var(--teal-fonce);
}

.etiquette-shop {
  background: var(--cuivre-pale);
  color: var(--cuivre-fonce);
}

.activite-titre {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.activite-sous {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--encre-douce);
}

.lien-ouvrir {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--filet-net);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lien-ouvrir:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

/* Trois chiffres : en lignes sur téléphone, en colonnes dès qu'il y a la place. */
.faits {
  display: grid;
}

.fait {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0 12px;
  padding: 12px 0;
  border-top: 1px solid var(--filet);
}

.fait:first-child {
  padding-top: 0;
  border-top: 0;
}

.fait-label {
  margin: 0;
  font-size: 15px;
  color: var(--encre-douce);
}

.fait-valeur {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.fait-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--encre-tres-douce);
}

@media (min-width: 560px) {
  .faits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fait {
    display: block;
    padding: 0 16px;
    border-top: 0;
    border-left: 1px solid var(--filet);
  }

  .fait:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .fait-label {
    font-size: 13px;
  }

  .fait-valeur {
    margin-top: 4px;
    font-size: 26px;
  }

  .fait-note {
    margin-top: 2px;
  }
}

.ton-ok {
  color: var(--encaisse);
}

.ton-du {
  color: var(--du);
}

.objectif {
  margin-top: 20px;
}

.objectif-barre {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-creuse);
  overflow: hidden;
}

.objectif-barre span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: oklch(70% 0.13 72);
}

.objectif-ok .objectif-barre span {
  background: var(--encaisse);
}

.objectif-texte {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--encre-douce);
}

.objectif-texte strong {
  color: var(--encre);
}

.objectif-ok .objectif-texte {
  font-weight: 600;
  color: var(--encaisse);
}

.etat {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: var(--rayon-sm);
  font-size: 15px;
  line-height: 1.4;
}

.etat-attention {
  background: var(--attente-pale);
  color: oklch(36% 0.085 70);
}

.etat-ok {
  background: var(--encaisse-pale);
  color: oklch(34% 0.09 152);
}

.lignes {
  margin: 20px 0 0;
}

.ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--filet);
}

.ligne dt {
  font-size: 15px;
  color: var(--encre-douce);
}

.ligne dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.sous-titre {
  margin: 28px 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--encre);
}

.classement {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rang;
}

.classement li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 8px;
  padding: 10px 0;
  border-top: 1px solid var(--filet);
  counter-increment: rang;
}

.classement li::before {
  content: counter(rang);
  grid-row: 1 / span 2;
  font-size: 13px;
  font-weight: 600;
  color: var(--encre-tres-douce);
}

.classement-nom {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classement-valeur {
  grid-row: 1;
  grid-column: 3;
  font-weight: 600;
  white-space: nowrap;
}

.classement-note {
  grid-column: 2;
  font-size: 13px;
  color: var(--encre-tres-douce);
}

.vide {
  margin: 0;
  padding: 32px 16px;
  border: 1px dashed var(--filet-net);
  border-radius: var(--rayon);
  color: var(--encre-douce);
  text-align: center;
}

.vide-court {
  padding: 16px;
}

.pied {
  max-width: 70ch;
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--encre-tres-douce);
}

/* ---------- Graphiques ---------- */

.histo {
  margin: 0;
}

.histo-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--encre-douce);
}

.histo-puce {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
}

.b-wholesale {
  background: var(--teal);
}

.b-benefice {
  background: oklch(66% 0.13 152);
}

.b-shop {
  background: var(--cuivre);
}

.histo-cadre {
  position: relative;
  height: 200px;
}

.histo-fond {
  position: absolute;
  inset: 20px 0 32px 0;
  z-index: 2;
  border-bottom: 1px solid var(--filet-net);
  pointer-events: none;
}

.histo-repere {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--filet);
}

.histo-repere em {
  position: absolute;
  top: -16px;
  right: 0;
  padding-left: 4px;
  background: var(--surface);
  font-size: 11px;
  font-style: normal;
  line-height: 14px;
  color: var(--encre-tres-douce);
}

.histo-colonnes {
  position: absolute;
  inset: 20px 0 0 0;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.histo-colonnes > li {
  min-width: 0;
}

.histo-col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 32px;
  height: 100%;
}

.histo-pile {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-height: 0;
}

.histo-barre {
  display: block;
  flex: 1 1 0;
  max-width: 18px;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}

.histo-barre-nulle {
  background: var(--filet);
}

.histo-jour {
  padding-top: 5px;
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
  color: var(--encre-tres-douce);
}

.histo-jour b {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.histo-dimanche {
  color: var(--filet-net);
}

/* ---------- Connexion ---------- */

.page-nue {
  background: var(--nuit);
}

.login {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.login-enseigne {
  padding: calc(env(safe-area-inset-top) + 48px) 24px 32px;
  color: var(--sur-nuit);
}

.login-enseigne .marque-signe {
  width: 44px;
  height: 44px;
}

.login-enseigne .marque-horizon {
  font-size: 20px;
}

.login-enseigne .marque-activite {
  font-size: 13px;
}

.login-accroche {
  max-width: 26ch;
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.35;
  color: var(--sur-nuit-doux);
}

.login-carte {
  padding: 32px 24px calc(env(safe-area-inset-bottom) + 32px);
  background: var(--papier);
  border-radius: var(--rayon-lg) var(--rayon-lg) 0 0;
}

.login-titre {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-form {
  display: grid;
  gap: 10px;
  max-width: 400px;
}

.login-form .champ {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.login-form .btn {
  margin-top: 8px;
}

.login-aide {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--encre-douce);
}

.alerte {
  max-width: 400px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--rayon-sm);
  background: oklch(94.5% 0.028 32);
  color: oklch(38% 0.13 32);
  font-size: 15px;
}

@media (min-width: 900px) {
  .login {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .login-enseigne,
  .login-carte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 8vw;
  }

  .login-accroche {
    font-size: 24px;
  }

  .login-carte {
    border-radius: 0;
  }
}

/* ---------- Onglets : les deux, Wholesale, Shop ---------- */

.onglets {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 0 12px;
  background: var(--nuit);
  border-top: 1px solid oklch(from var(--sur-nuit) l c h / 0.12);
  overflow-x: auto;
}

.onglet {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: var(--sur-nuit-doux);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.onglet:hover {
  color: var(--sur-nuit);
}

.onglet.is-active {
  border-bottom-color: var(--teal-vif);
  color: var(--sur-nuit);
}

@media (min-width: 960px) {
  .onglets {
    padding: 0 28px;
  }

  .bande {
    padding-inline: 32px;
  }
}

/* ---------- Pages de détail ---------- */

.page-tete-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.page-tete-detail .page-titre {
  margin-top: 8px;
}

.lien-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 24px;
  border: 1px solid var(--filet-net);
  border-radius: var(--rayon-sm);
  font-weight: 600;
  text-decoration: none;
}

.lien-detail:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

/* Les six chiffres de tête d'une page de détail. */
.resume {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-lg);
  box-shadow: var(--ombre-sm);
  overflow: hidden;
}

.resume .fait {
  display: block;
  padding: 16px;
  border: 0;
  border-right: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
}

.resume .fait:first-child {
  padding: 16px;
}

.resume .fait-label {
  font-size: 13px;
}

.resume .fait-valeur {
  margin-top: 4px;
  font-size: 21px;
}

.resume .fait-note {
  margin-top: 2px;
}

@media (min-width: 700px) {
  .resume {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resume .fait,
  .resume .fait:first-child {
    padding: 20px;
  }

  .resume .fait-valeur {
    font-size: 24px;
  }
}

@media (min-width: 1180px) {
  .resume {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .resume .fait {
    border-bottom: 0;
  }
}

.sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 24px 0 8px;
  padding: 12px 0;
  border-top: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
}

.sommaire a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.sommaire a:hover {
  text-decoration: underline;
}

.bloc {
  margin-top: 36px;
  scroll-margin-top: 64px;
}

.bloc-titre {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.bloc-sous {
  max-width: 80ch;
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--encre-douce);
}

.bloc-sous strong {
  color: var(--encre);
}

.bloc-titre + .table-scroll,
.bloc-titre + .vide,
.bloc-titre + .deux {
  margin-top: 12px;
}

/* ---------- Tableaux ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 11px 14px;
  border-top: 1px solid var(--filet);
  text-align: left;
  vertical-align: baseline;
  white-space: nowrap;
}

.table thead th {
  border-top: 0;
  background: var(--surface-creuse);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.table tbody th {
  font-weight: 600;
  white-space: normal;
  min-width: 11em;
  max-width: 26em;
}

/* La première colonne reste en vue quand on fait défiler un tableau large. */
.table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--filet);
}

.table thead th:first-child {
  background: var(--surface-creuse);
}

.table .num {
  text-align: right;
}

.table tbody tr:hover > * {
  background: oklch(from var(--teal-pale) l c h / 0.5);
}

.table tfoot th,
.table tfoot td {
  border-top: 2px solid var(--filet-net);
  font-weight: 700;
}

.repli .table-scroll {
  margin-top: 4px;
}

.deux {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .deux {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: start;
  }
}

.lignes-etroites {
  max-width: 560px;
}

.gris {
  color: var(--encre-tres-douce);
  font-weight: 400;
}

.ton-attention {
  color: var(--attente);
}

.pastille {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--attente-pale);
  color: oklch(38% 0.09 70);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pastille-ok {
  background: var(--encaisse-pale);
  color: oklch(34% 0.09 152);
}

.pastille-du {
  background: oklch(94.5% 0.028 32);
  color: oklch(40% 0.14 32);
}
