/* cattinsamardOS 2.8 : flèche retour, cloche, mots de passe, inscription, comptes et sécurité, API pro, PDF, mentions. */

/* Flèche « Retour » et cloche dans la barre du haut */
.retour28{width:38px;height:38px;flex:0 0 auto;margin-right:2px}
.retour28[hidden]{display:none!important}
.cloche28-zone{position:relative;display:inline-flex;flex:0 0 auto}
.cloche28{width:38px;height:38px}
.cloche28-n{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#E5484D;color:#fff;font-size:11px;font-weight:700;line-height:19px;text-align:center;box-shadow:0 0 0 2px var(--bg,#050811)}
.cloche28-n[hidden]{display:none}
.cloche28-panneau{position:absolute;right:0;top:calc(100% + 8px);width:min(380px,calc(100vw - 24px));max-height:min(70vh,520px);overflow:auto;z-index:60;
  background:var(--sunk,#070B16);border:1px solid var(--line-2);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.45);padding:10px}
.cloche28-panneau[hidden]{display:none}
.cloche28-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 6px 8px;border-bottom:1px solid var(--line)}
.cloche28-liste{list-style:none;margin:6px 0;padding:0;display:grid;gap:2px}
.cloche28-liste li{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:8px 6px;border-radius:10px}
.cloche28-liste li.non-lu{background:rgba(32,164,243,.08)}
.cloche28-type{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px;background:rgba(255,255,255,.06);border:1px solid var(--line-2)}
.cloche28-type.t-mention{color:#6FCBFF}.cloche28-type.t-tache{color:#46C37B}.cloche28-type.t-invitation{color:#FFB300}.cloche28-type.t-securite{color:#E5484D}
.cloche28-item{all:unset;cursor:pointer;display:grid;gap:2px;min-width:0;line-height:1.35;overflow-wrap:anywhere}
.cloche28-item:focus-visible{outline:2px solid var(--focus,#6FCBFF);outline-offset:3px;border-radius:6px}
.cloche28-vide{padding:14px 8px}
.cloche28-pied{display:block;padding:6px;text-align:center}
.iconbtn.petit{width:28px;height:28px;font-size:16px}
.lien-btn{all:unset;cursor:pointer;color:var(--link);font-size:13px}
.lien-btn:focus-visible{outline:2px solid var(--focus,#6FCBFF);outline-offset:2px}
@media (max-width:420px){.retour28,.cloche28{width:32px;height:32px}.retour28 svg,.cloche28 svg{width:18px;height:18px}}

/* Mots de passe : l'œil */
.mdp28{position:relative;display:block}
.mdp28 input{padding-right:46px;width:100%}
.mdp28-oeil{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.mdp28-oeil:hover{color:var(--ink);background:rgba(255,255,255,.06)}
.mdp28-oeil:focus-visible{outline:2px solid var(--focus,#6FCBFF)}
.regles28{list-style:none;margin:-4px 0 4px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:4px 14px;font-size:13px;color:var(--muted)}
.regles28 li{display:flex;gap:6px;align-items:center}
.regles28 li .ico{flex:0 0 auto;opacity:.6}
.regles28 li.ok{color:#46C37B}
.regles28 li.ok .ico{opacity:1}

/* Inscription : vérification humaine, champ piège */
.piege28{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.humain28-etat{display:inline-flex;gap:8px;align-items:center;font-size:13px;color:var(--muted)}
.humain28-etat.ok{color:#46C37B}

/* Comptes et sécurité */
.sous28{margin-top:2px}
.avert28{color:#FFB300}
.pill.avert28{border-color:rgba(255,179,0,.5)}
.pill.ok28{color:#46C37B;border-color:rgba(70,195,123,.5)}
.ips28{list-style:none;margin:6px 0;padding:0;display:grid;gap:10px}
.ips28 li{padding:10px 12px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}
.btn-danger{border-color:rgba(229,72,77,.6)}

/* API pro */
.api28-liste{columns:2 260px;margin:8px 0 0;padding-left:18px;font-size:13px}
.code28{white-space:pre;overflow-x:auto;padding:12px 14px;border-radius:10px;background:var(--sunk,#070B16);border:1px solid var(--line);font-size:12.5px;line-height:1.5}

/* Newsletter : écrits en PDF */
.pdfs28{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.pdf28{display:flex;flex-direction:column;gap:10px;min-width:0}
.pdf28-tete{display:flex;gap:12px;align-items:flex-start;min-width:0}
.pdf28-tete h3{margin:0 0 2px;font-size:16px;overflow-wrap:anywhere}
.pdf28-ico{flex:0 0 auto;width:44px;height:52px;border-radius:8px;display:grid;place-items:center;background:rgba(229,72,77,.12);color:#FF7A7F;border:1px solid rgba(229,72,77,.3)}
.pdf28 .gap{margin-top:auto}

/* Mentions @ */
.mentions28{position:absolute;z-index:80;transform:translateY(-100%);min-width:240px;max-width:320px;background:var(--sunk,#070B16);border:1px solid var(--line-2);border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.45);padding:5px;display:grid;gap:2px}
.mentions28[hidden]{display:none}
.mentions28 button{all:unset;cursor:pointer;padding:8px 10px;border-radius:8px;display:flex;gap:8px;align-items:baseline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mentions28 button.actif,.mentions28 button:hover{background:rgba(32,164,243,.14)}
.mention28{color:#6FCBFF;font-weight:600}
.esp-rec{white-space:nowrap}
.esp-rec-choix{max-width:280px}

@media (prefers-reduced-motion:reduce){.cloche28-panneau,.mentions28{transition:none}}

/* Téléphone étroit et compte connecté : la flèche et la cloche prennent la place du nom écrit (le logo reste). */
@media (max-width:440px){.topbar-in.site:has(#cloche28) .brand > span{display:none}.topbar-in.site:has(#cloche28) .brand-logo{display:block!important;width:28px;height:28px}}
@media (max-width:340px){.topbar-in.site:has(#cloche28) .credits-chip{display:none}}
