/* ===================================================================================================================================================
															/css/style.css
   ===================================================================================================================================================*/
body { font-family: Arial, sans-serif; background-color: #121218; margin: 0; padding: 0; color: #e0e0e6; min-height: 100vh; }

/* Layout Global : Sidebar à gauche + Contenu principal à droite */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar verticale à gauche */
.sidebar { width: 240px; background-color: #1b1b5a; color: white; padding: 20px 15px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 1000; flex-shrink: 0; }
.sidebar h2 { font-size: 16px; margin-bottom: 20px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 10px; color: #ffffff; }

/* Menu Sidebar */
.sidebar-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sidebar-menu li { margin: 0; }
.sidebar-menu .menu-title { font-weight: bold; color: #ffffff; font-size: 14px; margin-bottom: 4px; display: block; }
.sidebar-menu a { color: #cfd8dc; text-decoration: none; display: block; padding: 4px 0; font-size: 13px; transition: color 0.2s; }
.sidebar-menu a:hover { color: white; }
.sidebar-menu .submenu { list-style: none; padding-left: 12px; margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-footer { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 15px; text-align: center; }

/* Contenu principal décalé exactement de la largeur de la sidebar (240px) */
.main-content { margin-left: 240px; flex-grow: 1; padding: 30px; box-sizing: border-box; background-color: #121218; min-height: 100vh; }

.container { max-width: 1100px; margin: auto; background: #1e1e28; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
h1 { color: #ffffff; margin-bottom: 20px; font-size: 24px; text-align: left; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #262636; border-radius: 6px; overflow: hidden; }
th, td { padding: 12px 15px; border-bottom: 1px solid #2f2f42; text-align: left; vertical-align: middle; }
th { background-color: #15151c; color: #a2a2b5; font-weight: bold; }
tr:hover { background-color: #2a2a3d; }

/* Boutons */
.btn-primary { background-color: #4e4efc; color: white; border: none; border-radius: 20px; padding: 10px 20px; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { background-color: #3b3bc4; }
.btn-supprimer { background-color: #cf3a3a; color: white; padding: 6px 12px; border-radius: 15px; text-decoration: none; font-size: 12px; }
.btn-supprimer:hover { background-color: #a82e2e; }
.btn-editer { background-color: #3b82f6; color: white; padding: 6px 12px; border-radius: 15px; text-decoration: none; font-size: 12px; margin-right: 8px; display: inline-block; font-weight: bold; border: none; cursor: pointer; }
.btn-editer:hover { background-color: #2563eb; }
.btn-logout { background-color: #d9534f; color: white; border: none; border-radius: 25px; padding: 8px 20px; font-size: 13px; text-decoration: none; font-weight: bold; display: inline-block; width: 100%; box-sizing: border-box; text-align: center; }

/* Badges & Vignettes */
.badge-actif { background-color: #1b382b; color: #5cd69d; padding: 5px 12px; border-radius: 12px; font-size: 11px; text-decoration: none; font-weight: bold; display: inline-block; border: 1px solid #28543f; text-align: center; }
.badge-inactif { background-color: #3d2222; color: #d65c5c; padding: 5px 12px; border-radius: 12px; font-size: 11px; text-decoration: none; font-weight: bold; display: inline-block; border: 1px solid #542828; text-align: center; }
.poiz-vignette { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background: #15151c; padding: 2px; vertical-align: middle; margin-right: 10px; }
.msg { background: #1b382b; color: #5cd69d; padding: 12px; border-radius: 6px; margin-bottom: 20px; border: 1px solid #28543f; }

/* Personnalisation DataTables (Thème Sombre) */
.dataTables_wrapper { color: #e0e0e6; font-family: Arial, sans-serif; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { background: #1a1a24; color: white; border: 1px solid #3f3f59; border-radius: 4px; padding: 5px; margin-bottom: 10px; }
table.dataTable.no-footer { border-bottom: 1px solid #2f2f42; }