





















:root {
  --verre-fond: linear-gradient(165deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.05) 100%);
  --verre-fond-2: rgba(255, 255, 255, 0.075);       
  --verre-line: rgba(255, 255, 255, 0.2);
  --verre-line-2: rgba(255, 255, 255, 0.14);
  --verre-filet: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --verre-ombre: 0 2px 6px rgba(2, 6, 20, 0.3), 0 22px 56px rgba(2, 6, 20, 0.42);
  --verre-ombre-2: 0 2px 6px rgba(2, 6, 20, 0.26), 0 14px 34px rgba(2, 6, 20, 0.32);
  --verre-encre: #d5dde8;                           
  --verre-encre-2: #aab8ca;                         
  --verre-vert: #34c8a2;                            
}

 



.bases-section { display: none; }

body.at-vue-bases .at-main > [data-section="tools"] { display: none !important; }


body.at-vue-bases .at-main { justify-content: flex-start; }

@media (min-width: 769px) {
  body.at-vue-bases .bases-section { display: block; }

  

  .bases-section { width: 100%; max-width: 1180px; margin: 0 auto; padding-bottom: 20px; }

   
  .bases-entete { margin-bottom: 30px; }
  .bases-entete h2 {
    margin: 0 0 8px; font-size: 27px; font-weight: 800; letter-spacing: -0.4px; color: #fff;
  }
  .bases-entete p { margin: 0; font-size: 15px; line-height: 1.55; color: #a8b6cd; max-width: 720px; }

   
  .bases-groupe { margin-bottom: 30px; }
  .bases-groupe-titre {
    display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: #cbd5e1;
  }
  .bases-groupe-titre .oi { display: inline-flex; font-size: 18px; color: #34c8a2; }
  .bases-groupe-titre .oi svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  .bases-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }

}




.bases-carte {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  min-height: 104px; padding: 16px 12px; border-radius: 14px; text-align: center;
  position: relative; overflow: hidden;
  background: var(--verre-fond); border: 1px solid var(--verre-line);
  box-shadow: var(--verre-ombre-2), var(--verre-filet);
  text-decoration: none; color: #fff;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.bases-carte:hover {
  transform: translateY(-2px);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 100%);
  border-color: rgba(52, 200, 162, 0.5);
}
.bases-carte:focus-visible { outline: 2px solid #34c8a2; outline-offset: 2px; }
.bases-carte-ico { display: block; line-height: 0; color: var(--verre-vert); }
.bases-carte-ico svg {
  width: 26px; height: 26px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.bases-carte:hover .bases-carte-ico { color: #5fe0c0; }
.bases-carte-nom { font-size: 14px; font-weight: 700; line-height: 1.3; }




.bases-carte.est-a-revoir {
  background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45); box-shadow: 0 2px 6px rgba(2, 6, 20, 0.2);
}
.bases-carte.est-a-revoir .bases-carte-ico { color: rgba(255, 255, 255, 0.35); }
.bases-carte.est-a-revoir:hover {
  transform: none;                                   
  background: rgba(255, 255, 255, 0.07); border-color: rgba(52, 200, 162, 0.3);
}
.bases-carte.est-a-revoir:hover .bases-carte-ico { color: rgba(255, 255, 255, 0.5); }



.bases-carte.est-a-revoir::after {
  content: "Bientôt";
  position: absolute; top: 13px; right: -32px; width: 118px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #34c8a2 0%, #22a183 100%);
  color: #04241c; font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px;
  text-align: center; padding: 3px 0; line-height: 1.4;
  box-shadow: 0 2px 7px rgba(2, 6, 20, 0.4);
}

 
body.at-vue-schema .bases-entete,
body.at-vue-schema .bases-liste { display: none; }

.bases-visionneuse { display: flex; flex-direction: column; }



.bases-visionneuse[hidden] { display: none; }


.bases-vue-barre { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 16px; }
 
.bases-vue-retour, .bases-vue-titre, .bases-vue-plein {
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1; font: inherit; font-weight: 700; text-decoration: none;
}
.bases-vue-retour, .bases-vue-plein {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; font-size: 13.5px; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.bases-vue-retour { justify-self: start; padding-left: 13px; }
.bases-vue-retour::before { content: "←"; font-size: 15px; line-height: 1; }
.bases-vue-plein { justify-self: end; }
.bases-vue-retour:hover, .bases-vue-plein:hover {
  color: #fff; border-color: rgba(48, 195, 158, 0.55); background: rgba(255, 255, 255, 0.1);
}
.bases-vue-titre {
  justify-self: center; padding: 9px 26px; font-size: 19px; font-weight: 800;
  letter-spacing: -0.2px; color: #fff; text-align: center;
}





.bases-cadre {
  width: 100%; border: 0; display: block; background: transparent; box-shadow: none;
}







.bases-mobile-barre { display: none; }
@media (max-width: 768px) {
  .at-side-bases { display: none !important; }
  body.at-vue-bases .bases-section { display: block; }
  body.at-vue-bases .at-hub,
  body.at-vue-bases .at-install { display: none !important; }
  .bases-section { padding: 8px 14px 28px; }
  .bases-mobile-barre { display: flex; align-items: center; margin: 4px 0 14px; }
  .bases-mobile-retour {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  }
  .bases-mobile-retour::before { content: "←"; font-size: 15px; line-height: 1; }
  .bases-entete { margin-bottom: 18px; }
  .bases-entete h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.3px; color: #fff; }
  .bases-groupe { margin-bottom: 22px; }
  .bases-groupe-titre {
    display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #cbd5e1;
  }
  .bases-groupe-titre .oi { display: inline-flex; font-size: 16px; color: #34c8a2; }
  .bases-groupe-titre .oi svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bases-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .bases-carte { min-height: 90px; padding: 13px 8px; gap: 7px; }
  .bases-carte-ico svg { width: 24px; height: 24px; }
  .bases-carte-nom { font-size: 13px; }
  .bases-carte.est-a-revoir::after { top: 10px; right: -30px; width: 104px; font-size: 9.5px; padding: 2px 0; }
}

 






body.bases-body { padding: 0 !important; margin: 0; background: transparent !important; }

.bases-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; height: 60px;
  background: linear-gradient(180deg, #1e293b 0%, #16233a 100%);
  box-shadow: 0 2px 14px rgba(6, 12, 28, 0.28);
  color: #fff;
}
.bases-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -0.2px; }
.bases-brand img { display: block; width: 30px; height: 30px; }
.bases-topbar-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.16); }
.bases-topbar-titre { margin: 0; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.1px; }
.bases-topbar-groupe { font-size: 13px; color: #94a3b8; }
.bases-retour {
  margin-left: auto; display: inline-flex; align-items: center; padding: 8px 16px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1; font-size: 13px; font-weight: 700; text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
   
  gap: 6px;
}
.bases-retour span { font-size: 1.25em; line-height: 1; position: relative; top: -1px; }
.bases-retour:hover { color: #fff; border-color: rgba(48, 195, 158, 0.55); }

 
.bases-main { padding: 40px 64px 92px; }












.bases-body .schema-container div:has(> button):not(.tab-bar) { display: none !important; }



.bases-body .timer-display,
.bases-body .detection-zone { display: none !important; }

 
.bases-body .controls,
.bases-body .mode-bar,
.bases-body .mode-display,
.bases-body .ctrl-bar,
.bases-body .action-bar { display: none !important; }






.bases-body .card-title { color: #16233a !important; border-bottom-color: #c9d2de !important; }
.bases-body .card-title i,
.bases-body .meta-badge i,
.bases-body .material-icon { color: #2f6fb5 !important; }
.bases-body #dimmerValue { color: #2f6fb5 !important; }
.bases-body #dimmerSlider {
  background: linear-gradient(to right, #2f6fb5 0%, #2f6fb5 var(--val, 100%), #dbe2ec var(--val, 100%), #dbe2ec 100%) !important;
}
.bases-body #dimmerSlider::-webkit-slider-thumb {
  background: #2f6fb5 !important; box-shadow: 0 2px 8px rgba(47, 111, 181, 0.35) !important;
}

 
.bases-body .tab-bar { gap: 10px; }
.bases-body .tab-btn {
  background: var(--verre-fond-2) !important; color: var(--verre-encre) !important;
  border: 1px solid var(--verre-line-2) !important; box-shadow: none !important;
  font-weight: 700 !important;
}
.bases-body .tab-btn:hover { background: rgba(255, 255, 255, 0.13) !important; border-color: rgba(52, 200, 162, 0.4) !important; }
.bases-body .tab-btn.active {
  background: linear-gradient(135deg, #34c8a2 0%, #22a183 100%) !important;
  color: #04241c !important; border-color: rgba(52, 200, 162, 0.7) !important;
}
.bases-body .tab-btn i { color: inherit !important; }







.bases-body .card {
  background: var(--verre-fond) !important;
  border: 1px solid var(--verre-line) !important;
  border-radius: 20px !important;
  


  box-shadow:
    0 1px 2px rgba(2, 6, 20, 0.18),
    0 10px 24px rgba(2, 6, 20, 0.16),
    0 26px 60px rgba(2, 6, 20, 0.14),
    var(--verre-filet) !important;
}


.bases-body .card:hover { transform: none !important; }
.bases-body .card-title { color: #fff !important; border-bottom-color: var(--verre-line-2) !important; }
.bases-body .card-title i { color: var(--verre-vert) !important; }





.bases-body .schema-visual {
  background: linear-gradient(135deg, rgba(233, 239, 247, 0.9) 0%, rgba(220, 228, 240, 0.88) 100%) !important;    
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 10px rgba(2, 6, 20, 0.2) !important;
}



.bases-body .norm-box,
.bases-body .info-box {
  background: var(--verre-fond-2) !important;
  border: 1px solid var(--verre-line-2) !important;
  border-left: 3px solid var(--verre-vert) !important;
  border-radius: 14px !important;
}
.bases-body .norm-box:hover,
.bases-body .info-box:hover { transform: none !important; }
.bases-body .norm-title,
.bases-body .info-box-title { color: var(--verre-vert) !important; }
.bases-body .norm-title i,
.bases-body .info-box-title i { color: var(--verre-vert) !important; }
.bases-body .norm-content,
.bases-body .info-box-content { color: var(--verre-encre) !important; }
.bases-body .norm-content strong,
.bases-body .info-box-content strong { color: #fff !important; }









.bases-body .content-layout,
.bases-body .schemas-column { gap: 46px !important; }
.bases-body .schema-container > * + * { margin-top: 46px !important; }



.bases-body .tab-panel { gap: 46px !important; }

 
.bases-body .slider-container {
  background: var(--verre-fond-2) !important;
  border: 1px solid var(--verre-line-2) !important;
}
.bases-body .slider-container label,
.bases-body .slider-container span { color: var(--verre-encre) !important; }




.bases-body .error-box {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-left: 3px solid #ef4444 !important;
  border-radius: 14px !important;
}
.bases-body .error-box:hover { transform: none !important; }
.bases-body .error-title { color: #ff9e9e !important; }
.bases-body .error-title i { color: #ff9e9e !important; }
.bases-body .error-content { color: #f2cfcf !important; }
.bases-body .error-content strong { color: #fff !important; }

 
.bases-body .meta-badge,
.bases-body .status-badge {
  background: var(--verre-fond-2) !important;
  border: 1px solid var(--verre-line-2) !important;
  color: var(--verre-encre) !important;
}

 
.bases-body .schema-container > h2,
.bases-body .schema-container > h3,
.bases-body .schema-container > p { color: var(--verre-encre) !important; }





.bases-body .controls { display: none !important; }

body.bases-embarque .bases-topbar { display: none; }


body.bases-embarque { min-height: 0 !important; }




body.bases-embarque .bases-main { padding: 40px 64px 92px; }
body.bases-embarque { background: transparent !important; }



@media (max-width: 640px) {
  .bases-topbar { padding: 0 14px; gap: 10px; height: 54px; }
  .bases-topbar-sep, .bases-topbar-groupe { display: none; }
  .bases-topbar-titre { font-size: 14px; }
  


  .bases-main { padding: 14px 10px 36px; }
  .bases-body .card { padding: 16px 12px !important; border-radius: 16px !important; }
  .bases-body .card-title { font-size: 19px !important; margin-bottom: 14px !important; }
  


  .bases-body .card { padding: 10px 6px !important; }
  

  .bases-body .schema-visual { padding: 8px 14px !important; min-height: 0 !important; border-radius: 12px !important; overflow: visible !important; }
  

  .bases-body .schema-visual svg { width: 100% !important; height: auto !important; max-width: none !important; overflow: visible !important; }
  .bases-body .norm-box, .bases-body .info-box { padding: 14px 14px !important; margin-bottom: 12px !important; }
  .bases-body .norm-title, .bases-body .info-box-title { font-size: 15px !important; }
  .bases-body .norm-content, .bases-body .info-box-content { font-size: 14.5px !important; line-height: 1.6 !important; }
  .bases-body .schema-container > * + * { margin-top: 22px !important; }
  .bases-body .content-layout, .bases-body .schemas-column, .bases-body .tab-panel { gap: 22px !important; }
  .bases-encours { padding: 28px 12px 60px; min-height: 60vh; }
  .bases-encours-carte { padding: 34px 22px 30px; border-radius: 20px; }
  .bases-encours-titre { font-size: 20px; }
}







.bases-body .fil-etiquette { opacity: 0; transition: opacity .18s ease; pointer-events: none; }
.bases-body .fil-etiquette.visible { opacity: 1; }
.bases-body .schema-visual svg [onclick]:hover,
.bases-body .schema-visual svg [style*="cursor:pointer"]:hover,
.bases-body .schema-visual svg [style*="cursor: pointer"]:hover { filter: drop-shadow(0 0 3px rgba(47, 111, 181, 0.55)); }
.bases-body svg:not(.circuit-on) .lamp-bulb { fill: #e5e7eb; stroke: #9ca3af; filter: none; }
.bases-body svg:not(.circuit-on) .lamp-filament { stroke: #9ca3af; }


.bases-body .card > div[style*="auto-fill"] { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; }
.bases-body .schema-visual svg g[tabindex]:focus-visible { outline: none; filter: drop-shadow(0 0 4px rgba(52, 200, 162, 0.8)); }















html.bases-nuit {
  background-color: #22324f;
  background-image: radial-gradient(120% 90% at 65% 0%, #30456f 0%, #25365a 45%, #1c2a45 100%);
  background-attachment: fixed;
}
body.bases-attente {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: transparent !important; min-height: 100vh; margin: 0;
}
body.bases-attente .bases-topbar,
body.bases-attente .bases-main { position: relative; z-index: 1; }


html.bases-nuit.bases-embarque { background: transparent; }    
body.bases-embarque.bases-attente { background: transparent !important; }

.bases-encours { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 48px 22px; }




body.bases-embarque .bases-encours { min-height: 0; padding: 44px 24px 96px; }



.bases-encours-carte {
  width: min(520px, 100%); text-align: center; padding: 50px 44px 42px; border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
   
  box-shadow:
    0 2px 6px rgba(2, 6, 20, 0.3),
    0 22px 56px rgba(2, 6, 20, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.bases-encours-logo { width: 68px; height: 68px; display: block; margin: 0 auto 16px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); }
 
.bases-encours-marque { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; color: #fff; margin: 0; }
.bases-encours-marque b { color: #34c8a2; font-weight: 800; }
.bases-encours-etat {
  display: inline-flex; align-items: center; gap: 9px; margin: 22px 0 18px; padding: 8px 16px 8px 13px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #bfeadb;
  background: rgba(52, 200, 162, 0.12); border: 1px solid rgba(52, 200, 162, 0.35);
}
.bases-encours-etat::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34c8a2;
  box-shadow: 0 0 0 3px rgba(52, 200, 162, 0.22), 0 0 14px rgba(52, 200, 162, 0.6);
}
.bases-encours-titre { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; color: #fff; margin: 0 0 10px; }
.bases-encours-texte { font-size: 15.5px; line-height: 1.6; color: #b3bfd1; margin: 0 auto; max-width: 40ch; }
.bases-encours-lien {
  display: inline-block; margin-top: 28px; font-size: 14px; font-weight: 600; color: #34c8a2;
  text-decoration: none; border-bottom: 1px solid rgba(52, 200, 162, 0.4); padding-bottom: 2px;
  transition: border-color .2s ease, color .2s ease;
}
.bases-encours-lien:hover { color: #fff; border-bottom-color: #fff; }
.bases-encours-lien:focus-visible { outline: 2px solid #34c8a2; outline-offset: 4px; border-radius: 4px; }






.bases-body .schema-visual { touch-action: manipulation; }
.bases-plein-ecran {
  position: fixed; inset: 0; z-index: 100000; background: #0f172a; touch-action: manipulation;
  display: flex; align-items: center; justify-content: center;
}
.bases-plein-scene { width: 100%; height: 100%; padding: 14px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.bases-body .bases-plein-scene svg {
  width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  background: #eef2f7; border-radius: 12px; overflow: visible;
}
.bases-plein-ecran.est-tourne .bases-plein-scene {
  position: absolute; top: 0; left: 100vw; width: 100vh; height: 100vw;
  transform-origin: 0 0; transform: rotate(90deg);
}
body.bases-plein-actif { overflow: hidden; }
