
/* R-TAGS PHASE 1 — sélecteur des 4 univers. Aucun style CORE remplacé. */
.p1-screen{padding:54px 14px 24px;overflow:auto;background:radial-gradient(circle at 50% 18%,rgba(138,162,146,.13),transparent 36%),#090d0f}
.p1-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.p1-head div{min-width:0}.p1-head span{display:block;color:#a9b4ad;font-size:10px;letter-spacing:.16em}.p1-head b{display:block;color:#edf0e9;font-size:18px;margin-top:4px}
.p1-back{min-width:74px;border:1px solid #5d6763;background:linear-gradient(#2b3031,#171b1c);color:#e7e3d7;border-radius:9px;padding:9px 10px;font-weight:800}
.p1-universe-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.p1-universe-card{min-height:128px;border:1px solid #65706b;border-radius:15px;background:linear-gradient(145deg,#2b3132,#111516 60%,#202625);box-shadow:inset 0 1px rgba(255,255,255,.08),0 9px 20px rgba(0,0,0,.27);color:#ececdf;text-align:left;padding:18px;position:relative}
.p1-universe-card b{display:block;font-size:16px;letter-spacing:.06em}.p1-universe-card small{display:block;margin-top:10px;color:#9fa9a2;font-weight:700}
.p1-led{width:7px;height:7px;border-radius:50%;display:block;background:#8da995;border:1px solid #c2d5c8;margin-bottom:18px;box-shadow:none}
.p1-last{margin-top:13px}.p1-last button{width:100%;text-align:left;border:1px solid #535e59;border-radius:11px;background:#121716;color:#e9ebe5;padding:11px}.p1-last b,.p1-last span{display:block}.p1-last b{font-size:9px;color:#9eb2a4;letter-spacing:.14em}.p1-last span{margin-top:4px}
.p1-profile-grid{display:flex;flex-direction:column;gap:9px}
.p1-profile-card{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #5b6661;border-radius:12px;background:linear-gradient(110deg,#252b2c,#111516);color:#eeefe8;padding:12px}
.p1-profile-icon{width:42px;height:42px;flex:0 0 42px;border-radius:10px;border:1px solid #6e7973;display:grid;place-items:center;background:#171d1c;color:#d8ded7;font-size:19px;font-weight:900}
.p1-profile-copy{min-width:0}.p1-profile-copy b,.p1-profile-copy small,.p1-profile-copy i{display:block}.p1-profile-copy b{font-size:13px;letter-spacing:.035em}.p1-profile-copy small{margin-top:3px;color:#c7cec9;font-size:11px}.p1-profile-copy i{font-style:normal;color:#8f9a94;font-size:10px;margin-top:4px;line-height:1.3}
.p1-foot{margin-top:16px;color:#7f8a84;text-align:center;font-size:9px;letter-spacing:.11em}
@media(max-width:430px){.p1-universe-grid{grid-template-columns:1fr 1fr}.p1-universe-card{min-height:116px;padding:15px}.p1-universe-card b{font-size:14px}}

/* A02.10 — 4 univers canoniques */
.p1-universe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.p1-core-universe-strip{grid-template-columns:repeat(4,minmax(0,1fr))!important}

/* A02.11 — 5 univers canoniques */
.p1-core-universe-strip{grid-template-columns:repeat(5,minmax(0,1fr))!important}

/* A02.12 — robustesse affichage cartes */
#universe.p1-screen,#profile.p1-screen{position:relative;z-index:20}
#universeGrid,#profileGrid{position:relative;z-index:25;min-height:120px;opacity:1!important;visibility:visible!important}
.p1-universe-card,.p1-profile-card{position:relative;z-index:26;display:flex!important;opacity:1!important;visibility:visible!important}
.p1-universe-card{flex-direction:column;align-items:flex-start;justify-content:center}
.p1-load-error{padding:24px;border:1px solid #7a4b4b;border-radius:12px;color:#ffb0b0;background:#231313;font-weight:800;text-align:center}

/* V5 : mise en avant pendant le choix, proportions normales après sélection. */
#universe.p1-choosing .p1-universe-card{min-height:138px;border-color:#a0ad9e;transition:min-height .18s ease,border-color .18s ease}
#universe:not(.p1-choosing) .p1-universe-card{min-height:100px}
@media(max-width:430px){#universe.p1-choosing .p1-universe-card{min-height:126px;padding:14px}}

/* V6.3 industrialisation — confinement horizontal mobile, sans modifier les matériaux 3D. */
@media (max-width:430px){
  #universe.p1-screen,#profile.p1-screen{box-sizing:border-box;max-width:100%;min-width:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
  #universeGrid,#profileGrid{box-sizing:border-box;max-width:100%;min-width:0}
  .p1-universe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .p1-universe-card,.p1-profile-card{box-sizing:border-box;min-width:0;max-width:100%}
  .p1-profile-copy{flex:1 1 0;min-width:0;overflow-wrap:anywhere}
  .p1-profile-copy b,.p1-profile-copy small,.p1-profile-copy i{overflow-wrap:anywhere}
}

/* Parcours esthétique : surcouche graphite/titane, sans altérer la V6.3 de référence. */
#aestheticWorkflow{position:fixed;inset:0;z-index:10000;overflow-y:auto;overflow-x:hidden;background:#090d0f;color:#eeefe8;box-sizing:border-box;padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(12px,env(safe-area-inset-left,0px))}
#aestheticWorkflow *{box-sizing:border-box}
#aestheticWorkflow .aes-panel{max-width:480px;margin:0 auto;padding:18px 0 30px}
#aestheticWorkflow .aes-head{display:flex;flex-direction:column;gap:5px;padding:16px 12px;border:1px solid #7e7461;border-radius:13px;background:linear-gradient(145deg,#303537,#111719);box-shadow:inset 0 1px rgba(255,255,255,.12),0 7px 18px #0008}
#aestheticWorkflow .aes-head span{color:#b8b6a8;font-size:10px;letter-spacing:.14em}
#aestheticWorkflow .aes-head strong{font-size:18px;letter-spacing:.035em;overflow-wrap:anywhere}
#aestheticWorkflow .aes-crumb{font-weight:800;font-size:15px;padding:17px 4px 10px;overflow-wrap:anywhere}
#aestheticWorkflow .aes-nav{display:flex;gap:9px;margin-bottom:14px}
#aestheticWorkflow button{font:inherit;color:#f2eee1;cursor:pointer}
#aestheticWorkflow .aes-nav button,#aestheticWorkflow .aes-form button{flex:1;min-height:44px;border:1px solid #8d8069;border-radius:10px;background:linear-gradient(#3c4141,#181d1e);font-weight:800;box-shadow:inset 0 1px #ffffff24}
#aestheticWorkflow .aes-list{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
#aestheticWorkflow .aes-list button{display:flex;align-items:center;gap:12px;min-width:0;width:100%;text-align:left;min-height:54px;padding:10px 12px;border:1px solid #666e69;border-radius:12px;background:linear-gradient(115deg,#313638,#121718);box-shadow:inset 0 1px #ffffff1c,0 4px 12px #0007}
#aestheticWorkflow .aes-list button span{color:#d2ba87;font-size:12px;flex:0 0 24px}
#aestheticWorkflow .aes-list button b{min-width:0;overflow-wrap:anywhere;font-size:13px}
#aestheticWorkflow .aes-form{display:flex;flex-direction:column;gap:12px}
#aestheticWorkflow .aes-form label{font-size:12px;color:#c8c4b8}
#aestheticWorkflow textarea{width:100%;max-width:100%;resize:vertical;padding:12px;border:1px solid #777f7b;border-radius:10px;background:#1a2021;color:#fff;font:inherit}
#aestheticWorkflow .aes-form button{padding:10px}
#aesMessage{margin-top:12px;font-size:12px;color:#d6c49e;overflow-wrap:anywhere}
@media(max-width:390px){#aestheticWorkflow .aes-panel{width:100%}#aestheticWorkflow .aes-head strong{font-size:16px}}
