/* 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; } }
.login .tcnx-login-wrap { margin: 0 0 16px; padding: 20px 24px 4px; background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.login .tcnx-login-wrap .tcnx-btn { display: flex; }
.tcnx-wc-note { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: #EAF3FF; color: #032D6B; font-size: 14px; }
.tcnx-wc-note a { font-weight: 700; color: #0059CC; }
.woocommerce .tcnx-login { max-width: 420px; }


.tcnx-bar__avatar--pic { overflow: hidden; padding: 0; }
.tcnx-bar__avatar--pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.tcnx-panel__soft { opacity: .6; font-size: .92em; }

/* Profil en haut : à côté du menu sur téléphone, dans le menu sur ordinateur */
.tcnx-bar:not([data-state]) { visibility: hidden; }
.tcnx-bar[data-state="hidden"] { display: none !important; }
.tcnx-bar[data-state="docked"] { position: relative; left: auto; bottom: auto; z-index: 99990; display: inline-flex; align-items: center; align-self: center; margin: 0 6px; flex: none; }
.tcnx-bar[data-state="docked"] .tcnx-bar__btn { width: auto; min-width: 44px; height: 44px; padding: 2px 6px; border-radius: 12px; background: transparent; box-shadow: none; color: inherit; font-size: 10.5px; gap: 2px; }
.tcnx-bar[data-state="docked"] .tcnx-bar__btn .tcnx-ico { width: 24px; height: 24px; }
.tcnx-bar[data-state="docked"] .tcnx-bar__avatar { width: 24px; height: 24px; font-size: 11px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--r); }
.tcnx-bar[data-state="top"] { position: fixed; top: 10px; right: 10px; left: auto; bottom: auto; }
.tcnx-bar[data-state="top"] .tcnx-bar__btn { width: 52px; height: 52px; border-radius: 16px; font-size: 10px; }
.admin-bar .tcnx-bar[data-state="top"] { top: 56px; }
.tcnx-bar[data-state="docked"] .tcnx-panel, .tcnx-bar[data-state="top"] .tcnx-panel { position: fixed; left: auto; bottom: auto; top: 64px; right: 10px; z-index: 100000; max-height: calc(100vh - 90px); color: var(--n); text-align: left; }
.tcnx-nav-holder { display: flex; align-items: center; list-style: none; }
.tcnx-nav-holder::before, .tcnx-nav-holder::marker { content: none; }
@media (max-width: 600px) {
  .tcnx-bar[data-state="docked"] { margin: 0 1px; }
  .tcnx-bar[data-state="docked"] .tcnx-bar__btn { min-width: 34px; width: 34px; height: 40px; padding: 0; font-size: 9px; gap: 1px; }
  .tcnx-bar[data-state="docked"] .tcnx-bar__btn .tcnx-ico { width: 20px; height: 20px; }
  .tcnx-bar[data-state="docked"] .tcnx-bar__avatar { width: 20px; height: 20px; font-size: 10px; }
}
.tcnx-bar.tcnx-bar--icon .tcnx-bar__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tcnx-bar.tcnx-bar--icon .tcnx-bar__btn { min-width: 28px; width: 28px; }
@media (max-width: 699px) { .tcnx-bar[data-state] .tcnx-panel { left: 10px; right: 10px !important; width: auto; } }
/* TUUDA MEDIA (thème du site) : on resserre l'en-tête sur petit écran pour garder Profil et le menu visibles */
@media (max-width: 440px) {
  .header-main.container:has(.tcnx-bar[data-state="docked"]) { padding-left: 12px; padding-right: 10px; column-gap: 6px; }
  .header-main .header-actions:has(.tcnx-bar[data-state="docked"]) { column-gap: 4px; }
}
@media (max-width: 380px) {
  .header-main.container:has(.tcnx-bar[data-state="docked"]) .logo .brand { font-size: 13px; }
  .header-main.container:has(.tcnx-bar[data-state="docked"]) .logo img { width: 40px; height: auto; }
}
.tcnx-onpage { max-width: 460px; margin: 0 auto 22px; }
