/* TUUDA Connexion · charte : bleu dominant, rouge en accent */
.tcnx-login, .tcnx-bar, .tcnx-space { --b: #0059CC; --n: #032D6B; --r: #F20104; --pe: #EEF2F7; --st: #5B6670; font-family: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif; }
.tcnx-login { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
.tcnx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--r); color: #fff !important; font-weight: 800; font-size: 14px; text-decoration: none !important; border: 0; line-height: 1.2; box-shadow: 0 6px 16px rgba(242,1,4,.2); }
.tcnx-btn img { width: 22px; height: 22px; border-radius: 50%; background: #fff; padding: 2px; }
.tcnx-btn:hover { filter: brightness(.95); }
.tcnx-btn--ghost { background: #fff; color: var(--b) !important; border: 1.5px solid var(--b); box-shadow: none; }
.tcnx-note { margin: 0; font-size: 12px; color: var(--st); text-align: center; }
.tcnx-or { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--st); }
.tcnx-or::before, .tcnx-or::after { content: ""; flex: 1; height: 1px; background: #DDE5F0; }
.login .tcnx-login { margin-bottom: 16px; }

.tcnx-bar { position: fixed; left: 16px; bottom: 16px; z-index: 99990; }
.tcnx-bar__btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--n); font: 700 11px/1 "Open Sans", Arial, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(3,45,107,.22); text-transform: none; letter-spacing: 0; }
.tcnx-bar__btn[aria-expanded="true"], .tcnx-bar__btn:hover { color: var(--r); }
.tcnx-bar__btn .tcnx-ico { width: 26px; height: 26px; }
.tcnx-bar__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--n); color: #fff; font-size: 13px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--r); }
.tcnx-menu-profil a { display: inline-flex !important; align-items: center; gap: 6px; }
.tcnx-menu-profil .tcnx-ico { width: 20px; height: 20px; flex: none; }
.tcnx-bar__btn:focus-visible { outline: 3px solid var(--r); outline-offset: 2px; }
.tcnx-panel { position: absolute; left: 0; bottom: 74px; width: min(320px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(3,45,107,.25); display: flex; flex-direction: column; gap: 10px; }
.tcnx-panel[hidden] { display: none; }
.tcnx-panel__title { margin: 0; font: 800 12px "Open Sans", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--r); }
.tcnx-panel__me { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--pe); color: var(--n) !important; text-decoration: none !important; }
.tcnx-panel__me small { color: var(--st); }
.tcnx-panel__sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tcnx-panel__sites a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; text-decoration: none !important; color: var(--n) !important; font-size: 14px; }
.tcnx-panel__sites a:hover { background: var(--pe); }
.tcnx-panel__sites a[aria-current] { background: #EAF3FF; }
.tcnx-panel__sites small { color: var(--st); font-size: 12px; }
.tcnx-panel__foot { margin: 4px 0 0; font-size: 12.5px; color: var(--st); }
.tcnx-panel__foot a { color: var(--b); }

.tcnx-space { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.tcnx-space__head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #032D6B, #0B4AA8); }
.tcnx-space__head strong { display: block; font-size: 20px; }
.tcnx-space__head small { color: #AECBF0; }
.tcnx-space__avatar { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--n); font-weight: 800; font-size: 22px; box-shadow: 0 0 0 4px rgba(242,1,4,.9); }
.tcnx-space__block { padding: 18px 20px; border-radius: 18px; border: 1px solid #DDE5F0; background: #fff; }
.tcnx-space__block h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--r); }
.tcnx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tcnx-card { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 14px; border: 1px solid #DDE5F0; text-decoration: none !important; color: var(--n) !important; }
.tcnx-card:hover { border-color: var(--b); }
.tcnx-card small { color: var(--st); font-size: 12.5px; }
.tcnx-space__foot { font-size: 13px; color: var(--st); text-align: center; }
.tcnx-space__foot a { color: var(--b); }
.tcnx-space--out { padding: 22px; border-radius: 18px; background: var(--pe); }
@media (max-width: 600px) { .tcnx-bar { left: 10px; bottom: 10px; } }
@media print { .tcnx-bar { display: none; } }
