/*!
 * CDF Compta – feuille de style (sans dépendance)
 * © CDF Studio – https://cdf-studio.com
 */
/* Polices de la charte CDF Studio, embarquées (SIL Open Font License 1.1 — voir assets/polices/LICENCE-OFL.txt) */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(polices/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(polices/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(polices/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(polices/inter-700.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url(polices/playfair-display-700.woff2) format("woff2"); }
:root {
  --encre: #121212;
  --encre-douce: #5c5d63;
  --fond: #f4f4f6;
  --carte: #ffffff;
  --bord: #e2e2e6;
  --marque: #121212;
  --accent: #2b6a6c;
  --accent-clair: #e6f0f0;
  --ok: #157a4c;
  --ok-clair: #e3f5ec;
  --alerte: #9a5b00;
  --alerte-clair: #fff3dc;
  --erreur: #b42318;
  --erreur-clair: #fdebe9;
  --info: #1f5fb0;
  --info-clair: #e6effb;
  --or: #d4af37;
  --corail: #f76e60;
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(18, 18, 18, .06), 0 4px 16px rgba(18, 18, 18, .05);
  --menu: 248px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre);
  background: var(--fond);
  font-size: 15px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--accent); }
a:hover { color: var(--marque); }
h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.7rem; margin: 0 0 1.2rem; letter-spacing: 0; }
h1::after { content: ""; display: block; width: 56px; height: 3px; background: var(--or); border-radius: 2px; margin-top: .45rem; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
h3 { font-size: .95rem; margin: 1.2rem 0 .4rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
small, .discret { color: var(--encre-douce); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Disposition ---------- */
.avec-menu .contenu { margin-left: var(--menu); padding: 2rem clamp(1rem, 3vw, 2.5rem) 1rem; max-width: calc(1280px + var(--menu)); }
.avec-menu .pied { margin-left: var(--menu); }
.contenu { padding: 1.5rem; }
.pied { padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2rem; color: var(--encre-douce); font-size: .82rem; }
.pied a { color: inherit; }

.menu { position: fixed; inset: 0 auto 0 0; width: var(--menu); background: var(--marque); color: #d9d9dc; display: flex; flex-direction: column; padding: 1.1rem .8rem; overflow-y: auto; z-index: 20; }
.menu-tete { display: flex; gap: .7rem; align-items: center; padding: .2rem .5rem 1rem; color: #fff; }
.menu-tete small { display: block; color: #d4af37; font-size: .78rem; }
.menu-groupe { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: #b8973a; margin: 1rem .6rem .3rem; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; color: #ececee; text-decoration: none; padding: .55rem .7rem; border-radius: 8px; min-height: 40px; }
.menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.menu a[aria-current="page"] { background: rgba(212, 175, 55, .20); color: #fff; font-weight: 600; }
.menu-pied { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: .8rem; }
.menu-pied a { display: flex; gap: .6rem; align-items: center; }
.menu-pied small { display: block; color: #d4af37; font-size: .75rem; }
.menu-pied .lien { color: #c9c9cd; padding: .4rem .7rem; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #d4af37; color: var(--marque); display: grid; place-items: center; font-weight: 700; }

.barre { display: none; }

@media (max-width: 900px) {
  .avec-menu .contenu, .avec-menu .pied { margin-left: 0; }
  .avec-menu .contenu { padding-top: 1.2rem; }
  .barre { display: flex; position: sticky; top: 0; z-index: 15; align-items: center; gap: .6rem; background: var(--marque); color: #fff; padding: .4rem .8rem; min-height: 54px; }
  .barre .marque { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; min-height: 44px; }
  .barre-titre { margin-left: auto; font-size: .85rem; color: #c9c9cd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
  .bouton-menu { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; touch-action: manipulation; }
  .menu { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .menu-ouvert .menu { transform: none; }
  h1 { font-size: 1.3rem; }
}

/* ---------- Cartes, tuiles ---------- */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.25rem 1.4rem; margin-bottom: 1.2rem; }
details.carte > summary { cursor: pointer; padding: .2rem 0; }
details.carte[open] > summary { margin-bottom: .8rem; }
.carte-accent { border-color: #b5d1d2; background: linear-gradient(0deg, #fff, #f4f8f8); }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 1.2rem; align-items: start; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.tuile { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1rem 1.2rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .2rem; }
a.tuile:hover { border-color: var(--accent); }
.tuile span { color: var(--encre-douce); font-size: .85rem; }
.tuile strong { font-size: 1.5rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: .5rem 0 1rem; }
.chiffre { background: var(--fond); border-radius: 10px; padding: .7rem .9rem; display: flex; flex-direction: column; }
.chiffre strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.chiffre span { font-size: .82rem; color: var(--encre-douce); }
.liste-a-traiter { margin: 0; padding-left: 1.1rem; }
.liste-a-traiter li { margin: .35rem 0; }

/* ---------- Tableaux ---------- */
.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.2rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .55rem .6rem; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-douce); background: #f8f8fa; position: sticky; top: 0; }
tfoot th { border-top: 2px solid var(--bord); border-bottom: 0; }
tbody tr:hover { background: #f8f8fa; }
.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-attenuee td { color: var(--encre-douce); }
.tableau-detail { margin-top: .4rem; font-size: .82rem; background: var(--fond); border-radius: 8px; }
.tableau-detail th { width: 22%; }
.compteur { color: var(--encre-douce); font-size: .88rem; margin: .4rem 0 .6rem; }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
.fiche dt { color: var(--encre-douce); }
.fiche dd { margin: 0; }
@media (max-width: 600px) { .fiche { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .fiche dd { margin-bottom: .5rem; font-weight: 600; } }
.remarques { background: var(--fond); padding: .7rem .9rem; border-radius: 8px; font-size: .9rem; }

/* ---------- Pastilles, messages ---------- */
.pastille { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 600; line-height: 1.5; white-space: nowrap; margin: .1rem 0; }
.pastille-ok { background: var(--ok-clair); color: var(--ok); }
.pastille-alerte { background: var(--alerte-clair); color: var(--alerte); }
.pastille-erreur { background: var(--erreur-clair); color: var(--erreur); }
.pastille-info { background: var(--info-clair); color: var(--info); }
.pastille-neutre { background: #ececef; color: var(--encre-douce); }
.message { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid; }
.message-ok { background: var(--ok-clair); color: var(--ok); border-color: #b8e2cc; }
.message-alerte { background: var(--alerte-clair); color: var(--alerte); border-color: #f2d49b; }
.message-erreur { background: var(--erreur-clair); color: var(--erreur); border-color: #f5c2bc; }

/* ---------- Formulaires, boutons ---------- */
.formulaire { display: flex; flex-direction: column; gap: .9rem; max-width: 560px; }
.formulaire label, .filtres label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .88rem; }
.formulaire label small { font-weight: 400; }
.formulaire-ligne { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; max-width: none; flex-direction: row; }
.formulaire-ligne label { flex: 1 1 140px; }
fieldset { border: 1px solid var(--bord); border-radius: 10px; padding: .8rem 1rem; margin: 0; }
legend { padding: 0 .3rem; font-size: .9rem; }
input, select, textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--encre); background: #fff; border: 1px solid #cfcfd6; border-radius: 8px; padding: .55rem .7rem; min-height: 42px; width: 100%; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(43, 106, 108, .20); }
select.a-completer { border-color: var(--alerte); background: var(--alerte-clair); }
.champ-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.4rem; letter-spacing: .25em; text-align: center; }
.filtres { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; }
.filtres label { flex: 1 1 150px; }
.filtres label.case, label.case { flex: 0 0 auto; flex-direction: row; align-items: center; gap: .4rem; font-weight: 400; min-height: 42px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .92rem; padding: .55rem 1rem; min-height: 42px; border-radius: 8px; border: 1px solid #cfcfd6; background: #fff; color: var(--encre); text-decoration: none; cursor: pointer; touch-action: manipulation; }
.bouton:hover { border-color: var(--accent); color: var(--accent); }
.bouton-principal { background: var(--accent); border-color: var(--accent); color: #fff; }
.bouton-principal:hover { background: var(--marque); border-color: var(--marque); color: #fff; }
.bouton-danger { color: var(--erreur); border-color: #f0b3ac; }
.bouton-discret { border-color: transparent; background: transparent; color: var(--accent); }
.bouton-large { width: 100%; }
.bouton[disabled] { opacity: .5; cursor: not-allowed; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; min-height: 32px; }
.actions, .barre-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.barre-actions { position: sticky; bottom: 0; z-index: 5; }
.actions-ligne { white-space: nowrap; }
.menu-actions summary { cursor: pointer; color: var(--accent); min-height: 32px; display: inline-flex; align-items: center; }
.menu-actions > div { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .4rem 0; }
.onglets { display: flex; gap: .3rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bord); }
.onglets a { padding: .6rem 1rem; text-decoration: none; color: var(--encre-douce); border-bottom: 3px solid transparent; min-height: 44px; font-weight: 600; }
.onglets a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1rem; }
.pagination a, .pagination span { min-width: 36px; min-height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--bord); text-decoration: none; }
.pagination span { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Connexion ---------- */
.ecran-connexion { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; background: radial-gradient(circle at 20% 10%, #f3ead0, transparent 50%), var(--fond); }
.boite-connexion { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--bord); border-radius: 16px; box-shadow: 0 10px 40px rgba(18, 18, 18, .12); padding: 2rem; }
.boite-connexion h1 { font-size: 1.3rem; margin: 1.2rem 0 1rem; }
.boite-connexion .formulaire { max-width: none; }
.logo-connexion { display: flex; gap: .8rem; align-items: center; }
.logo-connexion strong { font-size: 1.2rem; display: block; color: var(--marque); }
.logo-connexion small { display: block; }
.pied-connexion { color: var(--encre-douce); font-size: .8rem; margin-top: 1.2rem; text-align: center; }
.annuler-connexion { margin-top: 1rem; text-align: center; }
.qr { display: flex; justify-content: center; margin: 1rem 0; }
.qr svg { max-width: 100%; height: auto; border: 1px solid var(--bord); border-radius: 10px; }
.cle-manuelle { margin-bottom: 1rem; font-size: .9rem; }
.cle { display: inline-block; font-size: 1.05rem; letter-spacing: .08em; background: var(--fond); padding: .4rem .7rem; border-radius: 8px; word-break: break-all; user-select: all; }
.codes-secours { columns: 2; padding-left: 1.4rem; font-size: 1.05rem; }
.codes-secours li { margin: .25rem 0; }

@media print {
  .menu, .barre, .pied, .bouton, .actions, form, .pied-connexion { display: none !important; }
  .avec-menu .contenu { margin: 0; }
  .boite-connexion { box-shadow: none; border: 0; }
}

/* ---------- Livraison 2 : factures et e-mails (CDF Studio) ---------- */
.formulaire-large { max-width: none; }
.formulaire-ligne label.large { flex: 3 1 280px; }
label.bloc { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .88rem; margin-top: .9rem; }
input.court { max-width: 90px; }
input.moyen { max-width: 130px; }
.info-client { min-height: 1.5rem; margin: .4rem 0 .8rem; font-size: .88rem; color: var(--encre-douce); }
.lignes-facture td { vertical-align: top; padding: .4rem .3rem; }
.lignes-facture textarea { min-height: 42px; resize: vertical; min-width: 220px; }
.lignes-facture select { min-width: 120px; }
.bouton-icone { width: 40px; height: 40px; border-radius: 8px; border: 1px solid #cfcfd6; background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--erreur); }
.totaux { display: flex; justify-content: flex-end; margin: .8rem 0; }
.totaux dl { display: grid; grid-template-columns: auto auto; gap: .2rem 1.5rem; margin: 0; font-variant-numeric: tabular-nums; }
.totaux dd { margin: 0; text-align: right; }
.apercu-email { white-space: pre-wrap; font-family: inherit; font-size: .85rem; background: var(--fond); padding: .7rem; border-radius: 8px; max-width: 70ch; }
.pied-email { background: var(--fond); border-radius: 8px; padding: .6rem .8rem; font-size: .8rem; color: var(--encre-douce); }
.pied-email p { margin: .3rem 0 0; }
textarea { font-family: inherit; line-height: 1.5; }
.nom-fichier { overflow-wrap: anywhere; }
.pied-email p, .apercu-email { overflow-wrap: anywhere; }
@media (max-width: 600px) { .lignes-facture textarea { min-width: 180px; } .filtres p { flex-basis: 100%; } }
@media (max-width: 600px) { .barre-actions { position: static; } }

/* ---------- Banques et rapprochement (livraison 4) – CDF Studio ---------- */
.onglets { overflow-x: auto; scrollbar-width: thin; }
.onglets a { white-space: nowrap; }
.mouvement { border: 1px solid var(--bord); border-radius: var(--rayon); padding: .8rem 1rem; margin-bottom: .8rem; background: var(--carte); }
.mouvement-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }
.mouvement-montant { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.montant-sortie { color: var(--erreur); font-variant-numeric: tabular-nums; }
.montant-entree { color: var(--ok); font-variant-numeric: tabular-nums; }
.propositions { list-style: none; padding: 0; margin: .6rem 0; display: flex; flex-direction: column; gap: .5rem; }
.propositions li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem; border-radius: 8px; background: var(--fond); }
.propositions li > span:nth-child(2) { flex: 1 1 16rem; overflow-wrap: anywhere; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; border-radius: 50%; font-weight: 700; font-size: .85rem; }
.score-haut { background: var(--ok-clair); color: var(--ok); }
.score-moyen { background: var(--alerte-clair); color: var(--alerte); }
.score-bas { background: #ececef; color: var(--encre-douce); }
.actions-ligne { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.mouvement .menu-actions { display: inline-block; margin-right: 1rem; vertical-align: top; }
.mouvement .menu-actions[open] { display: block; }
form.en-ligne { display: inline; }
.liste-simple { list-style: none; padding: 0; margin: 0; }
.liste-simple li { padding: .45rem 0; border-bottom: 1px solid var(--bord); overflow-wrap: anywhere; }
.grand { font-size: 1.15rem; }
.carte-etroite { max-width: 34rem; }
.qr-paiement { display: flex; justify-content: center; margin: 1rem 0; }
.qr-paiement svg { width: min(260px, 70vw); height: auto; }
.texte-legal { max-width: 40rem; }
.texte-legal h2 { font-size: 1rem; margin-top: 1.2rem; }
fieldset { min-width: 0; margin-bottom: 1rem; }
legend { font-weight: 600; padding: 0 .3rem; }
.boite-connexion:has(.texte-legal) { max-width: 44rem; }

/* ---------- Boîte « À traiter » (livraison 5) – CDF Studio ---------- */
.message-info { background: var(--info-clair); color: var(--info); border-color: #bfd4f0; }
.piece { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.2rem; align-items: start; }
.piece-apercu iframe, .piece-apercu img { width: 100%; height: 34rem; border: 1px solid var(--bord); border-radius: 8px; background: #fff; object-fit: contain; }
.piece-apercu p { overflow-wrap: anywhere; }
.piece-fiche .message { margin: 0 0 .6rem; }
.lu { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ok); background: var(--ok-clair); border-radius: 6px; padding: 0 .35rem; margin-left: .3rem; vertical-align: middle; }
label.bouton { cursor: pointer; }
label.bouton input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
label.bouton:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) {
  .piece { grid-template-columns: 1fr; }
  .piece-apercu iframe { display: none; }
  .piece-apercu img { height: auto; max-height: 22rem; }
}

/* ---- Livraison 6 : envoi de pièces depuis le téléphone (CDF Studio) ---- */
label.bouton { position: relative; }
.gros-boutons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.bouton-geant { min-height: 4.2rem; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; gap: .6rem; text-align: center; padding: .9rem 1rem; }
.boite-connexion .bouton-geant, .boite-connexion label.bouton { margin-bottom: .7rem; }
.envoi-pieces h2 { font-size: 1rem; margin: 1rem 0 .3rem; }
.piece-envoyee { border: 1px solid var(--bord); border-left: 4px solid var(--ok); border-radius: 8px; padding: .7rem .9rem; margin: .6rem 0; background: var(--carte); }
.piece-envoyee.refusee { border-left-color: var(--erreur); }
.piece-envoyee p { margin: .2rem 0 .5rem; }
.tuiles-mobile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.tuiles-mobile .tuile { padding: .8rem; text-align: center; align-items: center; }
.lecture-photo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.aide-installation summary { cursor: pointer; font-weight: 600; }
@media (max-width: 520px) {
  .tuiles-mobile .tuile strong { font-size: 1.3rem; }
  .tuiles-mobile .tuile span { font-size: .78rem; }
}

/* ---- Livraison 7 : devis, facturation récurrente, relances, heures (CDF Studio) ---- */
.carte > label.case { display: flex; margin: .5rem 0; }
.periode { font-size: 1.05rem; padding: 0 .4rem; }
.menu-actions form.formulaire { margin-top: .5rem; }

/* Livraison 8 – TVA, impôts, étalements (CDF Studio) */
.grilles-tva td:first-child { width: 4rem; }
.grilles-tva .ligne-total td { border-top: 2px solid var(--encre-douce); font-weight: 700; }
.grilles-tva .detail-grille td { padding-top: 0; border-top: 0; }
.grilles-tva .detail-grille summary { color: var(--encre-douce); font-size: .9em; cursor: pointer; }

/* Livraison 9 – pilotage (CDF Studio) */
.figure-graphique { margin: .5rem 0 1rem; }
.graphique { width: 100%; height: auto; display: block; }
.graphique .grille { stroke: #e7e6e2; stroke-width: 1; }
.graphique .axe-zero { stroke: #8a8984; stroke-width: 1; }
.graphique .axe { fill: #6b6a66; font-size: 12px; }
.graphique rect.serie-1, .repartition-barre .serie-1 { fill: #2a78d6; }
.graphique rect.serie-2 { fill: #eb6834; }
.graphique rect:hover { opacity: .8; }
.legende { margin: 0; font-size: .9em; color: var(--encre-douce); display: flex; gap: 1rem; align-items: center; }
.pastille-serie { display: inline-block; width: .8em; height: .8em; border-radius: 2px; margin-right: .3rem; vertical-align: -.05em; }
.pastille-serie.serie-1 { background: #2a78d6; }
.pastille-serie.serie-2 { background: #eb6834; }
.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.repartition { list-style: none; padding: 0; margin: 0; }
.repartition li { display: grid; grid-template-columns: minmax(0, 1fr) 80px auto; gap: .6rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid #efeeea; }
.repartition-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repartition-barre { width: 80px; height: 8px; }
.repartition-barre .fond { fill: #efeeea; }
.apercu-email { border: 1px solid #e7e6e2; border-radius: 8px; padding: .5rem 1rem; margin: .8rem 0; background: #fff; }
.apercu-email h3 { font-size: 1rem; margin: .8rem 0 .3rem; }
.ligne-tresorerie-retard td { color: #a33; }

/* Mes finances (livraison 11) – CDF Studio */
.repartition.budgets li { grid-template-columns: minmax(0, 1fr) 160px auto; }
.repartition.budgets .repartition-barre { width: 160px; }
.repartition-barre .budget-proche { fill: #c98a0b; }
.repartition-barre .budget-depasse { fill: #c0392b; }
.classer-perso { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; }
.classer-perso select { max-width: 14rem; }
@media (max-width: 640px) {
  .repartition.budgets li { grid-template-columns: minmax(0, 1fr) auto; }
  .repartition.budgets .repartition-nom { grid-column: 1 / -1; white-space: normal; }
  .repartition.budgets .repartition-barre { grid-column: 1 / -1; width: 100%; order: 3; }
}

/* Ventes en ligne et connecteur Claude (livraison 12) – CDF Studio */
.encadre-important { border-left: 4px solid #c98a0b; }
.encadre-important code.cle { word-break: break-all; }
.reglage-site { margin: .4rem 0; }

/* CDF Studio – livraison 13 : documents publics, aperçu, signature */
.document-public h1, .apercu-document h1 { font-size: 1.5rem; }
.document-public table, .apercu-document table { width: 100%; border-collapse: collapse; }
.document-public td, .document-public th, .apercu-document td, .apercu-document th { border-bottom: 1px solid #e2e2e6; padding: .35rem .5rem; text-align: left; vertical-align: top; }
.document-public .formule, .apercu-document .formule { font-family: Georgia, serif; font-style: italic; padding: .5rem 1rem; background: #f4f4f6; border-radius: 6px; }
.document-public pre.bloc, .apercu-document pre.bloc { white-space: pre-wrap; background: #f4f4f6; padding: .75rem; border-radius: 6px; }
.apercu-document { max-height: 70vh; overflow: auto; border: 1px solid #e2e2e6; border-radius: 8px; padding: 1rem; }
textarea.texte-long { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; width: 100%; }
.zone-signature { display: grid; gap: .3rem; margin: .5rem 0; }
.zone-signature canvas { width: 100%; max-width: 500px; height: auto; border: 1px dashed #9a9aa2; border-radius: 8px; background: #fff; touch-action: none; }
@media print { .entete-application, nav, .actions, form, .message { display: none !important; } .document-public { font-size: 11pt; } }

/* Charte CDF Studio : filet or sous la marque, bouton principal pétrole, survol noir */
.menu-tete { border-bottom: 1px solid rgba(212, 175, 55, .35); margin-bottom: .4rem; }
.menu-tete strong { font-family: "Playfair Display", Georgia, serif; letter-spacing: .01em; }
.menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--or); }
.barre { border-bottom: 2px solid var(--or); }
.logo-connexion strong { font-family: "Playfair Display", Georgia, serif; }

/* Promotions (0.14.0) : remise par ligne, bloc « Promotion et remise » */
.lignes-facture [data-remise] { min-width: 76px; }
.lignes-facture [data-total-ligne] small { color: var(--petrole, #2b6a6c); white-space: nowrap; }
.bloc-promo { border: 1px dashed var(--bord); border-radius: 10px; padding: .6rem .9rem; margin: .4rem 0 1rem; background: var(--carte); }
.bloc-promo summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.bloc-promo[open] summary { margin-bottom: .6rem; }

/* 0.15.0 : icône d'aide ⓘ (survol, focus clavier ou appui sur téléphone) */
.aide { display: inline-flex; align-items: center; justify-content: center; width: 1.2rem; height: 1.2rem; margin-left: .25rem; border-radius: 50%; font-size: .85rem; line-height: 1; color: var(--encre-douce); cursor: help; }
.aide:hover, .aide:focus { color: var(--encre, #111); outline: 2px solid currentColor; outline-offset: 1px; }

/* 0.17.5 – CGV et contrats : comparaison avec le nouveau modèle CDF Studio */
.comparaison { display: grid; gap: .45rem; margin-top: .6rem; font-size: .93rem; line-height: 1.5; }
.comparaison > div { position: relative; padding: .5rem .75rem .5rem 1.9rem; border-radius: 8px; border: 1px solid var(--bord); }
.comparaison > div > span { position: absolute; left: .65rem; top: .45rem; font-weight: 700; }
.comparaison-ajout { background: var(--ok-clair); border-color: #b8e2cc !important; }
.comparaison-ajout > span { color: var(--ok); }
.comparaison-retrait { background: var(--erreur-clair); border-color: #f3c3bd !important; text-decoration: line-through; text-decoration-color: rgba(180, 35, 24, .45); }
.comparaison-retrait > span { color: var(--erreur); text-decoration: none; }
.comparaison-meme { color: var(--texte-discret, #6b6b73); }
.comparaison-replie { margin: 0; padding-left: 1.9rem; font-style: italic; }
