/* Connexion CHEMIX : interface autonome, fond noir et formulaire essentiel. */
:root{--chemix-red:#ed1c24;--chemix-red-light:#ff646a;color-scheme:dark;--sans:"Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;font-family:var(--sans);color:#f5f5f7;background:#000;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:#000}a{color:inherit;text-decoration:none}button,input{font:inherit}a,button,input{-webkit-tap-highlight-color:transparent}:focus-visible{outline:2px solid var(--chemix-red-light);outline-offset:5px}[hidden]{display:none!important}
.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link:focus{position:absolute;top:16px;left:16px;z-index:10;background:#fff;color:#000;padding:12px 18px;border-radius:10px}
.login-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px clamp(24px,5vw,64px)}.login-brand{font-size:19px;font-weight:750;letter-spacing:-.06em;min-height:44px;display:inline-flex;align-items:center}.login-back{display:inline-flex;align-items:center;gap:9px;min-height:44px;font-size:12px;color:#a1a1a6}.login-back:hover{color:#fff}
.members{width:min(100% - 48px,380px);margin:auto;flex:1;display:flex;flex-direction:column;justify-content:center;padding:48px 0 64px}.members-intro{text-align:center}.members-symbol{width:64px;height:64px;border:1px solid #ed1c243d;border-radius:20px;display:grid;place-items:center;margin:0 auto 26px;color:var(--chemix-red);background:#ed1c2414}.members-intro h1{font-size:clamp(30px,5vw,38px);font-weight:600;letter-spacing:-.055em;line-height:1.15;margin:0}.members-intro>p{margin:12px 0 0;font-size:15px;color:#a1a1a6;line-height:1.5}
.members-card{margin-top:36px;min-width:0}.members-card form{margin:0}.members-card label{display:block;margin:0 0 10px 2px;font-size:13px;font-weight:500;color:#d2d2d7}.members-card input{width:100%;min-width:0;min-height:56px;padding:16px;border:1px solid #424245;border-radius:12px;background:#161617;color:#f5f5f7;font-size:16px;line-height:1.4;transition:border-color .15s}.members-card input::placeholder{color:#85858b}.members-card input:focus{border-color:var(--chemix-red)}.members-card input:autofill{box-shadow:0 0 0 1000px #161617 inset;-webkit-text-fill-color:#f5f5f7;caret-color:#fff}
.members-help{margin:12px 2px 0;font-size:12px;line-height:1.6;color:#a1a1a6}.members-card button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin-top:24px;padding:14px 18px;border:1px solid transparent;border-radius:12px;background:var(--chemix-red);color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:background .15s,opacity .15s}.members-card button:hover:not(:disabled){background:#cd1820}.members-card button:disabled{opacity:1;background:#96131a;color:#eee;cursor:not-allowed}.members-card .members-secondary{margin-top:10px;min-height:44px;background:transparent;border:0;color:#a1a1a6;font-size:13px;font-weight:400}.members-card .members-secondary:hover:not(:disabled){color:#fff;background:#161617}
.members-status{font-size:12px;line-height:1.65;color:#a1a1a6;text-align:center;overflow-wrap:anywhere;margin:18px 0 0}.members-status:empty{display:none}.members-support{text-align:center;margin:28px 0 0;color:#86868b;font-size:12px;line-height:1.8}.members-support a{color:var(--chemix-red-light);text-underline-offset:4px}.members-support a:hover{text-decoration:underline}.login-footer{text-align:center;font-size:11px;color:#86868b;padding:22px 24px 28px;line-height:1.6}
#code-destination{font-size:13px;line-height:1.6;color:#a1a1a6;overflow-wrap:anywhere;margin:0 0 22px}#member-code{font-variant-numeric:tabular-nums;text-align:center;font-size:24px;letter-spacing:.32em;padding-left:24px}#welcome-panel{text-align:center}#welcome-panel .eyebrow{font-size:12px;color:#a1a1a6}#member-greeting{font-size:30px;letter-spacing:-.045em;line-height:1.2;overflow-wrap:anywhere;margin:16px 0}#welcome-panel>p{font-size:14px;color:#a1a1a6;line-height:1.6}.members-home{margin-top:30px;text-align:left}.members-home>.eyebrow{display:block;margin-bottom:12px}.members-home a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #2c2c2e;font-size:14px}.members-home a:hover{color:#fff}
@media(max-width:480px){.login-header{padding:16px 24px}.members{padding-top:32px;padding-bottom:40px}.members-symbol{width:58px;height:58px;border-radius:18px;margin-bottom:24px}.members-card{margin-top:30px}.login-footer{padding-bottom:max(24px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Saisie du mot de passe personnel. */
.members-card .password-label{margin-top:24px}.password-field{position:relative}.password-field input{padding-right:94px}.members-card .password-field button{position:absolute;right:6px;top:6px;width:auto;min-height:44px;padding:8px 12px;margin:0;border:0;background:transparent;color:#b9b9c0;font-size:12px;font-weight:400}.members-card .password-field button:hover:not(:disabled){background:#252527;color:#fff}
/* Halo visible au-dessus du fond noir, derrière tous les contrôles. */
body{isolation:isolate;position:relative}
body::before,body::after{content:"";position:fixed;inset:-15%;z-index:0;pointer-events:none;will-change:transform,opacity}
body::before{background:radial-gradient(ellipse at 32% 43%,rgba(237,28,36,.38) 0%,rgba(170,10,23,.19) 24%,rgba(90,0,12,.07) 43%,transparent 65%);animation:chemix-glow-drift 13s ease-in-out -3s infinite alternate}
body::after{background:radial-gradient(ellipse at 72% 62%,rgba(210,12,30,.29) 0%,rgba(135,4,20,.13) 26%,transparent 57%);animation:chemix-glow-drift 17s ease-in-out -9s infinite alternate-reverse}
body>.login-header,body>.members,body>.login-footer{position:relative;z-index:1}.skip-link:focus{z-index:2}
@keyframes chemix-glow-drift{from{transform:translate3d(-5%,-4%,0) scale(.96);opacity:.8}to{transform:translate3d(6%,5%,0) scale(1.08);opacity:1}}
@media(prefers-reduced-motion:reduce){body::before,body::after{animation:none;will-change:auto;opacity:.9}}
/* Espace connecté — même Helvetica et rythme éditorial que le site CHEMIX. */
.members--signed-in{width:min(100% - 48px,1020px);padding-top:42px;justify-content:flex-start}.members--signed-in .members-intro{text-align:left}.members--signed-in .members-symbol,.members--signed-in .members-intro>p{display:none}.members--signed-in .members-intro h1{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#aaa;font-weight:500}.members--signed-in .members-card{margin-top:18px}.members--signed-in #welcome-panel{text-align:left}.members--signed-in #member-greeting{font-size:clamp(32px,5vw,52px);font-weight:600;margin:0 0 14px;letter-spacing:-.055em}.members--signed-in #sign-out{width:auto;padding:12px 20px;border:1px solid #38383b;margin-top:40px}.member-section-heading{margin-bottom:22px}.member-section-heading>.eyebrow{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.16em;color:#a1a1a6;margin-bottom:10px}.member-section-heading h2{font-size:clamp(24px,3vw,32px);font-weight:500;letter-spacing:-.045em;margin:0}.member-section-heading>p{font-size:14px;color:#aaa;margin:10px 0 0}.member-tools{margin-top:44px}.member-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.member-tool{padding:24px;border:1px solid #343437;border-radius:18px;background:rgba(15,15,17,.86)}.tool-number{font-size:11px;color:#aaa;font-variant-numeric:tabular-nums}.member-tool h3{font-size:21px;font-weight:500;letter-spacing:-.035em;margin:24px 0 10px}.member-tool p{font-size:13px;line-height:1.65;color:#a1a1a6;min-height:4.9em;margin:0}.members-card .member-tool button:disabled{font-size:11px;min-height:38px;padding:10px 0;margin-top:22px;justify-content:flex-start;background:transparent;color:#8c8c92;border:0;cursor:not-allowed;font-weight:400}.member-voting{margin-top:48px;padding-top:36px;border-top:1px solid #3b2528}.voting-notice{padding:22px;border:1px solid #38383b;border-radius:16px;color:#aaa;font-size:14px;line-height:1.7;background:#101012}.election-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0}.election-heading h3{font-size:17px;font-weight:500;letter-spacing:-.02em;margin:0}.election-state{display:inline-flex;align-items:center;gap:8px;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#bbb}.election-state.is-live::before{content:"";width:6px;height:6px;background:#ed1c24;border-radius:50%}.vote-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.vote-card{border:1px solid #373336;border-radius:18px;background:rgba(13,13,15,.94);padding:24px;min-width:0}.vote-card h4{font-size:20px;font-weight:500;letter-spacing:-.035em;line-height:1.25;margin:0 0 10px}.vote-candidates{font-size:13px;color:#a5a5ab;line-height:1.6;margin:0 0 20px}.vote-card fieldset{border:0;padding:0;margin:0}.vote-card legend{font-size:12px;color:#aaa;margin-bottom:12px}.vote-option{display:flex!important;align-items:center;gap:12px;padding:12px;border:1px solid #363639;border-radius:10px;margin:8px 0!important;font-size:14px!important;font-weight:400!important;cursor:pointer}.members-card .vote-option input{width:17px;height:17px;min-height:17px;padding:0;margin:0;accent-color:#ed1c24;flex-shrink:0}.vote-option:has(input:checked){border-color:#ed1c24;background:#ed1c240b}.vote-card .vote-hint{font-size:11px;color:#92929a;line-height:1.6;margin:12px 0}.vote-card .vote-submit{font-size:13px;min-height:44px;margin-top:14px}.vote-card .vote-confirmed{color:#d2d2d7;font-size:13px;padding:13px 0;border-top:1px solid #29292c}.vote-chart{margin:24px 0 0;padding-top:20px;border-top:1px solid #2f2f32}.vote-chart figcaption{display:flex;justify-content:space-between;gap:16px;align-items:baseline;font-size:11px;color:#aaa;margin-bottom:20px}.vote-chart-total{color:#eee;font-size:18px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.vote-chart-bars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(76px,1fr);gap:18px;overflow-x:auto;padding-bottom:8px}.vote-bar{min-width:0;text-align:center}.vote-bar-count{display:block;font-size:22px;letter-spacing:-.045em;font-weight:500;font-variant-numeric:tabular-nums;margin-bottom:10px}.vote-bar-track{height:112px;width:min(100%,66px);margin:auto;display:flex;align-items:flex-end;background:#1d1d20;border-radius:6px 6px 0 0;overflow:hidden}.vote-bar-fill{display:block;width:100%;background:#ed1c24;min-height:0;transition:height .35s ease;border-radius:6px 6px 0 0}.vote-bar-label{display:block;font-size:11px;line-height:1.5;color:#aaa;margin-top:12px;overflow-wrap:anywhere}.vote-bar-percent{display:block;font-size:10px;color:#85858e;margin-top:4px;font-variant-numeric:tabular-nums}.vote-chart-note{font-size:10px;color:#85858e;margin:14px 0 0;line-height:1.5}.voting-message{font-size:13px;line-height:1.6;color:#ddd;min-height:1.5em;margin:16px 0}.members-card .vote-refresh{width:auto;background:transparent;border:1px solid #444;font-size:12px;min-height:38px;margin:18px 0;padding:8px 16px}.vote-admin{border-top:1px solid #3c3033;margin-top:24px;padding-top:20px}.vote-admin h4{font-size:15px;margin:0 0 12px;font-weight:500}.vote-admin p{font-size:12px;color:#aaa;line-height:1.6}.vote-admin form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.vote-admin input{flex:1;min-width:130px;min-height:44px;font-size:13px;padding:12px}.members-card .vote-admin button{width:auto;min-height:44px;font-size:12px;margin:0;padding:12px 16px}.vote-status-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.members-card .vote-status-actions button{width:auto;min-height:42px;font-size:12px;margin:0}.vote-status-actions .vote-close{background:transparent;border:1px solid #777;color:#ddd}
@media(max-width:720px){.member-tools-grid{grid-template-columns:1fr}.member-tool p{min-height:0}.member-tool h3{margin-top:14px}.member-tool{padding:20px}.vote-grid{grid-template-columns:1fr}.vote-card{padding:20px}.members--signed-in{width:calc(100% - 36px);padding-top:25px}.election-heading{align-items:flex-start;flex-direction:column;gap:10px}}
.vote-admin input[type="checkbox"]{display:inline-block;width:16px;height:16px;min-height:16px;margin:0 8px 0 0;padding:0;vertical-align:middle;accent-color:#ed1c24}.vote-admin>label{font-size:12px;line-height:1.7;font-weight:400}.members--signed-in #welcome-panel .member-section-heading>.eyebrow{font-size:10px}
