﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Une erreur est survenue."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ===== EasySyndic ===== */
:root { --es-primary: #0F766E; --es-ink: #1C2321; --es-muted: #55605C; --es-bg: #F7F5F0; --es-line: #E4DFD4; --es-accent: #B45309; }
html, body { font-family: 'Nunito Sans', system-ui, sans-serif; background: var(--es-bg); color: var(--es-ink); }
a, .btn-link { color: var(--es-primary); }
.btn-primary { background-color: var(--es-primary); border-color: var(--es-primary); }

.es-appbar { border-bottom: 1px solid var(--es-line); }
.es-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--es-ink); }
.es-brand-mark { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px; background: var(--es-primary); color: #fff; font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
.es-brand-name { font-weight: 800; font-size: 1.15rem; }
.es-main { padding-top: 64px; min-height: 100vh; }

.es-hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); background: linear-gradient(180deg, #fff 0%, var(--es-bg) 100%); border-bottom: 1px solid var(--es-line); }
.es-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--es-accent); margin-bottom: .8rem; }
.es-hero-title { font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.es-hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--es-muted); max-width: 40rem; line-height: 1.55; }
.es-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.es-hero-note { color: var(--es-muted); font-size: .95rem; }

.es-section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.es-h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 1.2rem; letter-spacing: -.01em; }
.es-card, .es-plan { background: #fff; border: 1px solid var(--es-line); border-radius: 14px; padding: 1.5rem; height: 100%; }
.es-card h3, .es-plan h3, .es-feature h3 { font-size: 1.15rem; font-weight: 700; margin: .6rem 0 .4rem; }
.es-card p, .es-plan p, .es-feature p { color: var(--es-muted); margin: 0; line-height: 1.5; }
.es-feature { display: flex; gap: .9rem; align-items: flex-start; }
.es-feature h3 { margin-top: 0; }
.es-plan { position: relative; }
.es-plan--reco { border: 2px solid var(--es-primary); }
.es-plan-badge { position: absolute; top: -.75rem; left: 1.2rem; background: var(--es-primary); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; }
.es-plan-lots { font-weight: 700; color: var(--es-primary) !important; margin-bottom: .5rem !important; }
.es-small { color: var(--es-muted); font-size: .9rem; margin-top: 1rem; }
.es-footer { margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--es-line); color: var(--es-muted); font-size: .9rem; }

#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.es-nowrap { white-space: nowrap; }
@media (max-width: 420px) { .es-brand-name { font-size: 1rem; } .es-appbar .mud-button-root { padding-left: .6rem; padding-right: .6rem; } }

/* ===== Pages de compte ===== */
.es-account { max-width: 1040px; margin: 0 auto; padding: 2rem 16px 4rem; }
.es-account h1 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: -.01em; }
.es-account h2 { font-size: 1.15rem; font-weight: 700; }
.es-auth { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--es-line); border-radius: 16px; padding: clamp(1.25rem, 4vw, 2.25rem); }
.es-auth h1 { margin-bottom: .25rem; }
.es-auth-sous-titre { color: var(--es-muted); margin-bottom: 1.5rem; }
.es-auth .btn-primary { font-weight: 700; border-radius: 10px; }
.es-auth .form-control { border-radius: 10px; }
.es-auth-liens { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--es-line); text-align: center; }
.es-auth-liens a { text-decoration: none; }
.es-aide { color: var(--es-muted); font-size: .85rem; margin-bottom: 1rem; }
.es-external { display: flex; flex-direction: column; gap: .6rem; }
.es-external-btn { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; padding: .75rem 1rem; background: #fff; color: var(--es-ink); border: 1px solid #CFC8BA; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .15s, border-color .15s; }
.es-external-btn:hover { background: #F7F5F0; border-color: var(--es-primary); }
.es-separateur { display: flex; align-items: center; gap: .8rem; color: var(--es-muted); font-size: .85rem; margin: 1.4rem 0; }
.es-separateur::before, .es-separateur::after { content: ""; flex: 1; height: 1px; background: var(--es-line); }
/* ===== Espace connecté (app) ===== */
.es-app { max-width: 960px; margin: 0 auto; padding: 1.5rem 16px 5rem; }
.es-app--etroit { max-width: 720px; }
.es-titre { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800; letter-spacing: -.015em; margin: .2rem 0 .6rem; line-height: 1.15; }
.es-intro { color: var(--es-muted); font-size: 1.05rem; line-height: 1.55; margin-bottom: 1.5rem; max-width: 42rem; }
.es-retour { display: inline-flex; align-items: center; gap: .3rem; color: var(--es-muted); text-decoration: none; font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.es-retour:hover { color: var(--es-primary); }
.es-entete { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.es-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.es-choix-carte { display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid var(--es-line); border-radius: 16px; padding: 1.5rem; text-decoration: none; color: var(--es-ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.es-choix-carte:hover { border-color: var(--es-primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,118,110,.08); }
.es-choix-carte h2 { font-size: 1.25rem; font-weight: 800; margin: .3rem 0 0; }
.es-choix-carte p { color: var(--es-muted); margin: 0; line-height: 1.5; flex: 1; }
.es-choix-action { display: inline-flex; align-items: center; gap: .3rem; color: var(--es-primary); font-weight: 700; margin-top: .5rem; }

.es-liste { display: grid; gap: .8rem; }
.es-copro-carte { display: block; background: #fff; border: 1px solid var(--es-line); border-radius: 14px; padding: 1.2rem 1.3rem; text-decoration: none; color: var(--es-ink); transition: border-color .15s; }
.es-copro-carte:hover { border-color: var(--es-primary); }
.es-copro-carte-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.es-copro-carte h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.es-copro-adresse { color: var(--es-muted); margin: .2rem 0 0; }
.es-copro-meta { font-size: .9rem; color: var(--es-muted); margin: .3rem 0 0; }
.es-essai { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; padding: .55rem .8rem; background: #ECF6F4; color: #0B5E58; border-radius: 10px; font-size: .9rem; }

.es-etapes { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.6rem; counter-reset: none; }
.es-etapes li { flex: 1; display: flex; align-items: center; gap: .5rem; padding-top: .6rem; border-top: 3px solid var(--es-line); color: var(--es-muted); font-size: .85rem; font-weight: 600; }
.es-etapes li.actif { border-color: var(--es-primary); color: var(--es-ink); }
.es-etapes li.fait { border-color: var(--es-primary); }
.es-etapes-num { display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--es-line); color: var(--es-ink); font-size: .8rem; }
.es-etapes li.actif .es-etapes-num, .es-etapes li.fait .es-etapes-num { background: var(--es-primary); color: #fff; }
@media (max-width: 520px) { .es-etapes li:not(.actif) .es-etapes-titre { display: none; } }

.es-recherche { display: flex; gap: .7rem; align-items: center; }
.es-recherche .mud-input-control { flex: 1; }
@media (max-width: 520px) { .es-recherche { flex-direction: column; align-items: stretch; } }
.es-resultats-titre { margin: 1.4rem 0 .6rem; font-weight: 700; }
.es-resultats { display: grid; gap: .6rem; }
.es-resultat { display: grid; gap: .2rem; text-align: left; width: 100%; background: #fff; border: 1px solid var(--es-line); border-radius: 12px; padding: 1rem 1.1rem; cursor: pointer; font: inherit; color: var(--es-ink); transition: border-color .15s, background .15s; }
.es-resultat:hover, .es-resultat:focus-visible { border-color: var(--es-primary); background: #FBFAF7; }
.es-resultat-nom { font-weight: 800; }
.es-resultat-adresse { color: var(--es-muted); }
.es-resultat-meta { font-size: .85rem; color: var(--es-muted); }
.es-resultat-action { color: var(--es-primary); font-weight: 700; font-size: .9rem; margin-top: .2rem; }

.es-formulaire { display: grid; gap: 1.1rem; background: #fff; border: 1px solid var(--es-line); border-radius: 16px; padding: clamp(1rem, 3vw, 1.6rem); }
.es-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.es-ligne:has(.es-cp) { grid-template-columns: 9rem 1fr; }
@media (max-width: 560px) { .es-ligne, .es-ligne:has(.es-cp) { grid-template-columns: 1fr; } }
.es-fieldset { border: 0; padding: 0; margin: .3rem 0 0; }
.es-fieldset legend { font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.es-fieldset .mud-radio-group { display: flex; flex-direction: column; }
.es-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.es-actions--secondaire { justify-content: flex-start; margin-top: 1rem; }

.es-checklist { display: grid; gap: .5rem; }
.es-checklist-item { display: flex; align-items: flex-start; gap: .4rem; background: #fff; border: 1px solid var(--es-line); border-radius: 12px; padding: .5rem .8rem .7rem .3rem; cursor: pointer; }
.es-checklist-item span { display: grid; padding-top: .55rem; }
.es-checklist-item small { color: var(--es-muted); }

.es-recap { background: #fff; border: 1px solid var(--es-line); border-radius: 16px; padding: 1.4rem; }
.es-recap h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 .3rem; }
.es-recap p { margin: .2rem 0; color: var(--es-muted); }
.es-recap-note { display: flex; gap: .4rem; align-items: flex-start; margin-top: .8rem !important; color: #8A4B0B !important; }
.es-plan-essai { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1rem; padding: 1rem 1.2rem; background: #ECF6F4; border-radius: 14px; line-height: 1.5; }

.es-copro-entete { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .8rem; margin-bottom: .6rem; }
.es-puces { display: flex; flex-wrap: wrap; gap: .2rem; }
.es-bloc { background: #fff; border: 1px solid var(--es-line); border-radius: 16px; padding: clamp(1rem, 3vw, 1.6rem); margin-top: 1.2rem; }
.es-bloc h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 .8rem; }
.es-bloc-entete { display: flex; justify-content: space-between; align-items: baseline; }
.es-compteur { font-weight: 800; color: var(--es-primary); }
.es-bloc--bientot { display: flex; gap: 1rem; align-items: flex-start; background: #FBFAF7; border-style: dashed; }
.es-bloc--bientot h2 { margin-bottom: .3rem; }
.es-bloc--bientot p { margin: 0; color: var(--es-muted); }
.es-prochaine { display: grid; gap: .1rem; padding: .8rem 1rem; border-left: 4px solid var(--es-accent); background: #FDF6EC; border-radius: 0 10px 10px 0; margin-bottom: 1rem; }
.es-prochaine-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--es-accent); }
.es-parcours { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.es-parcours li { display: flex; gap: .3rem; align-items: flex-start; padding: .7rem 0; border-top: 1px solid var(--es-line); }
.es-parcours li:first-child { border-top: 0; }
.es-parcours h3 { font-size: 1.02rem; font-weight: 700; margin: .55rem 0 .2rem; }
.es-parcours li.fait h3 { text-decoration: line-through; color: var(--es-muted); }
.es-parcours p { margin: 0 0 .3rem; color: var(--es-muted); line-height: 1.5; }
.es-parcours-meta { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; font-size: .85rem; }
.es-reference { font-style: italic; }
.es-infos { display: grid; grid-template-columns: minmax(10rem, max-content) 1fr; gap: .5rem 1.2rem; margin: 0; }
.es-infos dt { color: var(--es-muted); font-weight: 600; }
.es-infos dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .es-infos { grid-template-columns: 1fr; gap: .1rem; } .es-infos dd { margin-bottom: .6rem; } }
.es-auth .form-floating > .form-control::placeholder, .es-account .form-floating > .form-control::placeholder { color: transparent; }

.es-parcours-meta { display: block !important; }
.es-parcours-meta .mud-icon-root { vertical-align: -4px; margin-right: .2rem; }

/* ===== L2 : lots, copropriétaires, clés ===== */
.es-onglets .mud-tabs-tabbar { background: transparent; border-bottom: 1px solid var(--es-line); }
.es-onglets .mud-tab { text-transform: none; font-weight: 700; }
.es-barre { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.es-barre-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.es-vide { text-align: center; background: #fff; border: 1px dashed #CFC8BA; border-radius: 16px; padding: 2rem 1.2rem; }
.es-vide h2 { font-size: 1.2rem; font-weight: 800; margin: .6rem 0 .4rem; }
.es-vide p { color: var(--es-muted); max-width: 34rem; margin: 0 auto 1.2rem; line-height: 1.55; }
.es-ligne-item { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--es-line); border-radius: 12px; padding: .7rem .5rem .7rem .9rem; }
.es-ligne-icone { color: var(--es-primary); flex-shrink: 0; }
.es-ligne-corps { display: grid; flex: 1; min-width: 0; }
.es-ligne-corps > span { color: var(--es-muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.es-ligne-chiffre { font-weight: 800; white-space: nowrap; }
.es-ligne-chiffre small { font-weight: 600; color: var(--es-muted); }
.es-statuts { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.es-statut { font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: #EFEBE3; color: var(--es-muted); }
.es-statut--ok { background: #E3F2EC; color: #15803D; }
.es-statut--attente { background: #FDF1DF; color: #9A5B0B; }
.es-total { font-size: .9rem; padding: .25rem .6rem; border-radius: 8px; white-space: nowrap; }
.es-total.ok { background: #E3F2EC; color: #15803D; }
.es-total.ko { background: #FDF1DF; color: #9A5B0B; }
div.es-total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .6rem .8rem; }
.es-raccourci { display: flex; align-items: center; gap: .9rem; margin-top: 1.2rem; background: #fff; border: 1px solid var(--es-line); border-radius: 16px; padding: 1rem 1.2rem; text-decoration: none; color: var(--es-ink); transition: border-color .15s; }
.es-raccourci:hover { border-color: var(--es-primary); }
.es-raccourci > div { display: grid; flex: 1; }
.es-raccourci span { color: var(--es-muted); font-size: .92rem; }
@media (max-width: 560px) { .es-masque-mobile { display: none !important; } }

/* Dialogues */
.es-dialogue { display: grid; gap: 1rem; padding-bottom: .5rem; }
.es-encart { background: #F7F5F0; border-radius: 12px; padding: .8rem 1rem; }
.es-encart p { margin: .3rem 0 0; color: var(--es-muted); font-size: .85rem; line-height: 1.5; }
.es-grille-tantiemes { display: grid; gap: .3rem; max-height: 50vh; overflow-y: auto; padding-right: .3rem; }
.es-grille-ligne { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .3rem 0; border-bottom: 1px solid var(--es-line); }
.es-grille-lot { display: grid; }
.es-grille-lot small { color: var(--es-muted); }
.es-grille-champ { max-width: 8rem; }
.es-lien { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: #F7F5F0; border-radius: 10px; padding: .6rem .8rem; }
.es-lien code { flex: 1; min-width: 0; word-break: break-all; font-size: .8rem; color: var(--es-ink); background: none; }
.es-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; background: #ECE8DF; padding: .25rem; border-radius: 12px; margin-bottom: 1.1rem; }
.es-segments button { border: 0; background: transparent; padding: .6rem .3rem; border-radius: 9px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--es-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .35rem; }
.es-segments button span { font-size: .75rem; background: rgba(0,0,0,.07); border-radius: 99px; padding: 0 .45rem; }
.es-segments button.actif { background: #fff; color: var(--es-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.es-segments button.actif span { background: #DDF0EC; color: var(--es-primary); }
.es-segments button:focus-visible { outline: 2px solid var(--es-primary); outline-offset: 1px; }
/* ===== L3 : santé de la copropriété, échéancier ===== */
.es-etat--ok { --etat: #15803D; --etat-fond: #E3F2EC; }
.es-etat--info { --etat: #1D4ED8; --etat-fond: #E6EDFB; }
.es-etat--attention { --etat: #9A5B0B; --etat-fond: #FDF1DF; }
.es-etat--retard { --etat: #B91C1C; --etat-fond: #FBE7E5; }
.es-etat--neutre { --etat: #55605C; --etat-fond: #EFEBE3; }
.es-synthese { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; background: #fff; border: 1px solid var(--es-line); border-left: 6px solid var(--etat); border-radius: 16px; padding: 1.1rem 1.3rem; }
.es-synthese-icone { color: var(--etat); font-size: 2.6rem !important; flex-shrink: 0; }
.es-synthese-texte { display: grid; gap: .2rem; flex: 1; min-width: 12rem; }
.es-synthese-texte strong { font-size: 1.2rem; font-weight: 800; }
.es-synthese-texte > span { color: var(--es-muted); }
.es-jauge { height: .5rem; border-radius: 99px; background: #ECE8DF; overflow: hidden; margin-top: .3rem; max-width: 22rem; }
.es-jauge span { display: block; height: 100%; background: var(--etat); border-radius: 99px; transition: width .3s; }
.es-segments--2 { grid-template-columns: repeat(2, 1fr); }
.es-sous-titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--es-muted); margin: 1.4rem 0 .6rem; }
.es-sous-titre--retard { color: #B91C1C; }
.es-point { background: #fff; border: 1px solid var(--es-line); border-left: 5px solid var(--etat); border-radius: 14px; padding: .9rem 1rem .5rem 1.1rem; }
.es-point-haut { display: flex; align-items: center; gap: .6rem; }
.es-point-icone { color: var(--etat); flex-shrink: 0; }
.es-point-haut h3 { font-size: 1.05rem; font-weight: 800; margin: 0; flex: 1; }
.es-pastille { font-size: .75rem; font-weight: 800; padding: .15rem .6rem; border-radius: 99px; background: var(--etat-fond); color: var(--etat); white-space: nowrap; }
.es-point-message { margin: .45rem 0 0; line-height: 1.5; }
.es-point-action { margin: .5rem 0 0; padding: .55rem .8rem; background: #F7F5F0; border-radius: 10px; line-height: 1.5; font-size: .95rem; }
.es-point-pied { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .35rem; }
.es-point-meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; color: var(--es-muted); font-size: .85rem; padding: .3rem 0; }
.es-point-meta .mud-icon-root { vertical-align: -4px; }
.es-replie { margin-top: 1.4rem; background: #fff; border: 1px solid var(--es-line); border-radius: 12px; padding: .8rem 1rem; }
.es-replie summary { cursor: pointer; font-weight: 700; color: var(--es-muted); }
.es-replie ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--es-muted); line-height: 1.6; }
.es-echeance { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--es-line); border-radius: 12px; padding: .6rem .3rem .6rem .7rem; }
.es-echeance.depassee { border-color: #F3C3BE; }
.es-echeance.faite { opacity: .65; }
.es-echeance.faite .es-echeance-corps > strong { text-decoration: line-through; }
.es-echeance-date { display: grid; place-items: center; min-width: 3.2rem; padding: .3rem 0; border-radius: 10px; background: #ECF6F4; color: var(--es-primary); line-height: 1.1; }
.es-echeance.depassee .es-echeance-date { background: #FBE7E5; color: #B91C1C; }
.es-echeance-date strong { font-size: 1.3rem; font-weight: 800; }
.es-echeance-date span { font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.es-echeance-corps { display: grid; flex: 1; min-width: 0; gap: .1rem; }
.es-echeance-corps > span { color: var(--es-muted); font-size: .88rem; line-height: 1.45; }
.es-statut--obligation { background: #E6EDFB; color: #1D4ED8; }
.es-statut--retard { background: #FBE7E5; color: #B91C1C; }
.es-dialogue-titre { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--es-primary); margin: .6rem 0 -.3rem; }
.es-raccourci.es-etat--ok, .es-raccourci.es-etat--info, .es-raccourci.es-etat--attention, .es-raccourci.es-etat--retard { border-left: 5px solid var(--etat); }
.es-raccourci .es-pastille { align-self: center; }
.es-actions-sante { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.es-actions-sante li { display: flex; gap: .4rem; align-items: flex-start; color: var(--es-ink); font-size: .92rem; }
.es-actions-sante .mud-icon-root { color: var(--etat); flex-shrink: 0; margin-top: .1rem; }
@media (max-width: 560px) { .es-synthese-bouton { width: 100%; } }
.es-copro-sante { display: flex; align-items: center; gap: .35rem; margin: .5rem 0 0; font-size: .9rem; font-weight: 700; color: var(--etat); }

/* ===== L4 : finances ===== */
.es-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
@media (max-width: 720px) { .es-chiffres { grid-template-columns: repeat(2, 1fr); } }
.es-chiffre { display: grid; gap: .1rem; background: #fff; border: 1px solid var(--es-line); border-radius: 14px; padding: .8rem .9rem; }
.es-chiffre span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--es-muted); }
.es-chiffre strong { font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.es-chiffre strong.negatif { color: #B91C1C; }
.es-chiffre small { color: var(--es-muted); font-size: .78rem; }
.es-chiffre.alerte { border-color: #F3C3BE; background: #FFF8F7; }
.es-chiffre.alerte strong { color: #B91C1C; }
.es-choix-exercice { max-width: 15rem; }
.es-ouverture { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 28rem; margin: 0 auto; text-align: left; }
.es-postes { display: grid; gap: .7rem; }
.es-poste-budget-haut { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; font-size: .95rem; }
.es-poste-budget-haut small { color: var(--es-muted); }
.es-jauge--budget { max-width: none; margin-top: .25rem; --etat: var(--es-primary); }
.es-jauge--budget.depasse { --etat: #B91C1C; }
.es-totaux { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--es-line); }
.es-totaux span { color: var(--es-muted); }
.es-tableau { display: grid; border: 1px solid var(--es-line); border-radius: 12px; overflow: hidden; }
.es-tableau-ligne { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: .5rem; padding: .55rem .8rem; border-top: 1px solid var(--es-line); align-items: center; font-size: .9rem; }
.es-tableau-ligne > :not(:first-child) { text-align: right; white-space: nowrap; }
.es-tableau-ligne span small { display: block; color: var(--es-muted); font-size: .78rem; }
.es-tableau-entete { border-top: 0; background: #F7F5F0; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--es-muted); }
.es-tableau-total { background: #F7F5F0; font-weight: 800; }
@media (max-width: 480px) { .es-tableau-ligne { grid-template-columns: 1.3fr 1fr 1fr; } .es-tableau-ligne > :nth-child(3) { display: none; } .es-tableau--releve > :nth-child(3) { display: block; } .es-tableau--releve { grid-template-columns: 1.4fr .9fr .9fr 1fr; font-size: .82rem; } }
.es-boutons-operations { display: flex; gap: .6rem; margin-bottom: 1rem; }
.es-boutons-operations .mud-button-root { flex: 1; }
.es-operation { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--es-line); border-radius: 12px; padding: .6rem .3rem .6rem .9rem; }
.es-operation.annulee { opacity: .55; }
.es-operation.annulee .es-ligne-corps > strong { text-decoration: line-through; }
.es-montant { display: grid; text-align: right; font-weight: 800; white-space: nowrap; }
.es-montant small { font-weight: 600; color: var(--es-muted); font-size: .75rem; }
.es-montant.entree { color: #15803D; }
.es-montant.sortie { color: #B91C1C; }
.es-cliquable { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.es-cliquable:hover:not(:disabled) { border-color: var(--es-primary); }
.es-cliquable:disabled { cursor: default; }
.es-statut--retard { background: #FBE7E5; color: #B91C1C; white-space: nowrap; }
.es-statut--ok { white-space: nowrap; }
.es-solde { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-radius: 12px; background: #E3F2EC; color: #15803D; }
.es-solde.du { background: #FBE7E5; color: #B91C1C; }
.es-solde strong { font-size: 1.3rem; font-weight: 800; }
.es-poste { display: grid; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--es-line); }
.es-poste-haut { display: flex; gap: .3rem; align-items: center; }
.es-poste-haut .mud-input-control { flex: 1; }
.es-choix-type .mud-radio { display: flex; }
/* Grilles de formulaire : jamais de débordement horizontal sur mobile */
.es-dialogue, .es-ligne > * { min-width: 0; }
@media (max-width: 560px) { .es-dialogue .es-ligne { grid-template-columns: 1fr; gap: .5rem; } }
.es-dialogue { grid-template-columns: minmax(0, 1fr); }
.es-poste { grid-template-columns: minmax(0, 1fr); }
.es-poste-haut > :first-child { flex: 1; min-width: 0; } .es-poste-haut > .mud-icon-button { flex-shrink: 0; }

/* ===== L4b : relevé, clôture, annexes ===== */
.es-segments--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .es-segments--4 button { font-size: .8rem; padding: .55rem .1rem; } }
.es-import { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; border: 2px dashed #CFC8BA; border-radius: 14px; color: var(--es-primary); font-weight: 700; cursor: pointer; }
.es-import:hover { border-color: var(--es-primary); background: #FBFAF7; }
.es-import input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.es-mouvement { display: flex; justify-content: space-between; gap: .8rem; align-items: center; padding: .8rem 1rem; background: #F7F5F0; border-radius: 12px; }
.es-mouvement strong { white-space: nowrap; font-size: 1.1rem; }
.es-mouvement .entree { color: #15803D; }
.es-mouvement .sortie { color: #B91C1C; }
.es-boutons-exercice { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.es-texte-retard { color: #B91C1C; }
.es-annexe { background: #fff; border: 1px solid var(--es-line); border-radius: 16px; padding: 1rem; margin-top: 1.2rem; overflow-x: auto; }
.es-annexe h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .2rem; }
.es-annexe-num { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--es-primary); }
.es-annexe table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 36rem; }
.es-annexe th { text-align: right; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--es-muted); padding: .4rem; background: #F7F5F0; }
.es-annexe th:first-child { text-align: left; }
.es-annexe td { padding: .35rem .4rem; border-bottom: 1px solid var(--es-line); text-align: right; white-space: nowrap; }
.es-annexe td:first-child { text-align: left; white-space: normal; }
.es-annexe tr.titre td { background: #F7F5F0; font-weight: 800; color: var(--es-primary); }
.es-annexe tr.total td { font-weight: 800; border-bottom: 2px solid var(--es-ink); }
.es-annexe tr.detail td:first-child { padding-left: 1.4rem; font-style: italic; color: var(--es-muted); }
.es-annexe-note { color: var(--es-muted); font-size: .8rem; margin: .6rem 0 0; }
.es-provisoire { background: #FDF1DF; color: #9A5B0B; border-radius: 10px; padding: .6rem .9rem; font-weight: 700; }

/* ===== L5 : assemblées générales ===== */
.es-numero { display: grid; place-items: center; min-width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #ECF6F4; color: var(--es-primary); font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.es-pieces { margin: .3rem 0 0; padding-left: 1.1rem; color: var(--es-muted); font-size: .88rem; }
.es-odj { padding-left: 1.2rem; display: grid; gap: .6rem; }
.es-odj li span { display: block; color: var(--es-muted); font-size: .9rem; white-space: pre-line; }
.es-presence { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; background: #fff; border: 1px solid var(--es-line); border-radius: 12px; padding: .5rem .7rem; }
.es-presence .es-ligne-corps { min-width: 9rem; }
.es-choix-presence { max-width: 12rem; }
.es-mandataire { flex-basis: 100%; }
.es-vote-haut { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.es-vote-rapide { display: flex; gap: .5rem; margin-bottom: .5rem; }
.es-votants { display: grid; gap: .35rem; }
.es-votant { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .25rem 0; border-bottom: 1px solid var(--es-line); }
.es-votant small { color: var(--es-muted); margin-left: .3rem; }
.es-choix-vote { display: inline-flex; background: #ECE8DF; border-radius: 9px; padding: .15rem; gap: .15rem; }
.es-choix-vote button { border: 0; background: transparent; font: inherit; font-size: .8rem; font-weight: 700; color: var(--es-muted); padding: .3rem .55rem; border-radius: 7px; cursor: pointer; }
.es-choix-vote button.actif { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.es-choix-vote button.actif.pour { color: #15803D; }
.es-choix-vote button.actif.contre { color: #B91C1C; }
.es-choix-vote button.actif.abstention { color: #9A5B0B; }
.es-resultat-vote { margin: .6rem 0 .2rem; font-size: .9rem; color: var(--es-ink); background: #F7F5F0; border-radius: 10px; padding: .5rem .7rem; }
.es-second-vote { margin-top: .6rem; padding: .7rem; border: 2px dashed #CFC8BA; border-radius: 12px; display: grid; gap: .4rem; }

/* ===== L6 : documents ===== */
.es-texte-attention { color: #9A5B0B !important; }
.es-lien-document { text-decoration: none; color: inherit; }
.es-lien-document:hover strong { color: var(--es-primary); text-decoration: underline; }

/* ===== L7 : assistant (base de connaissances) ===== */
.es-question { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; background: #fff; border: 1px solid var(--es-line); border-radius: 14px; padding: .35rem .4rem .35rem .9rem; }
.es-question input[name=q] { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: .5rem 0; background: transparent; }
.es-question button { border: 0; background: var(--es-primary); color: #fff; border-radius: 10px; padding: .4rem .6rem; cursor: pointer; display: grid; place-items: center; }
.es-question:focus-within { border-color: var(--es-primary); }
.es-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .8rem; color: var(--es-muted); font-size: .85rem; }
.es-suggestions button { border: 0; cursor: pointer; font: inherit; font-size: .8rem; }
.es-terme { background: #ECF6F4; border-radius: 14px; padding: .9rem 1rem; }
.es-terme strong { color: var(--es-primary); text-transform: capitalize; }
.es-terme p { margin: .3rem 0; line-height: 1.5; }
.es-terme a { font-weight: 700; font-size: .9rem; }
.es-hors-sujet { opacity: .7; }
.es-fiche { background: #fff; border: 1px solid var(--es-line); border-radius: 16px; padding: clamp(1rem, 3vw, 1.6rem); line-height: 1.6; overflow-x: auto; }
.es-fiche h2 { font-size: 1.1rem; font-weight: 800; margin: 1.2rem 0 .5rem; color: var(--es-primary); }
.es-fiche h2:first-child { margin-top: 0; }
.es-fiche table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: .6rem 0; }
.es-fiche th, .es-fiche td { border-bottom: 1px solid var(--es-line); padding: .4rem; text-align: left; vertical-align: top; }
.es-fiche th { background: #F7F5F0; }
.es-fiche ul, .es-fiche ol { padding-left: 1.2rem; }
.es-sources { margin: 0; padding-left: 1.1rem; line-height: 1.7; }
.es-avertissement { margin-top: 1.6rem; color: var(--es-muted); font-size: .8rem; line-height: 1.5; border-top: 1px solid var(--es-line); padding-top: .8rem; }
