/* "Espace élève" header button — cyan square (site primary gradient), graduation cap — same on every page (homepage + inner pages).
   .icon = header version (icon only, 40px like the other square buttons, tooltip on hover)
   .full = mobile-menu version (icon + two lines of text)
   [data-initial] = student logged in → small initial badge                                  */
.vc-acct-pill{--acct-bg:var(--gradient-primary);--acct-fg:hsl(var(--primary-foreground));--acct-bd:transparent;--acct-sh:0 6px 16px -8px hsl(var(--primary) / .8);
  position:relative;display:inline-flex;align-items:center;gap:10px;box-sizing:border-box;height:40px;padding-inline:4px 16px;margin:0;
  border:1px solid var(--acct-bd);border-radius:10px;background:var(--acct-bg);color:hsl(var(--primary-foreground));font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;
  box-shadow:var(--acct-sh);transition:transform .2s ease,box-shadow .2s ease,filter .2s ease,border-color .2s ease}
.vc-acct-pill .av{width:32px;height:32px;flex:none;color:var(--acct-fg);display:inline-flex;align-items:center;justify-content:center;transition:transform .3s ease}
.vc-acct-pill .av svg{width:20px;height:20px}
.vc-acct-pill .tx{display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.1}
.vc-acct-pill .tx small{font-size:11px;font-weight:500;opacity:.85}
.vc-acct-pill .tx b{font-size:14px;font-weight:700}
.vc-acct-pill:hover{transform:translateY(-1px);filter:brightness(1.1)}
.vc-acct-pill:hover .av{transform:rotate(-8deg) scale(1.06)}
.vc-acct-pill:focus-visible{outline:2px solid #22d3ee;outline-offset:3px}

/* dark mode: same cyan as the site primary buttons (dark cap), soft glow */
.dark .vc-acct-pill{--acct-sh:0 0 20px -4px hsl(var(--primary) / .55)}

/* header: icon only */
.vc-acct-pill.icon{width:40px;padding:0;justify-content:center}
.vc-acct-pill.icon .tx{display:none}
.vc-acct-pill.icon .av{width:100%;height:100%}
.vc-acct-pill.icon::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);inset-inline-end:0;padding:5px 9px;border-radius:7px;
  background:#0f2a52;color:#fff;font:600 12px/1.2 Inter,system-ui,sans-serif;white-space:nowrap;opacity:0;transform:translateY(-4px);
  pointer-events:none;transition:opacity .18s ease,transform .18s ease;z-index:60}
.dark .vc-acct-pill[data-initial]::before{background:#fff;color:hsl(220 30% 6%)}
.dark .vc-acct-pill.icon::after{background:hsl(220 18% 12%);color:hsl(180 95% 70%);border:1px solid hsl(180 95% 55% / .35)}
.vc-acct-pill.icon:hover::after,.vc-acct-pill.icon:focus-visible::after{opacity:1;transform:none}
.acct:has(.acct-menu.open) .vc-acct-pill::after{display:none}

/* logged in: initial badge */
.vc-acct-pill[data-initial]::before{content:attr(data-initial);position:absolute;top:-6px;inset-inline-end:-6px;width:18px;height:18px;border-radius:50%;
  background:#0f2a52;color:#fff;font:700 10px/18px Inter,system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px hsl(var(--background))}

/* mobile menu: full width with text */
.vc-acct-pill.full{width:100%;justify-content:center;height:52px}

/* Homepage hero: "Nos formations" button (replaces "Commander une pièce") — same glass style as the site, cyan accents */
.vc-hero-courses{gap:10px;position:relative;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.vc-hero-courses .vc-hc-ic{flex:none;width:30px;height:30px;padding:6px;border-radius:9px;color:hsl(var(--primary));background:hsl(var(--primary) / .12);transition:transform .3s ease,background .2s ease}
.vc-hero-courses .vc-hc-ar{flex:none;opacity:.55;transition:transform .25s ease,opacity .25s ease}
.vc-hero-courses:hover{transform:translateY(-1px);border-color:hsl(var(--primary) / .55)!important;box-shadow:0 10px 26px -12px hsl(var(--primary) / .55)}
.vc-hero-courses:hover .vc-hc-ic{transform:rotate(-8deg);background:hsl(var(--primary) / .2)}
.vc-hero-courses:hover .vc-hc-ar{opacity:1;transform:translateX(4px);color:hsl(var(--primary))}
html[dir=rtl] .vc-hero-courses .vc-hc-ar{transform:scaleX(-1)}
html[dir=rtl] .vc-hero-courses:hover .vc-hc-ar{transform:scaleX(-1) translateX(4px)}