/* ==========================================================================
   Meriane Back · compléments de la direction finale
   Ce que les maquettes ne dessinent pas : la fiche (panneau de droite), les messages, l'alerte d'écriture,
   les saisies sur place, le geste des fiches de tâche, le fil (supprimer sa note), le journal replié,
   et les gestes propres à l'application (Comparer avec la jauge, la fiche d'un compte, le coffre, l'envoi de fichiers).
   Uniquement les variables de systeme.css ; aucune couleur en dur hors des ombres.
   ========================================================================== */

.zone { display: contents; }
:focus-visible { outline: 2px solid var(--sauge); outline-offset: 2px; }
button { cursor: pointer; }
.cache { display: none !important; }

/* Boutons rendus comme des liens ou des cartes */
.lien-ligne, .relance__nom, .identite__remplir, .panneau-fiche__retour {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
button.reseau__nom { padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.reseau__tete > div { min-width: 0; }
.reseau__compte { overflow-wrap: anywhere; }
/* La bascule faite de boutons (la maquette dessine des liens) */
button.bascule__choix { border: 0; background: transparent; font-family: inherit; }
button.bascule__choix.bascule__choix--actif { background: var(--papier); }
.lien-ligne:hover, .relance__nom:hover, .reseau__nom:hover { text-decoration: underline; }
.legende__ligne, .accueil-nouveau, .accueil-echeance, .identite__note { color: inherit; text-decoration: none; }
a.legende__ligne:hover, a.accueil-nouveau:hover { text-decoration: underline; }
.bouton--danger { border-color: var(--terre-fonce); background: var(--terre-fonce); color: #fff; }
.bouton--danger:hover { border-color: var(--encre); background: var(--encre); }
.bouton:disabled { opacity: .55; cursor: default; }
.champ__aide--alerte { color: var(--terre-fonce); font-weight: 600; }
.alerte-texte { color: var(--terre-fonce); font-weight: 600; }
.picto--retour { transform: rotate(180deg); }

/* Entrée : erreur, œil du mot de passe, prénom choisi au clavier */
.entree__erreur { min-height: 1.3em; font-size: var(--taille-petit); font-weight: 600; color: var(--terre-fonce); text-align: center; }
.avec-oeil { position: relative; display: block; }
.avec-oeil .champ__saisie { padding-right: 48px; }
.oeil { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; transform: translateY(-50%); border: 0; border-radius: 9px; background: none; color: var(--encre-douce); }
.oeil[aria-pressed="true"] { color: var(--sauge-fonce); background: var(--sauge-pale); }
.entree__prenom:focus-within { outline: 2px solid var(--sauge); outline-offset: 2px; }

/* Menu : un bouton qui ressemble au lien de sortie, l'atelier à venir */
button.menu__sortie { padding: 0; border: 0; background: none; font: inherit; font-size: var(--taille-petit); color: var(--sur-foret-doux); text-decoration: underline; text-align: left; }
/* « Installer l'application » : un vrai bouton collé en bas du menu, visible sans faire défiler quelle que soit la hauteur de l'écran. */
.menu__pied { position: sticky; bottom: 0; z-index: 1; margin: var(--e-4) calc(-1 * var(--e-4)) calc(-1 * var(--e-5)); padding: var(--e-3) var(--e-4) var(--e-4); background: var(--foret); border-top: 1px solid rgba(245, 240, 230, .12); }
.menu__installer { display: flex; align-items: center; justify-content: center; gap: var(--e-2); width: 100%; min-height: 42px; padding: 8px var(--e-3); border: 1px solid rgba(245, 240, 230, .32); border-radius: 10px; background: rgba(245, 240, 230, .06); color: var(--ecru); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.menu__installer .picto { width: 18px; height: 18px; flex: none; color: var(--accent-or); }
.menu__installer:hover { background: rgba(245, 240, 230, .12); border-color: rgba(245, 240, 230, .5); }
@media (max-width: 860px) {
  /* Au téléphone : en tête du menu ouvert, pour ne pas avoir à descendre tout en bas. */
  .menu__pied { display: none; position: static; order: 1; flex-basis: 100%; margin: 0; padding: var(--e-3) 0 0; border-top: 0; }
  .menu__corps { order: 2; }
  .menu__case:checked ~ .menu__pied { display: block; }
}
/* Les cartes des réseaux, quand elles sont étroites : le logo et l'état sur une ligne, le nom en dessous sur toute la largeur. */
.reseau { container-type: inline-size; }
@container (max-width: 250px) {
  .reseau__tete { flex-wrap: wrap; row-gap: var(--e-2); }
  .reseau__tete > div { order: 3; flex: 1 1 100%; }
  .reseau__tete .pastille { align-self: center; }
}
.menu__lien--bientot { cursor: default; }
.menu__lien--bientot:hover { background: none; }
.bandeau__retour { color: inherit; }

/* Saisie sur place (repères, titres, détails) */
.sur-place-cible { cursor: text; }
.sur-place-cible:hover { text-decoration: underline dotted var(--trait-fort); text-underline-offset: 4px; }
.saisie-sur-place { width: 100%; min-width: 0; padding: 7px 11px; border: 1.5px solid var(--sauge); border-radius: 10px; background: var(--papier); color: var(--encre); font: inherit; box-shadow: 0 0 0 3px rgba(94, 106, 76, .18); outline: none; }
.saisie-sur-place--long { min-height: 96px; resize: vertical; font: 15px/1.45 var(--police-texte); }
.bandeau .saisie-sur-place { color: var(--encre); }

/* Messages (« Tâche faite · Annuler ») et alerte d'écriture */
.annonce { position: fixed; left: 50%; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: var(--e-3); max-width: calc(100% - 32px); padding: 9px 10px 9px 18px; transform: translateX(-50%); border-radius: var(--r-rond); background: var(--foret); color: var(--ecru); font-size: 14.5px; box-shadow: var(--ombre-forte); }
.annonce:not(.annonce--action) { padding-right: 18px; }
/* Un message long (l'aide pour installer l'application) prend la largeur qu'il lui faut et garde des coins doux sur plusieurs lignes */
.annonce { width: max-content; line-height: 1.35; }
.annonce--action { border-radius: 26px; }
.annonce__action { min-height: 36px; padding: 6px 14px; border: 0; border-radius: var(--r-rond); background: rgba(245, 240, 230, .14); color: #fff; font: 700 14px var(--police-texte); }
.annonce__action:hover { background: rgba(245, 240, 230, .24); }
.alerte-ecriture { position: sticky; top: 0; z-index: 70; padding: 10px var(--e-4); background: var(--terre-fonce); color: #fff; font-size: 14.5px; font-weight: 600; text-align: center; }

/* Tâches : le geste d'une fiche (le rond en haut à droite), les terminées */
.fiche-geste { position: relative; }
.fiche-geste .fiche { padding-right: 44px; }
.fiche__geste { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--encre-pale); }
.fiche__geste .picto { width: 20px; height: 20px; }
.fiche__geste:hover { background: var(--lin); color: var(--encre); }
.fiche__geste--en-cours { color: var(--miel); }
.fiche__geste--fait { color: var(--sauge); }
.fiche__echeance--retard { color: var(--terre-fonce); }
.terminees { margin-top: var(--e-4); padding: var(--e-3) var(--e-4); border: 1px dashed var(--trait-fort); border-radius: var(--r); }
.terminees summary { display: flex; align-items: center; gap: var(--e-2); font-size: var(--taille-petit); font-weight: 700; color: var(--encre-douce); cursor: pointer; }
.terminees summary small { padding: 0 8px; border-radius: var(--r-rond); background: var(--lin); font-size: 12.5px; }
.terminees__fiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--e-2); margin-top: var(--e-3); }
.tache-ouverte { scroll-margin-top: var(--e-6); }
.tache-ouverte__outils { margin-top: auto; }
.tache-ouverte__champs .lien { white-space: normal; }

/* Fil de notes : supprimer sa note */
.note__supprimer { display: grid; place-items: center; width: 30px; height: 30px; margin: -4px -8px -4px auto; border: 0; border-radius: 8px; background: none; color: var(--encre-pale); }
.note__supprimer .picto { width: 15px; height: 15px; }
.note__supprimer:hover { background: rgba(255, 255, 255, .6); color: var(--terre-fonce); }
.note__texte { white-space: pre-line; overflow-wrap: anywhere; }

/* Idées : étoiles qu'on règle, « On le fait », gestes en boutons */
.etoiles__choix { display: inline-grid; place-items: center; padding: 3px; border: 0; background: none; color: inherit; }
.etoiles__choix .picto { width: 17px; height: 17px; }
.idee-ouverte__detail-fiche { margin-left: auto; }
.idee-ouverte__detail { white-space: pre-line; }
button.geste { width: 100%; font: inherit; text-align: left; background: transparent; }
button.geste--oui { border: 0; background: var(--sauge); }
.idee-ouverte__gestes--formulaire { grid-template-columns: minmax(0, 1fr); }
.idee-ouverte__on-le-fait { display: flex; flex-direction: column; gap: var(--e-3); }
.idee-ouverte__on-le-fait .bascule { align-self: flex-start; }
.idee-ouverte__boutons { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.idees-outils .lien { white-space: normal; }

/* Aujourd'hui : derniers messages de la boîte, relevé reçu */
.accueil-mail__nombre--releve { border-style: solid; color: var(--ecru); }
.accueil-mail__derniers { display: flex; flex-direction: column; gap: 4px; margin: calc(-1 * var(--e-2)) 0 var(--e-5); font-size: 13px; color: var(--sur-foret-doux); }
.accueil-mail__derniers li { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.accueil-mail__derniers strong { color: var(--ecru); font-weight: 600; }
.journal-replie { margin-top: var(--e-7); }
.journal-replie summary { display: inline-flex; align-items: center; gap: var(--e-2); font-size: var(--taille-petit); font-weight: 600; color: var(--encre-douce); cursor: pointer; }
.journal-replie summary .picto { width: 17px; height: 17px; }
.journal { display: flex; flex-direction: column; margin-top: var(--e-3); padding: var(--e-2) var(--e-5); border: 1px solid var(--trait); border-radius: var(--r); background: var(--papier); }
.journal__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--e-4); padding: 8px 0; border-bottom: 1px solid var(--lin); font-size: 14px; }
.journal__ligne:last-child { border-bottom: 0; }
.journal__quand { font-size: var(--taille-mini); color: var(--encre-douce); }

/* Pôles : repères, comptes, relances, identité */
.repere__detail { display: grid; place-items: center; width: 28px; height: 28px; margin: -6px -8px -6px auto; border: 0; border-radius: 8px; background: none; color: var(--encre-pale); opacity: .7; }
.repere__detail .picto { width: 15px !important; height: 15px !important; color: inherit !important; }
.repere__detail:hover { opacity: 1; background: var(--lin); }
button.repere { font: inherit; text-align: left; color: inherit; }
.repere--compte { cursor: pointer; }
.repere--compte:hover { border-color: var(--trait-fort); }
.repere--ajout { align-items: center; justify-content: center; cursor: pointer; }
.parcours__etape { cursor: pointer; border-radius: var(--r); }
.parcours__etape:hover .parcours__libelle { text-decoration: underline; }
.relance__liste { display: flex; flex-direction: column; margin-bottom: var(--e-3); }
.relance__liste li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--e-2); padding: 6px 0; border-bottom: 1px solid var(--lin); font-size: 14px; }
.relance__nom { font-weight: 600; }
.relance__nom small { font-weight: 400; color: var(--encre-douce); }
.relance__date { font-size: 12.5px; font-weight: 700; color: var(--terre-fonce); white-space: nowrap; }
.coffre__valeur { font: 600 16px var(--police-texte); letter-spacing: .04em; overflow-wrap: anywhere; }
button.porte { width: 100%; border: 0; font-family: inherit; text-align: left; color: inherit; }
button.porte:hover { background: var(--lin); }
.identite__remplir { align-self: flex-start; color: var(--miel-fonce); font-size: 12.5px; font-weight: 600; text-decoration: underline; }
.qui__nombre { white-space: nowrap; }

/* La fiche (panneau de droite) */
.voile { position: fixed; inset: 0; z-index: 40; background: rgba(47, 56, 41, .32); }
.panneau-fiche { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; display: flex; flex-direction: column; width: min(580px, 100%); border-left: 1px solid var(--trait); background: var(--papier); box-shadow: var(--ombre-forte); }
.panneau-fiche__tete { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-5) var(--e-6) var(--e-4); border-bottom: 1px solid var(--trait); background: linear-gradient(180deg, var(--sauge-pale), var(--papier)); }
.panneau-fiche__titres { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panneau-fiche__titres h2 { font-size: 25px; line-height: 1.15; }
.panneau-fiche__retour { display: inline-flex; align-items: center; gap: 5px; font-size: var(--taille-petit); font-weight: 600; color: var(--sauge-fonce); }
.panneau-fiche__retour .picto { width: 15px; height: 15px; }
.panneau-fiche__fermer { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border: 0; border-radius: 10px; background: none; color: var(--encre-douce); }
.panneau-fiche__fermer:hover { background: var(--lin); color: var(--encre); }
.panneau-fiche__alerte:empty { display: none; }
.panneau-fiche__alerte { margin: var(--e-3) var(--e-6) 0; padding: var(--e-3) var(--e-4); border-radius: var(--r); font-size: 14.5px; }
.panneau-fiche__alerte--alerte { background: var(--terre-pale); color: var(--terre-fonce); }
.panneau-fiche__alerte--info { background: var(--miel-pale); color: var(--miel-fonce); }
.panneau-fiche__question-boutons { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-top: var(--e-3); }
.panneau-fiche__corps { display: flex; flex: 1; flex-direction: column; gap: var(--e-4); overflow-y: auto; padding: var(--e-4) var(--e-6) var(--e-6); }
.panneau-fiche__section { margin-top: var(--e-2); font: 700 12px/1.3 var(--police-texte); letter-spacing: .2em; text-transform: uppercase; color: var(--encre); }
summary.panneau-fiche__section { cursor: pointer; }
.panneau-fiche__groupe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-3) var(--e-4); }
.panneau-fiche__groupe > .champ, .panneau-fiche__groupe > .case, .panneau-fiche__groupe > p { grid-column: 1 / -1; }
.panneau-fiche__groupe > .champ--demi { grid-column: auto; }
.panneau-fiche__repli > .panneau-fiche__groupe { margin-top: var(--e-3); }
.panneau-fiche__pied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); padding: var(--e-4) var(--e-6); border-top: 1px solid var(--trait); background: var(--ecru); }
.panneau-fiche__pied > :last-child:not(:first-child):not(:nth-child(2)) { margin-left: auto; }
.panneau-fiche__trace { font-size: var(--taille-mini); color: var(--encre-douce); }
.panneau-fiche__fichier { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-3); border: 1px solid var(--trait); border-radius: var(--r); }
.panneau-fiche__fichier-texte { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.panneau-fiche__fichier-texte small { font-size: var(--taille-mini); color: var(--encre-douce); }
.panneau-fiche__lie { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); width: 100%; padding: var(--e-3) var(--e-4); border: 0; border-radius: var(--r); background: var(--miel-pale); font: inherit; text-align: left; color: var(--encre); }
.panneau-fiche__lie small { display: block; font-size: var(--taille-mini); color: var(--miel-fonce); }
.panneau-fiche__lien { align-self: flex-start; }
.panneau-fiche textarea.champ__saisie { min-height: 88px; resize: vertical; }
.panneau-fiche .champ--petit { min-height: 60px; }
.panneau-fiche .champ--grand { min-height: 200px; }
.case { display: flex; align-items: center; gap: var(--e-2); min-height: 40px; font-size: 14.5px; }
.case input { width: 18px; height: 18px; accent-color: var(--sauge); }
.calcul { padding: var(--e-4); border-radius: var(--r); background: var(--sauge-pale); }
.calcul__titre { display: flex; align-items: baseline; gap: var(--e-2); font: 700 12px var(--police-texte); letter-spacing: .14em; text-transform: uppercase; }
.calcul__titre small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--encre-douce); }
.calcul__valeur { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e-2); margin-top: 4px; font: 500 32px/1.1 var(--police-titre); }
.calcul__provisoire, .ecart { padding: 2px 10px; border-radius: var(--r-rond); background: var(--miel-pale); color: var(--miel-fonce); font: 600 var(--taille-mini) var(--police-texte); }
.ecart--dans { background: var(--papier); color: var(--sauge-fonce); }
.ecart--hors { background: var(--terre-pale); color: var(--terre-fonce); }
.calcul__manque, .calcul__detail, .calcul__vide, .controle, .aide-champ { font-size: var(--taille-petit); color: var(--encre-douce); }
.calcul__alerte { font-size: var(--taille-petit); font-weight: 600; color: var(--terre-fonce); }
.offres { display: flex; flex-direction: column; gap: var(--e-2); }
.offres__liste { display: flex; flex-direction: column; gap: var(--e-2); }
.offre { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); padding: var(--e-3) var(--e-4); border: 1px solid var(--trait); border-radius: var(--r); background: var(--papier); font: inherit; text-align: left; color: inherit; }
.offre:hover { border-color: var(--trait-fort); }
.offre__prix { font: 500 19px var(--police-titre); text-align: right; white-space: nowrap; }
.offre__prix small { display: block; font: 12px var(--police-texte); color: var(--encre-douce); }
.offres__ajouter { align-self: flex-start; }
.photo { display: flex; align-items: center; gap: var(--e-3); }
.photo__apercu { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 12px; background: var(--lin); color: var(--encre-pale); }
.photo__apercu img { width: 100%; height: 100%; object-fit: cover; }
.photo__texte { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.photo__info { font-size: var(--taille-mini); color: var(--encre-douce); }

/* Fournisseurs : boutons d'onglets, lignes cliquables, Comparer avec la jauge, avis de vidage */
.fournisseurs-outils .coche { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; color: var(--encre-douce); white-space: nowrap; }
.fournisseurs-outils .coche input { width: 17px; height: 17px; accent-color: var(--sauge); }
.fournisseurs-onglets .onglet { border-top: 0; border-left: 0; border-right: 0; background: none; font: inherit; }
.ligne-cliquable { cursor: pointer; }
.ligne-cliquable:hover td { background: var(--ecru); }
.repere-email { display: inline-flex; margin-left: 6px; vertical-align: middle; color: var(--sauge-fonce); }
.tableau-cadre { overflow-x: auto; }
.tableau__separation td { padding: 8px var(--e-3); background: var(--papier-fonce); font-size: var(--taille-mini); font-style: italic; color: var(--encre-douce); }
.comparer { margin-top: var(--e-4); }
.comparer__aide { margin-top: var(--e-4); }
.comparer__jauge { width: 34%; min-width: 220px; }
.comparer .prix__legende { margin-top: var(--e-3); }
.avis { margin: var(--e-4) 0; }
.avis .bouton { margin-left: auto; }
.vider { margin-top: var(--e-5); text-align: center; }
.vider__confirmation { margin-top: var(--e-5); padding: var(--e-5); }
.vider__boutons { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-top: var(--e-3); }
.fournisseurs-liste__pied .lien-ligne { color: var(--sauge-fonce); font-weight: 600; }

/* Produits : la photo d'un produit réel par-dessus le dessin, la fiche cliquable */
.produit { cursor: pointer; }
.produit:hover { border-color: var(--miel-fonce); }
.produit__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Avec une vraie photo : format portrait comme sur la boutique, et plus de dessin par-dessus */
.produit__image--photo { aspect-ratio: 4 / 5; overflow: hidden; }
.produit__image--photo .rideau { display: none; }
.produit__image--photo .produit__etiquette { z-index: 1; }

/* Documents : « Nos PDF » plus large, le fichier ouvre, son titre ouvre la fiche */
.dossier--large { grid-column: auto; }
.fichier__ouvrir { display: block; text-decoration: none; }
.fichier__ouvrir--absent { opacity: .55; }
.fichier__ouvrir:hover .vignette { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.fichier__titre { font-size: 14px; font-weight: 600; line-height: 1.3; }
.fichier__titre:hover { text-decoration: underline; }
.type { display: inline-grid; place-items: center; min-width: 42px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--lin); color: var(--encre-douce); font: 700 10.5px var(--police-texte); letter-spacing: .06em; }
.type .picto { width: 15px; height: 15px; }
.type--pdf { background: var(--terre-pale); color: var(--terre-fonce); }
.zone-envoi:empty { display: none; }
.envoi { display: flex; flex-direction: column; gap: var(--e-2); margin: var(--e-4) 0; padding: var(--e-4) var(--e-5); border: 1px solid var(--trait); border-radius: var(--r); background: var(--papier); }
.envoi__titre { font-weight: 600; }
.envoi__choix { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.envoi__choix .saisie { flex: 1; min-width: 200px; }
.saisie { padding: 10px 13px; border: 1.5px solid var(--trait-fort); border-radius: 11px; background: var(--papier); color: var(--encre); font: 15px/1.4 var(--police-texte); }
.envoi__ligne { display: grid; grid-template-columns: minmax(0, 1fr) 140px 120px; align-items: center; gap: var(--e-3); font-size: 14px; }
.envoi__nom small { margin-left: 6px; color: var(--encre-douce); }
.envoi__piste { height: 6px; overflow: hidden; border-radius: var(--r-rond); background: var(--lin); }
.envoi__barre { display: block; width: 0; height: 100%; background: var(--sauge); transition: width .2s; }
.envoi__etat { font-size: var(--taille-mini); color: var(--encre-douce); text-align: right; }
.envoi__ligne--refus .envoi__etat { color: var(--terre-fonce); font-weight: 600; }
.envoi__ligne--fait .envoi__etat { color: var(--sauge-fonce); font-weight: 600; }
.envoi__erreur { font-size: var(--taille-petit); font-weight: 600; color: var(--terre-fonce); }
body.depot::after { content: attr(data-depot); position: fixed; inset: 12px; z-index: 50; display: grid; place-items: center; border: 3px dashed var(--sauge); border-radius: var(--r-grand); background: rgba(245, 240, 230, .88); font: 500 26px var(--police-titre); color: var(--sauge-fonce); pointer-events: none; }

/* Comptes : tuiles cliquables, frise, fiche dans le panneau, automatisations réglables */
.compte { cursor: pointer; }
.compte:hover { border-color: var(--trait-fort); }
.compte .cadenas { margin-left: auto; }
.colonne-comptes__vide { padding: var(--e-2) var(--e-1); font-size: var(--taille-mini); font-style: italic; color: var(--encre-douce); }
button.frise-comptes__compte { padding: 0; border: 0; background: none; font-family: inherit; color: inherit; text-align: left; }
button.frise-comptes__compte:hover span { text-decoration: underline; }
.panneau-fiche--compte { display: block; width: min(760px, 100%); overflow-y: auto; }
.panneau-fiche--compte .fiche-compte { max-width: none; min-height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.fiche-compte__fermer { align-self: flex-start; }
.fiche-compte__etat { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-4); padding: var(--e-4) var(--e-6) 0; }
.fiche-compte__champs dd .sur-place-cible { display: block; }
.fiche-compte__texte { display: flex; flex-direction: column; gap: var(--e-2); margin: var(--e-4) var(--e-6) 0; font-size: 14px; color: var(--encre-douce); white-space: pre-line; }
.fiche-compte__pied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-3); margin: 0 var(--e-6) var(--e-6); }
.fiche-compte__securite + .fiche-compte__pied, .fiche-compte__manque + .fiche-compte__pied { margin-top: var(--e-4); }
.coffre .bouton--discret { padding-inline: var(--e-2); }
.coffre__saisie { flex: 1 1 180px; width: auto; min-width: 0; padding: 7px 11px; }
.automatisation__etat { align-self: flex-start; margin-top: var(--e-1); }
.automatisation__etat .bascule__choix { padding: 4px 10px; font-size: 12.5px; }
.part-clair-fonce { stroke: var(--trait-fort); }
.cle-clair-fonce { background: var(--trait-fort); }

/* Chiffres : la liste des dépenses */
button.depense { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; }
button.depense:hover .tableau__principal { text-decoration: underline; }
.chiffres-liste__hors { margin-top: var(--e-3); }
.chiffres-case__sur strong.sur-place-cible { cursor: pointer; }

@media (max-width: 860px) {
  .bouton--petit, .bascule__choix, .onglet, .menu__lien, .lien, .menu__sortie, .etoiles__choix { min-height: 40px; }
  .bascule__choix { display: inline-flex; align-items: center; gap: 4px; }
  a.legende__ligne, .titres-idees__ligne a, .sur-place-cible, .reseau__nom, .a-renseigner__mention { display: flex; align-items: center; min-height: 40px; }
  .lien-ligne { display: inline-flex; align-items: center; min-height: 40px; }
  .tache-ouverte__fermer, .idee-ouverte__detail-fiche { min-width: 40px; min-height: 40px; }
  a.identite__note, .identite__remplir { display: flex; align-items: center; min-height: 40px; }
  button.frise-comptes__compte { min-height: 40px; }
  .chiffres-case__sur .a-renseigner__mention, .chiffres-case__note .a-renseigner__mention { display: inline-flex; }
  .dossier-ouvert__chemin a { display: inline-flex; align-items: center; min-height: 40px; }
  .fournisseurs-outils .coche input { width: 22px; height: 22px; }
  .fiche__geste { width: 40px; height: 40px; top: 2px; right: 2px; }
  .note__supprimer, .repere__detail { width: 40px; height: 40px; }
  .panneau-fiche__tete { padding: var(--e-4); }
  .panneau-fiche__corps { padding: var(--e-4); }
  .panneau-fiche__pied { padding: var(--e-3) var(--e-4); }
  .panneau-fiche__groupe { grid-template-columns: minmax(0, 1fr); }
  .panneau-fiche__groupe > .champ--demi { grid-column: 1 / -1; }
  .dossier--large { grid-column: auto; }
  .envoi__ligne { grid-template-columns: minmax(0, 1fr) 80px; }
  .envoi__piste { display: none; }
  .avis { flex-wrap: wrap; }
  .annonce { bottom: 12px; }
  .accueil-echeance { align-items: flex-start; }
}

.frise-comptes__autres { font-size: 12px; color: var(--encre-douce); }

.fiche-compte__champs dd { min-width: 0; overflow-wrap: anywhere; }
.comparer__conditions { font-size: 13.5px; }


/* Relecture (rapport 10) */
/* B4 : une case vide de Tâches reste basse, sur une ligne */
.tableau-taches__case--vide { align-self: start; padding: 6px var(--e-2); }
.tableau-taches__case--vide .tableau-taches__rien { margin: 0; padding: 2px var(--e-2); font-size: 13px; text-align: left; }
/* B6 : les quatre dossiers « Pour nous » sur une rangée, Nos PDF un peu plus large */
@media (min-width: 1241px) { .dossiers--pour-nous { grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); } }
/* B8 : l'adresse de connexion, coupée proprement sur une tuile, entière dans la fiche */
.compte__adresse { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fiche-compte__champs > .fiche-compte__ligne-large { grid-column: 1 / -1; }
.fiche-compte__adresse { white-space: nowrap; font-size: 14px; overflow-wrap: normal; }
/* A1 : le formulaire « Payé », sur place, sous la ligne */
.paiement td { padding: var(--e-3) var(--e-4) var(--e-4); border-radius: 0 0 var(--r) var(--r); background: var(--miel-pale); }
.paiement__corps { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--e-3) var(--e-4); }
.paiement__titre { display: flex; flex-basis: 100%; align-items: center; gap: 6px; font-weight: 700; }
.paiement__titre .picto { width: 18px; height: 18px; color: var(--sauge-fonce); }
.paiement__champ { min-width: 150px; }
.paiement__champ .champ__saisie { padding: 7px 11px; }
.paiement__boutons { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.paiement .champ__aide { margin-top: var(--e-2); }
/* B10 : la mention des taxes, une fois sous les six cases */
.chiffres-taxes { margin-top: var(--e-3); font-size: var(--taille-mini); color: var(--encre-douce); }
/* B7 : « Ajouter un chiffre », discret, sous la rangée */
.semaine-videos__ajout { margin-top: var(--e-2); }
@media (max-width: 860px) {
  .tableau-taches__case--vide { flex-direction: row; align-items: center; padding: 2px var(--e-2); }
  .tableau-taches__case--vide .tableau-taches__mobile { flex: 1; }
  .tableau-taches__case--vide .tableau-taches__rien { display: none; }
  .paiement td { grid-column: 1 / -1; }
  .paiement .bouton, .paiement .bascule__choix, .paiement .champ__saisie { min-height: 44px; }
  .fiche-compte__adresse { font-size: 13px; }
}

/* v29 · « L’application » : le rangement à part des idées et des tâches (pas un pôle), accent forêt.
   Rangé ici plutôt que dans systeme.css, qui reste la feuille de la maquette sans retouche. */
.pole-appli { --accent: var(--foret); --accent-pale: var(--lin); --accent-texte: var(--foret); --accent-vif: var(--sur-foret-doux); }
.part-appli { stroke: var(--foret); }
.cle-appli { background: var(--foret); }
.groupe-idees--appli { margin-top: var(--e-4); }
.taches-outils__legende .taches-outils__appli { margin-left: var(--e-2); padding-left: var(--e-4); border-left: 1px solid var(--trait); }
a.menu__appli { display: block; text-decoration: underline; }
a.menu__appli:hover, a.menu__appli[aria-current] { color: var(--ecru); }
.idees-appli-vide { align-items: flex-start; border-color: var(--trait-fort); }
.idees-appli-vide .medaillon .picto { width: 22px; height: 22px; color: inherit; }
.idees-appli-vide > div { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-2); }
.idees-appli-vide__titre { font: 500 18px var(--police-titre); color: var(--encre); }

/* v29 · Comptes : les deux dispositions à comparer (DISPOSITION, en tête de page-comptes.mjs) */
@media (min-width: 1241px) {
  .colonnes-comptes--inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
  .colonnes-comptes--trois .colonne-comptes--prevu .colonne-comptes__tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 861px) {
  .colonnes-comptes--trois { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr); }
  .comptes-actifs .colonne-comptes__tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 861px) and (max-width: 1240px) {
  .colonnes-comptes--trois .colonne-comptes--prevu .colonne-comptes__tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v29 · La dictée (dictee.mjs) : un petit bouton rond au coin du champ actif, et sa bulle pour le provisoire */
.dictee { position: fixed; z-index: 55; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--trait-fort); border-radius: 50%; background: var(--papier); color: var(--sauge-fonce); box-shadow: 0 1px 0 rgba(74, 58, 46, .05), 0 4px 10px -6px rgba(74, 58, 46, .45); }
.dictee[hidden], .dictee-bulle[hidden] { display: none; }
.dictee .picto { width: 16px; height: 16px; }
.dictee:hover { border-color: var(--sauge); background: var(--sauge-pale); }
.dictee--ecoute, .dictee--ecoute:hover { border-color: var(--sauge-fonce); background: var(--sauge-fonce); color: #fff; }
.dictee__point { position: absolute; top: -3px; right: -3px; display: none; width: 10px; height: 10px; border-radius: 50%; background: var(--terre); box-shadow: 0 0 0 2px var(--papier); }
.dictee--ecoute .dictee__point { display: block; animation: dictee-pouls 1.3s ease-in-out infinite; }
@keyframes dictee-pouls { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.65); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .dictee--ecoute .dictee__point { animation: none; } }
.dictee-bulle { position: fixed; z-index: 55; display: flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 14px; background: var(--foret); color: var(--ecru); font: 14px/1.35 var(--police-texte); box-shadow: var(--ombre-forte); pointer-events: none; overflow-wrap: anywhere; }
.dictee-bulle--attente { font-style: italic; color: var(--sur-foret-doux); }
/* v32 · Les échanges avec un fournisseur (étude 11) : onglets « Échanges / Fiche » dans sa fiche, bulles, appel, ajout, proposition d'étape */
.panneau-fiche__tete--onglets { flex-wrap: wrap; row-gap: var(--e-3); padding-bottom: 0; }
.panneau-fiche__tete--onglets .panneau-fiche__titres { flex: 1; }
.panneau-fiche__etat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--e-3); margin-top: 6px; font-size: var(--taille-petit); color: var(--encre-douce); }
.panneau-fiche__attente { font-weight: 600; }
.panneau-fiche__onglets { flex-basis: 100%; margin-bottom: -1px; border-bottom: 0; }
.panneau-fiche__onglets .onglet { border-top: 0; border-left: 0; border-right: 0; background: none; font: inherit; font-size: 15px; }
.panneau-fiche__corps--echanges { gap: var(--e-4); }
.echanges { display: flex; flex-direction: column; gap: var(--e-5); }
.echanges__proposition:empty { display: none; }
.echanges-proposition { display: flex; flex-direction: column; gap: var(--e-3); padding: var(--e-3) var(--e-4); border-radius: var(--r); background: var(--miel-pale); }
.echanges-proposition__texte { display: flex; align-items: center; gap: var(--e-2); font-size: 14.5px; }
.echanges-proposition__texte .picto { flex: none; width: 20px; height: 20px; color: var(--miel-fonce); }
.echanges-proposition__boutons { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.echanges-proposition .bouton--discret { color: var(--miel-fonce); }
.echange__objet { margin: var(--e-2) 0 0; }
.echange__objet .filet__titre { display: flex; align-items: baseline; gap: var(--e-2); min-width: 0; max-width: 85%; }
.echange__objet .filet__titre span { overflow: hidden; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; text-overflow: ellipsis; color: var(--encre-douce); }
.echange__objet .filet__ligne { min-width: 24px; }
.note__texte--replie { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; }
button.echange__lire { margin-top: 4px; padding: 0; border: 0; background: none; font-family: inherit; }
.echange__chevron { transform: rotate(90deg); }
.echange__chevron--haut { transform: rotate(-90deg); }
.echange__pieces { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: var(--e-2); }
.echange__pieces li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 11px 3px 8px; border-radius: var(--r-rond); background: var(--lin); font-size: 13px; font-weight: 600; color: var(--encre); overflow-wrap: anywhere; }
.echange__pieces .picto { flex: none; width: 15px; height: 15px; color: var(--terre-fonce); }
a.echange__gmail { display: flex; width: max-content; margin-top: 6px; font-size: 13px; }
.echange__note { margin-top: 4px; font-size: var(--taille-mini); font-style: italic; color: var(--encre-douce); }
.note__supprimer--confirmer { width: auto; padding: 0 10px; background: var(--terre-pale); color: var(--terre-fonce); font: 700 12.5px var(--police-texte); }
.echange-appel { display: flex; flex-direction: column; align-items: center; gap: 2px; align-self: center; max-width: 86%; text-align: center; }
.echange-appel__ligne { display: flex; align-items: center; gap: var(--e-2); font-size: var(--taille-mini); font-weight: 600; color: var(--encre-douce); }
.echange-appel__ligne > span { display: flex; align-items: center; gap: var(--e-2); }
.echange-appel__ligne > span::before, .echange-appel__ligne > span::after { content: ""; width: 26px; height: 1px; background: var(--trait-fort); }
.echange-appel .note__supprimer { margin: 0; }
.echange-appel__texte { font-size: 14px; line-height: 1.45; color: var(--encre-douce); white-space: pre-line; overflow-wrap: anywhere; }
.echanges__ouvrir { align-self: flex-start; }
.echange-saisie { display: flex; flex-direction: column; gap: var(--e-3); padding: var(--e-4); border: 1px solid var(--trait); border-radius: var(--r); background: var(--ecru); }
.echange-saisie__titre { font: 700 12px/1.3 var(--police-texte); letter-spacing: .2em; text-transform: uppercase; color: var(--encre); }
.echange-saisie__qui { flex-wrap: wrap; align-self: flex-start; }
.echange-saisie__ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-3) var(--e-4); }
.echange-saisie__zone { padding: 9px 13px; }
.echange-saisie__zone textarea.echange-saisie__texte { min-height: 118px; resize: vertical; }
.echange-saisie__boutons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); }
.echange-saisie__boutons .champ__aide { margin-left: auto; }
/* Aujourd'hui : « À répondre », dans la carte de la boîte, seulement s'il y a lieu */
.accueil-mail__repondre { display: flex; align-items: flex-start; gap: var(--e-2); margin: calc(-1 * var(--e-2)) 0 var(--e-5); font-size: 13.5px; line-height: 1.45; color: var(--sur-foret-doux); }
.accueil-mail__repondre .picto { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--sur-foret); }
.accueil-mail__repondre strong { font-weight: 600; color: var(--ecru); }
.accueil-mail__repondre .lien-ligne { color: var(--ecru); text-decoration: underline; text-decoration-color: var(--sur-foret-doux); text-underline-offset: 3px; }
@media (max-width: 860px) {
  .panneau-fiche__tete--onglets { padding-bottom: 0; }
  .echanges-proposition .bouton, .echange-saisie .bouton, .echanges__ouvrir, button.echange__lire, a.echange__gmail { min-height: 40px; }
  .echange-saisie__boutons .champ__aide { flex-basis: 100%; margin-left: 0; }
  .echange-saisie__qui { display: flex; flex-wrap: nowrap; align-self: stretch; }
  .echange-saisie__qui .bascule__choix { flex: 1 1 auto; justify-content: center; padding: 6px 8px; font-size: 13.5px; }
  .echange__objet .filet__titre { max-width: 100%; }
  .accueil-mail__repondre .lien-ligne { display: inline; min-height: 0; }
}
/* v33 · Le connecteur de Claude (étude 12) : l'encadré « Assistants branchés » (Comptes, sous les automatisations), une note signée par un Claude */
.assistants { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-2); margin-top: var(--e-5); padding: var(--e-3) var(--e-5) var(--e-4); border: 1px dashed var(--trait-fort); border-radius: var(--r-grand); }
.assistants:empty { display: none; }
.assistants__titre { display: flex; align-items: center; gap: var(--e-2); font: 700 12px/1.3 var(--police-texte); letter-spacing: .2em; text-transform: uppercase; color: var(--encre); }
.assistants__titre .picto { width: 17px; height: 17px; color: var(--sauge-fonce); }
.assistants__titre small { padding: 0 7px; border-radius: var(--r-rond); background: var(--sauge-pale); color: var(--sauge-fonce); font-size: 11.5px; letter-spacing: 0; }
.assistants__vide { max-width: 72ch; font-size: 14.5px; line-height: 1.5; color: var(--encre-douce); }
.assistants__actions { display: flex; flex-wrap: wrap; gap: var(--e-2); }
.assistants__actions a.bouton { text-decoration: none; }
.assistants__adresse {font-weight: 600; color: var(--encre); overflow-wrap: anywhere; user-select: all; }
.assistants__liste { display: flex; flex-direction: column; align-self: stretch; }
.assistants__ligne { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; align-items: center; gap: var(--e-2) var(--e-4); padding: var(--e-2) 0; border-bottom: 1px solid var(--trait); }
.assistants__ligne:last-child { border-bottom: 0; }
.assistants__qui { display: flex; flex-direction: column; min-width: 0; }
.assistants__qui .prenom { font-size: 17px; color: var(--encre); }
.assistants__qui small { font-size: var(--taille-mini); color: var(--encre-douce); }
.assistants__quand { font-size: 13.5px; font-variant-numeric: lining-nums; color: var(--encre-douce); }
.assistants__couper { color: var(--terre-fonce); }
.assistants__couper--confirmer { border-color: var(--terre-pale); background: var(--terre-pale); }
.assistants__aide { max-width: 80ch; }
.note--assistant { border-style: dashed; border-color: var(--trait-fort); }
.note--assistant .note__tete .prenom { color: var(--encre-douce); font-style: italic; }
@media (max-width: 860px) {
  .assistants { padding: var(--e-3) var(--e-4) var(--e-4); }
  .assistants__ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .assistants__quand { grid-column: 1 / -1; grid-row: 2; }
  .assistants .bouton { min-height: 40px; }
}
