* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--label);
  font-family: var(--font); font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-400); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.marque { font-size: var(--fs-16); font-weight: var(--fw-600); color: var(--label); line-height: var(--h-44); }
.marque:hover { text-decoration: none; }

.picto { width: var(--icone-20); height: var(--icone-20); fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; overflow: visible; }
/* v12.3.3 : sprite unique (templates/_pictos.html), hors flux. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.picto .plein { fill: currentColor; stroke: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-8);
  font-family: inherit; font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600);
  min-height: var(--h-44); padding: 0 var(--sp-24); border-radius: var(--r-sm);
  border: var(--trait) solid var(--line); background: var(--surface); color: var(--label);
  cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--layer); text-decoration: none; }
.btn-plein, a.btn-plein { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-plein:hover { background: var(--ink-survol); border-color: var(--ink-survol); }
.btn .picto { width: var(--icone-16); height: var(--icone-16); }
.lien { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }

[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + var(--sp-4));
  background: var(--surface); color: var(--label); border: var(--trait) solid var(--line); border-radius: var(--r-sm);
  font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); font-weight: var(--fw-400);
  padding: var(--sp-4) var(--sp-8); white-space: normal; width: max-content; max-width: var(--largeur-bulle);
  box-shadow: var(--ombre-2); z-index: var(--z-tip); }

.accueil { max-width: var(--largeur-contenu); margin: 0 auto; padding: var(--sp-48) var(--sp-24) var(--sp-64); }
.accueil h1 { font-size: var(--fs-32); line-height: var(--lh-32); font-weight: var(--fw-600);
  margin: 0; text-align: center; color: var(--label); }
.accueil .sous-marque { margin: var(--sp-8) 0 var(--sp-24); text-align: center;
  font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); font-weight: var(--fw-400);
  color: var(--label-2); }
.sur { display: flex; justify-content: center; gap: var(--sp-24); margin: 0 0 var(--sp-48);
  font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); }
.sur span { display: inline-flex; align-items: center; gap: var(--sp-4); }
.sur .picto { width: var(--icone-20); height: var(--icone-20); }

.dalles { list-style: none; margin: 0 auto var(--sp-48); padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-16); max-width: var(--largeur-contenu); }
.dalle { display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; gap: var(--sp-12); padding: var(--sp-24) var(--sp-16);
  background: var(--dalle); border: var(--trait) solid var(--filet); border-radius: var(--r-sm);
  color: var(--label); min-height: calc(var(--sp-48) * 3); }
.dalle:hover { background: var(--dalle-survol); text-decoration: none; }
.dalle .picto { width: var(--picto-dalle); height: var(--picto-dalle); stroke-width: 1.15; color: var(--label); }
.dalle-nom { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); color: var(--label); }

.page .dalles { margin-bottom: var(--sp-32); }

.frise { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, 1fr); position: relative; gap: 0; }
.frise::before { content: ""; position: absolute; left: 6.25%; right: 6.25%;
  top: var(--sp-16); border-top: var(--trait) solid var(--line); }
.etape { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-8); position: relative; }
.etape-signe { width: var(--icone-32); height: var(--icone-32); display: grid; place-items: center;
  background: var(--bg); border: var(--trait) solid var(--line); border-radius: var(--r-sm);
  color: var(--label); position: relative; z-index: 1; }
.etape-signe .picto { width: var(--icone-16); height: var(--icone-16); }
.etape-nom { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label); }
.etape-etat .picto { width: var(--icone-16); height: var(--icone-16); color: var(--label-2); }
.etape-fait .etape-signe, .etape-encours .etape-signe { border-color: var(--label); }
.etape-encours .etape-signe { background: var(--layer); }
.etape-hors .etape-signe, .etape-hors .etape-nom { color: var(--label-3); }
.frise-petite { grid-template-columns: repeat(8, var(--icone-24)); width: max-content; display: inline-grid; }
.frise-petite .etape-signe { width: var(--icone-20); height: var(--icone-20); }
.frise-petite .etape-signe .picto { width: var(--icone-12); height: var(--icone-12); }
.frise-petite::before { top: var(--sp-8); }
.frise-petite .etape-nom, .frise-petite .etape-etat { display: none; }

.saisie { max-width: var(--largeur-lecture); margin: var(--sp-32) auto 0; }
.saisie textarea { width: 100%; min-height: calc(var(--sp-48) * 2); resize: vertical; font: inherit;
  padding: var(--sp-16); border: var(--trait) solid var(--line-champ); border-radius: var(--r-sm);
  background: var(--surface); color: var(--label); }
.saisie textarea:focus { outline: var(--trait-2) solid var(--anneau); outline-offset: 0; border-color: var(--accent); }
.saisie textarea::placeholder { color: var(--label-4); opacity: 1; }
.actions { display: flex; gap: var(--sp-8); margin-top: var(--sp-8); flex-wrap: wrap; align-items: center; }
.actions .a-droite { margin-left: auto; }
.vignettes { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-top: var(--sp-16); }
.vignette { display: inline-flex; align-items: center; gap: var(--sp-4);
  font-family: inherit; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); font-weight: var(--fw-400);
  padding: var(--sp-4) var(--sp-8); border: var(--trait) solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--label); cursor: pointer; }
.vignette .picto { width: var(--icone-16); height: var(--icone-16); }
.provisoire { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); cursor: help; }

.espace { display: grid; grid-template-columns: minmax(0, var(--largeur-lecture)) minmax(0, 1fr);
  gap: var(--sp-32); max-width: var(--largeur-contenu); margin: 0 auto; padding: var(--sp-32) var(--sp-24); }
.espace > * { min-width: 0; }
.fil { display: flex; flex-direction: column; gap: var(--sp-24); }
.msg { max-width: 100%; }
.msg .qui { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); margin-bottom: var(--sp-4); }
.msg.client { align-self: flex-end; max-width: 85%; background: var(--layer);
  padding: var(--sp-8) var(--sp-16); border-radius: var(--r-sm); }
.msg.client .qui { text-align: right; }
.piece-jointe { display: flex; align-items: center; gap: var(--sp-8); margin-top: var(--sp-4);
  font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label); }
.piece-jointe .picto { width: var(--icone-16); height: var(--icone-16); }
.constat { list-style: none; padding: 0; margin: var(--sp-8) 0 0; display: flex; gap: var(--sp-16); flex-wrap: wrap; }
.constat li { display: inline-flex; gap: var(--sp-4); align-items: center; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.constat .picto { width: var(--icone-16); height: var(--icone-16); color: var(--label-2); }
.msg.etat { display: flex; align-items: center; gap: var(--sp-8); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.msg.etat .picto { width: var(--icone-16); height: var(--icone-16); }

.cartouche { background: var(--dalle); border: var(--trait) solid var(--filet); border-radius: var(--r-sm); padding: var(--sp-24); }
.cartouche h2 { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); color: var(--label); margin: 0 0 var(--sp-8); }
.champ { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-16); }
.champ label { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.champ input { font: inherit; padding: 0 var(--sp-16); height: var(--h-44); border: var(--trait) solid var(--line-champ);
  border-radius: var(--r-sm); background: var(--surface); color: var(--label); }
.champ input:focus { outline: var(--trait-2) solid var(--anneau); border-color: var(--accent); }
.onglets { display: flex; gap: var(--sp-24); margin-bottom: var(--sp-16); border-bottom: var(--trait) solid var(--line); }
.onglets a { padding-bottom: var(--sp-8); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.onglets a[aria-current] { color: var(--label); border-bottom: var(--trait-2) solid var(--label); font-weight: var(--fw-600); }
.niveaux { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
.niveau { border: var(--trait) solid var(--filet); border-radius: var(--r-sm); padding: var(--sp-16); background: var(--dalle);
  display: flex; flex-direction: column; gap: var(--sp-8); align-items: flex-start; }
.niveau strong { color: var(--label); font-weight: var(--fw-600); }
.niveau.choisi { border-color: var(--label); background: var(--layer); }

.pipeline { margin: 0 0 var(--sp-16); padding: 0; display: flex; flex-direction: column; gap: var(--sp-12); }
.pipeline-groupe h3 { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); font-weight: var(--fw-600);
  color: var(--label-2); margin: 0 0 var(--sp-8); }
.pipeline-groupe ol { list-style: none; margin: 0; padding: 0; }
.pipeline-groupe li { padding: var(--sp-4) 0; border-bottom: var(--trait) solid var(--line); }
.pipeline-groupe li:last-child { border-bottom: 0; }
.pipeline-ligne { display: flex; align-items: center; gap: var(--sp-8);
  font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label); }
.pipeline-ligne .etape-signe { width: var(--icone-24); height: var(--icone-24); }
.pipeline-ligne .etape-signe .picto { width: var(--icone-16); height: var(--icone-16); }
.pipeline-source { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2);
  margin: var(--sp-4) 0 0 var(--sp-32); }

.devis { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-16); }
.devis th, .devis td { text-align: left; padding: var(--sp-4) 0; border-bottom: var(--trait) solid var(--line);
  font-size: var(--fs-16); line-height: var(--lh-16); vertical-align: baseline; }
.devis th { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); font-weight: var(--fw-400); }
.devis td:last-child, .devis th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.devis tfoot td { border-bottom: 0; padding-top: var(--sp-12); font-weight: var(--fw-600); }
.devis .exemple { font-weight: var(--fw-400); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12);
  color: var(--label-2); margin-left: var(--sp-8); }

.rubriques { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-8) var(--sp-16); margin: 0 0 var(--sp-16); }
.rubriques dt { color: var(--label); font-weight: var(--fw-600); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.rubriques dd { margin: 0; font-size: var(--fs-16); line-height: var(--lh-16); }

.panneau { border-left: var(--trait) solid var(--line); padding-left: var(--sp-32); }
.panneau h2 { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-600); color: var(--label); margin: 0 0 var(--sp-4); }
.panneau .sous { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); display: flex; gap: var(--sp-8); align-items: center; }
.fichiers { list-style: none; padding: 0; margin: var(--sp-24) 0 0; border-top: var(--trait) solid var(--line); }
.fichiers li { display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-12) 0; border-bottom: var(--trait) solid var(--line);
  font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.fichiers .picto { width: var(--icone-16); height: var(--icone-16); }
.fichiers .meta { margin-left: auto; color: var(--label-2); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); }
.statut { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label); font-weight: var(--fw-600); margin: var(--sp-12) 0 var(--sp-16); }

.reserves { margin: var(--sp-16) 0; }
.reserves h3 { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); margin: 0 0 var(--sp-8); }
.reserves ul { margin: 0; padding-left: var(--sp-24); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.feuillet { background: var(--surface); border: var(--trait) solid var(--line); border-radius: var(--r-sm);
  padding: var(--sp-32); margin-top: var(--sp-16); }
.feuillet h3 { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-600); text-align: center; margin: 0 0 var(--sp-16); }
.feuillet h4 { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); margin: var(--sp-16) 0 var(--sp-8); }
.feuillet p { margin: 0 0 var(--sp-12); }

.page { max-width: var(--largeur-contenu); margin: 0 auto; padding: var(--sp-48) var(--sp-24) var(--sp-64); }
.page h1 { font-size: var(--fs-32); line-height: var(--lh-32); font-weight: var(--fw-600);
  color: var(--label); margin: 0 0 var(--sp-32); }
.page h2 { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-600);
  color: var(--label); margin: var(--sp-48) 0 var(--sp-16); }
.titre-page { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-16); }
.titre-page h1 { margin: 0; }
.titre-page { margin-bottom: var(--sp-32); }

.lignes { list-style: none; margin: 0; padding: 0; border-top: var(--trait) solid var(--line); }
.lignes > li { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr auto; align-items: start; gap: var(--sp-24);
  padding: var(--sp-24) 0; border-bottom: var(--trait) solid var(--line); }
.lignes .titre { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); color: var(--label); }
.lignes .titre small { display: block; font-weight: var(--fw-400); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.ligne-etat { display: flex; flex-direction: column; gap: var(--sp-8); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label); }
.ligne-etat .meta { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); }
.ligne-actions { display: flex; gap: var(--sp-8); align-items: center; }

.table-doc { width: 100%; border-collapse: collapse; }
.table-doc th, .table-doc td { text-align: left; padding: var(--sp-8) var(--sp-16) var(--sp-8) 0; border-bottom: var(--trait) solid var(--line); vertical-align: top; }
.table-doc th { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); font-weight: var(--fw-400); }
.table-doc .type { display: flex; gap: var(--sp-8); align-items: center; font-weight: var(--fw-600); }
.table-doc .code { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); }
.table-doc .type + .code { display: block; margin-left: var(--sp-24); }
.especes { columns: 2; padding-left: var(--sp-24); margin: 0; font-size: var(--fs-16); line-height: var(--lh-16); }

.depot { display: flex; flex-direction: column; align-items: center; gap: var(--sp-16); padding: var(--sp-32);
  border: var(--trait) dashed var(--line); border-radius: var(--r-sm); background: var(--surface); }
.picto.grand { width: var(--icone-32); height: var(--icone-32); color: var(--label); }
.formats { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.fil .saisie { margin: var(--sp-16) 0 0; max-width: none; width: 100%; }
.fil .saisie textarea { min-height: var(--sp-48); }
.chaine { list-style: none; margin: 0 0 var(--sp-32); padding: 0; position: relative; display: flex; flex-direction: column; gap: 0; }
.chaine::before { content: ""; position: absolute; left: var(--sp-16); top: var(--sp-16); bottom: var(--sp-16); border-left: var(--trait) solid var(--line); }
.chaine li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-16); align-items: center;
  padding: var(--sp-12) 0; border-bottom: var(--trait) solid var(--line); }
.chaine .etape-signe { width: var(--icone-32); height: var(--icone-32); border: var(--trait) solid var(--label); }
.chaine-nom { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); color: var(--label); }

.partage { max-width: var(--largeur-lecture); margin: 0 auto; padding: var(--sp-48) var(--sp-24) var(--sp-64); }

.pipeline-tete { display: flex; align-items: center; gap: var(--sp-8); margin: 0 0 var(--sp-16); }
.pipeline-tete h2 { margin: 0; }
.verrou { display: inline-flex; color: var(--label-2); cursor: default; }
.verrou .picto { width: var(--icone-16); height: var(--icone-16); }
.historique { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-16); }
.historique th, .historique td { text-align: left; padding: var(--sp-8) var(--sp-12) var(--sp-8) 0; border-bottom: var(--trait) solid var(--line);
  font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); vertical-align: baseline; }
.historique th { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); font-weight: var(--fw-400); }
.historique td:first-child { font-weight: var(--fw-600); }
.panneau .pipeline-tete { margin-top: var(--sp-24); }
.panneau-actions { margin-top: var(--sp-24); }
.ligne-etat .historique { margin-top: var(--sp-8); }

.etape-suspendue .etape-signe { background: var(--layer); border-color: var(--label); }
.etape-suspendue .etape-etat .picto { color: var(--label); }

.carte-arbitrage { background: var(--dalle); border: var(--trait) solid var(--filet); border-radius: var(--r-sm); padding: var(--sp-24); }
.carte-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); margin: 0 0 var(--sp-16); }
.carte-tete h2 { margin: 0; }
.attente { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); font-weight: var(--fw-600); color: var(--label); }
.carte-arbitrage p { margin: 0 0 var(--sp-16); }
.choix { display: flex; flex-wrap: wrap; gap: var(--sp-8); }

.fenetre-partage { background: var(--surface); border: var(--trait) solid var(--line); border-radius: var(--r-sm); padding: var(--sp-24); margin-top: var(--sp-24); }
.fenetre-partage h2 { margin: 0 0 var(--sp-16); }
.droits { border: 0; margin: 0 0 var(--sp-16); padding: 0; display: flex; flex-direction: column; gap: var(--sp-8); }
.droits legend { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); padding: 0; margin: 0 0 var(--sp-8); }
.droits label { display: flex; align-items: center; gap: var(--sp-8); font-size: var(--fs-16); line-height: var(--lh-16); }
.droits input { width: var(--icone-16); height: var(--icone-16); margin: 0; accent-color: var(--ink); }

.commentaires { list-style: none; margin: var(--sp-16) 0; padding: 0; }
.commentaires li { border-bottom: var(--trait) solid var(--line); padding: var(--sp-12) 0; font-size: var(--fs-16); line-height: var(--lh-16); }
.commentaires .qui { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); margin-bottom: var(--sp-4); }
.navette .feuillet { margin-top: var(--sp-24); }


.picto.titre { width: var(--icone-32); height: var(--icone-32); }
.page.type h1 { display: flex; align-items: center; gap: var(--sp-12); }
.page.type .objet { font-size: var(--fs-16); line-height: var(--lh-16); color: var(--label-2);
  margin: calc(-1 * var(--sp-16)) 0 var(--sp-48); max-width: var(--largeur-lecture); }
.service { margin: 0 0 var(--sp-32); padding: 0 0 var(--sp-32); border-bottom: var(--trait) solid var(--line); max-width: var(--largeur-lecture); }
.service:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.service h2 { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-600);
  color: var(--label); margin: 0 0 var(--sp-8); }
.service .objectif { margin: 0 0 var(--sp-16); font-size: var(--fs-16); line-height: var(--lh-16); }
.service .capacites, .service .serie, .service .sous-taches { margin: 0 0 var(--sp-16); padding-left: var(--sp-24); }
.service .serie { color: var(--label-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.service .capacites li, .service .sous-taches li { margin: 0 0 var(--sp-4); }
.missions { margin-top: var(--sp-8); }
.missions > summary { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); font-weight: var(--fw-600);
  color: var(--label-2); cursor: pointer; }
.missions[open] > summary { margin-bottom: var(--sp-12); }
.service h3 { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600);
  color: var(--label); margin: var(--sp-16) 0 var(--sp-8); }
.service h3:first-of-type { margin-top: 0; }

.pipeline-compact { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.pipeline-compact li { display: inline-flex; align-items: center; gap: var(--sp-8);
  font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label); }
.pipeline-compact .etape-signe { width: var(--icone-24); height: var(--icone-24); display: grid; place-items: center;
  background: var(--bg); border: var(--trait) solid var(--line); border-radius: var(--r-sm); }
.pipeline-compact .etape-signe .picto { width: var(--icone-16); height: var(--icone-16); }
.ajout-catalogue { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.navette .pipeline-compact, .partage .pipeline-compact { margin: var(--sp-16) 0; }

/* v6.2 : repli Étapes du suivi, compact pour tenir trois projets. */
.suivi-etapes { margin: var(--sp-4) 0 0; }
.ligne-etat .historique { margin-bottom: var(--sp-8); }

/* v6.4 : barre latérale fixe (repliable ; tiroir sur mobile). */
body { padding-left: var(--barre); }
body.barre-repliee { padding-left: var(--barre-rail); }
.barre { position: fixed; top: 0; left: 0; bottom: 0; width: var(--barre); z-index: var(--z-barre);
  display: flex; flex-direction: column; padding: 0 var(--sp-8) var(--sp-8);
  background: var(--layer); border-right: var(--trait) solid var(--line);
  font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); overflow: hidden; }
.barre-tete { display: flex; align-items: center; justify-content: space-between; flex: none;
  height: var(--h-44); padding: 0 0 0 var(--sp-8); margin-bottom: var(--sp-8); }
.barre-tete .marque, .barre-mobile .marque { white-space: nowrap; }
.barre-bouton { width: var(--h-36); height: var(--h-36); display: grid; place-items: center; flex: none; padding: 0;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--label-2); cursor: pointer; }
.barre-bouton:hover { background: var(--fill-2); color: var(--label); }
.barre-bouton .picto { width: var(--icone-20); height: var(--icone-20); }
.barre-nav { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.barre-lien { position: relative; display: flex; align-items: center; gap: var(--sp-12); flex: none;
  height: var(--h-36); padding: 0 var(--sp-8); border-radius: var(--r-sm); color: var(--label); white-space: nowrap; }
.barre-lien:hover { background: var(--fill); text-decoration: none; }
.barre-lien[aria-current] { background: var(--fill-2); font-weight: var(--fw-600); }
.barre-lien .picto { width: var(--icone-20); height: var(--icone-20); color: var(--label-2); }
.barre-lien[aria-current] .picto { color: var(--label); }
.barre-libelle { overflow: hidden; text-overflow: ellipsis; }
.barre-nouvelle { font-weight: var(--fw-600); margin-bottom: var(--sp-12); }
.barre-nouvelle .picto { color: var(--label); }
.barre-projets { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.barre-projets .barre-lien { height: var(--h-36); padding-left: var(--sp-32); }
.barre-pied { flex: none; margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: var(--trait) solid var(--line); }
.barre-initiales { width: var(--icone-24); height: var(--icone-24); margin: 0 calc(var(--sp-2) * -1); display: grid; place-items: center; flex: none; border-radius: var(--r-full);
  background: var(--ink); color: var(--on-ink); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: 1; font-weight: var(--fw-600); }
.barre-mobile, .barre-voile { display: none; }

/* Barre repliée : rail de pictogrammes, nom en infobulle. */
.barre-repliee .barre { width: var(--barre-rail); overflow: visible; }
.barre-repliee .barre-tete { justify-content: center; padding: 0; }
.barre-repliee .barre-tete .marque, .barre-repliee .barre-libelle, .barre-repliee .barre-projets { display: none; }
.barre-repliee .barre-nav { overflow: visible; }
.barre-repliee .barre-lien { justify-content: center; padding: 0; }
.barre-repliee .barre [data-tip-rail]:hover::after { content: attr(data-tip-rail); position: absolute;
  left: calc(100% + var(--sp-8)); top: 50%; transform: translateY(-50%);
  background: var(--surface); color: var(--label); border: var(--trait) solid var(--line); border-radius: var(--r-sm);
  font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); font-weight: var(--fw-400); padding: var(--sp-4) var(--sp-8);
  white-space: nowrap; box-shadow: var(--ombre-2); z-index: var(--z-tip); }

/* Mobile : barre en tiroir, ouverte par le bouton de la barre du haut. */
@media (max-width: 767px) {
  body, body.barre-repliee { padding-left: 0; padding-top: var(--h-44); }
  .barre-mobile { display: flex; align-items: center; gap: var(--sp-8); position: fixed; top: 0; left: 0; right: 0;
    height: var(--h-44); padding: 0 var(--sp-16) 0 var(--sp-8); z-index: calc(var(--z-barre) - 2);
    background: var(--bg); border-bottom: var(--trait) solid var(--line); }
  .barre, .barre-repliee .barre { width: min(var(--largeur-colonne), 85vw); overflow: hidden; transform: translateX(-100%); }
  .barre-anime .barre { transition: transform 0.2s ease; }
  .barre-repliee .barre-tete { justify-content: space-between; padding: 0 0 0 var(--sp-8); }
  .barre-repliee .barre-tete .marque, .barre-repliee .barre-libelle { display: inline; }
  .barre-repliee .barre-projets { display: flex; }
  .barre-repliee .barre-lien { justify-content: flex-start; padding: 0 var(--sp-8); }
  .barre-repliee .barre-projets .barre-lien { padding-left: var(--sp-32); }
  .barre-repliee .barre [data-tip-rail]:hover::after { content: none; }
  .tiroir-ouvert .barre { transform: none; box-shadow: var(--ombre-2); }
  .tiroir-ouvert .barre-voile { display: block; position: fixed; inset: 0; z-index: calc(var(--z-barre) - 1);
    background: rgba(0,0,0,0.24); }
  .accueil, .page, .partage { padding: var(--sp-32) var(--sp-16) var(--sp-48); }
  .dalles { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
  .dalle { min-height: calc(var(--sp-64) * 2); }
  .sur { flex-wrap: wrap; gap: var(--sp-8) var(--sp-16); }
  .espace { grid-template-columns: minmax(0, 1fr); padding: var(--sp-24) var(--sp-16); }
  .panneau { border-left: 0; padding-left: 0; border-top: var(--trait) solid var(--line); padding-top: var(--sp-24); }
  .lignes > li { grid-template-columns: minmax(0, 1fr); gap: var(--sp-12); }
  .titre-page { flex-wrap: wrap; }
  .niveaux { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .barre-anime .barre { transition: none; } }
.partage .saisie { margin-left: 0; max-width: none; }

/* v6.5 : barre complète (sections, dossiers, pastilles). */
.barre-section { margin-top: var(--sp-16); }
.barre-titre { margin: 0 0 var(--sp-2); padding: 0 var(--sp-8); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-16); font-weight: var(--fw-600); color: var(--label-2); }
.barre-section > .barre-projets { margin: 0; }
.barre-section > .barre-projets .barre-lien { padding-left: var(--sp-8); }
.barre-dossier .barre-projets .barre-lien { padding-left: var(--sp-32); }
.barre-dossier > summary { list-style: none; cursor: pointer; }
.barre-dossier > summary::-webkit-details-marker { display: none; }
.barre-pied { display: flex; flex-direction: column; gap: var(--sp-2); }
.pastille { margin-left: auto; min-width: var(--icone-20); height: var(--icone-20); padding: 0 var(--sp-4); border-radius: var(--r-full); flex: none;
  background: var(--ink); color: var(--on-ink); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--icone-20); font-weight: var(--fw-600); text-align: center; }
.barre-repliee .barre-titre, .barre-repliee .barre-dossier { display: none; }
.barre-repliee .barre-section { margin-top: var(--sp-8); }
.barre-repliee .barre-section-projets { display: none; }
.barre-repliee .barre .pastille { position: absolute; top: var(--sp-4); right: var(--sp-12); min-width: 0; width: var(--icone-12); height: var(--icone-12); padding: 0; font-size: 0; }

/* v6.5 : exemples composés (visiteur, pages de type). */
.vitrine { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-24); margin: 0 0 var(--sp-48); }
.accueil h2, .page .vitrine-titre { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-600); margin: 0 0 var(--sp-16); }
.exemple { margin: 0; display: flex; flex-direction: column; gap: var(--sp-8); min-width: 0; }
/* v11 : plus de légende sous l’exemple (titre et « Exemple » en aria-label de la figure) ; feuille posée, soulevée au survol. */
.type .exemple .ex-feuille { box-shadow: var(--ombre-2); transition: transform var(--duree) ease, box-shadow var(--duree) ease; }
.type .exemple:hover .ex-feuille { transform: translateY(calc(var(--sp-4) * -1)); box-shadow: var(--ombre-survol); }
@media (hover: none), (prefers-reduced-motion: reduce) { .type .exemple:hover .ex-feuille { transform: none; } }
.ex-feuille { position: relative; aspect-ratio: 2 / 3; overflow: hidden; padding: 12% 12% 14%;
  background: var(--surface); border: var(--trait) solid var(--line); border-radius: var(--r-sm); color: #1d1d1f;
  font-family: ui-serif, "New York", Georgia, "Times New Roman", serif; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--sp-16); }
.ex-feuille p { margin: 0; }
.ex-texte p { text-align: justify; hyphens: auto; text-indent: 1.2em; }
.ex-texte .ex-courant, .ex-texte .ex-chiffre, .ex-texte .ex-folio, .ex-texte .ex-epigraphe, .ex-texte .ex-titre-index { text-align: center; text-indent: 0; }
.ex-courant { font-size: 0.667em; line-height: 0.833em; letter-spacing: 0.14em; color: rgba(0,0,0,0.56); margin-bottom: 1.333em !important; }
.ex-chiffre { margin-bottom: 0.833em !important; }
.ex-texte .ex-lettrine { text-indent: 0; }
.ex-lettrine::first-letter { float: left; font-size: 3.083em; line-height: 2.5em; padding: 0.083em 0.25em 0 0; }
.ex-folio { position: absolute; left: 0; right: 0; bottom: 6%; font-size: 0.75em; }
.ex-double { display: grid; grid-template-rows: 1fr 1fr; gap: 1em; padding-bottom: 10%; }
.ex-texte .ex-etiquette { font-family: var(--font); font-size: 0.75em; line-height: 1em; text-indent: 0; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(0,0,0,0.56); margin-bottom: 0.333em; }
/* v12.1 (audit D10) : le rouge et le vert restent, doublés d'un signe indépendant de la couleur, comme les marques de révision : supprimé barré, ajouté souligné. */
.ex-faute { text-decoration: line-through; text-decoration-thickness: 0.08em; background: rgba(255,59,48,0.12); }
.ex-juste { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; background: rgba(52,199,89,0.16); }
.ex-epigraphe { margin-bottom: 0.833em !important; }
.ex-feuille sup { font-size: 0.7em; line-height: 0; }
.ex-notes { position: absolute; left: 12%; right: 12%; bottom: 12%; padding-top: 0.5em; font-size: 0.75em; line-height: 1em; }
.ex-notes::before { content: ""; position: absolute; top: 0; left: 0; width: 30%; border-top: 0.083em solid #1d1d1f; }
.ex-texte .ex-notes p { text-indent: 0; text-align: left; }
.ex-titre-index { font-size: 0.75em; letter-spacing: 0.14em; margin: 0.5em 0 1.167em !important; }
.ex-index ul, .ex-sommaire ol { list-style: none; margin: 0; padding: 0; }
.ex-index li { padding-left: 1em; text-indent: -1em; margin: 0 0 0.333em; }
.ex-sommaire li { display: flex; justify-content: space-between; gap: 0.667em; margin: 0 0 0.5em; }
.ex-image { aspect-ratio: 12 / 7; margin: 0 0 0.667em; background: var(--layer); }
.ex-image svg { display: block; width: 100%; height: 100%; fill: rgba(120,120,128,0.24); }
/* v11 : vraie gravure à la place du pictogramme gris (perçu comme une image manquante) ; Horthemels, vers 1710, domaine public (Wikimedia Commons). */
.ex-image-port-royal { background: var(--layer) url("exemples/port-royal-horthemels.webp") center / cover no-repeat; filter: grayscale(1) contrast(1.05); }
.ex-texte .ex-legende { font-size: 0.792em; line-height: 1.083em; text-indent: 0; text-align: left; margin-bottom: 1em; }
.ex-couverture { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; text-align: center; }
.ex-couverture hr { width: 30%; margin: 0; border: 0; border-top: 0.083em solid #1d1d1f; }
.ex-auteur { font-size: 0.833em; letter-spacing: 0.16em; }
.ex-grand-titre { font-size: 2.667em; line-height: 3em; }
.ex-collection { font-size: 0.917em; font-style: italic; }
.ex-page-titre { justify-content: flex-start; padding-top: 32%; }
.ex-adresse { margin-top: auto !important; font-size: 0.75em; letter-spacing: 0.1em; }
.appel { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-8); margin: 0 0 var(--sp-48); }
.page .appel { justify-content: flex-start; margin: var(--sp-48) 0 0; }
.type-corps { display: grid; grid-template-columns: minmax(0, var(--largeur-lecture)) minmax(0, var(--largeur-colonne)); gap: var(--sp-48); align-items: start; }
.type-corps .service { max-width: none; }

/* v6.5 : pages de l’espace client et formulaires sobres. */
.formulaire { max-width: var(--largeur-formulaire); margin: 0 auto; padding: var(--sp-64) var(--sp-24); }
.formulaire h1 { font-size: var(--fs-32); line-height: var(--lh-32); font-weight: var(--fw-600); margin: 0 0 var(--sp-24); text-align: center; }
.formulaire .btn-plein { width: 100%; }
.formulaire .bascule { margin: var(--sp-16) 0 0; text-align: center; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.formulaire .niveaux { grid-template-columns: 1fr; }
.liste { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-16); }
.liste th, .liste td { text-align: left; padding: var(--sp-12) var(--sp-16) var(--sp-12) 0; border-bottom: var(--trait) solid var(--line);
  font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); vertical-align: middle; }
.liste th { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); font-weight: var(--fw-400); padding-top: 0; }
.liste td:first-child { font-weight: var(--fw-600); }
.liste .montant { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.liste .exemple-mention { font-size: var(--fs-12); letter-spacing: var(--ls-12); color: var(--label-2); font-weight: var(--fw-400); margin-left: var(--sp-4); }
.liste td.actions-cellule { text-align: right; white-space: nowrap; padding-right: 0; }
.liste .btn { min-height: var(--h-36); padding: 0 var(--sp-12); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.liste .attente-cellule { font-weight: var(--fw-600); }
.rubrique { border-top: var(--trait) solid var(--line); padding: var(--sp-24) 0; display: grid; grid-template-columns: 14rem 1fr auto; gap: var(--sp-24); align-items: start; }
.rubrique h2 { margin: 0 !important; font-size: var(--fs-16) !important; line-height: var(--lh-16) !important; }
.rubrique dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-8) var(--sp-16); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.rubrique dt { color: var(--label-2); }
.rubrique dd { margin: 0; }
.rubrique .btn { min-height: var(--h-36); padding: 0 var(--sp-12); font-size: var(--fs-14); letter-spacing: var(--ls-14); }

@media (max-width: 1023px) { .vitrine { grid-template-columns: repeat(2, minmax(0, 1fr)); } .type-corps { grid-template-columns: minmax(0, 1fr); } .type-corps aside { max-width: var(--largeur-colonne); } }
@media (max-width: 767px) {
  .barre-repliee .barre-titre { display: block; }
  .barre-repliee .barre-dossier { display: block; }
  .barre-repliee .barre-section { margin-top: var(--sp-16); }
  .barre-repliee .barre-section-projets { display: block; }
  .barre-repliee .barre .pastille { position: static; min-width: var(--icone-20); width: auto; height: var(--icone-20); padding: 0 var(--sp-4); font-size: var(--fs-12); letter-spacing: var(--ls-12); }
  .vitrine { gap: var(--sp-16); }
  .liste thead { display: none; }
  .liste tr { display: grid; grid-template-columns: 1fr auto; padding: var(--sp-8) 0; border-bottom: var(--trait) solid var(--line); }
  .liste td { border: 0; padding: var(--sp-4) var(--sp-8) var(--sp-4) 0; }
  .rubrique { grid-template-columns: 1fr; gap: var(--sp-12); }
}

/* v6.5 (complément 18 h 32) : sections titrées en petites capitales, cloche discrète, tableau de bord. */
.barre-titre { text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-12); color: var(--label-3); }
.barre-outils { display: flex; align-items: center; gap: var(--sp-2); }
.cloche { position: relative; }
.cloche .point { position: absolute; top: var(--sp-8); right: var(--sp-8); width: var(--icone-12); height: var(--icone-12); border-radius: var(--r-full); background: var(--ink); }
.barre-repliee .barre-tete { flex-direction: column; height: auto; gap: var(--sp-2); padding: var(--sp-8) 0 0; }
.barre-repliee .barre-outils { flex-direction: column-reverse; }
.tableau { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-16); margin: var(--sp-48) 0 var(--sp-48); }
.carte { background: var(--dalle); border: var(--trait) solid var(--filet); border-radius: var(--r-sm); padding: var(--sp-24); min-width: 0; }
.carte-entete { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-16); margin: 0 0 var(--sp-12); }
.carte-entete h2 { margin: 0 !important; font-size: var(--fs-16) !important; line-height: var(--lh-16) !important; font-weight: var(--fw-600); text-align: left; }
.carte-entete a { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.carte ul { list-style: none; margin: 0; padding: 0; }
.carte li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4) var(--sp-16); align-items: center;
  padding: var(--sp-12) 0; border-top: var(--trait) solid var(--line); }
.carte li strong { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); }
.carte .detail { grid-column: 1; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); }
.carte .etat-ligne { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label); }
.carte .cote { grid-column: 2; grid-row: 1 / span 3; display: flex; align-items: center; gap: var(--sp-12); }
.carte .montant { font-size: var(--fs-14); letter-spacing: var(--ls-14); font-variant-numeric: tabular-nums; white-space: nowrap; }
.carte .btn { min-height: var(--h-36); padding: 0 var(--sp-12); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.accueil-client .saisie { margin-top: var(--sp-24); }
@media (max-width: 1023px) { .tableau { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .barre-repliee .barre-tete { flex-direction: row; height: var(--h-44); padding: 0 0 0 var(--sp-8); } .barre-repliee .barre-outils { flex-direction: row; } }
.carte .vide { margin: 0; padding: var(--sp-12) 0 0; border-top: var(--trait) solid var(--line); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.carte .exemple-mention, .exemple-mention { font-size: var(--fs-12); letter-spacing: var(--ls-12); color: var(--label-2); margin-left: var(--sp-4); }
.accueil-client .tableau { text-align: left; }
.accueil-client > h2 { margin-top: 0; }
.etat-vide { border: var(--trait) solid var(--filet); border-radius: var(--r-sm); padding: var(--sp-48) var(--sp-24); text-align: center; background: var(--dalle); }
.etat-vide p { margin: 0 0 var(--sp-16); color: var(--label-2); font-size: var(--fs-16); line-height: var(--lh-16); }
.page .chapo { margin: calc(-1 * var(--sp-16)) 0 var(--sp-32); color: var(--label-2); font-size: var(--fs-16); line-height: var(--lh-16); max-width: var(--largeur-lecture); }
.page h2.groupe { font-size: var(--fs-16); line-height: var(--lh-16); margin: var(--sp-32) 0 var(--sp-8); }
.liste td:last-child.actions-cellule .btn + .btn { margin-left: var(--sp-8); }
.fichier-nom { display: inline-flex; align-items: center; gap: var(--sp-8); }
.fichier-nom .picto { width: var(--icone-16); height: var(--icone-16); }
.rubrique-fin { border-top: var(--trait) solid var(--line); padding-top: var(--sp-24); margin-top: 0; }
.ex-double { grid-template-rows: auto auto; align-content: start; gap: 1.667em; }
.liste { table-layout: fixed; }
.liste th:first-child { width: 22%; }
.liste th.montant { width: 14%; }
.liste th.actions-cellule { width: 22%; }
.lignes .ligne-actions .btn { min-height: var(--h-36); padding: 0 var(--sp-12); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
@media (max-width: 767px) { .liste { table-layout: auto; } .liste th:first-child, .liste th.montant, .liste th.actions-cellule { width: auto; } }
@media (max-width: 767px) { .liste td.actions-cellule { grid-column: 1 / -1; text-align: left; } }

/* v6.5 (18 h 43) : préréglages, règles d’un projet, carte de choix du fil. */
.bloc { border-top: var(--trait) solid var(--line); padding: var(--sp-24) 0 var(--sp-16); }
.bloc-tete { display: flex; align-items: baseline; gap: var(--sp-12); margin: 0 0 var(--sp-12); }
.bloc-tete h2 { margin: 0; font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); }
.prime { font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); border: var(--trait) solid var(--line); border-radius: var(--r-sm); padding: var(--sp-2) var(--sp-8); }
.bloc-pied { margin: var(--sp-12) 0 0; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.bloc-pied a, .page td a:not(.btn) { color: var(--accent); text-decoration: none; }
.vide-groupe { margin: 0 0 var(--sp-16); color: var(--label-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.aide-groupe { margin: calc(-1 * var(--sp-4)) 0 var(--sp-12); color: var(--label-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.sous-ligne { display: block; font-weight: var(--fw-400); color: var(--label-2); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); }
.ajout-regle { display: grid; grid-template-columns: 1fr 14rem auto; gap: var(--sp-12); align-items: end; margin: var(--sp-8) 0 0; }
.ajout-regle .champ { margin: 0; }
.appliquer { display: flex; gap: var(--sp-12); align-items: center; margin: var(--sp-8) 0 0; }
.page select, .fiche select { font: inherit; height: var(--h-44); padding: 0 var(--sp-12); border: var(--trait) solid var(--line-champ); border-radius: var(--r-sm); background: var(--surface); color: var(--label); }
.ajout-regle select { width: 100%; }
.ordre { margin: var(--sp-24) 0 0; color: var(--label-2); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); }
.fiche { max-width: 36rem; }
.fiche fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-24); }
.fiche legend { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); margin-bottom: var(--sp-8); padding: 0; }
.option { display: flex; gap: var(--sp-12); align-items: flex-start; padding: var(--sp-12) var(--sp-16); border: var(--trait) solid var(--filet); border-radius: var(--r-sm); background: var(--dalle); margin-bottom: var(--sp-8); cursor: pointer; }
.option input { margin-top: var(--sp-4); }
.option strong { display: block; font-weight: var(--fw-600); }
.option small { color: var(--label-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.choix-service { width: 100%; }
.regles-saisie { list-style: none; margin: 0 0 var(--sp-12); padding: 0; }
.regles-saisie li { display: flex; gap: var(--sp-8); margin-bottom: var(--sp-8); }
.regles-saisie input { flex: 1; font: inherit; padding: 0 var(--sp-16); height: var(--h-44); border: var(--trait) solid var(--line-champ); border-radius: var(--r-sm); background: var(--surface); }
.btn-discret { border-color: transparent; background: transparent; color: var(--label-2); }
button.btn-discret:not(.btn) { font: inherit; } /* v12 (audit I2) : croix des puces, plus d’Arial du système */
.fiche-pied { margin: var(--sp-32) 0 0; padding-top: var(--sp-16); border-top: var(--trait) solid var(--line); color: var(--label-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.lien-discret { font: inherit; border: 0; background: none; color: var(--label-2); text-decoration: underline; cursor: pointer; padding: 0; margin-left: var(--sp-8); }
.carte-prereglages .choix-groupe { border: 0; padding: 0; margin: 0 0 var(--sp-12); }
.carte-prereglages legend { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--label-2); text-transform: uppercase; letter-spacing: .04em; padding: 0; margin-bottom: var(--sp-4); }
.case { display: flex; align-items: center; gap: var(--sp-8); padding: var(--sp-4) 0; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.case .meta { margin-left: var(--sp-4); }
.lien-regles { color: var(--accent); text-decoration: none; font-size: var(--fs-14); letter-spacing: var(--ls-14); }
@media (max-width: 767px) {
  .ajout-regle { grid-template-columns: 1fr; }
  .bloc-tete { flex-wrap: wrap; }
}
.titre-lien { color: inherit; text-decoration: none; }
.titre-lien:hover { color: var(--accent); }
.fiche .champ > .btn, .fiche .actions .btn { align-self: flex-start; }
.fiche .choix-service { margin-top: var(--sp-4); }

/* v6.6 : nom de marque (Joos jusqu’à v10, Arno depuis v11 ; une seule graisse, jamais de gras synthétique) ; texte en Inter, titres en Arno (v6.9). */
.marque, .marque-titre, .accueil h1.marque-titre, .barre-tete .marque { font-family: var(--font-marque); font-weight: 400; font-style: normal; font-synthesis: none; letter-spacing: 0; }
/* v11 (Athanase, 17/11, 8 h 22), v12 : marque en Arno Pro Subhead. « Alcuin » italique, A et l ornés (swsh), n final orné (salt) ;
   « IS » en romain, vraies petites capitales (c2sc / smcp) ; font-synthesis: none interdit toute fausse capitale réduite. Polices : _tokens.css (« Arno Marque »). */
.marque-nom { font-style: italic; font-kerning: normal; }
/* v12 : ornements lettre par lettre (Arno Pro : swsh orne A, l et i ; salt orne n et u). Seuls A et l (swsh) et le n final (salt) sont ornés. */
.marque-swsh { font-feature-settings: "swsh"; }
.marque-salt { font-feature-settings: "salt"; }
.marque-sigle { font-style: normal; font-variant-caps: all-small-caps; letter-spacing: 0.06em; }
.sous-marque { font-family: var(--font); }
.accueil h1.marque-titre { font-size: var(--fs-40); line-height: var(--lh-40); }
.barre-tete .marque, .barre-mobile .marque, .bandeau-invite .marque { font-size: var(--fs-24); } /* v12 (audit I7) : bandeau invité à 24 px comme la barre ; la marque ornée n’est jamais sous 24 px */

/* v6.6 : projets dépliables sur leurs conversations. */
.barre-projet { list-style: none; }
.barre-projet-ligne { display: flex; align-items: center; }
.barre-projet-ligne .barre-lien { flex: 1; min-width: 0; }
.barre-deplier { flex: none; width: var(--icone-32); height: var(--icone-32); display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--label-2); border-radius: var(--r-sm); cursor: pointer; padding: 0; }
.barre-deplier:hover { background: var(--fill); }
.barre-deplier .picto { width: var(--icone-16); height: var(--icone-16); transition: transform 0.15s ease; }
.barre-projet.ouvert > .barre-projet-ligne .barre-deplier .picto { transform: rotate(90deg); }
.barre-convs { display: none; list-style: none; margin: 0 0 var(--sp-2); padding: 0; }
.barre-projet.ouvert > .barre-convs { display: block; }
.barre-convs .barre-lien { height: var(--h-36); padding-left: var(--sp-24); font-size: var(--fs-14); letter-spacing: var(--ls-14); color: var(--label-2); }
.barre-dossier .barre-convs .barre-lien { padding-left: var(--sp-48); }
.barre-convs .barre-lien[aria-current="page"] { color: var(--label); }
.barre-repliee .barre-section-projets { display: none; }
@media (prefers-reduced-motion: reduce) { .barre-deplier .picto { transition: none; } }

/* v6.6 : recherche. Élément de barre (pictogramme seul dans le rail) et palette ; plein écran sur mobile. */
button.barre-lien { font: inherit; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; color: inherit; }
.barre-mobile-recherche { margin-left: auto; }
.palette, .palette-voile { display: none; }
.recherche-ouverte .palette-voile { display: block; position: fixed; inset: 0; background: var(--voile); z-index: calc(var(--z-barre) + 10); }
.recherche-ouverte .palette { display: flex; flex-direction: column; position: fixed; top: 12vh; left: 50%; transform: translateX(-50%);
  width: min(var(--largeur-lecture), calc(100vw - var(--sp-32))); max-height: 70vh; background: var(--surface); border: var(--trait) solid var(--filet); border-radius: var(--r-md);
  box-shadow: var(--ombre-2); z-index: calc(var(--z-barre) + 11); overflow: hidden; }
.palette-champ { display: flex; align-items: center; gap: var(--sp-12); padding: 0 var(--sp-16); border-bottom: var(--trait) solid var(--line); }
.palette-champ .picto { width: var(--icone-20); height: var(--icone-20); color: var(--label-2); flex: none; }
.palette-champ input { flex: 1; min-width: 0; height: var(--sp-48); border: 0; outline: none; background: none; font: inherit; font-size: var(--fs-16); color: var(--label); }
.palette-champ input::placeholder { color: var(--label-4); }
.palette-champ input::-webkit-search-cancel-button { display: none; }
.palette-fermer { flex: none; font: inherit; font-size: var(--fs-14); letter-spacing: var(--ls-14); border: 0; background: none; color: var(--label-2); cursor: pointer; padding: var(--sp-8); }
.palette-resultats { overflow-y: auto; padding: var(--sp-8); }
.palette-groupe { margin: var(--sp-12) var(--sp-8) var(--sp-4); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-600); color: var(--label-2); text-transform: uppercase; letter-spacing: .04em; }
.palette-ligne { display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-8); border-radius: var(--r-sm); color: var(--label); text-decoration: none; }
.palette-ligne:hover, .palette-ligne:focus { background: var(--dalle); text-decoration: none; outline: none; }
.palette-ligne .picto { width: var(--icone-20); height: var(--icone-20); flex: none; color: var(--label-2); }
.palette-titre { display: block; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.palette-ctx { display: block; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); }
.palette mark { background: none; color: inherit; font-weight: var(--fw-600); }
.palette-vide { padding: var(--sp-32) var(--sp-16); text-align: center; }
.palette-vide p { margin: 0 0 var(--sp-8); }
@media (max-width: 767px) {
  .recherche-ouverte .palette { top: 0; left: 0; transform: none; width: 100vw; height: 100vh; max-height: none; border-radius: 0; border: 0; }
}

/* v6.6 : en-tête du fil (projet et service) et rappel des décisions. */
.fil-tete { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-8); padding-bottom: var(--sp-12); margin-bottom: var(--sp-16); border-bottom: var(--trait) solid var(--line); }
.fil-tete a { color: var(--label-2); text-decoration: none; }
.fil-tete a:hover { color: var(--accent); }
.fil-tete .sep { color: var(--label-2); }
.fil-tete strong { font-weight: var(--fw-600); }
.fil-tete .meta { margin-left: auto; font-size: var(--fs-12); letter-spacing: var(--ls-12); color: var(--label-2); }
.rappel { border-left: var(--trait-2) solid var(--line); padding: var(--sp-4) 0 var(--sp-4) var(--sp-16); margin: 0 0 var(--sp-16); color: var(--label-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.rappel summary { cursor: pointer; color: var(--label-2); }
.rappel ul { margin: var(--sp-8) 0 var(--sp-4); padding-left: var(--sp-16); color: var(--label); }
.rappel a { color: var(--accent); text-decoration: none; }
.decide-ou { color: var(--label-2); }
.liste td > .picto { width: var(--icone-20); height: var(--icone-20); vertical-align: -0.2em; margin-right: var(--sp-8); color: var(--label-2); }
.barre .barre-convs .barre-lien { padding-left: var(--sp-24); }
.barre .barre-dossier .barre-convs .barre-lien { padding-left: var(--sp-48); }
.lien-regles .picto { margin-right: var(--sp-4); vertical-align: -0.2em; }
/* Gabarits d’intégration : le picto est inséré dans un <span data-picto>. */
.palette-champ { margin: 0; }
.palette-champ > [data-picto] { display: flex; flex: none; }
.liste td > [data-picto] > .picto { width: var(--icone-20); height: var(--icone-20); vertical-align: -0.2em; margin-right: var(--sp-8); color: var(--label-2); }

/* ===== v6.6 : toutes les pages en dalles =====
   Dalle = fond gris très clair (--dalle) sur fond quasi blanc (--bg), filet presque invisible, sans ombre,
   même rayon (--r-md, 3 px), mêmes marges intérieures (--pad-dalle), écart régulier (--gap-dalle). */
.dalle, .carte, .cartouche, .carte-arbitrage, .etat-vide, .bloc, .rubrique, .niveau, .type-corps .service, .panneau, .formulaire,
.option { border-radius: var(--r-md); }
.bloc, .rubrique, .type-corps .service, .panneau, .carte, .cartouche, .carte-arbitrage, .etat-vide, .formulaire {
  background: var(--dalle); border: var(--trait) solid var(--filet); box-shadow: none; padding: var(--sp-24); }
.bloc, .rubrique, .type-corps .service { margin: 0 0 var(--sp-16); }
.bloc > :first-child, .rubrique > :first-child, .type-corps .service > :first-child { margin-top: 0 !important; }
.bloc > :last-child, .rubrique > :last-child, .type-corps .service > :last-child { margin-bottom: 0 !important; }
.page .bloc h2.groupe, .bloc .bloc-tete { margin: 0 0 var(--sp-12); }
.bloc h2, .bloc .bloc-tete h2 { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); }
.page > h2.groupe { margin: var(--sp-8) 0 var(--sp-12); }
.bloc-tete .meta { color: var(--label-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
/* Filets internes un peu plus visibles que le contour, pour séparer les lignes. */
.bloc .liste th, .bloc .liste td, .bloc .table-doc th, .bloc .table-doc td, .bloc .lignes > li { border-bottom-color: var(--filet-interne); }
.bloc .liste, .bloc .table-doc { margin: 0; }
.bloc .liste tbody tr:last-child td, .bloc .table-doc tbody tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.bloc .lignes { border-top: 0; }
.bloc .lignes > li:first-child { padding-top: var(--sp-8); }
.bloc .lignes > li:last-child { border-bottom: 0; padding-bottom: 0; }
.bloc .bloc-pied { margin-top: var(--sp-16); }
/* Grille régulière. */
.grille-dalles { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--largeur-colonne), 1fr)); gap: var(--sp-16); margin: 0 0 var(--sp-16); align-items: stretch; }
.grille-dalles > .bloc, .grille-dalles > .rubrique { margin: 0; }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Compte : rubriques en dalles, en grille de deux. */
.rubrique { border-top: var(--trait) solid var(--filet); display: flex; flex-direction: column; gap: var(--sp-12); }
.rubrique > div:last-child:empty { display: none; }
.rubrique-fin { border-top: 0; padding-top: var(--sp-8); }
/* Formulaires (compte, préréglage) : champs et options sur blanc, dans la dalle. */
.formulaire { margin: var(--sp-48) auto; padding: var(--sp-24); }
.bloc .option, .formulaire .option { background: var(--surface); }
.fiche.bloc { max-width: 40rem; }
.fiche-pied { border-top-color: var(--filet-interne); }
/* Type : un service = une dalle. */
.type-corps .service { max-width: none; border-bottom: var(--trait) solid var(--filet); }
.type-corps .service:last-child { margin-bottom: 0; padding-bottom: var(--sp-24); border-bottom: var(--trait) solid var(--filet); }
.type-corps .service h2:not(.etape-titre) { font-size: var(--fs-16); line-height: var(--lh-16); }
/* Fil : panneau en dalle ; résultat d’un service et correction en dalles. */
.panneau { border-left: var(--trait) solid var(--filet); align-self: start; }
.panneau .fenetre-partage, .panneau .feuillet { background: var(--surface); border-color: var(--filet); border-radius: var(--r-md); }
.resultat .carte-tete h2:not(.etape-titre) { font-size: var(--fs-16); line-height: var(--lh-16); }
.resultat p { margin: var(--sp-12) 0 0; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.resultat .actions { margin-top: var(--sp-16); }
.resultat .piece-jointe { margin-top: 0; }
.carte-correction .reformulation { display: grid; grid-template-columns: 8rem 1fr; gap: var(--sp-8) var(--sp-16); margin: 0 0 var(--sp-16); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.carte-correction .reformulation dt { color: var(--label-2); }
.carte-correction .reformulation dd { margin: 0; font-weight: var(--fw-600); }
.carte-correction.confirmee .reformulation { margin: 0; }
.msg.etat.ajoute a { color: var(--accent); margin-left: var(--sp-4); }
.liens-projet { display: flex; flex-direction: column; gap: var(--sp-8); align-items: flex-start !important; }
.liens-projet a { display: inline-flex; gap: var(--sp-8); align-items: center; }
/* Page du projet : conversations en dalles, résumé des décisions. */
.conv-dalle { display: flex; flex-direction: column; gap: var(--sp-4); }
.conv-dalle h3 { display: flex; gap: var(--sp-8); align-items: center; margin: 0; font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); }
.conv-dalle h3 .picto { width: var(--icone-20); height: var(--icone-20); color: var(--label-2); }
.conv-dalle p { margin: 0; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.conv-dalle .meta { color: var(--label-2); }
.conv-dalle .btn { align-self: flex-start; margin-top: var(--sp-12); min-height: var(--h-36); padding: 0 var(--sp-12); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.grille-dalles .conv-dalle { min-height: 0; }
.page .grille-dalles:has(.conv-dalle) { grid-template-columns: repeat(auto-fill, minmax(var(--largeur-carte), 1fr)); }
.resume { margin: 0 0 var(--sp-12); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.resume-liste { list-style: none; margin: 0; padding: 0; }
.resume-liste li { display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-8) 0; border-bottom: var(--trait) solid var(--filet-interne); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.resume-liste li:last-child { border-bottom: 0; }
.resume-liste li > :first-child { flex: 1; }
.resume-liste .btn { min-height: var(--h-36); padding: 0 var(--sp-12); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.resume-liste .meta { color: var(--label-2); }
/* Page Décisions. */
.ariane { margin: 0 0 var(--sp-8); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); display: flex; gap: var(--sp-8); }
.ariane a { color: var(--label-2); }
.decisions { list-style: none; margin: 0; padding: 0; }
.decision { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-8) var(--sp-16); padding: var(--sp-12) 0; border-bottom: var(--trait) solid var(--filet-interne); }
.decision:first-child { padding-top: 0; }
.decision:last-child { border-bottom: 0; padding-bottom: 0; }
.decision > div:first-child { flex: 1 1 16rem; min-width: 0; }
.decision-texte { display: block; font-weight: var(--fw-600); }
.decision .meta { display: block; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); margin-top: var(--sp-4); }
.decision-actions { display: flex; gap: var(--sp-8); flex: none; }
.decision-actions .btn { min-height: var(--h-36); padding: 0 var(--sp-12); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.bloc .ajout-regle { margin: 0; }
@media (max-width: 767px) {
  .grille-2 { grid-template-columns: 1fr; }
  .grille-dalles { grid-template-columns: 1fr; }
  .ajout-regle { grid-template-columns: 1fr; }
  .panneau { padding: var(--sp-24); }
  .carte-correction .reformulation { grid-template-columns: 1fr; gap: 0 0; }
  .carte-correction .reformulation dd { margin-bottom: var(--sp-8); }
}
.dalles, .tableau { gap: var(--sp-16); }
@media (max-width: 767px) { .dalles { gap: var(--sp-16); } }
.dalle { padding: var(--sp-24); }
.carte-correction .carte-tete h2:not(.etape-titre), .resultat .carte-tete h2:not(.etape-titre) { font-size: var(--fs-16); line-height: var(--lh-16); }
.carte-tete .meta, .carte-tete .attente { white-space: nowrap; }
@media (max-width: 767px) {
  .resultat .carte-tete, .carte-correction .carte-tete { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
}
/* Indications de champ : --label-4 (v12.2 : 5,15:1 sur la dalle). */
input::placeholder, textarea::placeholder { color: var(--label-4); opacity: 1; }
/* Panneau du fil (dalle) : blocs séparés par le même écart que les dalles et un filet interne. */
.panneau > .pipeline-tete, .panneau > :not(.pipeline-tete) + .pipeline, .panneau > h2:not(:first-child),
.panneau > .fichiers, .panneau > .panneau-actions, .panneau > .fenetre-partage, .panneau > .feuillet, .panneau > .liens-projet,
.panneau > .pipeline-groupe.ajout {
  margin-top: var(--sp-16) !important; padding-top: var(--sp-16); border-top: var(--trait) solid var(--filet-interne); }
.panneau > .fenetre-partage, .panneau > .feuillet { border-top: var(--trait) solid var(--filet); padding-top: var(--sp-24); }
.panneau > .pipeline, .panneau > .historique { margin-bottom: 0; }
.panneau > details.missions { margin-top: var(--sp-12); }
.panneau > h2:not(:first-child) { font-size: var(--fs-16); line-height: var(--lh-16); margin-bottom: var(--sp-8); }
.panneau .pipeline-tete h2, .pipeline-tete h2, .panneau .pipeline > h2 { font-size: var(--fs-16); line-height: var(--lh-16); }
.panneau > .statut { margin: var(--sp-8) 0 0; }

/* ===== v6.7 : dépouillement (trois fois moins de texte) ===== */
.lecteur { position: absolute; width: var(--trait); height: var(--trait); overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-icone { min-width: var(--h-36); padding-left: var(--sp-8); padding-right: var(--sp-8); justify-content: center; }
.btn-icone .picto { margin: 0; }
.palette-ctx:empty { display: none; }
.historique-repli table { margin-top: var(--sp-8); }
.historique-repli td { padding: var(--sp-4) var(--sp-8) var(--sp-4) 0; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); }
.fil .saisie .actions { justify-content: flex-end; }
.msg.client { margin-left: auto; }
.resultat .carte-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); }
.resultat .reserves { margin: var(--sp-12) 0; }
.resultat .reserves ul { color: var(--label-2); }
.devis-total { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); }
.devis-detail { margin: var(--sp-8) 0 var(--sp-16); }
.devis-detail table { margin-top: var(--sp-8); }
.cartouche .carte-tete { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-12); }
.pipeline-groupe.ajout summary, .devis-detail summary, .historique-repli summary { cursor: pointer; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.pipeline-groupe.ajout .ajout-catalogue { margin-top: var(--sp-8); }
.lignes-conv { list-style: none; margin: 0; padding: 0; }
.lignes-conv li { display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-12) 0; border-top: var(--trait) solid var(--filet-interne); }
.lignes-conv li:first-child { border-top: 0; }
.lignes-conv .titre-lien { display: inline-flex; align-items: center; gap: var(--sp-8); flex: 1; }
.lignes-conv .titre-lien .picto { width: var(--icone-16); height: var(--icone-16); }
.titre-page .statut { color: var(--label-2); margin: 0; }
.appliquer select { max-width: 100%; }
.guide-offres { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--largeur-carte), 1fr)); gap: var(--sp-8) var(--sp-16); }
.guide-offre summary { cursor: pointer; display: flex; align-items: center; gap: var(--sp-8); padding: var(--sp-8) 0; }
.guide-offre summary .picto { width: var(--icone-20); height: var(--icone-20); }
.guide-offre ul { margin: 0 0 var(--sp-8); padding-left: var(--sp-24); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.guide-offre a { font-size: var(--fs-14); letter-spacing: var(--ls-14); margin-left: var(--sp-24); }
.decision-actions { display: flex; gap: var(--sp-8); }
.fiche .choix-service { display: none; }
.fiche fieldset:has(input[value="S"]:checked) .choix-service { display: block; }

/* v6.8 : le projet, objet central (vignette grise, titre, auteur), onglets du projet, derniers documents, statuts courts. */
.projet { display: inline-flex; align-items: center; gap: var(--sp-12); color: var(--label); text-decoration: none; min-width: 0; }
a.projet:hover .projet-titre { color: var(--accent); text-decoration: underline; }
.couv { flex: none; width: var(--icone-32); height: var(--h-44); border-radius: var(--r-sm); background: var(--couv); display: grid; place-items: center; }
.couv .picto { width: var(--icone-16); height: var(--icone-16); color: var(--label-4); }
.couv.grande { width: var(--sp-48); height: var(--sp-64); border-radius: var(--r-sm); }
.couv.grande .picto { width: var(--icone-24); height: var(--icone-24); }
.projet-nom { display: flex; flex-direction: column; min-width: 0; }
.projet-titre { font-weight: var(--fw-600); }
.projet-auteur { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); margin: 0; }
.liste td:first-child .projet-titre { font-weight: var(--fw-600); }
.projet-tete { display: flex; align-items: center; gap: var(--sp-16); margin-bottom: var(--sp-24); }
.projet-tete h1 { margin: 0; }
.projet-tete .projet-auteur { font-size: var(--fs-16); line-height: var(--lh-16); margin-top: var(--sp-4); }
.projet-tete .statut-pastille { margin-left: auto; }
.onglets { display: flex; gap: var(--sp-24); border-bottom: var(--trait) solid var(--line); margin-bottom: var(--sp-24); overflow-x: auto; scrollbar-width: none; }
.onglets a { padding: var(--sp-8) 0 var(--sp-12); color: var(--label-2); text-decoration: none; white-space: nowrap; border-bottom: var(--trait-2) solid transparent; margin-bottom: calc(var(--trait) * -1); }
.onglets a:hover { color: var(--label); }
.onglets a[aria-current="page"] { color: var(--label); font-weight: var(--fw-600); border-bottom-color: var(--label); }
.statut-pastille { display: inline-block; flex: none; padding: var(--sp-2) var(--sp-8); border-radius: var(--r-sm); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); font-weight: var(--fw-600); white-space: nowrap; background: var(--fill); color: var(--label); }
.statut-pastille.agir { background: var(--ink); color: var(--on-ink); }
.statut-pastille.fini { background: transparent; color: var(--label-2); box-shadow: inset 0 0 0 var(--trait) var(--line); }
.statut .statut-pastille { font-size: var(--fs-12); letter-spacing: var(--ls-12); }
.etat-picto { display: inline-flex; color: var(--label-2); }
.etat-picto .picto { width: var(--icone-20); height: var(--icone-20); }
.documents { list-style: none; margin: 0; padding: 0; }
.documents > li { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) var(--sp-64) calc(var(--sp-48) * 2) calc(var(--sp-64) * 2); align-items: center; gap: var(--sp-16); padding: var(--sp-12) 0; border-top: var(--trait) solid var(--filet-interne); }
.documents > li:first-child { border-top: 0; }
.documents .doc-service { color: var(--label); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.documents .doc-date { color: var(--label-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.documents .statut-pastille { justify-self: start; }
.documents .btn { justify-self: end; }
.projets-liste > li { grid-template-columns: minmax(0, 1fr) auto; }
.derniers { margin-top: var(--sp-32); width: 100%; }
.derniers .bloc-tete { justify-content: space-between; }
.derniers .bloc-tete a { font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.bloc-tete .projet { margin-bottom: var(--sp-4); }
.bloc-tete .btn { margin-left: auto; }
.avatar { display: inline-grid; place-items: center; width: var(--icone-32); height: var(--icone-32); border-radius: var(--r-full); background: var(--fill-2); color: var(--label); font-size: var(--fs-12); letter-spacing: var(--ls-12); font-weight: var(--fw-600); }
.avatar-nom { margin-left: var(--sp-8); }
.puces { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); }
.puce { display: inline-flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-12); border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 var(--trait) var(--line); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.puce a { display: inline-flex; align-items: center; gap: var(--sp-4); color: var(--label); text-decoration: none; }
.puce .picto { width: var(--icone-16); height: var(--icone-16); }
.puces .appliquer { margin: 0; }
.ajout-regle .btn-icone { flex: none; }
.fil-tete { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.fil-tete .ariane { margin: 0; }
.panneau > .statut:first-child { margin-top: 0; }
@media (max-width: 767px) {
  .documents > li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "projet action" "info statut"; row-gap: var(--sp-4); }
  .documents > li > .projet { grid-area: projet; }
  .documents > li > .btn { grid-area: action; }
  .documents > li > .statut-pastille { grid-area: statut; justify-self: end; }
  .documents > li > .doc-service { grid-area: info; padding-left: calc(var(--icone-32) + var(--sp-12)); }
  .documents > li > .doc-date { display: none; }
  .projets-liste > li { grid-template-areas: "projet statut"; }
  .projet-tete .couv.grande { width: var(--sp-48); height: var(--sp-64); }
  .onglets { gap: var(--sp-16); }
}
.ajout-regle.court { grid-template-columns: 1fr auto; }

/* ===== v6.9 : harmonie. Une seule mesure (tokens de _tokens.css) pour les tailles, les espaces, les rayons et les ombres.
   Références : Linear, Vercel, Stripe, Notion, Apple ; échelles Tailwind et Radix. ===== */
/* Titres : 40 (marque), 24 (page), 16 gras (dalle) ; corps 16, secondaires 14, mentions 12. */
.page h1, .formulaire h1, .projet-tete h1 { font-size: var(--fs-24); line-height: var(--lh-24); letter-spacing: -0.01em; }
.titre-page { margin-bottom: var(--sp-24); }
/* Contenu : une largeur maximale commune, mêmes marges. */
.page, .accueil { max-width: var(--largeur-contenu); }
/* Dalles : rayon 12, filet presque invisible, ombre très légère. */
.dalle, .carte, .cartouche, .carte-arbitrage, .etat-vide, .bloc, .rubrique, .niveau, .type-corps .service, .panneau, .formulaire { border-radius: var(--r-md); }
.bloc, .rubrique, .type-corps .service, .panneau, .carte, .cartouche, .carte-arbitrage, .etat-vide, .formulaire, .dalle { box-shadow: var(--ombre-1); }
.dalle { transition: box-shadow 0.15s ease, background-color 0.15s ease; }
.dalle:hover { box-shadow: var(--ombre-survol); }
.fenetre-partage, .panneau .fenetre-partage, .panneau .feuillet, .option { border-radius: var(--r-md); }
.fenetre-partage { box-shadow: var(--ombre-2); }
/* Contrôles : 44 (principal), 36 (dans les listes) ; rayon 6 ; ombre de niveau 1, survol à peine plus marqué. */
.btn { min-height: var(--h-44); padding: 0 var(--sp-16); border-radius: var(--r-sm); font-size: var(--fs-16); line-height: var(--lh-16); box-shadow: var(--ombre-1); transition: box-shadow 0.15s ease, background-color 0.15s ease; }
.btn:hover { box-shadow: var(--ombre-survol); }
.btn-icone { min-width: var(--h-44); padding-left: 0; padding-right: 0; }
.liste .btn, .rubrique .btn, .carte .btn, .resume-liste .btn, .decision-actions .btn, .documents .btn, .lignes-conv .btn, .bloc-tete .btn, .puces .btn, .ajout-regle .btn { min-height: var(--h-36); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); padding: 0 var(--sp-12); }
.liste .btn-icone, .decision-actions .btn-icone, .ajout-regle .btn-icone { min-width: var(--h-36); padding: 0; }
.champ input, .page select, .fiche select, .regles-saisie input, .appliquer select { height: var(--h-44); border-radius: var(--r-sm); box-shadow: var(--ombre-1); }
.ajout-regle input, .puces select, .appliquer select { height: var(--h-36); }
.saisie textarea { border-radius: var(--r-md); box-shadow: var(--ombre-2); padding: var(--sp-16); }
.saisie textarea:focus, .champ input:focus, input:focus-visible, select:focus-visible, .btn:focus-visible { outline: var(--trait-2) solid var(--anneau); outline-offset: var(--sp-2); }
/* Barre : liens de 36, rayon 6. */
.barre-lien { height: var(--h-36); border-radius: var(--r-sm); }
/* Pastilles, avatars, puces : rayon plein. */
.pastille, .avatar { border-radius: var(--r-full); }
.statut-pastille, .puce, .prime { border-radius: var(--r-sm); }
.statut-pastille { padding: var(--sp-2) var(--sp-8); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); }
/* Vignette de couverture : rayon 6 et ombre très légère (un objet posé). */
.couv { box-shadow: var(--ombre-1); }
/* Lignes de liste : survol discret. */
.documents > li, .lignes-conv li { border-radius: var(--r-sm); }
/* Fenêtres flottantes : niveau 2. */
.palette { border-radius: var(--r-md); box-shadow: var(--ombre-2); }
[data-tip]:hover::after, [data-tip]:focus-visible::after { border-radius: var(--r-sm); box-shadow: var(--ombre-2); }
.cartouche-question { margin-top: var(--sp-24); }
.onglets { gap: var(--sp-24); margin-bottom: var(--sp-24); }
.onglets a { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.projet-tete { gap: var(--sp-16); margin-bottom: var(--sp-24); }
.projet-tete .projet-auteur { font-size: var(--fs-16); line-height: var(--lh-16); margin-top: var(--sp-4); }

/* ===== v6.9 : polices. Inter pour le texte (moins de 20 px), Arno Regular pour les titres (20 px et plus), Arno (italique orné + petites capitales) pour la marque depuis v11. ===== */
html, body { font-family: var(--font); font-feature-settings: var(--font-features); letter-spacing: var(--ls-16); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
small, .meta, .statut-pastille, .pastille, .onglets a, .liste .btn, .bloc .btn { letter-spacing: var(--ls-14); }
/* Titres de page : Arno 32 ; titres de dalle et de section : Arno 20. Jamais de gras synthétique. */
.page h1, .formulaire h1, .projet-tete h1, .accueil h1:not(.marque-titre) { font-family: var(--font-titre); font-variant-numeric: var(--chiffres-titre); font-weight: var(--fw-400); font-synthesis: none; font-size: var(--fs-32); line-height: var(--lh-32); letter-spacing: var(--ls-titre-grand); }
.page h2:not(.etape-titre), .accueil h2:not(.etape-titre), .bloc h2:not(.etape-titre), .bloc .bloc-tete h2:not(.etape-titre), .bloc-tete h2:not(.etape-titre), .rubrique h2:not(.etape-titre), .carte-entete h2:not(.etape-titre), .cartouche h2:not(.etape-titre), .panneau h2:not(.etape-titre), .service h2:not(.etape-titre), .type-corps .service h2:not(.etape-titre), .page h2.groupe:not(.etape-titre), .feuillet h3:not(.etape-titre), .page .vitrine-titre:not(.etape-titre), .dalle-nom:not(.etape-titre), .fenetre-partage h2:not(.etape-titre), .carte-tete h2:not(.etape-titre), .resultat .carte-tete h2:not(.etape-titre), .carte-correction .carte-tete h2:not(.etape-titre), .panneau > h2:not(:first-child):not(.etape-titre), .panneau .pipeline-tete h2:not(.etape-titre), .panneau .pipeline > h2:not(.etape-titre) { /* v12.4 : .etape-titre exclu (taille 24 réglée par sa propre règle, sans !important) */
  font-family: var(--font-titre) !important; font-variant-numeric: var(--chiffres-titre); font-weight: var(--fw-400) !important; font-synthesis: none; font-size: var(--fs-20) !important; line-height: var(--lh-20) !important; letter-spacing: var(--ls-titre); }
/* Le gras d’interface passe à 600 (Inter SemiBold) ; les libellés secondaires à 500. */
.barre-lien[aria-current="page"], .onglets a[aria-current="page"] { font-weight: var(--fw-600); }
.barre-lien, .onglets a, .btn { font-weight: var(--fw-500); }
.btn-plein { font-weight: var(--fw-600); }
.projet-titre, .projet-nom { font-weight: var(--fw-600); }
.projet-auteur, .projet .projet-auteur { font-weight: var(--fw-400); }

/* ===== v6.10 : corrections de la relecture v6.9 (tous les nombres viennent des tokens). ===== */
/* États : focus dessiné, désactivé, chargement, message éphémère. */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.barre-lien:focus-visible, .onglets a:focus-visible, .palette-ligne:focus-visible { outline: var(--trait-2) solid var(--anneau); outline-offset: var(--sp-2); }
.btn:disabled, .btn[aria-disabled="true"], button:disabled { opacity: var(--opacite-inactif); cursor: not-allowed; box-shadow: none; }
/* v12 (audit I1) : l’indicateur ne vaut que pour les boutons ; la carte d’envoi et « Paiement en cours » restent lisibles. */
button[aria-busy="true"], .btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
button[aria-busy="true"] > *, .btn[aria-busy="true"] > * { visibility: hidden; }
button[aria-busy="true"]::after, .btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: var(--icone-16); height: var(--icone-16); border-radius: var(--r-full);
  border: var(--trait-2) solid currentColor; border-color: var(--label) var(--label) transparent transparent; animation: tourne 0.7s linear infinite; }
.btn-plein[aria-busy="true"]::after { border-color: var(--on-ink) var(--on-ink) transparent transparent; }
@keyframes tourne { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: var(--sp-32); transform: translate(-50%, var(--sp-16)); z-index: var(--z-toast);
  background: var(--ink); color: var(--on-ink); padding: var(--sp-12) var(--sp-16); border-radius: var(--r-sm); box-shadow: var(--ombre-2);
  font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); opacity: 0; pointer-events: none; transition: opacity var(--duree) ease, transform var(--duree) ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast, button[aria-busy="true"]::after, .btn[aria-busy="true"]::after { transition: none; animation: none; } }
/* Lien d’évitement, raccourci, cloche. */
.evitement { position: absolute; left: var(--sp-8); top: calc(var(--sp-64) * -1); z-index: var(--z-toast); background: var(--surface); padding: var(--sp-8) var(--sp-12); border-radius: var(--r-sm); box-shadow: var(--ombre-2); }
.evitement:focus { top: var(--sp-8); }
.raccourci { margin-left: auto; font-family: var(--font); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); }
.barre-repliee .raccourci { display: none; }
.cloche .point { top: var(--sp-4); right: var(--sp-4); width: var(--sp-8); height: var(--sp-8); box-shadow: 0 0 0 var(--trait-2) var(--layer); }
/* Phrase de contexte des écrans de décision. */
.contexte { margin: 0 0 var(--sp-16); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); max-width: var(--largeur-lecture); }
.contexte-fil { margin: var(--sp-8) 0; }
.fil-titre { margin: 0; font-family: var(--font-titre); font-variant-numeric: var(--chiffres-titre); font-size: var(--fs-24); line-height: var(--lh-24); font-weight: var(--fw-400); font-synthesis: none; letter-spacing: var(--ls-titre); } /* v12 (audit S9) : Arno 24 */
.fil-tete .ariane a { display: inline-block; padding: var(--sp-4) 0; }
/* Zone de saisie unique (modèle ChatGPT, Claude). */
.composeur { position: relative; display: flex; flex-direction: column; gap: var(--sp-8); background: var(--surface); border: var(--trait) solid var(--line-champ);
  border-radius: var(--r-md); box-shadow: var(--ombre-2); padding: var(--sp-12) var(--sp-12) var(--sp-8) var(--sp-16); }
.composeur:focus-within { border-color: var(--anneau); box-shadow: 0 0 0 var(--trait) var(--anneau), var(--ombre-2); }
.saisie.composeur textarea, .composeur textarea { width: 100%; min-height: var(--lh-16); max-height: calc(var(--sp-64) * 4); padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: transparent; resize: none; overflow-y: auto; font: inherit; color: var(--label); outline: none; }
.composeur textarea:focus, .composeur textarea:focus-visible { outline: none; box-shadow: none; }
.composeur-outils { display: flex; align-items: center; gap: var(--sp-8); }
.composeur-joindre.btn-icone { min-width: var(--h-36); min-height: var(--h-36); box-shadow: none; border-color: transparent; background: transparent; }
.composeur-joindre.btn-icone:hover { background: var(--fill); }
.composeur-joindre.btn-plein { min-height: var(--h-36); gap: var(--sp-8); }
.composeur-envoyer { margin-left: auto; display: grid; place-items: center; width: var(--h-36); height: var(--h-36); border: 0; border-radius: var(--r-sm);
  background: var(--ink); color: var(--on-ink); cursor: pointer; transition: background-color var(--duree) ease; }
.composeur-envoyer .picto { width: var(--icone-20); height: var(--icone-20); }
.composeur-envoyer:disabled { background: var(--fill-2); color: var(--label-4); opacity: 1; }
.accueil-client .composeur { max-width: var(--largeur-lecture); margin: var(--sp-24) auto 0; }
.fil .composeur { margin-top: var(--sp-16); }
/* Une seule ligne pour toutes les listes. */
.rangees { list-style: none; margin: 0; padding: 0; }
.rangee { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) calc(var(--sp-48) * 2) calc(var(--sp-64) * 2); align-items: center; gap: var(--sp-16);
  padding: var(--sp-12) 0; border-top: var(--trait) solid var(--filet-interne); }
.rangee:first-child { border-top: 0; }
.ligne-contexte { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label); min-width: 0; }
.ligne-contexte a { color: var(--label); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.ligne-date { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.ligne-droite { justify-self: end; display: flex; align-items: center; gap: var(--sp-8); }
.rangee .projet { min-width: 0; color: var(--label); text-decoration: none; }
.rangee a.projet:hover .projet-titre { text-decoration: underline; }
.rangee .btn { min-height: var(--h-36); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); padding: 0 var(--sp-12); }
.bloc-tete .projet { color: var(--label); }
/* Fenêtre Navette : lien visible et Copier. */
.lien-copie { display: flex; gap: var(--sp-8); margin-top: var(--sp-16); }
.lien-copie input { flex: 1; min-width: 0; height: var(--h-44); padding: 0 var(--sp-12); border: var(--trait) solid var(--line-champ); border-radius: var(--r-sm);
  background: var(--fill); color: var(--label-2); font: inherit; font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.fenetre-partage .champ input { width: 100%; }
.fenetre-pied { margin: var(--sp-12) 0 0; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
/* Devis du fil : lignes visibles, total, phrase de contexte. */
.carte-devis .devis { width: 100%; margin: 0 0 var(--sp-16); }
.carte-devis .devis td { padding: var(--sp-8) 0; border-top: var(--trait) solid var(--filet-interne); }
.carte-devis .devis-somme td { font-weight: var(--fw-600); }
.carte-devis .carte-tete h2 .meta { font-family: var(--font); font-size: var(--fs-14); letter-spacing: var(--ls-14); color: var(--label-2); margin-left: var(--sp-8); }
.exemple, .exemple-mention { font-size: inherit; color: var(--label-2); font-weight: var(--fw-400); }
/* Erreur du fil. */
.msg-erreur { display: flex; gap: var(--sp-12); align-items: flex-start; background: var(--dalle); border: var(--trait) solid var(--line); border-radius: var(--r-md); padding: var(--sp-16); max-width: var(--largeur-lecture); }
.msg-erreur .picto { flex: none; width: var(--icone-20); height: var(--icone-20); color: var(--label); }
.actions-fil { margin: var(--sp-12) 0; }
/* Tête du projet : statut sous le titre. */
.projet-tete-nom .statut-pastille { margin-left: var(--sp-8); vertical-align: middle; }
/* Onglets du projet : défilement horizontal, fondu au bord tant qu’il reste des onglets. */
.onglets-cadre { position: relative; }
.onglets { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { scroll-snap-align: start; }
.onglets-cadre.deborde:not(.au-bout)::after { content: ""; position: absolute; top: 0; right: 0; bottom: var(--trait); width: var(--sp-48); pointer-events: none;
  background: linear-gradient(to right, transparent, var(--bg)); }
/* Titres d’étape du panneau (h3) : Inter 14 / 600 ; groupes en Inter 12 / 500, sans capitales. */
.panneau h3, .suivi-etapes h3, .pipeline-groupe h3 { font-family: var(--font); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); font-weight: var(--fw-600); margin: var(--sp-12) 0 var(--sp-4); }
.carte-prereglages legend, .palette-groupe, .barre-titre { text-transform: none; letter-spacing: 0; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-500); color: var(--label-2); }
/* Accueil connecté : la salutation remplace la marque. */
.salutation { text-align: center; margin: 0; }
/* Accueil visiteur : promesse, trois étapes, avant / après, offres. */
.accueil-visiteur .promesse { text-align: center; max-width: var(--largeur-lecture); margin: 0 auto var(--sp-48); }
.accueil-visiteur .sous-marque { margin: 0 0 var(--sp-12); font-family: var(--font); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.accueil h1.promesse-titre { font-family: var(--font-titre); font-variant-numeric: var(--chiffres-titre); font-weight: var(--fw-400); font-size: var(--fs-40); line-height: var(--lh-40); letter-spacing: var(--ls-titre-grand); margin: 0 0 var(--sp-16); }
.promesse-sous-titre { margin: 0 0 var(--sp-24); font-size: var(--fs-16); line-height: var(--lh-16); color: var(--label-2); }
.accueil-visiteur .appel { justify-content: center; align-items: center; }
.lien-appel { margin-left: var(--sp-16); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.etapes-accueil { list-style: none; margin: 0 auto var(--sp-48); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16); }
.etapes-accueil li { background: var(--dalle); border: var(--trait) solid var(--filet); border-radius: var(--r-md); box-shadow: var(--ombre-1); padding: var(--sp-24); }
.etapes-accueil h3 { margin: var(--sp-12) 0 var(--sp-4) !important; font-size: var(--fs-16); line-height: var(--lh-16); }
.etape-tete { display: flex; align-items: center; gap: var(--sp-12); }
.etape-picto .picto { width: var(--icone-32); height: var(--icone-32); color: var(--label-2); }
.etapes-accueil p { margin: 0; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.etape-num { display: inline-grid; place-items: center; width: var(--h-36); height: var(--h-36); border-radius: var(--r-full); background: var(--surface); box-shadow: var(--ombre-1);
  font-weight: var(--fw-600); font-size: var(--fs-14); letter-spacing: var(--ls-14); }
.avant-apres, .offres-accueil { margin-bottom: var(--sp-48); }
.avant-apres .vitrine { display: grid; grid-template-columns: repeat(2, minmax(0, var(--largeur-colonne))); justify-content: center; gap: var(--sp-32); align-items: start; }
/* Lettrine de l’exemple : la capitale seule, alignée sur trois lignes ; l’apostrophe reste dans le texte. */
.ex-lettrine::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; }
.ex-lettre { float: left; font-size: 4.8em; line-height: 0.8; margin: 0.03em 0.04em -0.1em 0; }
/* Mobile : saisie collée en bas dans les conversations, cibles de 44 px, lignes sur deux rangs. */
@media (max-width: 767px) {
  .fil .composeur, .partage .composeur { position: sticky; bottom: var(--sp-8); z-index: 5; }
  .btn, .rangee .btn { min-height: var(--h-44); }
  .rangee { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tete droite" "contexte date"; row-gap: var(--sp-4); }
  .rangee > .projet { grid-area: tete; }
  .rangee > .ligne-droite { grid-area: droite; }
  .rangee > .ligne-contexte { grid-area: contexte; padding-left: calc(var(--icone-32) + var(--sp-12)); }
  .rangee > .ligne-date { grid-area: date; justify-self: end; }
  .etapes-accueil { grid-template-columns: minmax(0, 1fr); }
  .avant-apres .vitrine { grid-template-columns: minmax(0, 1fr); }
  .accueil h1.promesse-titre { font-size: var(--fs-32); line-height: var(--lh-32); }
  .raccourci { display: none; }
}
.carte-devis .devis-somme td:last-child { white-space: nowrap; }

/* v6.10 : marque discrète au-dessus de la promesse, « Alcuin intelligent services » dessous (Inter 14, --label-2). */
.accueil-visiteur .sous-marque { margin: 0 0 var(--sp-24); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); text-align: center; }
/* Accroches des sections de l’accueil visiteur : Arno, sans gras synthétique. */
.accueil-visiteur h2.accroche { font-family: var(--font-titre); font-variant-numeric: var(--chiffres-titre); font-weight: var(--fw-400); font-synthesis: none; font-size: var(--fs-24); line-height: var(--lh-24); letter-spacing: var(--ls-titre-grand); text-align: center; color: var(--label); margin: 0 auto var(--sp-24); max-width: var(--largeur-lecture); text-transform: none; }
@media (max-width: 767px) { .accueil-visiteur h2.accroche { font-size: var(--fs-20); line-height: var(--lh-20); } }

/* ===== v6.10, liste fusionnée (LISTE-V6.10.md) ===== */
:root { accent-color: var(--ink); }
/* 38. Point de la cloche : 6 px, bordure couleur du fond, en haut à droite. */
.cloche .point { top: var(--sp-8); right: var(--sp-8); width: calc(var(--sp-12) / 2); height: calc(var(--sp-12) / 2); box-shadow: 0 0 0 var(--trait-2) var(--layer); }
/* 39. Vignettes : première page, ou initiales. */
.couv-initiales { font-family: var(--font); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-600); color: var(--label-2); letter-spacing: 0; }
.couv-initiales.grande { font-size: var(--fs-20); line-height: var(--lh-20); }
.couv-page { display: inline-flex; flex-direction: column; justify-content: center; gap: var(--sp-2); padding: 0 var(--sp-8); background: var(--surface); }
.couv-ligne { display: block; height: var(--trait-2); background: var(--line); width: 100%; }
.couv-ligne.courte { width: 60%; }
.couv-page.grande { gap: var(--sp-4); padding: 0 var(--sp-12); }
/* Ligne marquée « nouveau » (cible de la cloche). */
.rangee.nouveau > a:first-of-type, .rangee.nouveau .ligne-tete { position: relative; }
.rangee.nouveau::before { content: ""; position: absolute; margin-left: calc(var(--sp-12) * -1); margin-top: var(--sp-16); width: calc(var(--sp-12) / 2); height: calc(var(--sp-12) / 2); border-radius: var(--r-full); background: var(--ink); }
.rangee { position: relative; }
.ligne-contexte .statut-pastille { margin-right: var(--sp-4); }
.actions-ligne { display: inline-flex; gap: var(--sp-4); align-items: center; }
/* Menu « … ». */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-liste { position: absolute; right: 0; top: calc(100% + var(--sp-4)); z-index: var(--z-tip); min-width: calc(var(--sp-64) * 3); background: var(--surface); border: var(--trait) solid var(--filet); border-radius: var(--r-sm); box-shadow: var(--ombre-2); padding: var(--sp-4); display: flex; flex-direction: column; }
.menu-liste > form { display: contents; } /* v12 (audit I2) : « Archiver », « Supprimer » sont dans un formulaire */
.menu-liste > a, .menu-liste > button, .menu-liste > form > button { display: block; text-align: left; font: inherit; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label); background: none; border: 0; border-radius: var(--r-sm); padding: var(--sp-8) var(--sp-12); cursor: pointer; min-height: var(--h-36); }
.menu-liste > a:hover, .menu-liste > button:hover, .menu-liste > form > button:hover { background: var(--fill); text-decoration: none; }
.menu-liste .danger, .danger { color: var(--label); } /* v12 (audit S4) : --accent réservé aux liens */
.projet-outils { margin-left: auto; display: flex; gap: var(--sp-8); align-items: center; }
.projet-outils .btn { min-height: var(--h-36); font-size: var(--fs-14); letter-spacing: var(--ls-14); padding: 0 var(--sp-12); }
/* 17. Pastille dans l’onglet. */
.onglets a .pastille { display: inline-flex; align-items: center; justify-content: center; margin-left: var(--sp-8); font-size: var(--fs-12); letter-spacing: var(--ls-12); background: var(--ink); color: var(--on-ink); }
/* 2. Arbitrage : extrait et effet de chaque choix. */
.extrait { margin: var(--sp-16) 0; padding: var(--sp-12) var(--sp-16); border-left: var(--trait-2) solid var(--line); background: var(--surface); font-family: var(--font-titre); font-variant-numeric: var(--chiffres-titre); font-size: var(--fs-16); line-height: var(--lh-16); }
.extrait p { margin: 0; }
.extrait-intertitre { font-variant: small-caps; font-synthesis: none; margin-bottom: var(--sp-4) !important; } /* v12 (audit I4) : vraies petites capitales (smcp d’Arno Pro 1.084) ; jamais de fausses */
.choix-effets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-12); }
.btn.choix-effet { flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-12) var(--sp-16); text-align: left; min-height: 0; }
.choix-effet span { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); font-weight: var(--fw-400); }
/* 3. Devis : suggestions à cocher, mention sous Payer. */
.devis-option td { color: var(--label-2); }
.devis-option label { display: inline-flex; gap: var(--sp-8); align-items: center; cursor: pointer; }
.devis-source { color: var(--label-3); font-size: var(--fs-12); letter-spacing: var(--ls-12); }
.mention { margin: var(--sp-8) 0 0; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); }
.carte-devis.fige { background: var(--surface); }
.carte-devis.ecarte { color: var(--label-2); box-shadow: none; } /* v12 (audit I6) : plus d’opacité 50 % ; la pastille dit l’état */
.paiement-recu { display: flex; gap: var(--sp-12); align-items: flex-start; }
.paiement-recu p { margin: 0 0 var(--sp-4); }
.liens-conv { margin: var(--sp-8) 0 0; padding-left: var(--sp-16); }
/* 29. État par service. */
.etat-service { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp-4); font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); white-space: nowrap; }
.etat-service .picto { width: var(--icone-12); height: var(--icone-12); }
.pipeline-ligne { display: flex; align-items: center; gap: var(--sp-8); }
.ajout-service { margin: var(--sp-12) 0 0; font-size: var(--fs-14); letter-spacing: var(--ls-14); }
/* 10. Feuille du panneau : titre seulement sur mobile. */
.feuille > summary { display: none; }
.feuille-corps > :first-child { margin-top: 0; }
.composeur.survol-depot, .cartouche.depot.survol-depot { outline: var(--trait-2) dashed var(--focus); outline-offset: var(--sp-2); }
.composeur-secondaire .composeur-envoyer:not(:disabled) { background: transparent; color: var(--label); box-shadow: inset 0 0 0 var(--trait) var(--line); }
/* 11. Dépôt. */
.depot-titre { margin: var(--sp-8) 0 0; font-weight: var(--fw-600); }
.cartouche.envoi progress { width: 100%; height: var(--sp-8); accent-color: var(--ink); }
.cartouche.envoi p { margin: 0 0 var(--sp-8); }
/* 8. Remise finale. */
.livres { list-style: none; margin: var(--sp-16) 0 0; padding: 0; }
.livres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4) var(--sp-16); align-items: center; padding: var(--sp-12) 0; border-top: var(--trait) solid var(--filet-interne); }
.livres .meta { grid-column: 1; }
.livres .btn { grid-column: 2; grid-row: 1 / span 2; min-height: var(--h-36); font-size: var(--fs-14); letter-spacing: var(--ls-14); padding: 0 var(--sp-12); }
.cartouche.resultat.ancien { color: var(--label-2); box-shadow: none; }
.carte-devis.ecarte :is(h2, h3, strong, td, th), .cartouche.resultat.ancien :is(h2, h3, strong) { color: var(--label-2); }
/* 7, 41. Invité : bandeau, titre, fiche. */
body.invite { padding-left: 0 !important; }
.bandeau-invite { display: flex; align-items: center; height: var(--h-44); padding: 0 var(--sp-24); border-bottom: var(--trait) solid var(--filet); background: var(--layer); }
.invite-titre { font-family: var(--font-titre); font-variant-numeric: var(--chiffres-titre); font-weight: var(--fw-400); font-size: var(--fs-32); line-height: var(--lh-32); letter-spacing: var(--ls-titre-grand); margin: 0 0 var(--sp-16); } /* v12 (audit S9) : 32 comme les autres titres de page */
.fiche-invite, .fiche-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--sp-4) var(--sp-16); margin: 0 0 var(--sp-24); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.fiche-invite dt, .fiche-dl dt { color: var(--label-2); }
.fiche-invite dd, .fiche-dl dd { margin: 0; }
.msg.invite { align-self: flex-start; max-width: 85%; background: var(--surface); border: var(--trait) solid var(--filet); border-radius: var(--r-md); padding: var(--sp-12) var(--sp-16); }
.barre-legal { margin: var(--sp-8) var(--sp-12) 0; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); }
.barre-legal a { color: var(--label-2); }
/* 18, 22. Décisions et préréglage. */
.decision-texte { font-weight: var(--fw-400); }
.decision-origine { display: block; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); margin-top: var(--sp-2); }
.liste-choix, select { font: inherit; font-size: var(--fs-14); letter-spacing: var(--ls-14); color: var(--label); background: var(--surface); border: var(--trait) solid var(--line-champ); border-radius: var(--r-sm); padding: 0 var(--sp-12); min-height: var(--h-36); }
.segments { display: inline-flex; border: var(--trait) solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin-bottom: var(--sp-12); }
.segment { position: relative; }
.segment input { position: absolute; opacity: 0; inset: 0; }
.segment span { display: inline-flex; align-items: center; min-height: var(--h-36); padding: 0 var(--sp-16); font-size: var(--fs-14); letter-spacing: var(--ls-14); cursor: pointer; }
.segment + .segment span { border-left: var(--trait) solid var(--line); }
.segment input:checked + span { background: var(--ink); color: var(--on-ink); }
.segment input:focus-visible + span { outline: var(--trait-2) solid var(--anneau); outline-offset: calc(var(--trait-2) * -1); }
.zone-danger { margin-top: var(--sp-48); padding: var(--sp-24); border: var(--trait) solid var(--line); border-radius: var(--r-md); }
.zone-danger h2 { margin-top: 0; }
.btn-danger, a.btn-danger { color: var(--label); border-color: var(--line); background: var(--surface); } /* v12 (audit S4) : bouton ordinaire */
/* 13, 30. Formulaires. */
.aide-champ { margin: var(--sp-4) 0 0; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label-2); }
.erreur-champ, .erreur-form { margin: var(--sp-4) 0 0; font-size: var(--fs-12); letter-spacing: var(--ls-12); line-height: var(--lh-12); color: var(--label); font-weight: var(--fw-600); } /* v12 (audit S4) : erreur en encre demi-grasse, plus en couleur de lien */
.erreur-form { margin-bottom: var(--sp-16); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.champ.en-erreur input { border: var(--trait-2) solid var(--ink); }
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-24); }
.formulaire legend { font-weight: var(--fw-600); margin-bottom: var(--sp-8); }
/* 45. Pages courtes : largeur de lecture. */
.page-etroite { max-width: var(--largeur-lecture); }
/* 23, 24. Offres, guide. */
.service-desc { margin: var(--sp-4) 0 var(--sp-12); color: var(--label-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.accordeon details { border-top: var(--trait) solid var(--filet-interne); padding: var(--sp-12) 0; }
.accordeon details:last-child { border-bottom: var(--trait) solid var(--filet-interne); }
.accordeon summary { cursor: pointer; font-weight: var(--fw-600); min-height: var(--h-36); display: flex; align-items: center; }
.accordeon p { margin: var(--sp-8) 0 0; }
/* 15. Premier projet. */
.etapes-compactes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16); list-style: none; padding: 0; margin: 0 0 var(--sp-16); }
.etapes-compactes h3 { margin: var(--sp-8) 0 var(--sp-4); }
.etapes-compactes p { margin: 0; font-size: var(--fs-14); letter-spacing: var(--ls-14); color: var(--label-2); }
/* 20. Squelette de chargement. */
.squelette { background: linear-gradient(90deg, var(--fill) 25%, var(--fill-2) 50%, var(--fill) 75%); background-size: 200% 100%; animation: squelette 1.2s linear infinite; border-radius: var(--r-sm); color: transparent; }
@keyframes squelette { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .squelette { animation: none; } }
.toast-action { font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.page-erreur h1 { margin-top: var(--sp-4); }
.champ-ligne { display: flex; align-items: center; gap: var(--sp-12); }
@media (max-width: 767px) {
  .feuille > summary { display: flex; align-items: center; min-height: var(--h-44); font-weight: var(--fw-600); cursor: pointer; }
  .choix-effets, .etapes-compactes { grid-template-columns: minmax(0, 1fr); }
  .projet-tete { flex-wrap: wrap; }
  .projet-outils { margin-left: 0; width: 100%; }
  body.invite .barre-mobile { display: none; }
}
[hidden] { display: none !important; }
.champ-ligne { justify-content: flex-start; flex-wrap: wrap; }
.fenetre-partage .champ-ligne input { width: auto; flex: 1 1 calc(var(--sp-64) * 3); }
.devis-option label { display: inline; }
.devis-option input { margin-right: var(--sp-8); vertical-align: middle; }
/* v6.10, point 21 : h3 en Inter 14/600 par défaut ; étapes de l’accueil en Inter 16/600. */
h3 { font-family: var(--font); font-weight: var(--fw-600); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.etapes-accueil h3 { font-family: var(--font); font-weight: var(--fw-600); letter-spacing: var(--ls-16); }
/* v6.10, point 20 : anneau de focus dessiné sur tout élément interactif. */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, .segment input:focus-visible + span, .devis-option input:focus-visible { outline: var(--trait-2) solid var(--anneau); outline-offset: var(--sp-2); }
/* Point 21 : plus de petites capitales espacées ; intitulés en Inter 12/500, --label-2. */
.barre-titre, .carte-prereglages legend, .palette-groupe { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-500); color: var(--label-2); }
/* Point 44 : zones cliquables d’au moins 24 px (liens de tête du fil, noms de préréglages). */
.fil-tete .ariane a, .puce a, .carte-prereglages label { display: inline-flex; align-items: center; min-height: var(--sp-24); }
/* v6.11, avant/après de l’accueil visiteur (Athanase, 15/11, 22 h 04 puis 22 h 15) : défilement lent d’ouvrages QMé, une diapositive par ouvrage.
   Avant : page Word brute (HTML) ou scan d’origine (image) ; après : la vraie page imprimée (image tirée du PDF d’impression, sans retouche).
   Les deux pages d’une diapositive sont à la même échelle : 1 mm de papier = var(--mm), réduit si la paire ne tient pas dans la largeur.
   --w / --h : format de chaque page en mm (Word : A4 210 × 297 ; imprimé : TrimBox du PDF) ; --wa / --wb : largeurs des deux pages. */
/* v11 (Athanase, 17/11) : présentation modernisée, exemples inchangés. Plus aucune légende visible sous les pages (« Votre fichier »,
   « La page imprimée », titre · auteur · type) : elles restent en aria-label (figure, diapositive). Scène en dalle, flèche avant → après,
   flèches précédent / suivant, barres de progression (7 s), pages qui se soulèvent au survol, fondu avec léger glissement. */
.aa-defile { position: relative; margin: 0 auto var(--sp-48); }
.aa-scene { position: relative; padding: var(--sp-48) var(--sp-64); border-radius: var(--r-md); background: linear-gradient(180deg, var(--pane), var(--dalle)); box-shadow: inset 0 0 0 var(--trait) var(--filet); }
.aa-diapos { display: grid; container-type: inline-size; }
.aa-diapo { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(var(--sp-8)); transition: opacity 1200ms ease, transform 1200ms cubic-bezier(.2, .7, .2, 1), visibility 0s linear 1200ms; }
.aa-diapo.actif, .aa-defile:not(.pret) .aa-diapo:first-child { opacity: 1; visibility: visible; transform: none; transition: opacity 1200ms ease, transform 1200ms cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.aa-pages { --mm: min(calc(var(--sp-2) * 1.3), calc((100cqw - var(--sp-48) - var(--icone-24)) / (var(--wa) + var(--wb))), calc(var(--sp-64) * 9 / max(var(--ha), var(--hb)))); /* v12 (audit S2) : pages de 576 px de haut au plus */ display: flex; justify-content: center; align-items: center; gap: var(--sp-24); }
.aa-figure { margin: 0; display: flex; flex-direction: column; align-items: center; flex: none; }
.aa-fleche { flex: none; display: grid; place-items: center; width: var(--icone-24); height: var(--icone-24); color: var(--label-4); }
.aa-fleche .picto { width: var(--icone-24); height: var(--icone-24); stroke-width: 1.25; }
.aa-groupe .aa-page { transition: transform var(--duree) ease, box-shadow var(--duree) ease; }
.aa-figure:hover .aa-page { transform: translateY(calc(var(--sp-4) * -1)); box-shadow: 0 0 0 var(--trait) var(--filet), var(--ombre-survol), 0 var(--sp-12) var(--sp-32) rgba(var(--rvb-ombre), .06); }
.aa-nav { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: var(--h-44); height: var(--h-44); margin-top: calc(var(--h-44) / -2); padding: 0; border: var(--trait) solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--label); box-shadow: var(--ombre-1); cursor: pointer; opacity: 0; transition: opacity var(--duree) ease, box-shadow var(--duree) ease; }
.aa-nav:hover { box-shadow: var(--ombre-survol); }
.aa-scene:hover .aa-nav, .aa-nav:focus-visible { opacity: 1; }
.aa-prec { left: var(--sp-12); }
.aa-suiv { right: var(--sp-12); }
.aa-nav .picto { width: var(--icone-20); height: var(--icone-20); }
.aa-commandes { display: flex; justify-content: center; align-items: center; gap: var(--sp-12); margin-top: var(--sp-16); }
.aa-points { display: flex; gap: var(--sp-4); }
.aa-point { width: var(--sp-24); height: var(--sp-24); padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: var(--r-sm); }
.aa-point::before { content: ""; grid-area: 1 / 1; width: 100%; height: var(--sp-2); border-radius: var(--r-sm); background: var(--fill-2); }
.aa-point::after { content: ""; grid-area: 1 / 1; width: 100%; height: var(--sp-2); border-radius: var(--r-sm); background: var(--label); transform: scaleX(0); transform-origin: left center; }
.aa-point:hover::before { background: var(--label-4); }
.aa-point[aria-current="true"]::after { transform: scaleX(1); }
.aa-defile.en-cours .aa-point[aria-current="true"]::after { animation: aa-progression 7000ms linear both; }
@keyframes aa-progression { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.aa-pause { display: grid; place-items: center; width: var(--h-36); height: var(--h-36); padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--label-2); cursor: pointer; }
.aa-pause:hover { background: var(--fill); color: var(--label); }
.aa-pause .picto { width: var(--icone-16); height: var(--icone-16); }
.aa-pause .aa-ic-lecture, .aa-pause[aria-pressed="true"] .aa-ic-pause { display: none; }
.aa-pause[aria-pressed="true"] .aa-ic-lecture { display: contents; }
.aa-groupe { position: relative; flex: none; width: calc(var(--mm) * var(--w)); height: calc(var(--mm) * var(--h)); }
.aa-groupe > .aa-page { position: absolute; left: calc(var(--mm) * var(--x)); top: calc(var(--mm) * var(--y)); }
.aa-page { position: relative; flex: none; overflow: hidden; background: #fff; color: #1d1d1b; width: calc(var(--mm) * var(--w)); height: calc(var(--mm) * var(--h));
  box-shadow: 0 0 0 var(--trait) rgba(var(--rvb-ombre), .06), 0 var(--sp-2) var(--sp-4) rgba(var(--rvb-ombre), .03), 0 var(--sp-8) var(--sp-24) rgba(var(--rvb-ombre), .04); }
.aa-page p { margin: 0; }
.aa-page img { display: block; width: 100%; height: 100%; }
.aa-word { width: calc(var(--mm) * 210); height: calc(var(--mm) * 297); font-family: "Times New Roman", Tinos, "Liberation Serif", serif; font-feature-settings: normal; font-size: calc(var(--mm) * 4.233); line-height: 1.725; text-align: left; hyphens: manual; letter-spacing: 0; }
.aa-word-texte { position: absolute; left: calc(var(--mm) * 25); right: calc(var(--mm) * 25); top: calc(var(--mm) * 25); }
.aa-word .aa-word-texte p { text-indent: calc(var(--mm) * 12.5); }
.aa-word .aa-word-texte p.aa-suite { text-indent: 0; } /* suite d’un paragraphe commencé à la page précédente */
.aa-word .aa-word-texte p.aa-word-titre { text-indent: 0; text-align: center; font-weight: 700; margin: calc(var(--mm) * 4) 0; }
.aa-word-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: calc(var(--mm) * 1) 0; }
.aa-word-table td { width: 50%; vertical-align: top; border: calc(var(--mm) * 0.18) solid #1d1d1b; padding: 0 calc(var(--mm) * 1.9); }
.aa-word .aa-word-table p { text-indent: 0; }
.aa-word .aa-word-table p + p:not(.aa-word-titre) { margin-top: 0; }
.aa-word sup { font-size: 0.65em; line-height: 0; vertical-align: 0.6em; }
.aa-word-tete { position: absolute; left: calc(var(--mm) * 25); right: calc(var(--mm) * 25); top: calc(var(--mm) * 12.5); font-size: calc(var(--mm) * 3.528); line-height: 1; color: #555; }
.aa-word-notes { position: absolute; left: calc(var(--mm) * 25); right: calc(var(--mm) * 25); bottom: calc(var(--mm) * 25); font-size: calc(var(--mm) * 3.528); line-height: 1.15; padding-top: calc(var(--mm) * 2.5); }
.aa-word-notes::before { content: ""; position: absolute; top: 0; left: 0; width: calc(var(--mm) * 50); border-top: calc(var(--mm) * 0.18) solid #1d1d1b; }
.aa-word-folio { position: absolute; left: 0; right: 0; bottom: calc(var(--mm) * 12.5); text-align: center; line-height: 1; }
@media (max-width: 767px) {
  .aa-scene { padding: var(--sp-24) var(--sp-16); }
  .aa-pages { --mm: min(calc(var(--sp-2) * 0.85), calc(100cqw / max(var(--wa), var(--wb))), calc(var(--sp-64) * 5 / max(var(--ha), var(--hb)))); flex-direction: column; align-items: center; gap: var(--sp-12); }
  .aa-fleche { transform: rotate(90deg); }
  .aa-nav { display: none; }
  .aa-commandes { flex-wrap: wrap; gap: var(--sp-4); }
  .aa-points { flex-wrap: wrap; justify-content: center; gap: 0; }
  .aa-point { width: var(--sp-24); height: var(--h-44); }
  .aa-point::before, .aa-point::after { width: var(--sp-16); }
  .aa-pause { width: var(--h-44); height: var(--h-44); }
}
@media (hover: none) { .aa-figure:hover .aa-page { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .aa-diapo, .aa-diapo.actif, .aa-groupe .aa-page, .aa-nav { transition: none; transform: none; }
  .aa-figure:hover .aa-page { transform: none; }
  .aa-defile.en-cours .aa-point[aria-current="true"]::after { animation: none; }
}

/* ===== v12 : audit de beauté de Fable (audit-beaute/AUDIT-BEAUTE.md, 17/11). Numéros I (indispensable), S (souhaitable), D (détail).
   Les corrections faites en place portent leur numéro en commentaire ; celles-ci complètent. ===== */
/* S3 : plus de chapeau répété sur les pages d’offre (type.html). */
/* S5 : « Mot de passe oublié » détaché du bouton. */
.formulaire .aide-champ { margin-bottom: var(--sp-16); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
/* S7 : cases et boutons radio à la taille des pictogrammes, à l’encre. */
input[type="checkbox"], input[type="radio"] { width: var(--icone-20); height: var(--icone-20); accent-color: var(--ink); flex: none; margin: 0; }
/* S8 : un seul signe pour tout contenu repliable : chevron à droite du libellé, tourné quand c’est ouvert (menus « … » exclus). */
.missions > summary, .pipeline-groupe.ajout summary, .devis-detail summary, .rappel summary, .accordeon summary { list-style: none; display: flex; align-items: center; gap: var(--sp-4); cursor: pointer; }
.feuille > summary { list-style: none; } /* affiché seulement sous 768 px (règle plus haut) */
.missions > summary::-webkit-details-marker, .pipeline-groupe.ajout summary::-webkit-details-marker, .devis-detail summary::-webkit-details-marker, .rappel summary::-webkit-details-marker, .accordeon summary::-webkit-details-marker, .feuille > summary::-webkit-details-marker { display: none; }
.missions > summary::after, .pipeline-groupe.ajout summary::after, .devis-detail summary::after, .rappel summary::after, .accordeon summary::after, .feuille > summary::after {
  content: ""; flex: none; width: var(--icone-16); height: var(--icone-16); background: var(--label-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 7 L14.5 12 L9.5 17'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 7 L14.5 12 L9.5 17'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--duree) ease; }
.missions[open] > summary::after, .pipeline-groupe.ajout[open] summary::after, .devis-detail[open] summary::after, .rappel[open] summary::after, .accordeon details[open] > summary::after, .feuille[open] > summary::after { transform: rotate(90deg); }
.accordeon summary { justify-content: space-between; }
@media (max-width: 767px) { .feuille > summary { justify-content: space-between; gap: var(--sp-4); } }
@media (prefers-reduced-motion: reduce) { .missions > summary::after, .pipeline-groupe.ajout summary::after, .devis-detail summary::after, .rappel summary::after, .accordeon summary::after, .feuille > summary::after { transition: none; } }
/* S12 : rail replié, compteurs réduits à un point comme celui de la cloche. */
.barre-repliee .barre .pastille { width: var(--sp-8); height: var(--sp-8); top: var(--sp-4); right: var(--sp-8); box-shadow: 0 0 0 var(--trait-2) var(--layer); }
/* S13 : le champ d’ajout ne touche plus la dernière décision. */
.bloc .ajout-regle { margin: var(--sp-16) 0 0; }
/* S14 : contrôle segmenté à la largeur de ses options. */
.segments { width: fit-content; }
/* D2 : « Se connecter » sur l’axe du bouton. */
.page .appel { align-items: center; }
/* D3 : point « nouveau » sur l’axe de la ligne. */
.rangee.nouveau::before { top: 50%; margin-top: calc(var(--sp-12) / -4); }
/* D4 : le téléchargement reste au bord droit, menu ou pas. */
.actions-ligne .menu { order: -1; }
/* D5 : piste du défilé lisible (2:1). */
.aa-point::before { background: var(--label-4); opacity: .4; }
.aa-point:hover::before { opacity: .7; }
/* D6 : compte, « Modifier » au bord droit ; texte de suppression en 14. */
.rubrique .bloc-tete { align-self: stretch; justify-content: space-between; }
.zone-danger p { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
/* D8 : graisse déclarée (fichier Inter 600) ; les pages d’exemple imprimées gardent leur gras d’origine. */
strong, b { font-weight: var(--fw-600); }
.ex-feuille b, .ex-feuille strong, .aa-page b, .aa-page strong { font-weight: 700; }
@media (max-width: 767px) {
  /* S10 : cibles tactiles de 44 px. */
  .barre-bouton, .composeur-envoyer { width: var(--h-44); height: var(--h-44); }
  .missions > summary, .pipeline-groupe.ajout summary, .devis-detail summary, .rappel summary, .accordeon summary, .feuille > summary { min-height: var(--h-44); }
  .liste .btn, .rubrique .btn, .carte .btn, .resume-liste .btn, .decision-actions .btn, .documents .btn, .lignes-conv .btn, .bloc-tete .btn, .puces .btn, .ajout-regle .btn, .menu-liste > a, .menu-liste > button, .menu-liste > form > button { min-height: var(--h-44); }
  .liste .btn-icone, .decision-actions .btn-icone, .ajout-regle .btn-icone { min-width: var(--h-44); }
  /* S11 : marge de page et marge de dalle ne s’additionnent plus. */
  .bloc, .rubrique, .type-corps .service, .panneau, .carte, .cartouche, .carte-arbitrage, .etat-vide, .formulaire, .dalle { padding: var(--sp-16); }
  /* D9 : devis, le suffixe « suggestion » se range sous le nom pour toutes les lignes. */
  .devis-option label { display: grid; grid-template-columns: auto 1fr; column-gap: var(--sp-8); align-items: start; }
  .devis-source { grid-column: 2; }
}

/* v12.2 : pourpre carolingien. Sélection de texte et bouton plein pressé. */
::selection { background: var(--selection); color: var(--label); }
.btn-plein:active { background: var(--ink-actif); border-color: var(--ink-actif); }

/* ===================================================================================================================================
   v12.3 — audit Apple (A1 à A12) et structures de la page iPhone, adaptées à Alcuin (voir INTEGRATION.md « Changements v12.3 »).
   Jetons seulement ; aucun bleu ; rayons 0, --r-sm, --r-md ; focus-visible inchangé (anneau pourpre).
   =================================================================================================================================== */

/* A1 : visiteur sans barre latérale ni barre mobile ; seule une page connectée réserve la place de la barre. */
body:not(.connecte) { padding-left: 0 !important; }
@media (max-width: 767px) { body:not(.connecte) { padding-top: 0 !important; } }

/* Barre globale fine (visiteur) : marque à gauche, trois liens à droite, translucide et collante. */
.entete-visiteur { position: sticky; top: 0; z-index: var(--z-barre); background: var(--voile-barre); -webkit-backdrop-filter: saturate(1.8) blur(var(--sp-16)); backdrop-filter: saturate(1.8) blur(var(--sp-16)); border-bottom: var(--trait) solid var(--filet); }
.entete-int { max-width: var(--largeur-contenu); margin: 0 auto; padding: 0 var(--sp-24); height: var(--h-44); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-24); }
.entete-visiteur .marque { display: inline-flex; align-items: center; min-height: var(--h-44); color: var(--label); text-decoration: none; font-size: var(--fs-24); line-height: var(--lh-24); }
.entete-nav { display: flex; align-items: center; gap: var(--sp-24); }
.entete-nav a { display: inline-flex; align-items: center; min-height: var(--h-44); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); text-decoration: none; transition: color var(--duree) ease; }
.entete-nav a:hover, .entete-nav a[aria-current="page"] { color: var(--label); }
.entete-nav a[aria-current="page"] { font-weight: var(--fw-500); }
@media (max-width: 767px) { .entete-int { padding: 0 var(--sp-16); gap: var(--sp-16); } .entete-nav { gap: var(--sp-16); } }

/* Pied dense en colonnes (visiteur). */
.pied-visiteur { background: var(--layer); border-top: var(--trait) solid var(--filet); }
.pied-int { max-width: var(--largeur-contenu); margin: 0 auto; padding: var(--sp-48) var(--sp-24) var(--sp-64); }
.pied-colonnes { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--sp-32); }
.pied-colonnes h2 { margin: 0 0 var(--sp-12); font-family: var(--font-texte); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-600); color: var(--label); }
.pied-colonnes ul { list-style: none; margin: 0; padding: 0; }
.pied-colonnes ul.pied-types { columns: 2; column-gap: var(--sp-32); }
.pied-colonnes li { margin: 0; break-inside: avoid; }
.pied-colonnes a { display: inline-flex; align-items: center; min-height: var(--sp-24); font-size: var(--fs-12); line-height: var(--lh-12); color: var(--label-2); text-decoration: none; }
.pied-colonnes a:hover { color: var(--label); text-decoration: underline; }
@media (max-width: 767px) { .pied-int { padding: var(--sp-32) var(--sp-24) var(--sp-48); } .pied-colonnes { grid-template-columns: minmax(0, 1fr); gap: var(--sp-24); } .pied-colonnes a { min-height: var(--h-44); } }

/* Accueil : promesse plein écran (A7), sous-barre collante, scènes successives, sections espacées (A8). */
.accueil-visiteur { padding-top: 0; padding-bottom: 0; }
.scene-promesse { min-height: calc(100vh - var(--h-44) * 3); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: var(--sp-96) 0; margin: 0; }
.accueil h1.promesse-titre { font-size: var(--fs-56); line-height: var(--lh-56); letter-spacing: var(--ls-titre-grand); }
.sous-barre { position: sticky; top: var(--h-44); z-index: calc(var(--z-barre) - 1); background: var(--voile-barre); box-shadow: 0 0 0 100vmax var(--voile-barre); clip-path: inset(0 -100vmax); -webkit-backdrop-filter: saturate(1.8) blur(var(--sp-16)); backdrop-filter: saturate(1.8) blur(var(--sp-16)); border-bottom: var(--trait) solid var(--filet); }
.sous-barre-int { display: flex; align-items: center; gap: var(--sp-24); min-height: calc(var(--h-44) + var(--sp-8)); }
.sous-barre-nom { font-family: var(--font-titre); font-variant-numeric: var(--chiffres-titre); font-size: var(--fs-20); line-height: var(--lh-20); color: var(--label); margin-right: auto; }
.sous-barre-liens { display: flex; gap: var(--sp-24); }
.sous-barre-liens a { display: inline-flex; align-items: center; min-height: var(--h-44); font-size: var(--fs-12); line-height: var(--lh-12); color: var(--label-2); text-decoration: none; }
.sous-barre-liens a:hover { color: var(--label); }
.btn.btn-petit { min-height: var(--h-36); padding: 0 var(--sp-12); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.sous-barre-appel { opacity: 0; visibility: hidden; transition: opacity var(--duree) ease, visibility 0s linear var(--duree); }
.sous-barre.avec-appel .sous-barre-appel, .sous-barre-appel:focus-visible { opacity: 1; visibility: visible; transition: opacity var(--duree) ease; }
.scene { min-height: calc(100vh - var(--h-44) * 2); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-48); padding: var(--sp-128) 0; border-bottom: var(--trait) solid var(--filet); scroll-margin-top: calc(var(--h-44) * 2 + var(--sp-8)); }
.scene-texte { max-width: var(--largeur-lecture); margin: 0 auto; text-align: center; }
.accueil h2.scene-titre { margin: 0 0 var(--sp-16); font-family: var(--font-titre) !important; font-variant-numeric: var(--chiffres-titre); font-weight: var(--fw-400) !important; font-synthesis: none; font-size: var(--fs-48) !important; line-height: var(--lh-48) !important; letter-spacing: var(--ls-titre-grand); color: var(--label); }
.scene-ligne { margin: 0; font-size: var(--fs-20); line-height: var(--lh-20); color: var(--label-2); }
.scene-anim { position: relative; width: min(100%, calc(var(--largeur-contenu) - var(--sp-128)), calc((100vh - var(--h-44) * 2 - var(--sp-128) * 2 - var(--sp-96)) * 16 / 9)); min-width: min(100%, var(--largeur-lecture)); margin: 0 auto; aspect-ratio: 16 / 9; background: var(--dalle); border-radius: var(--r-md); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.scene-repli { display: flex; align-items: center; justify-content: center; width: var(--sp-96); height: var(--sp-96); color: var(--label-4); opacity: 0.6; }
.scene-repli .picto { width: var(--sp-96); height: var(--sp-96); stroke-width: 0.75; }
.scene-anim.avec-media .scene-repli { display: none; }
.scene-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-bloc, #etapes { padding-top: var(--sp-96); margin-bottom: 0; scroll-margin-top: calc(var(--h-44) * 2 + var(--sp-8)); }
.accueil-visiteur .etapes-accueil { margin-bottom: 0; }
.appel-final { padding: var(--sp-96) 0 var(--sp-128); }
.appel-final .appel { justify-content: center; align-items: center; }
.offres-prix { margin: var(--sp-24) 0 0; text-align: center; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.chapeau { margin: calc(-1 * var(--sp-8)) 0 var(--sp-32); font-size: var(--fs-20); line-height: var(--lh-20); color: var(--label-2); }
/* Révélation au défilement : la classe revele-pret n’est posée que par le script, hors prefers-reduced-motion ; sans script, tout est visible. */
.revele-pret [data-revele] { opacity: 0; transform: translateY(var(--sp-32)); transition: opacity var(--duree-revele) ease, transform var(--duree-revele) ease; }
.revele-pret [data-revele].revele { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .revele-pret [data-revele] { opacity: 1; transform: none; transition: none; }
  .sous-barre-appel, .carte-choix, .entete-nav a { transition: none; }
}
@media (max-width: 1023px) { .sous-barre-liens { display: none; } }
@media (max-width: 767px) {
  .accueil h1.promesse-titre { font-size: var(--fs-40); line-height: var(--lh-40); }
  .scene-promesse { min-height: calc(100vh - var(--h-44) * 2); padding: var(--sp-64) 0; }
  .scene { min-height: 0; padding: var(--sp-64) 0; gap: var(--sp-32); }
  .accueil h2.scene-titre { font-size: var(--fs-32) !important; line-height: var(--lh-32) !important; }
  .scene-ligne { font-size: var(--fs-16); line-height: var(--lh-16); }
  .scene-anim { aspect-ratio: 4 / 3; }
  .scene-repli, .scene-repli .picto { width: var(--sp-64); height: var(--sp-64); }
  .scene-bloc, #etapes { padding-top: var(--sp-64); }
  .appel-final { padding: var(--sp-64) 0 var(--sp-96); }
  .sous-barre-nom { font-size: var(--fs-16); line-height: var(--lh-16); }
  /* Bandeau d’offres : défilement horizontal, une carte et demie visible (bandeau de comparaison). */
  .bandeau-offres { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--sp-12); padding-bottom: var(--sp-8); }
  .bandeau-offres > li { scroll-snap-align: start; }
}

/* A7 : titres de page plus grands ; A9 : marges mobiles à 24. */
.page > h1, .page-etroite > h1 { font-size: var(--fs-40); line-height: var(--lh-40); letter-spacing: var(--ls-titre-grand); }
@media (max-width: 767px) {
  .page > h1, .page-etroite > h1 { font-size: var(--fs-32); line-height: var(--lh-32); }
  .accueil, .page, .partage { padding-left: var(--sp-24); padding-right: var(--sp-24); }
}


/* Page d’offre : visuel collant à gauche (l’exemple, identique, agrandi), colonne de choix à droite, barre de résumé collante. */
.type-corps { grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--largeur-colonne) + var(--sp-64) + var(--sp-8))); gap: var(--sp-64); }
.type-visuel { position: sticky; top: calc(var(--h-44) + var(--sp-24)); display: flex; align-items: center; justify-content: center; min-height: calc(var(--largeur-colonne) * 2); padding: var(--sp-48); background: var(--dalle); border-radius: var(--r-md); }
.type-visuel .exemple { width: var(--largeur-colonne); margin: 0; zoom: 1.25; }
body.connecte .type-visuel { top: var(--sp-24); }
.type-choix { min-width: 0; }
.type-corps > .type-choix:first-child { grid-column: 1 / -1; max-width: var(--largeur-lecture); }
.etape-titre { margin: 0 0 var(--sp-16); }
h1.etape-titre, h2.etape-titre { font-family: var(--font-titre); font-variant-numeric: var(--chiffres-titre); font-weight: var(--fw-400); font-synthesis: none; font-size: var(--fs-24); line-height: var(--lh-24); letter-spacing: var(--ls-titre); color: var(--label); }
.etape-titre span { color: var(--label-2); }
.barre-resume { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-24); margin-top: var(--sp-48); padding: var(--sp-16) 0; background: var(--voile-barre); box-shadow: 0 0 0 100vmax var(--voile-barre); clip-path: inset(0 -100vmax); -webkit-backdrop-filter: saturate(1.8) blur(var(--sp-16)); backdrop-filter: saturate(1.8) blur(var(--sp-16)); border-top: var(--trait) solid var(--filet); }
.barre-resume-texte { display: flex; flex-direction: column; gap: var(--sp-2); }
.barre-resume-texte strong { font-family: var(--font-titre); font-variant-numeric: var(--chiffres-titre); font-weight: var(--fw-400); font-size: var(--fs-20); line-height: var(--lh-20); }
.barre-resume-texte span { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.barre-resume-actions { display: flex; align-items: center; gap: var(--sp-16); flex-wrap: wrap; justify-content: flex-end; }
.barre-resume-actions .lien-appel { margin-left: 0; }
@media (max-width: 1023px) {
  .type-corps { grid-template-columns: minmax(0, 1fr); gap: var(--sp-32); }
  .type-visuel { position: static; min-height: 0; padding: var(--sp-32) var(--sp-24); }
  .type-visuel .exemple { zoom: 1; }
}
@media (max-width: 767px) {
  .barre-resume { flex-direction: column; align-items: stretch; gap: var(--sp-12); padding: var(--sp-12) 0; }
  .barre-resume-actions { justify-content: space-between; }
}

/* Cartes de choix (offre, options du devis, préréglages) : filet fin, choisie = filet épais d’encre et coche ; focus = anneau. */
.cartes-choix { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-12); }
.cartes-choix > li { margin: 0; }
.carte-choix { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); min-height: calc(var(--h-44) + var(--sp-12)); margin: 0; padding: var(--sp-12) var(--sp-16) var(--sp-12) calc(var(--sp-16) + var(--icone-16) + var(--sp-12)); background: var(--surface); border: var(--trait) solid var(--line-champ); border-radius: var(--r-md); color: var(--label); cursor: pointer; transition: border-color var(--duree) ease, box-shadow var(--duree) ease; }
.carte-choix:hover { box-shadow: var(--ombre-survol); }
.carte-choix::before { content: ""; position: absolute; left: var(--sp-16); top: 50%; width: var(--icone-16); height: var(--icone-16); margin-top: calc(var(--icone-16) / -2); border: var(--trait) solid var(--line-champ); border-radius: var(--r-sm); background: var(--surface); box-sizing: border-box; }
input:checked + .carte-choix { border: var(--trait-2) solid var(--ink); padding: calc(var(--sp-12) - var(--trait)) calc(var(--sp-16) - var(--trait)) calc(var(--sp-12) - var(--trait)) calc(var(--sp-16) + var(--icone-16) + var(--sp-12) - var(--trait)); }
input:checked + .carte-choix::before { left: calc(var(--sp-16) - var(--trait)); background: var(--ink); border-color: var(--ink); }
input:checked + .carte-choix::after { content: ""; position: absolute; left: calc(var(--sp-16) - var(--trait) + var(--sp-4) + var(--sp-2)); top: 50%; width: var(--sp-4); height: var(--sp-8); margin-top: calc(var(--sp-8) / -2 - var(--trait)); border: solid var(--on-ink); border-width: 0 var(--trait-2) var(--trait-2) 0; transform: rotate(45deg); }
input:focus-visible + .carte-choix { outline: var(--trait-2) solid var(--anneau); outline-offset: var(--trait-2); }
div.carte-choix { cursor: default; padding-left: var(--sp-16); flex-wrap: wrap; }
div.carte-choix::before { content: none; }
.carte-choix-nom { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-500); min-width: 0; }
.carte-choix-nom small, .carte-choix-nom .devis-source { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-400); color: var(--label-2); }
.carte-choix-prix { flex: none; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); font-variant-numeric: tabular-nums; color: var(--label-2); white-space: nowrap; }
div.carte-choix .lien-appel { margin-left: 0; }
/* Préréglages : la case reste visible (formulaire existant), la carte en épouse l’état. */
.case.carte-choix, .carte-prereglages label.case.carte-choix { display: flex; justify-content: flex-start; gap: var(--sp-12); padding-left: var(--sp-16); margin-bottom: var(--sp-8); font-size: var(--fs-14); }
.case.carte-choix::before, .case.carte-choix::after { content: none; }
.case.carte-choix input { accent-color: var(--ink); margin: 0; }
.case.carte-choix:has(input:checked) { border: var(--trait-2) solid var(--ink); padding: calc(var(--sp-12) - var(--trait)) calc(var(--sp-16) - var(--trait)); }

/* Mode service (fil) : parcours en quatre étapes, devis en cartes et barre de résumé, détails repliés. */
.parcours { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-12); margin: 0 0 var(--sp-24); padding: 0; font-size: var(--fs-12); line-height: var(--lh-12); color: var(--label-4); }
.parcours-etape { display: inline-flex; align-items: center; gap: var(--sp-8); }
.parcours-etape + .parcours-etape::before { content: ""; width: var(--sp-16); height: var(--trait); background: var(--line-champ); }
.parcours .point { display: inline-block; width: var(--sp-8); height: var(--sp-8); border-radius: var(--r-full); background: var(--surface); border: var(--trait) solid var(--line-champ); box-sizing: border-box; }
.parcours-etape.fait { color: var(--label-2); }
.parcours-etape.fait .point { background: var(--ink); border-color: var(--ink); }
.parcours-etape.courant { color: var(--label); font-weight: var(--fw-600); }
.parcours-etape.courant .point { border: var(--trait-2) solid var(--ink); }
.devis-option.cartes-choix-ligne { display: block; margin: 0 0 var(--sp-8); }
.devis-option .carte-choix { display: flex; }
@media (max-width: 767px) { .devis-option .carte-choix { display: flex; } }
.barre-resume-devis, .barre-resume-carte { grid-column: auto; margin-top: var(--sp-16); padding: var(--sp-12) 0; background: var(--dalle); box-shadow: 0 0 0 var(--sp-24) var(--dalle); clip-path: inset(0 calc(-1 * var(--sp-24))); }
.barre-resume-texte.devis-somme { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--sp-8); }
.devis-somme { margin: 0; font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-600); font-variant-numeric: tabular-nums; }
.devis-somme small { font-weight: var(--fw-400); color: var(--label-2); }
button.lien-appel { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-14); letter-spacing: var(--ls-14); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.details { margin: var(--sp-8) 0 0; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.details > summary { display: inline-flex; align-items: center; min-height: var(--sp-24); cursor: pointer; color: var(--accent); }
.details[open] > summary { margin-bottom: var(--sp-8); }
@media (max-width: 767px) { .details > summary, button.lien-appel, .barre-resume .lien-appel { min-height: var(--h-44); display: inline-flex; align-items: center; } }
/* Fluidité : les blocs du fil apparaissent en fondu court (aucun sous prefers-reduced-motion). */
@media (prefers-reduced-motion: no-preference) {
  .fil > .cartouche, .fil > .carte-arbitrage, .fil > .carte-devis { animation: apparition var(--duree-revele) ease both; }
}
@keyframes apparition { from { opacity: 0; transform: translateY(var(--sp-8)); } to { opacity: 1; transform: none; } }

/* Passerelle pro (accueil connecté) : salutation en grand titre, saisie seule mise en avant, respiration. */
.accueil-client h1.salutation { font-size: var(--fs-40); line-height: var(--lh-40); letter-spacing: var(--ls-titre-grand); margin-bottom: var(--sp-32); }
.accueil-client .derniers { margin-top: var(--sp-48); }
@media (max-width: 767px) { .accueil-client h1.salutation { font-size: var(--fs-32); line-height: var(--lh-32); } }

/* v12.3 — passerelle pro et mode service (audit-apple/PLAN-PRO-SERVICE.md) : mêmes composants, posés une seule fois ci-dessus. */
/* Choix unique (offre connectée, arbitrage, niveau de compte) : témoin rond, point d’encre une fois choisi. */
.carte-choix-radio::before { border-radius: var(--r-full); }
input:checked + .carte-choix-radio::before { background: var(--surface); border: calc(var(--sp-4) + var(--trait)) solid var(--ink); }
input:checked + .carte-choix-radio::after { content: none; }
.carte-choix-nom small { display: block; }
.carte-choix .provisoire { flex: none; }
.cartes-choix-ligne { display: block; margin: 0; }
fieldset.cartes-choix { border: 0; margin: 0 0 var(--sp-16); padding: 0; min-width: 0; }
.choix-arbitrage { margin-top: var(--sp-16); }
.choix-arbitrage .choix, .niveaux .actions { margin-top: var(--sp-16); }
.droits.cartes-choix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .droits.cartes-choix { grid-template-columns: minmax(0, 1fr); } }
.carte-tete .etape-titre + .meta { margin-left: auto; }
.lien-appel + .lien-appel, .btn + .lien-appel { margin-left: var(--sp-16); }
.bloc-tete .lien-appel { margin-left: auto; }
/* Page projet : les onglets forment la sous-barre collante (à côté de la barre latérale ; sous la barre mobile en mobile). */
.onglets-cadre { position: sticky; top: 0; z-index: 6; background: var(--voile-barre); -webkit-backdrop-filter: saturate(1.8) blur(var(--sp-16)); backdrop-filter: saturate(1.8) blur(var(--sp-16)); }
@media (max-width: 767px) { .onglets-cadre { top: var(--h-44); } }
/* Mobile, résumé et saisie (décision finale, 17 nov. 12 h 46, modèle de la barre panier fine) :
   - page d’offre : la barre de résumé est seule en bas (aucune saisie) ;
   - fil (devis à payer, question) : la saisie reste collante en bas ; le résumé se réduit au-dessus à une ligne fine (total ou question + le bouton
     plein), dépliable par le chevron pour les actions secondaires (Modifier, Écarter). --h-saisie : hauteur de la saisie, mesurée par le script.
   Sans script : résumé complet, non replié. */
.resume-deplier { display: none; }
@media (max-width: 767px) {
  .fil .barre-resume-active, .espace .barre-resume-active { position: sticky; bottom: calc(var(--h-saisie, var(--sp-96)) + var(--sp-16)); z-index: 6; }
  .resume-repli .barre-resume-active { flex-wrap: nowrap; padding: var(--sp-8) 0; gap: var(--sp-12); }
  .resume-repli .barre-resume-active .barre-resume-texte { flex-direction: row; align-items: baseline; gap: var(--sp-8); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .resume-repli .barre-resume-active .exemple, .resume-repli .barre-resume-carte .barre-resume-texte span { display: none; }
  .resume-repli .barre-resume-active .barre-resume-actions { flex-wrap: nowrap; gap: var(--sp-8); }
  .resume-repli .barre-resume-active .btn { min-height: var(--h-36); padding: 0 var(--sp-12); font-size: var(--fs-14); }
  .resume-repli .barre-resume-active:not(.deplie) .resume-secondaires { display: none; }
  .resume-repli .barre-resume-active.deplie { flex-wrap: wrap; }
  .resume-repli .barre-resume-active.deplie .resume-secondaires { display: flex; order: -1; flex-basis: 100%; gap: var(--sp-16); }
  .resume-repli .barre-resume-active.deplie .barre-resume-actions { flex-wrap: wrap; flex-basis: 100%; justify-content: flex-end; }
  .resume-repli .barre-resume-active.deplie .resume-secondaires { justify-content: flex-start; }
  .resume-repli .resume-deplier { display: inline-flex; align-items: center; justify-content: center; width: var(--h-44); height: var(--h-44); margin: 0; padding: 0; background: none; border: 0; color: var(--label-2); cursor: pointer; transform: rotate(-90deg); transition: transform var(--duree) ease; }
  .resume-repli .deplie .resume-deplier { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .resume-deplier { transition: none; } }
.barre-resume-texte.devis-somme strong { font-family: var(--font-texte); font-variant-numeric: tabular-nums; font-weight: var(--fw-600); font-size: var(--fs-16); line-height: var(--lh-16); }
.devis-somme [data-total] { font-size: inherit; }
button.lien-appel { text-decoration: none; }
button.lien-appel:hover { text-decoration: underline; }
.type-corps .type-visuel { max-width: none; }
@media (max-width: 767px) {
  .barre-resume { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-16); background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); }
  .barre-resume-texte strong { font-size: var(--fs-16); line-height: var(--lh-16); }
  .barre-resume-actions { margin-left: auto; gap: var(--sp-16); }
  .barre-resume-devis, .barre-resume-carte { background: var(--dalle); box-shadow: 0 0 0 var(--sp-16) var(--dalle); clip-path: inset(0 calc(-1 * var(--sp-16))); }
}
@media (max-width: 767px) { .page > .ariane a, .bloc-tete .lien-appel, .actions .lien-appel { display: inline-flex; align-items: center; min-height: var(--h-44); } }

/* v12.3.1 : scène « Pourquoi Alcuin » : page de manuscrit en minuscule caroline (domaine public), sans légende ; une animation de Fable la remplace. */
.scene-image { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; padding: var(--sp-24) 0; }
.scene-anim.avec-media .scene-image { display: none; }
.scene-alcuin .scene-ligne { font-size: var(--fs-16); line-height: var(--lh-16); }

/* ===================================================================================================================================
   v12.3.2 — animations de l’accueil visiteur (Fable, assets/animations/). Dessins SVG en ligne, CSS seulement ; jetons seulement.
   Le CSS décrit le dessin achevé (état fixe = « poster ») ; le mouvement ne joue que si <html> porte .anim-pret (posé par alcuin.js quand
   le mouvement est admis) et quand l’emplacement porte .vu (40 % du dessin visible). Une fois joué, il ne rejoue pas.
   Repris de assets/animations/_commun/animations.css (sans la mise en page propre à la prévisualisation de Fable) et des section.css.
   =================================================================================================================================== */
.scene-anim {
  --a-pas: var(--duree);
  --a-courbe: cubic-bezier(.2, .7, .2, 1);
  --a-course: var(--sp-12);
  --a-texte-gris: color-mix(in srgb, var(--encre) 20%, var(--surface));
  --a-texte-fort: color-mix(in srgb, var(--encre) 55%, var(--surface));
  --a-largeur-scene: 100%;
}
.scene-anim > .anim-scene { display: block; width: 100%; height: 100%; max-width: 100%; padding: var(--sp-32) var(--sp-48); overflow: visible; }
.anim-scene text { user-select: none; -webkit-user-select: none; }
@media (max-width: 767px) { .scene-anim > .anim-scene { padding: var(--sp-16); } }
/* ===== Dessin : couleurs et traits (les coordonnées et dimensions du dessin sont dans les SVG, en unités du viewBox) ===== */
/* Papier, reliures, couvertures */
.d-papier { fill: var(--surface); stroke: var(--line); stroke-width: var(--trait); vector-effect: non-scaling-stroke; }
.d-velin { fill: var(--pane); stroke: var(--line-champ); stroke-width: var(--trait); vector-effect: non-scaling-stroke; }
.d-toile { fill: var(--couv); stroke: var(--line-champ); stroke-width: var(--trait); vector-effect: non-scaling-stroke; }
.d-reliure { fill: var(--encre); }
.d-reliure-2 { fill: var(--pourpre-900); }
.d-reliure-3 { fill: var(--label-4); }
.d-reliure-4 { fill: var(--pourpre-800); }
.d-couverture, .d-pourpre { fill: var(--pourpre-700); }
.d-pourpre-fonce { fill: var(--pourpre-900); }
.d-pourpre-clair { fill: var(--pourpre-100); }
.d-teinte { fill: var(--fond-teinte); }
.d-blanc { fill: var(--surface); }
.d-nerf { fill: var(--a-texte-fort); }
.d-ombre { fill: var(--filet); }
.d-planche { fill: var(--couv); }
/* Filets fins (1 px quelle que soit l’échelle) */
.d-filet { fill: none; stroke: var(--line); stroke-width: var(--trait); vector-effect: non-scaling-stroke; }
.d-filet-fort { fill: none; stroke: var(--line-champ); stroke-width: var(--trait); vector-effect: non-scaling-stroke; }
.d-trait { fill: none; stroke: var(--encre); stroke-width: var(--trait); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* Traits à l’échelle du dessin (épaisseur donnée dans le SVG) */
.d-lignes { fill: none; stroke: var(--a-texte-gris); stroke-linecap: round; }
.d-lignes-fortes { fill: none; stroke: var(--a-texte-fort); stroke-linecap: round; }
.d-lignes-pourpres { fill: none; stroke: var(--pourpre-700); stroke-linecap: round; stroke-linejoin: round; }
.d-lignes-blanches { fill: none; stroke: var(--on-ink); stroke-linecap: round; stroke-linejoin: round; }
.d-lignes-claires { fill: none; stroke: var(--pourpre-400); stroke-linecap: round; stroke-linejoin: round; }
.d-fil { fill: none; stroke: var(--line); stroke-linecap: round; }
/* Lettres : Arno, jamais de graisse ni de petites capitales synthétiques */
.d-glyphe { font-family: var(--font-titre); font-weight: var(--fw-400); font-synthesis: none; font-feature-settings: normal; letter-spacing: 0; fill: var(--encre); }
.d-glyphe-pourpre { fill: var(--pourpre-700); }
.d-italique { font-style: italic; }
.d-pc { font-variant-caps: small-caps; }
/* État fixe des éléments de passage (visibles seulement pendant l’animation) */
.k-sort, .k-passe { opacity: 0; }

/* ===== Mouvement ===== */
@media (prefers-reduced-motion: no-preference) {
  .anim-pret :is(.k-fondu, .k-monte, .k-descend, .k-glisse, .k-pousse, .k-etire, .k-deroule, .k-trace, .k-sort, .k-passe, .k-propre) {
    animation-duration: calc(var(--n, 4) * var(--a-pas)); animation-delay: calc(var(--i, 0) * var(--a-pas));
    animation-timing-function: var(--a-courbe); animation-fill-mode: backwards; animation-play-state: paused; }
  .anim-pret .vu :is(.k-fondu, .k-monte, .k-descend, .k-glisse, .k-pousse, .k-etire, .k-deroule, .k-trace, .k-sort, .k-passe, .k-propre) { animation-play-state: running; }
  .anim-pret .k-lineaire { animation-timing-function: linear; }
  .anim-pret .k-fondu { animation-name: a-fondu; }
  .anim-pret .k-monte { animation-name: a-monte; }
  .anim-pret .k-descend { animation-name: a-descend; }
  .anim-pret .k-glisse { animation-name: a-glisse; }
  .anim-pret .k-pousse { animation-name: a-pousse; transform-box: fill-box; transform-origin: center; }
  .anim-pret .k-etire { animation-name: a-etire; transform-box: fill-box; transform-origin: left center; }
  .anim-pret .k-etire.k-du-centre { transform-origin: center; }
  .anim-pret .k-deroule { animation-name: a-deroule; transform-box: fill-box; transform-origin: center top; }
  .anim-pret .k-trace { animation-name: a-trace; stroke-dasharray: 1; }
  .anim-pret .k-sort { animation-name: a-sort; }
}
@keyframes a-fondu { from { opacity: 0; } }
@keyframes a-monte { from { opacity: 0; transform: translateY(var(--a-course)); } }
@keyframes a-descend { from { opacity: 0; transform: translateY(calc(var(--a-course) * -1)); } }
@keyframes a-glisse { from { opacity: 0; transform: translateX(calc(var(--a-course) * 2)); } }
@keyframes a-pousse { from { opacity: 0; transform: scale(.4); } }
@keyframes a-etire { from { transform: scaleX(0); } }
@keyframes a-deroule { from { transform: scaleY(0); } }
@keyframes a-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes a-sort { from { opacity: 1; } to { opacity: 0; } }

/* --- suivi (assets/animations/suivi/section.css) --- */
/* 01 — Le suivi. Rien de propre à cette scène : elle n’emploie que les mouvements communs (k-monte, k-trace, k-pousse). */
.anim-suivi .anim-scene { max-width: var(--a-largeur-scene); }
/* --- regles (assets/animations/regles/section.css) --- */
/* 02 — Les règles de la maison. Mouvements communs seulement (k-sort, k-trace, k-fondu, k-pousse). */
/* --- typographie (assets/animations/typographie/section.css) --- */
/* 03 — L’art typographique. Le tracé régulateur reste visible une fois le texte en place, estompé. */
.typo-trace { opacity: var(--opacite-inactif); }
/* --- rigueur (assets/animations/rigueur/section.css) --- */
/* 04 — La rigueur de l’édition savante. Mouvements communs seulement (k-fondu, k-etire, k-trace, k-pousse). */
/* --- relecture (assets/animations/relecture/section.css) --- */
/* 05 — La relecture et son suivi. Bande de lecture : traverse la double page de haut en bas, puis disparaît (état fixe : absente, .k-passe). */
.relecture-passe { mix-blend-mode: multiply; }
.relecture-troisieme { stroke: var(--pourpre-900); }
@media (prefers-reduced-motion: no-preference) {
  .anim-pret .relecture-passe { animation-name: a-relecture-passe; }
}
@keyframes a-relecture-passe {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--sp-48) * 6)); }
}
/* --- main (assets/animations/main/section.css) --- */
/* 06 — Garder la main. La manicule passe d’une question à l’autre et désigne la réponse retenue.
   Courses en jetons : les questions sont espacées de (--sp-64 + --sp-48), les deux réponses d’une question de (--sp-32 + --sp-8). */
.main-choix { stroke: var(--line-champ); }
.main-peau { fill: var(--surface); stroke: var(--encre); stroke-width: var(--trait); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.anim-main {
  --main-q1: calc((var(--sp-64) + var(--sp-48)) * -2);   /* première question, première réponse */
  --main-q2: calc((var(--sp-64) + var(--sp-8)) * -1);    /* deuxième question, seconde réponse */
  --main-appui: calc(var(--sp-4) * -1);                  /* léger appui sur la réponse */
}
@media (prefers-reduced-motion: no-preference) {
  .anim-pret .main-geste { animation-name: a-main-geste; animation-timing-function: ease-in-out; }
}
@keyframes a-main-geste {
  0% { opacity: 0; transform: translate(var(--sp-48), var(--main-q1)); }
  10% { opacity: 1; transform: translate(0, var(--main-q1)); }
  15% { opacity: 1; transform: translate(var(--main-appui), var(--main-q1)); }
  20%, 30% { opacity: 1; transform: translate(0, var(--main-q1)); }
  45% { opacity: 1; transform: translate(0, var(--main-q2)); }
  50% { opacity: 1; transform: translate(var(--main-appui), var(--main-q2)); }
  55%, 65% { opacity: 1; transform: translate(0, var(--main-q2)); }
  80% { opacity: 1; transform: translate(0, 0); }
  85% { opacity: 1; transform: translate(var(--main-appui), 0); }
  90%, 100% { opacity: 1; transform: translate(0, 0); }
}
/* --- beaute (assets/animations/beaute/section.css) --- */
/* 07 — La beauté du résultat. L’ouvrage s’ouvre : le plat supérieur pivote sur le dos (largeur ramenée à zéro), la moitié gauche se déploie de l’autre côté,
   et l’ouvrage, d’abord centré fermé, se recentre ouvert. État fixe : ouvert, plat supérieur absent. */
.beaute-plat { opacity: 0; }
.anim-beaute { --beaute-recentrage: calc((var(--sp-64) + var(--sp-32) + var(--sp-8)) * -1); }   /* demi-largeur d’une page */
@media (prefers-reduced-motion: no-preference) {
  .anim-pret .beaute-ouvrage { animation-name: a-beaute-recentre; animation-timing-function: ease-in-out; }
  .anim-pret .beaute-plat { animation-name: a-beaute-plat; transform-box: fill-box; transform-origin: left center; }
  .anim-pret .beaute-gauche { animation-name: a-beaute-gauche; transform-box: fill-box; transform-origin: right center; }
}
@keyframes a-beaute-recentre { from { transform: translateX(var(--beaute-recentrage)); } }
@keyframes a-beaute-plat {
  0% { opacity: 1; transform: scaleX(1); animation-timing-function: ease-in; }
  50% { opacity: 1; transform: scaleX(0); }
  51%, 100% { opacity: 0; transform: scaleX(0); }
}
@keyframes a-beaute-gauche {
  0%, 50% { transform: scaleX(0); animation-timing-function: ease-out; }
  100% { transform: scaleX(1); }
}

/* ── v12.3.2 (Athanase, 13 h 11) : gros plan remplissant par défaut, vue d’ensemble au clic ─────────────────────────────
   gp-pret n’est posé que par alcuin.js : sans script, le média reste entier, sans recadrage. Le cadre garde sa taille ;
   le média (premier enfant) est placé et agrandi par le script pour couvrir 100 % du cadre autour du point d’intérêt.
   Cela remplace « signaler plutôt que rogner » pour les exemples : l’ensemble reste accessible par l’agrandissement. */
.gp-pret .gros-plan { position: relative; overflow: hidden; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.gp-pret .gros-plan:not([data-gros-plan-mode="place"]) > :first-child { position: absolute; left: 0; top: 0; margin: 0; max-width: none; transform-origin: 0 0; }
.gp-pret .scene-anim.gros-plan > .anim-scene { width: 100%; height: auto; max-width: none; padding: 0; }
.gp-pret .scene-anim.gros-plan > .scene-image { width: 100%; height: auto; padding: 0; object-fit: fill; }
.gp-pret .type-visuel.gros-plan { padding: 0; }
.gp-pret .type-visuel.gros-plan .exemple { zoom: 1; }
.gp-pret .aa-figure.gros-plan > .aa-groupe { transition: transform var(--duree) ease; }
/* Indice discret d’agrandissement (coin bas droit), comme le « + » des visuels Apple. */
.gp-pret .gros-plan::after { content: ""; position: absolute; right: var(--sp-12); bottom: var(--sp-12); width: var(--icone-24); height: var(--icone-24); border-radius: var(--r-sm); background: linear-gradient(var(--encre), var(--encre)) center / 50% var(--trait) no-repeat, linear-gradient(var(--encre), var(--encre)) center / var(--trait) 50% no-repeat, var(--voile-barre); box-shadow: inset 0 0 0 var(--trait) var(--filet); opacity: .7; transition: opacity var(--duree) ease; pointer-events: none; }
.gp-pret .gros-plan:hover::after, .gp-pret .gros-plan:focus-visible::after { opacity: 1; }
@media (max-width: 767px) { .gp-pret .type-visuel.gros-plan { aspect-ratio: 4 / 3; } }

/* Vue d’ensemble : plein écran sobre, média entier (contain, calculé par le script), Échap, clic hors image ou « Fermer ». */
.agrandi { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: var(--sp-64) var(--sp-32) var(--sp-32); border: 0; background: var(--bg); color: var(--ink); }
.agrandi[open] { display: flex; align-items: center; justify-content: center; }
.agrandi::backdrop { background: var(--bg); }
.agrandi-fermer { position: absolute; top: var(--sp-16); right: var(--sp-24); }
.agrandi-boite { position: relative; flex: none; cursor: default; }
.agrandi-boite > * { position: absolute; left: 0; top: 0; margin: 0; max-width: none; transform-origin: 0 0; }
.agrandi-boite > .anim-scene { padding: 0; overflow: hidden; }
.agrandi-boite > .aa-groupe .aa-page { transform: none; }
.agrandi-boite .anim-scene, .agrandi-boite .anim-scene * { animation: none !important; }
.agrandi-boite {
  --a-texte-gris: color-mix(in srgb, var(--encre) 20%, var(--surface));
  --a-texte-fort: color-mix(in srgb, var(--encre) 55%, var(--surface));
}
.agrandi-ouvert, .agrandi-ouvert body { overflow: hidden; }
@media (max-width: 767px) { .agrandi { padding: var(--sp-64) var(--sp-16) var(--sp-16); } }
@media (prefers-reduced-motion: reduce) { .gp-pret .gros-plan::after, .gp-pret .aa-figure.gros-plan > .aa-groupe { transition: none; } }

/* ── v12.3.3 (Athanase, 13 h 32 : « Minimum de texte !!! », « Privilégie les symboles à la mode Apple ») ─────────────────
   Pictos du sprite unique (templates/_pictos.html) : trait régulier arrondi, monochromes (couleur du texte ou pourpre).
   Un picto seul porte toujours un nom accessible (aria-label ou texte .lecteur) et une infobulle (data-tip). */
/* Picto dans une ligne de texte : aligné sur la ligne de base de l’Arno. */
.ariane a[data-picto], .fenetre-pied a[data-picto], .ajout-service a[data-picto], button.lien-appel[data-picto], .bloc-tete .btn[data-picto], .lien-copie .btn[data-picto], .projet-outils .btn[data-picto], .regles-saisie ~ .btn[data-picto], .champ .btn[data-picto] { display: inline-flex; align-items: center; gap: var(--sp-4); }
.ariane .picto, .fenetre-pied .picto, .ajout-service .picto, button.lien-appel .picto { width: 1.15em; height: 1.15em; }
/* Lien ou bouton réduit à son picto. */
.lien-picto { display: inline-flex; align-items: center; justify-content: center; min-width: var(--h-36); min-height: var(--h-36); margin-left: 0; color: var(--accent); text-decoration: none; border-radius: var(--r-sm); }
.lien-picto:hover { background: var(--pane); text-decoration: none; }
.lien-picto .picto { width: var(--icone-20); height: var(--icone-20); }
.lien-appel.lien-picto + .lien-appel.lien-picto, .btn + .lien-appel.lien-picto { margin-left: var(--sp-4); }
.bloc-tete .lien-picto { margin-left: auto; }
.msg.etat .lien-picto, .rappel .lien-picto { min-width: var(--icone-24); min-height: var(--icone-24); vertical-align: middle; }
@media (max-width: 767px) { .lien-picto { min-width: var(--h-44); min-height: var(--h-44); } }
/* Statuts : picto seul (le mot en infobulle et pour les lecteurs d’écran). */
.statut-pastille[data-picto] { display: inline-flex; align-items: center; vertical-align: -0.2em; padding: 0; background: none; box-shadow: none; color: var(--label-2); }
.statut-pastille[data-picto] .picto { width: var(--icone-16); height: var(--icone-16); }
.statut-pastille.agir[data-picto] { color: var(--accent); background: none; }
.statut-pastille.cours[data-picto] { color: var(--label-2); }
.etat-service .picto { width: var(--icone-16); height: var(--icone-16); }
/* Parcours : un picto par temps ; seul le temps courant garde son mot. */
.parcours .point { display: inline-flex; width: auto; height: auto; border: 0; background: none; border-radius: 0; color: var(--label-4); }
.parcours .point .picto { width: var(--icone-16); height: var(--icone-16); }
.parcours-etape.fait .point { background: none; color: var(--ink); }
.parcours-etape.courant .point { border: 0; color: var(--ink); }
.parcours-etape.courant .point .picto { stroke-width: 1.75; }
/* Détails, délai, suggestion, invité. */
.details-picto > summary { display: inline-flex; align-items: center; justify-content: center; min-width: var(--icone-24); min-height: var(--icone-24); color: var(--accent); }
.details-picto > summary .picto { width: var(--icone-16); height: var(--icone-16); }
.contexte.delai { display: inline-flex; align-items: center; gap: var(--sp-4); }
.contexte.delai .picto { width: var(--icone-16); height: var(--icone-16); color: var(--label-2); }
.devis-source { display: inline-flex; vertical-align: -0.15em; margin-left: var(--sp-4); color: var(--accent); }
.devis-source .picto { width: var(--icone-16); height: var(--icone-16); }
.fiche-invite dt[data-picto] { display: inline-flex; align-items: center; color: var(--label-2); }
.fiche-invite dt[data-picto] .picto { width: var(--icone-16); height: var(--icone-16); }
/* Onglets du projet : picto seul, l’onglet courant garde son mot. */
.onglets a[data-picto] { display: inline-flex; align-items: center; gap: var(--sp-4); }
.onglets a[data-picto] .picto { width: var(--icone-20); height: var(--icone-20); }
/* Résumés repliables réduits à leur picto. */
summary[data-picto]:not(:has(.lecteur)) { display: inline-flex; align-items: center; gap: var(--sp-4); }
summary[data-picto] .picto { width: var(--icone-16); height: var(--icone-16); }
.carte-choix-nom:has(> .devis-source) { flex-direction: row; align-items: center; flex-wrap: wrap; }

/* ——— v12.4 : surcouche « pro-service » de Fable fondue ici (aucune feuille parallèle) ; décisions de la Direction du 17 nov. ———
   Les règles déjà présentes (en-tête visiteur, pied, cartes de choix, barre de résumé, onglets collants, détails repliés) ne sont pas redoublées. */
/* Parcours sur la page du projet (partiel unique _parcours.html, variante large). */
.parcours.large { margin: var(--sp-16) 0 var(--sp-16); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); }
.parcours.large .point .picto { width: var(--icone-20); height: var(--icone-20); }
/* Fil, mobile : le parcours reste à l’écran sous la barre du haut. */
@media (max-width: 767px) {
  .fil .parcours { position: sticky; top: var(--h-44); z-index: 6; margin-left: calc(var(--sp-16) * -1); margin-right: calc(var(--sp-16) * -1); padding: var(--sp-8) var(--sp-16);
    background: var(--voile-barre); -webkit-backdrop-filter: saturate(1.8) blur(var(--sp-16)); backdrop-filter: saturate(1.8) blur(var(--sp-16)); border-bottom: var(--trait) solid var(--filet); }
}
/* Action de ligne : un lien (mot + chevron), plus un bouton à contour. */
.lien-ligne { display: inline-flex; align-items: center; gap: var(--sp-2); margin-left: 0; min-height: var(--h-36); font-weight: var(--fw-500); color: var(--accent); white-space: nowrap; }
.lien-ligne:hover { text-decoration: underline; }
.lien-ligne .picto { width: var(--icone-16); height: var(--icone-16); }
@media (max-width: 767px) { .lien-ligne { min-height: var(--h-44); } }
/* Accueil connecté : « À vous », une carte par projet qui attend le client. */
.suite-accueil { display: flex; flex-direction: column; gap: var(--sp-32); margin-top: var(--sp-48); scroll-margin-top: var(--sp-16); }
.suite-accueil .derniers { margin-top: 0; }
.a-vous { display: flex; flex-direction: column; gap: var(--sp-16); }
.a-vous .etape-titre { margin: 0; }
.cartes-action { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-12); }
.carte-action { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-12); min-height: calc(var(--h-44) + var(--sp-32)); padding: var(--sp-16);
  border: var(--trait) solid var(--line-champ); border-radius: var(--r-md); background: var(--surface); color: var(--label); }
.carte-action:hover { border-color: var(--ink); text-decoration: none; }
.carte-action .projet-nom { display: flex; flex-direction: column; min-width: 0; }
.carte-action .projet-titre { font-weight: var(--fw-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-action .projet-auteur { font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.carte-action-appel { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); font-weight: var(--fw-500); color: var(--accent); white-space: nowrap; }
.carte-action-appel .picto { width: var(--icone-16); height: var(--icone-16); }
@media (max-width: 767px) { .cartes-action { grid-template-columns: minmax(0, 1fr); } }
/* Compte : rubriques sans dalle, sous-navigation collante en pictos, pied (Se déconnecter ; suppression repliée). */
.compte > h1 { margin-bottom: var(--sp-8); }
.sous-nav { position: sticky; top: 0; z-index: 6; display: flex; gap: var(--sp-8); margin-bottom: var(--sp-8); border-bottom: var(--trait) solid var(--filet);
  background: var(--voile-barre); -webkit-backdrop-filter: saturate(1.8) blur(var(--sp-16)); backdrop-filter: saturate(1.8) blur(var(--sp-16)); }
.sous-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--h-44); min-height: var(--h-44); color: var(--label-2); }
.sous-nav a:hover, .sous-nav a[aria-current] { color: var(--label); text-decoration: none; }
.sous-nav a[aria-current] { box-shadow: inset 0 calc(var(--trait-2) * -1) 0 var(--ink); color: var(--ink); }
.sous-nav .picto { width: var(--icone-20); height: var(--icone-20); }
.compte .rubrique { margin: 0; padding: var(--sp-24) 0; border: 0; border-bottom: var(--trait) solid var(--filet); border-radius: 0; background: none; box-shadow: none; scroll-margin-top: calc(var(--h-44) + var(--sp-8)); }
.compte .rubrique .bloc-tete { align-items: center; margin: 0 0 var(--sp-8); }
.compte-pied { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-24); margin-top: var(--sp-24); }
.compte-pied form { margin: 0; }
.compte-pied .lien-appel { margin-left: 0; }
.repli > summary { display: inline-flex; align-items: center; min-height: var(--h-36); cursor: pointer; list-style: none; font-size: var(--fs-14); letter-spacing: var(--ls-14); line-height: var(--lh-14); color: var(--label-2); }
.repli > summary::-webkit-details-marker { display: none; }
.repli > summary:hover, .repli[open] > summary { color: var(--label); text-decoration: underline; text-underline-offset: 0.2em; }
.compte-pied .repli { text-align: right; }
.compte-pied .repli .meta { margin: var(--sp-8) 0 var(--sp-12); max-width: var(--largeur-formulaire); }
/* Compte, modifier : « Enregistrer » reste à l’écran ; « Annuler » est un lien. */
.actions-collantes { position: sticky; bottom: 0; z-index: 5; justify-content: flex-end; align-items: center; gap: var(--sp-16); padding: var(--sp-12) 0; border-top: var(--trait) solid var(--filet);
  background: var(--voile-barre); -webkit-backdrop-filter: saturate(1.8) blur(var(--sp-16)); backdrop-filter: saturate(1.8) blur(var(--sp-16)); }
.actions-collantes .lien-appel { margin-left: 0; }
@media (max-width: 767px) {
  .sous-nav { top: var(--h-44); }
  .compte .rubrique { scroll-margin-top: calc(var(--h-44) * 2 + var(--sp-8)); }
  .compte-pied { flex-direction: column; }
  .compte-pied .repli { text-align: left; }
  .repli > summary { min-height: var(--h-44); }
  .actions-collantes { padding-bottom: calc(var(--sp-12) + env(safe-area-inset-bottom)); }
}
/* Mouvements légers (Fable), seulement si l’utilisateur ne les a pas réduits : fondu entre pages, arrivée des cartes « À vous », total qui change. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--duree); }
  .connecte .barre { view-transition-name: barre; }
  .carte-action { animation: arrivee-v124 calc(var(--duree) * 2) ease both; transition: border-color var(--duree) ease; }
  .cartes-action li:nth-child(2) .carte-action { animation-delay: calc(var(--duree) / 2); }
  @keyframes arrivee-v124 { from { opacity: 0; transform: translateY(var(--sp-8)); } }
  .barre-resume strong.change { animation: change-v124 calc(var(--duree) * 2) ease; }
  @keyframes change-v124 { from { opacity: 0; transform: translateY(var(--sp-4)); } }
  .repli[open] > :not(summary) { animation: arrivee-v124 var(--duree) ease both; }
}

/* ——— v12.4 : scènes « Héritage » (08-heritage refaite) et « Alcuin » (film) de Fable ——— */
/* 08 — L’héritage. Frise de six tablettes (scriptorium carolingien, codex à fermoirs, Heures du XIVᵉ, typographes, éditeurs, ouvrages d’aujourd’hui) :
   deux rayons de trois, à toutes les largeurs : la frise remplit le cadre du gros plan sans perdre d’époque. Mouvements communs seulement. */
.scene-anim > .heritage-frise, .heritage-frise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-16) var(--sp-8); align-items: end; max-width: none; }
.heritage-tablette { display: block; width: 100%; height: auto; overflow: visible; }
.heritage-feuille { fill: var(--pourpre-400); }
/* Alcuin : feuillet filmé. État fixe : l’affiche (dernier instant du film). Mouvement admis : le film une fois (.joue), puis l’affiche (.fini). */
.scene-anim > .anim-feuillet, .anim-feuillet { display: grid; background: var(--surface); border: var(--trait) solid var(--line); border-radius: var(--r-sm); box-shadow: var(--ombre-1); overflow: hidden; }
.anim-affiche, .anim-film { grid-area: 1 / 1; display: block; width: 100%; height: auto; }
.anim-film { visibility: hidden; }
.anim-film.joue { visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .anim-pret .anim-feuillet:not(.fini) .anim-affiche { visibility: hidden; } }
/* Vue d’ensemble : le feuillet montre toujours son affiche, jamais un film figé. */
.agrandi-boite .anim-affiche { visibility: visible !important; }
.agrandi-boite .anim-film { display: none; }

/* ——— v12.4.1 (Athanase, 14 h 24 : « personnalisation du livre et de la charte ») ——— */
/* Offre : chaque carte de service porte un picto « réglage » discret (décoratif) : le service s’ajuste à l’ouvrage. */
.carte-choix-reglage { margin-left: auto; display: inline-flex; color: var(--label-4); }
.carte-choix-reglage .picto { width: var(--icone-16); height: var(--icone-16); }
.carte-choix:has(input:checked) .carte-choix-reglage, .cartes-choix-ligne input:checked + .carte-choix .carte-choix-reglage { color: var(--ink); }

/* ——— v12.5 : films v2 de l’accueil (gros plan en object-fit: cover ; vue d’ensemble en contain) ——— */
.gp-pret .scene-anim.gros-plan[data-gros-plan-mode="remplir"] > .anim-film-cadre { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.anim-film-cadre > .anim-affiche, .anim-film-cadre > .anim-film { width: 100%; height: 100%; object-fit: cover; }
.gp-pret .scene-anim.gros-plan[data-gros-plan-mode="remplir"] > .anim-film-cadre { display: block; }
.gp-pret .scene-anim.gros-plan[data-gros-plan-mode="remplir"] > .anim-film-cadre > :is(.anim-affiche, .anim-film) { position: absolute; inset: 0; }
.agrandi-boite .anim-film-cadre > .anim-affiche { object-fit: contain; }
/* v12.5 : pictos v2 sur la ligne de base de l’Arno. Les titres de type alignaient le picto au centre de la boîte de ligne : le pied du tracé
   (y = 20 sur la grille 24) flottait à 4,8 px au-dessus de la ligne de base. Alignement sur la ligne de base, puis descente d’un sixième du picto. */
.page.type h1 { align-items: baseline; }
.page.type h1 .picto.titre { vertical-align: calc(var(--icone-32) / -6); }

/* Source-bound excerpts in a pending reading arbitration. */
.reading-reconciliation { min-width: 0; max-width: 100%; }
.reading-reconciliation blockquote { margin: var(--sp-12) 0; }
.reading-quote { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
