/* /Header/barre_tel.css — BARRE DU BAS DU TELEPHONE  [24/11/2026, proposition A validee]
   Ecrite par Header/header.php (barre_tel) ; chargee par Php/balises.php apres header.css et footer.css.
   Jusqu'a 1000 px (le palier de la barre du haut) :
     - en haut, le logo et le nom seuls : la rangee de boutons #link-home3 est masquee ;
     - en bas, #m3-bas : Accueil · Boutique · Favoris · Panier (Favoris et Panier grises)  [25/11/2026] ;
     - a droite de la barre du haut, #m3-haut : la recherche (grisee) et le compte ; le compte ouvre #m3-feuille, qui
       descend sous la barre du haut, comme le menu du logo  [25/11/2026, https://claude.ai/artifact/HQZBv7RTQjjkFgJ8zDFbpG] ;
     - sur la page des informations legales, #m3-legal : la fleche de retour et les onglets CGV · Confidentialite · Mentions ;
     - le pied de page est masque (ses liens sont dans la feuille), sauf la rangee de liens de l'accueil (#bande-liens) ;
     - la page garde sous son contenu la hauteur de la barre : rien n'est cache dessous.
   Au-dela de 1000 px : rien de tout cela n'est affiche. */

#m3-bas, #m3-haut, #m3-titre, #m3-legal, #m3-voile, #m3-feuille, #m3-logo-menu, #m3-logo-voile, .m3-logo-chev, #m3-accueil, #m3-plus, #m3-plus-voile{display: none;}
/* [28/11/2026] PENDANT LE CHARGEMENT : la barre du site (nav#header) arrive avant #m3-bas, dont dependent toutes ses regles ;
   le navigateur peut peindre entre les deux et montrait un instant l'ancien en-tete (logo, « Fermer », « Se connecter »),
   par exemple en passant d'un onglet des informations legales a l'autre. Elle reste invisible jusqu'a ce que #m3-bas soit lu.
   #m3-bas est toujours ecrit avec elle (Header/header.php, barre_tel()). */
html:not(:has(#m3-bas)) nav#header{visibility: hidden;}
/* connexion du telephone (Auth/modal_login.php) : rien de tout cela sur ordinateur ; la plaque s'efface sans changer la mise en page */
.m3-sc-logo, .m3-av, .m3-lien, .m3-retour, .m3-lm, .m3-code-nt, .m3-code-msg, .m3-tel, .m3-num, .m3-marche, .m3-etq, .m3-s2{display: none;}   /* .m3-etq, .m3-s2 : ordinateur seulement (Home/scene_ordi.css)  [26/11/2026] */
.m3-plaque{display: contents;}

@media (max-width: 1000px){

    html:has(#m3-bas){
    --m3-h: 62px;
    /* [25/11/2026] hauteur de la zone de l'heure : 0 tant que la page ne passe pas dessous (pas de viewport-fit=cover, abandonne :
       le voile du haut sur iPhone est l'effet de Safari 26, que rien ne desactive) */
    --m3-st: env(safe-area-inset-top, 0px);
    --m3-fond: #262626;
    --m3-trait: #000000;
    --m3-tx: #f2f2f2;
    --m3-dim: #a9a9a9;
    --m3-acc: var(--so-acc);
    --m3-accbg: #2f4b66;
    --m3-feuille: #2c2c2c;
    --m3-sep: #444444;
    --m3-dng: #ff8a7e;
    --m3-appui: rgba(255, 255, 255, .08);
    --m3-ong-fd: #1c1c1c;
    --m3-ong-on: #454545;}
    html[data-theme="light"]:has(#m3-bas){
    --m3-fond: #ffffff;
    --m3-trait: #d6dbe0;
    --m3-tx: #1d2329;
    --m3-dim: #66717c;
    --m3-acc: #1f74b5;
    --m3-accbg: #dcebf7;
    --m3-feuille: #ffffff;
    --m3-sep: #e1e5e9;
    --m3-dng: #c0392b;
    --m3-appui: rgba(0, 0, 0, .06);
    --m3-ong-fd: #eef1f4;
    --m3-ong-on: #ffffff;}

    /* en haut : le logo et le nom seuls */
    html:has(#m3-bas) #link-home3{display: none !important;}
    /* [24/11/2026] la langue et le theme sont dans le menu du logo : plus de boutons FR et soleil / lune dans la barre du haut,
       sur aucune page du telephone (ni sur l'accueil avec la fenetre de connexion, ni sur les mentions legales) */
    header.header-site #lang-wrapper, header.header-site .theme-toggle{display: none !important;}

    /* le pied de page : masque ; sur l'accueil, seule sa rangee de liens reste */
    html:has(#m3-bas) footer:not(:has(#bande-liens)){display: none !important;}
    html:has(#m3-bas) footer:has(#bande-liens) .mentions > :not(#bande-liens){display: none !important;}
    /* [24/11/2026] ACCUEIL (reconnu a #bande-liens, la rangee d'icones que home.php pose dans le pied) :
       - la rangee d'icones est retiree avec tout le pied de page ;
       - la page tient dans l'ecran, sans defilement : le menu (#links) est centre entre la barre du haut (54 px) et
         celle du bas (home.css reservait un premier ecran entier, puis le pied dessous) ;
       - la barre du haut est celle du catalogue : home.css la rendait transparente et masquait le logo et le nom. */
    html:has(#m3-bas) footer:has(#bande-liens){display: none !important;}
    html:has(#m3-bas):has(#bande-liens) body{padding-bottom: 0 !important; height: 100svh; overflow: hidden; box-sizing: border-box;}
    html:has(#m3-bas) #body:has(#bande-liens){padding-top: 0 !important; height: 100svh !important; min-height: 0 !important; overflow: hidden;}
    html:has(#m3-bas) #body:has(#bande-liens) #page-content{height: 100svh !important;}
    html:has(#m3-bas) #body:has(#bande-liens) .grid-links{top: calc(54px + var(--m3-st, 0px)) !important; bottom: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px)) !important; height: auto !important; min-height: 0 !important;
        padding-top: 0 !important; padding-bottom: 0 !important; box-sizing: border-box; align-items: center !important; justify-content: center !important; overflow-y: auto;}
    /* [25/11/2026] barre du haut opaque sur toutes les pages du telephone : translucide, elle laissait passer le degrade de la page,
       et Safari (iPhone) le reprenait jusque sous l'heure et la batterie. Sombre : le gris de la barre du bas ; clair : le ciel pale. */
    html:has(#m3-bas) body header.header-site{background: #262626 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
        border-bottom: 1px solid #000000 !important; box-shadow: none !important;}
    /* [27/11/2026] LES DEUX BARRES DU TELEPHONE PRENNENT LE VERRE DE LA BARRE DE L'ORDINATEUR (Header/barre_ordi.css : --bo-verre, flou
       18 px, filet --bo-bord), sur toutes les pages, pleine largeur et collees aux bords (piste A ; les barres flottantes, piste B,
       doublaient celles de Safari sur iPhone). Remplace l'opaque du 25/11 et le voile bleute de la connexion (Auth/connexion.css).
       Le verre de la barre du haut est pose sur ::before : un flou sur la barre elle-meme deplacerait #m3-bas et les feuilles,
       qui sont dedans et se placent par rapport a la fenetre. */
    html:has(#m3-bas) body header.header-site{background: transparent !important; border-bottom: 1px solid rgba(255, 255, 255, .16) !important;}
    html:has(#m3-bas) body header.header-site::before{content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
        background: rgba(var(--so-verre-rgb), .38); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);}
    html:has(#m3-bas) #m3-bas{background: rgba(var(--so-verre-rgb), .38); border-top: 1px solid rgba(255, 255, 255, .16);
        -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);}
    html[data-theme="light"]:has(#m3-bas) body header.header-site::before, html[data-theme="light"]:has(#m3-bas) #m3-bas{background: rgba(255, 255, 255, .62);}
    html[data-theme="light"]:has(#m3-bas) #m3-bas{border-top: 1px solid rgba(31, 116, 181, .14);}
    /* [27/11/2026] visiteur : pas de Favoris (Header/header.php), la barre du bas se partage en trois */
    html:has(#m3-bas) #m3-bas.m3b-3{grid-template-columns: repeat(3, 1fr);}
    /* [25/11/2026] iPhone : la page passe sous l'heure et la batterie (viewport-fit=cover, pose par Header/header.php) ; la barre du haut s'etend
       dessous, de sa couleur unie, pour que Safari n'y floute plus le contenu (le voile bleute au-dessus du bouton du compte).
       Tout ce qui se calait a 54 px du haut se cale a 54 px + cette zone ; le contenu des pages descend d'autant. Ordinateur : zone nulle. */
    html:has(#m3-bas) body header.header-site{height: calc(54px + var(--m3-st, 0px)) !important; padding-top: var(--m3-st, 0px) !important; box-sizing: border-box !important;}
    html:has(#m3-bas) body{padding-top: var(--m3-st, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);}
    html:has(#m3-bas){background-color: #262626;}
    html[data-theme="light"]:has(#m3-bas){background-color: #eaf3fb;}

    /* accueil du telephone (Home/home_menu.php, accueil_tel) : a la place du menu de l'accueil, dont les liens sont dans le
       menu du logo ; centre entre les deux barres. Aujourd'hui : « Les nouveautes arrivent bientot » et le Marche SL. */
    html:has(#m3-bas) #page-content:has(#m3-accueil) .grid-links{display: none !important;}
    html:has(#m3-bas) #m3-accueil{position: absolute; 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; gap: 10px; padding: 0 30px; box-sizing: border-box; text-align: center;
        color: var(--m3-dim); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;}
    html:has(#m3-bas) #m3-accueil .m3a-rond{width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--m3-fond); border: 1px solid var(--m3-sep); color: var(--m3-acc);}
    html:has(#m3-bas) #m3-accueil .m3a-rond svg{width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round;}
    html:has(#m3-bas) #m3-accueil h1{margin: 0; color: var(--m3-tx); font: 700 17px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;}
    html:has(#m3-bas) #m3-accueil p{margin: 0; max-width: 300px;}
    html:has(#m3-bas) #m3-accueil .m3a-bt{margin-top: 6px; min-height: 46px; padding: 0 20px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px;
        background: var(--m3-accbg); color: var(--m3-acc); font-weight: 700; text-decoration: none;}
    html:has(#m3-bas) #m3-accueil .m3a-bt:focus-visible{outline: 2px solid var(--m3-acc); outline-offset: 2px;}
    html:has(#m3-bas) #m3-accueil > *{position: relative;}   /* au-dessus du papier peint */
    html:has(#m3-bas) #m3-accueil::before{content: ""; position: absolute; inset: 0; background: var(--m3-voile-page);}
    html:has(#m3-bas){--m3-voile-page: rgba(0, 0, 0, .35);}
    html[data-theme="light"]:has(#m3-bas){--m3-voile-page: rgba(255, 255, 255, .55);}

    /* ---- menu du logo : le logo et le nom deviennent un bouton (header.css les rendait inertes sur telephone) ---- */
    html:has(#m3-bas) #link-home2{pointer-events: auto !important; cursor: pointer !important; flex: 0 1 auto !important; height: 44px; align-self: center; padding: 0 6px 0 2px; border-radius: 10px;
        -webkit-tap-highlight-color: transparent;}
    /* le logo reste affiche : sur ordinateur, le survol l'echange contre l'icone de l'accueil (header.css) ; au doigt, le survol
       restait colle apres le toucher et le logo disparaissait tant que le menu etait ouvert */
    html:has(#m3-bas) #link-home2 #home{opacity: 1 !important;}
    html:has(#m3-bas) #link-home2 #home-hover{display: none !important;}
    /* [28/11/2026] roue crantee ouverte ou pressee : le fond et le filet des pastilles d'icones de son menu (.m3m-ic), plus le gris neutre */
    html:has(#m3-bas) #link-home2.m3-logo-on, html:has(#m3-bas) #link-home2:active{background: rgba(var(--so-acc-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--so-acc-rgb), .22);}
    html[data-theme="light"]:has(#m3-bas) #link-home2.m3-logo-on, html[data-theme="light"]:has(#m3-bas) #link-home2:active{background: var(--po-bleu-doux); box-shadow: inset 0 0 0 1px var(--po-filet);}
    html:has(#m3-bas) #link-home2:focus-visible{outline: 2px solid var(--m3-acc); outline-offset: -2px;}
    html:has(#m3-bas) .m3-logo-chev{display: block; flex: none; width: 16px; height: 16px; margin-left: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; transition: transform .15s;}
    html:has(#m3-bas) #link-home2.m3-logo-on .m3-logo-chev{transform: rotate(180deg);}
    #m3-logo-voile{position: fixed; left: 0; right: 0; top: calc(54px + var(--m3-st, 0px)); bottom: 0; z-index: 66; display: block; background: rgba(0, 0, 0, .45);}
    #m3-logo-menu{position: fixed; left: 0; right: 0; top: calc(54px + var(--m3-st, 0px)); z-index: 69; display: block; max-height: calc(100dvh - 54px - var(--m3-st, 0px) - var(--m3-h)); overflow-y: auto; padding: 8px;
        box-sizing: border-box; background: var(--m3-feuille); border-bottom: 1px solid var(--m3-sep); box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
        color: var(--m3-tx); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; animation: m3-descend .16s ease-out;}
    #m3-logo-menu[hidden], #m3-logo-voile[hidden]{display: none;}
    /* [27/11/2026] deux contenus dans le panneau (reglages, informations legales), chacun sous son titre */
    #m3-logo-menu .m3p[hidden]{display: none;}
    :is(#m3-logo-menu, #m3-plus) .m3p-t2{margin-top: 12px;}
    :is(#m3-logo-menu, #m3-plus) .m3p-t{margin: 6px 12px 8px; font: 650 12.5px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--m3-acc);}
    /* [27/11/2026] LES PANNEAUX QUITTENT LE GRIS : le verre bleu nuit de la scene (teinte « intermediaire 1 », validee), sur le
       panneau de gauche et sur la feuille du compte ; en clair, un verre blanc au filet bleu */
    html:not([data-theme="light"]):has(#m3-bas) :is(#m3-logo-menu, #m3-feuille, #m3-plus){background: rgba(var(--so-panneau-rgb), .84); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
        border-bottom-color: rgba(var(--so-acc-rgb), .28); --m3-tx: #ffffff; --m3-dim: #c9d3dc; --m3-sep: rgba(var(--so-acc-rgb), .22); --m3-appui: rgba(var(--so-acc-rgb), .12); --m3-accbg: rgba(var(--so-acc-rgb), .20); --m3-dng: #ffb0a6;}
    html[data-theme="light"]:has(#m3-bas) :is(#m3-logo-menu, #m3-feuille, #m3-plus){background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
        border-bottom-color: rgba(31, 116, 181, .18); --m3-sep: rgba(31, 116, 181, .16); --m3-appui: rgba(31, 116, 181, .07);}
    @keyframes m3-descend{from{transform: translateY(-12px); opacity: 0;} to{transform: none; opacity: 1;}}
    :is(#m3-logo-menu, #m3-plus) .m3m-l{display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 12px; border-radius: 10px; color: var(--m3-tx); text-decoration: none; -webkit-tap-highlight-color: transparent;}
    :is(#m3-logo-menu, #m3-plus) .m3m-l > span:not(.m3m-ic):not(.m3f-seg):not(.m3f-sw){flex: 1 1 auto; min-width: 0;}
    #m3-logo-menu button.m3m-l{width: 100%; margin: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer;}   /* le theme */
    #m3-logo-menu .m3f-fixe:active{background: none;}
    :is(#m3-logo-menu, #m3-plus) .m3m-l:active{background: var(--m3-appui);}
    :is(#m3-logo-menu, #m3-plus) .m3m-l:focus-visible{outline: 2px solid var(--m3-acc); outline-offset: -2px;}
    :is(#m3-logo-menu, #m3-plus) .m3m-ic{flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--m3-appui); border: 1px solid var(--m3-sep);}
    :is(#m3-logo-menu, #m3-plus) .m3m-ic .m3-ic{width: 20px; height: 20px;}
    #m3-logo-menu .m3-ext{width: 16px; height: 16px; color: var(--m3-dim);}
    :is(#m3-logo-menu, #m3-plus) .m3-suite{width: 18px; height: 18px; color: var(--m3-dim);}

    /* ---- informations legales : la fleche de retour et les trois onglets, sous la barre du haut  [25/11/2026] ---- */
    html:has(#m3-bas) #m3-legal{position: fixed; left: 0; right: 0; top: calc(54px + var(--m3-st, 0px)); height: 56px; z-index: 1; display: flex; align-items: center; gap: 4px;
        padding: 0 calc(10px + env(safe-area-inset-right, 0px)) 0 calc(4px + env(safe-area-inset-left, 0px)); box-sizing: border-box;
        background: var(--m3-fond); border-bottom: 1px solid var(--m3-sep); font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif;}
    #m3-legal .m3l-ret{flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--m3-tx); -webkit-tap-highlight-color: transparent;}
    #m3-legal .m3l-ret:active{background: var(--m3-appui);}
    #m3-legal .m3l-ong{flex: 1 1 auto; min-width: 0; display: flex; padding: 3px; border-radius: 10px; background: var(--m3-ong-fd); border: 1px solid var(--m3-sep);}
    #m3-legal .m3l-ong a{flex: 1 1 0; min-width: 0; height: 36px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; overflow: hidden;
        color: var(--m3-dim); text-decoration: none; white-space: nowrap; text-overflow: ellipsis; -webkit-tap-highlight-color: transparent;}
    #m3-legal .m3l-long{display: none;}   /* [28/11/2026] intitules longs : ceux de l'ordinateur (Header/barre_ordi.css) */
    #m3-legal .m3l-ong a.m3l-on{background: var(--m3-ong-on); color: var(--m3-tx); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); cursor: default;}
    #m3-legal :is(.m3l-ret, .m3l-ong a):focus-visible{outline: 2px solid var(--m3-acc); outline-offset: -2px;}
    /* [27/11/2026] la bande des onglets prend le verre bleu des panneaux (plus le gris) */
    html:not([data-theme="light"]):has(#m3-bas) #m3-legal{background: rgba(var(--so-panneau-rgb), .84); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
        border-bottom-color: rgba(var(--so-acc-rgb), .28); --m3-sep: rgba(var(--so-acc-rgb), .22); --m3-ong-fd: rgba(var(--so-fonce-rgb), .45); --m3-ong-on: rgba(var(--so-acc-rgb), .22); --m3-tx: #ffffff; --m3-dim: #c9d3dc;}
    html[data-theme="light"]:has(#m3-bas) #m3-legal{background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom-color: rgba(31, 116, 181, .18);}
    /* le bouton Fermer de l'ordinateur n'est pas celui du telephone */
    html:has(#m3-legal) #i-legal #closer-devkits{display: none !important;}

    /* [28/11/2026] LES ONGLETS DANS LA BARRE DU HAUT, comme sur ordinateur : roue crantee a gauche, les trois titres au milieu
       (intitules courts), la croix pour fermer tout a droite. Plus de bande sous la barre ni de titre de page ; le compte, les
       favoris et le panier laissent la place. Le grand titre du texte n'est plus affiche a l'ecran (l'onglet allume le donne). */
    html:has(#m3-bas) #m3-legal{top: var(--m3-st, 0px); height: 54px; z-index: 2; left: calc(52px + env(safe-area-inset-left, 0px)); right: 0; gap: 2px;
        padding: 0 calc(4px + env(safe-area-inset-right, 0px)) 0 0; background: none !important; border: 0; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;}
    #m3-legal .m3l-ong{gap: 3px; padding: 0; border: 0; background: none; justify-content: center;}
    #m3-legal .m3l-ong a{flex: 0 1 auto; height: 36px; padding: 0 7px; border-radius: 18px; display: flex; align-items: center; color: var(--m3-tx); opacity: .82; font-size: 15px;}   /* [28/11/2026] 15 px (avant 13) */
    #m3-legal .m3l-court{overflow: hidden; text-overflow: ellipsis;}
    @media (max-width: 359px){ #m3-legal .m3l-ong a{font-size: 12.5px; padding: 0 4px;} }   /* tres petits ecrans : les trois intitules restent entiers */
    #m3-legal .m3l-ong a.m3l-on{background: rgba(var(--so-acc-rgb), .16); color: var(--m3-acc); opacity: 1; box-shadow: none;}
    html[data-theme="light"]:has(#m3-bas) #m3-legal .m3l-ong a.m3l-on{background: rgba(31, 116, 181, .10);}
    #m3-legal .m3l-ret{order: 2;}
    #m3-legal .m3l-ret .m3-ic{width: 22px; height: 22px;}
    html:has(#m3-legal) :is(#m3-titre, #m3-haut){display: none !important;}
    html:has(#m3-legal) body#i-legal main{padding-top: 54px;}
    html:has(#m3-legal) body#i-legal .main-inner{padding-top: 16px;}
    /* [28/11/2026] LIRE SANS LIGNE COUPEE : sur la page legale, les deux barres deviennent pleines (le texte ne transparait plus
       a travers le verre, a moitie flou) et un fondu de 28 px pres de chaque barre efface doucement les lignes qui passent dessous,
       au lieu de les trancher. En fin de page, le texte s'arrete au-dessus de la barre du bas (marge du corps = sa hauteur). */
    html:has(#m3-bas):has(#m3-legal) body header.header-site::before, html:has(#m3-bas):has(#m3-legal) #m3-bas{background: rgb(var(--so-verre-rgb)); -webkit-backdrop-filter: none; backdrop-filter: none;}
    html[data-theme="light"]:has(#m3-bas):has(#m3-legal) body header.header-site::before, html[data-theme="light"]:has(#m3-bas):has(#m3-legal) #m3-bas{background: var(--po-barre);}
    html:has(#m3-bas) body#i-legal > main::before, html:has(#m3-bas) body#i-legal > main::after{content: ""; position: fixed; left: 0; right: 0; height: 28px; z-index: 30; pointer-events: none;}
    html:has(#m3-bas) body#i-legal > main::before{top: calc(54px + var(--m3-st, 0px)); background: linear-gradient(rgb(var(--so-verre-rgb)), rgba(var(--so-verre-rgb), 0));}
    html:has(#m3-bas) body#i-legal > main::after{bottom: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(var(--so-verre-rgb), 0), rgb(var(--so-verre-rgb)));}
    html[data-theme="light"]:has(#m3-bas) body#i-legal > main::before{background: linear-gradient(#ffffff, rgba(255, 255, 255, 0));}
    html[data-theme="light"]:has(#m3-bas) body#i-legal > main::after{background: linear-gradient(rgba(255, 255, 255, 0), #ffffff);}
    /* [28/11/2026] fin de page : le corps a la hauteur de la fenetre et le texte deborde, sa marge du bas ne servait donc a rien ;
       la marge est portee par le contenu : la barre du bas (62 px), le fondu (28 px) et 24 px d'air sous le dernier chapitre */
    html:has(#m3-bas) body#i-legal .main-inner{padding-bottom: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px) + 52px);}
    html:has(#m3-legal) #i-legal .accordion h3{scroll-margin-top: calc(54px + var(--m3-st, 0px) + 12px);}   /* chapitre ouvert : son titre juste sous la barre */
    @media screen{html:has(#m3-legal) #i-legal #mainTitle{position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;}}
    :is(#m3-logo-menu, #m3-plus) .m3f-sep{height: 1px; margin: 6px 10px; background: var(--m3-sep);}
    .m3-lu{position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;}

    /* ---- connexion : l'etiquette de nom au-dessus d'un mannequin  [25/11/2026, choix 3 de
       https://claude.ai/artifact/3JbVYsz2QJw7ZzenudC56Q, fond et logo du choix 4 de https://claude.ai/artifact/AdjiPMsSnCLqp6NX4EHwAD] ----
       Les fenetres d'authentification (Auth/modal_login.php et voisines) remplissent l'espace entre les deux barres :
       le logo dans son halo, le champ du nom en etiquette de nom Second Life, un mannequin neutre sur un socle lumineux,
       puis une plaque de verre (bouton, lien). Onglets, encadre des etapes et grand logo rond : masques. A l'arrivee, une
       seule fois (classe .m3-tp posee par modal_login.php), le mannequin apparait comme apres une teleportation. */
    html:has(#m3-bas){
    --m3-f1: #f4f8fc; --m3-f2: #a9b7c6; --m3-f3: #56626f; --m3-rim: #bcdcff;
    --m3-sol: rgba(var(--so-acc-rgb), .55); --m3-sol2: rgba(var(--so-acc-rgb), .12); --m3-rayon: rgba(190, 220, 255, .55); --m3-halo: rgba(var(--so-acc-rgb), .35);
    --m3-verre: rgba(255, 255, 255, .08); --m3-verre-bd: rgba(255, 255, 255, .18); --m3-champ: rgba(255, 255, 255, .08); --m3-champ-bd: rgba(255, 255, 255, .16);
    --m3-scene: radial-gradient(70% 48% at 50% 36%, var(--so-c1) 0%, var(--so-c2) 45%, var(--so-c3) 100%);   /* le projecteur au centre [25/11/2026], adouci le 25/11 */
    /* le grain du fond [25/11/2026] : un bruit gris fondu en « overlay » (il se perdait depuis l'eclaircissement du sombre) */
    --m3-grain: url("/Img/Png/grain.png");
    --m3-grain-mode: normal;}
    html[data-theme="light"]:has(#m3-bas){
    --m3-f1: #c3cfdb; --m3-f2: #8695a5; --m3-f3: #4f5c6a; --m3-rim: #ffffff;
    --m3-sol: rgba(31, 116, 181, .45); --m3-sol2: rgba(31, 116, 181, .12); --m3-rayon: rgba(31, 116, 181, .35); --m3-halo: rgba(31, 116, 181, .28);
    --m3-verre: rgba(255, 255, 255, .55); --m3-verre-bd: rgba(255, 255, 255, .85); --m3-champ: rgba(29, 35, 41, .04); --m3-champ-bd: rgba(29, 35, 41, .13);
    --m3-scene: radial-gradient(120% 70% at 50% 18%, #d6e8f7 0%, #f2f5f8 50%, #ffffff 78%);
    --m3-grain-mode: normal;}

    html:has(#m3-bas) :is(#modal-login, #modal-forgot, #modal-reset, #modal-login-devkits):is([style*="block"], .show){
        position: fixed !important; top: calc(54px + var(--m3-st, 0px)) !important; bottom: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px)) !important; left: 0 !important; right: 0 !important;
        width: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; display: block !important;
        overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"), var(--m3-scene) !important;
        background: var(--m3-grain), var(--m3-scene) !important; background-blend-mode: var(--m3-grain-mode), normal !important;
        pointer-events: auto !important; z-index: 50 !important;}
    html:has(#m3-bas) :is(#modal-login-show, #modal-forgot-show, #modal-reset-show, #modal-login-show-devkits){
        display: block !important; position: static !important; flex: none !important; top: auto !important; left: auto !important; transform: none !important;
        width: 100% !important; max-width: none !important; height: auto !important; min-height: 0 !important; max-height: none !important;
        margin: 0 !important; overflow: visible !important; opacity: 1 !important; animation: none !important;}
    html:has(#m3-bas) :is(.header-login, .header-forgot, .header-reset, .header-devkits){padding: 0 !important; margin: 0 !important;}
    html:has(#m3-bas) :is(.header-login, .header-forgot, .header-reset, .header-devkits) > #m3ddjpg{display: none !important;}
    html:has(#m3-bas) :is(#window-login, #window-forgot, #window-reset, #window-access-devkits){
        position: relative; width: auto !important; max-width: 520px !important; height: auto !important; margin: 0 auto !important; box-sizing: border-box;
        min-height: calc(100dvh - 54px - var(--m3-st, 0px) - var(--m3-h) - env(safe-area-inset-bottom, 0px)) !important;
        display: flex !important; flex-direction: column;
        border: 0 !important; border-radius: 0 !important; background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
        box-shadow: none !important; color: var(--m3-tx);
        padding: 10px env(safe-area-inset-right, 0px) 12px env(safe-area-inset-left, 0px) !important;}
    html:has(#m3-bas) :is(#window-login, #window-forgot, #window-reset, #window-access-devkits)::before{content: none !important; display: none !important;}
    html:has(#m3-bas) :is(#close-login, #close-forgot, #close-reset, #close-login-devkits){display: none !important;}

    /* le logo dans son halo */
    html:has(#m3-bas) .m3-sc-logo{position: relative; flex: none; width: 150px; height: 150px; margin: 12px auto 4px; display: grid; place-items: center;}
    html:has(#m3-bas) .m3-sc-logo::before{content: ""; position: absolute; inset: -10px; border-radius: 50%; filter: blur(10px); background: radial-gradient(circle, var(--m3-halo) 0%, transparent 68%); animation: m3-respire 4s ease-in-out infinite;}
    html:has(#m3-bas) .m3-sc-logo span{position: relative; width: 88px; height: 88px; background: url("/Img/Png/logo-m3dd.png") center / contain no-repeat;}
    html[data-theme="light"]:has(#m3-bas) .m3-sc-logo span{background-image: url("/Theme/logo-m3dd-clair.png");}
    @keyframes m3-respire{50%{transform: scale(1.14); opacity: .6;}}

    /* les trois blocs : une colonne qui pousse la plaque en bas (un bloc masque par show_login / show_register reste masque) */
    html:has(#m3-bas) #window-login :is(#form-login-block, #form-register-block, #reg-step-code):not([style*="none"]){display: flex !important; flex-direction: column; flex: 1 1 auto;}
    html:has(#m3-bas) #reg-step-form{display: flex; flex-direction: column; flex: 1 1 auto;}
    html:has(#m3-bas) #window-login :is(#form-login, #form-register){display: flex !important; flex-direction: column; align-items: center; flex: 1 1 auto; width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important;}
    html:has(#m3-bas) #window-login :is(.auth-tabs, #reg-mode-notice, #code-notice){display: none !important;}

    /* le champ du nom devient l'etiquette de nom de Second Life */
    html:has(#m3-bas) #window-login :is(#form-login, #form-register) > .field-login{width: auto !important; margin: 4px auto 0 !important; padding: 0 !important;}
    html:has(#m3-bas) #window-login :is(#form-login, #form-register) > .field-login :is(.lbl-row, .field-icon, .clear-input){display: none !important;}
    /* [25/11/2026] la croix pour vider le nom (.clear-input de modal_login.php, effacement par Auth/modales.js) : au bout droit de
       l'etiquette, seulement quand un nom est saisi ; elle ne donne pas le focus (pas de clavier). Zone de toucher de 44 px. */
    html:has(#m3-bas) #window-login :is(#form-login, #form-register) > .field-login:has(> input:not(:placeholder-shown)) > .clear-input{display: flex !important;
        position: absolute; right: 8px; top: 21px; bottom: auto; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; z-index: 4;
        align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); color: #ffffff; font: 400 18px/1 Arial, Helvetica, sans-serif; -webkit-tap-highlight-color: transparent;}
    html:has(#m3-bas) #window-login .field-login > .clear-input::before{content: ""; position: absolute; inset: -9px;}
    html:has(#m3-bas) #window-login :is(#form-login, #form-register) > .field-login:has(> input:not(:placeholder-shown)) > .clear-input:active{background: rgba(255, 255, 255, .3);}
    html[data-theme="light"]:has(#m3-bas) #window-login :is(#form-login, #form-register) > .field-login:has(> input:not(:placeholder-shown)) > .clear-input{background: rgba(31, 116, 181, .12); color: #1f74b5;}
    html[data-theme="light"]:has(#m3-bas) #window-login :is(#form-login, #form-register) > .field-login:has(> input:not(:placeholder-shown)) > .clear-input:active{background: rgba(31, 116, 181, .24);}
    html:has(#m3-bas) #window-login :is(#username, #reg-username){
        width: 250px !important; max-width: calc(100vw - 60px); height: 42px !important; margin: 0 !important; padding: 0 14px !important; box-sizing: border-box;
        border: 1px solid rgba(255, 255, 255, .2) !important; border-radius: 9px !important; outline: none;
        background: rgba(0, 0, 0, .30) !important;
        -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
        color: #ffffff !important; -webkit-text-fill-color: #ffffff; caret-color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
        font: 500 16px/42px system-ui, -apple-system, "Segoe UI", sans-serif !important; box-shadow: none !important;}
    html[data-theme="light"]:has(#m3-bas) #window-login :is(#username, #reg-username){background-color: rgba(29, 35, 41, .55) !important;}
    html:has(#m3-bas) #window-login :is(#username, #reg-username)::placeholder{color: rgba(255, 255, 255, .62); -webkit-text-fill-color: rgba(255, 255, 255, .62); font-weight: 400; text-shadow: none;}
    /* avant la saisie : le texte et un curseur qui clignote, dessines sur le cadre du champ (data-ph, pose par modal_login.php) ;
       au toucher, le vrai curseur prend le relais */
    html:has(#m3-bas) #window-login :is(#form-login, #form-register) > .field-login{position: relative;}
    html:has(#m3-bas) #window-login :is(#username, #reg-username)::placeholder{color: transparent !important; -webkit-text-fill-color: transparent !important;}
    html:has(#m3-bas) #window-login .field-login[data-ph]:has(> input:placeholder-shown:not(:focus))::after{content: attr(data-ph); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
        padding-left: 6px; border-left: 1.5px solid #ffffff; line-height: 20px; white-space: nowrap; pointer-events: none;
        color: #ffffff; font: 400 16px/20px system-ui, -apple-system, "Segoe UI", sans-serif; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); animation: m3-curseur 1.1s steps(1) infinite;}
    @keyframes m3-curseur{50%{border-left-color: transparent;}}
    html:has(#m3-bas) #window-login .field-login.m3-secoue{animation: m3-secoue .4s ease-in-out;}
    @keyframes m3-secoue{20%, 60%{transform: translateX(-6px);} 40%, 80%{transform: translateX(6px);}}
    html:has(#m3-bas) #window-login :is(#username, #reg-username):focus{border-color: var(--m3-acc) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--m3-acc) 30%, transparent) !important;}

    /* le mannequin et son socle */
    html:has(#m3-bas) .m3-av{position: relative; display: flex; flex-direction: column; align-items: center; width: 200px; margin: 10px auto 0;}
    html:has(#m3-bas) .m3-mann{position: relative; z-index: 2; display: block; width: auto; height: max(120px, min(239px, calc(100dvh - 500px))); aspect-ratio: 120 / 256;}
    html:has(#m3-bas) #reg-step-code .m3-mann{height: max(96px, min(200px, calc(100dvh - 610px)));}
    html:has(#m3-bas) .m3-socle{position: relative; z-index: 1; width: 160px; height: 32px; margin-top: -20px;}
    html:has(#m3-bas) .m3-socle::before{content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, var(--m3-sol2), transparent);}
    html:has(#m3-bas) .m3-socle::after{content: ""; position: absolute; left: 20px; right: 20px; top: 9px; height: 14px; border-radius: 50%; border: 1.5px solid var(--m3-sol); box-shadow: 0 0 18px var(--m3-sol), inset 0 0 10px var(--m3-sol2); box-sizing: border-box;}
    html:has(#m3-bas) #form-login.is-admin :is(.m3-av, .m3-lien){display: none;}
    html:has(#m3-bas) #form-login.is-admin #login-admin-fields{align-self: stretch; padding: 12px 26px 0;}   /* meme largeur que le champ e-mail */
    /* [25/11/2026] connexion par e-mail (un @ dans le nom) : une enveloppe au debut du champ, le texte aligne a gauche, comme le mot
       de passe dessous ; l'enveloppe a la place, la taille et le trait de l'oeil du mot de passe (9 px du bord, 20 px, trait 1,7) */
    html:has(#m3-bas) #window-login #form-login.is-admin #username{text-align: left; padding-left: 36px !important;}
    html:has(#m3-bas) #window-login #form-login.is-admin > .field-login::before{content: ""; position: absolute; left: 9px; top: 21px; z-index: 3; width: 20px; height: 20px;
        transform: translateY(-50%); pointer-events: none; background: #9c9c9c; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' 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 7 9 6 9-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='%23000' 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 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;}
    /* [25/11/2026] mot de passe oublie : la croix de fermeture est masquee sur telephone ; un lien de retour sous le bouton
       (.m3-retour, Auth/modal_forgot.php) */
    html:has(#m3-bas) #window-forgot .m3-retour{display: block; margin: 18px 0 0; text-align: center; font: 600 14.5px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;}
    html:has(#m3-bas) #window-forgot .m3-retour a{display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--so-lien); text-decoration: none;}
    html[data-theme="light"]:has(#m3-bas) #window-forgot .m3-retour a{color: #1f74b5;}
    html:has(#m3-bas) #window-forgot .m3-retour svg{width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}

    /* l'arrivee, comme apres une teleportation : rayon, ondes au sol, etincelles, apparition de bas en haut */
    html:has(#m3-bas) :is(.m3-rayon, .m3-onde, .m3-part){position: absolute; pointer-events: none; opacity: 0;}
    html:has(#m3-bas) .m3-rayon{left: 50%; bottom: 10px; width: 80px; height: 330px; margin-left: -40px; z-index: 3; transform-origin: bottom;
        background: linear-gradient(90deg, transparent, var(--m3-rayon) 35%, rgba(255, 255, 255, .85) 50%, var(--m3-rayon) 65%, transparent); filter: blur(5px);}
    html:has(#m3-bas) .m3-onde{left: 50%; bottom: 8px; width: 120px; height: 22px; margin-left: -60px; border-radius: 50%; border: 2px solid var(--m3-acc); z-index: 1; box-sizing: border-box;}
    html:has(#m3-bas) .m3-part{bottom: 14px; width: 4px; height: 4px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 6px var(--m3-acc), 0 0 12px var(--m3-acc); z-index: 4;}
    html[data-theme="light"]:has(#m3-bas) .m3-part{background: var(--m3-acc);}
    html:has(#m3-bas) .m3-tp .m3-rayon{animation: m3-rayon 1.7s ease-out 1.1s both;}
    html:has(#m3-bas) .m3-tp .m3-mann{animation: m3-apparait 1.5s cubic-bezier(.2, .7, .2, 1) 1.35s both;}
    html:has(#m3-bas) .m3-tp .m3-onde{animation: m3-onde 1.3s ease-out 1.1s both;}
    html:has(#m3-bas) .m3-tp .m3-o2{animation-delay: 1.45s;}
    html:has(#m3-bas) .m3-tp .m3-o3{animation-delay: 1.8s;}
    html:has(#m3-bas) .m3-tp .m3-part{animation: m3-monte 1.8s ease-out both;}
    /* ordre d'apparition : le logo, l'etiquette du nom (etape 1), la scene (etape 2), puis la plaque du bas */
    html:has(#m3-bas) .m3-tp .m3-sc-logo{animation: m3-nom .4s ease-out both;}
    html:has(#m3-bas) .m3-tp :is(#form-login > .field-login, #form-register > .field-login, .m3-code-nt){animation: m3-nom .45s ease-out .45s both;}
    html:has(#m3-bas) .m3-tp :is(.m3-av, .m3-marche){animation: m3-nom .4s ease-out .9s both;}
    html:has(#m3-bas) .m3-tp :is(.m3-plaque, #form-code){animation: m3-nom .45s ease-out 2s both;}
    @keyframes m3-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 m3-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: blur(0) brightness(1); opacity: 1;}}
    @keyframes m3-onde{0%{opacity: .9; transform: scale(.3);} 100%{opacity: 0; transform: scale(1.9);}}
    @keyframes m3-monte{0%{opacity: 0; transform: translateY(0) scale(.6);} 15%{opacity: 1;} 100%{opacity: 0; transform: translateY(-210px) scale(1);}}
    @keyframes m3-nom{from{opacity: 0; transform: translateY(6px);} to{opacity: 1; transform: none;}}

    /* la plaque de verre, en bas */
    html:has(#m3-bas) #window-login .m3-plaque{display: flex; flex-direction: column; gap: 12px; align-self: stretch; margin: auto 12px 22px; padding: 14px; border-radius: 18px;
        background: var(--m3-verre); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--m3-verre-bd);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 30px rgba(0, 0, 0, .18);}
    html:has(#m3-bas) #window-login :is(.m3-plaque, #form-code) .valid{width: 100% !important; height: 50px !important; margin: 0 !important; border: 0 !important; border-radius: 13px !important;
        background: linear-gradient(180deg, var(--so-bt1), var(--so-bt2)) !important; color: #ffffff !important; font: 650 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important;
        padding: 0 12px !important; display: flex !important; align-items: center; justify-content: center; gap: 8px;
        box-shadow: 0 8px 20px rgba(var(--so-bt2-rgb), .28) !important;}
    html:has(#m3-bas) #window-login .m3-desk{display: none;}
    html:has(#m3-bas) #window-login .m3-tel{display: inline;}
    html:has(#m3-bas) #window-login .m3-lien{display: block; margin: 0; text-align: center; font: 14px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--m3-tx); opacity: 1;}
    html:has(#m3-bas) #window-login .m3-lien a{color: var(--m3-acc); font-weight: 600; text-decoration: none;}
    html:has(#m3-bas) #window-login .m3-plaque .reg-status{margin: 0 !important;}

    /* inscription : le repere de l'objet a toucher, comme dans Second Life */
    html:has(#m3-bas) #window-login .m3-lm{display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 13px; background: var(--m3-champ); border: 1px solid var(--m3-champ-bd);}
    html:has(#m3-bas) .m3-lm-vig{position: relative; flex: none; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(160deg, #3a4a5c, #1c2630); display: grid; place-items: center;}
    html[data-theme="light"]:has(#m3-bas) .m3-lm-vig{background: linear-gradient(160deg, #dfe7ef, #b9c6d3);}
    html:has(#m3-bas) .m3-lm-vig img{width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block;}
    html:has(#m3-bas) .m3-lm-pin{position: absolute; right: -5px; bottom: -5px; width: 19px; height: 19px; border-radius: 50%; background: #c8372d; color: #ffffff; display: grid; place-items: center; border: 2px solid var(--m3-feuille);}
    html:has(#m3-bas) .m3-lm-vig:not(:has(img)) .m3-lm-pin{position: static; width: 26px; height: 26px; border: 0;}
    html:has(#m3-bas) .m3-lm-pin svg{width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;}
    html:has(#m3-bas) .m3-lm-vig:not(:has(img)) .m3-lm-pin svg{width: 15px; height: 15px;}
    html:has(#m3-bas) .m3-lm-txt{flex: 1 1 auto; min-width: 0; font: 12.5px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--m3-dim); text-align: left;}
    html:has(#m3-bas) .m3-lm-txt b{display: block; color: var(--m3-tx); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
    html:has(#m3-bas) .m3-lm-tp{flex: none; height: 34px; padding: 0 11px; border-radius: 9px; background: var(--m3-accbg); color: var(--m3-acc) !important; font: 650 13.5px/34px system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none;}

    /* code : le nom (avec Modifier) au-dessus du mannequin ; la plaque porte la consigne, les six cases et Verifier */
    html:has(#m3-bas) #window-login .m3-code-nt{display: flex; flex-direction: column; align-items: center; align-self: center; margin: 4px auto 0; padding: 6px 16px 5px; border-radius: 9px;
        background: rgba(0, 0, 0, .30); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);}
    html[data-theme="light"]:has(#m3-bas) #window-login .m3-code-nt{background: rgba(29, 35, 41, .55);}
    html:has(#m3-bas) .m3-code-nt span{font: 500 16px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;}
    html:has(#m3-bas) .m3-code-nt button{margin: 0; padding: 2px 6px; border: 0; background: none; color: #bcdcff; font: 12px/1.3 system-ui, sans-serif; text-decoration: underline; cursor: pointer;}
    html:has(#m3-bas) #window-login #form-code{display: flex !important; flex-direction: column; gap: 12px; width: auto !important; max-width: none !important; margin: auto 12px 22px !important; padding: 14px !important;
        border-radius: 18px; background: var(--m3-verre); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--m3-verre-bd);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 30px rgba(0, 0, 0, .18);}
    html:has(#m3-bas) #window-login .m3-code-msg{display: block; margin: 0; text-align: center; font: 13.5px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--m3-dim);}
    html:has(#m3-bas) #window-login #form-code #otp-wrapper{margin: 0 !important;}
    html:has(#m3-bas) #window-login #form-code #code-remember{margin: 0; justify-content: center; color: var(--m3-dim);}
    html:has(#m3-bas) #window-login #reg-step-code .switch-auth{margin: -12px 0 14px !important; text-align: center; font-size: 13px;}

    /* pendant la connexion, c'est le bouton du compte (en haut a droite) qui est allume, pas l'onglet de la page */
    html:has(#m3-bas):has(:is(#modal-login, #modal-forgot, #modal-reset, #modal-login-devkits):is([style*="block"], .show)) #m3-bas .m3b-on{color: var(--m3-dim);}
    html:has(#m3-bas):has(:is(#modal-login, #modal-forgot, #modal-reset, #modal-login-devkits):is([style*="block"], .show)) #m3-haut #m3b-compte{background: var(--m3-accbg); color: var(--m3-acc);}
    /* [27/11/2026] pendant la connexion, la silhouette laisse la place a la croix « Annuler » (retour a l'accueil) : la barre dit
       « Se connecter », la croix dit comment sortir. Hors connexion, la croix n'existe pas a l'ecran */
    #m3-haut #m3h-annuler{display: none;}
    html:has(#m3-bas):has(#modal-login[style*="block"]) #m3-haut #m3b-compte{display: none;}
    html:has(#m3-bas):has(#modal-login[style*="block"]) #m3-haut #m3h-annuler{display: flex; align-items: center; justify-content: center; text-decoration: none;}
    /* la page dessous ne defile pas pendant la connexion */
    html:has(#m3-bas):has(:is(#modal-login, #modal-forgot, #modal-reset, #modal-login-devkits):is([style*="block"], .show)),
    html:has(#m3-bas):has(:is(#modal-login, #modal-forgot, #modal-reset, #modal-login-devkits):is([style*="block"], .show)) body{overflow: hidden !important;}

    /* la place de la barre sous le contenu de la page */
    html:has(#m3-bas) body{padding-bottom: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px)) !important; box-sizing: border-box;}

    /* ---- la barre ---- */
    #m3-bas{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* [28/11/2026] Accueil · Boutique · Plus, connecte ou non */
    height: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    box-sizing: border-box;
    background: var(--m3-fond);
    border-top: 1px solid var(--m3-trait);
    color: var(--m3-dim);
    font: 500 11.5px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
    pointer-events: auto;}

    #m3-bas .m3b-it{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: var(--m3-h);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;}
    #m3-bas .m3b-it > span{max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
    #m3-bas .m3b-it:active{background: var(--m3-appui);}
    #m3-bas .m3b-on{color: var(--m3-acc);}
    #m3-bas .m3b-off{opacity: .4; cursor: default;}
    #m3-bas .m3b-off:active{background: none;}
    #m3-bas .m3b-it:focus-visible{outline: 2px solid var(--m3-acc); outline-offset: -4px; border-radius: 10px;}

    .m3-ic{width: 23px; height: 23px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;}

    /* ---- en haut a droite : la recherche et le compte  [25/11/2026] ---- */
    html:has(#m3-bas) #m3-haut{position: absolute; top: var(--m3-st, 0px); right: calc(4px + env(safe-area-inset-right, 0px)); height: 54px; z-index: 2; display: flex; align-items: center; gap: 2px;}
    #m3-haut .m3h-b{width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--m3-tx);
        display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;}
    #m3-haut .m3h-b .m3-ic{width: 24px; height: 24px;}
    #m3-haut .m3h-off{opacity: .4; cursor: default;}
    #m3-haut .m3h-co{color: var(--m3-acc);}                     /* connecte : la silhouette pleine, en couleur d'accent */
    .m3-ic.m3-plein path, .m3-ic.m3-plein circle{fill: currentColor; stroke: none;}
    #m3-haut button.m3h-b:active{background: var(--m3-appui);}
    #m3-haut .m3h-on, #m3-haut #m3b-compte[aria-expanded="true"]{background: var(--m3-accbg); color: var(--m3-acc);}
    #m3-haut .m3h-b:focus-visible{outline: 2px solid var(--m3-acc); outline-offset: -2px;}

    /* ---- la feuille du compte : sous la barre du haut, comme le menu du logo ---- */
    #m3-voile{
    position: fixed;
    left: 0;
    right: 0;
    top: calc(54px + var(--m3-st, 0px));
    bottom: 0;
    z-index: 66;
    display: block;
    background: rgba(0, 0, 0, .45);}
    #m3-voile[hidden], #m3-feuille[hidden]{display: none;}

    #m3-feuille{
    position: fixed;
    left: 0;
    right: 0;
    top: calc(54px + var(--m3-st, 0px));
    z-index: 69;
    display: block;
    max-height: calc(100dvh - 54px - var(--m3-st, 0px) - var(--m3-h) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px calc(8px + env(safe-area-inset-right, 0px)) 8px calc(8px + env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    border-bottom: 1px solid var(--m3-sep);
    background: var(--m3-feuille);
    color: var(--m3-tx);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
    font: 15px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: left;
    animation: m3-descend .16s ease-out;}
    #m3-feuille:focus{outline: none;}
    html.m3-feuille-ouverte, html.m3-feuille-ouverte body{overflow: hidden;}

    /* ---- [28/11/2026] la feuille « Plus » (#m3-plus) : monte du bas, posee sur la barre du bas ; Contact, informations legales ---- */
    #m3-plus-voile{position: fixed; left: 0; right: 0; top: 0; bottom: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px)); z-index: 66; display: block; background: rgba(0, 0, 0, .45);}
    #m3-plus{position: fixed; left: 0; right: 0; bottom: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px)); z-index: 69; display: block;
        max-height: calc(100dvh - 54px - var(--m3-st, 0px) - var(--m3-h) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
        padding: 6px calc(8px + env(safe-area-inset-right, 0px)) 8px calc(8px + env(safe-area-inset-left, 0px)); box-sizing: border-box;
        border-radius: 20px 20px 0 0; border: 1px solid var(--m3-sep); border-bottom: 0; background: var(--m3-feuille); box-shadow: 0 -14px 30px rgba(0, 0, 0, .35);
        color: var(--m3-tx); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; animation: m3-monte .18s ease-out;}
    #m3-plus[hidden], #m3-plus-voile[hidden]{display: none;}
    #m3-plus:focus{outline: none;}
    /* [28/11/2026] les titres de rubrique sur une bande un peu plus claire, d'un bord a l'autre ; la premiere remonte jusqu'en haut
       de la feuille (coins arrondis) et porte la poignee (prototype https://claude.ai/artifact/XRDMcRF4aRxiWo6RHsefVs, style 5) */
    #m3-plus{padding-top: 0;}
    #m3-plus .m3pl-t{position: relative; margin: 10px calc(-8px - env(safe-area-inset-right, 0px)) 4px calc(-8px - env(safe-area-inset-left, 0px));
        padding: 9px calc(20px + env(safe-area-inset-right, 0px)) 9px calc(20px + env(safe-area-inset-left, 0px));
        font: 650 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--m3-acc); background: rgba(var(--so-acc-rgb), .10);}
    #m3-plus .m3pl-t1{margin-top: 0; padding-top: 24px; border-radius: 19px 19px 0 0;}
    #m3-plus .m3pl-poignee{position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(232, 238, 246, .35);}
    html[data-theme="light"]:has(#m3-bas) #m3-plus .m3pl-t{background: rgba(31, 116, 181, .07);}
    html[data-theme="light"]:has(#m3-bas) #m3-plus .m3pl-poignee{background: rgba(22, 50, 74, .25);}
    html:not([data-theme="light"]):has(#m3-bas) #m3-plus{border-color: rgba(var(--so-acc-rgb), .28);}
    html[data-theme="light"]:has(#m3-bas) #m3-plus{border-color: rgba(31, 116, 181, .18);}
    #m3-bas #m3b-plus.m3b-ouvert{color: var(--m3-acc);}
    #m3-bas .m3b-ordi{display: none;}   /* Favoris et Panier de la navigation de l'ordinateur : ici, en haut a droite (#m3-haut) */
    /* [30/11/2026] le client connecte n'a pas besoin du bouton « Accueil » (#cx-encours n'est ecrit que pour un visiteur,
       Header/header.php), comme sur ordinateur (Header/barre_ordi.css) */
    html:not(:has(#cx-encours)) #m3-bas a.m3b-it[href^="/index.php?home"]{display: none;}
    /* la place liberee revient aux Favoris et au Panier, qui redescendent de la barre du haut : Plus · Boutique · Favoris · Panier
       (les deux .m3b-ordi, ecrits pour le client connecte seulement ; « Plus » passe tout a gauche). En haut a droite, il ne reste
       que le compte : le titre de la page reprend ses marges d'un seul bouton. */
    html:not(:has(#cx-encours)) #m3-bas.m3b-3{grid-template-columns: repeat(4, 1fr);}
    html:not(:has(#cx-encours)) #m3-bas.m3b-3:not(:has(.m3b-ordi)){grid-template-columns: repeat(2, 1fr);}
    html:not(:has(#cx-encours)) #m3-bas .m3b-ordi{display: flex;}
    html:not(:has(#cx-encours)) #m3-bas:has(.m3b-ordi) #m3b-plus{order: -1;}
    html:not(:has(#cx-encours)):has(#m3-bas .m3b-ordi) #m3-haut .m3h-off{display: none;}
    html:not(:has(#cx-encours)):has(#m3-bas .m3b-ordi) #m3-titre.m3t-3{padding: 0 56px; font-size: 16px;}

    /* [30/11/2026] les boutons des deux barres se rapprochent des bords de l'ecran.
       En bas : les boutons ne se partagent plus la largeur en colonnes egales (le premier et le dernier restaient loin des bords),
       ils s'etalent d'un bord a l'autre, a intervalles egaux. En haut : la zone de toucher garde ses 44 px, le dessin se cale du
       cote du bord au lieu d'etre centre. */
    html:has(#m3-bas) #m3-bas.m3b-3{display: flex; justify-content: space-between; padding-left: calc(4px + env(safe-area-inset-left, 0px)); padding-right: calc(4px + env(safe-area-inset-right, 0px));}
    html:has(#m3-bas) #m3-bas.m3b-3 .m3b-it{flex: 0 0 auto; min-width: 54px; padding: 0 6px; box-sizing: border-box;}
    html:has(#m3-bas) body #link-home2{margin-left: calc(2px + env(safe-area-inset-left, 0px)); justify-content: flex-start;}   /* « body » : passe devant la regle de base, ecrite plus bas ; l'en-tete a deja sa marge */
    html:has(#m3-bas) #m3-haut{right: env(safe-area-inset-right, 0px);}
    html:has(#m3-bas) #m3-haut .m3h-b:last-child{justify-content: flex-end; padding-right: 10px; box-sizing: border-box;}
    html:has(#m3-bas) #m3-legal{padding-right: env(safe-area-inset-right, 0px);}
    html:has(#m3-bas) #m3-legal .m3l-ret{justify-items: end; padding-right: 10px; box-sizing: border-box;}
    html.m3-plus-ouvert, html.m3-plus-ouvert body{overflow: hidden;}
    @keyframes m3-monte{from{transform: translateY(14px); opacity: 0;} to{transform: none; opacity: 1;}}

    #m3-feuille .m3f-qui{display: flex; align-items: center; gap: 12px; padding: 6px 12px 10px;}
    #m3-feuille .m3f-av{width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--m3-accbg); color: var(--m3-acc);}
    #m3-feuille .m3f-av .m3-ic{width: 22px; height: 22px;}
    #m3-feuille .m3f-qui-t{min-width: 0;}
    #m3-feuille .m3f-qui-t b{display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px;}
    #m3-feuille .m3f-qui-t small{display: block; font-size: 12.5px; color: var(--m3-dim);}

    :is(#m3-feuille, #m3-logo-menu) .m3f-l{
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 12px;
    box-sizing: border-box;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--m3-tx);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;}
    :is(#m3-feuille, #m3-logo-menu) .m3f-l > span:first-of-type{flex: 1 1 auto; min-width: 0;}
    :is(#m3-feuille, #m3-logo-menu) a.m3f-l:active, :is(#m3-feuille, #m3-logo-menu) button.m3f-l:active{background: var(--m3-appui);}
    :is(#m3-feuille, #m3-logo-menu) .m3f-l:focus-visible, :is(#m3-feuille, #m3-logo-menu) .m3f-seg button:focus-visible{outline: 2px solid var(--m3-acc); outline-offset: -2px;}
    :is(#m3-feuille, #m3-logo-menu) .m3f-fixe{cursor: default;}
    #m3-feuille .m3f-dng{color: var(--m3-dng);}
    #m3-feuille .m3f-sep{height: 1px; margin: 6px 10px; background: var(--m3-sep);}

    /* langue : trois boutons accoles, la langue en cours en couleur */
    :is(#m3-feuille, #m3-logo-menu) .m3f-seg{display: flex; flex: none; border: 1px solid var(--m3-sep); border-radius: 9px; overflow: hidden;}
    :is(#m3-feuille, #m3-logo-menu) .m3f-seg button{min-width: 44px; height: 36px; margin: 0; padding: 0 8px; border: 0; background: none; color: var(--m3-dim); font: 600 13px/1 system-ui, sans-serif; cursor: pointer;}
    :is(#m3-feuille, #m3-logo-menu) .m3f-seg button + button{border-left: 1px solid var(--m3-sep);}
    :is(#m3-feuille, #m3-logo-menu) .m3f-seg button[aria-pressed="true"]{background: var(--m3-accbg); color: var(--m3-acc); cursor: default;}

    /* theme : un interrupteur */
    :is(#m3-feuille, #m3-logo-menu) .m3f-sw{position: relative; flex: none; width: 42px; height: 26px; border-radius: 13px; background: var(--m3-sep); transition: background .15s;}
    :is(#m3-feuille, #m3-logo-menu) .m3f-sw::after{content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s;}
    :is(#m3-feuille, #m3-logo-menu) [aria-checked="true"] .m3f-sw{background: var(--m3-acc);}
    :is(#m3-feuille, #m3-logo-menu) [aria-checked="true"] .m3f-sw::after{transform: translateX(16px);}

    :is(#m3-logo-menu, #m3-plus) .m3f-copy{padding: 10px 12px 4px; text-align: center; font-size: 12px; color: var(--m3-dim);}
}

@media (max-width: 1000px){
    /* ---- barre du haut C1 [25/11/2026, https://claude.ai/artifact/Pfpv1WbZ5qGeqgptkapQGp] : ☰ a gauche, titre au centre ----
       #link-home2 ne montre plus le logo ni le nom (le logo est dans les pages qui en ont besoin) : le script de
       Header/header.php y ajoute le ☰ (.m3-logo-chev) ; #m3-titre est le titre de la page, centre sur toute la barre. */
    html:has(#m3-bas) body header.header-site #link-home2 :is(#logo-wrap, #m3dd, #home, #home-hover){display: none !important;}
    html:has(#m3-bas) #link-home2{width: 44px; justify-content: center; padding: 0 !important; margin-left: calc(4px + env(safe-area-inset-left, 0px));}
    html:has(#m3-bas) #link-home2 .m3-logo-chev{width: 24px; height: 24px; margin: 0; opacity: 1; stroke-width: 1.8;}
    html:has(#m3-bas) #link-home2.m3-logo-on .m3-logo-chev{transform: none;}
    html:has(#m3-bas) #m3-titre{position: absolute; left: 0; right: 0; top: var(--m3-st, 0px); height: 54px; z-index: 1; display: flex; align-items: center; justify-content: center;
        padding: 0 98px; box-sizing: border-box; pointer-events: none;   /* [28/11/2026] marges egales, celle du cote le plus charge (a droite : compte, panier), pour que le titre reste au centre de l'ecran */ color: var(--m3-tx); font: 600 16px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;}
    html:has(#m3-bas) #m3-titre span{overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
    html:has(#m3-bas) #m3-titre.m3t-3{padding: 0 142px;}   /* connecte : compte, favoris, panier a droite */
    @media (max-width: 380px){html:has(#m3-bas) #m3-titre.m3t-3{font-size: 15px;}}
    /* [28/11/2026] titre au centre de l'ecran, marges egales des deux cotes, celle du cote le plus charge
       (visiteur : la roue a gauche, le compte a droite ; connecte : compte, favoris, panier a droite) */
    html:has(#m3-bas) #m3-titre{padding: 0 56px;}
    html:has(#m3-bas) #m3-titre.m3t-3{padding: 0 148px;}
    /* [25/11/2026] mode clair, barre du haut « ciel pale » (choix C, https://claude.ai/artifact/3FS1U55wwh2oXZgXmx4hVP) :
       fond bleu tres clair et filet, ☰ et icones en bleu, titre bleu nuit ; le compte allume est blanc cerne de bleu */
    html[data-theme="light"]:has(#m3-bas) body header.header-site,
    html[data-theme="light"]:has(#m3-bas):has(#bande-liens) body header.header-site{background: transparent !important; border-bottom: 1px solid rgba(31, 116, 181, .14) !important; box-shadow: none !important;}   /* [27/11/2026] verre clair de l'ordinateur (::before, plus haut) */
    html[data-theme="light"]:has(#m3-bas) #link-home2{color: #1f74b5 !important;}
    html[data-theme="light"]:has(#m3-bas) #m3-titre{color: #16324a;}
    html[data-theme="light"]:has(#m3-bas) #m3-haut .m3h-b{color: #1f74b5;}
    html[data-theme="light"]:has(#m3-bas) #m3-haut :is(.m3h-on, #m3b-compte[aria-expanded="true"]),
    html[data-theme="light"]:has(#m3-bas):has(:is(#modal-login, #modal-forgot, #modal-reset, #modal-login-devkits):is([style*="block"], .show)) #m3-haut #m3b-compte{background: #ffffff; color: #1f74b5; box-shadow: inset 0 0 0 1px #cfe2f3;}
    /* [25/11/2026] le compte allume n'a plus de fond colore, seulement l'icone en bleu : sur iPhone, Safari 26 melange
       le haut de l'ecran avec ce qui est juste dessous, et etalait ce fond bleu sous l'heure */
    html:has(#m3-bas) #m3-haut :is(.m3h-on, #m3b-compte[aria-expanded="true"]),
    html:has(#m3-bas):has(:is(#modal-login, #modal-forgot, #modal-reset, #modal-login-devkits):is([style*="block"], .show)) #m3-haut #m3b-compte{background: none !important; box-shadow: none !important; color: var(--m3-acc);}
    /* le logo de la page de connexion en bleu (le dessin clair sert de pochoir), halo plus present */
    html[data-theme="light"]:has(#m3-bas) .m3-sc-logo span{background: #2b8be0; -webkit-mask: url("/Theme/logo-m3dd-clair.png") center / contain no-repeat; mask: url("/Theme/logo-m3dd-clair.png") center / contain no-repeat;}
    /* [25/11/2026] en clair, plus de halo (il assombrissait le fond) : une ombre bleutee tres legere sous le logo (choix 4,
       https://claude.ai/artifact/PWgmrBCcDCgf8zW49PXzMb). L'ombre est posee sur le cadre : sur le logo, le pochoir la couperait. */
    html[data-theme="light"]:has(#m3-bas) .m3-sc-logo::before{display: none;}
    html[data-theme="light"]:has(#m3-bas) .m3-sc-logo{filter: drop-shadow(0 6px 8px rgba(31, 116, 181, .28));}

    /* ---- connexion / inscription : numeros d'etape dans les cartes, separes par un filet ---- */
    html:has(#m3-bas) #window-login :is(#form-login, #form-register) > .field-login{align-self: stretch; width: auto !important; margin: 4px 26px 0 !important;}
    html:has(#m3-bas) #window-login :is(#username, #reg-username){width: 100% !important; max-width: none; padding: 0 44px !important;}
    html:has(#m3-bas) #window-login .m3-num{position: absolute; left: 0; top: 0; bottom: 0; width: 42px; z-index: 2; display: flex; align-items: center; justify-content: center;
        pointer-events: none; color: #ffffff; opacity: 1; font: 800 22px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.03em; text-shadow: none;}
    html:has(#m3-bas) #window-login .m3-num > span{display: block; white-space: nowrap; line-height: 1;}
    html:has(#m3-bas) #window-login .m3-num small{margin-left: 1px; font: 600 11px/1 system-ui, sans-serif; opacity: .8; letter-spacing: 0; vertical-align: baseline;}
    html:has(#m3-bas) #window-login :is(.field-login, .valid) > .m3-num::after{content: ""; position: absolute; right: 0; top: 9px; bottom: 9px; width: 1px; background: rgba(255, 255, 255, .3);}
    html:has(#m3-bas) #window-login .m3-plaque .valid{position: relative !important; padding: 0 44px !important;}
    html:has(#m3-bas) #window-login .m3-plaque .valid > .m3-num{opacity: .9;}
    html:has(#m3-bas) #form-login.is-admin .m3-num{display: none !important;}

    /* l'etiquette en verre blanc, en clair */
    html[data-theme="light"]:has(#m3-bas) #window-login :is(#username, #reg-username){background: rgba(255, 255, 255, .75) !important; border-color: rgba(31, 116, 181, .35) !important;
        color: #1d2329 !important; -webkit-text-fill-color: #1d2329; caret-color: #1f74b5; text-shadow: none; box-shadow: 0 4px 14px rgba(31, 116, 181, .12) !important;
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);}
    html[data-theme="light"]:has(#m3-bas) #window-login .field-login[data-ph]:has(> input:placeholder-shown:not(:focus))::after{color: rgba(29, 35, 41, .55); border-left-color: #1f74b5; text-shadow: none;}
    html[data-theme="light"]:has(#m3-bas) #window-login .field-login > .m3-num{color: #1f74b5;}
    html[data-theme="light"]:has(#m3-bas) #window-login .field-login > .m3-num::after{background: rgba(31, 116, 181, .3);}
    html[data-theme="light"]:has(#m3-bas) #window-login .m3-code-nt{background: rgba(255, 255, 255, .75); border: 1px solid rgba(31, 116, 181, .35); color: #1d2329; text-shadow: none;}
    html[data-theme="light"]:has(#m3-bas) .m3-code-nt button{color: #1f74b5;}

    /* ---- inscription : l'avatar arrive, marche jusqu'a l'objet et le touche ----
       Positions comptees depuis le milieu de la scene : cercle d'arrivee a -71 px, objet a +85 px ; la scene a la largeur de
       l'etiquette ; sur les ecrans etroits, la bulle est retenue pour ne pas depasser l'etiquette. Sans animation (mouvement reduit), l'avatar est deja devant l'objet, le bras leve. */
    html:has(#m3-bas) #window-login .m3-marche{position: relative; display: block; align-self: stretch; height: 226px; margin: 2px 26px 0; flex: none;}
    html:has(#m3-bas) #window-login .m3-marche > .m3-num{bottom: auto; top: 52px; height: 30px; color: #ffffff;}
    html[data-theme="light"]:has(#m3-bas) #window-login .m3-marche > .m3-num{color: #1f74b5; opacity: 1;}   /* comme 1/3 */
    html:has(#m3-bas) .m3-pts{position: absolute; left: 50px; top: 66px; width: calc(50% - 28px); height: 4px; opacity: .7;
        background: radial-gradient(circle, var(--m3-acc) 1.2px, transparent 1.5px) 0 0 / 8px 4px repeat-x;}
    html:has(#m3-bas) .m3-tpl{position: absolute; left: min(calc(50% + 85px), calc(100% - 66px)); top: 50px; z-index: 3; transform: translateX(-50%); height: 34px; padding: 0 12px; border-radius: 17px;
        display: flex; align-items: center; gap: 5px; white-space: nowrap; background: linear-gradient(180deg, var(--so-bt1), var(--so-bt2)); color: #ffffff !important; text-decoration: none;
        font: 650 13.5px/1 system-ui, -apple-system, "Segoe UI", sans-serif; animation: m3-rebond 1.4s ease-in-out infinite;}
    html:has(#m3-bas) .m3-tpl svg{width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
    html:has(#m3-bas) .m3-tpl::after{content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--so-bt2);}
    @keyframes m3-rebond{50%{transform: translate(-50%, -5px);}}
    /* [25/11/2026] l'ecran de la borne dit « Touchez » (proposition G, https://claude.ai/artifact/CzcX91NgwKN59nNWXZQ1xg) : pose sur
       l'ecran dessine (objet a +53 px, ecran a 6 px du bord gauche et 66 px du bas du dessin), il apparait quand l'avatar touche la
       borne, donc seulement une fois le nom valide, puis s'eclaire doucement en boucle */
    html:has(#m3-bas) .m3-ecr{left: calc(50% + 59px); bottom: 82px; width: 52px; height: 40px; border-radius: 5px; box-sizing: border-box; opacity: 0;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--so-bt2); color: #ffffff;
        font: 700 10.5px/1 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: nowrap; overflow: hidden;}
    html:has(#m3-bas) .m3-ecr svg{width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;}
    html:has(#m3-bas) .m3-go .m3-ecr{animation: m3-leg .3s ease-out 3s both, m3-ecr 1.4s ease-in-out 3.4s infinite;}
    @keyframes m3-leg{from{opacity: 0;} to{opacity: 1;}}
    @keyframes m3-ecr{50%{background: var(--so-bt1);}}
    html:has(#m3-bas) .m3-deco{position: absolute; inset: 0; pointer-events: none;}
    html:has(#m3-bas) .m3-deco > *{position: absolute;}
    html:has(#m3-bas) .m3-sol{left: 0; right: 0; bottom: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--m3-sol), transparent); opacity: .35;}
    html:has(#m3-bas) .m3-depart{left: calc(50% - 103px); bottom: 12px; width: 64px; height: 22px; border-radius: 50%; border: 1.5px solid var(--m3-sol); box-shadow: 0 0 14px var(--m3-sol); box-sizing: border-box;}
    html:has(#m3-bas) .m3-marche .m3-onde{left: calc(50% - 111px); margin: 0; bottom: 6px; width: 80px; height: 18px;}
    html:has(#m3-bas) .m3-marche .m3-rayon{left: calc(50% - 96px); margin: 0; bottom: 16px; width: 50px; height: 200px;}
    html:has(#m3-bas) .m3-marche .m3-part{bottom: 18px;}
    html:has(#m3-bas) .m3-objet{left: calc(50% + 53px); bottom: 16px; width: 64px; height: 110px;}
    html:has(#m3-bas) .m3-objet svg{width: 64px; height: 110px; display: block;}
    html:has(#m3-bas) .m3-touche{left: calc(50% + 75px); bottom: 66px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--m3-acc); opacity: 0; box-sizing: border-box;}
    html:has(#m3-bas) .m3-marcheur{left: calc(50% - 96px); bottom: 14px; width: 50px; height: 116px; }
    html:has(#m3-bas) .m3-marcheur svg{width: 50px; height: 116px; display: block; overflow: visible;}
    html:has(#m3-bas) .m3-mb{transform-box: view-box;}
    html:has(#m3-bas) .m3-bras{transform-origin: 25px 30px;}
    html:has(#m3-bas) .m3-jambe{transform-origin: 25px 64px;}
    html:has(#m3-bas) .m3-ar{opacity: .75;}
    /* l'arrivee (.m3-tp) : l'avatar apparait sur son cercle et attend. La marche (.m3-go, posee par modal_login.php une fois
       l'arrivee jouee, si le nom est valide) : 3 pas jusqu'a l'objet, bras leve, l'objet s'allume ; une seule fois, l'avatar reste devant l'objet. */
    html:has(#m3-bas) .m3-tp .m3-marcheur svg{animation: m3-app2 1.4s cubic-bezier(.2, .7, .2, 1) 1.35s both;}
    html:has(#m3-bas) .m3-go .m3-marcheur{animation: m3-avance 2.4s linear .2s both;}
    html:has(#m3-bas) .m3-go .m3-jambe.m3-av{animation: m3-pasA .8s ease-in-out .2s 3 both;}
    html:has(#m3-bas) .m3-go .m3-jambe.m3-ar{animation: m3-pasB .8s ease-in-out .2s 3 both;}
    html:has(#m3-bas) .m3-go .m3-bras.m3-av{animation: m3-brasA .8s ease-in-out .2s 3 backwards, m3-leve .5s ease-out 2.6s forwards;}
    html:has(#m3-bas) .m3-go .m3-bras.m3-ar{animation: m3-brasB .8s ease-in-out .2s 3 both;}
    html:has(#m3-bas) .m3-go .m3-corps{animation: m3-bob .4s ease-in-out .2s 6;}
    html:has(#m3-bas) .m3-go .m3-ecran{animation: m3-allume .6s ease-out 2.9s both;}
    html:has(#m3-bas) .m3-go .m3-touche{animation: m3-touche 1s ease-out 2.9s 2;}
    /* [25/11/2026] nom vide apres la marche (.m3-revient, pose par modal_login.php) : l'avatar revient dans son cercle, comme a
       l'arrivee (rayon, ondes, apparition de bas en haut), sans rejouer le reste de la page */
    html:has(#m3-bas) .m3-revient .m3-marche .m3-marcheur svg{animation: m3-app2 1.2s cubic-bezier(.2, .7, .2, 1) .2s both;}
    html:has(#m3-bas) .m3-revient .m3-marche .m3-rayon{animation: m3-rayon 1.4s ease-out both;}
    html:has(#m3-bas) .m3-revient .m3-marche .m3-onde{animation: m3-onde 1.1s ease-out both;}
    html:has(#m3-bas) .m3-revient .m3-marche .m3-onde.m3-o2{animation-delay: .3s;}
    @keyframes m3-app2{0%{clip-path: inset(100% -20px 0 -20px); filter: blur(6px) brightness(2.2); opacity: .2;} 55%{filter: blur(2px) brightness(1.6); opacity: 1;} 100%{clip-path: inset(-20px -20px 0 -20px); filter: none; opacity: 1;}}
    @keyframes m3-avance{from{transform: translateX(0);} to{transform: translateX(103px);}}
    @keyframes m3-pasA{0%, 100%{transform: rotate(0);} 25%{transform: rotate(24deg);} 75%{transform: rotate(-24deg);}}
    @keyframes m3-pasB{0%, 100%{transform: rotate(0);} 25%{transform: rotate(-24deg);} 75%{transform: rotate(24deg);}}
    @keyframes m3-brasA{0%, 100%{transform: rotate(0);} 25%{transform: rotate(-20deg);} 75%{transform: rotate(20deg);}}
    @keyframes m3-brasB{0%, 100%{transform: rotate(0);} 25%{transform: rotate(20deg);} 75%{transform: rotate(-20deg);}}
    @keyframes m3-leve{from{transform: rotate(0);} to{transform: rotate(-78deg);}}
    @keyframes m3-bob{50%{transform: translateY(-2px);}}
    @keyframes m3-allume{from{filter: none;} to{filter: brightness(1.3);}}
    @keyframes m3-touche{0%{opacity: .9; transform: scale(.4);} 100%{opacity: 0; transform: scale(2.4);}}
    /* lien et phrase du bas plus lisibles en sombre */
    html:not([data-theme="light"]):has(#m3-bas) #window-login .m3-lien{color: #ffffff; font-size: 14.5px;}
    html:not([data-theme="light"]):has(#m3-bas) #window-login .m3-lien a{color: var(--so-lien); font-weight: 700;}
    html:not([data-theme="light"]):has(#m3-bas) .m3-pts{opacity: 1;}

    /* ---- echecs [25/11/2026, https://claude.ai/artifact/7fwgkdPYmCTekJgtsNixd9] ----
       nom inconnu : l'ecran Creer un compte, et un message en extension sous l'etiquette (.m3-extn, ajoute par modal_login.php) ;
       autres echecs : une ligne au-dessus du bouton (#login-status.m3-ligne). */
    html:has(#m3-bas) #window-login #login-status[data-m3="inconnu"]{display: none !important;}
    html:has(#m3-bas) #window-login #login-status.m3-ligne{display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
        text-align: center; color: #ffb4a8 !important; font: 500 13.5px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif !important;}
    html[data-theme="light"]:has(#m3-bas) #window-login #login-status.m3-ligne{color: #c0392b !important;}
    html:has(#m3-bas) #window-login .field-login.m3-ext-on > input{border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;}
    html:has(#m3-bas) #window-login .m3-extn{align-self: stretch; margin: 0 26px; padding: 9px 14px 10px; box-sizing: border-box; text-align: center;
        border: 1px solid rgba(255, 255, 255, .2); border-top: 0; border-radius: 0 0 9px 9px;
        background: rgba(0, 0, 0, .38); color: #6cb6ff; font: 500 13.5px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
        -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: m3-nom .4s ease-out both;}
    html[data-theme="light"]:has(#m3-bas) #window-login .m3-extn{background: rgba(255, 255, 255, .75); border-color: rgba(31, 116, 181, .35); border-top: 0; color: #0a64c2;}
    /* a l'arrivee, l'extension vient juste apres l'etiquette (celle-ci apparait a .45 s) */
    html:has(#m3-bas) #window-login.m3-tp .m3-extn{animation: m3-nom .4s ease-out .85s both;}
    /* la bulle de l'etape 2 : « Teleporter », puis « Touchez l'objet » (main) ; elle pulse apres un echec */
    html:has(#m3-bas) .m3-tpl .m3-tpl-main{display: none;}
    html:has(#m3-bas) .m3-tpl.m3-touch .m3-tpl-main{display: block;}
    html:has(#m3-bas) .m3-tpl.m3-touch .m3-tpl-pin{display: none;}
    html:has(#m3-bas) .m3-tpl.m3-pulse{animation: m3-rebond 1.4s ease-in-out infinite, m3-pulse 1.4s ease-out infinite;}
    @keyframes m3-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);}}
    /* ---- [25/11/2026] fenetre d'information (Home/modal_info.php : delai de 24 h, lien envoye, erreur...) au modele de la connexion :
       la scene en plein ecran, le logo, le message dans une etiquette de verre, le bouton dans la plaque du bas ; la croix est masquee
       (le bouton ferme). Ordinateur inchange. */
    html:has(#m3-bas) #modal-info{position: fixed !important; top: calc(54px + var(--m3-st, 0px)) !important; bottom: calc(var(--m3-h) + env(safe-area-inset-bottom, 0px)) !important; left: 0 !important; right: 0 !important;
        width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column; justify-content: flex-start !important; align-items: stretch !important; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; z-index: 50 !important;
        background: var(--m3-grain), var(--m3-scene) !important; background-blend-mode: var(--m3-grain-mode), normal !important; user-select: text;}
    /* la fenetre remplit exactement la zone entre les deux barres (modal_info.css ajoutait 10 px en haut : le bouton sortait de l'ecran) ;
       la plaque du bouton est poussee en bas, a la meme place que sur la connexion */
    html:has(#m3-bas) #modal-i{display: flex; flex-direction: column; align-items: center; flex: 1 0 auto; width: 100%; max-width: 520px; margin: 0 auto; box-sizing: border-box; opacity: 1;
        animation: m3-nom .4s ease-out both; min-height: 0; padding: 10px env(safe-area-inset-right, 0px) 12px env(safe-area-inset-left, 0px);}
    html:has(#m3-bas) #header-modal-i{position: relative; flex: none; width: 150px; height: 150px; margin: 12px auto 4px; padding: 0; display: grid; place-items: center;}
    html:has(#m3-bas) #header-modal-i > #m3ddjpg{display: none !important;}
    html:has(#m3-bas) #header-modal-i::before{content: ""; position: absolute; inset: -10px; border-radius: 50%; filter: blur(10px); background: radial-gradient(circle, var(--m3-halo) 0%, transparent 68%); animation: m3-respire 4s ease-in-out infinite;}
    html:has(#m3-bas) #header-modal-i::after{content: ""; position: relative; width: 88px; height: 88px; background: url("/Img/Png/logo-m3dd.png") center / contain no-repeat;}
    html[data-theme="light"]:has(#m3-bas) #header-modal-i::before{display: none;}
    html[data-theme="light"]:has(#m3-bas) #header-modal-i{filter: drop-shadow(0 6px 8px rgba(31, 116, 181, .28));}
    html[data-theme="light"]:has(#m3-bas) #header-modal-i::after{background: #2b8be0; -webkit-mask: url("/Theme/logo-m3dd-clair.png") center / contain no-repeat; mask: url("/Theme/logo-m3dd-clair.png") center / contain no-repeat;}
    html:has(#m3-bas) #content-modal-i{position: static; flex: 1 1 auto; align-self: stretch; display: flex; flex-direction: column; width: auto; margin: 0; padding: 0;
        background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;}
    html:has(#m3-bas) #content-modal-i::before, html:has(#m3-bas) #content-modal-i > br, html:has(#m3-bas) #close-modal-i{display: none !important;}
    html:has(#m3-bas) #titre-modal-i{margin: 4px 26px 0; padding: 14px 16px; border-radius: 9px; box-sizing: border-box; text-align: center; white-space: normal;
        background: rgba(0, 0, 0, .30); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
        color: #ffffff; font: 500 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;}
    html[data-theme="light"]:has(#m3-bas) #titre-modal-i{background: rgba(255, 255, 255, .75); border-color: rgba(31, 116, 181, .35); color: #1d2329;}
    html:has(#m3-bas) #content-modal-i > a:last-child{display: block; margin: auto 12px 22px; flex: none; padding: 14px; border-radius: 18px; text-decoration: none;
        background: var(--m3-verre); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--m3-verre-bd);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 30px rgba(0, 0, 0, .18);}
    html:has(#m3-bas) #content-modal-i .button-i{display: flex; align-items: center; justify-content: center; height: 50px; margin: 0; padding: 0 12px; border-radius: 13px; transform: none;
        background: linear-gradient(180deg, var(--so-bt1), var(--so-bt2)); color: #ffffff; font: 650 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 8px 20px rgba(var(--so-bt2-rgb), .28);}

    /* ---- [25/11/2026] mot de passe oublie : le message (#forgot-status) en extension sous le champ, comme a la connexion ---- */
    html:has(#m3-bas) #window-forgot .field-login.m3-ext-on > input{border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;}
    html:has(#m3-bas) #window-forgot .field-login.m3-ext-on{margin-bottom: 0 !important;}
    html:has(#m3-bas) #window-forgot #forgot-status.m3-extn{display: block !important; margin: 0 0 16px !important; padding: 9px 14px 10px !important; box-sizing: border-box; text-align: center;
        border: 1px solid rgba(255, 255, 255, .2) !important; border-top: 0 !important; border-radius: 0 0 9px 9px !important; background: rgba(0, 0, 0, .38) !important;
        color: #6cb6ff !important; font: 500 13.5px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);}
    html[data-theme="light"]:has(#m3-bas) #window-forgot #forgot-status.m3-extn{background: rgba(255, 255, 255, .75) !important; border-color: rgba(31, 116, 181, .35) !important; color: #0a64c2 !important;}
    /* ---- [25/11/2026] etape du code : le message (#code-status.m3-ligne, deplace par modal_login.php) en ligne sous la phrase du code,
       rouge pale si erreur, bleu sinon (renvoye, patientez) ---- */
    html:has(#m3-bas) #window-login #code-status.m3-ligne{display: block !important; margin: -4px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
        text-align: center; color: #6cb6ff !important; font: 600 13.5px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif !important;}
    html:has(#m3-bas) #window-login #code-status.m3-ligne.is-error{color: #ffb4a8 !important;}
    html[data-theme="light"]:has(#m3-bas) #window-login #code-status.m3-ligne{color: #0a64c2 !important;}
    html[data-theme="light"]:has(#m3-bas) #window-login #code-status.m3-ligne.is-error{color: #c0392b !important;}
    /* ---- [25/11/2026] les intitules au-dessus des champs (.lbl-row : MOT DE PASSE, Oublie ?, E-MAIL) plus grands, 4 px de chaque cote ---- */
    html:has(#m3-bas) .lbl-row .lbl-login{font-size: 13px !important; padding: 0 4px !important;}
    html:has(#m3-bas) .lbl-row #span-oublie{font-size: 14px !important; padding: 0 4px !important;}
}

@media (max-width: 1000px) and (prefers-reduced-motion: reduce){
    #m3-feuille, #m3-logo-menu, #m3-plus{animation: none;}
    html:has(#m3-bas) :is(#modal-login-show, #modal-forgot-show, #modal-reset-show, #modal-login-show-devkits){animation: none !important;}
    html:has(#m3-bas) .m3-sc-logo::before{animation: none !important;}
    html:has(#m3-bas) :is(.m3-tp .m3-rayon, .m3-tp .m3-onde, .m3-tp .m3-part, .m3-tp .m3-mann, .m3-tp .field-login, .m3-tp .m3-code-nt){animation: none !important;}
    html:has(#m3-bas) .field-login::after{animation: none !important;}
    .m3-logo-chev{transition: none;}
    html:has(#m3-bas) .m3-marche *{animation: none !important;}
    html:has(#m3-bas) .m3-go .m3-marcheur{transform: translateX(103px);}
    html:has(#m3-bas) .m3-go .m3-bras.m3-av{transform: rotate(-78deg);}
    html:has(#m3-bas) .m3-go .m3-ecr{opacity: 1;}
    html:has(#m3-bas) :is(.m3-sc-logo, .m3-av, .m3-marche, .m3-plaque, #form-code){animation: none !important;}
    :is(#m3-feuille, #m3-logo-menu) .m3f-sw, :is(#m3-feuille, #m3-logo-menu) .m3f-sw::after{transition: none;}
}

/* [28/11/2026] MODE CLAIR DU TELEPHONE : THEME « PORCELAINE » (prototype https://claude.ai/artifact/XRDMcRF4aRxiWo6RHsefVs, onglet Thèmes clairs complets).
   Un seul jeu de couleurs pour tous les ecrans du telephone en clair (barres, accueil, connexion, page legale, feuilles) :
   tout est blanc ; encre bleu nuit (#16324a) pour les textes, les icones et le logo ; un seul bleu vif (#1f74b5) pour ce qui
   se touche ou est actif ; filets gris-bleu (#e4e9ee). Les valeurs vivent dans Theme/theme.css (variables --po-*). Ce bloc vient en dernier : il l'emporte sur les anciens reglages
   clairs (barre « ciel pale », logo bleu, scene bleutee). */
@media (max-width: 1000px){
    /* les variables --po-* sont definies dans Theme/theme.css (communes au telephone et a l'ordinateur) */
    html[data-theme="light"]:has(#m3-bas){background-color: var(--po-fond);
        --m3-fond: var(--po-fond); --m3-feuille: var(--po-fond); --m3-tx: var(--po-encre); --m3-dim: var(--po-doux); --m3-acc: var(--po-bleu);
        --m3-sep: var(--po-filet); --m3-trait: var(--po-filet); --m3-appui: var(--po-bleu-doux);
        --m3-scene: var(--po-fond); --m3-grain: linear-gradient(transparent, transparent); --m3-voile-page: var(--po-voile);}
    /* les deux barres */
    html[data-theme="light"]:has(#m3-bas) body header.header-site::before, html[data-theme="light"]:has(#m3-bas) #m3-bas{background: var(--po-barre);}
    html[data-theme="light"]:has(#m3-bas) nav#header{background: transparent !important;}   /* [28/11/2026] le voile gris du clair (Theme/theme.css, --hd-bg) grisait la barre sur certaines pages (page legale) */
    html[data-theme="light"]:has(#m3-bas) body header.header-site,
    html[data-theme="light"]:has(#m3-bas):has(#bande-liens) body header.header-site{border-bottom: 1px solid var(--po-filet) !important;}
    html[data-theme="light"]:has(#m3-bas) #m3-bas{border-top: 1px solid var(--po-filet); color: var(--po-eteint);}
    html[data-theme="light"]:has(#m3-bas) #m3-bas .m3b-on, html[data-theme="light"]:has(#m3-bas) #m3-bas #m3b-plus.m3b-ouvert{color: var(--po-bleu);}
    html[data-theme="light"]:has(#m3-bas) #link-home2{color: var(--po-encre) !important;}
    html[data-theme="light"]:has(#m3-bas) #m3-titre{color: var(--po-encre);}
    html[data-theme="light"]:has(#m3-bas) #m3-haut .m3h-b{color: var(--po-encre);}
    html[data-theme="light"]:has(#m3-bas) #m3-haut :is(.m3h-on, .m3h-co, #m3b-compte[aria-expanded="true"]),
    html[data-theme="light"]:has(#m3-bas):has(:is(#modal-login, #modal-forgot, #modal-reset, #modal-login-devkits):is([style*="block"], .show)) #m3-haut #m3b-compte{color: var(--po-bleu);}
    /* les onglets de la page legale, dans la barre */
    html[data-theme="light"]:has(#m3-bas) #m3-legal{--m3-tx: var(--po-encre);}
    html[data-theme="light"]:has(#m3-bas) #m3-legal .m3l-ong a{color: var(--po-encre);}
    html[data-theme="light"]:has(#m3-bas) #m3-legal .m3l-ong a.m3l-on{background: var(--po-bleu-doux); color: var(--po-bleu);}
    html[data-theme="light"]:has(#m3-bas) #m3-legal .m3l-ret{color: var(--po-encre);}
    /* les feuilles (reglages, compte, plus) et leurs voiles */
    html[data-theme="light"]:has(#m3-bas) :is(#m3-logo-menu, #m3-feuille, #m3-plus){background: var(--po-fond); border-color: var(--po-filet);}
    html[data-theme="light"]:has(#m3-bas) :is(#m3-logo-voile, #m3-voile, #m3-plus-voile){background: var(--po-voile);}
    html[data-theme="light"]:has(#m3-bas) :is(#m3-logo-menu, #m3-plus) .m3m-ic{background: var(--po-bleu-doux); border-color: var(--po-filet); color: var(--po-encre);}
    html[data-theme="light"]:has(#m3-bas) #m3-plus .m3pl-t{background: var(--po-bande); color: var(--po-bleu);}
    html[data-theme="light"]:has(#m3-bas) #m3-plus .m3pl-poignee{background: var(--po-filet);}
    /* le logo (ecran de connexion, ecran d'information) a l'encre, ombre neutre tres legere */
    html[data-theme="light"]:has(#m3-bas) .m3-sc-logo span, html[data-theme="light"]:has(#m3-bas) #header-modal-i::after{background: var(--po-encre);}
    html[data-theme="light"]:has(#m3-bas) :is(.m3-sc-logo, #header-modal-i){filter: drop-shadow(0 6px 10px rgba(22, 50, 74, .14));}
}
