/* PrêtPro — feuille de style
   Univers : le dossier fournisseur qu'on complète pièce par pièce, jusqu'au cachet « Prêt ».
   Encre vert-noir, papier frais, vert Kaloum (marque), or de Siguiri (progression), oxyde de fer (alertes). */

:root {
  --ink: #13241e;
  --ink-2: #44564e;
  --ink-3: #6b7c74;
  --paper: #f6f8f4;
  --card: #ffffff;
  --line: #d9e2da;
  --line-2: #e9efe9;
  --brand: #0e6b4f;
  --brand-deep: #0a4a37;
  --brand-soft: #e3f1ea;
  --gold: #f2b705;
  --gold-deep: #c99600;
  --gold-soft: #fdf3cf;
  --amber-text: #7a5600;
  --oxide: #9a3a26;
  --oxide-soft: #f8e4de;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(19, 36, 30, .05), 0 8px 24px -12px rgba(19, 36, 30, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.55 var(--text); color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: .2em 0 .4em; }
h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .6em; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.2em 0 .4em; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; color: var(--ink-3); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--brand); font-weight: 800; }
.logo svg { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 10px; border-radius: var(--r-sm); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--line-2); }
.nav .qui { color: var(--ink-3); font-size: .88rem; padding: 0 6px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav form { margin: 0; }
@media (max-width: 640px) {
  .site-header .inner { flex-wrap: wrap; gap: 6px 12px; padding: 10px 16px; }
  .nav { margin-left: 0; width: 100%; }
  .nav .qui, .nav .opt { display: none; }
  .nav a:not(.btn) { padding: 6px 8px; }
}

main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 48px; }
main.etroit { max-width: 780px; }
.site-footer { border-top: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; }
.site-footer .inner { max-width: 1180px; margin: 0 auto; padding: 22px 20px 34px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 640px) { main { padding: 18px 16px 40px; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--brand); background: var(--brand); color: #fff; font: 700 1rem/1.2 var(--text); padding: 12px 20px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ink); }
.btn.danger { background: var(--oxide); border-color: var(--oxide); }
.btn.sm { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: wait; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien.rouge { color: var(--oxide); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }

/* ---------- Pastilles de statut ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.verifie { background: var(--brand); color: #fff; }
.chip.verifie::before { content: "✓"; width: auto; height: auto; background: none; font-size: .8rem; opacity: 1; }
.chip.fourni { background: var(--brand-soft); color: var(--brand-deep); }
.chip.declare, .chip.encours { background: var(--gold-soft); color: var(--amber-text); }
.chip.expire, .chip.rejete { background: var(--oxide-soft); color: var(--oxide); }
.chip.manquant { background: var(--line-2); color: var(--ink-3); }
.chip.plain::before { display: none; }

/* ---------- Panneaux ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 0 0 20px; }
.panel > :last-child { margin-bottom: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.panel-head h2 { margin: 0; }
.panel.alerte { border-color: #ecc6b9; background: #fffaf8; }
.panel.calme { background: var(--line-2); border-color: transparent; }
@media (max-width: 640px) { .panel { padding: 18px; border-radius: 16px; } }

.flash { border-radius: var(--r-md); padding: 12px 16px; font-weight: 700; margin: 0 0 16px; background: var(--brand-soft); color: var(--brand-deep); }
.flash.warn { background: var(--gold-soft); color: var(--amber-text); }
.flash.err { background: var(--oxide-soft); color: var(--oxide); }

/* ---------- Le cachet (score) ---------- */
.cachet { display: block; width: 168px; height: 168px; }
.cachet .c-out { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.cachet .c-in { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.cachet .c-ring { font: 700 13.5px var(--display); letter-spacing: .18em; fill: var(--ink-2); }
.cachet .c-num { font: 800 64px var(--display); fill: var(--ink); letter-spacing: -0.04em; }
.cachet .c-sur { font: 700 14px var(--text); fill: var(--ink-3); }
.cachet.pret { transform: rotate(-8deg); }
.cachet.pret .c-out { stroke: var(--brand); stroke-width: 6; stroke-dasharray: none; }
.cachet.pret .c-in { stroke: var(--brand); stroke-width: 2.5; }
.cachet.pret .c-ring, .cachet.pret .c-num { fill: var(--brand); }
.cachet.pret .c-sur { fill: var(--brand-deep); }
.cachet.mini { width: 64px; height: 64px; }
.cachet.mini .c-ring, .cachet.mini .c-sur { display: none; }
.cachet.mini .c-num { font-size: 62px; transform: translateY(12px); }
@media (prefers-reduced-motion: no-preference) {
  .cachet.pret.anime { animation: tampon .55s cubic-bezier(.2, .9, .3, 1.2) .25s both; }
  @keyframes tampon { from { transform: rotate(-20deg) scale(1.35); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
}

/* ---------- Jauge de pièces ---------- */
.jauge { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 10px 0 4px; }
.jauge .piste { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.jauge .rempli { display: block; height: 100%; border-radius: 99px; background: var(--gold); }
.jauge.complet .rempli { background: var(--brand); }
.jauge .val { font-size: .95rem; color: var(--ink-2); white-space: nowrap; }
.jauge .val b { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }

/* ---------- Accueil ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 28px 0 40px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; max-width: 13ch; }
.hero .chapo { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 26px; }
.hero .deja { margin-top: 16px; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 10px; } }

/* Le dossier (chemise cartonnée) */
.chemise { position: relative; background: #fffdf5; border: 1px solid #e8dfbf; border-radius: 6px 18px 18px 18px; padding: 26px 24px 112px; box-shadow: var(--shadow); max-width: 480px; justify-self: center; width: 100%; }
.chemise::before { content: ""; position: absolute; top: -16px; left: -1px; width: 150px; height: 18px; background: #fffdf5; border: 1px solid #e8dfbf; border-bottom: 0; border-radius: 10px 10px 0 0; }
.chemise .titre { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin: 0 0 2px; }
.chemise .sous { color: var(--ink-3); font-size: .9rem; margin: 0 0 14px; }
.chemise ul { list-style: none; padding: 0; margin: 0; }
.chemise li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed #e3d9b5; font-size: .95rem; }
.chemise .cachet { position: absolute; right: 22px; bottom: -30px; width: 132px; height: 132px; transform: rotate(-10deg); }
.chemise .exemple { position: absolute; left: 24px; bottom: 18px; font-size: .75rem; color: var(--ink-3); }
@media (max-width: 520px) { .chemise .cachet { right: 12px; width: 112px; height: 112px; } .chemise { padding-bottom: 100px; } }

.section { padding: 44px 0; border-top: 1px solid var(--line); }
.section > h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 26ch; }
.section .intro { color: var(--ink-2); max-width: 60ch; margin-bottom: 26px; }
.etapes { list-style: none; counter-reset: e; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.etapes li { counter-increment: e; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.etapes li::before { content: counter(e); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1rem var(--display); margin-bottom: 12px; }
.etapes h3 { margin: 0 0 6px; }
.etapes p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

.bande { background: var(--brand-deep); color: #e8f2ec; border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; margin: 12px 0 8px; }
.bande h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.bande ul { padding-left: 20px; margin: 0 0 20px; }
.bande li { margin: 6px 0; }
.bande .encart { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md); padding: 20px; }
.bande .encart b { display: block; font-family: var(--display); font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
@media (max-width: 860px) { .bande { grid-template-columns: 1fr; padding: 28px 22px; } }

.liste-pieces { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; padding-left: 20px; margin: 0 0 12px; max-width: 900px; }
@media (max-width: 640px) { .liste-pieces { grid-template-columns: 1fr; } }

/* ---------- Formulaires ---------- */
label { display: block; font-weight: 700; font-size: .95rem; margin: 0 0 14px; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 1rem/1.4 var(--text); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.aide { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; margin-top: 2px; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grille2 { grid-template-columns: 1fr; } }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.case input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }

.q { border: 0; margin: 0; padding: 16px 0; border-top: 1px solid var(--line-2); }
.q:first-of-type { border-top: 0; padding-top: 4px; }
.q legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.q .num { color: var(--ink-3); font-weight: 400; margin-right: 6px; }
.essentiel { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--gold-soft); color: var(--amber-text); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { margin: 0; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; background: #fff; }
.choix input { accent-color: var(--brand); }
.choix label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.choix label:has(input[value=non]:checked) { border-color: var(--ink-3); background: var(--line-2); color: var(--ink); }
.progression-form { position: sticky; top: 64px; z-index: 5; background: var(--paper); padding: 10px 0; margin: 0 0 6px; }
.progression-form .jauge { margin: 0; }

.login { max-width: 460px; margin: 20px auto; }
.onglets { display: grid; grid-template-columns: 1fr 1fr; background: var(--line-2); border-radius: 999px; padding: 4px; margin: 0 0 20px; }
.onglets a { text-align: center; padding: 9px 10px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.onglets a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- Espace PME ---------- */
.app { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.cote { position: sticky; top: 84px; }
.cote .panel { text-align: center; }
.cote .cachet { margin: 4px auto 10px; }
.cote .nom { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin: 0; }
.cote .niveau { margin: 4px 0 14px; color: var(--ink-2); }
.cote .jauge { text-align: left; }
.sommaire { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; border-top: 1px solid var(--line-2); }
.sommaire a { display: flex; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.sommaire a:hover { color: var(--brand); }
.sommaire .n { color: var(--ink-3); font-weight: 400; }
.partage { text-align: left; }
.partage form { margin: 0; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .cote { position: static; }
  .cote .sommaire { display: none; }
}

.pieces { list-style: none; padding: 0; margin: 8px 0 12px; }
.pieces li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.pieces li:first-child { border-top: 0; }
.pieces .pn { font-weight: 700; }
.pieces .pn small { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; margin-top: 2px; }
.pieces .pr { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
@media (max-width: 560px) { .pieces li { flex-direction: column; align-items: flex-start; gap: 8px; } }

.docs { list-style: none; padding: 0; margin: 0 0 18px; }
.docs li { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.docs li:first-child { border-top: 0; }
.docs .dn { font-weight: 700; }
.docs .dm { display: block; color: var(--ink-3); font-size: .85rem; word-break: break-word; }
.docs .refus { display: block; color: var(--oxide); font-size: .85rem; }
.docs .da { display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.docs .da form { margin: 0; }
.docs .verif { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.docs .verif input { flex: 1; min-width: 180px; margin: 0; padding: 8px 12px; }
@media (max-width: 560px) { .docs li { grid-template-columns: 1fr; } }
.depot { background: var(--paper); border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 18px; }
.depot h3 { margin-top: 0; }

.alertes { margin: 0; padding-left: 20px; }
.alertes li { margin: 4px 0; }
.alertes li.expire { color: var(--oxide); }

.barres .barre { display: grid; grid-template-columns: 190px 1fr 46px; gap: 12px; align-items: center; margin: 9px 0; font-size: .95rem; }
.barres .piste { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.barres .rempli { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.barres .v { text-align: right; color: var(--ink-3); }
@media (max-width: 560px) { .barres .barre { grid-template-columns: 1fr 44px; } .barres .barre .l { grid-column: 1 / -1; } }

.plan { padding-left: 22px; margin: 6px 0 0; }
.plan li { margin: 0 0 12px; }
.plan .pa { display: block; font-weight: 700; }
.plan .pm { display: block; font-size: .85rem; color: var(--ink-3); }
.plan li.blk .pa { color: var(--oxide); }

.courbe { width: 100%; height: auto; display: block; margin: 6px 0 4px; }
.courbe .grille { stroke: var(--line-2); }
.courbe .aire { fill: var(--gold-soft); }
.courbe .ligne { fill: none; stroke: var(--gold-deep); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.courbe .pt { fill: #fff; stroke: var(--gold-deep); stroke-width: 3; }
.courbe .pt.dernier { fill: var(--gold-deep); }
.courbe text { font: 700 13px var(--text); fill: var(--ink-2); }
.courbe .val { font: 800 15px var(--display); fill: var(--ink); }

.lien-public { word-break: break-all; background: var(--line-2); padding: 10px 14px; border-radius: var(--r-sm); font-size: .95rem; }

/* ---------- Outils IA ---------- */
.outils { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.outils .attente { flex-basis: 100%; margin: 6px 0 0; }
.hist { list-style: none; padding: 0; margin: 12px 0 0; }
.hist li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: .95rem; }
.bandeau { background: var(--gold-soft); border-radius: var(--r-md); padding: 16px 18px; margin: 0 0 18px; }
.bandeau p { margin: 0 0 8px; }
.doc { line-height: 1.65; max-width: 72ch; }
.doc h2 { font-size: 1.6rem; }
.doc h3 { font-size: 1.15rem; margin-top: 1.4em; }
.doc ul { padding-left: 22px; }
.decision { text-align: center; border-width: 2px; }
.decision h1 { margin: 6px 0 10px; }
.decision.d-go { border-color: var(--brand); }
.decision.d-go h1 { color: var(--brand); }
.decision.d-go_sous_conditions { border-color: var(--gold-deep); }
.decision.d-go_sous_conditions h1 { color: var(--amber-text); }
.decision.d-no_go { border-color: var(--oxide); }
.decision.d-no_go h1 { color: var(--oxide); }
.infos { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: .95rem; }
.infos span { color: var(--ink-3); margin-right: 6px; }

/* ---------- Fiche publique ---------- */
.fiche-tete { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.fiche-tete .cachet { width: 140px; height: 140px; flex-shrink: 0; }
.fiche-tete h1 { margin: 0 0 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.contact { list-style: none; padding: 0; margin: 0; }
.contact li { margin: 4px 0; }

/* ---------- Espace acheteur ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.kpi b { display: block; font: 800 2.2rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); margin-bottom: 6px; }
.kpi span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr; } .kpi b { font-size: 1.8rem; } }
.filtres { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1fr; gap: 0 14px; align-items: end; }
.filtres .cases { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 2px 0 12px; }
.filtres .cases label { margin: 0; }
@media (max-width: 860px) { .filtres { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .filtres { grid-template-columns: 1fr; } }
.fournisseurs { list-style: none; padding: 0; margin: 0; }
.fournisseurs li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 240px auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-2); }
.fournisseurs li:first-child { border-top: 0; }
.fournisseurs .fn { font-family: var(--display); font-weight: 800; font-size: 1.08rem; text-decoration: none; color: var(--ink); }
.fournisseurs .fn:hover { color: var(--brand); }
.fournisseurs .fm { display: block; color: var(--ink-3); font-size: .9rem; }
.fournisseurs .fb { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fournisseurs .jauge { margin: 0; }
.fournisseurs form { margin: 0; }
@media (max-width: 900px) {
  .fournisseurs li { grid-template-columns: 56px minmax(0, 1fr); }
  .fournisseurs li > .jauge, .fournisseurs li > .fa { grid-column: 2; }
}
.etoile { font-size: .9rem; }
.etoile.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.repartition .barre { grid-template-columns: 200px 1fr 40px; }
.repartition .rempli { background: var(--gold-deep); }
.vide { text-align: center; padding: 36px 20px; color: var(--ink-2); }

/* ---------- Tableaux (admin) ---------- */
.tableau { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
th { font-weight: 700; color: var(--ink-2); background: #fafbf9; }
tr:last-child td { border-bottom: 0; }

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .noprint, .actions, .depot { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  main { max-width: none; padding: 0; }
  .panel { border: 0; padding: 0; margin: 0 0 14pt; break-inside: avoid; }
  .app { display: block; }
  .cachet.pret { transform: none; }
}
