/* ============================================================
   Compte rendu de gestion, feuille de style (épurée)
   Priorité : calme, clarté, grands caractères, peu d'éléments.
   Une seule couleur d'accent, beaucoup d'air, ombres légères.
   ============================================================ */

:root{
  --accent:#2f5d8a;
  --accent-fonce:#234763;
  --accent-doux:#eef3f9;
  --accent-bord:#d4e1ef;

  --vert:#2e7d5b; --vert-doux:#eaf5ef; --vert-bord:#c3e3d2;
  --rouge:#c0392b; --rouge-doux:#fbeeec; --rouge-bord:#f0ccc7;
  --ambre:#a9760a; --ambre-doux:#fbf4e2; --ambre-bord:#eeddb5;

  --encre:#1c2733;
  --gris:#5f6b78;
  --gris-clair:#98a2ae;
  --fond:#f5f7fa;
  --carte:#ffffff;
  --bord:#e8edf3;

  --rayon:18px;
  --rayon-sm:12px;
  --ombre:0 1px 3px rgba(28,39,51,.06), 0 6px 20px rgba(28,39,51,.05);
  --ombre-forte:0 10px 40px rgba(28,39,51,.14);
}

*{ box-sizing:border-box; }
html{ font-size:18px; -webkit-text-size-adjust:100%; }
body{
  margin:0; color:var(--encre); background:var(--fond); line-height:1.55;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1{ font-size:1.75rem; margin:0; letter-spacing:-.01em; font-weight:700; }
h2{ font-size:1.2rem; margin:0; color:var(--encre); font-weight:700; letter-spacing:-.01em; }
h3{ font-size:1rem; margin:0; color:var(--gris); font-weight:600; }
p{ margin:.4rem 0; }
a{ color:var(--accent); }

/* -------------------- Entête -------------------- */
.entete{ background:var(--carte); border-bottom:1px solid var(--bord); position:sticky; top:0; z-index:30; }
.entete-in{ max-width:1080px; margin:0 auto; padding:.75rem 1.4rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.marque{ display:flex; align-items:center; gap:.7rem; cursor:pointer; }
.marque .logo{ width:38px; height:38px; border-radius:10px; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.25rem; }
.marque .titre{ font-size:1.12rem; font-weight:700; line-height:1.1; letter-spacing:-.01em; }
.marque .sous-titre{ font-size:.8rem; color:var(--gris-clair); }
.entete-droite{ display:flex; align-items:center; gap:.9rem; }
.util{ text-align:right; line-height:1.15; }
.util .nom{ font-weight:600; font-size:.95rem; }
.util .role{ font-size:.78rem; color:var(--gris-clair); }
.lien-tete{ background:none; border:none; color:var(--accent); font:inherit; font-weight:600; cursor:pointer; padding:.4rem .3rem; font-size:.95rem; }
.lien-tete:hover{ text-decoration:underline; }

/* -------------------- Mise en page -------------------- */
.page{ max-width:1080px; margin:0 auto; padding:2rem 1.4rem 5rem; }
.vue[hidden], .panneau[hidden]{ display:none; }

/* -------------------- Boutons -------------------- */
.btn{
  font-family:inherit; font-size:1rem; font-weight:600; border:none; border-radius:12px;
  cursor:pointer; padding:.75rem 1.2rem; display:inline-flex; align-items:center; gap:.55rem;
  text-decoration:none; transition:background .15s, box-shadow .15s, transform .04s, border-color .15s;
  line-height:1.2;
}
.btn:active{ transform:translateY(1px); }
.btn-principal{ background:var(--accent); color:#fff; }
.btn-principal:hover{ background:var(--accent-fonce); }
.btn-clair{ background:var(--carte); color:var(--accent); border:1.5px solid var(--accent-bord); }
.btn-clair:hover{ background:var(--accent-doux); }
.btn-doux{ background:var(--accent-doux); color:var(--accent-fonce); }
.btn-doux:hover{ background:#e2ecf6; }
.btn-danger{ background:var(--rouge); color:#fff; }
.btn-danger:hover{ filter:brightness(.95); }
.btn-grand{ font-size:1.1rem; padding:.95rem 1.6rem; border-radius:14px; }
.btn-retour{ background:none; color:var(--gris); padding:.4rem .2rem; font-size:1rem; font-weight:600; }
.btn-retour:hover{ color:var(--accent); }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }
.plus{ font-size:1.25rem; line-height:1; margin-top:-2px; }

/* -------------------- Aide / bandeaux légers -------------------- */
.aide{ color:var(--gris); font-size:1rem; margin:0 0 1.6rem; max-width:60ch; }
.info-douce{ background:var(--accent-doux); border-radius:var(--rayon-sm); padding:.9rem 1.1rem; color:var(--accent-fonce); font-size:.98rem; margin:0 0 1.4rem; }

/* -------------------- Accueil -------------------- */
.barre-accueil{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.4rem; }
.grille-cartes{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.1rem; }
.carte-majeur{
  background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon);
  padding:1.3rem 1.4rem; cursor:pointer; box-shadow:var(--ombre);
  transition:transform .1s, box-shadow .18s, border-color .15s; position:relative;
}
.carte-majeur:hover{ transform:translateY(-3px); box-shadow:var(--ombre-forte); border-color:var(--accent-bord); }
.carte-majeur .nom{ font-size:1.28rem; font-weight:700; letter-spacing:-.01em; }
.carte-majeur .meta{ color:var(--gris); font-size:.95rem; margin-top:.4rem; }
.carte-majeur .pied{ margin-top:1rem; display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.carte-majeur .puce{ display:inline-block; background:var(--accent-doux); color:var(--accent-fonce); padding:.2rem .6rem; border-radius:999px; font-size:.8rem; font-weight:600; }
.mini-lien{ background:none; border:none; color:var(--accent); font:inherit; font-size:.88rem; font-weight:600; cursor:pointer; padding:.3rem .1rem; }
.mini-lien:hover{ text-decoration:underline; }
.vide{ text-align:center; padding:4rem 1rem; color:var(--gris-clair); background:var(--carte); border:1px dashed var(--bord); border-radius:var(--rayon); }
.vide .grand{ font-size:2.5rem; display:block; margin-bottom:.6rem; }

/* -------------------- Dossier / stepper -------------------- */
.barre-dossier{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin:.2rem 0 1.4rem; }
.barre-dossier .gauche{ display:flex; align-items:baseline; gap:1rem; flex-wrap:wrap; }
#titre-majeur{ letter-spacing:-.01em; }
.enreg{ font-size:.88rem; color:var(--vert); font-weight:600; }
.enreg.encours{ color:var(--gris-clair); }

.pas{ display:flex; gap:.5rem; margin-bottom:1.8rem; }
.pas .etape{
  flex:1; background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon-sm);
  cursor:pointer; font-family:inherit; font-size:1rem; color:var(--gris); padding:.85rem 1rem;
  display:flex; align-items:center; gap:.6rem; font-weight:600; transition:border-color .15s, background .15s, color .15s;
}
.pas .etape b{
  display:inline-flex; align-items:center; justify-content:center; width:1.7rem; height:1.7rem;
  border-radius:50%; background:var(--bord); color:var(--gris); font-size:.9rem; flex:none; transition:background .15s, color .15s;
}
.pas .etape:hover{ border-color:var(--accent-bord); color:var(--accent); }
.pas .etape.active{ border-color:var(--accent); background:var(--accent-doux); color:var(--accent-fonce); }
.pas .etape.active b{ background:var(--accent); color:#fff; }
.pas .etape .lib-etape{ line-height:1.1; }
@media (max-width:640px){ .pas{ flex-direction:column; } }

.panneau{ background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon); padding:1.7rem; box-shadow:var(--ombre); }
.bloc-suivant{ display:flex; justify-content:flex-end; margin-top:1.6rem; }

/* -------------------- Formulaire (fiche) -------------------- */
.form-section{ margin-bottom:.4rem; }
.form-section > .legende{ font-weight:700; color:var(--accent-fonce); font-size:1.05rem; margin:1.6rem 0 .8rem; }
.form-section:first-child > .legende{ margin-top:0; }
.grille-champs{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1rem 1.3rem; }
.champ{ display:flex; flex-direction:column; gap:.35rem; }
.champ.large{ grid-column:1 / -1; }
label{ font-weight:600; font-size:.95rem; color:var(--encre); }
input[type=text], input[type=number], input[type=password], select, textarea{
  font-family:inherit; font-size:1.05rem; padding:.7rem .8rem; border:1.5px solid var(--bord);
  border-radius:11px; background:#fff; color:var(--encre); width:100%; transition:border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-doux); }
textarea{ min-height:80px; resize:vertical; }

/* -------------------- Comptes -------------------- */
.compte{ border:1.5px solid var(--bord); border-radius:var(--rayon-sm); padding:1.1rem 1.2rem; margin-bottom:1rem; background:var(--fond); }
.compte.principal{ border-color:var(--accent-bord); background:var(--accent-doux); }
.compte-tete{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.8rem; }
.compte-tete .etiq{ font-weight:700; color:var(--accent-fonce); }
.compte .grille-champs{ grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.lien-suppr{ background:none; border:none; color:var(--rouge); cursor:pointer; font-size:.92rem; font-weight:600; }
.lien-suppr:hover{ text-decoration:underline; }

/* -------------------- Dépose relevés -------------------- */
.depose{
  border:2px dashed var(--accent-bord); border-radius:var(--rayon); background:var(--accent-doux);
  padding:2.6rem 1rem; text-align:center; cursor:pointer; transition:background .15s, border-color .15s;
}
.depose:hover, .depose.survol{ background:#e4eef8; border-color:var(--accent); }
.depose-icone{ font-size:2.8rem; }
.depose p{ color:var(--accent-fonce); font-size:1.1rem; margin:.5rem 0 .2rem; font-weight:600; }
.depose-note{ font-size:.92rem; color:var(--gris); font-weight:400; }

.liste-fichiers{ margin:1.2rem 0; display:flex; flex-direction:column; gap:.55rem; }
.ligne-fichier{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem .95rem; border:1px solid var(--bord); border-radius:11px; background:#fff; }
.ligne-fichier .nomf{ display:flex; align-items:center; gap:.6rem; overflow:hidden; }
.ligne-fichier .nomf b{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.ligne-fichier .taillef{ color:var(--gris-clair); font-size:.85rem; white-space:nowrap; }
.ico-fichier{ width:30px; height:30px; border-radius:7px; background:var(--rouge-doux); color:var(--rouge); display:flex; align-items:center; justify-content:center; font-size:.9rem; flex:none; }
.ico-fichier.img{ background:var(--accent-doux); color:var(--accent); }

/* -------------------- Progression -------------------- */
.progression{ margin-top:1.6rem; }
.barre{ height:12px; background:var(--bord); border-radius:999px; overflow:hidden; }
.barre-in{ height:100%; width:0; background:var(--accent); transition:width .3s; border-radius:999px; }
.progression-texte{ margin:.7rem 0 0; color:var(--gris); }

/* -------------------- Rapprochement -------------------- */
.synthese{ border-radius:var(--rayon-sm); padding:1.1rem 1.3rem; margin:0 0 1.2rem; font-size:1.05rem; display:flex; align-items:center; gap:.7rem; }
.synthese.ok{ background:var(--vert-doux); border:1px solid var(--vert-bord); color:var(--vert); }
.synthese.attention{ background:var(--ambre-doux); border:1px solid var(--ambre-bord); color:var(--ambre); }
.synthese .grand{ font-size:1.5rem; }
.synthese b{ font-weight:700; }

.carte-releve{ border:1.5px solid var(--bord); border-radius:var(--rayon-sm); padding:1.05rem 1.2rem; margin-bottom:.75rem; background:#fff; }
.carte-releve.ok{ border-color:var(--vert-bord); }
.carte-releve.ko{ border-color:var(--rouge-bord); background:var(--rouge-doux); }
.carte-releve-tete{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.carte-releve .statut{ font-weight:700; display:inline-flex; align-items:center; gap:.45rem; }
.carte-releve.ok .statut{ color:var(--vert); }
.carte-releve.ko .statut{ color:var(--rouge); }
.carte-releve .fichier-nom{ font-weight:600; color:var(--encre); font-size:.95rem; }
.carte-releve .periode{ color:var(--gris-clair); font-size:.88rem; }
.chiffres{ display:flex; gap:1.6rem; flex-wrap:wrap; margin-top:.6rem; font-size:.92rem; color:var(--gris); }
.chiffres b{ color:var(--encre); }
.ecarts{ margin:.7rem 0 0; padding:.7rem .9rem; background:#fff; border:1px solid var(--rouge-bord); border-radius:9px; color:var(--rouge); font-size:.9rem; }
.ecarts ul{ margin:.3rem 0 0; padding-left:1.2rem; }
.alertes-chainage{ background:var(--ambre-doux); border:1px solid var(--ambre-bord); color:var(--ambre); border-radius:10px; padding:.8rem 1rem; margin-bottom:1rem; font-size:.95rem; }

/* -------------------- Tableau opérations -------------------- */
.bandeau-soldes{ display:flex; gap:1.8rem; flex-wrap:wrap; margin-bottom:1.2rem; padding:1.1rem 1.3rem; background:var(--accent-doux); border-radius:var(--rayon-sm); }
.bandeau-soldes .bloc{ display:flex; flex-direction:column; gap:.15rem; }
.bandeau-soldes .lib{ font-size:.82rem; color:var(--gris); }
.bandeau-soldes .val{ font-size:1.25rem; font-weight:700; color:var(--accent-fonce); }
.bandeau-soldes .val.ok{ color:var(--vert); }
.bandeau-soldes .val.ko{ color:var(--rouge); }
.bandeau-soldes input{ max-width:160px; font-weight:700; }

.tableau-enveloppe{ overflow-x:auto; border:1px solid var(--bord); border-radius:var(--rayon-sm); }
.tableau-ops{ width:100%; border-collapse:collapse; font-size:.94rem; min-width:1150px; }
.tableau-ops td input, .tableau-ops td select{ width:100%; box-sizing:border-box; }
.tableau-ops th{ background:var(--fond); color:var(--gris); text-align:left; padding:.7rem .55rem; font-size:.82rem; font-weight:600; text-transform:uppercase; letter-spacing:.02em; position:sticky; top:0; border-bottom:1px solid var(--bord); }
.tableau-ops td{ border-top:1px solid var(--bord); padding:.32rem .45rem; vertical-align:middle; }
.tableau-ops input, .tableau-ops select{ font-size:.92rem; padding:.42rem .5rem; border-width:1px; border-radius:8px; }
.col-date{ width:120px; } .col-mont{ width:120px; } .col-solde{ width:120px; } .col-suppr{ width:44px; }
.col-cat{ width:180px; } .col-sous{ width:200px; } .col-lib{ min-width:340px; }
/* À l'étape de vérification, la page s'élargit pour ne plus tronquer les libellés. */
.page.etape-large{ max-width:min(1600px, 96vw); }
/* Bloc « Reprendre un CRG précédent » en tête de fiche */
.bloc-import{ display:flex; align-items:center; gap:1rem; flex-wrap:wrap;
  background:var(--ambre-doux, #fff8e6); border:1px solid var(--bord); border-radius:var(--rayon-sm);
  padding:1rem 1.2rem; margin:0 0 1.6rem; }
.bloc-import-txt{ flex:1; min-width:240px; }
.bloc-import-txt strong{ font-size:1.02rem; }
.bloc-import-txt p{ margin:.25rem 0 0; color:var(--gris); font-size:.92rem; }
.bloc-import .btn{ flex:none; }
.montant-neg{ color:var(--rouge); font-weight:600; }
.montant-pos{ color:var(--vert); font-weight:600; }
td.cell-solde{ font-weight:600; color:var(--accent-fonce); text-align:right; white-space:nowrap; }
td.cell-mont input{ text-align:right; }
.btn-suppr-ligne{ background:none; border:none; color:var(--gris-clair); cursor:pointer; font-size:1.1rem; line-height:1; padding:.45rem .55rem; border-radius:8px; }
.btn-suppr-ligne:hover{ background:var(--rouge-doux); }
.btn-suppr-ligne:hover{ color:var(--rouge); }
.ligne-ko td{ background:var(--rouge-doux) !important; }
.ligne-ko td:first-child{ box-shadow:inset 3px 0 0 var(--rouge); }

/* -------------------- Compte rendu (export) -------------------- */
.recap-export{ background:var(--vert-doux); border:1px solid var(--vert-bord); color:var(--vert); border-radius:var(--rayon-sm); padding:1.1rem 1.3rem; margin-bottom:1.6rem; font-size:1.05rem; }
.recap-export .avert{ color:var(--ambre); }
.boutons-export{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.1rem; }
.btn-export{ background:var(--carte); border:1.5px solid var(--accent-bord); color:var(--accent-fonce); border-radius:var(--rayon); padding:1.6rem 1.3rem; display:flex; align-items:center; gap:1.1rem; font-size:1.12rem; font-weight:600; box-shadow:var(--ombre); cursor:pointer; transition:transform .1s, box-shadow .18s, border-color .15s; text-align:left; }
.btn-export:hover{ transform:translateY(-3px); box-shadow:var(--ombre-forte); border-color:var(--accent); }
.btn-export .ico{ font-size:2.2rem; flex:none; }
.btn-export small{ display:block; font-weight:400; color:var(--gris); font-size:.85rem; margin-top:.15rem; }

/* -------------------- Administration (comptes) -------------------- */
.liste-users{ display:flex; flex-direction:column; gap:.8rem; }
.carte-user{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; padding:1.1rem 1.3rem; border:1px solid var(--bord); border-radius:var(--rayon-sm); background:#fff; }
.carte-user .u-nom{ font-weight:700; font-size:1.08rem; }
.carte-user .u-id{ color:var(--gris); font-size:.9rem; }
.etiq-role{ display:inline-block; padding:.25rem .7rem; border-radius:999px; font-size:.8rem; font-weight:600; }
.etiq-role.super_admin{ background:#efe7fb; color:#6b3fa0; }
.etiq-role.mjpm{ background:var(--accent-doux); color:var(--accent-fonce); }
.etiq-role.assistant{ background:var(--vert-doux); color:var(--vert); }

/* -------------------- Modales -------------------- */
.modale-fond{ position:fixed; inset:0; background:rgba(20,32,45,.45); display:flex; align-items:center; justify-content:center; z-index:60; padding:1rem; backdrop-filter:blur(2px); }
.modale-fond[hidden]{ display:none; }
.modale{ background:#fff; border-radius:var(--rayon); padding:1.8rem; width:min(460px,100%); box-shadow:var(--ombre-forte); }
.modale h2{ margin:0 0 .3rem; }
.modale .aide{ margin-bottom:1rem; }
.modale label{ display:block; margin:.9rem 0; }
.modale label input, .modale label select{ margin-top:.35rem; }
.modale-boutons{ display:flex; justify-content:flex-end; gap:.8rem; margin-top:1.4rem; }

/* -------------------- Page de connexion -------------------- */
.ecran-login{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:1.5rem; background:linear-gradient(160deg,#eef3f9,#f5f7fa); }
.carte-login{ background:#fff; border:1px solid var(--bord); border-radius:22px; box-shadow:var(--ombre-forte); padding:2.4rem; width:min(400px,100%); }
.carte-login .logo-login{ width:56px; height:56px; border-radius:15px; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.9rem; margin:0 auto 1rem; }
.carte-login h1{ text-align:center; font-size:1.35rem; }
.carte-login .sous{ text-align:center; color:var(--gris); margin:.3rem 0 1.6rem; font-size:.95rem; }
.carte-login label{ display:block; margin-bottom:1rem; }
.carte-login label span{ display:block; margin-bottom:.35rem; font-size:.9rem; }
.carte-login .btn{ width:100%; justify-content:center; margin-top:.4rem; }
.err-login{ background:var(--rouge-doux); border:1px solid var(--rouge-bord); color:var(--rouge); border-radius:10px; padding:.7rem .9rem; margin-bottom:1rem; font-size:.92rem; text-align:center; }
.err-login[hidden]{ display:none; }

/* -------------------- Toast -------------------- */
.toast{ position:fixed; bottom:1.6rem; left:50%; transform:translateX(-50%); background:var(--encre); color:#fff; padding:.85rem 1.4rem; border-radius:999px; box-shadow:var(--ombre-forte); z-index:80; font-size:1rem; max-width:90vw; }
.toast[hidden]{ display:none; }
.toast.err{ background:var(--rouge); }
.toast.ok{ background:var(--vert); }

/* -------------------- Petits écrans -------------------- */
@media (max-width:640px){
  html{ font-size:17px; }
  .page{ padding:1.4rem 1rem 4rem; }
  .panneau{ padding:1.2rem; }
  .entete-in{ padding:.7rem 1rem; }
  .marque .sous-titre{ display:none; }
}


/* -------------------- Recherche (accueil) -------------------- */
.bloc-recherche{ margin:0 0 1.3rem; }
.champ-recherche{
  width:min(460px,100%); font:inherit; font-size:1.05rem; color:var(--encre);
  padding:.8rem 1.1rem; border:1.5px solid var(--bord); border-radius:14px;
  background:var(--carte); box-shadow:var(--ombre);
}
.champ-recherche::placeholder{ color:var(--gris-clair); }
.champ-recherche:focus{ outline:none; border-color:var(--accent); }

/* -------------------- Page de connexion -------------------- */
.message-login{
  border-radius:var(--rayon-sm); padding:.8rem 1rem; font-size:.95rem; margin:0 0 1.2rem;
  background:var(--accent-doux); color:var(--accent-fonce);
}
.message-login.err{ background:var(--rouge-doux); color:var(--rouge); border:1px solid var(--rouge-bord); }
.message-login.info{ background:var(--ambre-doux); color:var(--ambre); border:1px solid var(--ambre-bord); }
.carte-login input{
  width:100%; font:inherit; font-size:1.05rem; padding:.75rem .9rem;
  border:1.5px solid var(--bord); border-radius:12px; color:var(--encre);
}
.carte-login input:focus{ outline:none; border-color:var(--accent); }

/* -------------------- Accessibilité clavier -------------------- */
:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; border-radius:6px; }
.btn:focus-visible, .etape:focus-visible{ outline-offset:3px; }

/* ============================================================
   Triffon Tournesol : guide contextuel omniprésent
   ============================================================ */
.tourn-btn{
  position:fixed; right:1.2rem; bottom:1.2rem; z-index:9000;
  display:flex; align-items:center; gap:.55rem;
  background:var(--accent); color:#fff; border:none; border-radius:999px;
  padding:.6rem 1.05rem .6rem .6rem; font:inherit; font-weight:600; font-size:1rem;
  box-shadow:var(--ombre-forte); cursor:pointer; transition:background .15s, transform .06s;
}
.tourn-btn:hover{ background:var(--accent-fonce); }
.tourn-btn:active{ transform:translateY(1px); }
.tourn-btn .rond{
  width:2.1rem; height:2.1rem; border-radius:50%; background:rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; font-size:1.25rem; flex:none;
}
@keyframes tournAppel{ 0%,100%{ box-shadow:var(--ombre-forte);} 50%{ box-shadow:0 0 0 10px rgba(47,93,138,.18), var(--ombre-forte);} }
.tourn-btn.appel{ animation:tournAppel 1.6s ease-in-out 3; }

.tourn-panneau{
  position:fixed; right:1.2rem; bottom:5.2rem; z-index:9001;
  width:min(390px, calc(100vw - 2rem)); max-height:min(72vh,660px); overflow:auto;
  background:var(--carte); border:1px solid var(--bord); border-radius:20px;
  box-shadow:var(--ombre-forte);
}
.tourn-tete{
  display:flex; align-items:center; gap:.7rem; padding:1rem 1.1rem;
  border-bottom:1px solid var(--bord); position:sticky; top:0; background:var(--carte); border-radius:20px 20px 0 0;
}
.tourn-tete .fleur{
  width:2.4rem; height:2.4rem; border-radius:12px; background:var(--ambre-doux);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex:none;
}
.tourn-tete .qui{ flex:1; line-height:1.15; }
.tourn-tete .qui b{ font-size:1.05rem; }
.tourn-tete .qui span{ display:block; font-size:.82rem; color:var(--gris-clair); }
.tourn-fermer{ background:none; border:none; color:var(--gris); font-size:1.5rem; cursor:pointer; line-height:1; padding:.2rem .4rem; border-radius:8px; }
.tourn-fermer:hover{ background:var(--fond); color:var(--encre); }

.tourn-corps{ padding:1.05rem 1.15rem 1.2rem; }
.tourn-ici{ font-size:.82rem; color:var(--gris-clair); text-transform:uppercase; letter-spacing:.03em; font-weight:600; margin:0 0 .2rem; }
.tourn-titre{ font-size:1.15rem; font-weight:700; margin:0 0 .6rem; letter-spacing:-.01em; }
.tourn-p{ margin:0 0 .7rem; color:var(--gris); font-size:.98rem; line-height:1.5; }
.tourn-action{ background:var(--accent-doux); color:var(--accent-fonce); border-radius:12px; padding:.8rem .95rem; font-size:.98rem; line-height:1.45; margin:.3rem 0 1rem; }
.tourn-boutons{ display:flex; gap:.6rem; flex-wrap:wrap; }
.tourn-mini{ font-size:.95rem; padding:.6rem 1rem; }
.tourn-liste{ margin:.2rem 0 1rem; padding:0; list-style:none; counter-reset:etape; }
.tourn-liste li{ position:relative; padding:.55rem 0 .55rem 2.4rem; border-bottom:1px solid var(--bord); color:var(--gris); font-size:.96rem; line-height:1.45; }
.tourn-liste li:last-child{ border-bottom:none; }
.tourn-liste li b{ color:var(--encre); }
.tourn-liste li::before{ counter-increment:etape; content:counter(etape); position:absolute; left:0; top:.5rem; width:1.7rem; height:1.7rem; border-radius:50%; background:var(--accent); color:#fff; font-size:.9rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
.tourn-reperes{ margin:.2rem 0 0; padding:.85rem .95rem; background:var(--fond); border-radius:12px; font-size:.92rem; color:var(--gris); line-height:1.5; }
.tourn-reperes b{ color:var(--encre); }
.tourn-retour{ background:none; border:none; color:var(--accent); font:inherit; font-weight:600; font-size:.92rem; cursor:pointer; padding:.3rem 0; margin-bottom:.6rem; }
.tourn-retour:hover{ text-decoration:underline; }

/* Mode « Montrez-moi » : surbrillance + bulle */
.tourn-bloqueur{ position:fixed; inset:0; z-index:9500; background:transparent; cursor:default; }
.tourn-halo{ position:fixed; z-index:9501; border-radius:12px; box-shadow:0 0 0 9999px rgba(20,32,45,.55); pointer-events:none; transition:top .2s, left .2s, width .2s, height .2s; }
.tourn-bulle{
  position:fixed; z-index:9502; width:min(340px, calc(100vw - 2rem));
  background:var(--carte); border-radius:16px; box-shadow:var(--ombre-forte); padding:1.1rem 1.2rem;
}
.tourn-bulle .compte{ font-size:.8rem; color:var(--gris-clair); font-weight:600; margin:0 0 .3rem; }
.tourn-bulle .b-titre{ font-size:1.08rem; font-weight:700; margin:0 0 .4rem; }
.tourn-bulle .b-texte{ margin:0 0 1rem; color:var(--gris); font-size:.96rem; line-height:1.5; }
.tourn-bulle .b-boutons{ display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.tourn-bulle .b-nav{ display:flex; gap:.5rem; }
.tourn-quitter{ background:none; border:none; color:var(--gris); font:inherit; font-size:.9rem; cursor:pointer; padding:.4rem; }
.tourn-quitter:hover{ color:var(--encre); text-decoration:underline; }

@media (max-width:640px){
  .tourn-panneau{ right:.6rem; left:.6rem; width:auto; bottom:4.8rem; }
  .tourn-btn{ right:.8rem; bottom:.8rem; }
  .tourn-bulle{ left:.8rem !important; right:.8rem; width:auto; }
}

/* Note guide sur l'écran de connexion */
.note-guide{ margin:1.4rem 0 0; padding:.85rem 1rem; background:var(--ambre-doux); color:var(--ambre); border:1px solid var(--ambre-bord); border-radius:12px; font-size:.9rem; line-height:1.45; text-align:left; }

select.champ-aclasser{ background:#fff3b0 !important; border-color:#e0b000 !important; color:#6b5200; font-weight:600; }

/* CRG : pied de page version */
#pied-build{ position:fixed; right:10px; bottom:8px; z-index:60; font-size:11px; color:#8a97a6;
  background:rgba(255,255,255,.9); padding:3px 9px; border-radius:8px; pointer-events:none;
  box-shadow:0 1px 3px rgba(0,0,0,.08); }
