/* AiTC - Styles globaux minimalistes
   Objectif: rester proche de Bootstrap, ajouter seulement quelques ajustements
   pour la lisibilité, la mise en page et la sidebar du portail.
*/

:root {
    /*--bs-primary: #156FA4;*/
    --aitc-sidebar-width: 280px;
    --aitc-border-color: rgba(0,0,0,.08);
    --aitc-bg-soft: #f8fafc; /* léger, proche "slate" */
}

/* Typographie / rendu global */
html, body{
  height: 100%;
}

body{
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Liens: s’appuyer sur Bootstrap, mais éviter les soulignements intempestifs */
a{
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

/* Sections marketing */
.section{
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-muted{
  background: var(--aitc-bg-soft);
}

/* Petites cartes “feature” */
.feature-card{
  border: 1px solid var(--aitc-border-color);
  border-radius: .75rem;
  background: #fff;
}

.feature-icon{
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,110,253,.08); /* Bootstrap primary @ low alpha */
  color: #0d6efd;
  flex: 0 0 auto;
}

/* Header */
.brand-mark{
  width: 32px;
  height: 32px;
  border-radius: .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}



.list-group-scroll {
    max-height: 400px;
    overflow-y: auto;
}

/* Create a single clean frame */
.list-group-framed {
    border: 1px solid #dee2e6; /* Bootstrap default border color */
    border-radius: 0.375rem;   /* Bootstrap 5 default radius */
}

/* Remove conflicting borders */
.list-group-framed .list-group-item {
    border-left: 0;
    border-right: 0;
}

/* Prevent double borders at top and bottom */
.list-group-framed .list-group-item:first-child {
    border-top: 0;
}

.list-group-framed .list-group-item:last-child {
    border-bottom: 0;
}

.list-group-aitc li {
    color: white;
    background-color: #2E2E2E;
    font-size: 80%;
    display: flex;
    align-items: flex-start;
}

.list-group-aitc li::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.list-group-aitc li.pilot::before {
     background-image: url("images/icon-pilot.svg");
}

.list-group-aitc li.atc::before {
    background-image: url("images/icon-atc.svg");
}

.list-group-aitc li.contact::before {
    background-image: url("images/icon-contact.svg");
}


/* ===========================
   Portail (sidebar)
   =========================== */

.portal{
  min-height: 100vh;
  background: var(--aitc-bg-soft);
}

.portal-shell{
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.portal-sidebar{
  width: var(--aitc-sidebar-width);
  background: #0b1220; /* bleu nuit */
  color: rgba(255,255,255,.82);
  border-right: 1px solid rgba(255,255,255,.06);
}

.portal-sidebar .sidebar-header{
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.portal-sidebar .sidebar-title{
  font-size: .95rem;
  letter-spacing: .02em;
  color: #fff;
  margin: 0;
}

.portal-sidebar .sidebar-subtitle{
  margin: .25rem 0 0 0;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

.portal-sidebar .nav{
  padding: .75rem;
}

.portal-sidebar .nav .nav-link{
  color: rgba(255,255,255,.78);
  border-radius: .6rem;
  padding: .55rem .75rem;
  display: flex;
  gap: .6rem;
  align-items: center;
}

.portal-sidebar .nav .nav-link:hover{
  background: rgba(255,255,255,.08);
  color: #fff;
}

.portal-sidebar .nav .nav-link.active{
  background: rgba(13,110,253,.20);
  color: #fff;
}

.portal-sidebar .nav .nav-link .badge{
  margin-left: auto;
}

.portal-sidebar .sidebar-footer{
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
  font-size: .85rem;
}

/* Contenu principal */
.portal-main{
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.25rem;
}

.portal-topbar{
  background: #fff;
  border: 1px solid var(--aitc-border-color);
  border-radius: .75rem;
  padding: .9rem 1rem;
}

.portal-content{
  margin-top: 1rem;
}

/* Cartes dans le portail */
.portal-card{
  border: 1px solid var(--aitc-border-color);
  border-radius: .75rem;
  background: #fff;
}

/* Responsive: sur petits écrans, la sidebar doit passer au-dessus/à côté
   (la structure HTML pourra utiliser offcanvas Bootstrap si souhaité).
*/
@media (max-width: 991.98px){
  .portal-shell{
    flex-direction: column;
  }

  .portal-sidebar{
    width: 100%;
  }

  .portal-main{
    padding: 1rem;
  }
}