/* Organisation — thème. Clair par défaut, sombre selon le système. Aucune ressource externe (CSP). */
:root { --fond:#f3f5f9; --texte:#1b2433; --doux:#5b6678; --carte:#fff; --bord:#dde2ea; --accent:#0b5cad; --accent2:#0a4a8c; --accentfond:#e6f0fb; --ok:#127a3e; --okfond:#e4f5ea; --alerte:#8a4b00; --alertefond:#fff3df; --danger:#b3261e; --dangerfond:#fdeceb; --ombre:0 1px 2px rgba(16,24,40,.06), 0 4px 14px rgba(16,24,40,.06); --rayon:12px; }
@media (prefers-color-scheme: dark) { :root { --fond:#0f141b; --texte:#e8ecf2; --doux:#9aa6b8; --carte:#18202b; --bord:#2b3646; --accent:#5aa6f5; --accent2:#7fbaf7; --accentfond:#16283d; --ok:#5fd08a; --okfond:#12301f; --alerte:#ffd08a; --alertefond:#3a2d12; --danger:#ff8f86; --dangerfond:#3b1917; --ombre:0 1px 2px rgba(0,0,0,.4); } }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui, "Segoe UI", Roboto, sans-serif; background:var(--fond); color:var(--texte); }
h1 { font-size:1.15rem; margin:0; letter-spacing:.06em; } h2 { font-size:1.4rem; margin:.2em 0 .6em; } h3 { font-size:1.05rem; margin:1.2em 0 .4em; }
p { margin:.4em 0 .8em; }

/* En-tête et navigation */
header { background:linear-gradient(135deg, #0a3d7a, #0b5cad); color:#fff; padding:10px 20px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; box-shadow:var(--ombre); }
header h1 { display:flex; align-items:center; gap:10px; }
#barre { display:flex; align-items:center; gap:14px; flex-wrap:wrap; } #orgnom { font-weight:600; opacity:.95; }
nav { display:flex; gap:4px; flex-wrap:wrap; }
nav button { background:transparent; color:#fff; border:0; border-radius:999px; padding:7px 14px; font-weight:500; opacity:.85; }
nav button:hover { background:rgba(255,255,255,.16); opacity:1; } nav button.actif { background:#fff; color:#0a3d7a; opacity:1; font-weight:700; }
#deconnexion { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.5); }
main { max-width:1120px; margin:0 auto; padding:20px 16px 48px; }

/* Boutons et champs */
input, select, textarea, button { font:inherit; padding:9px 12px; border:1px solid var(--bord); border-radius:8px; background:var(--carte); color:var(--texte); }
textarea { width:100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible { outline:3px solid var(--accent); outline-offset:1px; }
button { background:var(--accent); color:#fff; border-color:var(--accent); cursor:pointer; font-weight:600; transition:background .15s; } button:hover { background:var(--accent2); }
button.secondaire { background:transparent; color:var(--texte); border-color:var(--bord); } button.secondaire:hover { background:var(--accentfond); }
button.danger { background:var(--danger); border-color:var(--danger); } button.petit { padding:4px 10px; font-size:.85rem; }
button:disabled { opacity:.5; cursor:not-allowed; }
label { display:grid; gap:4px; font-size:.9rem; color:var(--doux); font-weight:500; } label input, label select, label textarea { color:var(--texte); font-weight:400; }
label.case { display:flex; align-items:flex-start; gap:8px; color:var(--texte); } label.case input { margin-top:4px; }
form { display:grid; gap:14px; background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon); padding:18px; margin:14px 0; box-shadow:var(--ombre); }
fieldset { border:1px solid var(--bord); border-radius:10px; padding:14px; display:grid; gap:12px; margin:0 0 4px; } legend { font-weight:700; padding:0 8px; color:var(--accent); }
.actions, .barre-outils { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; align-items:center; }
#form-candidature, #form-profil, #form-verif, #form-decision { max-width:800px; }
@media (min-width:720px) { fieldset { grid-template-columns:1fr 1fr; } fieldset > label.case, fieldset > label:has(textarea) { grid-column:1 / -1; } }
.groupe { border:1px solid var(--bord); border-radius:10px; padding:12px; margin:8px 0; display:grid; gap:8px; background:var(--carte); } .note { font-size:.88em; color:var(--alerte); }
.apercu { max-height:80px; max-width:160px; object-fit:contain; border:1px dashed var(--bord); background:#fff; border-radius:6px; }
details { margin:16px 0; } summary { cursor:pointer; font-weight:600; }

/* Messages */
.alerte { background:var(--alertefond); color:var(--alerte); padding:10px 14px; border-radius:10px; }
#message:not(:empty) { padding:11px 14px; border-radius:10px; background:var(--accentfond); color:var(--accent2); border:1px solid var(--bord); font-weight:500; margin:0 0 14px; }
#message.erreur:not(:empty) { background:var(--dangerfond); color:var(--danger); }

/* Tableaux */
.tableau { overflow-x:auto; background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon); box-shadow:var(--ombre); }
table { border-collapse:collapse; width:100%; } th { font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color:var(--doux); background:var(--fond); } th, td { padding:10px 14px; border-bottom:1px solid var(--bord); text-align:left; white-space:nowrap; }
tbody tr:hover { background:var(--accentfond); } tbody tr:last-child td { border-bottom:0; }
.badge { display:inline-block; padding:2px 10px; border-radius:999px; font-size:.8rem; font-weight:700; background:var(--fond); color:var(--doux); }
.badge-actif, .badge-accepte { background:var(--okfond); color:var(--ok); } .badge-en_attente, .badge-attente, .badge-demande { background:var(--alertefond); color:var(--alerte); }
.badge-refuse, .badge-radie, .badge-decede, .badge-annule { background:var(--dangerfond); color:var(--danger); } .badge-suspendu, .badge-ancien { background:var(--accentfond); color:var(--accent2); }
.vide { text-align:center; color:var(--doux); padding:28px 0; }
#form-recherche { display:block; background:none; border:0; box-shadow:none; padding:0; margin:10px 0; } #form-recherche input { width:100%; max-width:420px; }

/* Tableau de bord */
.accueil-titre { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:8px; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:14px; margin:14px 0 18px; }
.kpi { background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon); padding:16px 18px; box-shadow:var(--ombre); text-align:left; color:var(--texte); display:grid; gap:2px; border-left:5px solid var(--accent); cursor:pointer; }
.kpi:hover { background:var(--accentfond); } .kpi .v { font-size:2rem; font-weight:800; line-height:1.1; } .kpi .t { color:var(--doux); font-weight:600; font-size:.9rem; } .kpi .n { font-size:.8rem; color:var(--doux); font-weight:400; }
.kpi.ok { border-left-color:var(--ok); } .kpi.att { border-left-color:#d98200; } .kpi.rose { border-left-color:#c2418f; }
.grille { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:14px; }
.panneau { background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon); padding:16px 18px; box-shadow:var(--ombre); } .panneau h3 { margin:0 0 10px; }
.barre { display:grid; grid-template-columns:minmax(80px, 38%) 1fr auto; gap:8px; align-items:center; margin:6px 0; font-size:.9rem; } .barre .lib { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.barre .piste { height:10px; background:var(--fond); border-radius:999px; overflow:hidden; } .barre .rempli { display:block; height:100%; background:var(--accent); border-radius:999px; } .barre .val { font-weight:700; }
.colonnes { display:flex; align-items:flex-end; gap:10px; height:130px; padding-top:8px; } .col { flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:4px; height:100%; font-size:.78rem; color:var(--doux); }
.col .haut { width:100%; max-width:46px; background:var(--accent); border-radius:6px 6px 0 0; min-height:2px; } .col b { color:var(--texte); }


.err:not(:empty) { background:var(--dangerfond); color:var(--danger); padding:9px 12px; border-radius:8px; margin:0; font-weight:600; } .err:empty { display:none; }
/* Polissage : icônes, connexion, pied de page, avatars */
.ico { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; vertical-align:-3px; margin-right:7px; }
header { position:sticky; top:0; z-index:20; display:grid; grid-template-columns:1fr auto auto auto auto; grid-template-areas:'marque org appareils mdp sortie' 'nav nav nav nav nav'; align-items:center; gap:6px 14px; padding:10px 24px 8px; }
#barre { display:contents; } header h1 { grid-area:marque; } #orgnom { grid-area:org; } #deconnexion { grid-area:sortie; } #btn-appareils { grid-area:appareils; background:transparent; color:#fff; border:1px solid rgba(255,255,255,.35); font-size:.85rem; padding:6px 12px; } #btn-mdp { grid-area:mdp; background:transparent; color:#fff; border:1px solid rgba(255,255,255,.35); font-size:.85rem; padding:6px 12px; } #nav { grid-area:nav; padding-top:2px; border-top:1px solid rgba(255,255,255,.18); margin-top:2px; }
body[data-vue="vue-connexion"] header { display:none; }
nav button { display:inline-flex; align-items:center; padding:7px 11px; font-size:.92rem; white-space:nowrap; } nav .ico { margin-right:5px; }
.kpi { position:relative; padding-left:70px; } .kpi-ico { position:absolute; left:16px; top:16px; width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:var(--accentfond); color:var(--accent); } .kpi-ico .ico { margin:0; width:22px; height:22px; }
.kpi.ok .kpi-ico { background:var(--okfond); color:var(--ok); } .kpi.att .kpi-ico { background:var(--alertefond); color:var(--alerte); } .kpi.rose .kpi-ico { background:#fbe9f4; color:#c2418f; }
.kpi { transition:transform .12s, box-shadow .12s; } .kpi:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(16,24,40,.12); }
.avatar { display:inline-grid; place-items:center; width:30px; height:30px; margin-right:10px; border-radius:50%; background:linear-gradient(135deg, #0b5cad, #3b8fe0); color:#fff; font-size:.72rem; font-weight:700; vertical-align:middle; }
.niveaux { margin:.4em 0 1em; padding-left:1.4em; color:var(--doux); } .niveaux li { margin:2px 0; } .niveaux li::marker { color:var(--accent); font-weight:700; }
.pied { text-align:center; color:var(--doux); font-size:.8rem; padding:18px 0 28px; }
body[data-vue="vue-connexion"] { background:radial-gradient(1200px 600px at 10% -10%, #1a6fd1 0%, transparent 60%), radial-gradient(900px 500px at 100% 110%, #0a3d7a 0%, transparent 55%), #0a2a52; background-repeat:no-repeat; background-attachment:fixed; min-height:100vh; }
body[data-vue="vue-connexion"] header { display:none; } body[data-vue="vue-connexion"] .pied { color:#c9d8ee; } body[data-vue="vue-connexion"] #message:not(:empty) { max-width:420px; margin:12px auto; }
.connexion { max-width:420px; margin:6vh auto 0; display:grid; gap:18px; }
.connexion-marque { text-align:center; color:#fff; } .connexion-marque h2 { margin:.4em 0 .2em; font-size:1.7rem; letter-spacing:.08em; } .connexion-marque p { margin:0; opacity:.85; }
.connexion form { margin:0; padding:24px; box-shadow:0 20px 60px rgba(0,0,0,.35); } .connexion form h3 { margin:0; font-size:1.2rem; } .connexion form button { padding:11px; font-size:1rem; }
.pied-connexion { text-align:center; color:#c9d8ee; font-size:.8rem; margin:0; }
h2 { position:relative; padding-bottom:8px; } h2::after { content:""; position:absolute; left:0; bottom:0; width:44px; height:4px; border-radius:4px; background:linear-gradient(90deg, var(--accent), #3b8fe0); } .connexion-marque h2::after { display:none; }
body { background-image:linear-gradient(180deg, rgba(11,92,173,.05), transparent 220px); background-repeat:no-repeat; }
@media (max-width:640px) { header { padding:8px 12px; } nav button { padding:6px 10px; font-size:.9rem; } main { padding:14px 10px 40px; } .kpi { padding-left:64px; } }
@media print { .pied { display:none; } }
/* Équipe dirigeante */
.chemin { color:var(--doux); font-weight:600; margin-top:0; }
.equipe { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:14px; margin:12px 0; }
.poste { background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon); padding:14px 16px; box-shadow:var(--ombre); border-top:4px solid var(--accent); display:grid; gap:4px; align-content:start; }
.poste.vacant { border-top-color:var(--bord); background:transparent; box-shadow:none; border-style:dashed; } .poste .fonction { font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color:var(--doux); font-weight:700; }
.poste .qui { font-size:1.05rem; font-weight:700; } .poste .detail { font-size:.85rem; color:var(--doux); } .poste .actions { margin:6px 0 0; }
.puces { display:flex; flex-wrap:wrap; gap:8px; } .puce { border:1px solid var(--bord); border-radius:999px; padding:5px 14px; background:var(--carte); cursor:pointer; color:var(--texte); font-weight:500; } .puce:hover { background:var(--accentfond); }
/* Fenêtres (boîtes de dialogue) */
dialog.fenetre { border:0; border-radius:16px; padding:0; width:min(560px, 94vw); background:var(--carte); color:var(--texte); box-shadow:0 20px 60px rgba(0,0,0,.35); }
dialog.fenetre::backdrop { background:rgba(10,20,35,.55); backdrop-filter:blur(2px); }
.fenetre-tete { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--bord); background:var(--fond); border-radius:16px 16px 0 0; } .fenetre-tete h3 { margin:0; }
.fenetre form { border:0; box-shadow:none; margin:0; border-radius:0 0 16px 16px; }

/* ----- Fiche d'adhésion (écran = aperçu de la page A4) ----- */
.feuille { background:#fff; color:#000; max-width:794px; margin:12px auto; padding:12px 16px; border:1px solid var(--bord); font:11px/1.3 Arial, sans-serif; }
.f-entete { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.f-id { flex:1; text-align:center; } .f-nom { font-weight:700; font-size:15px; } .f-mention { font-weight:700; }
.f-photo { width:90px; height:112px; border:1px solid #000; display:flex; align-items:center; justify-content:center; text-align:center; white-space:pre-line; color:#666; font-size:10px; }
.f-titre { text-align:center; font-size:15px; margin:6px 0 5px; }
.fr { display:grid; grid-template-columns:repeat(6, 1fr); border:1px solid #000; border-top:0; } .fb + .fr { border-top:0; }
.fc { padding:3px 5px; border-left:1px solid #000; min-height:27px; display:flex; flex-direction:column; } .fc:first-child { border-left:0; }
.fc2 { grid-column:span 2; } .fc3 { grid-column:span 3; } .fc6 { grid-column:span 6; }
.fl { font-weight:700; font-size:10.5px; } .fv { white-space:pre-wrap; word-break:break-word; } .cats { flex-direction:row; gap:24px; min-height:24px; }
.fb { background:#1f3b63; color:#fff; font-weight:700; padding:2px 6px; margin-top:5px; border:1px solid #000; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.f-decl { border:1px solid #000; border-top:0; padding:3px 8px; } .f-decl p { margin:2px 0; } .f-signature { margin-top:6px !important; }
.fsig { min-height:52px; }
.f-pied { text-align:center; font-size:10px; margin-top:10px; border-top:1px solid #000; padding-top:4px; }
.feuille .fr:first-of-type { border-top:1px solid #000; }

/* ----- Carte de membre (format carte bancaire 85,6 × 54 mm) ----- */
.cartes { display:flex; flex-wrap:wrap; gap:22px; justify-content:center; margin:22px 0; }
.carte { --marine:#0f2a52; --marine2:#1d56a5; --or:#c9a227; position:relative; width:85.6mm; height:54mm; border-radius:3.2mm; background:#fff; color:#10213f; font:9px/1.3 'Segoe UI', Arial, sans-serif; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 10px 28px rgba(15,42,82,.28), 0 0 0 1px rgba(15,42,82,.25); -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.carte > * { position:relative; z-index:1; }
.c-filigrane { position:absolute !important; z-index:0 !important; right:-6mm; bottom:-6mm; width:46mm; height:46mm; object-fit:contain; opacity:.07; }
.c-bandeau { display:flex; align-items:center; gap:2.6mm; padding:2.4mm 3.4mm; background:linear-gradient(110deg, var(--marine) 0%, var(--marine2) 100%); color:#fff; min-height:12.4mm; }
.c-bandeau.c-mince { min-height:9.4mm; padding:1.6mm 3.4mm; }
.c-logo { flex:none; width:9.4mm; height:9.4mm; border-radius:50%; background:#fff; display:grid; place-items:center; overflow:hidden; box-shadow:0 0 0 .5mm var(--or); } .c-logo.c-petit { width:6.6mm; height:6.6mm; }
.c-logo-img { width:84%; height:84%; object-fit:contain; } .c-mono { font-weight:800; font-size:7px; color:var(--marine); letter-spacing:-.02em; }
.c-orgtxt { min-width:0; } .c-org { font-weight:800; font-size:8.2px; line-height:1.2; letter-spacing:.01em; text-transform:uppercase; } .c-mention { font-size:6.4px; opacity:.85; margin-top:.3mm; }
.c-mince .c-org { font-size:7.4px; }
.c-liseré { height:.9mm; background:linear-gradient(90deg, var(--or), #f1d675 55%, var(--or)); }
.c-corps { flex:1; display:flex; justify-content:space-between; gap:3mm; padding:2.6mm 3.4mm 0; min-height:0; }
.c-infos { min-width:0; display:flex; flex-direction:column; gap:.55mm; }
.c-type { font-size:6px; font-weight:700; letter-spacing:.22em; color:var(--or); } .c-nom { font-size:11.6px; font-weight:800; line-height:1.15; color:var(--marine); margin-bottom:.4mm; }
.c-numero { align-self:flex-start; font:700 8.4px/1 'Consolas','Courier New',monospace; background:var(--marine); color:#fff; padding:.8mm 2mm; border-radius:1mm; letter-spacing:.06em; margin-bottom:.8mm; }
.c-ligne { display:flex; flex-direction:column; font-size:7.4px; line-height:1.15; } .c-ligne b { font-weight:700; } .c-lib { font-size:5.6px; text-transform:uppercase; letter-spacing:.1em; color:#6a7894; }
.c-photo { flex:none; width:21mm; height:26mm; border-radius:1.6mm; overflow:hidden; background:linear-gradient(160deg,#e8eef8,#cfdbee); box-shadow:0 0 0 .35mm var(--marine), 0 0 0 .8mm #fff, 0 0 0 1.1mm var(--or); display:grid; place-items:center; align-self:flex-start; margin-right:.8mm; }
.c-photo-img { width:100%; height:100%; object-fit:cover; } .c-photo-vide { font-weight:800; font-size:15px; color:var(--marine2); opacity:.6; }
.c-pied { display:flex; justify-content:space-between; gap:2mm; padding:.9mm 3.4mm; font-size:5.8px; color:#fff; background:var(--marine); letter-spacing:.06em; text-transform:uppercase; margin-top:auto; } .c-pied span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.verso .c-pied { text-transform:none; letter-spacing:0; justify-content:center; }
.c-rang { display:flex; gap:2.4mm; align-items:center; margin:2.2mm 3.4mm 0; } .c-colonne { flex:1; min-width:0; display:flex; flex-direction:column; gap:1mm; } .c-colonne .c-code { margin:0; } .c-colonne .c-aide { margin:0; padding:0; font-size:5.6px; line-height:1.25; }
.c-qr { width:21mm; height:21mm; flex:none; background:#fff; border:.25mm solid #d5dcea; border-radius:1.2mm; padding:.4mm; display:flex; } .qr { width:100%; height:100%; display:block; }
.f-qr { display:flex; flex-direction:column; align-items:center; width:26mm; margin-right:6px; font:9px/1.2 monospace; text-align:center; } .f-qr .qr { width:24mm; height:24mm; }
.c-code { margin:2.6mm 3.4mm 0; padding:1.5mm 2mm; border:.3mm dashed var(--marine2); border-radius:1.6mm; text-align:center; background:rgba(29,86,165,.06); display:flex; flex-direction:column; gap:.4mm; }
.c-codeval { font:800 13px/1.1 'Consolas','Courier New',monospace; letter-spacing:.14em; color:var(--marine); }
.c-aide { margin:1.2mm 3.4mm 0; text-align:center; font-size:6px; color:#55627c; }
.c-sigs { display:grid; grid-template-columns:1fr 1fr; gap:4mm; padding:0 3.4mm; margin-top:auto; margin-bottom:1.2mm; }
.c-sig { display:flex; flex-direction:column; align-items:center; font-size:6px; color:#55627c; text-align:center; } .c-sig span { border-top:.25mm solid #55627c; padding-top:.5mm; width:100%; }
.c-sigzone { height:9mm; width:100%; display:flex; align-items:center; justify-content:center; gap:1mm; } .c-sigimg { max-height:8.4mm; max-width:17mm; object-fit:contain; } .c-cachet { max-height:9mm; max-width:9mm; object-fit:contain; opacity:.9; }

/* ----- Impression : on n'imprime que le document affiché ----- */
/* ----- Images : logo, photo, cachet, signatures ----- */
.f-id { flex:1; } .f-photo { overflow:hidden; }
.f-logo { max-height:22mm; max-width:30mm; object-fit:contain; margin-right:8px; } .f-photo-img { width:100%; height:100%; object-fit:cover; } .f-refs { font-size:9px; margin-top:2px; }
.f-sigzone { display:flex; align-items:center; gap:6px; min-height:14mm; } .f-sig { max-height:16mm; max-width:40mm; object-fit:contain; } .f-cachet { max-height:20mm; max-width:20mm; object-fit:contain; }
.apercu { max-height:80px; max-width:160px; object-fit:contain; border:1px dashed var(--bord); background:#fff; } .groupe { border:1px solid var(--bord); border-radius:8px; padding:10px; margin:8px 0; display:grid; gap:8px; }
.note { font-size:.9em; color:var(--alerte); }
@media print {
  @page { size:A4; margin:8mm; }
  body { background:#fff; } .noprint, header { display:none !important; }
  main { max-width:none; padding:0; } .feuille { border:0; margin:0; padding:0; max-width:none; zoom:.82; }
  .cartes { margin:0; gap:8mm; } .carte { break-inside:avoid; box-shadow:0 0 0 .3mm #0f2a52; }
}

[hidden] { display:none !important; }
#liste-structures td:last-child { white-space:normal; min-width:260px; } #liste-structures td:last-child button { margin:2px 4px 2px 0; }

/* Comptes et accès */
.mdp-temp { display:inline-block; padding:8px 14px; border-radius:8px; background:var(--accentfond); color:var(--accent2); font-size:1.15rem; font-weight:700; letter-spacing:.06em; user-select:all; }
.aide { font-size:.88rem; color:var(--doux); margin:0; }
.droits { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:2px 0; } .droits .badge { background:var(--accentfond); color:var(--accent2); }
.droits button { padding:1px 8px; font-size:.78rem; }
tr.hors-juridiction td { color:var(--doux); font-style:italic; }
/* Les listes à libellés longs (chemins hiérarchiques) ne doivent jamais élargir une fenêtre */
form, label { grid-template-columns:minmax(0,1fr); } label select, label input { max-width:100%; min-width:0; } [hidden] { display:none !important; }

/* ===== Présentation : tableau de bord, fiche du membre, listes, fenêtres ===== */
/* En-tête du tableau de bord */
.hero { display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:center; padding:20px 24px; margin:4px 0 18px; border-radius:18px; color:#fff; background:linear-gradient(115deg, #0a2a55 0%, #0b5cad 60%, #3b8fe0 100%); box-shadow:0 12px 30px rgba(10,58,120,.28); position:relative; overflow:hidden; }
.hero::after { content:""; position:absolute; right:-60px; top:-70px; width:240px; height:240px; border-radius:50%; background:rgba(255,255,255,.07); }
.hero-logo { width:64px; height:64px; border-radius:50%; background:#fff; display:grid; place-items:center; overflow:hidden; box-shadow:0 0 0 3px rgba(255,255,255,.35); z-index:1; } .hero-logo .c-logo-img { width:86%; height:86%; object-fit:contain; } .c-mono.grand { font-size:1.05rem; }
.hero-texte { z-index:1; min-width:0; } .hero-sur { font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; opacity:.8; font-weight:700; }
.hero h2 { margin:2px 0 2px; color:#fff; font-size:1.45rem; padding-bottom:0; } .hero h2::after { display:none; } .hero p { margin:0; opacity:.9; font-size:.95rem; }
.hero-actions { z-index:1; text-align:right; display:grid; gap:6px; justify-items:end; } #accueil-date { font-size:.9rem; opacity:.9; }
.hero-actions .actions { margin:0; } .hero button { background:#fff; color:#0a3d7a; border-color:#fff; } .hero button.secondaire { background:transparent; color:#fff; border-color:rgba(255,255,255,.6); } .hero button:hover { background:#e6f0fb; color:#0a3d7a; }
@media (max-width:760px) { .hero { grid-template-columns:auto 1fr; } .hero-actions { grid-column:1 / -1; justify-items:start; text-align:left; } }
.grille.deux { grid-template-columns:repeat(auto-fit, minmax(340px, 1fr)); margin-top:14px; }
.anneau-bloc { display:flex; align-items:center; gap:26px; flex-wrap:wrap; padding:6px 4px 4px; }
.anneau { position:relative; width:128px; height:128px; border-radius:50%; flex:none; } .anneau::before { content:""; position:absolute; inset:22px; border-radius:50%; background:var(--carte); }
.anneau-centre { position:absolute; inset:0; display:grid; place-items:center; font-size:1.7rem; font-weight:800; color:var(--texte); }
.legende { list-style:none; margin:0; padding:0; display:grid; gap:8px; } .legende .pt { display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:8px; vertical-align:-1px; } .pt.rose { background:#c2418f; } .pt.bleu { background:#0b5cad; }
.tache { display:flex; align-items:center; gap:8px; width:100%; margin:6px 0; padding:11px 14px; text-align:left; background:var(--fond); color:var(--texte); border:1px solid var(--bord); border-left:4px solid var(--alerte); border-radius:10px; font-weight:500; } .tache b { font-size:1.15rem; color:var(--alerte); min-width:1.6em; } .tache:hover { background:var(--accentfond); }

/* Fiche du membre : bannière et blocs */
.profil { display:flex; align-items:center; gap:20px; padding:20px 24px; margin:6px 0 16px; border-radius:18px; background:linear-gradient(115deg, var(--carte) 0%, var(--accentfond) 100%); border:1px solid var(--bord); border-left:6px solid var(--accent); box-shadow:var(--ombre); }
.profil-photo { flex:none; width:92px; height:92px; border-radius:50%; overflow:hidden; display:grid; place-items:center; font-size:1.9rem; font-weight:800; color:#fff; background:linear-gradient(135deg, #0b5cad, #3b8fe0); box-shadow:0 0 0 4px var(--carte), 0 0 0 6px var(--accent); } .profil-img { width:100%; height:100%; object-fit:cover; }
.profil h2 { margin:0 0 6px; padding:0; font-size:1.55rem; } .profil h2::after { display:none; } .profil .chemin { margin:8px 0 0; font-weight:500; }
.puces-info { display:flex; gap:8px; flex-wrap:wrap; align-items:center; } .pastille { display:inline-block; padding:3px 12px; border-radius:999px; background:var(--carte); border:1px solid var(--bord); font-size:.82rem; font-weight:600; color:var(--doux); } .pastille.num { font-family:Consolas, 'Courier New', monospace; background:var(--accent); color:#fff; border-color:var(--accent); letter-spacing:.04em; }
#panneau-membre { display:grid; grid-template-columns:repeat(auto-fit, minmax(380px, 1fr)); gap:16px; align-items:start; margin:6px 0 10px; }
.bloc { background:var(--carte); border:1px solid var(--bord); border-radius:var(--rayon); padding:16px 18px; box-shadow:var(--ombre); display:grid; gap:10px; align-content:start; } .bloc h3 { margin:0; padding-bottom:8px; border-bottom:2px solid var(--accentfond); font-size:1.02rem; }
.bloc form, .bloc .groupe { border:0; box-shadow:none; padding:0; margin:0; background:transparent; } .bloc .tableau { box-shadow:none; } .bloc .actions { margin:2px 0; }
.titre-apercu { margin:22px 0 8px; color:var(--doux); text-transform:uppercase; letter-spacing:.12em; font-size:.8rem; }
.feuille { box-shadow:0 8px 30px rgba(16,24,40,.14); }

/* Liste des membres */
#liste td.num { font-family:Consolas, 'Courier New', monospace; font-weight:600; color:var(--accent2); white-space:nowrap; }
.nom-membre { font-weight:600; } #liste td.entite { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:help; }
#liste tr:hover td, #liste-structures tr:hover td, #liste-comptes tr:hover td { background:var(--accentfond); } tbody tr { transition:background .12s; }
table th { position:sticky; top:0; }

/* Fenêtres */
dialog.fenetre { border-top:5px solid var(--accent); animation:ouvre .16s ease-out; } @keyframes ouvre { from { opacity:0; transform:translateY(8px) scale(.985); } to { opacity:1; transform:none; } }
.fenetre-tete { background:linear-gradient(180deg, var(--accentfond), var(--carte)); } .fenetre-tete h3 { font-size:1.08rem; }
.fenetre form { gap:12px; } .fenetre label { font-weight:600; }
.fenetre input:focus, .fenetre select:focus, input:focus, select:focus, textarea:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accentfond); }
.fenetre .actions { justify-content:flex-end; margin-top:6px; }

/* Cotisations et reçu */
.stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:14px; margin:8px 0 14px; }
.stat { background:var(--carte); border:1px solid var(--bord); border-left:5px solid var(--ok); border-radius:var(--rayon); padding:14px 18px; box-shadow:var(--ombre); display:grid; gap:4px; } .stat .t { color:var(--doux); font-weight:600; font-size:.88rem; } .stat .v { font-size:2rem; font-weight:800; line-height:1; } .stat .n { color:var(--doux); font-size:.85rem; }
.stat .piste { display:block; height:9px; border-radius:99px; background:var(--fond); overflow:hidden; } .stat .rempli { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg, var(--ok), #4cc17d); }
.filtres { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; padding:12px 16px; margin:8px 0; }
td.reste { font-weight:700; color:var(--alerte); } td.solde { color:var(--ok); font-weight:600; } .sous { font:.78rem Consolas, 'Courier New', monospace; color:var(--doux); }
dialog.large { width:min(820px, 96vw); } .corps-fenetre { padding:16px 18px; display:grid; gap:12px; } .corps-fenetre form { margin:0; }
.recu { max-width:720px; margin:0 auto; padding:26px 30px; background:#fff; color:#10213f; border-top:8px solid #0f2a52; }
.r-entete { display:flex; align-items:center; gap:16px; padding-bottom:12px; border-bottom:2px solid #c9a227; } .r-entete .grand-logo { width:64px; height:64px; } .r-org { display:grid; gap:2px; } .r-org b { font-size:1.2rem; color:#0f2a52; text-transform:uppercase; } .r-org small { color:#55627c; }
.r-titre { text-align:center; letter-spacing:.18em; color:#0f2a52; margin:20px 0 4px; padding:0; } .r-titre::after { display:none; } .r-numero { text-align:center; font:700 1.05rem Consolas, 'Courier New', monospace; color:#c9a227; margin-bottom:14px; }
.r-annule { background:#fdecec; color:#a31515; border:2px solid #a31515; border-radius:8px; text-align:center; font-weight:800; padding:8px; margin-bottom:12px; }
.r-table { width:100%; border-collapse:collapse; } .r-table th { text-align:left; width:38%; background:#eef3fb; color:#0f2a52; font-size:.85rem; border:1px solid #cfdbee; padding:8px 10px; position:static; text-transform:none; letter-spacing:0; } .r-table td { border:1px solid #cfdbee; padding:8px 10px; font-weight:600; }
.r-bas { display:flex; justify-content:space-between; align-items:flex-end; margin-top:26px; } .r-sig { display:grid; justify-items:center; min-width:200px; border-top:1px solid #55627c; font-size:.85rem; color:#55627c; padding-top:4px; } .r-sig .c-sigzone { height:16mm; margin-top:-16mm; }
@media print { .recu { border-top:8px solid #0f2a52; box-shadow:none; -webkit-print-color-adjust:exact; print-color-adjust:exact; } }
/* Ajustements : menu à neuf entrées, tableaux larges, logo du reçu */
nav { gap:0; } nav button { padding:7px 9px; font-size:.9rem; } nav .ico { margin-right:4px; }
#liste-cotisations td:last-child, #liste td:last-child, #liste-comptes td:last-child { white-space:nowrap; }
#liste-cotisations td { padding:10px 10px; } #liste-cotisations td:nth-child(4) { white-space:normal; min-width:118px; font-size:.88rem; }
.r-entete .grand-logo { width:64px; height:64px; box-shadow:0 0 0 2px #c9a227, 0 0 0 4px #fff; border:1px solid #cfdbee; } .r-entete .c-mono { font-size:1.05rem; } .r-entete .c-logo-img { width:86%; height:86%; }
nav button { padding:7px 7px; font-size:.87rem; } nav .ico { margin-right:3px; width:16px; height:16px; }
.hero-logo .c-mono { color:#0f2a52; }

/* Demandes de correction */
.demandes { display:grid; gap:12px; margin:10px 0; }
.demande { background:var(--carte); border:1px solid var(--bord); border-left:5px solid #c9a227; border-radius:var(--rayon); padding:12px 16px; box-shadow:var(--ombre); }
.demande.approuvee { border-left-color:#1f9d55; } .demande.refusee { border-left-color:#c0392b; } .demande.annulee { border-left-color:#9aa7ba; opacity:.8; }
.demande-tete { font-weight:700; margin-bottom:4px; } .changements { margin:6px 0 8px; padding-left:18px; } .changements li { margin:2px 0; }
#espace-infos th { text-align:left; width:38%; color:var(--doux); font-weight:600; } .grille-form { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:10px 14px; margin:10px 0; }
label.inline { display:inline-flex; gap:8px; align-items:center; margin-left:12px; }

/* Messagerie */
.pastille-nav { display:inline-block; min-width:18px; padding:0 6px; margin-left:6px; border-radius:999px; background:#d92d20; color:#fff; font-size:.72rem; font-weight:700; line-height:18px; text-align:center; }
.messages { display:grid; gap:12px; margin:12px 0; }
.msg { background:var(--carte); border:1px solid var(--bord); border-left:5px solid #9bb3d6; border-radius:12px; padding:14px 16px; display:grid; gap:6px; box-shadow:var(--ombre); }
.msg.nonlu { border-left-color:#0b5cad; background:#f4f9ff; } .msg.convocation { border-left-color:#c9a227; } .msg.retire { opacity:.55; }
.msg-tete { display:flex; flex-wrap:wrap; gap:8px; align-items:center; } .msg-objet { font-size:1.02rem; }
.msg-type { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; font-weight:700; padding:3px 9px; border-radius:999px; background:#e7eefb; color:#0a3d7a; }
.msg-type.t-convocation { background:#fbf1cf; color:#7a5a00; } .msg-type.t-rappel_cotisation { background:#fde9e7; color:#a1281e; } .msg-type.t-retrocession { background:#e5f5ea; color:#1d6b3a; }
.msg-nouveau { font-size:.7rem; font-weight:700; color:#fff; background:#0b5cad; padding:2px 8px; border-radius:999px; }
.msg-meta { font-size:.82rem; color:var(--doux); } .msg-quand { font-weight:700; color:#0a3d7a; } .msg-corps { white-space:pre-wrap; line-height:1.5; }
.msg button { justify-self:start; }
.onglets { margin:6px 0 10px; } .onglets .actif { background:#0a3d7a; color:#fff; border-color:#0a3d7a; }
@media print { body[data-imprime="fiche"] #vue-espace > :not(.bloc), body[data-imprime="fiche"] #vue-espace > .bloc:not(#bloc-espace-fiche), body[data-imprime="carte"] #vue-espace > :not(.bloc), body[data-imprime="carte"] #vue-espace > .bloc:not(#bloc-espace-carte) { display:none !important; } }

.canaux { border:1px solid var(--bord); border-radius:var(--rayon); padding:10px 14px; margin:10px 0; } .canaux legend { font-weight:600; padding:0 6px; }
.case { display:inline-flex; align-items:center; gap:6px; margin:4px 14px 4px 0; font-weight:400; } .case input { width:auto; }
.etiquette.en_attente { background:#fff4d6; color:#7a5200; } .etiquette.envoye, .etiquette.appele { background:#dff5e3; color:#14622b; } .etiquette.echec, .etiquette.injoignable { background:#fde2e2; color:#8f1d1d; } .etiquette.a_appeler { background:#dde9ff; color:#183a7a; } .etiquette.annule { background:#eceff4; color:#555; }
a.bouton { display:inline-block; text-decoration:none; background:var(--marine, #0f2a52); color:#fff; border-radius:8px; padding:5px 10px; margin-right:4px; }
.canaux label.case, label.case { display:inline-flex; flex-direction:row; width:auto; margin-right:16px; } .canaux .note { max-width:none; }

.lien-oubli { margin:10px 0 0; text-align:center; } button.lien { background:none; border:0; padding:4px; color:var(--bleu, #1b5fb4); text-decoration:underline; cursor:pointer; font:inherit; font-weight:500; }
fieldset.canaux { display:flex; flex-wrap:wrap; align-items:center; gap:4px 20px; } fieldset.canaux > legend { float:none; }
fieldset.canaux > .note, fieldset.canaux > label:not(.case) { flex:0 0 100%; max-width:none; width:100%; }

dialog.fenetre > p, dialog.fenetre > .actions, dialog.fenetre > .tableau { margin-left:18px; margin-right:18px; } dialog.fenetre > .tableau { width:calc(100% - 36px); } dialog.fenetre > p:first-of-type { margin-top:14px; } dialog.fenetre > .actions { margin-bottom:16px; }
dialog#fen-appareils { width:min(780px, 94vw); }

/* Connexion : écran en deux volets (marque + formulaire) */
body[data-vue="vue-connexion"] main { max-width:none; padding:0; }
body[data-vue="vue-connexion"] { background:#f3f6fb; background-image:none; }
body[data-vue="vue-connexion"] #message:not(:empty) { max-width:440px; margin:12px auto; position:relative; z-index:2; }
.login { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); min-height:100vh; }
.login-marque { position:relative; overflow:hidden; color:#fff; padding:56px clamp(28px,6vw,84px); display:flex; flex-direction:column; justify-content:center; gap:20px;
  background:radial-gradient(900px 500px at 0% 0%, #1f7ae0 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, #0a3d7a 0%, transparent 60%), linear-gradient(160deg, #0b2f5e, #0a2a52); }
.login-marque::before { content:""; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.5px); background-size:26px 26px; mask-image:linear-gradient(160deg, #000 0%, transparent 75%); -webkit-mask-image:linear-gradient(160deg, #000 0%, transparent 75%); pointer-events:none; }
.login-marque::after { content:""; position:absolute; width:520px; height:520px; right:-200px; bottom:-220px; border-radius:50%; border:1px solid rgba(255,255,255,.14); box-shadow:0 0 0 70px rgba(255,255,255,.03), 0 0 0 150px rgba(255,255,255,.02); pointer-events:none; }
.login-marque > * { position:relative; z-index:1; }
.login-logo { display:flex; align-items:center; gap:14px; } .login-nom { font-weight:800; letter-spacing:.14em; font-size:1.05rem; }
.login-marque h2 { margin:10px 0 0; font-size:clamp(1.7rem,3vw,2.5rem); line-height:1.15; font-weight:800; max-width:20ch; padding:0; } .login-marque h2::after { display:none; }
.login-sous { margin:0; font-size:1.05rem; opacity:.85; max-width:46ch; }
.login-points { list-style:none; margin:14px 0 0; padding:0; display:grid; gap:18px; max-width:46ch; }
.login-points li { display:flex; gap:14px; align-items:flex-start; font-size:.95rem; line-height:1.4; color:rgba(255,255,255,.82); } .login-points b { color:#fff; font-size:1rem; }
.login-points .pt { flex:none; width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); } .login-points .ico { width:21px; height:21px; margin:0; color:#fff; }
.login-pied { margin:22px 0 0; font-size:.82rem; opacity:.6; letter-spacing:.04em; }
.login-carte { display:flex; flex-direction:column; justify-content:center; align-items:center; padding:40px 24px; background:var(--fond); }
.login-carte form { width:100%; max-width:410px; margin:0; padding:34px 32px; gap:16px; border-radius:20px; box-shadow:0 24px 60px rgba(10,42,82,.16), 0 2px 6px rgba(10,42,82,.06); border:1px solid var(--bord); }
.login-tete { text-align:center; display:grid; gap:4px; justify-items:center; margin-bottom:4px; } .login-tete h3 { margin:6px 0 0; font-size:1.55rem; } .login-tete p { margin:0; color:var(--doux); font-size:.95rem; }
.petit-logo { width:52px; height:52px; border-radius:15px; font-size:1.05rem; background:linear-gradient(145deg, #0b5cad, #0a3d7a); color:#fff; box-shadow:0 8px 20px rgba(11,92,173,.35); }
.champ { position:relative; display:flex; align-items:center; } .champ input { width:100%; padding:12px 14px 12px 42px; border-radius:11px; } .champ input:focus-visible { outline-offset:0; }
.champ-ico { position:absolute; left:13px; color:var(--doux); display:grid; pointer-events:none; } .champ-ico .ico { margin:0; width:18px; height:18px; }
#mdp { padding-right:84px; } .oeil { position:absolute; right:6px; background:transparent; border:0; color:var(--accent); font-size:.82rem; font-weight:700; padding:6px 10px; border-radius:8px; } .oeil:hover { background:var(--accentfond); }
.login-bouton { padding:13px; font-size:1.02rem; border-radius:11px; background:linear-gradient(135deg, #0b5cad, #0a4a8c); box-shadow:0 8px 20px rgba(11,92,173,.3); } .login-bouton:hover { filter:brightness(1.08); background:linear-gradient(135deg, #0b5cad, #0a4a8c); }
.login-securite { margin:14px 0 0; max-width:410px; text-align:center; color:var(--doux); font-size:.82rem; }
@media (max-width:860px) { .login { grid-template-columns:1fr; } .login-marque { padding:34px 24px 30px; gap:14px; } .login-points, .login-pied { display:none; } .login-marque h2 { font-size:1.5rem; } .login-carte { padding:26px 16px 40px; margin-top:-18px; } }
@media (prefers-color-scheme: dark) { body[data-vue="vue-connexion"] { background:var(--fond); } }
@media print { .login-marque { display:none; } }
body[data-vue="vue-connexion"] #message:empty { display:none; } body[data-vue="vue-connexion"] .pied { display:none; }
#fen-retours > p, #fen-retours > .tableau { margin-left:18px; margin-right:18px; } #fen-retours > .tableau { margin-bottom:6px; } #fen-retours form { margin:10px 12px; }

/* Rapports d'activités */
.rapport .rap-section { margin:14px 0 0; } .rapport .rap-section h3 { margin:0 0 4px; font-size:1rem; color:var(--accent); border-bottom:1px solid var(--bord); padding-bottom:3px; }
.rapport .rap-texte { white-space:pre-wrap; margin:6px 0; line-height:1.5; } .rap-statut { margin:6px 0 10px; text-align:center; }
.puces { list-style:none; margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px; } .puces li { background:var(--accentfond); border-radius:20px; padding:3px 6px 3px 12px; display:flex; align-items:center; gap:6px; font-size:.85rem; }
.puces button { padding:0 8px; line-height:1.4; }
#form-rapport textarea { width:100%; font:inherit; padding:10px 12px; border:1px solid var(--bord); border-radius:10px; background:var(--fond); color:inherit; resize:vertical; }
/* Inscription, rôles personnalisés, cartes */
#form-inscription { display:grid; gap:10px; } #form-inscription[hidden], #insc-lien[hidden] { display:none; }
#form-role { margin-top:14px; border-top:1px solid var(--bord); padding-top:10px; } #role-droits { max-height:260px; overflow:auto; }
#fen-roles { max-width:900px; width:94vw; }

/* Mobile, tablette et application installée */
.camera-zone { position:relative; background:#000; border-radius:12px; overflow:hidden; aspect-ratio:3/4; max-height:60vh; margin:8px auto; display:flex; justify-content:center; }
.camera-zone video, .camera-zone img { height:100%; width:100%; object-fit:cover; } #camera-video { transform:scaleX(-1); } .camera-zone [hidden] { display:none; }
html { -webkit-text-size-adjust:100%; } body { padding-bottom:env(safe-area-inset-bottom); }
header { padding-top:calc(8px + env(safe-area-inset-top)); padding-left:max(12px, env(safe-area-inset-left)); padding-right:max(12px, env(safe-area-inset-right)); }
button, .tableau a { touch-action:manipulation; } * { -webkit-tap-highlight-color:transparent; }
.tableau { overflow-x:auto; -webkit-overflow-scrolling:touch; }
@media (max-width:900px) { #nav { display:flex; overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; -webkit-overflow-scrolling:touch; } #nav::-webkit-scrollbar { display:none; } #nav button { flex:0 0 auto; white-space:nowrap; } }
@media (max-width:760px), (pointer:coarse) {
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size:16px; min-height:44px; }
  button { min-height:44px; } button.petit { min-height:38px; padding-left:12px; padding-right:12px; }
  dialog.fenetre { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border-radius:0; }
  .actions { flex-wrap:wrap; } .actions > button { flex:1 1 auto; }
  main { padding-left:max(12px, env(safe-area-inset-left)); padding-right:max(12px, env(safe-area-inset-right)); }
}
@media (display-mode: standalone) { .pied { display:none; } }
/* Téléphone : en-tête compact (marque + déconnexion, puis organisation, puis boutons), défilement normal */
@media (max-width:760px) {
  header { position:static; grid-template-columns:1fr auto auto; grid-template-areas:'marque marque sortie' 'org org org' 'appareils mdp mdp' 'nav nav nav'; gap:6px 8px; }
  header h1 { font-size:1.15rem; } #orgnom { font-size:.85rem; line-height:1.3; overflow-wrap:anywhere; }
  #btn-appareils, #btn-mdp, #deconnexion { min-height:38px; padding:6px 12px; font-size:.82rem; }
}

/* Logo de l'application */
.logo-app { width:72px; height:72px; border-radius:18px; box-shadow:0 10px 30px rgba(0,0,0,.35); background:#fff; object-fit:cover; }
.logo-app.petit-logo { width:48px; height:48px; border-radius:12px; }
.logo-entete { width:32px; height:32px; border-radius:8px; vertical-align:middle; margin-right:8px; background:#fff; }

/* Invitations : partage, affiche, page publique */
.partage-qr { display:grid; place-items:center; margin:10px 0; } .qr-grand { width:220px; height:220px; } .qr-affiche { width:280px; height:280px; }
.aff-qr { display:grid; place-items:center; margin:14px 0; } .aff-chemin { text-align:center; font-weight:600; } .aff-etape { text-align:center; margin:8px 0 2px; } .aff-lien { text-align:center; font-weight:700; word-break:break-all; } .aff-code { text-align:center; font-size:1.6rem; font-weight:800; letter-spacing:.08em; } .aff-valid { text-align:center; color:var(--doux); }
a.bouton { display:inline-block; padding:10px 16px; border-radius:10px; border:1px solid var(--bord); text-decoration:none; color:inherit; font-weight:600; }
body[data-vue="vue-inscription-publique"] header { display:none; } body[data-vue="vue-inscription-publique"] .pied { display:none; }
.pub-carte { max-width:520px; margin:24px auto; padding:24px; background:var(--carte); border:1px solid var(--bord); border-radius:18px; box-shadow:0 18px 50px rgba(15,42,82,.18); }
.pub-marque { display:flex; align-items:center; gap:12px; font-weight:800; font-size:1.1rem; margin-bottom:14px; } .pub-chemin { color:var(--doux); font-weight:600; } .pub-note { background:var(--accentfond); border-radius:10px; padding:10px 12px; }

/* Formulaire public d'inscription (E2) */
body[data-vue="vue-inscription-publique"] .pub-carte { max-width:680px; }
.pub-bloc { border:1px solid var(--bord); border-radius:14px; padding:14px 16px; margin:14px 0; } .pub-bloc h3 { margin:0 0 6px; }
.pub-etapes { list-style:none; display:flex; gap:4px; padding:0; margin:0 0 8px; } .pub-etapes li { flex:1; height:6px; border-radius:3px; background:var(--bord); font-size:0; } .pub-etapes li.faite { background:#2f9e6b; } .pub-etapes li.actuelle { background:var(--accent, #1d6fe8); }
.pub-grille { display:grid; grid-template-columns:1fr; gap:10px; } @media (min-width:640px) { .pub-grille { grid-template-columns:1fr 1fr; } .pub-grille .pub-tuteur.aide, .pub-grille label.case { grid-column:1 / -1; } }
.pub-form label, .pub-bloc label { display:block; font-weight:600; } .pub-form label.case, .pub-carte label.case { display:flex; gap:10px; align-items:flex-start; font-weight:500; } .pub-form label.case input { margin-top:4px; }
.pub-carte input, .pub-carte select, .pub-carte textarea { width:100%; font-size:16px; }   /* 16 px : évite le zoom automatique sur iPhone */
.pub-carte input[type=checkbox] { width:auto; }
.pub-piege { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.pub-code { background:var(--accentfond); border:2px dashed var(--accent, #1d6fe8); border-radius:14px; padding:14px; margin:14px 0; text-align:center; } .pub-code-etiq { color:var(--doux); font-size:.85rem; margin-top:6px; } .pub-code-val { font-size:1.5rem; font-weight:800; letter-spacing:.08em; word-break:break-all; user-select:all; }
.pub-recap { border:1px solid var(--bord); border-radius:12px; padding:10px 14px; margin:10px 0; } .pub-recap-tete { display:flex; justify-content:space-between; align-items:center; gap:8px; } .pub-recap-tete h3 { margin:0; }
.pub-recap dl { display:grid; grid-template-columns:minmax(120px,40%) 1fr; gap:4px 10px; margin:8px 0 0; } .pub-recap dt { color:var(--doux); } .pub-recap dd { margin:0; word-break:break-word; }
.pub-carte dl { display:grid; grid-template-columns:minmax(120px,40%) 1fr; gap:4px 10px; } .pub-carte dt { color:var(--doux); } .pub-carte dd { margin:0; }
label.fichier { display:inline-block; border:1px dashed var(--accent, #1d6fe8); border-radius:10px; padding:10px 14px; margin:4px 8px 4px 0; cursor:pointer; font-weight:600; } label.fichier input { position:absolute; width:1px; height:1px; opacity:0; }
.pub-pieces { list-style:none; padding:0; } .pub-pieces li { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--bord); }
button.petit { padding:6px 10px; font-size:.85rem; } button.danger { color:#b3261e; }
.pub-ok { text-align:center; } .pub-ok-coche { width:64px; height:64px; margin:0 auto 8px; border-radius:50%; background:#2f9e6b; color:#fff; font-size:2.2rem; line-height:64px; }
.pub-statut { border-radius:12px; padding:12px 14px; background:var(--accentfond); display:flex; flex-direction:column; gap:2px; margin:10px 0; } .pub-statut-etiq { color:var(--doux); font-size:.85rem; } .pub-statut strong { font-size:1.2rem; }
.pub-statut-validee { background:#e3f5ec; } .pub-statut-rejetee, .pub-statut-annulee { background:#fbe9e7; } .pub-statut-a_corriger { background:#fff4d6; }
.pub-histo { padding-left:18px; }

.onglets { display:flex; gap:6px; margin:10px 0 14px; border-bottom:2px solid #d9e1ec; } button.onglet { background:transparent; border:0; border-radius:10px 10px 0 0; padding:10px 18px; font-weight:600; color:var(--doux); cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-2px; box-shadow:none; width:auto; } button.onglet:hover { background:#eef3fb; } button.onglet.actif { color:var(--accent); border-bottom-color:var(--accent); background:#eef3fb; }
.actions button.danger { background:#b3261e; color:#fff; }
.bloc-fiche { margin:14px 0; } .bloc-fiche h4 { margin:0 0 6px; } .ligne-fiche { margin:3px 0; } .entete-fiche { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.ligne-piece { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:6px 0; } .vignette-piece { width:84px; height:84px; object-fit:cover; border-radius:8px; border:1px solid var(--bordure, #d9e1ec); }

/* Identité des entités, liste de présence (A4 paysage, style officiel) */
.f-entite { font-weight:700; }
.presence-doc { max-width:1123px !important; font:12px/1.35 Arial, sans-serif; color:#111; }
.pr-entete { display:grid; grid-template-columns:130px 1fr 240px; gap:12px; align-items:center; padding-bottom:8px; border-bottom:3px solid #1f4e99; }
.pr-logo img { max-width:110px; max-height:90px; object-fit:contain; } .pr-centre { text-align:center; display:grid; gap:2px; }
.pr-pays { color:#9b1c1c; font-style:italic; font-size:14px; } .pr-type { font-weight:700; font-size:13px; text-transform:uppercase; } .pr-org { color:#1f4e99; font-weight:700; font-size:18px; text-transform:uppercase; }
.pr-entite { color:#c00000; font-weight:800; font-size:15px; text-transform:uppercase; } .pr-devise { color:#1f4e99; font-weight:700; font-size:10.5px; text-transform:uppercase; letter-spacing:.03em; }
.pr-siege { font-size:11px; line-height:1.45; } .pr-vide { color:#9b1c1c; font-style:italic; }
.pr-bandeau { width:340px; margin:12px auto; background:#1f4e99; color:#fff; text-align:center; font-weight:800; font-size:20px; padding:8px 0; border-radius:2px; letter-spacing:.04em; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.pr-champs { display:grid; grid-template-columns:2fr 1.5fr 1fr; gap:7px 22px; margin-bottom:10px; } .pr-champ { display:flex; gap:6px; align-items:baseline; } .pr-champ.large { grid-column:auto; }
.pr-trait { flex:1; border-bottom:1px dotted #333; min-height:14px; } .pr-trait.court { display:inline-block; width:70px; } .pr-val { flex:1; border-bottom:1px dotted #333; font-weight:600; } .pr-case { margin-right:14px; white-space:nowrap; }
.pr-champs .pr-champ:nth-last-child(3) { grid-column:1 / -1; flex-wrap:wrap; }
table.presence { width:100%; border-collapse:collapse; font-size:12px; table-layout:fixed; }
table.presence th { background:#1f4e99; color:#fff; padding:7px 5px; font-size:11px; letter-spacing:.03em; border:1px solid #1f4e99; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
table.presence td { border:1px solid #444; padding:3px 6px; height:9.2mm; overflow:hidden; } table.presence tbody tr:nth-child(even) td { background:#eef3fb; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
table.presence th:nth-child(1), table.presence td:nth-child(1) { width:36px; text-align:center; font-weight:700; } table.presence th:nth-child(2) { width:88px; } table.presence th:nth-child(4) { width:46px; } table.presence td:nth-child(4) { text-align:center; }
table.presence th:nth-child(3) { width:22%; } table.presence th:nth-child(8) { width:60px; } table.presence th:nth-child(9) { width:15%; }
table.presence thead { display:table-header-group; } table.presence th { position:static !important; } table.presence tr { break-inside:avoid; }
.pr-fin { display:grid; grid-template-columns:200px 1fr; gap:14px 24px; margin-top:14px; break-inside:avoid; } .pr-recap { border:1px solid #1f4e99; padding:8px 10px; display:grid; gap:4px; } .pr-recap b, .pr-obs b { color:#1f4e99; }
.pr-obs { display:grid; gap:2px; align-content:start; } .pr-ligne { border-bottom:1px dotted #333; height:20px; }
.pr-sigs { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:18px 40px; justify-content:space-around; align-items:flex-end; margin-top:6px; }
.pr-sg { text-align:center; min-width:200px; } .pr-sg-fonction { font-weight:700; } .pr-sg-zone { height:20mm; display:grid; place-items:center; } .pr-sg-zone img { max-height:18mm; } .pr-sg-nom { border-top:1px solid #333; padding-top:3px; }
.presence-cachet img.f-cachet { max-height:32mm; max-width:32mm; }
.pr-pied { margin-top:12px; padding-top:4px; border-top:1px solid #1f4e99; color:#555; font-size:10px; }
@page presence { size:A4 landscape; margin:9mm 10mm 13mm; @bottom-right { content:"Page " counter(page) " / " counter(pages); font:10px Arial; color:#555; } }
@media print { .presence-doc { page:presence; zoom:1 !important; } body:has(#vue-presence:not([hidden])) .feuille { box-shadow:none; } }
@media (max-width:760px) { .pr-entete { grid-template-columns:1fr; } .pr-champs { grid-template-columns:1fr; } .presence-doc { overflow-x:auto; } }

.alerte-email { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; justify-content:space-between; margin:8px 0; }

/* Mode hors ligne */
.badge-attente { background:#fef3c7; color:#92400e; border-radius:999px; padding:4px 12px; font-size:.8rem; font-weight:600; text-decoration:none; margin-right:8px; }
.lien-bouton-sec { display:inline-block; border:1px solid var(--accent); color:var(--accent); border-radius:8px; padding:9px 14px; text-decoration:none; font-weight:600; }
