/* UseUrGPU, Accueil en plaques cristal (copie d'essai, l'Accueil d'origine n'est pas modifié).
   Matière : UseUrGPU_Cristal_Reconstruction.css de Nova. Décor : moteur de Nova (nova-decor.js), indépendant de l'interface. */
:root{--uug-glass-bg:rgba(31,75,120,.22);--uug-glass-border:rgba(158,226,255,.50);--uug-glass-highlight:rgba(255,255,255,.28);--uug-glass-radius-main:24px;--uug-glass-radius-card:20px;--uug-glass-radius-control:14px;--uug-glass-blur:20px;--uug-glass-shadow:0 12px 36px rgba(2,22,45,.18);--uug-text:#f4faff;--uug-outline:#8feaff;--uug-glass-under:rgba(6,22,44,.16);}
html{background:#06142a !important;}
body{background:transparent !important;background-image:none !important;}
/* couche 1 : le décor */
#uug-background{position:fixed;inset:0;z-index:-10;overflow:hidden;background:linear-gradient(180deg,#081221,#060d18);}
#uug-background canvas{position:absolute;inset:0;width:100%;height:100%;display:block;}
#uug-background::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 15%,rgba(255,255,255,.05),transparent 28%),linear-gradient(180deg,rgba(8,14,28,.1),rgba(4,7,13,.48) 76%,rgba(4,7,13,.68));pointer-events:none;}
/* couche 2 : les plaques */
aside,.card,.side-foot,.pill{position:relative;isolation:isolate;background:linear-gradient(130deg,rgba(210,239,255,.12),var(--uug-glass-bg) 42%,rgba(20,52,90,.18)),var(--uug-glass-under) !important;border:1px solid var(--uug-glass-border) !important;box-shadow:inset 0 1px var(--uug-glass-highlight),var(--uug-glass-shadow) !important;-webkit-backdrop-filter:blur(var(--uug-glass-blur)) saturate(125%);backdrop-filter:blur(var(--uug-glass-blur)) saturate(125%);}
aside{border-radius:0 var(--uug-glass-radius-main) var(--uug-glass-radius-main) 0 !important;border-left:0 !important;}
.card{border-radius:var(--uug-glass-radius-card) !important;}
.side-foot,.pill{border-radius:var(--uug-glass-radius-control) !important;--uug-glass-blur:12px;}

/* contrôles incrustés */
textarea,.model,.chip,.btn-line,.btn-sec,.thumb img{background:rgba(13,41,73,.32) !important;border:1px solid rgba(158,226,255,.34) !important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);}
textarea{border-radius:var(--uug-glass-radius-control) !important;}
nav a.on{background:linear-gradient(95deg,rgba(25,216,255,.22),rgba(8,124,240,.16)) !important;border-color:rgba(143,234,255,.55) !important;}
.track{background:rgba(255,255,255,.12) !important;}
/* texte posé sur le décor ou sur les plaques */
h1,h2,h3,.card,aside,.hero small,.hero p{text-shadow:0 1px 8px rgba(2,14,30,.45);}
.card .d,.hero p,.gsub,.empty{color:#dbe8f9 !important;}
/* bandeau : bande d'horizon de la même scène, voile sombre à gauche sous le texte */
.hero{background:rgba(14,29,50,.2) !important;background-image:none !important;border:1px solid var(--uug-glass-border) !important;border-radius:var(--uug-glass-radius-card) !important;box-shadow:inset 0 1px var(--uug-glass-highlight),var(--uug-glass-shadow) !important;}
[data-uug-panorama]{position:absolute;inset:0;z-index:0;overflow:hidden;}
[data-uug-panorama] canvas{width:100%;height:100%;display:block;}
.hero::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(4,10,20,.86) 0%,rgba(4,10,20,.6) 20%,rgba(4,10,20,0) 46%);pointer-events:none;}
.hero>*:not([data-uug-panorama]){position:relative;z-index:2;}
/* courbes : plaque cristal, lignes inchangées (GPU turquoise, processeur bleu, mémoire violet) */
#ressources .chart{filter:drop-shadow(0 0 6px rgba(103,222,199,.25));}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){aside,.card,.side-foot,.pill{background:rgba(8,30,55,.90) !important;}}
/* sélecteur d'essai (uniquement dans cette page) */
.uug-essai-bar{position:fixed;right:16px;bottom:16px;z-index:50;display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:10px 12px;border-radius:16px;background:rgba(8,28,52,.62);border:1px solid var(--uug-glass-border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--uug-text);font:12px/1.2 'Segoe UI',Arial,sans-serif;max-width:min(560px,calc(100vw - 32px));}
.uug-essai-bar b{font-weight:650;}.uug-essai-bar label{display:flex;align-items:center;gap:6px;}.uug-essai-bar input[type=range]{width:150px;}
.uug-essai-bar select{background:rgba(13,41,73,.6);color:var(--uug-text);border:1px solid rgba(158,226,255,.4);border-radius:10px;padding:6px 8px;font:inherit;}
.uug-essai-bar :focus-visible{outline:3px solid var(--uug-outline);outline-offset:2px;}
@media(prefers-reduced-motion:reduce){*{animation:none !important;transition:none !important;}}
/* retour de Jérôme : le fond ne doit pas passer d'une opacité à l'autre, on retire le voile dégradé du décor de Nova, la photo est uniforme */
#uug-background::after{background:none !important;content:none !important;}

/* ===== L'Accueil tient dans la hauteur de la fenêtre (demande de Jérôme) : cadres plus compacts, courbes qui prennent la place restante ===== */
@media (min-width:1081px) and (min-height:620px){
  html,body{height:100%;overflow:hidden;}
  .app{height:100vh;min-height:0;}
  aside{height:100vh;padding:14px 12px 12px;}
  .brand{margin:0 6px 12px;}
  .brand img{width:34px;height:34px;}
  nav a{padding:8px 12px;}
  .side-foot{min-height:0;padding:12px 14px;}
  main{height:100vh;min-height:0;padding:10px 16px 12px;gap:10px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1.25fr) minmax(0,1fr) minmax(0,1.15fr);overflow:hidden;}
  /* Si les blocs dépassent la fenêtre (écran bas, blocs agrandis ou déplacés), on peut faire défiler au lieu de perdre le bas. Quand tout tient, rien ne change. */
  main{overflow-y:auto !important;overflow-x:hidden;}
  .bar{min-height:28px;}
  .hero{min-height:0;padding:12px 24px;}
  .hero small{margin-bottom:4px;font-size:11px;letter-spacing:2.5px;}
  .hero h1{font-size:clamp(24px,3.6vh,34px);}
  .hero p{margin-top:4px;font-size:clamp(13px,1.9vh,16px);line-height:1.3;}
  .row{min-height:0;}
  .card{padding:10px 16px;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
  .card h2{font-size:15px;margin-bottom:8px;}
  .ic{width:26px;height:26px;}.ic svg{width:15px;height:15px;}
  .gpu{grid-template-columns:clamp(84px,14vh,120px) 1fr;gap:16px;flex:1;min-height:0;}
  .gauge{width:clamp(84px,14vh,120px);height:clamp(84px,14vh,120px);}
  .gauge circle{stroke-width:10;}
  .gauge .v b{font-size:clamp(20px,3vh,28px);}
  .gname{font-size:clamp(15px,2.4vh,19px);}
  .gsub{margin:0 0 6px;font-size:13px;}
  .chips{margin-top:8px;}
  .chip{padding:4px 12px;font-size:12px;}
  .studio h3{font-size:clamp(18px,3vh,24px);margin-bottom:2px;}
  .studio p.d{margin-bottom:6px;font-size:13px;}
  textarea{min-height:0;flex:1;height:100%;padding:8px 12px;resize:none;}
  .acts{margin-top:8px;}
  .btn-main,.btn-sec{padding:7px 16px;font-size:14px;}
  .models{flex:1;min-height:0;gap:10px;overflow-y:auto;align-content:start;grid-auto-rows:min-content;}
  .model{min-height:min-content;padding:8px 10px;gap:2px;}
  .model .sw{height:clamp(22px,5vh,44px);margin-bottom:2px;}
  .thumbs{flex:1;min-height:0;gap:10px;}
  .thumb{min-height:0;gap:3px;}
  .thumb img{aspect-ratio:auto;flex:1;min-height:0;height:100%;}
  .empty{min-height:0;height:100%;padding:8px;}
  #ressources .res-head{margin-bottom:2px;}
  #ressources .sys{margin:0 0 4px;}
  #ressources .chart{flex:1;min-height:40px;height:auto;}
  #ressources .foot{padding-top:2px;font-size:11px;}
}

/* la vague lumineuse du bloc latéral est remise (j'avais retiré son image avec les plaques) */
.side-foot{background:linear-gradient(180deg,rgba(7,18,31,.78) 0%,rgba(7,18,31,0) 48%),url('/assets/nova/sidebar_wave_photo.webp') center bottom/cover no-repeat !important;border:1px solid var(--uug-glass-border) !important;}
@media (min-width:1081px) and (min-height:620px){.side-foot{min-height:clamp(120px,19vh,190px);}}
/* axes des courbes */
.chart-wrap{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:2px 8px;flex:1;min-height:0;}
.chart-y{display:flex;flex-direction:column;justify-content:space-between;font-size:11px;color:#c9daf2;padding:2px 0;text-align:right;}
.chart-plot{position:relative;min-height:40px;}
.chart-plot .chart{position:absolute;inset:0;width:100%;height:100%;}
.chart-plot .gl{position:absolute;left:0;right:0;height:1px;background:rgba(158,226,255,.16);pointer-events:none;}
.chart-plot .g1{top:5%;}.chart-plot .g2{top:50%;}.chart-plot .g3{bottom:5%;}
.chart-x{grid-column:2;display:flex;justify-content:space-between;font-size:11px;color:#c9daf2;}
#ressources .chart{flex:none;}
.card h2 .more{margin-left:auto;font:500 13px var(--body);color:#7fe3ff;}

/* barre du haut : recherche, notifications, profil */
.bar{gap:10px !important;justify-content:flex-start !important;}
.bar .spacer{flex:1;}
.search{display:flex;align-items:center;gap:8px;flex:0 1 380px;min-width:160px;height:34px;padding:0 12px;border-radius:12px;background:rgba(13,41,73,.45);border:1px solid rgba(158,226,255,.40);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);}
.search:focus-within{outline:2px solid var(--uug-outline);outline-offset:2px;}
.search svg,.bell svg,.profile svg{width:17px;height:17px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.search svg{color:#7fe3ff;}
.search input{flex:1;min-width:0;background:transparent;border:0;outline:0;color:var(--uug-text);font:inherit;font-size:14px;}
.search input::placeholder{color:#9db6d0;}
.bellwrap{position:relative;}
.bell{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:rgba(13,41,73,.45);border:1px solid rgba(158,226,255,.40);color:var(--uug-text);cursor:pointer;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);}
.bell:hover,.profile:hover{border-color:#8feaff;}
.pop{position:absolute;right:0;top:42px;z-index:60;min-width:230px;padding:12px 14px;border-radius:14px;background:rgba(8,28,52,.92);border:1px solid var(--uug-glass-border);box-shadow:var(--uug-glass-shadow);font-size:13px;color:#dbe8f9;}
.profile{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px 0 5px;border-radius:999px;background:rgba(13,41,73,.45);border:1px solid rgba(158,226,255,.40);color:var(--uug-text);font-size:14px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);}
.profile .av{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#13ddf2,#087bff);color:#031a2e;}
.profile .av svg{width:14px;height:14px;}
.profile .chev{width:14px;height:14px;opacity:.8;}
.model[hidden]{display:none !important;}
