/* /Home/scene_ordi.css — L'ACCUEIL ET LA CONNEXION DE L'ORDINATEUR DANS LA SCENE DU TELEPHONE  [26/11/2026]
   Maquette validee : https://claude.ai/artifact/YUpyxaY4FBuSsJekMGkZ74 (accueil B, Se connecter, Creer un compte, code, admin,
   mot de passe oublie). Chargee par Home/home.php apres theme-login.css. Au-dela de 1000 px seulement : le telephone garde
   Header/barre_tel.css, rien ici ne le touche (hors des regles « masque » du debut, sans effet visible).
   - La scene (projecteur et grain) remplace le papier peint ; le rail des liens est a gauche (home_menu.php, rail_ordi).
   - L'accueil (#m3-ordi), la fenetre de connexion (#window-login) et celle du mot de passe oublie (#window-forgot) sont
     dessines pour un cadre de 1440 x 800, centre en haut de la fenetre et mis a l'echelle de sa hauteur (--m3k, home.php).
   - Le balisage est celui du telephone (Auth/modal_login.php) : l'avatar (.m3-av), la scene de l'inscription (.m3-marche),
     les etapes numerotees (.m3-num). Sur ordinateur, les etapes forment une seule piece arrondie ; dans Creer un compte elles
     s'ajoutent une a une (#form-register-block[data-e] : 1, 2, 3).
   Rien n'est cache au clavier ni aux lecteurs d'ecran qui ne le soit deja sur telephone. */

/* nouveaux elements, masques partout ou cette feuille ne les montre pas (telephone compris) */
.m3-fg-logo, #m3-ordi, #m3-rail{display: none;}

@media (min-width: 1001px){

    /* ---------- couleurs (memes valeurs que le telephone) ---------- */
    html:has(#m3-ordi){
    --o-scene: radial-gradient(85% 62% at 50% 36%, var(--so-c1) 0%, var(--so-c12) 22%, var(--so-c2) 48%, var(--so-c23) 74%, var(--so-c3) 100%);
    --o-fond: var(--so-c3);
    --m3-f1: #f4f8fc; --m3-f2: #a9b7c6; --m3-f3: #56626f; --m3-rim: #bcdcff;
    --o-acc: var(--so-acc); --o-tx: #ffffff; --o-dim: #c9d3dc; --o-sol: rgba(var(--so-acc-rgb), .55); --o-sol2: rgba(var(--so-acc-rgb), .12);
    --o-ray: rgba(190, 220, 255, .55); --o-halo: rgba(var(--so-acc-rgb), .35); --o-verre: rgba(255, 255, 255, .08); --o-verrebd: rgba(255, 255, 255, .18);
    --o-champ: rgba(0, 0, 0, .30); --o-champbd: rgba(255, 255, 255, .2); --o-ph: rgba(255, 255, 255, .8); --o-lnk: var(--so-lien); --o-nom: #ffffff;
    --o-num: #ffffff; --o-num-sep: rgba(255, 255, 255, .3); --o-croix: rgba(255, 255, 255, .16); --o-croix-tx: #ffffff;
    background: var(--o-fond);}
    /* [28/11/2026] mode clair : theme « Porcelaine » (couleurs : Theme/theme.css, --po-*) — scene blanche, logo et nom a l'encre */
    html[data-theme="light"]:has(#m3-ordi){
    --o-scene: var(--po-fond);
    --o-fond: #ffffff;
    --m3-f1: #c3cfdb; --m3-f2: #8695a5; --m3-f3: #4f5c6a; --m3-rim: #ffffff;
    --o-acc: var(--po-bleu); --o-tx: var(--po-encre); --o-dim: var(--po-doux); --o-sol: rgba(31, 116, 181, .45); --o-sol2: rgba(31, 116, 181, .12);
    --o-ray: rgba(31, 116, 181, .35); --o-halo: rgba(31, 116, 181, .28); --o-verre: rgba(255, 255, 255, .62); --o-verrebd: rgba(255, 255, 255, .9);
    --o-champ: var(--po-fond); --o-champbd: var(--po-filet); --o-ph: var(--po-doux); --o-lnk: var(--po-bleu); --o-nom: var(--po-encre);
    --o-num: #1f74b5; --o-num-sep: rgba(31, 116, 181, .3); --o-croix: rgba(31, 116, 181, .12); --o-croix-tx: #1f74b5;}

    /* ---------- la scene : projecteur et grain a la place du papier peint ---------- */
    html:has(#m3-ordi) body.body-site, html:has(#m3-ordi) #body{background: none !important;}
    html:has(#m3-ordi) body.body-site::before{content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
        background: url("/Img/Png/grain.png"), var(--o-scene);}   /* grain pose tel quel, comme sur le telephone : en fusion « overlay » il ne se voyait plus  [26/11/2026] */
    html:has(#m3-ordi) #wallp, html:has(#m3-ordi) .grid-links, html:has(#m3-ordi) #div-params{display: none !important;}
    /* [28/11/2026] l'accueil a le pied de page, sous l'ecran (Footer/footer.css) ; pas pendant la connexion (avant : jamais) */
    html:has(#m3-ordi):has(:is(#modal-login, #modal-forgot, #modal-reset, #modal-login-devkits):is([style*="block"], .show)) footer{display: none !important;}
    /* [28/11/2026] le pied suit la page : la scene, l'accueil et le rail remontent avec le defilement au lieu de rester en place
       sous le pied (--m3-defil : la hauteur defilee, posee par Footer/footer.php ; 0 sans script). La barre du haut reste. */
    html:has(#m3-ordi) body.body-site::before{top: calc(0px - var(--m3-defil, 0px)); bottom: var(--m3-defil, 0px);}
    html:has(#m3-ordi) #m3-ordi{top: calc(0px - var(--m3-defil, 0px));}
    html:has(#m3-ordi) #m3-rail{top: calc(50% - var(--m3-defil, 0px));}
    /* [28/11/2026] le rail des reseaux (a gauche) est masque : ses liens sont dans le pied de page. Gardé pour un autre usage. */
    html:has(#m3-ordi) #m3-rail{display: none !important;}

    /* ---------- le cadre commun : 1440 x 800, centre, a l'echelle de la hauteur ---------- */
    #m3-ordi, #modal-login #window-login, #modal-forgot #window-forgot{position: fixed !important; top: 0; left: 50%; width: 1440px !important; height: 800px; margin: 0 0 0 -720px !important;
        padding: 0 !important; transform: scale(var(--m3k, 1)); transform-origin: 50% 0; z-index: 4; pointer-events: none;
        background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;}
    #m3-ordi *, #modal-login #window-login *, #modal-forgot #window-forgot *{pointer-events: auto;}
    #modal-login #window-login::before, #modal-forgot #window-forgot::before{display: none !important;}

    /* ---------- logo et nom (accueil, connexion, mot de passe oublie) ---------- */
    .m3o-logo, #window-login .m3-sc-logo, #window-forgot .m3-fg-logo{position: absolute; display: grid; place-items: center; left: 635px; top: 70px; width: 170px; height: 170px; margin: 0;}
    :is(.m3o-logo, #window-login .m3-sc-logo, #window-forgot .m3-fg-logo)::before{content: ""; position: absolute; inset: -10px; border-radius: 50%; filter: blur(10px);
        background: radial-gradient(circle, var(--o-halo) 0%, transparent 68%); animation: o-respire 4s ease-in-out infinite; pointer-events: none;}
    :is(.m3o-logo, #window-login .m3-sc-logo, #window-forgot .m3-fg-logo) span{position: relative; width: 110px; height: 110px; background: url("/Img/Png/logo-m3dd.png") center / contain no-repeat;}
    html[data-theme="light"] :is(.m3o-logo, #window-login .m3-sc-logo, #window-forgot .m3-fg-logo) span{background: var(--po-encre);
        -webkit-mask: url("/Theme/logo-m3dd-clair.png") center / contain no-repeat; mask: url("/Theme/logo-m3dd-clair.png") center / contain no-repeat;}
    html[data-theme="light"] :is(.m3o-logo, #window-login .m3-sc-logo, #window-forgot .m3-fg-logo)::before{display: none;}
    html[data-theme="light"] :is(.m3o-logo, #window-login .m3-sc-logo, #window-forgot .m3-fg-logo){filter: var(--po-ombre-logo);}
    html[data-theme="light"]:has(#m3-ordi) body.body-site::before{background: var(--o-scene);}   /* [28/11/2026] porcelaine : pas de grain sur le blanc */
    #window-login .m3-sc-logo::after, #window-forgot .m3-fg-logo::after{content: "my3ddesigner"; position: absolute; left: 50%; top: 156px; transform: translateX(-50%); white-space: nowrap;
        font: italic 400 42px/1 'M3 Marque', Cambria, Georgia, serif; color: var(--o-nom);}
    @keyframes o-respire{50%{transform: scale(1.12); opacity: .6;}}

    /* ---------- accueil (accueil B) ---------- */
    #m3-ordi{display: block;}
    html:has(#modal-login[style*="block"]) #m3-ordi, html:has(#modal-forgot.show) #m3-ordi{display: none;}
    #m3-ordi .m3o-logo{top: 150px; transform: scale(1.25); transform-origin: 50% 0;}
    /* accueil A [26/11/2026] : halo large et tres fondu, nom colle au logo (meme ecart que sur la connexion) */
    #m3-ordi .m3o-logo::before{inset: -70px; filter: blur(30px);
        background: radial-gradient(closest-side, var(--o-halo) 0%, rgba(var(--so-acc-rgb), .2) 30%, rgba(var(--so-acc-rgb), .08) 60%, transparent 100%);}
    #m3-ordi .m3o-nom{position: absolute; left: 0; right: 0; top: 332px; margin: 0; text-align: center; font: italic 400 54px/1 'M3 Marque', Cambria, Georgia, serif; color: var(--o-nom);}
    #m3-ordi .m3o-bonjour{position: absolute; left: 0; right: 0; top: 404px; margin: 0; text-align: center; font: 500 17px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--o-dim);}
    #m3-ordi .m3o-cta{position: absolute; left: 0; right: 0; top: 450px; display: flex; justify-content: center; gap: 12px;}
    #m3-ordi .m3o-cta a{display: flex; align-items: center; height: 50px; padding: 0 26px; border-radius: 25px; text-decoration: none; cursor: pointer;
        font: 650 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif; transition: filter .15s, background .15s;}
    #m3-ordi .m3o-b1{background: linear-gradient(180deg, var(--so-bt1), var(--so-bt2)); color: #ffffff; box-shadow: 0 6px 16px rgba(var(--so-bt2-rgb), .3);}
    #m3-ordi .m3o-b1:hover{filter: brightness(1.08);}
    /* [28/11/2026] porcelaine (clair) : les boutons d'action au bleu unique, sans degrade (accueil, connexion, bulle Teleporter) */
    html[data-theme="light"] #m3-ordi .m3o-b1, html[data-theme="light"] #modal-login .m3-tpl{background: var(--po-bleu); box-shadow: 0 4px 12px rgba(31, 116, 181, .22);}
    html[data-theme="light"] #modal-login .m3-tpl::after{border-top-color: var(--po-bleu);}
    html[data-theme="light"] #modal-login :is(#login-submit, #reg-submit, #code-submit), html[data-theme="light"] #modal-forgot #reinit{background: var(--po-bleu) !important; box-shadow: 0 4px 12px rgba(31, 116, 181, .22) !important;}
    #m3-ordi .m3o-b2{background: var(--o-champ); border: 1px solid var(--o-champbd); color: var(--o-tx); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);}
    #m3-ordi .m3o-b2:hover{border-color: var(--o-acc);}
    #m3-ordi .m3o-cta a:focus-visible{outline: 2px solid var(--o-acc); outline-offset: 3px;}
    #m3-ordi{animation: o-nom .45s ease-out both;}

    /* ---------- le rail des liens, a gauche ---------- */
    #m3-rail{position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 28px;
        background: var(--o-verre); border: 1px solid var(--o-verrebd); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);}
    #m3-rail a{position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .15s;}
    #m3-rail a:hover, #m3-rail a:focus-visible{background: rgba(127, 127, 127, .2); outline: none;}
    #m3-rail img{width: 18px; height: 18px; transition: scale .2s;}
    #m3-rail a:hover img{scale: 1.15;}
    html[data-theme="light"] #m3-rail img{filter: invert(37%) sepia(68%) saturate(800%) hue-rotate(181deg);}
    #m3-rail em{position: absolute; left: 50px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 7px; font: normal 600 13px/1.2 system-ui, sans-serif;
        background: rgba(10, 20, 30, .85); color: #ffffff; opacity: 0; pointer-events: none; transition: opacity .15s;}
    #m3-rail a:hover em, #m3-rail a:focus-visible em{opacity: 1;}

    /* ---------- les fenetres : plus de boite, la scene suffit ---------- */
    #modal-login, #modal-forgot{position: fixed !important; inset: 0; z-index: 4; margin: 0; padding: 0; pointer-events: none; background: none !important;}
    #modal-forgot.show{display: block;}
    #modal-login-show, #modal-forgot-show, #modal-login .header-login, #modal-forgot .header-forgot{position: static !important; animation: none !important; opacity: 1 !important; margin: 0 !important;
        padding: 0 !important; width: auto !important; background: none !important; border: 0 !important; box-shadow: none !important; transform: none !important;}
    #modal-login #m3ddjpg, #modal-forgot #m3ddjpg, #modal-login .close-btn, #modal-forgot .close-btn, #modal-login .auth-tabs, #modal-login #reg-mode-notice, #modal-login #code-notice,
    #modal-login .lbl-row .lbl-login, #modal-forgot .lbl-row, #modal-login .m3-desk, #modal-login .m3-marche > .m3-num, #modal-login .m3-pts, #modal-login .m3-tpl-main,
    #modal-login #form-code-aux, #modal-login .reg-status .reg-tp-link{display: none !important;}
    #modal-login :is(#form-login-block, #form-login, #form-register-block, #reg-step-form, #form-register, #reg-step-code, #form-code, #login-admin-fields),
    #modal-forgot :is(#form-forgot, #reinitialiser){position: static !important; margin: 0 !important; padding: 0 !important; width: auto !important; height: auto !important;
        background: none !important; border: 0 !important; box-shadow: none !important; transform: none !important;}
    #modal-login #login-admin-fields{display: none;}
    #modal-login #form-login.is-admin #login-admin-fields{display: block;}
    #modal-login .m3-plaque{display: contents;}

    /* ---------- la piece : un fond arrondi, et les etapes posees dessus ---------- */
    :is(#modal-login #form-login, #modal-login #form-register, #modal-login #form-code, #modal-forgot #form-forgot)::before{content: ""; position: absolute; left: var(--pl); top: var(--pt, 626px);
        width: var(--pw); height: 60px; box-sizing: border-box; border-radius: 30px; background: var(--o-champ); border: 1px solid var(--o-champbd);
        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: left .45s ease, width .45s ease;}
    :is(#modal-login #form-login, #modal-login #form-register, #modal-forgot #form-forgot):has(input:focus)::before{border-color: var(--o-acc);}
    /* les etapes : 50 px de haut, dans la piece (cinq px de marge, six d'ecart) */
    #modal-login :is(.field-login, #login-submit, #reg-submit, .m3-s2, #otp-wrapper, #code-submit), #modal-forgot :is(.field-login, #reinit){position: absolute !important; top: 631px; height: 50px;
        margin: 0 !important; padding: 0 !important; box-sizing: border-box; border-radius: 25px; transition: left .45s ease, width .45s ease;}
    #modal-forgot :is(.field-login, #reinit){top: 425px;}
    /* le champ du nom (ou de l'e-mail) */
    #modal-login .field-login, #modal-forgot .field-login{display: block; background: none !important; border: 0 !important; cursor: text;}
    #modal-login .field-login > input, #modal-forgot .field-login > input{position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; box-sizing: border-box;
        padding: 0 44px 0 46px !important; border: 0 !important; border-radius: 25px !important; outline: 0; background: none !important; box-shadow: none !important; text-align: center;
        font: 500 16px/1 system-ui, -apple-system, "Segoe UI", sans-serif !important; color: var(--o-tx) !important; caret-color: var(--o-acc);}
    #modal-login .field-login > input::placeholder, #modal-forgot .field-login > input::placeholder{color: var(--o-ph); opacity: 1;}
    #modal-login .field-login > input:-webkit-autofill{-webkit-text-fill-color: var(--o-tx); transition: background-color 9999s;}
    #modal-login .field-login .lbl-row, #modal-login .field-login .field-icon{display: none;}
    #modal-login .clear-input, #modal-forgot .clear-input{position: absolute !important; right: 12px; top: 12px; left: auto !important; width: 26px; height: 26px; margin: 0 !important; padding: 0 !important;
        border-radius: 50%; display: none; place-items: center; background: var(--o-croix) !important; color: var(--o-croix-tx) !important; font: 18px/1 Arial, sans-serif !important; cursor: pointer; transform: none !important;}
    #modal-login .field-login > input:not(:placeholder-shown) ~ .clear-input, #modal-forgot .field-login > input:not(:placeholder-shown) ~ .clear-input{display: grid;}
    /* les numeros : 46 px a gauche, un filet a droite */
    #modal-login .m3-num{position: absolute; left: 0; top: 0; bottom: 0; width: 46px; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none;
        font: 800 21px/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--o-num); letter-spacing: -.03em;}
    #modal-login .m3-num small{margin-left: 1px; font: 600 11px/1 system-ui, sans-serif; opacity: .8; letter-spacing: 0;}
    #modal-login .m3-num::after{content: ""; position: absolute; right: 0; top: 7px; bottom: 7px; width: 1px; background: var(--o-num-sep);}
    #modal-login :is(#login-submit, #reg-submit) .m3-num{color: #ffffff;}
    #modal-login :is(#login-submit, #reg-submit) .m3-num::after{background: rgba(255, 255, 255, .35);}
    #modal-login #form-login.is-admin .m3-num{display: none;}
    /* les boutons bleus */
    #modal-login :is(#login-submit, #reg-submit, #code-submit), #modal-forgot #reinit{display: flex !important; align-items: center; justify-content: center; border: 0 !important; cursor: pointer;
        background: linear-gradient(180deg, var(--so-bt1), var(--so-bt2)) !important; color: #ffffff !important; box-shadow: 0 6px 16px rgba(var(--so-bt2-rgb), .3) !important; text-shadow: none;
        font: 650 14px/1.1 system-ui, -apple-system, "Segoe UI", sans-serif !important; white-space: nowrap; min-width: 0; max-width: none !important;}
    #modal-login :is(#login-submit, #reg-submit, #code-submit):hover, #modal-forgot #reinit:hover{filter: brightness(1.08);}
    #modal-login :is(#login-submit, #reg-submit) .m3-tel{display: inline; padding: 0 8px 0 46px;}
    #modal-login #login-submit:not(:has(.m3-num)){padding: 0 12px !important;}
    #modal-login :is(#login-submit, #reg-submit, #code-submit):focus-visible, #modal-forgot #reinit:focus-visible, #modal-login .m3-s2:focus-visible{outline: 2px solid var(--o-acc); outline-offset: 3px;}
    /* le lien sous la piece */
    #modal-login .m3-lien, #modal-forgot .m3-retour{position: absolute; left: 0; right: 0; top: 712px; margin: 0; display: block; text-align: center;
        font: 400 14.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--o-tx);}
    #modal-login .m3-lien a, #modal-forgot .m3-retour a{color: var(--o-lnk); font-weight: 700; text-decoration: none; cursor: pointer;}
    #modal-login .m3-lien a:hover, #modal-forgot .m3-retour a:hover{text-decoration: underline;}
    #modal-forgot .m3-retour{top: 500px;}
    #modal-forgot .m3-retour a{display: inline-flex; align-items: center; gap: 6px;}
    #modal-forgot .m3-retour svg{width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;}
    /* les messages : une ligne bleue sous la piece ; le lien descend d'un cran */
    #modal-login :is(.m3-extn, .reg-status), #modal-forgot .reg-status{position: absolute !important; left: 0 !important; right: 0; top: 692px; width: auto !important; margin: 0 !important; padding: 0 !important;
        text-align: center; background: none !important; border: 0 !important; box-shadow: none !important; font: 500 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif !important; color: var(--o-lnk) !important;}
    #modal-forgot .reg-status{top: 486px;}
    #modal-login .reg-status:empty{display: none;}
    #modal-login #window-login:has(#form-login-block:not([style*="none"]) :is(.m3-extn, .reg-status:not(:empty))) #form-login-block .m3-lien,
    #modal-login #window-login:has(#form-register-block:not([style*="none"]) :is(.m3-extn, .reg-status:not(:empty))) #form-register-block .m3-lien{top: 738px;}
    #modal-forgot #window-forgot:has(.reg-status:not(:empty)) .m3-retour{top: 532px;}

    /* ---------- Se connecter : 560 px, deux etapes egales ---------- */
    #modal-login #form-login{--pl: 440px; --pw: 560px;}
    #modal-login #form-login .field-login{left: 445px; width: 272px;}
    #modal-login #login-submit{left: 723px; width: 272px;}
    #modal-login #login-submit::after{content: ""; flex: none; width: 16px; height: 16px; margin-right: 12px; background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;}
    #modal-login #login-submit .m3-tel{flex: 1; text-align: center;}
    #modal-login #form-login.is-admin #login-submit::after{display: none;}

    /* ---------- l'avatar (connexion, code, admin) : la meme arrivee que sur le telephone ---------- */
    #modal-login div.m3-av{position: absolute; left: 620px; top: 312px; width: 200px; margin: 0; display: flex; flex-direction: column; align-items: center; z-index: 3;}
    #modal-login div.m3-av .m3-mann{position: relative; z-index: 2; display: block; width: auto; height: 239px; aspect-ratio: 120 / 256;}
    #modal-login div.m3-av .m3-socle{position: relative; z-index: 1; width: 160px; height: 32px; margin-top: -20px;}
    #modal-login div.m3-av .m3-socle::before{content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, var(--o-sol2), transparent);}
    #modal-login div.m3-av .m3-socle::after{content: ""; position: absolute; left: 20px; right: 20px; top: 9px; height: 14px; border-radius: 50%; border: 1.5px solid var(--o-sol);
        box-shadow: 0 0 18px var(--o-sol), inset 0 0 10px var(--o-sol2);}
    #modal-login :is(.m3-rayon, .m3-onde, .m3-part){position: absolute; pointer-events: none; opacity: 0;}
    #modal-login div.m3-av .m3-rayon{left: 50%; bottom: 10px; width: 80px; height: 330px; margin-left: -40px; z-index: 3; transform-origin: bottom; filter: blur(5px);
        background: linear-gradient(90deg, transparent, var(--o-ray) 35%, rgba(255, 255, 255, .85) 50%, var(--o-ray) 65%, transparent);}
    #modal-login div.m3-av .m3-onde{left: 50%; bottom: 8px; width: 120px; height: 22px; margin-left: -60px; border-radius: 50%; border: 2px solid var(--o-acc); z-index: 1;}
    #modal-login .m3-part{width: 4px; height: 4px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 6px var(--o-acc), 0 0 12px var(--o-acc); z-index: 4;}
    html[data-theme="light"] #modal-login .m3-part{background: var(--o-acc);}
    #modal-login div.m3-av .m3-part{bottom: 14px;}
    #window-login.m3-tp div.m3-av .m3-rayon{animation: o-rayon 1.7s ease-out 1.1s both;}
    #window-login.m3-tp div.m3-av .m3-mann{animation: o-apparait 1.5s cubic-bezier(.2, .7, .2, 1) 1.35s both;}
    #window-login.m3-tp div.m3-av .m3-onde{animation: o-onde 1.3s ease-out 1.1s both;}
    #window-login.m3-tp div.m3-av .m3-o2{animation-delay: 1.45s;}
    #window-login.m3-tp div.m3-av .m3-o3{animation-delay: 1.8s;}
    #window-login.m3-tp .m3-part{animation: o-monte 1.8s ease-out both;}
    #window-login.m3-tp .m3-deco .m3-part{animation-name: o-monte2;}
    /* le nom au-dessus de la tete (connexion) */
    #modal-login .m3-etq{position: absolute; left: 50%; top: -28px; transform: translateX(-50%); z-index: 5; display: block; white-space: nowrap; pointer-events: none;
        font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; color: #ffffff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); opacity: 0; transition: opacity .2s;}
    html[data-theme="light"] #modal-login .m3-etq{color: #16324a; text-shadow: 0 1px 2px rgba(255, 255, 255, .9);}
    #modal-login .m3-etq.m3-etq-on{opacity: 1;}
    #window-login.m3-tp .m3-etq.m3-etq-on{animation: o-vient .4s ease-out 2.7s both;}
    #modal-login #form-login.is-admin .m3-etq, #modal-login #reg-step-code .m3-etq{display: none;}

    /* ---------- ordre d'apparition (comme le telephone) ---------- */
    #window-login.m3-tp .m3-sc-logo{animation: o-nom .4s ease-out both;}
    #window-login.m3-tp .field-login{animation: o-nom .45s ease-out .45s both;}
    #window-login.m3-tp :is(div.m3-av, .m3-marche .m3-deco, .m3-code-nt){animation: o-nom .4s ease-out .9s both;}
    #window-login.m3-tp :is(#login-submit, #code-submit, #code-remember, .switch-auth, .m3-lien, .m3-code-msg){animation: o-nom .45s ease-out 2s both;}

    @keyframes o-nom{from{opacity: 0; translate: 0 6px;} to{opacity: 1; translate: 0 0;}}
    @keyframes o-vient{from{opacity: 0;} to{opacity: 1;}}
    @keyframes o-rayon{0%{opacity: 0; transform: scaleY(.2);} 18%{opacity: 1; transform: scaleY(1);} 60%{opacity: .8;} 100%{opacity: 0; transform: scaleY(1) scaleX(.2);}}
    @keyframes o-apparait{0%{clip-path: inset(100% 0 0 0); filter: blur(8px) brightness(2.2); opacity: .2;} 55%{filter: blur(2px) brightness(1.6); opacity: 1;} 100%{clip-path: inset(0 0 0 0); filter: none; opacity: 1;}}
    @keyframes o-onde{0%{opacity: .9; transform: scale(.3);} 100%{opacity: 0; transform: scale(1.9);}}
    @keyframes o-monte{0%{opacity: 0; transform: translateY(0) scale(.6);} 15%{opacity: 1;} 100%{opacity: 0; transform: translateY(-210px) scale(1);}}
    @keyframes o-monte2{0%{opacity: 0; transform: translateY(0) scale(.6);} 15%{opacity: 1;} 100%{opacity: 0; transform: translateY(-101px) scale(1);}}   /* dans le dessin a 2,07 */

    /* ---------- Creer un compte : la scene (le dessin du telephone, a 2,07 fois sa taille) ---------- */
    #modal-login .m3-marche{position: absolute; left: 0; top: 0; width: 1440px; height: 581px; margin: 0; display: block; pointer-events: none;}
    #modal-login .m3-deco{position: absolute; left: 50%; bottom: 0; width: 340px; height: 226px; margin-left: -170px; transform: scale(2.07); transform-origin: 50% 100%; display: block;}
    #modal-login .m3-deco > *{position: absolute; display: block;}
    #modal-login .m3-sol{left: 0; right: 0; bottom: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--o-sol), transparent); opacity: .35;}
    #modal-login .m3-depart{left: calc(50% - 87px); bottom: 7px; width: 58px; height: 14px; border-radius: 50%; box-sizing: border-box; border: .75px solid var(--o-sol);
        box-shadow: 0 0 9px var(--o-sol), inset 0 0 5px var(--o-sol2);}
    #modal-login .m3-deco .m3-onde{left: calc(50% - 87px); bottom: 5px; width: 58px; height: 10.6px; border-radius: 50%; border: 1px solid var(--o-acc);}
    #modal-login .m3-deco .m3-rayon{left: calc(50% - 75px); bottom: 11px; width: 34px; height: 150px; transform-origin: bottom; filter: blur(2.5px);
        background: linear-gradient(90deg, transparent, var(--o-ray) 35%, rgba(255, 255, 255, .85) 50%, var(--o-ray) 65%, transparent);}
    #modal-login .m3-deco .m3-part{bottom: 9px; margin-left: 13px; width: 2px; height: 2px; box-shadow: 0 0 3px var(--o-acc), 0 0 6px var(--o-acc);}
    #modal-login .m3-objet{left: calc(50% + 35.6px); bottom: 16px; width: 64px; height: 110px; z-index: 1;}
    #modal-login .m3-objet svg{width: 64px; height: 110px; display: block;}
    #modal-login .m3-ecr{left: calc(50% + 41.6px); bottom: 82px; width: 52px; height: 40px; box-sizing: border-box; border-radius: 5px; z-index: 2; opacity: 0;
        display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: var(--so-bt2); color: #ffffff; font: 700 7.4px/1 system-ui, sans-serif;}
    #modal-login .m3-ecr svg{width: 12.5px; height: 12.5px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
    #modal-login .m3-touche{left: calc(50% + 42.5px); bottom: 89px; width: 11.6px; height: 11.6px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--o-acc); opacity: 0; z-index: 4;}
    #modal-login .m3-marcheur{left: calc(50% - 83px); bottom: 14px; width: 50px; height: 116px; z-index: 3;}
    #modal-login .m3-marcheur svg{width: 50px; height: 116px; display: block; overflow: visible;}
    #modal-login .m3-mb{transform-box: view-box;}
    #modal-login .m3-bras{transform-origin: 25px 30px;}
    #modal-login .m3-jambe{transform-origin: 25px 64px;}
    #modal-login .m3-ar{opacity: .75;}
    /* l'arrivee */
    #window-login.m3-tp .m3-deco .m3-rayon{animation: o-rayon 1.7s ease-out 1.1s both;}
    #window-login.m3-tp .m3-deco .m3-onde{animation: o-onde 1.3s ease-out 1.1s both;}
    #window-login.m3-tp .m3-deco .m3-o2{animation-delay: 1.45s;}
    #window-login.m3-tp .m3-marcheur svg{animation: o-apparait 1.4s cubic-bezier(.2, .7, .2, 1) 1.35s both;}
    /* la marche vers la borne (nom valide) */
    #window-login.m3-go .m3-marcheur{animation: o-avance 1.6s linear .2s both;}
    #window-login.m3-go .m3-jambe.m3-av{animation: o-pasA .8s ease-in-out .2s 2 both;}
    #window-login.m3-go .m3-jambe.m3-ar{animation: o-pasB .8s ease-in-out .2s 2 both;}
    #window-login.m3-go .m3-bras.m3-av{animation: o-brasA .8s ease-in-out .2s 2 backwards, o-leve .5s ease-out 1.8s forwards;}
    #window-login.m3-go .m3-bras.m3-ar{animation: o-brasB .8s ease-in-out .2s 2 both;}
    #window-login.m3-go .m3-corps{animation: o-bob .4s ease-in-out .2s 4;}
    #window-login.m3-go .m3-ecr{animation: o-vient .3s ease-out 2.2s both, o-ecr 1.4s ease-in-out 2.6s infinite;}
    #window-login.m3-go .m3-touche{animation: o-touche 1s ease-out 2.1s 2;}
    #window-login.m3-go .m3-ecran{animation: o-vient .6s ease-out 2.1s both;}
    /* nom vide apres la marche : l'avatar revient sur son cercle */
    #window-login.m3-revient .m3-marcheur svg{animation: o-apparait 1.2s cubic-bezier(.2, .7, .2, 1) .2s both;}
    #window-login.m3-revient .m3-deco .m3-rayon{animation: o-rayon 1.4s ease-out both;}
    #window-login.m3-revient .m3-deco .m3-onde{animation: o-onde 1.1s ease-out both;}
    #window-login.m3-revient .m3-deco .m3-o2{animation-delay: .3s;}
    @keyframes o-avance{to{transform: translateX(79px);}}
    @keyframes o-pasA{25%{transform: rotate(24deg);} 75%{transform: rotate(-24deg);}}
    @keyframes o-pasB{25%{transform: rotate(-24deg);} 75%{transform: rotate(24deg);}}
    @keyframes o-brasA{25%{transform: rotate(-20deg);} 75%{transform: rotate(20deg);}}
    @keyframes o-brasB{25%{transform: rotate(20deg);} 75%{transform: rotate(-20deg);}}
    @keyframes o-leve{to{transform: rotate(-78deg);}}
    @keyframes o-bob{50%{transform: translateY(-2px);}}
    @keyframes o-ecr{50%{background: var(--so-bt1);}}
    @keyframes o-touche{0%{opacity: .9; transform: scale(.4);} 100%{opacity: 0; transform: scale(2.4);}}
    /* le nom au-dessus du marcheur, efface pendant la marche */
    #modal-login .m3-marche > .m3-etq{left: 600px; top: 284px;}
    #window-login.m3-go .m3-marche > .m3-etq{opacity: 0 !important; transition: opacity .3s;}
    /* la bulle « Teleporter » a gauche de la borne, sa pointe vers l'ecran ; elle dit toujours « Teleporter » */
    #modal-login .m3-tpl{position: absolute; left: auto; right: 550px; top: 272px; z-index: 6; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 19px;
        white-space: nowrap; text-decoration: none; pointer-events: auto; transform: none; background: linear-gradient(180deg, var(--so-bt1), var(--so-bt2)); color: #ffffff !important;
        box-shadow: 0 6px 16px rgba(var(--so-bt2-rgb), .3); font: 650 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif; animation: o-vient .4s ease-out .3s both, o-rebond 1.4s ease-in-out .7s infinite;}
    #modal-login .m3-tpl::after{content: ""; position: absolute; top: 100%; right: 23px; border: 7px solid transparent; border-top-color: var(--so-bt2);}
    #modal-login .m3-tpl svg{width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
    #modal-login .m3-tpl.m3-pulse{animation: o-vient .4s ease-out .3s both, o-rebond 1.4s ease-in-out .7s infinite, o-pulse 1.4s ease-out infinite;}
    @keyframes o-rebond{50%{transform: translateY(-5px);}}
    @keyframes o-pulse{0%, 100%{box-shadow: 0 0 0 0 rgba(43, 149, 255, .7);} 50%{box-shadow: 0 0 0 9px rgba(43, 149, 255, 0);}}
    /* l'etape « 2/3 Teleporter » de la piece */
    #modal-login .m3-s2{display: flex; align-items: center; text-decoration: none; pointer-events: auto; cursor: pointer; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22) !important;
        color: #ffffff; font: 650 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif; animation: o-nom .45s ease-out .25s both;}
    html[data-theme="light"] #modal-login .m3-s2{background: #ffffff; border-color: rgba(31, 116, 181, .35) !important; color: #1f74b5;}
    #modal-login .m3-s2 .m3-num{color: var(--o-num);}
    #modal-login .m3-s2-t{flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px 0 46px;}
    #modal-login .m3-s2-t svg{width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
    #modal-login .m3-s2:hover{filter: brightness(1.1);}
    /* les etapes s'ajoutent une a une : 260 px (1), 500 px (2), 770 px (3) */
    #modal-login #form-register-block #form-register{--pl: 335px; --pw: 770px;}
    #modal-login #form-register .field-login{left: 340px; width: 249px;}
    #modal-login #form-register .m3-s2{left: 595px; width: 249px;}
    #modal-login #reg-submit{left: 851px; width: 249px; animation: o-nom .45s ease-out .25s both;}
    #modal-login #reg-submit .m3-tel{flex: 1; text-align: center; padding: 0 8px 0 46px;}
    #modal-login #form-register-block[data-e="1"] #form-register{--pl: 590px; --pw: 260px;}
    #modal-login #form-register-block[data-e="1"] #form-register .field-login{left: 595px; width: 250px;}
    #modal-login #form-register-block[data-e="2"] #form-register{--pl: 470px; --pw: 500px;}
    #modal-login #form-register-block[data-e="2"] #form-register .field-login{left: 475px; width: 242px;}
    #modal-login #form-register-block[data-e="2"] #form-register .m3-s2{left: 723px; width: 242px;}
    #modal-login #form-register-block[data-e="1"] :is(.m3-s2, .m3-tpl, #reg-submit), #modal-login #form-register-block[data-e="2"] #reg-submit{display: none !important;}

    /* ---------- le code (six chiffres) ---------- */
    #modal-login #form-code{--pl: 440px; --pw: 560px;}
    #modal-login .m3-code-nt{position: absolute; left: 0; right: 0; top: 282px; margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 10px; z-index: 5;
        font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; color: #ffffff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);}
    html[data-theme="light"] #modal-login .m3-code-nt{color: #16324a; text-shadow: 0 1px 2px #ffffff;}
    #modal-login .m3-code-nt button{margin: 0; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-shadow: none;
        font: 500 12.5px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--o-lnk);}
    #modal-login .m3-code-msg{position: absolute; left: 0; right: 0; top: 592px; margin: 0; display: block; text-align: center; font: 400 14.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--o-dim);}
    #modal-login #otp-wrapper{left: 445px; width: 272px; display: flex !important; align-items: center; justify-content: center; gap: 6px;}
    #modal-login #otp-wrapper .otp-cell{width: 34px !important; height: 40px !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box; border-radius: 9px !important;
        border: 1px solid var(--o-champbd) !important; background: rgba(0, 0, 0, .18) !important; text-align: center; font: 700 19px/1 system-ui, sans-serif !important; color: var(--o-tx) !important;
        caret-color: var(--o-acc); outline: 0; box-shadow: none !important;}
    html[data-theme="light"] #modal-login #otp-wrapper .otp-cell{background: #ffffff !important;}
    #modal-login #otp-wrapper .otp-cell:focus{border-color: var(--o-acc) !important; box-shadow: 0 0 0 3px var(--o-sol2) !important;}
    #modal-login #code-submit{left: 723px; width: 272px;}
    #modal-login #code-submit .btn-spinner{display: none;}
    #modal-login #code-remember{position: absolute; left: 0; right: 0; top: 704px; margin: 0; display: flex; justify-content: center; align-items: center; gap: 8px; white-space: nowrap;
        font: 500 14.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--o-tx);}
    #modal-login #code-remember input[type=checkbox]{width: 18px !important; height: 18px !important; border-radius: 5px !important;}
    html[data-theme="light"] #modal-login #code-remember input[type=checkbox]:not(:checked){background: #ffffff !important; border-color: var(--o-champbd) !important;}
    #modal-login #reg-step-code .switch-auth{position: absolute; left: 0; right: 0; top: 736px; margin: 0; padding: 0; white-space: nowrap; text-align: center;
        font: 400 14.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--o-dim);}
    #modal-login #reg-step-code .switch-auth span{color: var(--o-lnk); font-weight: 700; cursor: pointer; text-decoration: none;}
    #modal-login #reg-step-code .switch-auth span:hover{text-decoration: underline;}
    #modal-login #reg-step-code:has(.reg-status:not(:empty)) #code-remember{top: 728px;}
    #modal-login #reg-step-code:has(.reg-status:not(:empty)) .switch-auth{top: 758px;}

    /* ---------- connexion par e-mail (admin) : e-mail, mot de passe, Se connecter ---------- */
    #modal-login #form-login.is-admin{--pl: 335px; --pw: 770px;}
    #modal-login #form-login.is-admin .field-login{left: 340px; width: 289px;}
    #modal-login #form-login.is-admin #modep{left: 635px; width: 289px;}
    #modal-login #form-login.is-admin #login-submit{left: 930px; width: 170px;}
    #modal-login #form-login.is-admin .m3-lien{display: none;}
    #modal-login #form-login.is-admin .field-login > input{text-align: left; padding-left: 46px !important;}
    #modal-login #form-login.is-admin :is(#username, #password){padding-left: 46px !important;}
    #modal-login #form-login.is-admin .field-login::before, #modal-forgot .field-login::before{content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; z-index: 2; background: var(--o-dim);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6.5 8.5-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6.5 8.5-6.5'/%3E%3C/svg%3E") center / contain no-repeat;}
    #modal-login #form-login.is-admin #modep::before{-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");}
    #modal-login #form-login.is-admin #modep{border-left: 1px solid var(--o-champbd) !important; border-radius: 0 25px 25px 0;}
    #modal-login #modep .lbl-row{display: block; position: static; margin: 0; padding: 0;}
    #modal-login #modep #span-oublie{position: absolute; left: -295px; right: -176px; top: 81px; margin: 0; padding: 0; text-align: center; cursor: pointer;
        font: 700 14.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--o-lnk);}
    #modal-login #modep #span-oublie:hover{text-decoration: underline;}
    #modal-login #modep :is(#showhide1, #showhide2){position: absolute; right: 44px; top: 15px; left: auto; width: 20px; height: 20px; z-index: 2; color: var(--o-dim); cursor: pointer;}
    #modal-login #modep :is(#showhide1, #showhide2).hidden{display: none;}
    #modal-login #modep > input{padding-right: 74px !important;}
    #modal-login #window-login:has(#form-login.is-admin .m3-extn, #form-login.is-admin .reg-status:not(:empty)) #modep #span-oublie{top: 107px;}

    /* ---------- mot de passe oublie : la piece sous le logo ---------- */
    #modal-forgot #form-forgot{--pl: 420px; --pw: 600px; --pt: 420px;}
    #modal-forgot #form-forgot .field-login{left: 425px; width: 292px;}
    #modal-forgot #form-forgot .field-login > input{text-align: left; padding-left: 46px !important;}
    #modal-forgot #form-forgot .field-icon{display: none;}
    #modal-forgot #reinit{left: 723px; width: 292px;}
    #modal-forgot .m3-fg-logo{display: grid;}
    #modal-forgot.show :is(.m3-fg-logo, #form-forgot, .m3-retour){animation: o-nom .4s ease-out both;}
}

@media (min-width: 1001px) and (prefers-reduced-motion: reduce){
    #m3-ordi, #window-login *, #window-forgot *, :is(.m3o-logo, .m3-sc-logo, .m3-fg-logo)::before{animation: none !important; transition: none !important;}
    #window-login.m3-go .m3-marcheur{transform: translateX(79px);}
    #window-login.m3-go .m3-ecr{opacity: 1;}
    #modal-login .m3-etq.m3-etq-on{opacity: 1;}
}
