/* En-tête commun (validation, paramètres, aide) : logo à gauche, prénom du validateur et icônes Accueil · Paramètres · Aide à droite */
:root { --marque-nuit:#0F172A; --marque-jaune:#FFC800; }
@media (prefers-color-scheme: dark) { :root { --marque-nuit:#fff; } }
.tete-page { display:flex; align-items:center; gap:8px; margin:4px 0 12px; }
.marque { display:inline-flex; align-items:center; gap:6px; color:var(--marque-nuit); text-decoration:none; font:800 28px/1 Inter, -apple-system, system-ui, sans-serif; letter-spacing:-.03em; }
.marque img { width:40px; height:40px; }
.marque b { color:var(--marque-jaune); font-weight:inherit; }
.tete-page .marque { flex:1; }
@media (max-width: 400px) { .tete-page .marque { font-size:24px; } .tete-page .marque img { width:34px; height:34px; } }
.qui { display:flex; align-items:center; gap:6px; font-weight:600; }
.qui .prenom { margin-right:4px; }
.qui a.ico-nav { width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--ligne); border-radius:8px; background:var(--carte); color:var(--texte); text-decoration:none; }
.qui a.ico-nav svg { width:20px; height:20px; }
.qui a.ico-nav:hover { border-color:var(--accent); }
.qui a.ico-nav[aria-current=page] { border-color:var(--accent); color:var(--accent); }
/* Cloche : simple icône à gauche du prénom, menu en dépliant avec une petite pointe ; 5 notifications visibles, les autres au défilement */
.cloche-zone { position:relative; }
.cloche { width:32px; height:36px; padding:0; display:grid; place-items:center; border:0; background:none; color:color-mix(in srgb, var(--doux) 45%, transparent); cursor:pointer; position:relative; }
.cloche svg { width:22px; height:22px; }
.cloche .pastille { position:absolute; top:1px; right:-3px; min-width:16px; height:16px; padding:0 4px; border-radius:99px; background:var(--marque-jaune); color:#0F172A; font:700 11px/16px Inter, -apple-system, system-ui, sans-serif; text-align:center; }
.cloche:hover, .cloche[aria-expanded=true] { color:var(--accent); }
.cloche-menu { position:absolute; right:-60px; top:calc(100% + 10px); z-index:20; width:min(360px, calc(100vw - 32px)); background:var(--carte); color:var(--texte); border:1px solid var(--ligne); border-radius:12px; box-shadow:0 8px 24px rgba(15,23,42,.18); font-weight:400; }
.cloche-menu::before { content:""; position:absolute; top:-6px; right:72px; width:10px; height:10px; background:var(--carte); border-left:1px solid var(--ligne); border-top:1px solid var(--ligne); transform:rotate(45deg); }
@media (max-width: 600px) { .cloche-menu { position:fixed; left:16px; right:16px; top:64px; width:auto; } .cloche-menu::before { display:none; } }
ul.notifs { list-style:none; margin:0; padding:0; }
.cloche-menu ul.notifs { max-height:340px; overflow-y:auto; }
.notifs li { border-top:1px solid var(--ligne); }
.notifs li:first-child { border-top:0; }
.notifs li.vide { padding:16px; color:var(--doux); font-size:14px; text-align:center; }
a.notif { display:flex; gap:10px; padding:12px 14px; color:inherit; text-decoration:none; font-size:14px; line-height:1.4; }
a.notif:hover { background:var(--fond); }
a.notif { align-items:center; }
a.notif .ch { flex:none; width:30px; height:30px; border-radius:8px; display:grid; place-items:center; background:#D1FAE5; color:#065F46; }
a.notif .ch svg { width:16px; height:16px; }
a.notif.n-erreur .ch, a.notif.n-refus .ch { background:#FEE2E2; color:#B91C1C; }
@media (prefers-color-scheme: dark) { a.notif .ch { background:#064E3B; color:#A7F3D0; } a.notif.n-erreur .ch, a.notif.n-refus .ch { background:#3B1D22; color:#FCA5A5; } }
a.notif .tx { flex:1; min-width:0; }
a.notif .r1 { display:flex; justify-content:space-between; gap:8px; align-items:baseline; }
a.notif b { min-width:0; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
a.notif time { flex:none; color:var(--doux); font-size:12px; }
a.notif .st { display:block; font-size:13px; font-weight:600; color:var(--ok); }
a.notif.n-erreur .st, a.notif.n-refus .st { color:var(--non); }
.voir-tout { display:block; padding:10px; text-align:center; border-top:1px solid var(--ligne); border-radius:0 0 12px 12px; font-size:14px; font-weight:600; color:var(--texte); text-decoration:none; }
.voir-tout:hover { background:var(--fond); }
@media (max-width: 400px) { .qui .prenom { display:none; } }

/* Écran de chargement : la page reste masquée jusqu'à window.pret() (évite de voir le contenu se construire) ; filet de sécurité à 6 s si le script échoue */
html:not(.pret) body > main { visibility:hidden; animation:revele 0s 6s forwards; }
html:not(.pret)::before { content:""; position:fixed; top:50%; left:50%; width:32px; height:32px; margin:-16px 0 0 -16px; box-sizing:border-box; border:3px solid var(--ligne, #ddd); border-top-color:var(--marque-jaune); border-radius:50%; animation:tourne .8s linear infinite, cache 0s 6s forwards; }
@keyframes tourne { to { transform:rotate(360deg); } }
@keyframes revele { to { visibility:visible; } }
@keyframes cache { to { visibility:hidden; } }
