/* ---------- Polices, servies depuis ce serveur ---------- */
/* Elles étaient chargées depuis fonts.googleapis.com : le navigateur de chaque
   visiteur transmettait alors son adresse IP à Google, aux États-Unis, sur
   toutes les pages — mentions légales publiques comprises. Les héberger ici
   supprime ce transfert, permet à la politique de confidentialité d'affirmer
   qu'aucune donnée ne quitte l'hébergeur, et évite de dépendre d'un tiers pour
   afficher le site.

   Inter et Source Serif 4 sont sous licence SIL Open Font License 1.1, qui
   autorise cet hébergement (voir static/fonts/LICENCE.txt).

   Deux fichiers par famille : « latin » couvre le français courant, « latin-ext »
   les caractères plus rares. Le navigateur ne télécharge le second que s'il
   rencontre un caractère qui s'y trouve, grâce à unicode-range.

   Polices variables : un seul fichier porte toutes les graisses, d'où
   « font-weight: 100 900 » plutôt qu'un fichier par graisse. */

@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('/static/fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('/static/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Source Serif 4';
  font-style:normal;
  font-weight:200 900;
  font-display:swap;
  src:url('/static/fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Source Serif 4';
  font-style:normal;
  font-weight:200 900;
  font-display:swap;
  src:url('/static/fonts/source-serif-4-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root{
  --bg:#f6f6f4;
  --paper:#ffffff;
  --ink:#1b1d22;
  --ink-soft:#565a63;
  --line:#e6e5e0;
  --accent:#1f5c4d;
  --accent-soft:#e7f2ee;
  --accent-strong:#164539;
  --gold:#a7791f;
  --gold-soft:#faf3e3;
  --radius:14px;
  font-size:16px;
}
*{box-sizing:border-box;}
html{scroll-behavior:auto;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  /* Le pied de page tient le bas de la fenêtre. Sans cette colonne souple,
     les mentions légales remontaient au milieu de l'écran dès que la page
     était courte — un accueil à trois blocs, une liste vide — et flottaient
     là, sans rien dessous. La règle est la même partout : le contenu pousse,
     le pied de page suit ; il ne colle au bas de la fenêtre que lorsqu'il n'y
     a pas de quoi la remplir. */
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
/* Les écrans possibles — connexion, application, page statique (les mentions
   légales) — occupent la place restante, et cèdent le bas au pied de page. */
#app, .login-screen, .page-statique{flex:1 0 auto;}
.serif{font-family:"Source Serif 4", Georgia, serif;}
a{color:var(--accent-strong);}
button{font-family:inherit;}

/* ---------- Login screen ---------- */
/* Plus de min-height:100vh ici : c'est body qui garantit la hauteur. La
   conserver ajouterait la hauteur du pied de page à celle de la fenêtre, et
   les mentions légales repasseraient sous la ligne de flottaison. */
.login-screen{
  display:flex; align-items:center; justify-content:center; padding:24px;
}
.login-screen[hidden]{display:none;}
.login-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:36px 32px; width:100%; max-width:380px; box-shadow:0 20px 50px -25px rgba(20,30,25,.25);
}
/* .login-eyebrow a été retirée avec le sur-titre « COPROPRIÉTÉ » qu'elle
   habillait : elle ne servait qu'à cet endroit. */
.login-title{font-size:1.4rem; font-weight:800; margin:0 0 6px;}
.login-sub{color:var(--ink-soft); font-size:0.9rem; margin:0 0 26px;}
.field{margin-bottom:16px;}
.field label{display:block; font-size:0.8rem; font-weight:700; color:var(--ink-soft); margin-bottom:6px;}
.field input{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px;
  font-size:0.95rem; font-family:inherit; background:#fbfbfa;
}
.field input:focus{outline:2px solid var(--accent-soft); border-color:var(--accent);}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--accent-strong); color:#fff; border:none; border-radius:10px;
  padding:12px 18px; font-size:0.92rem; font-weight:700; cursor:pointer;
  transition:background .15s ease;
  width:100%;
}
.btn:hover{background:var(--accent);}
.btn:disabled{opacity:.6; cursor:not-allowed;}
.btn-ghost{
  background:transparent; color:var(--ink-soft); border:1px solid var(--line); width:auto; padding:8px 14px; font-size:0.82rem;
}
.btn-ghost:hover{background:var(--accent-soft); color:var(--accent-strong);}
.login-error{
  background:#fbeaea; color:#a13636; border:1px solid #f1cccc; border-radius:10px;
  padding:10px 14px; font-size:0.85rem; margin-bottom:16px;
}
/* Même cadre, autre ton : « session close faute d'activité » explique, il ne
   reproche rien. Le rouge de l'erreur de saisie ferait croire à une faute. */
.login-error.login-info{background:var(--accent-soft); color:var(--accent-strong); border-color:var(--line);}

/* ---------- Top nav ---------- */
.topnav{
  position:sticky; top:0; z-index:50;
  background:rgba(246,246,244,0.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.topnav-inner{
  max-width:900px; margin:0 auto;
  display:flex; align-items:center; gap:6px;
  padding:10px 24px;
  overflow-x:auto;
  scrollbar-width:none;
}
.topnav-inner::-webkit-scrollbar{display:none;}
.topnav a{
  flex:0 0 auto;
  font-size:0.82rem; font-weight:600;
  text-decoration:none;
  color:var(--ink-soft);
  padding:7px 12px;
  border-radius:100px;
  white-space:nowrap;
  transition:background .15s ease, color .15s ease;
  cursor:pointer;
}
.topnav a:hover{background:var(--accent-soft); color:var(--accent-strong);}
.topnav-spacer{flex:1 1 auto;}
.topnav-user{
  flex:0 0 auto; font-size:0.8rem; color:var(--ink-soft); font-weight:600;
  display:flex; align-items:center; gap:10px; padding-left:10px;
}
.role-badge{
  background:var(--gold-soft); color:var(--gold); border-radius:100px; padding:3px 10px;
  font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
}

/* ---------- Layout ---------- */
.wrap{max-width:900px; margin:0 auto; padding:0 24px 80px;}

header.hero{padding:56px 0 36px; border-bottom:1px solid var(--line);}
.eyebrow{text-transform:uppercase; letter-spacing:.08em; font-size:0.72rem; font-weight:700; color:var(--accent-strong); margin:0 0 14px;}
h1.title{font-size:2.1rem; line-height:1.2; margin:0 0 10px; font-weight:800; letter-spacing:-0.01em;}
.subtitle{color:var(--ink-soft); font-size:1.05rem; margin:0;}
.meta-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:22px;}
.meta-pill{
  background:var(--paper); border:1px solid var(--line); border-radius:100px;
  padding:7px 14px; font-size:0.82rem; font-weight:600; color:var(--ink-soft);
  display:flex; align-items:center; gap:6px;
}
.meta-pill b{color:var(--ink); font-weight:700;}
.meta-pill[contenteditable]{cursor:text;}
.status-select{
  border:1px solid var(--line); border-radius:100px; padding:6px 12px; font-size:0.8rem;
  font-weight:700; color:var(--accent-strong); background:var(--accent-soft); font-family:inherit;
}

/* ---------- Dashboard ---------- */
.dashboard{display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:32px 0 0;}
.stat-card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:18px 16px;}
.stat-num{font-size:1.7rem; font-weight:800; color:var(--accent-strong); line-height:1;}
.stat-label{font-size:0.78rem; color:var(--ink-soft); margin-top:6px; font-weight:600;}
.dashboard-3{grid-template-columns:repeat(3,1fr);}
.espace-dashboard{margin:0 0 28px;}
.stat-ok{color:#1f7a4c;}
.stat-ko{color:#b3261e;}

section{padding:44px 0; border-bottom:1px solid var(--line); scroll-margin-top:64px;}
section:last-of-type{border-bottom:none;}
h2.section-title{font-size:1.5rem; font-weight:800; margin:0 0 6px; letter-spacing:-0.01em;}
.section-lede{color:var(--ink-soft); margin:0 0 28px; font-size:0.98rem;}

/* ---------- Resolution cards ---------- */
.resolution{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px; margin-bottom:16px; position:relative;}
.resolution + .resolution{margin-top:16px;}

/* Séance non ouverte : la résolution est rédigée mais rien n'y est votable. Elle
   se désature et s'estompe — assez pour se lire, assez peu pour qu'on n'essaie
   pas d'y voter. Le texte reste sélectionnable : on doit pouvoir le relire. */
.resolution-grisee{filter:grayscale(1); opacity:0.6;}
.vote-verrouille{
  margin:0 0 16px; padding:11px 14px; font-size:0.86rem; color:#6b6f76;
  background:#fafaf8; border:1px dashed var(--line); border-radius:var(--radius);
}
.vote-verrouille a{color:var(--accent-strong); font-weight:600; cursor:pointer; text-decoration:underline;}
.res-head{display:flex; align-items:flex-start; gap:14px; margin-bottom:10px;}
.res-num{
  flex:0 0 auto; width:34px; height:34px; border-radius:9px;
  background:var(--accent-soft); color:var(--accent-strong);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:0.95rem;
}
.res-titles{flex:1 1 auto;}
.res-titles h3{margin:0; font-size:1.08rem; font-weight:700;}
.res-titles h3[contenteditable]{cursor:text; border-radius:6px;}
.res-titles h3[contenteditable]:hover, .res-titles h3[contenteditable]:focus{outline:2px dashed var(--accent-soft); outline-offset:3px;}
.res-titles .res-article{font-size:0.78rem; color:var(--ink-soft); font-weight:600;}
.res-titles .res-article[contenteditable]:hover, .res-titles .res-article[contenteditable]:focus{outline:2px dashed var(--accent-soft); outline-offset:2px;}
.res-body{font-size:0.97rem; color:#33353b; margin:12px 0 16px;}
.res-body[contenteditable]:hover, .res-body[contenteditable]:focus{outline:2px dashed var(--accent-soft); outline-offset:4px; border-radius:8px;}
.res-body ul{margin:8px 0 0; padding-left:20px;}
.res-body li{margin-bottom:4px;}

/* Résolutions de désignation : le nom de l'élu est un menu posé dans la phrase.
   Il se lit comme le blanc à remplir d'un formulaire — pas de cadre ni de fond,
   un simple trait sous le nom. */
.res-body-designation{line-height:1.95; margin-bottom:6px;}
.designation-inline{
  appearance:none; -webkit-appearance:none;
  font-family:inherit; font-size:inherit; font-weight:600;
  color:#33353b; background-color:transparent;
  border:0; border-bottom:1px solid #c2c5ca; border-radius:0;
  margin:0; padding:0 13px 1px 1px; max-width:100%; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8d93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 1px center; background-size:8px 5px;
}
.designation-inline:hover{border-bottom-color:var(--accent); color:var(--accent-strong);}
.designation-inline:focus-visible{
  outline:2px solid var(--accent-soft); outline-offset:3px; border-radius:3px;
  border-bottom-color:var(--accent);
}
.designation-inline-vide{color:#8a8d93; font-weight:400; font-style:italic;}
.designation-inline:disabled{
  color:#9a9da2; font-weight:400; font-style:italic;
  border-bottom-style:dashed; cursor:not-allowed;
  background-image:none; padding-right:1px;
}
.designation-aide{margin:0 0 16px; font-size:0.83rem; color:#6b6f76;}

.vote-badge{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--accent-soft); color:var(--accent-strong);
  border-radius:100px; padding:6px 14px 6px 10px; font-size:0.83rem; font-weight:700;
}
.vote-badge .dot{width:8px; height:8px; border-radius:50%; background:var(--accent-strong);}
.vote-meta{font-size:0.8rem; color:var(--ink-soft); margin-left:10px; font-weight:500;}

details.vote-detail{margin-top:12px;}
details.vote-detail summary{
  cursor:pointer; font-size:0.8rem; color:var(--ink-soft); font-weight:600;
  list-style:none; display:inline-flex; align-items:center; gap:4px;
}
details.vote-detail summary::-webkit-details-marker{display:none;}
details.vote-detail summary::before{content:"▸"; font-size:0.7rem; transition:transform .15s;}
details.vote-detail[open] summary::before{transform:rotate(90deg);}
.vote-table{margin-top:10px; border:1px solid var(--line); border-radius:10px; overflow:hidden; font-size:0.85rem;}
.vote-row{display:flex; justify-content:space-between; padding:8px 14px; gap:10px;}
.vote-row:not(:last-child){border-bottom:1px solid var(--line);}
.vote-row span:first-child{color:var(--ink-soft); font-weight:600; flex:0 0 auto;}
.vote-row span:last-child{font-weight:700;}
.vote-row [contenteditable]{min-width:40px; display:inline-block;}
.vote-row [contenteditable]:hover, .vote-row [contenteditable]:focus{outline:2px dashed var(--accent-soft); border-radius:4px;}
.vote-row.total{background:var(--accent-soft);}

/* ---------- Ouverture de séance : horodatage, émargement, quorum ---------- */
.ouverture-attente{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px; display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
}
.ouverture-attente p{margin:0; font-size:0.92rem; color:var(--ink-soft); flex:1 1 280px;}
.ouverture-attente .btn{width:auto; flex:0 0 auto;}
.ouverture-horodatage{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
.ouverture-champ{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px;
}
.ouverture-label{display:block; font-size:0.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-soft); font-weight:700; margin-bottom:5px;}
.ouverture-champ b{font-size:0.95rem;}
.ouverture-champ b[contenteditable]:hover, .ouverture-champ b[contenteditable]:focus{outline:2px dashed var(--accent-soft); outline-offset:2px; border-radius:4px;}

table.emargement td.num{text-align:right; font-variant-numeric:tabular-nums;}
table.emargement .emargement-col{text-align:center;}
/* La feuille de présence n'a pas de ligne « Total » : sans cette règle, le
   dernier lot hériterait de la mise en avant réservée aux totaux (table.lots). */
table.lots.emargement tr:last-child td{background:transparent; font-weight:400;}
table.lots.emargement tr.emargement-votant td{background:rgba(122,150,124,.07);}
.emargement-case{width:20px; height:20px; accent-color:var(--accent-strong); cursor:pointer;}
.emargement-pouvoir, .emargement-mandataire{
  padding:6px 10px; border:1px solid var(--line); border-radius:8px;
  font-size:0.86rem; font-family:inherit; background:#fbfbfa; max-width:100%;
}
.emargement-mandataire{min-width:150px;}
.emargement-pouvoir:focus, .emargement-mandataire:focus{outline:2px solid var(--accent-soft); border-color:var(--accent);}
.emargement-vide{color:var(--ink-soft);}

.quorum-bandeau{
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:14px;
  background:var(--accent-soft); border-radius:var(--radius); padding:16px 18px;
}
.quorum-bandeau div{display:flex; flex-direction:column; gap:2px;}
.quorum-bandeau b{font-size:1.25rem; color:var(--accent-strong);}
.quorum-bandeau span{font-size:0.78rem; color:var(--ink-soft); font-weight:600;}

/* ---------- Scrutin : un choix par lot sur chaque résolution ---------- */
.scrutin{margin:10px 0 12px; border:1px solid var(--line); border-radius:10px; overflow:hidden;}
.scrutin-ligne{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 14px; flex-wrap:wrap;
}
.scrutin-ligne:not(:last-child){border-bottom:1px solid var(--line);}
.scrutin-absent{background:#faf9f7;}
.scrutin-lot{font-size:0.86rem; flex:1 1 200px;}
.scrutin-voix{display:block; font-size:0.76rem; color:var(--ink-soft); font-weight:600;}
.scrutin-choix{display:flex; gap:6px; flex-wrap:wrap;}
.choix-vote{
  border:1px solid var(--line); background:#fbfbfa; color:var(--ink-soft);
  border-radius:100px; padding:5px 12px; font-size:0.78rem; font-weight:700;
  font-family:inherit; cursor:pointer; transition:background .12s, color .12s, border-color .12s;
}
.choix-vote:hover:not(:disabled){border-color:var(--accent); color:var(--ink);}
.choix-vote:disabled{cursor:default; opacity:.6;}
.choix-vote.actif{color:#fff; border-color:transparent;}
.choix-pour.actif{background:var(--accent-strong);}
.choix-contre.actif{background:#a8524a;}
.choix-abstention.actif{background:#9a8a5e;}
.choix-absent.actif{background:#77787c;}
.scrutin-statut{
  display:block; font-size:0.78rem; color:var(--ink-soft); font-weight:600; margin-top:10px;
}
.scrutin-statut [contenteditable]{
  display:inline-block; margin-left:8px; color:var(--ink); font-weight:700; min-width:60px;
}
.scrutin-statut [contenteditable]:hover, .scrutin-statut [contenteditable]:focus{outline:2px dashed var(--accent-soft); border-radius:4px;}
.vote-resume{display:flex; align-items:center; gap:4px; flex-wrap:wrap;}
.vote-badge.resultat-rejetee{background:#f6e7e5; color:#8f4139;}
.vote-badge.resultat-rejetee .dot{background:#8f4139;}
.vote-badge.resultat-en_cours{background:#f1f1ee; color:var(--ink-soft);}
.vote-badge.resultat-en_cours .dot{background:var(--ink-soft);}
.vote-badge.resultat-second_vote{background:var(--gold-soft); color:var(--gold);}
.vote-badge.resultat-second_vote .dot{background:var(--gold);}

/* ---------- Plain text sections ---------- */
.prose p{margin:0 0 14px; font-size:0.98rem;}
.prose ul{padding-left:20px;}
.prose li{margin-bottom:12px; font-size:0.95rem; color:#33353b;}
.callout{background:var(--gold-soft); border:1px solid #f0dfb4; border-radius:var(--radius); padding:18px 20px; font-size:0.95rem;}
.callout-title{font-weight:700; color:var(--gold); margin:0 0 6px; font-size:0.85rem; text-transform:uppercase; letter-spacing:.04em;}
.callout [contenteditable]:hover, .callout [contenteditable]:focus{outline:2px dashed #e6cd8f; outline-offset:3px; border-radius:6px;}

/* ---------- Questions diverses ---------- */
/* Une carte par question, en nombre libre. L'écart entre elles est le même
   que celui qui sépare les résolutions : ce sont des points d'un même
   procès-verbal, pas des blocs d'une autre nature. */
.diverses-liste{display:flex; flex-direction:column; gap:14px;}
/* Le bouton d'ajout se détache de la dernière carte : collé à elle, il se
   lisait comme une partie de la question du dessus. */
#btn-add-diverse{margin-top:16px;}
/* La carte est une grille de deux colonnes : la question à gauche, ses
   commandes à droite. Les commandes viennent en dernier dans le HTML — l'ordre
   de lecture d'un écran étroit — et c'est la grille qui les remonte à hauteur
   de l'intitulé, où elles se rangent à la même abscisse d'une question à
   l'autre. */
.diverse{display:grid; grid-template-columns:1fr auto; column-gap:12px; align-items:start;}
.diverse-titre{grid-column:1; margin:0 0 6px;}
.diverse-texte{grid-column:1; margin:0;}
.diverse-actions{grid-column:2; grid-row:1 / span 2; display:flex; align-items:center; gap:6px;}
.diverse-fleche{
  width:26px; height:26px; padding:0; line-height:1; cursor:pointer;
  background:var(--paper); border:1px solid #e3d2a8; border-radius:6px;
  color:var(--gold); font-size:0.8rem; font-family:inherit;
}
.diverse-fleche:hover:not(:disabled){background:#fff; border-color:var(--gold);}
/* Aux extrémités de la liste la flèche reste en place, visiblement inerte :
   la rangée garde sa largeur, et rien ne se déplace sous le curseur. */
.diverse-fleche:disabled{opacity:.35; cursor:default;}

/* Repère d'un champ encore vide. Il est dessiné par le CSS et non écrit dans
   le champ : un texte d'exemple réellement présent devrait être effacé avant
   d'écrire, et celui qu'on aurait oublié d'effacer partirait à l'impression. */
.diverse-titre [contenteditable]:empty::before{content:"Intitulé de la question";}
.diverse-texte [contenteditable]:empty::before{content:"Ce qui a été exposé, et la suite qui y sera donnée";}
.diverse-titre [contenteditable]:empty::before,
.diverse-texte [contenteditable]:empty::before{color:var(--ink-soft); font-weight:400; font-style:italic;}

/* ---------- Legal notice list ---------- */
.legal-list{list-style:none; margin:0; padding:0;}
.legal-list li{padding:14px 0; border-bottom:1px solid var(--line); font-size:0.9rem; color:var(--ink-soft);}
.legal-list li:last-child{border-bottom:none;}
.legal-list b{color:var(--ink);}

/* ---------- Signatures ---------- */
.sign-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:20px;}
.sign-card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:16px; text-align:center;}
.sign-role{font-size:0.75rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-soft); font-weight:700; margin-bottom:8px;}
.sign-name{font-weight:700; margin-bottom:10px;}
.sign-name[contenteditable]:hover, .sign-name[contenteditable]:focus{outline:2px dashed var(--accent-soft); border-radius:6px;}
.sign-check{
  display:inline-flex; align-items:center; gap:6px; font-size:0.8rem;
  color:var(--accent-strong); font-weight:700; background:var(--accent-soft);
  padding:5px 12px; border-radius:100px; border:none; cursor:default;
}
.sign-check.pending{color:var(--ink-soft); background:#f1f1ee;}
.sign-check.editable{cursor:pointer;}

/* ---------- Approbation des copropriétaires (section 7) ---------- */
/* Deux colonnes et non trois comme le bureau : chaque encadré doit offrir une
   zone assez large pour qu'une signature déposée dedans y tienne sans être
   réduite. Quatre lots donnent donc deux lignes de deux. */
.approbation-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:20px;}
.approbation-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px 18px 14px;
}
.approbation-lot{
  font-size:0.75rem; text-transform:uppercase; letter-spacing:.05em;
  color:var(--ink-soft); font-weight:700;
}
/* L'exposant des millièmes échappe à la capitalisation de la ligne : sans
   cela, « 392/1000ᵉ » s'imprimait « 392/1000E ». */
.approbation-lot sup{text-transform:none;}
.approbation-nom{font-weight:700; margin-top:3px;}
.approbation-mention{font-size:0.82rem; color:var(--ink-soft); margin-top:8px;}
/* Le cadre en pointillé dit « à remplir », par la même convention que les
   champs à compléter du reste de l'application. La hauteur est fixée en
   millimètres : c'est une zone destinée au papier, et une signature déposée
   là doit disposer d'une place constante quelle que soit la fenêtre. */
.approbation-zone{
  margin-top:10px; height:24mm; border:1px dashed var(--line); border-radius:6px;
  display:flex; align-items:center; justify-content:center;
}
.approbation-zone span{
  font-size:0.72rem; color:#a8a8a0; letter-spacing:.04em;
}
.approbation-date{font-size:0.8rem; color:var(--ink-soft); margin-top:10px;}

/* ---------- Appendix accordions ---------- */
.accordion{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); margin-bottom:12px; overflow:hidden;}
.accordion summary{
  cursor:pointer; padding:18px 22px; font-weight:700; font-size:1rem;
  list-style:none; display:flex; align-items:center; justify-content:space-between;
}
.accordion summary::-webkit-details-marker{display:none;}
.accordion summary::after{content:"+"; font-size:1.4rem; color:var(--ink-soft); font-weight:400;}
.accordion[open] summary::after{content:"–";}
.accordion .accordion-body{padding:0 22px 22px; font-size:0.92rem; color:#33353b;}
.accordion .accordion-body p{margin:0 0 12px;}
.accordion .accordion-body blockquote{
  margin:0 0 12px; padding-left:14px; border-left:3px solid var(--accent-soft);
  font-style:italic; color:var(--ink-soft);
}

table.lots{width:100%; border-collapse:collapse; margin-top:8px; font-size:0.9rem;}
table.lots th, table.lots td{padding:12px 14px; text-align:left; border-bottom:1px solid var(--line);}
table.lots th{font-size:0.75rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-soft);}
table.lots tr:last-child td{border-bottom:none; font-weight:700; background:var(--accent-soft);}

/* Appels de fonds : tableau déduit du budget voté, jamais saisi. Les chiffres
   s'alignent à droite en chasse fixe pour que les colonnes se comparent d'un
   coup d'œil ; la somme due par trimestre est la colonne qui se lit en premier. */
.appels-titre{font-size:1rem; margin:32px 0 2px;}
/* Plutôt que de comprimer les colonnes sur un écran étroit, le tableau garde
   sa largeur et défile : une somme coupée en deux lignes ne se relit pas. */
table.lots.appels{margin-top:14px; min-width:520px;}
table.lots.appels td:first-child{white-space:nowrap;}
/* « table.lots td » aligne à gauche : il faut au moins autant de spécificité
   pour que les colonnes de chiffres s'alignent à droite. */
table.lots.appels th.appels-num, table.lots.appels td.appels-num{
  text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap;
}
table.lots.appels td.appels-du{font-weight:700; color:var(--accent-strong);}
.appels-ecart{margin:10px 0 0; font-size:0.82rem; color:var(--ink-soft); font-style:italic;}
.appels-vide{
  margin:26px 0 0; padding:14px 16px; font-size:0.87rem; color:var(--ink-soft);
  background:#fafaf8; border:1px dashed var(--line); border-radius:var(--radius);
}
/* Clôture de l'assemblée : c'est une action de l'application et non une pièce
   du procès-verbal — elle disparaît donc à l'impression. */
.cloture-action{border-bottom:none;}
.cloture-boutons{display:flex; flex-wrap:wrap; gap:10px; margin-top:6px;}
.cloture-question{margin:22px 0 8px; font-weight:600;}
.cloture-choix{display:flex; flex-direction:column; gap:10px;}
.cloture-mail-bloc{margin-top:22px; padding-top:20px; border-top:1px solid var(--line);}
.cloture-mail-bloc[hidden]{display:none;}
/* Ce qui manque au procès-verbal : averti, jamais bloquant. */
.cloture-alerte{
  margin:0 0 22px; padding:14px 16px; border-radius:var(--radius);
  background:#fdf6e6; border:1px solid #e6cd8f;
}
.cloture-alerte-titre{margin:0 0 8px; font-weight:700; font-size:0.9rem;}
.cloture-alerte ul{margin:0; padding-left:20px; font-size:0.88rem;}
.cloture-alerte li{margin-bottom:4px;}
.cloture-alerte-note{margin:10px 0 0; font-size:0.82rem; color:var(--ink-soft);}

.status-pill{
  display:inline-flex; align-items:center; gap:5px; font-size:0.78rem; font-weight:700;
  padding:3px 10px; border-radius:100px; border:none; font-family:inherit; cursor:default;
}
.status-present{background:var(--accent-soft); color:var(--accent-strong);}
.status-absent{background:#f1f1ee; color:var(--ink-soft);}
.status-pill.editable{cursor:pointer;}

footer{padding:40px 0 60px; text-align:center; color:var(--ink-soft); font-size:0.82rem;}
footer .contact{margin-top:6px;}

/* ---------- Site footer (mentions légales) ---------- */
/* flex:none : le pied de page garde sa hauteur, c'est au contenu au-dessus de
   s'étirer. margin-top:0 : les 80px de marge basse de .wrap suffisent à
   l'écarter du contenu, en ajouter creusait un trou. */
.site-footer{border-top:1px solid var(--line); padding:22px 0; margin-top:0; flex:none;}
.site-footer[hidden]{display:none;}
.site-footer-inner{max-width:900px; margin:0 auto; padding:0 24px;}
.site-footer p{margin:0; text-align:center; color:var(--ink-soft); font-size:0.78rem;}
/* Le lien reprend la couleur discrète du pied de page : c'est une mention
   obligatoire, pas une invitation à cliquer. Il ne se souligne qu'au survol. */
.site-footer a{color:inherit; text-decoration:none; border-bottom:1px solid var(--line);}
.site-footer a:hover{color:var(--accent-strong); border-bottom-color:var(--accent-strong);}

/* ---------- Page des mentions légales ---------- */
/* Page autonome, hors application : elle doit se lire sans compte. Largeur de
   lecture volontairement plus étroite que les 900px du reste du site — un texte
   juridique se lit en colonne courte, pas en pleine page. */
.legal{max-width:760px; padding-bottom:64px;}
.legal-retour{margin:28px 0 0; font-size:0.85rem;}
.legal-hero{padding:24px 0 8px;}
.legal-title{font-size:1.9rem; line-height:1.25; margin:0 0 6px; font-weight:800; letter-spacing:-0.01em;}
.legal-maj{margin:0; color:var(--ink-soft); font-size:0.85rem;}
.legal-intro{margin:22px 0 0; color:var(--ink-soft);}
.legal-section{padding:26px 0 0; border-bottom:none;}
.legal-section h2{font-size:1.08rem; font-weight:700; margin:0 0 10px; letter-spacing:-0.005em;}
.legal-section p{margin:0 0 12px;}
.legal-section p:last-child{margin-bottom:0;}
/* Sous-titre d'une section (politique de confidentialité : une catégorie de
   données par sous-titre). Volontairement proche du corps de texte en taille :
   il découpe la lecture sans créer un second niveau de plan qui ferait
   concurrence aux h2 numérotés. La marge haute est plus grande que la basse
   pour rattacher le titre au paragraphe qu'il annonce. */
.legal-sous{
  font-size:0.95rem; font-weight:700; margin:22px 0 8px;
  color:var(--ink); letter-spacing:-0.005em;
}
.legal-sous:first-of-type{margin-top:16px;}
.legal-liste{margin:0; padding-left:20px;}
.legal-liste li{margin-bottom:6px;}
.legal-liste li:last-child{margin-bottom:0;}
/* Précision qu'on lit si on la cherche, sans qu'elle concurrence le texte. */
.legal-note{
  margin:14px 0 0; padding:12px 14px; background:var(--accent-soft);
  border-radius:var(--radius); color:var(--ink-soft); font-size:0.86rem;
}
.legal-section code{
  background:var(--bg); border:1px solid var(--line); border-radius:6px;
  padding:1px 5px; font-size:0.86em;
}

@media print{
  /* Les mentions s'impriment pour être classées : on retire le lien de retour,
     qui ne mène nulle part sur une feuille de papier. */
  .legal-retour{display:none;}
  .legal-note{background:none; border:1px solid #ccc;}
  .legal-section{break-inside:avoid;}
  /* Un sous-titre seul en bas de page annonce un texte qu'on lira au verso. */
  .legal-sous{break-after:avoid;}
}

.toast{
  /* --hauteur-pied est mesurée par app.js avant chaque affichage : le message
     passe au-dessus des mentions légales au lieu de se poser dessus. */
  position:fixed; bottom:calc(var(--hauteur-pied, 0px) + 22px); left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:#fff; padding:10px 20px; border-radius:100px;
  font-size:0.85rem; font-weight:600; opacity:0; pointer-events:none;
  transition:opacity .2s ease, transform .2s ease; z-index:100;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}
.toast.error{background:#a13636;}

/* ---------- Préavis de déconnexion pour inactivité ---------- */
/* En haut de l'écran, et non en bas où vit le message flottant : les deux ne
   doivent pas se recouvrir, et celui-ci attend une décision au lieu de
   disparaître tout seul. */
.preavis-inactivite{
  position:fixed; top:0; left:0; right:0; z-index:200;
  display:flex; align-items:center; justify-content:center; gap:14px;
  background:var(--ink); color:#fff;
  padding:10px 20px; font-size:0.85rem; font-weight:600;
  box-shadow:0 2px 10px rgba(0,0,0,.18);
}
.preavis-inactivite[hidden]{display:none;}
/* Le bouton de l'application prend toute la largeur : ici il n'est qu'un
   appoint au bandeau, il se serre. */
.preavis-inactivite .btn{width:auto; padding:6px 16px; font-size:0.82rem;}

.empty-state{padding:80px 24px; text-align:center; color:var(--ink-soft);}

/* ---------- Homepage ---------- */
.home-hero{
  position:relative; min-height:280px; display:flex; align-items:flex-end;
  background:#0d1512 url("/static/img/home-header.jpg") center/cover no-repeat;
}
.home-hero-overlay{
  width:100%; background:linear-gradient(180deg, rgba(13,21,18,.15) 0%, rgba(13,21,18,.78) 100%);
}
.home-hero-inner{max-width:900px; margin:0 auto; padding:70px 24px 32px;}
.home-title{font-size:2rem; font-weight:800; margin:0 0 8px; letter-spacing:-0.01em; color:#fff;}
.home-sub{color:rgba(255,255,255,.88); margin:0; font-size:1rem;}
.espace-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:32px 0 60px;}
.espace-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:22px;
  display:flex; flex-direction:column; text-decoration:none; color:inherit;
  transition:border-color .15s, box-shadow .15s, transform .15s;
}
.espace-card:hover{border-color:var(--accent); box-shadow:0 12px 30px -18px rgba(20,30,25,.35); transform:translateY(-2px);}
.espace-icon{width:40px; height:40px; margin-bottom:14px;}
.espace-icon img{width:100%; height:100%; object-fit:contain; display:block;}
.espace-title{font-size:1.05rem; font-weight:800; margin:0 0 4px; color:var(--ink);}
.espace-desc{color:var(--ink-soft); font-size:0.85rem; margin:0 0 16px; flex:1;}
.espace-cta{color:var(--accent-strong); font-weight:700; font-size:0.85rem;}
.espace-card:hover .espace-cta{color:var(--accent);}

/* Espace fermé : présent, mais visiblement hors de portée. On garde la carte
   à la même place et à la même taille — c'est la grille qui doit rester
   stable d'un compte à l'autre, pas seulement lisible. */
.espace-card-verrouille{
  position:relative;
  /* --bg, le gris de la page : la carte s'enfonce dans le fond au lieu de
     s'en détacher comme les cartes ouvertes, qui sont blanches. */
  background:var(--bg);
  border-style:dashed;
  cursor:not-allowed;
}
/* Pas de survol : rien ne doit suggérer qu'on peut cliquer. Le libellé du bas
   est repris explicitement : « .espace-card:hover .espace-cta » compte deux
   classes et l'emporterait sinon sur « .espace-cta-verrouille » qui n'en
   compte qu'une — le vert de l'accent revenait au passage de la souris, juste
   à côté des mots « Accès non autorisé ». */
.espace-card-verrouille:hover{
  border-color:var(--line); box-shadow:none; transform:none;
}
.espace-card-verrouille:hover .espace-cta{color:var(--ink-soft);}
/* Le contenu s'efface, sans disparaître : le titre reste lisible, c'est lui
   qui dit ce à quoi on n'a pas accès. */
.espace-card-verrouille .espace-icon,
.espace-card-verrouille .espace-desc{opacity:.45;}
.espace-card-verrouille .espace-icon img{filter:grayscale(100%);}
.espace-card-verrouille .espace-title{color:var(--ink-soft);}

/* Le cadenas d'angle : repère immédiat, avant même la lecture. */
.espace-cadenas{
  position:absolute; top:16px; right:16px;
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:999px;
  background:var(--paper); border:1px solid var(--line); color:var(--ink-soft);
}
/* Et le même cadenas en bas, là où se trouvait « Voir → », accompagné de son
   explication : une icône seule laisse deviner et ne se lit pas à voix haute. */
.espace-cta-verrouille{
  display:inline-flex; align-items:center; gap:6px;
  color:var(--ink-soft); font-weight:600;
}
.icone-cadenas{flex:none;}
.espace-links{list-style:none; margin:0; padding:0;}
.espace-links li{border-top:1px solid var(--line);}
.espace-links a{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 2px; text-decoration:none; color:var(--ink); font-weight:600; font-size:0.92rem;
}
.espace-links a:hover{color:var(--accent-strong);}
.espace-links a::after{content:"→"; color:var(--ink-soft); font-weight:400;}
.espace-links a:hover::after{color:var(--accent-strong);}

/* ---------- Espace sub-page (sous-catégories) ---------- */
.espace-page-links{list-style:none; margin:24px 0 60px; padding:0; display:flex; flex-direction:column; gap:12px;}
.espace-page-links li{border:1px solid var(--line); border-radius:var(--radius); background:var(--paper);}
.espace-page-links a{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 22px; text-decoration:none; color:var(--ink); font-weight:700; font-size:1rem;
}
.espace-page-links a:hover{color:var(--accent-strong); background:var(--accent-soft);}
/* Un bloc porte son intitulé et, en dessous, ce qu'on y trouve. */
.espace-page-link-text{display:flex; flex-direction:column; gap:4px;}
.espace-page-link-desc{font-weight:400; font-size:0.85rem; color:var(--ink-soft);}
.espace-page-links a:hover .espace-page-link-desc{color:var(--ink-soft);}
.espace-page-link-arrow{color:var(--ink-soft); font-weight:400;}
.espace-page-links a:hover .espace-page-link-arrow{color:var(--accent-strong);}
/* Entrée fermée dans un espace ouvert : le registre des copropriétaires vu
   par un délégué. Même grammaire que les blocs cadenassés de l'accueil —
   pointillés, contenu estompé, cadenas à la place de la flèche. */
.espace-page-links li:has(> .espace-page-link-verrouille){
  background:var(--bg); border-style:dashed;
}
.espace-page-link-verrouille{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 22px; color:var(--ink-soft); font-weight:700; font-size:1rem;
  cursor:not-allowed;
}
/* Repli pour les navigateurs sans :has() — la carte reste lisible, elle perd
   seulement le fond gris. Le cadenas, lui, est dans le HTML : il subsiste. */
.espace-page-link-verrouille .espace-page-link-desc{opacity:.75;}

/* ---------- List / index pages ---------- */
.page-header{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:48px 0 24px; flex-wrap:wrap;}
.page-header h1{font-size:1.6rem; font-weight:800; margin:0 0 4px; letter-spacing:-0.01em;}
.page-header-icon-row{display:flex; align-items:center; gap:10px;}
.page-header-icon-row h1{margin:0;}
.page-header-icon{width:28px; height:28px; object-fit:contain; display:block;}
.page-header p{color:var(--ink-soft); margin:0; font-size:0.92rem;}
.page-header .btn{width:auto;}
.breadcrumb{
  padding-top:24px; font-size:0.82rem; color:var(--ink-soft);
  display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px;
}
.breadcrumb a{color:var(--ink-soft); text-decoration:none; font-weight:600;}
.breadcrumb a:hover{color:var(--accent-strong);}
/* Le retour d'un niveau : un bouton, pas un lien de plus dans le fil. */
.breadcrumb .btn-retour{
  display:inline-flex; align-items:center; padding:4px 12px;
  background:var(--paper); border:1px solid var(--line); border-radius:999px;
  color:var(--ink); font-weight:600; white-space:nowrap;
}
.breadcrumb .btn-retour:hover{border-color:var(--accent-strong); color:var(--accent-strong);}

table.simple{width:100%; border-collapse:collapse; margin:0 0 60px; font-size:0.9rem; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;}
table.simple th, table.simple td{padding:13px 16px; text-align:left; border-bottom:1px solid var(--line);}
table.simple th{font-size:0.72rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-soft); background:#fafaf8;}
table.simple tr:last-child td{border-bottom:none;}
table.simple tr:hover td{background:var(--accent-soft);}
table.simple a{color:var(--ink); text-decoration:none; font-weight:700;}
table.simple a:hover{color:var(--accent-strong);}
table.simple .row-actions{display:flex; gap:8px; justify-content:flex-end;}
table.simple .row-actions button{width:auto;}
/* Repère la convocation ouverte dans le formulaire sous-jacent. */
.badge-courante{
  display:inline-block; margin-left:8px; padding:2px 8px; border-radius:999px;
  background:var(--accent-soft); color:var(--accent-strong);
  font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em;
}
/* Dans la fenêtre, le tableau ne doit pas garder sa grande marge de bas de page. */
.modal-body table.simple{margin:0;}
/* Sur petit écran le tableau défile dans son cadre : sans cela les boutons
   d'action sortent de la fenêtre et deviennent inatteignables. */
.table-scroll{overflow-x:auto; margin:0 0 14px;}
.table-scroll table.simple{min-width:440px;}

/* ---------- Forms ---------- */
.form-card{background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:28px 28px 8px; max-width:640px; margin:0 0 60px;}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:0 20px;}
.form-grid .field.full{grid-column:1 / -1;}
/* Aide sous un champ : la conséquence du choix, lisible avant de valider.
   Volontairement discrète — c'est une note, pas une alerte. */
.field-aide{
  margin:0 0 16px; font-size:0.82rem; color:var(--ink-soft); line-height:1.5;
}
.form-grid .field-aide.full{grid-column:1 / -1; margin:-8px 0 16px;}
/* Ce qu'un compte ne peut pas faire ici, dit une fois, en haut de la page. */
.note-restriction{
  margin:0 0 4px; padding:12px 14px; border-radius:10px;
  background:var(--gold-soft); border:1px solid #ecdcb4;
  color:var(--ink); font-size:0.85rem; line-height:1.55;
}
.acces-aucun{color:var(--ink-soft);}
.form-card .field textarea, .modal-card .field textarea{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px;
  font-size:0.95rem; font-family:inherit; background:#fbfbfa; resize:vertical; min-height:80px;
}
.form-card .field.tall textarea, .modal-card .field.tall textarea{min-height:240px;}
.form-card .field select, .modal-card .field select{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px;
  font-size:0.95rem; font-family:inherit; background:#fbfbfa;
}
.form-card .field textarea:focus, .form-card .field select:focus,
.modal-card .field textarea:focus, .modal-card .field select:focus{outline:2px solid var(--accent-soft); border-color:var(--accent);}
.form-note{
  margin:4px 0 0; padding:10px 14px; background:var(--gold-soft); border:1px solid #f0dfb4;
  border-radius:10px; font-size:0.8rem; color:#7a5c17;
}
.form-actions{display:flex; gap:10px; padding:8px 0 26px;}
.form-actions .btn{width:auto;}

/* ---------- Credential reveal banner ---------- */
.reveal-banner{
  background:var(--accent-soft); border:1px solid var(--accent); border-radius:var(--radius);
  padding:16px 18px; margin:0 0 24px; font-size:0.9rem; color:var(--accent-strong);
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.reveal-banner code{background:#fff; padding:3px 8px; border-radius:6px; font-weight:700; color:var(--ink);}
.reveal-banner button{width:auto;}

/* ---------- Modal (pop-up) ---------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(27,29,34,0.5); display:flex;
  align-items:flex-start; justify-content:center; padding:60px 20px; overflow-y:auto; z-index:200;
}
.modal-card{
  background:var(--paper); border-radius:var(--radius); max-width:640px; width:100%; min-width:0;
  box-shadow:0 20px 60px rgba(0,0,0,.28);
}
.modal-header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:20px 24px; border-bottom:1px solid var(--line);
}
.modal-header h2{margin:0; font-size:1.1rem;}
.modal-close{
  background:none; border:none; font-size:1.5rem; line-height:1; cursor:pointer;
  color:var(--ink-soft); padding:0 4px;
}
.modal-close:hover{color:var(--ink);}
.modal-body{padding:24px;}
.modal-body .form-grid{display:grid; grid-template-columns:1fr 1fr; gap:0 20px;}
.modal-body .form-grid .field.full{grid-column:1 / -1;}
.modal-body .form-actions{padding:8px 0 0;}

/* ---------- Checkboxes (module access) ---------- */
.checkbox-group{display:flex; flex-direction:column; gap:8px; padding-top:2px;}
.checkbox-field{
  display:flex; align-items:center; gap:8px; font-size:0.9rem; font-weight:500;
  color:var(--ink); cursor:pointer; margin:0;
}
.checkbox-field input{width:auto; padding:0; border:none; background:none; accent-color:var(--accent-strong);}

@media (max-width:640px){
  .modal-overlay{padding:20px 12px;}
  .modal-body .form-grid{grid-template-columns:1fr;}
  /* Ouverture de séance : les cartes et le quorum s'empilent, et les quatre
     choix de vote passent sous le nom du lot au lieu de déborder de l'écran. */
  .ouverture-horodatage{grid-template-columns:1fr;}
  .quorum-bandeau{grid-template-columns:1fr; gap:14px;}
  /* En colonne, le flex-basis de 200px porterait sur la hauteur et creuserait
     un grand vide entre le nom du lot et ses boutons de vote. */
  .scrutin-ligne{flex-direction:column; align-items:stretch; gap:8px;}
  .scrutin-lot{flex:0 0 auto;}
  .scrutin-choix{display:grid; grid-template-columns:1fr 1fr; gap:6px;}
  .choix-vote{text-align:center;}
  table.emargement{min-width:520px;}
}

/* ---------- Registre des copropriétaires ---------- */
/* Une carte par lot : c'est le lot qui porte les millièmes et la voix, les
   fiches ne font que dire qui il désigne. Le regroupement rend l'indivision
   lisible — deux noms sous un seul numéro de lot. */
.copro-lot{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 24px; margin:0 0 18px;
}
.copro-lot-tete{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  flex-wrap:wrap; margin-bottom:14px;
}
.copro-lot-tete h2{font-size:1.05rem; margin:0;}
.copro-lot-tete .btn{width:auto;}
.copro-lot-millieme{margin:3px 0 0; font-size:0.82rem; color:var(--ink-soft);}
.copro-lot .empty-state{margin:0;}
.copro-badge{
  display:inline-block; margin-left:6px; padding:2px 7px; border-radius:20px;
  background:var(--gold-soft); border:1px solid #f0dfb4;
  font-size:0.7rem; font-weight:700; color:#7a5c17; vertical-align:middle;
}
.copro-badge-acces{background:#eef4ee; border-color:#cfe0cf; color:#3f6b42;}
/* Le libellé effectivement porté par le lot dans les documents : il rend
   visible l'effet d'une correction de fiche, au lieu de le laisser deviner. */
.copro-libelle{
  margin:12px 0 0; padding:10px 14px; font-size:0.85rem; color:#4a4c52;
  background:#fafaf8; border:1px dashed var(--line); border-radius:var(--radius);
}
/* Civilité et prénom vont de pair, et disparaissent ensemble pour une société. */
.field-pair{grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; gap:0 20px;}

/* ---------- Printable documents (quittance / bail) ---------- */
.doc-toolbar{display:flex; gap:10px; justify-content:flex-end; padding:24px 0 0;}
.doc-toolbar .btn{width:auto;}
.document{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:48px 56px; margin:24px 0 60px; font-size:0.96rem; color:#2a2c31;
}
.document h1.doc-title{font-size:1.5rem; font-weight:800; margin:0 0 6px; text-align:center;}
.document p.doc-sub{text-align:center; color:var(--ink-soft); margin:0 0 32px; font-size:0.85rem;}
.doc-parties{display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:28px;}
.doc-party{border:1px solid var(--line); border-radius:10px; padding:14px 16px;}
.doc-party-label{font-size:0.72rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-soft); font-weight:700; margin-bottom:6px;}
.doc-lines p{margin:0 0 12px;}
.doc-amount-table{width:100%; border-collapse:collapse; margin:20px 0;}
.doc-amount-table td{padding:9px 0; border-bottom:1px solid var(--line); font-size:0.95rem;}
.doc-amount-table tr:last-child td{border-bottom:none; font-weight:800; padding-top:14px;}
.doc-amount-table td:last-child{text-align:right;}
.doc-info-table{width:100%; border-collapse:collapse; margin:20px 0;}
.doc-info-table td{padding:9px 0; border-bottom:1px solid var(--line); font-size:0.95rem;}
.doc-info-table tr:last-child td{border-bottom:none;}
.doc-info-table td:first-child{width:38%; color:var(--ink-soft); font-weight:600;}
.document h3.doc-h3{font-size:1rem; font-weight:700; margin:28px 0 10px;}
.doc-agenda{margin:0 0 12px; padding-left:22px;}
.doc-agenda li{margin:0 0 7px; font-size:0.95rem;}
.doc-note{margin-top:24px; font-size:0.84rem; color:#4a4c52;}
.doc-note p{margin:0 0 10px;}
/* Rappel des majorités joint à la convocation. */
.doc-majorite{margin:0 0 16px;}
.doc-majorite-titre{margin:0 0 4px; font-weight:700; font-size:0.92rem;}
.doc-majorite blockquote{
  margin:0 0 6px; padding-left:14px; border-left:3px solid var(--line);
  font-style:italic; font-size:0.9rem; color:#33353b;
}
.doc-majorite p:not(.doc-majorite-titre){margin:0; font-size:0.88rem; color:#4a4c52;}
/* Annexe « Rappel des lots » : tableau des millièmes par lot.
   Le conteneur défile horizontalement sur petit écran, le tableau à quatre
   colonnes ne pouvant pas se réduire davantage sans devenir illisible. */
.doc-table-wrap{overflow-x:auto;}
.doc-lots-table{width:100%; border-collapse:collapse; margin:24px 0 0; min-width:420px;}
.doc-lots-table th, .doc-lots-table td{
  padding:10px 12px; border:1px solid var(--line); font-size:0.92rem; text-align:center;
}
.doc-lots-table thead th{background:var(--gold-soft); font-weight:700;}
.doc-lots-table .doc-lots-corner{background:transparent; border:none;}
.doc-lots-table tbody th, .doc-lots-table tfoot th{background:var(--gold-soft); font-weight:700; text-align:left;}
.doc-lots-table tbody td:last-child{text-align:left;}
.doc-lots-table tfoot td{font-weight:700;}
/* Champ à compléter à la main sur un document imprimé. */
.fill{
  display:inline-block; min-width:240px; max-width:100%; height:1.15em;
  border-bottom:1px solid #9a9a95; vertical-align:bottom;
}
.fill-court{min-width:70px;}
/* Sélecteur de lot au-dessus des pouvoirs (administrateur uniquement). */
.pouvoirs-filtre{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:14px 18px; margin:0 0 4px;
}
.pouvoirs-filtre label{font-weight:600; font-size:0.9rem;}
.pouvoirs-filtre select{
  padding:9px 12px; border:1px solid var(--line); border-radius:10px;
  font-size:0.92rem; font-family:inherit; background:#fbfbfa; min-width:260px; max-width:100%;
}
.pouvoirs-filtre select:focus{outline:2px solid var(--accent-soft); border-color:var(--accent);}
/* ---------- Appel de fonds ---------- */
/* Lettre adressée, et non pièce d'un dossier : elle garde la mise en page
   postale — expéditeur à gauche, date à droite, destinataire en dessous — pour
   qu'elle soit reconnue comme telle dans la boîte aux lettres. */
.doc-appel{font-size:0.94rem;}
.appel-entete{display:flex; justify-content:space-between; gap:24px; margin-bottom:34px;}
.appel-expediteur{display:flex; flex-direction:column; gap:3px; font-size:0.92rem;}
.appel-expediteur-role{font-size:0.78rem; color:var(--ink-soft);}
.appel-tel{font-size:0.86rem; color:#4a4c52;}
.appel-date{text-align:right; font-size:0.92rem; white-space:nowrap;}
.appel-destinataire{
  margin:0 0 34px 0; padding:14px 16px; border:1px solid var(--line); border-radius:10px;
  width:max-content; max-width:100%; margin-left:auto; font-size:0.92rem; line-height:1.5;
}
.appel-objet{margin:0 0 24px; font-weight:700; font-size:0.98rem;}
/* Un copropriétaire par colonne, comme sur les appels déjà adressés : chacun
   retrouve la sienne, et la colonne « Total » se rapproche du budget voté. */
.appel-table{width:100%; border-collapse:collapse; margin:8px 0 24px; min-width:480px;}
.appel-table th, .appel-table td{
  padding:10px 12px; border:1px solid var(--line); font-size:0.9rem; text-align:center;
}
/* Un montant coupé entre le nombre et le symbole (« 475,00 » / « € ») se relit
   mal sur une somme à régler : les cellules chiffrées ne se replient pas. */
.appel-table td.appels-num{white-space:nowrap;}
.appel-table thead th{background:var(--gold-soft); font-weight:700; vertical-align:bottom;}
.appel-table .appel-corner{background:transparent; border:none;}
.appel-col-nom{display:block; font-weight:500; font-size:0.78rem; color:var(--ink-soft); margin-top:3px;}
.appel-table tbody th{background:#fafaf8; font-weight:700; text-align:left; white-space:nowrap;}
.appel-table .appel-total-col{background:#fafaf8; font-weight:700;}
.appel-table .appel-ligne-total th, .appel-table .appel-ligne-total td{
  background:var(--gold-soft); font-weight:800;
}
.appel-sans-budget{
  margin:16px 0 24px; padding:12px 16px; background:#fafaf8;
  border:1px dashed var(--line); border-radius:var(--radius);
  font-size:0.88rem; color:#6b6f76;
}
.appel-ref-vide{color:#6b6f76; font-style:italic;}
/* Aperçu du montant appelé, affiché sous le sélecteur d'assemblée : le
   formulaire ne contient aucun champ de montant, autant montrer le résultat. */
.form-note.full{grid-column:1 / -1;}
.doc-clauses{font-size:0.88rem; color:#33353b;}
.doc-clauses h3{font-size:0.95rem; margin:22px 0 8px;}
.doc-signature{margin-top:44px; display:flex; justify-content:space-between; gap:24px;}
.doc-signature div{flex:1 1 0; text-align:center; font-size:0.88rem; color:var(--ink-soft);}

@media (max-width:640px){
  .dashboard{grid-template-columns:repeat(2,1fr);}
  .dashboard-3{grid-template-columns:1fr;}
  .sign-grid{grid-template-columns:1fr;}
  /* Deux encadrés de signature côte à côte sur un téléphone ne laissent plus
     de place au nom du copropriétaire, qui se replie sur trois lignes. */
  .approbation-grid{grid-template-columns:1fr;}
  h1.title{font-size:1.6rem;}
  .espace-grid{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .field-pair{grid-template-columns:1fr;}
  .document{padding:28px 20px;}
  .doc-parties{grid-template-columns:1fr;}
  /* Sur mobile le bloc signature passe en colonne : côte à côte, la largeur
     minimale des champs à compléter débordait de la page. */
  .doc-signature{flex-direction:column; gap:20px;}
  .doc-signature div{text-align:left;}
  /* Questions diverses : une seule colonne, les commandes passant sous la
     question. À côté de l'intitulé, elles le comprimaient en une colonne de
     deux mots, et c'est l'intitulé qu'on lit d'abord. */
  .diverse{grid-template-columns:1fr;}
  .diverse-actions{grid-column:1; grid-row:auto; margin-top:14px;}
  /* Sur mobile, l'en-tête postal s'empile : la date à droite d'un nom long
     débordait de la feuille. Le bloc destinataire repasse à gauche. */
  .appel-entete{flex-direction:column; gap:14px;}
  .appel-date{text-align:left;}
  .appel-destinataire{margin-left:0;}
  .fill{min-width:0; width:100%;}
  .home-hero{min-height:200px;}
  .home-hero-inner{padding:40px 20px 24px;}
  .home-title{font-size:1.5rem;}
}

@media print{
  .topnav{display:none;}
  body{background:#fff;}
  .resolution, .stat-card, .sign-card, .accordion{border-color:#ccc;}
  .accordion summary::after, .vote-detail summary::before{display:none;}
  section{break-inside:avoid; border-bottom:none;}
  .resolution{break-inside:avoid;}
  /* Le préavis de déconnexion n'a rien à faire en travers d'un procès-verbal
     imprimé. */
  .doc-toolbar, .page-header, .breadcrumb, .home-hero, .site-footer,
  .pouvoirs-filtre, .preavis-inactivite{display:none;}
  .document{border:none; padding:0; box-shadow:none;}
  /* Un pouvoir par page lors de l'impression de la série. */
  .pouvoir{break-after:page; page-break-after:always; margin:0;}
  .pouvoir:last-of-type{break-after:auto; page-break-after:auto;}
  /* Les annexes (rappel des lots) partent sur une page distincte. */
  .doc-annexe{break-before:page; page-break-before:always;}
  .doc-majorite, .doc-lots-table tr{break-inside:avoid;}
  /* À l'impression la largeur est suffisante : pas de zone de défilement. */
  .doc-table-wrap{overflow:visible;}
  .doc-lots-table{min-width:0;}
  .table-scroll{overflow:visible;}
  .table-scroll table.simple, table.emargement{min-width:0;}
  /* Les appels de fonds tiennent dans la largeur de la page, et le tableau ne
     se coupe pas au milieu : il doit rester lisible d'un seul tenant au PV. */
  table.lots.appels{min-width:0;}
  table.lots.appels tr{break-inside:avoid;}
  /* La lettre d'appel tient sur une page : le tableau des quotes-parts ne doit
     pas se scinder, sinon un copropriétaire lirait sa colonne sans le total. */
  .appel-table{min-width:0;}
  .appel-table{break-inside:avoid;}
  /* Le procès-verbal imprimé conserve le vote nominatif de chaque lot, mais
     pas les commandes de saisie : seul le choix retenu subsiste, en noir. */
  .ouverture-attente{display:none;}
  .choix-vote{display:none;}
  /* Le grisé signale une commande inerte à l'écran ; sur papier il ne ferait
     qu'affaiblir un texte qu'on doit pouvoir lire. Le rappel, lui, disparaît. */
  .resolution-grisee{filter:none; opacity:1;}
  .vote-verrouille{display:none;}
  /* Le bloc de clôture et la fenêtre qui l'ouvre sont des commandes, pas du
     procès-verbal : ils ne doivent pas figurer sur le PDF. */
  .cloture-action, .modal-overlay{display:none;}
  /* Questions diverses : ne partent au papier que celles qui disent quelque
     chose. Une ligne restée vide, les commandes qui servent à la remplir, le
     rappel de ce qu'on peut y consigner et le bouton d'ajout n'ont rien à
     faire dans un procès-verbal signé. Si aucune question n'est remplie,
     c'est la section entière qui disparaît, titre compris : sinon le PV
     annoncerait un « 5. Questions diverses » suivi de rien. */
  .diverse-vide, .diverse-actions, .diverses-note, #btn-add-diverse,
  .diverses-sans-contenu{display:none;}
  /* Le repère d'un champ vide est une aide à la saisie : sur une question à
     moitié remplie, il ne doit pas s'imprimer à la place du texte manquant. */
  .diverse-titre [contenteditable]:empty::before,
  .diverse-texte [contenteditable]:empty::before{content:none;}
  .diverse{break-inside:avoid;}
  .choix-vote.actif{display:inline-block; color:#000; border:1px solid #999; background:#fff;}
  .scrutin-ligne{break-inside:avoid;}
  .emargement-pouvoir, .emargement-mandataire{border:none; background:transparent; padding:0;}
  .ouverture-champ, .quorum-bandeau{border-color:#ccc;}
  /* Approbation des copropriétaires : le mode d'emploi est une aide de saisie
     à l'écran, il ne va pas au papier — c'est la place de la signature qu'il
     occuperait. */
  .approbations-note{display:none;}
  .approbation-card{border-color:#ccc;}
  /* Un encadré coupé en deux par un saut de page ne peut pas être signé. La
     règle générale « section{break-inside:avoid} » garde les quatre ensemble
     tant qu'ils tiennent sur une page ; si la copropriété comptait un jour
     assez de lots pour déborder, on autorise la section à se scinder mais
     jamais un encadré. */
  #approbations{break-inside:auto;}
  .approbation-card{break-inside:avoid;}
  /* Le titre ne doit pas rester seul en bas de page, au-dessus d'encadrés
     renvoyés au verso. */
  #approbations .section-title{break-after:avoid;}
  /* Le pointillé pâle de l'écran disparaîtrait à l'impression : la zone à
     signer doit se voir sur le papier, c'est tout son objet. */
  .approbation-zone{border-color:#999;}
  .approbation-zone span{color:#8a8a8a;}
}
