/*
 * F-REQ-NOT-002 impose une séparation visuelle sans ambiguïté entre les deux grilles :
 * vert pour l'officielle (celle qui compte), bleu pour l'analytique (qui ne compte pas).
 * Ces deux teintes ne servent à rien d'autre dans l'interface.
 */
:root {
  --officielle: #0f7b3f;
  --officielle-fond: #eaf6ef;
  --officielle-bord: #bfe3cd;
  --analytique: #1a5fb4;
  --analytique-fond: #eaf1fb;
  --analytique-bord: #c3d8f2;

  --marque: #0e6e7a;
  --encre: #1b2733;
  --encre-douce: #5a6b7b;
  --fond: #f4f6f8;
  --surface: #ffffff;
  --bord: #dde3e9;
  --alerte: #b3261e;
  --alerte-fond: #fdecea;
  --succes: #0f7b3f;
  --rayon: 10px;
  --ombre: 0 1px 3px rgba(16, 30, 45, .08), 0 6px 16px rgba(16, 30, 45, .05);
}

* { box-sizing: border-box; }

/* Toute règle display: ultérieure l'emporterait sinon sur le display:none implicite de [hidden]. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.25; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Authentification ─────────────────────────────────────────────────────── */

.ecran-auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: linear-gradient(160deg, #0e6e7a 0%, #0b4f58 100%);
}

.carte-auth {
  width: 100%;
  max-width: 26rem;
  background: var(--surface);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.titre-auth { margin: 0; font-size: 1.4rem; letter-spacing: .02em; }
.logo-auth { color: var(--marque); }
.sous-titre-auth { margin: .25rem 0 1.5rem; color: var(--encre-douce); font-size: .9rem; }

.form-auth h2 { font-size: 1.05rem; margin: 0 0 .75rem; }

.form-auth label {
  display: block;
  margin: .9rem 0 .3rem;
  font-size: .85rem;
  font-weight: 600;
}

.form-auth input {
  width: 100%;
  padding: .7rem .75rem;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  font-size: 1rem;
}

.form-auth input:focus-visible,
.champ:focus-visible {
  outline: 2px solid var(--marque);
  outline-offset: 1px;
}

.aide {
  font-size: .82rem;
  color: var(--encre-douce);
  background: #f7f9fa;
  border-left: 3px solid var(--marque);
  padding: .6rem .7rem;
  border-radius: 0 6px 6px 0;
  margin: 0 0 .5rem;
}

.regles-mdp {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  font-size: .78rem;
  color: var(--encre-douce);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
}

.regles-mdp li::before { content: "○ "; }
.regles-mdp li.ok { color: var(--succes); }
.regles-mdp li.ok::before { content: "● "; }

.bouton-principal {
  width: 100%;
  margin-top: 1.25rem;
  padding: .8rem;
  background: var(--marque);
  color: #fff;
  border: 0;
  border-radius: var(--rayon);
  font-weight: 600;
  cursor: pointer;
}

.bouton-principal:hover { background: #0b5b65; }
.bouton-principal:disabled { opacity: .5; cursor: not-allowed; }

.pied-auth {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: .75rem;
  color: var(--encre-douce);
}

.erreur {
  margin: .9rem 0 0;
  padding: .6rem .7rem;
  background: var(--alerte-fond);
  color: var(--alerte);
  border-radius: 6px;
  font-size: .85rem;
}

/* ── Ossature ─────────────────────────────────────────────────────────────── */

.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem;
  background: var(--marque);
  color: #fff;
  padding-top: max(.7rem, env(safe-area-inset-top));
}

.entete-marque { display: flex; align-items: center; gap: .6rem; }
.entete-marque small { display: block; font-size: .72rem; opacity: .85; }
.logo { font-size: 1.3rem; }
.entete-actions { display: flex; align-items: center; gap: .6rem; }

.badge-reseau {
  font-size: .7rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.bouton-discret {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 0;
  padding: .4rem .7rem;
  border-radius: 6px;
  cursor: pointer;
}

.bouton-discret:hover { background: rgba(255, 255, 255, .28); }

.onglets {
  display: flex;
  gap: .25rem;
  padding: 0 .5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--bord);
  overflow-x: auto;
}

.onglet {
  border: 0;
  background: none;
  padding: .8rem .9rem;
  cursor: pointer;
  color: var(--encre-douce);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.onglet[aria-current="page"] {
  color: var(--marque);
  border-bottom-color: var(--marque);
  font-weight: 600;
}

.vue {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

.vue:focus { outline: none; }

.carte {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1rem;
  box-shadow: var(--ombre);
}

.barre-vue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.barre-vue h2 { margin: 0; font-size: 1.15rem; }

.bouton {
  padding: .55rem .9rem;
  border: 1px solid var(--bord);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
}

.bouton:hover { background: #f0f3f5; }
.bouton-accent { background: var(--marque); color: #fff; border-color: var(--marque); }
.bouton-accent:hover { background: #0b5b65; }
.bouton-danger { color: var(--alerte); border-color: #f0c4c0; }
.bouton-danger:hover { background: var(--alerte-fond); }
.groupe-boutons { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Liste des copies ─────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: .7rem .8rem;
}

.stat-valeur { font-size: 1.5rem; font-weight: 700; }
.stat-libelle { font-size: .75rem; color: var(--encre-douce); }

.liste-copies { display: grid; gap: .5rem; }

.ligne-copie {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: .75rem .9rem;
  cursor: pointer;
}

.ligne-copie:hover { border-color: var(--marque); }
.ligne-copie-corps { flex: 1; min-width: 0; }
.ligne-copie-matricule { font-weight: 600; font-variant-numeric: tabular-nums; }
.ligne-copie-meta { font-size: .78rem; color: var(--encre-douce); }

.note-pastille {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: .3rem .6rem;
  border-radius: 8px;
  background: var(--officielle-fond);
  color: var(--officielle);
  border: 1px solid var(--officielle-bord);
  white-space: nowrap;
}

.note-pastille.brouillon {
  background: #f3f4f6;
  color: var(--encre-douce);
  border-color: var(--bord);
}

.vide {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--encre-douce);
  background: var(--surface);
  border: 1px dashed var(--bord);
  border-radius: var(--rayon);
}

/* ── Éditeur de copie ─────────────────────────────────────────────────────── */

.champ { width: 100%; padding: .55rem .65rem; border: 1px solid var(--bord); border-radius: 8px; font: inherit; }
.champ-groupe { margin-bottom: .9rem; }
.champ-groupe label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; }
textarea.champ { min-height: 8rem; resize: vertical; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88rem; }

.panneaux { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 62rem) { .panneaux { grid-template-columns: 1fr 1fr; align-items: start; } }

.panneau { border-radius: var(--rayon); padding: 1rem; border: 2px solid; }
.panneau-officielle { background: var(--officielle-fond); border-color: var(--officielle-bord); }
.panneau-analytique { background: var(--analytique-fond); border-color: var(--analytique-bord); }

.panneau-entete { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.panneau-entete h3 { margin: 0; font-size: 1rem; }
.panneau-officielle .panneau-entete h3 { color: var(--officielle); }
.panneau-analytique .panneau-entete h3 { color: var(--analytique); }

.etiquette {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .45rem;
  border-radius: 4px;
  color: #fff;
}

.etiquette-officielle { background: var(--officielle); }
.etiquette-analytique { background: var(--analytique); }

.panneau-note {
  font-size: .78rem;
  margin: 0 0 .9rem;
  color: var(--encre-douce);
}

.critere {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.critere:last-of-type { border-bottom: 0; }
.critere-libelle { font-size: .88rem; }
.critere-id { font-size: .7rem; color: var(--encre-douce); display: block; }

.critere-saisie {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-variant-numeric: tabular-nums;
}

.critere-saisie input {
  width: 4.5rem;
  padding: .4rem .5rem;
  border: 1px solid var(--bord);
  border-radius: 6px;
  text-align: right;
  font: inherit;
  background: var(--surface);
}

.critere-saisie input:invalid { border-color: var(--alerte); background: var(--alerte-fond); }
.critere-max { font-size: .78rem; color: var(--encre-douce); }

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 2px solid var(--officielle-bord);
}

.total-libelle { font-weight: 600; }
.total-valeur { font-size: 1.9rem; font-weight: 800; color: var(--officielle); font-variant-numeric: tabular-nums; }
.total-valeur.invalide { font-size: 1rem; font-weight: 600; color: var(--encre-douce); }

.bloom-total {
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 2px solid var(--analytique-bord);
  font-size: .85rem;
  color: var(--analytique);
}

.barre-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: .75rem 0;
  margin-top: 1rem;
  background: linear-gradient(to top, var(--fond) 70%, transparent);
}

/* ── Journal d'audit ──────────────────────────────────────────────────────── */

.bandeau-integrite {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  border-radius: var(--rayon);
  margin-bottom: 1rem;
  font-size: .9rem;
}

.bandeau-integrite.ok { background: var(--officielle-fond); color: var(--officielle); border: 1px solid var(--officielle-bord); }
.bandeau-integrite.rompu { background: var(--alerte-fond); color: var(--alerte); border: 1px solid #f0c4c0; }
.bandeau-integrite.attente { background: var(--surface); color: var(--encre-douce); border: 1px solid var(--bord); }

.entrees-audit { display: grid; gap: .4rem; }

.entree-audit {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-left: 3px solid var(--marque);
  border-radius: 6px;
  padding: .6rem .8rem;
  font-size: .85rem;
}

.entree-audit.rompue { border-left-color: var(--alerte); background: var(--alerte-fond); }
.entree-audit-hash {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .68rem;
  color: var(--encre-douce);
  word-break: break-all;
  margin-top: .25rem;
}

.entree-audit-motif { font-size: .78rem; color: var(--encre-douce); font-style: italic; }

/* ── Réglages ─────────────────────────────────────────────────────────────── */

.section-reglages { margin-bottom: 1rem; }
.section-reglages h3 { margin: 0 0 .2rem; font-size: .95rem; }
.section-reglages p { margin: 0 0 .8rem; font-size: .82rem; color: var(--encre-douce); }

/* ── Dialogues et notifications ───────────────────────────────────────────── */

dialog {
  border: 0;
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 26rem;
  width: calc(100% - 2rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

dialog::backdrop { background: rgba(11, 31, 41, .5); }
dialog h3 { margin: 0 0 .5rem; }
dialog p { margin: 0 0 .75rem; font-size: .88rem; color: var(--encre-douce); }
.dialogue-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }

.dialogue-capture { max-width: 34rem; }

.grille-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: .6rem;
  margin: .75rem 0;
}

.page-vignette {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f0f2f3;
  border: 1px solid #e2e6e8;
}

.page-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }

.page-numero {
  position: absolute;
  top: .3rem; left: .3rem;
  background: rgba(11, 31, 41, .7);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .05rem .4rem;
  border-radius: 4px;
}

.page-actions {
  position: absolute;
  bottom: .3rem; right: .3rem;
  display: flex;
  gap: .3rem;
}

.bouton-mini {
  border: 0;
  border-radius: 6px;
  width: 1.7rem;
  height: 1.7rem;
  font-size: .85rem;
  cursor: pointer;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.bouton-mini.bouton-danger { color: var(--alerte); }

.page-ajouter {
  aspect-ratio: 3 / 4;
  border: 2px dashed #c3ccd0;
  border-radius: 8px;
  background: transparent;
  color: var(--encre-douce);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}

.page-ajouter:hover { border-color: var(--marque); color: var(--marque); }

.recap-modif {
  background: #f7f9fa;
  border-radius: 6px;
  padding: .6rem .7rem;
  font-size: .82rem;
  margin-bottom: .75rem;
}

.recap-modif ul { margin: .3rem 0 0; padding-left: 1.1rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: var(--encre);
  color: #fff;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  font-size: .85rem;
  box-shadow: var(--ombre);
  z-index: 50;
  max-width: calc(100% - 2rem);
}

/* ── Dashboard ────────────────────────────────────────────────────────────── */

.histogramme {
  display: flex;
  align-items: flex-end;
  gap: .3rem;
  height: 8rem;
  padding: .25rem 0;
  border-bottom: 2px solid var(--bord);
}

.histo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: .25rem;
  min-width: 0;
}

.histo-barre {
  width: 100%;
  background: var(--marque);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  position: relative;
  transition: opacity .15s;
}

.histo-barre:hover { opacity: .75; }

.histo-val {
  position: absolute;
  top: -1.3rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .65rem;
  font-weight: 700;
  color: var(--encre);
  white-space: nowrap;
}

.histo-label {
  font-size: .65rem;
  color: var(--encre-douce);
  text-align: center;
}

.critere-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--bord);
  font-size: .83rem;
}

.critere-dashboard:last-child { border-bottom: 0; }
.critere-dashboard-label { color: var(--encre-douce); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.critere-dashboard-note { font-variant-numeric: tabular-nums; font-size: .78rem; white-space: nowrap; text-align: right; }

.barre-critere-fond {
  height: .5rem;
  background: var(--bord);
  border-radius: 999px;
  overflow: hidden;
}

.barre-critere-val {
  height: 100%;
  border-radius: 999px;
  transition: width .3s ease;
}

/* ── Feedback ─────────────────────────────────────────────────────────────── */

.analyse-texte {
  font-size: .78rem;
  color: var(--encre-douce);
  margin: .4rem 0 0;
  padding: .4rem .6rem;
  background: var(--fond);
  border-radius: 6px;
}

.feedback-synthese {
  background: var(--fond);
  border-left: 3px solid var(--marque);
  padding: .6rem .75rem;
  border-radius: 0 6px 6px 0;
  font-size: .88rem;
  margin-bottom: .75rem;
}

.feedbacks-details { display: grid; gap: .4rem; margin-bottom: .75rem; }

.feedback-critere {
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: 8px;
  padding: .5rem .7rem;
  font-size: .85rem;
}

.feedback-critere summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  list-style: none;
  user-select: none;
}

.feedback-critere summary::-webkit-details-marker { display: none; }

.feedback-critere-titre { font-weight: 600; }
.feedback-score { font-variant-numeric: tabular-nums; color: var(--encre-douce); white-space: nowrap; }
.feedback-obs { margin: .5rem 0 .3rem; }
.feedback-conseil { color: var(--marque); margin: 0 0 .25rem; }
.feedback-conf { font-size: .72rem; color: var(--encre-douce); margin: 0; }
.feedback-profil { font-size: .78rem; color: var(--encre-douce); }
.appreciation-existante { font-size: .85rem; white-space: pre-wrap; margin: 0 0 .5rem; }
.texte-aide { font-size: .82rem; color: var(--encre-douce); margin: 0; }

/* ── Clustering ───────────────────────────────────────────────────────────── */

.tag-copie {
  display: inline-block;
  padding: .2rem .55rem;
  background: var(--analytique-fond);
  color: var(--analytique);
  border: 1px solid var(--analytique-bord);
  border-radius: 999px;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.tag-copie.outlier {
  background: var(--alerte-fond);
  color: var(--alerte);
  border-color: #f0c4c0;
}

/* ── Multi-profils ────────────────────────────────────────────────────────── */

.titre-section-auth {
  font-size: 1rem;
  margin: 0 0 .75rem;
}

/* Zone de rendu de l'UI auth (profils / connexion / création / restauration) */
#vue-auth { width: 100%; }

.liste-profils {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: .9rem;
}

.carte-profil {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .75rem 1rem;
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.carte-profil:hover { background: #edf3f5; border-color: var(--marque); }

.carte-profil-corps { flex: 1; min-width: 0; }

.carte-profil-email {
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carte-profil-etab {
  font-size: .78rem;
  color: var(--encre-douce);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carte-profil-meta {
  font-size: .75rem;
  color: var(--encre-douce);
  margin-top: .15rem;
}

.carte-profil-alerte {
  font-size: .72rem;
  color: #7a5c00;
  background: #fff8e1;
  border-radius: 4px;
  padding: .15rem .4rem;
  margin-top: .3rem;
  display: inline-block;
}

.bouton-retirer {
  flex-shrink: 0;
  margin-left: .75rem;
  padding: .25rem .55rem;
  font-size: .78rem;
  background: transparent;
  border: 1px solid var(--bord);
  border-radius: 6px;
  color: var(--encre-douce);
  cursor: pointer;
  line-height: 1;
}

.bouton-retirer:hover { background: var(--alerte-fond); color: var(--alerte); border-color: var(--alerte); }

/* Séparateur « ou » entre profils et boutons */
.sep-auth {
  text-align: center;
  font-size: .8rem;
  color: var(--encre-douce);
  margin: .75rem 0;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sep-auth::before, .sep-auth::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bord);
}

/* Lien discret (retour, mot de passe oublié…) */
.bouton-lien {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: .85rem;
  color: var(--marque);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bouton-lien:hover { color: #0b5b65; }

/* Bloc d'info sur le backup identifié lors d'une restauration */
.meta-backup-info {
  background: var(--fond);
  border: 1px solid var(--bord);
  border-left: 3px solid var(--marque);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: .6rem .75rem;
  font-size: .82rem;
  margin-bottom: .9rem;
  line-height: 1.5;
}

/* Bannière de rappel de sauvegarde (en haut de l'écran app) */
.rappel-sauvegarde {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .65rem 1rem;
  background: #7a5c00;
  color: #fff;
  font-size: .83rem;
}

.rappel-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.rappel-actions .bouton { font-size: .8rem; padding: .3rem .7rem; }
.rappel-actions .bouton-discret { background: none; border: none; color: rgba(255,255,255,.75); font: inherit; font-size: .78rem; cursor: pointer; text-decoration: underline; }
.rappel-actions .bouton-discret:hover { color: #fff; }

/* ── Impression (export PDF) ──────────────────────────────────────────────── */

#zone-impression { display: none; }

@media print {
  #ecran-auth, #ecran-app, .toast { display: none !important; }

  #zone-impression { display: block; padding: 0; color: #000; }

  .bordereau-entete { border-bottom: 2px solid #000; padding-bottom: .5rem; margin-bottom: 1rem; }
  .bordereau-entete h1 { font-size: 15pt; margin: 0 0 .3rem; }
  .bordereau-entete p { margin: .1rem 0; font-size: 9.5pt; }
  .bordereau-mention { font-style: italic; color: #444; }

  .bordereau-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .bordereau-table th, .bordereau-table td { border: 1px solid #666; padding: 3pt 4pt; text-align: center; }
  .bordereau-table th { background: #eee; }
  .bordereau-table td:first-child { text-align: left; font-variant-numeric: tabular-nums; }
  .bordereau-table tr { break-inside: avoid; }
  .bordereau-table thead { display: table-header-group; }

  .bordereau-total { margin-top: .75rem; font-size: 10pt; font-weight: bold; }
  .bordereau-signature { margin-top: 2rem; font-size: 9.5pt; }

  @page { margin: 1.5cm; size: A4 landscape; }
}
