/* Coach Pocket — thème clair, bleu-vert. Conçu pour 375 px, élargi ensuite. */
:root {
  --fond: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --texte: #12201d;
  --texte-2: #485a56;
  --texte-3: #7b8b87;
  --bord: #dfe7e4;
  --primaire: #0b6e66;
  --primaire-fort: #08564f;
  --primaire-doux: #e1f1ee;
  --or: #b7791f;
  --or-doux: #fbf1df;
  --danger: #b42318;
  --danger-doux: #fdecea;
  --ombre: 0 1px 2px rgba(11, 60, 55, .06), 0 6px 18px -8px rgba(11, 60, 55, .18);
  --rayon: 14px;
  --police: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --barre-onglets: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.45 var(--police);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primaire); outline-offset: 2px; }

/* Marque */
.marque { display: inline-flex; align-items: center; gap: 10px; }
.marque-nom { font-weight: 700; letter-spacing: -.01em; }
.marque-signe {
  width: 30px; height: 30px; border-radius: 9px; background: var(--primaire);
  position: relative; flex: none;
}
.marque-signe::after {
  content: ""; position: absolute; inset: 7px; border: 2.5px solid #fff; border-radius: 50%;
  border-top-color: transparent; transform: rotate(-30deg);
}
.ecran-attente { min-height: 100dvh; display: grid; place-items: center; }
.ecran-attente .marque-signe { animation: pulsation 1.2s ease-in-out infinite; }
@keyframes pulsation { 50% { opacity: .45; } }

/* Authentification */
.auth {
  max-width: 420px; margin: 0 auto; min-height: 100dvh;
  padding: max(40px, env(safe-area-inset-top)) 16px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.auth-tete { display: grid; gap: 10px; padding: 12px 4px 4px; }
.auth-titre { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin-top: 18px; }
.auth-accroche { color: var(--texte-2); }
.auth-bascule { text-align: center; color: var(--texte-2); font-size: 15px; }

/* Cartes et formulaires */
.carte {
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  box-shadow: var(--ombre); padding: 16px;
}
.formulaire { display: grid; gap: 14px; }
.champ { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.champ > span, .champ > legend { font-size: 14px; font-weight: 600; color: var(--texte-2); padding: 0; margin-bottom: 6px; }
.champ > span { margin-bottom: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"],
input[type="url"], input[type="number"], input[type="date"], textarea {
  width: 100%; height: 46px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--primaire); box-shadow: 0 0 0 3px var(--primaire-doux); }
.aide { font-size: 13px; color: var(--texte-3); }
.centre { text-align: center; }
.case { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--texte-2); }
.case input { width: 20px; height: 20px; accent-color: var(--primaire); }
.erreur { background: var(--danger-doux); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.segments button {
  border: 0; background: transparent; border-radius: 9px; min-height: 40px; padding: 6px 8px;
  font-size: 14px; font-weight: 600; color: var(--texte-2);
}
.segments button.active { background: var(--surface); color: var(--primaire-fort); box-shadow: 0 1px 3px rgba(11, 60, 55, .15); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; letter-spacing: .005em;
  transition: background-color .15s, transform .08s, box-shadow .15s;
}
.bouton:active:not(:disabled) { transform: scale(.98); }
.bouton:disabled { opacity: .55; cursor: default; }
.bouton-principal { background: var(--primaire); color: #fff; box-shadow: 0 6px 14px -6px rgba(11, 110, 102, .55); }
.bouton-principal:hover:not(:disabled) { background: var(--primaire-fort); }
.bouton-secondaire { background: var(--primaire-doux); color: var(--primaire-fort); }
.bouton-discret { background: transparent; color: var(--texte-2); border-color: var(--bord); }
.bouton.compact { min-height: 46px; padding: 0 16px; }
.lien { background: none; border: 0; color: var(--primaire); font-weight: 650; padding: 4px; }

/* Coquille */
.app { min-height: 100dvh; }
.barre-haut {
  position: sticky; top: 0; z-index: 5;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  background: rgba(244, 247, 246, .92); backdrop-filter: blur(10px);
}
.barre-haut h1 { font-size: 24px; letter-spacing: -.02em; }
.contenu {
  max-width: 720px; margin: 0 auto;
  padding: 4px 16px calc(var(--barre-onglets) + 28px + env(safe-area-inset-bottom));
}
.contenu > section { display: grid; gap: 16px; }
.titre-bloc { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); margin-top: 6px; }
.salut { font-size: 17px; color: var(--texte-2); }
.salut strong { color: var(--texte); }

.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chiffre {
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 12px; display: grid; gap: 4px; box-shadow: var(--ombre);
}
.chiffre-libelle { font-size: 12px; color: var(--texte-3); font-weight: 600; }
.chiffre-valeur { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.vide { display: grid; gap: 14px; justify-items: start; color: var(--texte-2); }
.vide.grand { padding: 22px 18px; }

/* Clients */
.outils { display: flex; gap: 8px; }
.recherche { flex: 1; }
.filtres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.puce {
  flex: none; border: 1px solid var(--bord); background: var(--surface); color: var(--texte-2);
  border-radius: 999px; min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600;
}
.puce.active { background: var(--texte); border-color: var(--texte); color: #fff; }

.liste { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.ligne-client { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; }
.ligne-client + .ligne-client { border-top: 1px solid var(--bord); }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  background: var(--primaire-doux); color: var(--primaire-fort);
}
.avatar.grand { width: 48px; height: 48px; font-size: 18px; }
.ligne-texte { flex: 1; min-width: 0; display: grid; }
.ligne-titre { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-sous { font-size: 14px; color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etiquette {
  flex: none; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px;
  background: var(--surface-2); color: var(--texte-2);
}
.etiquette.statut-actif { background: var(--primaire-doux); color: var(--primaire-fort); }
.etiquette.statut-pause { background: var(--or-doux); color: var(--or); }

.compte { display: flex; align-items: center; gap: 12px; }

/* Barre d'onglets */
.onglets {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--barre-onglets) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--bord);
}
.onglets button {
  border: 0; background: none; display: grid; justify-items: center; align-content: center; gap: 3px;
  color: var(--texte-3); font-size: 11px; font-weight: 600; padding: 6px 2px;
}
.onglets svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.onglets svg .plein { fill: currentColor; stroke: none; }
.onglets button.actif { color: var(--primaire); }
.onglets button:active { transform: scale(.95); }

/* Feuille modale */
.voile { position: fixed; inset: 0; z-index: 20; background: rgba(18, 32, 29, .38); }
.feuille {
  position: fixed; z-index: 21; left: 0; right: 0; bottom: 0;
  max-height: 92dvh; overflow-y: auto;
  background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(11, 60, 55, .18);
}
.feuille h2 { font-size: 20px; letter-spacing: -.01em; }
.feuille-poignee { width: 40px; height: 4px; border-radius: 4px; background: var(--bord); margin: 0 auto 4px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Message bref */
.message {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--barre-onglets) + 16px + env(safe-area-inset-bottom));
  background: var(--texte); color: #fff; border-radius: 999px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; box-shadow: var(--ombre); white-space: nowrap;
}

/* Écrans larges : feuille centrée, onglets resserrés */
@media (min-width: 768px) {
  .feuille { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 440px; border-radius: 20px; }
  .feuille-poignee { display: none; }
  .onglets { left: 50%; right: auto; transform: translateX(-50%); width: 480px; bottom: 16px; height: var(--barre-onglets); padding: 0; border: 1px solid var(--bord); border-radius: 18px; box-shadow: var(--ombre); }
  .contenu { padding-bottom: calc(var(--barre-onglets) + 48px); }
  .message { bottom: calc(var(--barre-onglets) + 32px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---- Lot 2 : fiche client ---- */
textarea { height: auto; min-height: 46px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
input[type="date"] { min-width: 0; appearance: none; -webkit-appearance: none; }
input[type="file"] { font-size: 14px; }
.pile { display: grid; gap: 16px; }
.titre-carte { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segments.trois { grid-template-columns: repeat(3, 1fr); }
.valeur-forte { font-size: 17px; font-weight: 650; }
.retour-ligne { white-space: normal; }
.alerte-texte { color: var(--or); font-weight: 600; }
.gauche { justify-self: start; }

button.ligne-client { width: 100%; border: 0; background: none; text-align: left; }
button.ligne-client:active { background: var(--surface-2); }
.liste > li + li { border-top: 1px solid var(--bord); }
.ligne-client + .ligne-client { border-top: 0; }
.ligne-simple { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.etiquette-du { background: var(--or-doux); color: var(--or); }

.alerte {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: var(--rayon); border: 1px solid #f0d9ae; background: var(--or-doux);
  color: #7a4f0e; font-size: 15px; text-align: left;
}
.alerte-action { font-weight: 700; }

.bouton-icone {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--texte-2);
}
.bouton-icone:active { background: var(--surface-2); }
.bouton-icone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bouton-danger { background: transparent; color: var(--danger); border-color: #f3c7c2; }

.fiche { padding-top: max(8px, env(safe-area-inset-top)); }
.fiche-tete { display: flex; align-items: flex-start; gap: 6px; margin-left: -10px; }
.fiche-identite { min-width: 0; display: grid; gap: 4px; padding-top: 6px; }
.fiche-identite h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.fiche-sous { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fiche-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fiche-actions .bouton { min-height: 40px; padding: 0 14px; font-size: 14px; text-decoration: none; }

.note-epinglee {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px;
  background: #fff8e8; border: 1px solid #f0d9ae; color: #6b4a12; font-size: 15px;
}
.note-epinglee svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.sous-onglets {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px;
  border-bottom: 1px solid var(--bord);
}
.sous-onglets button {
  flex: none; border: 0; background: none; padding: 10px 10px 12px; font-size: 15px; font-weight: 600;
  color: var(--texte-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.sous-onglets button.active { color: var(--primaire-fort); border-bottom-color: var(--primaire); }

.ligne-telephone { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 6px; align-items: center; }

.zone-courbe { margin-top: 10px; }
.courbe { width: 100%; height: auto; display: block; }
.courbe-grille { stroke: var(--bord); stroke-width: 1; }
.courbe-texte { font-size: 11px; fill: var(--texte-3); font-family: var(--police); }

.liste-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.note.epinglee { background: #fff8e8; }
.note p { white-space: pre-wrap; }
.note-pied { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.note-pied .aide { margin-right: auto; }
.lien-danger { color: var(--danger); }
.resultat { display: grid; gap: 4px; }

/* ---- Lot 4 : séances ---- */
select {
  width: 100%; height: 46px; padding: 0 12px; background: var(--surface); border: 1px solid var(--bord); border-radius: 10px;
  font: inherit; color: inherit; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--texte-3) 50%), linear-gradient(135deg, var(--texte-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat;
}
select:focus { outline: none; border-color: var(--primaire); box-shadow: 0 0 0 3px var(--primaire-doux); }
input[type="time"] { width: 100%; height: 46px; padding: 0 12px; background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; min-width: 0; }

.navigation-semaine { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.navigation-semaine strong { font-size: 16px; }
.jour { display: grid; gap: 8px; }
.heure { flex: none; width: 46px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primaire-fort); }
.ligne-seance { display: flex; align-items: center; gap: 4px; padding-right: 12px; }
.ligne-seance .ligne-client { flex: 1; min-width: 0; }
.ligne-seance .bouton.compact { min-height: 38px; padding: 0 12px; font-size: 14px; }

.etiquette.seance-planifiee { background: #e8eefc; color: #2f4fa0; }
.etiquette.seance-envoyee { background: var(--primaire-doux); color: var(--primaire-fort); }
.etiquette.seance-ouverte { background: #e3f4fb; color: #1b6b8a; }
.etiquette.seance-realisee { background: #e2f5e7; color: #1f7a3a; }
.etiquette.seance-annulee, .etiquette.seance-annulee_facturee { background: var(--danger-doux); color: var(--danger); }
.etiquette.seance-reportee { background: var(--or-doux); color: var(--or); }

.entete-champ { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.texte-seance { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; line-height: 1.5; min-height: 220px; }
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; text-align: left;
  border-radius: 10px; padding: 6px 10px; border: 1px solid; font-size: 14px; background: var(--surface);
}
.liens-secondaires { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }

.choix-mouvements { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-mouvements .bouton { min-height: 40px; }
.puce.active { background: var(--primaire); border-color: var(--primaire); color: #fff; }
.creer-mouvement { border: 1px solid var(--bord); border-radius: 12px; padding: 10px 12px; }
.creer-mouvement summary { cursor: pointer; font-weight: 650; color: var(--primaire-fort); }
.creer-mouvement[open] { display: grid; gap: 10px; }
.ligne-envoi { display: flex; align-items: center; gap: 8px; }
.ligne-envoi .ligne-sous { flex: 1; }
.ligne-envoi .bouton { min-height: 40px; text-decoration: none; }
.bouton-texte { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; min-width: 0; }
.jours-semaine { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.jours-semaine button { height: 40px; border-radius: 10px; border: 1px solid var(--bord); background: var(--surface); font-weight: 700; color: var(--texte-2); }
.jours-semaine button.active { background: var(--primaire); border-color: var(--primaire); color: #fff; }

/* ---- Lot 6 : progression ---- */
.segments.quatre { grid-template-columns: repeat(4, 1fr); }
.legende { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--texte-2); margin-top: 6px; }
.pastille { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pastille.a { background: #0b6e66; }
.pastille.b { background: #b7791f; }
.table-pourcentages { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-top: 10px; }
.table-pourcentages div { display: grid; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.table-pourcentages span { font-size: 12px; color: var(--texte-3); font-weight: 600; }
.fil { list-style: none; margin: 0; padding: 0; display: grid; }
.fil li + li { border-top: 1px solid var(--bord); }
.fil button { width: 100%; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 11px 14px; background: none; border: 0; text-align: left; }
.fil .aide { flex: none; }
.fait-client { display: grid; gap: 8px; }
.fait-client .ligne-sous { white-space: normal; }

/* Aperçu de la séance dans l'éditeur */
.apercu { display: grid; gap: 10px; }
.compteur { font-size: 13px; font-weight: 700; color: #1f7a3a; background: #e2f5e7; border-radius: 999px; padding: 3px 10px; }
.compteur.a-resoudre { color: #8a5a07; background: #fff6e3; }
.bandeau-resoudre { font-size: 14px; color: #7a4f0e; background: #fff6e3; border: 1px solid #f0d9ae; border-radius: 12px; padding: 10px 12px; }
.apercu-bloc { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.apercu-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--bord); }
.apercu-titre { font-weight: 750; font-size: 15px; }
.apercu-type { font-size: 13px; font-weight: 600; color: var(--primaire-fort); white-space: nowrap; }
.apercu-ligne {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 0; background: none; text-align: left;
  border-top: 1px solid var(--bord); color: var(--texte);
}
.apercu-tete + .apercu-ligne { border-top: 0; }
.apercu-ligne:disabled { cursor: default; opacity: 1; }
.apercu-ligne:not(:disabled):active { background: var(--surface-2); }
.apercu-pastille { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #2f9e57; }
.apercu-corps { flex: 1; min-width: 0; display: grid; }
.apercu-nom { font-weight: 650; }
.apercu-ecrit { font-size: 13px; color: var(--texte-3); font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.apercu-detail { flex: none; max-width: 48%; text-align: right; font-size: 14px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.apercu-ligne.etat-propose { background: #fffaf0; }
.apercu-ligne.etat-propose .apercu-pastille { background: #e09a1b; }
.apercu-ligne.etat-propose .apercu-nom { color: #8a5a07; }
.apercu-ligne.etat-inconnu { background: #fdf4f3; }
.apercu-ligne.etat-inconnu .apercu-pastille { background: var(--danger); }
.apercu-ligne.etat-inconnu .apercu-nom { color: var(--danger); }
.apercu-ligne.etat-non_suivi .apercu-pastille, .apercu-ligne.info .apercu-pastille { background: var(--bord); }
.apercu-ligne.etat-non_suivi .apercu-nom, .apercu-ligne.info .apercu-nom { color: var(--texte-3); font-weight: 500; }
.apercu-ligne.info { padding-top: 8px; padding-bottom: 8px; font-size: 14px; }

/* ---- Lot 7 : Caisse ---- */
.majuscule::first-letter { text-transform: uppercase; }
.grand-chiffre { display: grid; gap: 6px; }
.valeur-geante { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.jauge { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.jauge-remplie { height: 100%; border-radius: 99px; background: var(--primaire); transition: width .3s; }
.jauge-remplie.orange { background: #e09a1b; }
.jauge-remplie.rouge { background: var(--danger); }
.objectif, .seuil { display: grid; gap: 6px; margin-top: 6px; }
.ligne-valeur { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; }
.ligne-valeur strong { font-variant-numeric: tabular-nums; }
.montant { flex: none; font-variant-numeric: tabular-nums; }
.chiffre-valeur.rouge { color: var(--danger); }
.champ-avec-bouton { display: flex; gap: 8px; align-items: center; }
.champ-avec-bouton input { flex: 1; min-width: 0; }
.marge-haut { margin-top: 12px; }
details > summary.titre-carte { cursor: pointer; list-style-position: inside; }
.periode.future { opacity: .55; }
.etiquette.element-payee { background: #e2f5e7; color: #1f7a3a; }
.etiquette.element-partielle { background: var(--or-doux); color: var(--or); }
.etiquette.element-due { background: var(--danger-doux); color: var(--danger); }
.bloc-urssaf { display: grid; gap: 2px; text-align: left; width: 100%; cursor: pointer; }
.ligne-simple .lien { flex: none; font-size: 14px; }
.valeur-geante.positif { color: #1f7a3a; }
.liens-legaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; }
.liens-legaux a { color: var(--texte-3); }
.lien.centre { justify-self: center; }

/* ---- Lot 8 : abonnement ---- */
.bandeau-abonnement {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: calc(100% - 32px); max-width: 688px;
  margin: 0 auto 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid #f0d9ae; background: var(--or-doux); color: #7a4f0e; font-size: 14px; text-align: left;
}
.bandeau-abonnement.urgent { background: var(--danger-doux); border-color: #f3c7c2; color: var(--danger); }
.offre { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--bord); border-radius: 14px; }
.offre.mise-en-avant { border-color: var(--primaire); box-shadow: 0 0 0 3px var(--primaire-doux); }
.offre-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.offre-tete strong { font-size: 17px; }
.offre-tete span { font-weight: 700; color: var(--primaire-fort); }
