/* E-JIMBERE · connexion commune aux 4 espaces (console, centre, partenaire, campus) · modèle LIDERCIEL · 22/11/2026 */
/* connexion (modele LIDERCIEL) */
.cx{display:grid;grid-template-columns:1fr 1fr;min-height:calc(100vh - 64px)}
.cx-g{position:relative;overflow:hidden;background:#0f1f4d;color:#fff;display:flex;flex-direction:column;justify-content:center;padding:60px 50px}
.cx-g>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35}
.cx-g:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(160deg,rgba(15,31,77,.55),rgba(15,31,77,.95))}
.cx-g:after{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:#f59e0b;z-index:2}
.cx-g-in{position:relative;z-index:2;max-width:480px}
.cx-g-kick{font-family:var(--script);font-size:30px;color:#fbbf24;margin:0}
.cx-g-h{font-size:40px;line-height:1.12;font-weight:900;margin:6px 0 26px}
.cx-g-h span{color:#fbbf24}
.cx-prom{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.cx-prom li{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1)}
.cx-prom i{flex:none;width:40px;height:40px;border-radius:12px;background:#f59e0b;display:grid;place-items:center}
.cx-prom i i{width:19px;height:19px}
.cx-prom b{display:block}
.cx-prom small{color:#c7d2fe;font-size:13.5px;line-height:1.5}
.cx-devise{position:absolute;left:50px;bottom:26px;z-index:2;font-size:12px;font-weight:900;letter-spacing:.22em;color:#c7d2fe;display:flex;gap:12px;align-items:center}
.cx-devise i{width:6px;height:6px;border-radius:50%;background:#f59e0b}
.cx-d{display:flex;flex-direction:column;background:#fff}
.cx-top{display:flex;justify-content:space-between;align-items:center;padding:22px 40px}
.cx-logo{height:48px}
.cx-site{display:inline-flex;gap:8px;align-items:center;font-weight:800;font-size:14px;color:#1e3a8a;border:1.5px solid #e3e8f1;border-radius:999px;padding:9px 16px;transition:all .2s}
.cx-site:hover{border-color:#1e3a8a}
.cx-site i{width:14px;height:14px}
.cx-centre{flex:1;display:flex;align-items:center;justify-content:center;padding:20px 40px}
.cx-form{width:100%;max-width:460px}
.cx-bande{display:flex;gap:10px;align-items:center;margin:0 0 22px;padding:12px 14px;border-radius:14px;background:#fff7e6;border:1px solid #fde3b0;color:#92400e;font-size:14px}
.cx-bande i{width:17px;height:17px;color:#d97706;flex:none}
.cx-bande b{color:#78350f}
.cx-kick{font-family:var(--script);font-size:26px;color:#d97706;margin:0}
.cx-h{font-size:30px;line-height:1.2;font-weight:900;color:#1e3a8a;margin:2px 0 8px}
.cx-sous{color:#64748b;margin:0 0 22px;line-height:1.6}
.cx-sous a{color:#d97706;font-weight:800}
.cx-f{margin-bottom:14px}
.cx-f label,.cx-lab{display:flex;justify-content:space-between;font-size:13.5px;font-weight:800;color:#1e293b;margin-bottom:6px}
.cx-f label small{font-weight:600;color:#94a3b8}
.cx-lab a{color:#d97706;font-size:13px}
.cx-in{position:relative}
.cx-in input{width:100%;box-sizing:border-box;font:inherit;font-size:15px;padding:13px 14px 13px 44px;border:1.5px solid #e3e8f1;border-radius:14px;background:#f8fafc;outline:0;transition:all .2s}
.cx-in input:focus{border-color:#1e3a8a;background:#fff;box-shadow:0 0 0 4px rgba(30,58,138,.08)}
.cx-in i{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#94a3b8}
.cx-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cx-check{display:flex;gap:10px;align-items:center;font-size:14px;color:#475569;margin:4px 0 18px}
.cx-check input{width:18px;height:18px;accent-color:#1e3a8a}
.cx-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:15px;border-radius:14px;background:#1e3a8a;color:#fff;font-weight:900;font-size:16px;box-shadow:0 16px 30px -14px rgba(30,58,138,.8);transition:all .2s}
.cx-btn:hover{background:#172c6b;color:#fff;transform:translateY(-1px)}
.cx-btn i{width:16px;height:16px}
.cx-autre{display:flex;gap:10px;align-items:center;margin:18px 0 0;padding:14px 16px;border-radius:14px;background:#f5f8ff;color:#64748b;font-size:14px}
.cx-autre i{width:16px;height:16px;color:#1e3a8a;flex:none}
.cx-autre a{color:#1e3a8a;font-weight:900}
.cx-pied{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:16px 40px;border-top:1px solid #eef2f7;font-size:13px;color:#94a3b8}
.cx-pied a{color:#1e3a8a;font-weight:800}
@media (max-width:1000px){.cx{grid-template-columns:1fr}.cx-g{display:none}}
@media (max-width:640px){.ch-opts,.ac-g,.dm-docs,.cx-2,.dm-ch,.dm-st,.mt-g{grid-template-columns:1fr}.cx-top,.cx-centre{padding-left:20px;padding-right:20px}}
/* connexion campus : modele LIDERCIEL */
.cx-anneau{position:absolute;right:-160px;bottom:-160px;width:520px;height:520px;border-radius:50%;border:1.5px solid rgba(245,158,11,.4);animation:cxT 40s linear infinite;z-index:1}
.cx-anneau:before{content:"";position:absolute;inset:46px;border-radius:50%;border:1px dashed rgba(245,158,11,.35)}
.cx-anneau:after{content:"";position:absolute;top:50%;left:-6px;width:12px;height:12px;border-radius:50%;background:#fbbf24;box-shadow:0 0 18px #fbbf24}
@keyframes cxT{to{transform:rotate(360deg)}}
.cx-in{position:relative}
.cx-voir{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;border-radius:12px;background:none;color:#94a3b8;cursor:pointer;display:grid;place-items:center}
.cx-voir:hover{background:#eef2f9;color:#1e3a8a}
.cx-voir i{width:18px;height:18px;position:static!important;transform:none!important}
.cx-pied{background:#fff!important;color:#94a3b8!important;border-top:1px solid #e5e7eb!important}
@media (min-width:1001px){.cx{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}.cx-form{max-width:560px}.cx-centre{padding:20px 56px}.cx-top{padding:22px 48px}}
/* --- adaptations campus (Font Awesome, etats du JS existant) --- */
:root{--script:"Caveat",cursive}
html,body{background:#fff!important;font-family:"Nunito",system-ui,sans-serif}
.cx{min-height:100vh}
.cx a{text-decoration:none}
.cx-g-kick,.cx-kick{font-family:"Caveat",cursive;font-weight:700}
.cx-prom i{color:#fff;font-size:17px}
.cx-in>i{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:15px;width:auto;height:auto}
.cx-in input{padding-left:44px!important}
.cx-voir i{position:static!important;transform:none!important;font-size:16px}
.cx-site i{font-size:13px}
.cx-bande i{color:#d97706}
.cx-autre i{color:#1e3a8a}
.cx-check{display:flex;align-items:center;gap:10px;cursor:pointer;user-select:none;margin:4px 0 18px;font-size:14px;color:#334155}
.cx-check .check-box{width:22px;height:22px;border-radius:7px;border:2px solid #cbd5e1;display:grid;place-items:center;background:#fff;transition:all .2s}
.cx-check .check-box i{font-size:11px;color:#fff;opacity:0}
.cx-check .check-box.on{background:#1e3a8a;border-color:#1e3a8a}.cx-check .check-box.on i{opacity:1}
.cx-btn{border:0;cursor:pointer;font:inherit;width:100%}
.cx-btn.loading{opacity:.75;pointer-events:none}.cx-btn.loading .btn-icon{animation:cxS 1s linear infinite}
@keyframes cxS{to{transform:rotate(360deg)}}
.form-error{display:none;gap:10px;align-items:center;margin:0 0 16px;padding:12px 14px;border-radius:14px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:14px;font-weight:700}
.form-error.show{display:flex}
.cx-pied{background:#fff;color:#94a3b8;border-top:1px solid #e5e7eb}
@media (min-width:1001px){.cx{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)}.cx-form{max-width:560px}.cx-centre{padding:20px 56px}.cx-top{padding:22px 48px}}
/* --- Panneau gauche v2 (22/11) : photo verticale visible, texte en bas, mention de financement --- */
.cx-g{justify-content:flex-end;padding:40px 48px 104px}
.cx-g>img{opacity:1;object-position:50% 12%}
.cx-g:before{background:linear-gradient(180deg,rgba(15,31,77,0) 0%,rgba(15,31,77,.08) 28%,rgba(15,31,77,.72) 50%,rgba(15,31,77,.95) 68%,#0f1f4d 100%)}
.cx-g-in{max-width:520px}
.cx-g-kick{font-size:28px;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.cx-g-h{font-size:34px;line-height:1.14;margin:2px 0 18px;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.cx-prom{gap:8px}
.cx-prom li{padding:11px 14px;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.cx-prom i{width:36px;height:36px;font-size:15px}
.cx-prom small{font-size:13px}
.cx-anneau{opacity:.55}
.cx-fin{position:absolute;left:48px;right:48px;bottom:24px;z-index:2;display:flex;align-items:center;gap:12px;padding-top:14px;border-top:1px solid rgba(255,255,255,.14);font-size:12.5px;line-height:1.45;color:#c7d2fe}
.cx-fin img{height:30px;width:auto;flex:none;border-radius:2px}
.cx-fin b{color:#fff;font-weight:800}
.cx-pied-fin{display:none}
/* 22/11 : les descriptions restent visibles sur les ecrans peu hauts ; on resserre plutot les espacements */
@media (max-height:820px) and (min-width:1001px){.cx-prom{gap:8px}.cx-prom li{padding:9px 14px;gap:12px}.cx-prom i{width:34px;height:34px;border-radius:10px}.cx-prom small{font-size:12px;line-height:1.4}.cx-g-h{font-size:30px;margin-bottom:16px}.cx-g{padding-bottom:84px}}
@media (max-height:600px) and (min-width:1001px){.cx-prom small{display:none}.cx-prom li{align-items:center}}
@media (max-width:1000px){.cx-pied-fin{display:block;flex-basis:100%}}
/* --- Animations (22/11) : anneaux qui tournent, petits éléments qui flottent, apparition des textes --- */
.cx-g>img{animation:cxZoom 14s ease-out both}
@keyframes cxZoom{from{transform:scale(1.08)}to{transform:scale(1)}}
.cx-anneau{opacity:1;z-index:2;right:-190px;bottom:-190px;width:560px;height:560px}
.cx-anneau2{position:absolute;z-index:2;top:-90px;right:-90px;width:260px;height:260px;border-radius:50%;border:1.5px dashed rgba(251,191,36,.45);animation:cxT 60s linear infinite reverse}
.cx-anneau2:after{content:"";position:absolute;bottom:22px;left:30px;width:9px;height:9px;border-radius:50%;background:#fbbf24;box-shadow:0 0 14px #fbbf24}
.cx-deco{position:absolute;z-index:2;pointer-events:none;opacity:.7;animation:cxFlot 9s ease-in-out infinite}
.cx-deco.dots{width:46px;height:30px;background-image:radial-gradient(#fbbf24 1.6px,transparent 1.8px);background-size:10px 10px}
.cx-deco.rond{width:16px;height:16px;border-radius:50%;border:2px solid #fbbf24}
.cx-deco.carre{width:11px;height:11px;border:2px solid rgba(255,255,255,.7);border-radius:3px;transform:rotate(20deg)}
.cx-deco.croix{width:14px;height:14px}
.cx-deco.croix:before,.cx-deco.croix:after{content:"";position:absolute;left:6px;top:0;width:2px;height:14px;background:#fbbf24;border-radius:2px}
.cx-deco.croix:after{transform:rotate(90deg)}
.cx-g .d1{top:16%;left:8%;animation-delay:-2s}.cx-g .d2{top:30%;right:12%;animation-delay:-5s}.cx-g .d3{top:8%;left:46%;animation-delay:-1s}
.cx-g .d4{top:12%;left:9%;animation-delay:-7s}.cx-g .d5{top:22%;left:70%;animation-delay:-3s}
@keyframes cxFlot{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-12px) rotate(12deg)}}
.cx-d{position:relative;overflow:hidden}
.cx-d:before,.cx-d:after{content:"";position:absolute;pointer-events:none;border-radius:50%}
.cx-d:before{width:320px;height:320px;right:-140px;top:-140px;border:1.5px dashed rgba(245,158,11,.35);animation:cxT 70s linear infinite}
.cx-d:after{width:180px;height:180px;left:-90px;bottom:60px;border:1.5px solid rgba(30,58,138,.12);animation:cxT 50s linear infinite reverse}
.cx-top,.cx-centre,.cx-pied{position:relative;z-index:1}
.cx-g-kick,.cx-g-h,.cx-prom li,.cx-fin,.cx-kick,.cx-h,.cx-sous,.cx-form .form-error.show,.cx-f,.cx-check,.cx-btn,.cx-autre,.cx-bande{animation:cxMonte .7s cubic-bezier(.2,.7,.2,1) both}
.cx-g-kick{animation-delay:.15s}.cx-g-h{animation-delay:.25s}.cx-prom li:nth-child(1){animation-delay:.4s}.cx-prom li:nth-child(2){animation-delay:.5s}.cx-prom li:nth-child(3){animation-delay:.6s}.cx-fin{animation-delay:.75s}
.cx-bande{animation-delay:.05s}.cx-kick{animation-delay:.1s}.cx-h{animation-delay:.18s}.cx-sous{animation-delay:.26s}.cx-f:nth-of-type(1){animation-delay:.34s}.cx-f:nth-of-type(2){animation-delay:.42s}.cx-check{animation-delay:.5s}.cx-btn{animation-delay:.58s}.cx-autre{animation-delay:.68s}
@keyframes cxMonte{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.cx *,.cx *:before,.cx *:after,.cx-d:before,.cx-d:after{animation:none!important}}
.cx-g-kick,.cx-g-h,.cx-prom li,.cx-fin,.cx-kick,.cx-h,.cx-sous,.cx-form .form-error.show,.cx-f,.cx-check,.cx-btn,.cx-autre,.cx-bande{animation-fill-mode:backwards}

/* CORRECTIF 22/11 : le bloc d erreur du code porte style="display:none" dans la page ; sans !important, la classe .show ajoutee par login.js ne l affichait jamais. */
.lb-2fa-error.show{display:block!important}
.lb-2fa-error{margin:10px 0 2px;padding:8px 12px;background:#FEF2F2;border:1px solid #FECACA;border-radius:8px;color:#EF4444;font-size:12.5px;font-weight:600;line-height:1.45;text-align:center}
.lb-2fa-error i{margin-right:6px}
/* 22/11 : formulaire plus large, marges laterales reduites (retour Marc) */
@media (min-width:1001px){.cx-form{max-width:680px}.cx-centre{padding:20px 40px}}

/* ======================================================================
   22/11 · Pastilles flottantes sur la photo (meme style que l'accueil :
   gelule blanche, icone ronde orange / bleu marine, titre gras).
   Elles remplacent la liste de cartes et laissent voir l'image.
   ====================================================================== */
.cx-g:before{background:linear-gradient(180deg,rgba(15,31,77,0) 0%,rgba(15,31,77,0) 30%,rgba(15,31,77,.45) 52%,rgba(15,31,77,.9) 72%,#0f1f4d 100%)}
.cx-pas{position:absolute;inset:0;z-index:2;pointer-events:none}
.cx-pa{position:absolute;display:flex;align-items:center;gap:11px;max-width:74%;padding:8px 20px 8px 8px;border-radius:999px;background:#fff;color:#1e3a8a;box-shadow:0 20px 40px -18px rgba(4,12,36,.75),0 2px 6px rgba(4,12,36,.12);animation:cxMonte .7s cubic-bezier(.2,.7,.2,1) backwards,cxPa 7s ease-in-out infinite}
.cx-pa i{flex:none;width:38px;height:38px;border-radius:50%;background:#f59e0b;color:#fff;display:grid;place-items:center;font-size:15px}
.cx-pa.p2 i{background:#1e3a8a}
.cx-pa b{display:block;font-size:14px;font-weight:800;line-height:1.2;white-space:nowrap}
.cx-pa small{display:block;margin-top:1px;font-size:11.5px;font-weight:600;color:#64748b;white-space:nowrap}
.cx-pa.p1{left:40px;top:39%;animation-delay:.25s,0s}
.cx-pa.p2{right:34px;top:49%;animation-delay:.4s,-2.3s}
.cx-pa.p3{left:72px;top:59%;animation-delay:.55s,-4.6s}
@keyframes cxPa{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.cx-g-in .cx-prom{display:none}
@media (max-height:820px) and (min-width:1001px){.cx-pa.p1{top:38%}.cx-pa.p2{top:48%}.cx-pa.p3{top:58%}.cx-pa{padding:6px 16px 6px 6px}.cx-pa i{width:32px;height:32px;font-size:13px}.cx-pa b{font-size:13px}.cx-pa small{font-size:11px}}
@media (max-height:640px) and (min-width:1001px){.cx-pas{display:none}}
@media (prefers-reduced-motion:reduce){.cx-pa{animation:none}}

/* ======================================================================
   22/11 · Motifs de fond du cote droit (formation et numerique), dans les
   marges autour du formulaire ; memes symboles et meme discretion que le site.
   ====================================================================== */
.cx-d>*:not(.cx-dd){position:relative;z-index:1}
.cx-dd{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.cx-ic{position:absolute;width:clamp(24px,2.2vw,44px);height:clamp(24px,2.2vw,44px);color:#1e3a8a;opacity:.14;animation:cxIcF 9s ease-in-out infinite}
.cx-ic.o{color:#f59e0b;opacity:.34}
.cx-ic.i1{left:4px;top:20%;transform:rotate(-12deg)}
.cx-ic.i2{right:4px;top:26%;transform:rotate(8deg);animation-delay:-2s}
.cx-ic.i3{left:4px;top:46%;transform:rotate(14deg);animation-delay:-4s}
.cx-ic.i4{right:4px;top:52%;transform:rotate(-20deg);animation-delay:-6s}
.cx-ic.i5{left:4px;top:72%;transform:rotate(10deg);animation-delay:-1s}
.cx-ic.i6{right:4px;top:78%;transform:rotate(-8deg);animation-delay:-3s}
.cx-ic.i7{right:26%;top:108px;transform:rotate(-24deg);width:30px;height:30px;animation-delay:-5s;display:none}
@keyframes cxIcF{0%,100%{translate:0 0}50%{translate:0 -8px}}
.cx-zk{position:absolute;display:block}
.cx-zk.points{left:22%;top:110px;width:60px;height:36px;background-image:radial-gradient(#1e3a8a 2px,transparent 2.4px);background-size:12px 12px;opacity:.14;display:none}
.cx-zk.anneau{left:10px;top:61%;width:18px;height:18px;border-radius:50%;border:3px solid #f59e0b;opacity:.3}
.cx-zk.croix{right:12px;top:66%;width:14px;height:14px;opacity:.22;background:linear-gradient(#1e3a8a,#1e3a8a) center/100% 3px no-repeat,linear-gradient(#1e3a8a,#1e3a8a) center/3px 100% no-repeat;transform:rotate(45deg)}
@media (min-width:1500px){.cx-ic.i1,.cx-ic.i3,.cx-ic.i5{left:16px}.cx-ic.i2,.cx-ic.i4,.cx-ic.i6{right:16px}.cx-zk.anneau{left:22px}.cx-zk.croix{right:24px}}
@media (min-width:1800px){.cx-ic.i1,.cx-ic.i3,.cx-ic.i5{left:4%}.cx-ic.i2,.cx-ic.i4,.cx-ic.i6{right:4%}.cx-zk.anneau{left:6%}.cx-zk.croix{right:6%}}
@media (min-height:800px) and (min-width:1001px){.cx-ic.i7,.cx-zk.points{display:block}}
@media (max-width:1000px){.cx-dd{display:none}}
@media (prefers-reduced-motion:reduce){.cx-ic{animation:none}}

/* Barres de defilement stylisees (regle du projet : aucune barre native) */
*{scrollbar-width:thin;scrollbar-color:#B8C4D8 transparent}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#C5D0E0;border-radius:8px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:#94A3B8;background-clip:padding-box}
