

.entete { --logo-h: 112px; position: relative;
          display: flex; align-items: flex-end; justify-content: center; gap: 0;
          padding: 26px 24px 18px; background: #fff; }
.entete-logo { height: var(--logo-h); width: auto; display: block; }
.entete-module { margin-left: calc(var(--logo-h) * -.16);   
                 font-size: calc(var(--logo-h) * .20);      
                 padding-bottom: calc(var(--logo-h) * .12);  
                 font-style: italic; font-weight: 500; line-height: 1;
                 letter-spacing: -.01em; color: var(--theme, #CB6259); }

.motif-row label { min-width: 0; }

.barre-onglets { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 24px; }
.nav-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.onglet { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
          border-radius: 8px; text-decoration: none; color: var(--fg); font-size: 14px;
          font-weight: 500; border: 1px solid transparent; }
.onglet:hover { background: #f4f2ee; }
.onglet.actif { background: var(--theme-grad, #CB6259); color: #fff;
                box-shadow: 0 2px 6px var(--theme-shadow, rgba(0,0,0,.2)); }
.onglet-icone { font-size: 15px; display: inline-flex; align-items: center; }
.onglet-icone svg { width: 18px; height: 18px; display: block; }
.onglet.actif 

.progress-bar { display: none; }
.progress-bar.actif { display: flex; align-items: center; gap: 10px; margin-top: 12px; }

.bilan-empty { text-align: center; color: var(--fg-light); padding: 48px 16px; }
.etat { font-size: 12px; color: var(--fg-light); }

.entete-compte { position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
                 display: flex; align-items: center; gap: 12px; font-size: 13px; }

.compte-solde { padding: 3px 10px; border-radius: 999px; font-weight: 600;
                background: var(--theme-bg, #FBEEEC); color: var(--theme-deep, #AC4942); }
.compte-solde.bas  { background: var(--theme-bg, #FBEEEC); color: var(--theme-deep, #AC4942);
                     box-shadow: inset 0 0 0 1.5px var(--theme, #CB6259); }
.compte-solde.vide { background: var(--theme-deep, #AC4942); color: #fff; }
.compte-lien { color: var(--fg-light); text-decoration: none; }
.compte-lien:hover { text-decoration: underline; }

.avertissement { padding: 10px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5;
                 margin-bottom: 12px; }
.avertissement.attention { background: #fdf3dc; color: #7a4e0c; border: 1px solid #f0e0bd; }
.avertissement.grave     { background: #fdecea; color: #8c1d18; border: 1px solid #f5c6c2; }

.bilans { display: flex; flex-direction: column; gap: 10px; }
.bilan-ligne { display: flex; align-items: center; gap: 16px; padding: 14px 16px;
               background: #fff; border: 1px solid var(--border); border-radius: 9px; }
.bilan-ligne.courant { border-color: var(--theme, #CB6259); }
.bilan-quand { font-size: 13px; color: var(--fg-light); white-space: nowrap; }
.bilan-qui { font-weight: 600; font-size: 14.5px; }
.bilan-qui.anonyme { font-weight: 500; color: var(--fg-light); font-style: italic; }
.bilan-detail { font-size: 12.5px; color: var(--fg-light); }
.bilan-actions { margin-left: auto; display: flex; gap: 8px; }

.bilan-choix { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--theme, #CB6259); cursor: pointer; }
.lot-barre { display: flex; align-items: center; gap: 12px; padding: 8px 16px; margin-bottom: 8px; }
.lot-barre[hidden] { display: none; }
.lot-tout { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-mid); cursor: pointer; }
.lot-tout input { width: 16px; height: 16px; accent-color: var(--theme, #CB6259); }
.lot-compte { font-size: 13px; color: var(--fg-light); margin-right: auto; }
.lot-barre .btn:disabled { opacity: .45; cursor: default; }
.lot-barre .lot-danger:not(:disabled) { color: var(--red, #B4453C); border-color: currentColor; }
.bilan-vide { text-align: center; color: var(--fg-light); padding: 40px 16px; }
.espace { font-size: 12.5px; color: var(--fg-light); margin-top: 18px; text-align: right; }
.etiquette { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px;
             background: #eef1ef; color: var(--fg-light); margin-left: 6px; }
.etiquette.avertie { background: #fdf3dc; color: #a86b13; }

.telechargements { display: flex; gap: 4px; align-items: center; margin-right: 8px; }
.lien-export { border: 0; background: none; font: inherit; font-size: 12.5px; cursor: pointer;
               color: var(--theme-deep, #AC4942); text-decoration: underline; padding: 2px 4px; }
.lien-export:disabled { color: var(--fg-light); text-decoration: none; cursor: default; opacity: .6; }

@media (max-height: 820px) {
  .entete { --logo-h: 56px; padding: 10px 24px 8px; }
  .barre-onglets { padding: 6px 24px; }
}

.btn-nouveau { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid currentColor; background: none; color: var(--theme, #CB6259);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; }
.btn-nouveau:hover { background: rgba(0,0,0,.05); border-width: 2px; }

input[data-invalide] {
  border-color: #c0392b;
  background: #fdecea;
}
input[data-invalide]:focus {
  outline-color: #c0392b;
}

.ligne-identite { margin: 14px 0 16px; }
.ligne-identite .toolbar-row { flex-wrap: wrap; }
.ligne-identite .toolbar-row label { min-width: 0; flex: 0 0 auto; }
.ligne-identite .dossier-champ { display: flex; align-items: center; gap: 8px; }
.ligne-identite .dossier-nom, .ligne-identite .dossier-prenom { flex: 1 1 210px; }
.ligne-identite .dossier-motif { flex: 2 1 280px; }
.ligne-identite .dossier-champ .motif-input { flex: 1 1 auto; min-width: 90px; }
.ligne-identite .dossier-naissance .motif-input { flex: 0 0 auto; }
