/* What the real hub adds to the mockup's styles: the theme choice in the account menu,
   buttons styled as menu items, and forms (sign-in, first account, accounts page). */
[hidden]{display:none!important}
button.menu-item{border:0;background:transparent;font:inherit;font-size:14px;text-align:left;cursor:pointer;width:100%}
.menu-groupe{display:flex;flex-direction:column;padding:4px 0 6px;margin-bottom:6px;border-bottom:1px solid var(--trait)}
.menu-legende{padding:6px 18px 2px;font-size:12px;line-height:16px;color:var(--encre2)}
.menu-theme{min-height:36px!important}
.menu-theme[aria-checked="true"]{font-weight:500}
.menu-theme[aria-checked="true"]::after{content:"";margin-left:auto;width:8px;height:8px;border-radius:50%;background:var(--primaire)}
.direct .quoi strong{font-weight:500}
.vide-texte{font-size:14px;line-height:20px;color:var(--encre2)}

/* Forms */
.formulaire{display:flex;flex-direction:column;gap:14px;min-width:0}
.formulaire .message{margin:0;font-size:14px;line-height:20px;color:var(--alerte)}
.formulaire .message.ok{color:var(--encre2)}
.bouton[disabled]{opacity:.6;cursor:progress}
button.bouton{border:0;cursor:pointer;font-family:inherit}
.droite .message{margin:0;font-size:14px;line-height:20px;color:var(--alerte,#FF7BB0)}
.eco.jour .droite .message{color:var(--alerte,#B3175F)}

/* Accounts page: the sign-in fields (from connexion.css), on the Statistiques page layout */
.comptes{--champ:rgba(150,185,255,.42)}
.eco.jour .comptes{--champ:#747775}
.comptes .champ{position:relative}
.comptes .champ input{box-sizing:border-box;width:100%;height:56px;padding:22px 16px 6px;border-radius:4px;border:1px solid var(--champ);background:transparent;color:var(--encre);font:400 16px 'Google Sans','Segoe UI',system-ui,sans-serif;outline:none;transition:border-color .2s}
.comptes .champ input:hover{border-color:var(--encre)}
.comptes .champ input:focus{border-color:var(--primaire);box-shadow:inset 0 0 0 1px var(--primaire)}
.comptes .champ label{position:absolute;left:16px;top:17px;font-size:16px;line-height:22px;color:var(--encre2);pointer-events:none;transform-origin:left top;transition:transform .2s cubic-bezier(.2,0,0,1),color .2s}
.comptes .champ input:focus+label,.comptes .champ input:not(:placeholder-shown)+label{transform:translateY(-11px) scale(.75)}
.comptes .champ input:focus+label{color:var(--primaire)}
.comptes .voir{display:flex;align-items:center;gap:12px;min-height:44px;font-size:14px;color:var(--encre);cursor:pointer}
.comptes .voir input{width:18px;height:18px;margin:0;accent-color:var(--primaire);cursor:pointer}
.comptes .bloc{display:flex;flex-direction:column;gap:16px;padding:22px 24px;border-radius:24px;background:var(--bande);border:1px solid var(--trait);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);min-width:0}
.comptes .bloc h2{margin:0;font-size:20px;line-height:26px;font-weight:500}
.comptes .grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px;align-items:start}
.comptes .ligne{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:12px 0;border-top:1px solid var(--trait)}
.comptes .ligne .qui{flex:1 1 160px;display:flex;flex-direction:column;gap:2px;min-width:0}
.comptes .ligne .qui strong{font-size:16px;font-weight:500}
.comptes .ligne .qui span{font-size:13px;color:var(--encre2)}
.comptes .actions{display:flex;flex-wrap:wrap;gap:8px}
.comptes .bouton{align-self:flex-start;display:inline-flex;align-items:center;height:40px;padding:0 20px;border-radius:20px;background:var(--primaire);color:var(--fond);font-size:14px;font-weight:500}
.comptes .discret{height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--trait);background:transparent;color:var(--encre);font:500 13px 'Google Sans','Segoe UI',system-ui,sans-serif;cursor:pointer}
.comptes .discret:hover{background:var(--surface2)}
.comptes .discret.danger{color:var(--alerte)}
.comptes .message{margin:0;font-size:14px;line-height:20px;color:var(--alerte)}
.comptes .message.ok{color:var(--ok)}
.comptes button:focus-visible{outline:2px solid var(--primaire);outline-offset:2px}

/* Palette: swatches in the account menu, and the accents that follow the palette */
.nuancier{display:flex;flex-wrap:wrap;gap:10px;padding:8px 18px 6px}
.pastille{width:30px;height:30px;padding:0;border-radius:50%;border:2px solid transparent;cursor:pointer;box-shadow:0 0 0 1px var(--trait);transition:transform .15s cubic-bezier(.2,0,0,1)}
.pastille:hover{transform:scale(1.1)}
.pastille[aria-checked="true"]{border-color:var(--fond);box-shadow:0 0 0 2px var(--encre)}
.pastille:focus-visible{outline:2px solid var(--primaire);outline-offset:3px}
.nuancier-nom{color:var(--encre)}
.eco .trait{box-shadow:0 0 14px color-mix(in srgb,var(--lueur,#3FE0FF) 55%,transparent)}

/* Show-password eye inside a field */
.champ.avec-oeil input{padding-right:56px}
.champ .oeil{position:absolute;top:4px;right:4px;width:48px;height:48px;padding:0;border:0;border-radius:24px;background:transparent;color:var(--encre2);display:grid;place-items:center;cursor:pointer}
.champ .oeil:hover{color:var(--encre);background:color-mix(in srgb,var(--encre) 8%,transparent)}
.champ .oeil:focus-visible{outline:2px solid var(--primaire);outline-offset:-2px}
.champ .oeil svg{width:22px;height:22px}
.champ .oeil[aria-pressed="true"]{color:var(--primaire)}

/* The warp between the sign-in page and Accueil (js/portail.js) */
.portail-toile{position:absolute;inset:0;width:100%;height:100%;z-index:30;pointer-events:none}
.eco.entree .carte{transform:scale(1.14);opacity:0;filter:blur(10px);transition:transform .8s cubic-bezier(.55,0,.8,.2),opacity .5s cubic-bezier(.4,0,1,1) .12s,filter .6s cubic-bezier(.4,0,1,1)}
/* Accueil, reached through the warp: painted bright before any script, then opened. */
.portail{position:absolute;inset:0;z-index:30;pointer-events:none;display:none;background:radial-gradient(circle farthest-corner at 50% 50%,#fff 0%,var(--lueur) 18%,color-mix(in srgb,var(--lueur) 35%,var(--fond)) 55%,var(--fond) 100%)}
.arrivee .portail{display:block}
@keyframes eco-monte{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes eco-apparait{from{opacity:0}to{opacity:1}}
.arrivee>header{animation:eco-apparait .8s cubic-bezier(.2,0,0,1) .55s both}
.arrivee .panneau>*{animation:eco-monte .75s cubic-bezier(.2,0,0,1) both}
.arrivee .panneau>:nth-child(1){animation-delay:.5s}
.arrivee .panneau>:nth-child(2){animation-delay:.62s}
.arrivee .panneau>:nth-child(3){animation-delay:.74s}
.arrivee .panneau>:nth-child(4){animation-delay:.86s}
.arrivee .neurone .texte{animation:eco-apparait .9s cubic-bezier(.2,0,0,1) .7s both}
@media (prefers-reduced-motion:reduce){.arrivee>header,.arrivee .panneau>*,.arrivee .neurone .texte{animation:none}}

/* Background choice (tot.js sets --fond, --neb1, --neb2): Marine keeps each page's own */
.eco[data-fond]:not([data-fond="marine"]){background:radial-gradient(1200px 700px at 20% 10%,var(--neb1) 0%,transparent 70%),radial-gradient(900px 600px at 90% 90%,var(--neb2) 0%,transparent 70%),var(--fond)}
.pastille+.pastille{margin:0}

/* Background choices: preview tiles, three per row, named below */
.fonds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 10px;padding:8px 18px 6px}
.fond-choix{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:0;border:0;background:transparent;color:var(--encre2);font:400 12px/16px 'Google Sans','Segoe UI',system-ui,sans-serif;text-align:center;cursor:pointer}
.fond-choix .apercu{display:block;height:42px;border-radius:10px;box-shadow:0 0 0 1px var(--trait);transition:transform .15s cubic-bezier(.2,0,0,1),box-shadow .15s}
.fond-choix:hover .apercu{transform:scale(1.05)}
.fond-choix[aria-checked="true"]{color:var(--encre);font-weight:500}
.fond-choix[aria-checked="true"] .apercu{box-shadow:0 0 0 2px var(--fond),0 0 0 4px var(--encre)}
.fond-choix:focus-visible{outline:none}
.fond-choix:focus-visible .apercu{box-shadow:0 0 0 2px var(--fond),0 0 0 4px var(--primaire)}
/* The account menu scrolls on short screens instead of being cut off */
.menu-compte{max-height:calc(100vh - 84px);max-height:calc(100dvh - 84px);overflow-y:auto;overscroll-behavior:contain}

/* Apps started when needed (duo, HERMES): « arrêtée » is a state, not an outage */
.etat.arret{color:var(--encre2)}
.etat.arret .p{background:var(--encre2);box-shadow:none;opacity:.6}
.app.arret .vitaux{opacity:.6}
.case.arret{background:var(--encre2);opacity:.22}
/* Ten memories on a phone: one scrolling row instead of a wall of chips */
@media (max-width:819px){.lobes{flex-wrap:nowrap;overflow-x:auto;pointer-events:auto;scrollbar-width:none;padding-bottom:2px}.lobes::-webkit-scrollbar{display:none}.lobe{flex:none}}
/* Nine neurons on a short or narrow laptop screen: names only, like on a phone */
@media (min-width:820px) and (max-height:760px),(min-width:820px) and (max-width:1100px){.neurone .sous-titre{display:none}}

/* Accounts page: a Material-style switch (who sees the trading memory) */
.comptes .interrupteur{display:inline-flex;align-items:center;gap:10px;min-height:36px;padding:0 4px;font-size:13px;color:var(--encre);cursor:pointer}
.comptes .interrupteur input{position:absolute;opacity:0;width:1px;height:1px}
.comptes .piste{position:relative;flex:none;width:44px;height:24px;border-radius:12px;background:var(--surface2);box-shadow:inset 0 0 0 2px var(--trait);transition:background .2s}
.comptes .piste::after{content:"";position:absolute;top:4px;left:4px;width:16px;height:16px;border-radius:50%;background:var(--encre2);transition:transform .2s cubic-bezier(.2,0,0,1),background .2s}
.comptes .interrupteur input:checked+.piste{background:var(--primaire);box-shadow:none}
.comptes .interrupteur input:checked+.piste::after{transform:translateX(20px);background:var(--fond)}
.comptes .interrupteur input:focus-visible+.piste{outline:2px solid var(--primaire);outline-offset:2px}
.comptes .interrupteur input:disabled+.piste{opacity:.6}
@media (prefers-reduced-motion:reduce){.comptes .piste,.comptes .piste::after{transition:none}}
.champ.avec-oeil label{right:56px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Offline: the pill that says the figures come from this device's copy (commun.js) */
.hors-ligne{position:fixed;top:72px;left:50%;transform:translateX(-50%);z-index:50;margin:0;padding:6px 14px;border-radius:999px;font-size:13px;line-height:18px;white-space:nowrap;max-width:calc(100vw - 32px);overflow:hidden;text-overflow:ellipsis;background:rgba(255,181,71,.16);color:#FFD27A;box-shadow:inset 0 0 0 1px rgba(255,181,71,.45);backdrop-filter:blur(8px)}
.eco.jour .hors-ligne{background:#FEF7E0;color:#8A4B00;box-shadow:inset 0 0 0 1px #F6C26B}
/* Comptes: the hub's name per account */
.comptes .actions select{height:36px;padding:0 12px;border-radius:18px;border:1px solid var(--trait);background:var(--surface,transparent);color:var(--encre);font:500 13px 'Google Sans','Segoe UI',system-ui,sans-serif;cursor:pointer}
.comptes .actions select:focus-visible{outline:2px solid var(--primaire);outline-offset:2px}
/* Comptes: the person's own Gestionnaire d'études identifiant */
.comptes .lien-etudes{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--encre2)}
.comptes .lien-etudes input{box-sizing:border-box;width:9.5em;height:36px;padding:0 12px;border-radius:18px;border:1px solid var(--trait);background:var(--surface,transparent);color:var(--encre);font:500 13px 'Google Sans','Segoe UI',system-ui,sans-serif}
.comptes .lien-etudes input::placeholder{color:var(--encre2);opacity:.7}
.comptes .lien-etudes input:focus-visible{outline:2px solid var(--primaire);outline-offset:2px}
/* Pika's logo (tot.js): the app tile and « pika » with a glowing i-dot */
.logo-pika{flex:none;display:block}
.pika-i{position:relative}
.pika-i i{position:absolute;left:50%;top:.06em;width:.27em;height:.27em;margin-left:-.135em;border-radius:50%;background:var(--influx,#FF4D9D);box-shadow:0 0 6px var(--influx,#FF4D9D)}
.eco.jour .pika-i i{box-shadow:none}
