/* /Home/accueil_tel.css — ACCUEIL DU TELEPHONE : LE MEME QUE CELUI DE L'ORDINATEUR  [27/11/2026]
   Jusqu'a 1000 px (au-dela : Home/scene_ordi.css). Aucun nouvel element : c'est #m3-ordi, ecrit par Home/home_menu.php
   (accueil_ordi) — le logo, « my3ddesigner », « Bonjour, pseudo » une fois connecte, et deux boutons (Se connecter ou
   Mon compte, Boutique) — pose dans la scene de l'ecran de connexion du telephone (meme fond, meme logo, memes tailles).
   Le rail des liens de l'ordinateur n'est pas repris : ses liens sont dans le menu ☰ de la barre du haut.
   Remplace le bloc « Les nouveautes arrivent bientot » (#m3-accueil), qui n'est plus ecrit par Home/home.php.
   Masque des que l'ecran de connexion (ou la fenetre des devkits) est ouvert : il prend la place. */
@media (max-width: 1000px){

    html:has(#m3-bas):has(#m3-ordi){
    --at-nom: #ffffff; --at-tx: #ffffff; --at-dim: #c9d3dc; --at-acc: var(--so-acc); --at-halo: rgba(var(--so-acc-rgb), .35);
    --at-champ: rgba(var(--so-fonce-rgb), .62); --at-champbd: rgba(var(--so-acc-rgb), .38);
    --at-scene: radial-gradient(70% 48% at 50% 36%, var(--so-c1) 0%, var(--so-c2) 45%, var(--so-c3) 100%);}
    html[data-theme="light"]:has(#m3-bas):has(#m3-ordi){
    --at-nom: #16324a; --at-tx: #1d2329; --at-dim: #56626f; --at-acc: #1f74b5; --at-halo: rgba(31, 116, 181, .28);
    --at-champ: rgba(255, 255, 255, .78); --at-champbd: rgba(31, 116, 181, .35);
    --at-scene: linear-gradient(180deg, #ffffff 0%, #f7fafc 55%, #edf3f9 100%);}   /* [28/11/2026] palette A du mode clair : logo et nom en bleu nuit (avant : #2b8be0), blanc qui bleuit a peine vers le bas */

    /* le fond : celui de l'ecran de connexion du telephone (Auth/connexion.css), pour passer de l'un a l'autre sans saut */
    html:not([data-theme="light"]):has(#m3-bas):has(#m3-ordi),
    html:not([data-theme="light"]):has(#m3-bas):has(#m3-ordi) body,
    html:not([data-theme="light"]):has(#m3-bas):has(#m3-ordi) #body{background: linear-gradient(180deg, var(--so-haut) 0%, var(--so-mid) 50%, var(--so-bas) 100%) !important; background-color: var(--so-haut) !important;}
    html:has(#m3-bas):has(#m3-ordi) :is(#wallp, .grid-links){display: none !important;}
    html:not([data-theme="light"]):has(#m3-bas):has(#m3-ordi) :is(body, #body)::before{display: none !important;}
    /* la barre du bas garde le bleu de la page, un peu plus claire (meme reglage que pendant la connexion) */
    html:not([data-theme="light"]):has(#m3-bas):has(#m3-ordi) #m3-bas{background: rgba(235, 243, 252, .07);}

    /* la scene : la lumiere bleue de l'ecran de connexion (le projecteur et le grain que porte #modal-login), dans le meme cadre
       que lui, entre les deux barres ; le contenu y est centre. Sans elle, l'accueil n'avait que le degrade de la page, trop sombre */
    html:has(#m3-bas) #m3-ordi{position: fixed; left: 0; right: 0; top: calc(54px + var(--m3-st, 0px)); bottom: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px)); z-index: 5;
        display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; padding: 16px 20px 40px; overflow-y: auto;
        background: url("/Img/Png/grain.png"), var(--at-scene);}
    html:has(#m3-bas) #m3-ordi > *{animation: at-vient .45s ease-out both;}
    html:has(:is(#modal-login[style*="block"], #modal-login-devkits.show)) #m3-ordi{display: none;}
    @keyframes at-vient{from{opacity: 0; transform: translateY(8px);} to{opacity: 1; transform: none;}}

    #m3-ordi .m3o-logo{position: relative; flex: none; width: 150px; height: 120px; display: grid; place-items: center;}
    #m3-ordi .m3o-logo::before{content: ""; position: absolute; inset: -14px 0; border-radius: 50%; filter: blur(14px); pointer-events: none;
        background: radial-gradient(circle, var(--at-halo) 0%, transparent 68%);}
    #m3-ordi .m3o-logo span{position: relative; width: 104px; height: 104px; background: var(--at-nom);
        -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"] #m3-ordi .m3o-logo::before{display: none;}
    html[data-theme="light"] #m3-ordi .m3o-logo{filter: drop-shadow(0 6px 10px rgba(22, 50, 74, .16));}   /* [28/11/2026] palette A : ombre neutre (avant : bleue) */
    #m3-ordi .m3o-nom{margin: 0; text-align: center; font: italic 400 46px/1.1 'M3 Marque', Cambria, Georgia, serif; color: var(--at-nom);}
    #m3-ordi .m3o-bonjour{margin: 14px 0 0; text-align: center; font: 500 17px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--at-dim);}
    #m3-ordi .m3o-cta{display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px;}
    #m3-ordi .m3o-cta a{display: flex; align-items: center; justify-content: center; min-width: 130px; height: 52px; padding: 0 24px; border-radius: 26px; box-sizing: border-box;
        text-decoration: none; font: 650 16px/1 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-tap-highlight-color: transparent;}
    #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-b2{background: var(--at-champ); border: 1px solid var(--at-champbd); color: var(--at-tx);}
    #m3-ordi .m3o-cta a:active{filter: brightness(1.12);}
    #m3-ordi .m3o-cta a:focus-visible{outline: 2px solid var(--at-acc); outline-offset: 3px;}
}
@media (max-width: 1000px) and (prefers-reduced-motion: reduce){
    html:has(#m3-bas) #m3-ordi > *{animation: none;}
}

/* [28/11/2026] MODE CLAIR : THEME « PORCELAINE » (couleurs : Header/barre_tel.css, variables --po-*). Scene blanche sans grain,
   logo et nom a l'encre, boutons : le bleu unique pour l'action, le blanc borde de filet pour l'autre. */
@media (max-width: 1000px){
    html[data-theme="light"]:has(#m3-bas):has(#m3-ordi){
    --at-nom: var(--po-encre); --at-tx: var(--po-encre); --at-dim: var(--po-doux); --at-acc: var(--po-bleu);
    --at-champ: var(--po-fond); --at-champbd: var(--po-filet); --at-scene: var(--po-fond);}
    html[data-theme="light"]:has(#m3-bas) #m3-ordi{background: var(--po-fond);}
    html[data-theme="light"] #m3-ordi .m3o-logo{filter: drop-shadow(0 6px 10px rgba(22, 50, 74, .14));}
    html[data-theme="light"] #m3-ordi .m3o-b1{background: var(--po-bleu); box-shadow: 0 4px 12px rgba(31, 116, 181, .22);}
}
