/* Nouvel accueil PC (maquette de Tonio, 25/11/2026) : visible seulement avec body.hub-pc */
.demarrage>*{opacity:0;pointer-events:none;animation:demarrage 1ms 5s forwards!important}   /* page vide pendant le chargement (app.js : pret) ; au bout de 5 s, elle s'affiche quoi qu'il arrive */
@keyframes demarrage{to{opacity:1;pointer-events:auto}}
.hub,.h-voile,.h-x{display:none}
.hub-pc .hub{display:grid}
.hub-pc #accueil{display:block;padding:18px 22px;background:#070807;min-height:100dvh}
.hub-pc #accueil .apo-bot{display:none}
.hub-pc #menuJeu{top:74px;right:calc(50vw - min(50vw - 24px,672px) + 70px)}
.hub{--h-or:#dfb765;--h-fond:#1d1a14;--h-filet:#6b5425;max-width:1344px;min-height:calc(100dvh - 36px);margin:0 auto;border:1px solid var(--h-filet);border-radius:14px;grid-template-rows:auto 1fr auto;overflow:hidden;background:#0a0b0a}
.hub h1,.hub h2{margin:0;font-family:var(--texte)}
.hub h2{font-size:14px;text-transform:uppercase;letter-spacing:.03em;color:#e8c784;font-weight:700}
.h-haut{display:grid;grid-template-columns:auto auto 1fr auto auto;align-items:center;gap:20px;padding:12px 18px;background:#14140f;border-bottom:1px solid #3a3325}
.h-logo{line-height:1;text-align:center;padding-right:20px;border-right:1px solid #4a3d22}.h-logo b{font:900 30px/1 var(--titre);color:#f2cd80}.h-logo small{display:block;font:700 9px var(--titre);letter-spacing:.34em;color:#e08a3a;margin-top:2px;padding-left:.3em}
.h-jouer{display:flex;align-items:center;justify-content:center;gap:12px;min-width:176px;background:linear-gradient(#f0cf85,#d0a450);color:#241804;font-weight:800;font-size:17px;letter-spacing:.05em;border-radius:10px;padding:14px 22px;border:1px solid #f8e2a8;box-shadow:0 0 22px #dfb7652e}
.h-jouer:hover,.h-fam:hover{filter:brightness(1.12)}
.h-nav{display:flex;justify-content:center;gap:34px}
.h-ong{text-transform:uppercase;font-size:15.5px;font-weight:700;letter-spacing:.03em;color:#eadcc0;padding:10px 4px;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}.h-ong:hover{color:#fff;border-color:#8a6d33}.h-ong[aria-current]{color:#f7cf7d;border-color:var(--h-or)}
.h-outils{display:flex;align-items:center;gap:8px;padding-left:18px;border-left:1px solid #4a3d22}
.h-outils .rapides{display:flex;margin:0}.h-outils .btn-rond{background:none;border-color:#4a3d22;width:38px;height:38px}
.h-avatar{width:42px;height:42px;border-radius:50%;border:2px solid var(--h-or);color:#f0cf8d;display:grid;place-items:center;overflow:hidden}.h-avatar img{width:100%;height:100%;object-fit:cover}
.h-corps{display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:0}
.h-main{padding:22px 20px 24px;display:grid;gap:16px;align-content:start;min-width:0}
.h-titre,.h-sous{display:flex;justify-content:space-between;align-items:end;gap:14px}.h-sous{align-items:center;color:#c9bda8}
.h-titre small{text-transform:uppercase;font-size:13px;color:#d3b06a}.h-titre h1{font-weight:700;font-size:clamp(34px,3.4vw,48px);line-height:1.1;color:#f3dcae}
.h-lien{color:#d3b06a;font-size:14px;padding:6px 2px;text-align:left}.h-lien:hover{color:#ffe3a6}
.h-place:empty,.h-place:has(>[hidden]:only-child):not(:has(.liste-social)){display:none}
.h-ban{position:relative;border:1px solid #8a6a2c;border-radius:14px;overflow:hidden;line-height:0;background:#05080a}.h-ban img{width:100%;height:auto;aspect-ratio:1937/717}
.h-zone{position:absolute;border-radius:12px;transition:background .15s,box-shadow .15s}.h-zone:hover{background:#46d5c81c;box-shadow:inset 0 0 0 2px #46d5c8aa}
.z-relever{left:2.8%;top:56.6%;width:25.2%;height:12.5%}.z-facile{left:32%;top:12%;width:18.3%;height:80.500%}.z-moyen{left:52.4%;top:9%;width:18.200%;height:83.500%}.z-expert{left:73.7%;top:3%;width:19.700%;height:89.500%}
.h-familles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.h-fam{border:1px solid #4a3d24;border-radius:11px;overflow:hidden;background:var(--h-fond);display:grid}.h-fam img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:center 22%}.h-fam span{padding:9px 6px;text-align:center;color:#eadcc2;font-size:14px}
.h-cote{border-left:1px solid #3a3325;background:#0e0f0c;padding:16px 14px;display:grid;gap:12px;grid-template-rows:auto auto minmax(160px,1fr);min-width:0}
.h-cote .h-bloc:has(#socialJoueurs){grid-template-rows:auto minmax(0,1fr)}
.h-cote .h-place:has(>#socialJoueurs){position:relative;min-height:0}
.h-cote #socialJoueurs{position:absolute;inset:0;max-height:none;align-content:start}
.h-bloc{background:#171610;border:1px solid #2f2a1d;border-radius:12px;padding:14px;display:grid;gap:10px;min-width:0}
.h-bt{display:flex;align-items:center;gap:8px;min-height:24px}.h-bt .h-lien{margin-left:auto;padding:2px 0;font-size:13px}
.h-n{background:#2e2712;color:#f0cf8d;border-radius:99px;padding:1px 9px;font:700 12px var(--texte)}.h-n .compte-ong{all:unset}
.h-esps{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.h-esp{display:flex;align-items:center;gap:8px;padding:9px 8px;border-radius:8px;background:#1f1c14;color:#d8c9a8;text-align:left;font-size:13.5px}.h-esp:hover{background:#2a2417;color:#fff}.h-esp svg{color:#d3b06a;flex:none}
.h-invite{display:grid;gap:6px;font-size:13px;color:#b7a88f}.h-invite[hidden]{display:none}.h-invite .champ{padding:9px 12px;font-size:15px}
.h-pied{display:flex;justify-content:space-between;align-items:center;padding:10px 18px;border-top:1px solid #3a3325;background:#12120e;color:#c9bda8;font-size:14px}.h-pied div{display:flex;gap:20px}
/* blocs existants, déplacés */
:is(.hub,.am) .carte-profil{background:none;border:0;padding:0;display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center}:is(.hub,.am) .carte-profil[hidden]{display:none}
:is(.hub,.am) .carte-profil .btn{grid-column:1/-1;padding:11px;border-radius:9px;box-shadow:none;font-size:14px}:is(.hub,.am) .carte-profil .btn:not(.sec){background:#dcb668;border-color:#f0d28c}:is(.hub,.am) .carte-profil .btn.sec{background:#29241b;border-color:#29241b}
:is(.hub,.am) .carte-profil .pf-c-texte:first-child{grid-column:1/-1}
:is(.hub,.am) .reprise{margin:0;border-color:#46a06a;background:#12231a;display:flex;justify-content:space-between;align-items:center}:is(.hub,.am) .reprise[hidden]{display:none}
:is(.hub,.am) .liste-social,:is(.hub,.am) .liste-social[hidden]{display:grid!important;max-height:470px;overflow:auto;scrollbar-width:thin;scrollbar-color:#4a3d24 transparent;gap:6px;margin:0}
:is(.hub,.am) .lig-social{background:none;border:0;border-radius:0;padding:8px 0;gap:10px;border-top:1px solid #2a2619}:is(.hub,.am) .liste-social>.lig-social:first-child{border-top:0;padding-top:2px}
:is(.hub,.am) .liste-social{gap:0!important}:is(.hub,.am) .lig-texte b{font-size:14.5px}:is(.hub,.am) .lig-texte small{font-size:12.5px;white-space:nowrap}
:is(.hub,.am) .lig-social .btn.mini{box-shadow:none;background:#2a2417;border-color:#4a3d24;padding:7px 12px;font-size:13px}:is(.hub,.am) .lig-social .btn.mini:hover:not([disabled]){border-color:var(--h-or)}
:is(.hub,.am) .note.rien{background:none;padding:0;margin:0;color:#8f8674;font-size:13px}
/* formulaires en fenêtre */
.hub-pc #accueil>.boite{display:none}
.hub-pc #accueil[data-fen]>.h-voile{display:block;position:fixed;inset:0;background:#000c;z-index:58}
.hub-pc #accueil[data-fen]>.boite{display:block;position:fixed;inset:0;margin:auto;width:min(620px,92vw);max-width:none;height:fit-content;max-height:94dvh;overflow:auto;z-index:59}
.hub-pc #accueil[data-fen]>.boite>*:not(.choix){display:none}
.hub-pc #accueil[data-fen] .choix{display:block}
.hub-pc #accueil[data-fen] form{display:none;position:relative}
.hub-pc #accueil[data-fen=creer] #formCreer,.hub-pc #accueil[data-fen=rejoindre] #formRejoindre{display:grid}
.hub-pc .h-x{display:block;position:absolute;right:12px;top:12px;width:36px;height:36px;border-radius:8px;color:var(--mute)}.h-x:hover{color:#fff}
.hub-pc #formRejoindre .social{display:none}
/* choix d'un robot */
#fenProfil.large{width:min(760px,94vw)}
.h-bots{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.h-bot{border:1px solid #2b4a4b;border-radius:12px;background:#0c1516;padding:0 0 12px;display:grid;gap:6px;justify-items:center;overflow:hidden;text-align:center}.h-bot img{width:100%;aspect-ratio:1/1;object-fit:cover;object-position:center 20%}
.h-bot.on{border-color:#46d5c8;box-shadow:0 0 0 2px #46d5c8;background:#102a2c}.h-bot b{font:700 18px var(--titre);color:#f3dcae}.h-bot small{color:#a9c4c1;font-size:13px}.h-bot .libre{color:#6fc08a}.h-bot .pris{color:#d98a82}
.h-cour{display:flex;align-items:center;gap:7px;font-size:13px;color:#e6dac4}
.couronne{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;color:#6f6a62}.couronne.gagnee{fill:currentColor}.couronne.bronze{color:#c8794a}.couronne.argent{color:#cfd6de}.couronne.or{color:#f0c24e}.couronne:not(.gagnee){opacity:.55}
@media (max-width:600px){.h-bots{grid-template-columns:1fr 1fr 1fr;gap:6px}.h-bot b{font-size:14px}}
.lig-bot{width:36px;height:36px;border-radius:50%;object-fit:cover;object-position:center 15%;flex:none;border:2px solid #3f9d92}.lig-bot.partie{border-color:#8a4a42;filter:grayscale(.7)}
:is(.hub,.am) .h-bt h2,:is(.hub,.am) .h-bt .h-lien{white-space:nowrap}
:is(.hub,.am) .lig-social .pastille-etat{margin:0 13px}
:is(.hub,.am) .lig-texte{min-width:0}:is(.hub,.am) .lig-texte b,:is(.hub,.am) .lig-texte small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.hub,.am) .lig-social .btn.mini{min-width:92px;flex:none}
.h-actions{display:flex;gap:10px}
.h-jouer.sec{background:#231d12;color:#f0cf8d;border-color:#8a6d33;box-shadow:none}
@media (max-width:1200px){.h-jouer{min-width:0;font-size:15px;padding:13px 16px}.h-nav{gap:20px}.h-haut{gap:14px}}
.h-avatar.on{box-shadow:0 0 0 3px #dfb76555}
.hub-pc .h-haut{--h-or:#dfb765}
.h-logo:hover{filter:brightness(1.2)}
.hub{grid-template-columns:minmax(0,1fr)}@media (max-width:1120px){.h-nav{gap:12px}.h-ong{font-size:14px;letter-spacing:0}.h-haut{gap:10px;padding-inline:12px}.h-logo{padding-right:12px}.h-jouer{padding:12px 12px;gap:8px;font-size:14px}.h-outils{padding-left:10px;gap:5px}}
/* pages Cartes, Règles, Statistiques dans le même cadre (PC) */
.r-cote,.r-page>.h-pied{display:none}
body[data-ecran="regles"]:not(.hub-pc) #menuJeu{display:none}
.tc-tete h2{margin:0!important;border:0!important;padding:0!important}.tc-tete .note{margin:2px 0 10px}
.tc-outils{display:flex;gap:10px;margin:4px 0 16px}.tc-outils .tc-recherche{flex:1;max-width:none;margin:0}.tc-outils select{width:auto}
.galerie-grille.t-petit{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))}.galerie-grille.t-moyen{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}.galerie-grille.t-grand{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
@media (max-width:700px){.tc-outils{flex-wrap:wrap}.tc-outils .tc-recherche{flex-basis:100%}.tc-outils select{flex:1}.galerie-grille.t-moyen{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:12px}.galerie-grille.t-grand{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}
.hub-pc #regles{background:#070807;padding:18px 22px;min-height:100dvh}
.hub-pc #regles>.h-haut{max-width:1344px;margin:0 auto 18px;border:1px solid #6b5425;border-radius:14px}
.hub-pc #regles .r-page{--h-or:#dfb765;max-width:1344px;padding:0;gap:0;border:1px solid #6b5425;border-radius:14px;background:#0a0b0a;grid-template-columns:236px minmax(0,1fr);grid-template-rows:1fr auto;min-height:calc(100dvh - 130px)}
.hub-pc #regles .r-onglets,.hub-pc #regles .r-sommaire,.hub-pc #regles .tc-puces,.hub-pc #regles .st-nav,.hub-pc #regles .fam-choix{display:none}
.hub-pc #regles .r-cote{display:grid;gap:20px;align-content:start;padding:18px 12px;border-right:1px solid #3a3325;background:#0e0f0c;border-radius:13px 0 0 0;position:sticky;top:0;max-height:100dvh;overflow:auto;scrollbar-width:thin;scrollbar-color:#4a3d24 transparent}
.r-cg{display:grid;gap:2px}.r-cg h2{margin:0 0 6px;padding:0 10px;font:700 13px var(--texte);text-transform:uppercase;letter-spacing:.04em;color:#e8c784}
.r-cg button,.r-cg a{display:flex;justify-content:space-between;gap:8px;align-items:center;text-align:left;padding:8px 10px;border-radius:8px;border:1px solid transparent;color:#d8caac;font-size:14px;text-decoration:none}
.r-cg button:hover,.r-cg a:hover{background:#1f1c14;color:#fff}.r-cg [aria-current]{background:#33270f;border-color:#8a6d33;color:#f6d796;font-weight:700}
.r-cg span{font-size:12px;color:#9b9083;font-variant-numeric:tabular-nums}.r-cg [aria-current] span{color:#e8c784}
.hub-pc #regles .r-corps{grid-template-columns:minmax(0,1fr);padding:22px 24px 30px}
.hub-pc #regles .r-contenu h2,.hub-pc #regles .r-contenu h3,.hub-pc #regles .r-contenu h1{scroll-margin-top:20px}
.hub-pc #regles .tc-tete h2,.hub-pc #regles .st-titre{font:700 30px var(--texte);color:#f3dcae}
.hub-pc #regles .r-page>.h-pied{display:flex;grid-column:1/-1;border-radius:0 0 13px 13px}.h-pied .h-lien{text-decoration:none}
.hub-pc #regles .champ{padding:10px 14px;font-size:15px}
.h-retour,.hub-partie .h-haut .h-jouer:not(.h-retour),.hub-partie .h-ong:first-child,.hub-partie .h-avatar{display:none}.hub-partie .h-retour{display:flex}
.hub-partie .h-retour{background:linear-gradient(#1f8a76,#0f5c4e);color:#fff;border-color:#46c9ae;box-shadow:0 3px 0 #07332b,0 0 18px #1f8a7640}
.hub-partie .halo{left:0;top:0;width:100%;height:100%;border-radius:0}
body:not(.admin) #ongStats,body:not(.admin) #btnStats,body:not(.admin) [data-menu="stats"],body:not(.admin) .r-onglets [data-r="stats"]{display:none!important}
/* pages Règles, Cartes, Statistiques hors cadre PC (téléphone, petite fenêtre) : une barre d'une ligne, qui défile */
body:not(.hub-pc) #regles{background:#0a0b0a;padding-top:0}
body:not(.hub-pc) .r-page{gap:14px}
body:not(.hub-pc) .r-onglets{top:0;margin:0 calc(-1 * max(16px,env(safe-area-inset-right,0px))) 0 calc(-1 * max(16px,env(safe-area-inset-left,0px)));padding:env(safe-area-inset-top,0px) 14px 0 0;flex-wrap:nowrap;gap:2px;overflow-x:auto;scrollbar-width:none;background:#14140ff2;border:0;border-bottom:1px solid #3a3325;border-radius:0;backdrop-filter:blur(10px)}
body:not(.hub-pc) .r-onglets::-webkit-scrollbar{display:none}
body:not(.hub-pc) .r-onglets button,body:not(.hub-pc) .r-onglets a{flex:none;min-height:52px;display:flex;align-items:center;padding:0 14px;border:0;border-bottom:3px solid transparent;border-radius:0;font:700 15px var(--texte);letter-spacing:0;color:#d8caac;background:none}
body:not(.hub-pc) .r-onglets button[aria-selected="true"]{background:none;color:#f7cf7d;border-color:#dfb765}
body:not(.hub-pc) #retourRegles{position:sticky;left:0;z-index:2;background:#14140f;color:#f0cf8d;padding:0 14px 0 16px;box-shadow:10px 0 12px -6px #0a0b0a}
body:not(.hub-pc) .r-contenu h2{font-family:var(--texte)}
body:not(.hub-pc) .st-titre,body:not(.hub-pc) .tc-tete h2{font:700 26px var(--texte)!important;color:#f3dcae}
@media (max-width:700px){
  body:not(.hub-pc) .st-nav,body:not(.hub-pc) .galerie-filtres{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-16px;margin-left:-16px;padding:0 16px}
  body:not(.hub-pc) .galerie-filtres::-webkit-scrollbar{display:none}
  body:not(.hub-pc) .galerie-filtres button{flex:none;min-height:38px;padding:0 14px;font-size:14px}
  body:not(.hub-pc) .st-tuile b{font-family:var(--texte)}
}
body:not(.hub-pc) .r-page{grid-template-columns:minmax(0,1fr)}
body:not(.hub-pc) .r-corps>*{min-width:0}
@media (max-width:900px){.r-corps .r-sommaire{display:none}}
body:not(.hub-pc) .r-onglets{justify-self:stretch;min-width:0;width:auto;max-width:none}

/* Présentation des robots dans la liste de l'accueil PC. */
.hub #socialJoueurs .lig-social.robot{--bot:#5abd87;background:linear-gradient(110deg,#1e3026,#171b16);border:1px solid color-mix(in srgb,var(--bot) 45%,#30291d);border-radius:10px;padding:10px;margin-bottom:7px;box-shadow:none;gap:9px}
.hub #socialJoueurs .lig-social.robot:has(img[src*="bot-moyen"]){--bot:#6aa9d4;background:linear-gradient(110deg,#1c2934,#171b1d)}
.hub #socialJoueurs .lig-social.robot:has(img[src*="bot-expert"]){--bot:#d77d70;background:linear-gradient(110deg,#33201e,#1c1816)}
.hub #socialJoueurs .lig-social.robot .lig-bot{width:48px;height:48px;border-color:var(--bot)}
.hub #socialJoueurs .lig-social.robot .lig-texte b{color:#f4e5c6;font-size:15px}
.hub #socialJoueurs .lig-social.robot .lig-texte small{color:var(--bot);font-weight:700}
.hub #socialJoueurs .lig-social.robot .btn.mini{min-width:80px;padding:7px 8px;border-color:var(--bot)}
/* lanceur 15 % moins haut (29/11/2026) */
.hub-pc #accueil{padding-block:12px}.hub-pc .hub{min-height:calc(100dvh - 24px)}
.hub .h-haut{padding-block:9px}.hub .h-jouer{padding-block:11px}.hub .h-main{padding:12px 20px 14px;gap:11px}.hub .h-titre h1{font-size:clamp(28px,2.7vw,38px);line-height:1.05}.hub .h-fam img{aspect-ratio:15/8;object-position:center 17%}.hub .h-fam span{padding:6px}.hub .h-familles{gap:10px}.hub .h-pied{padding-block:9px}.hub .h-cote{padding-block:12px;gap:10px}
