/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */
body {
  font-family: "Open Sans", sans-serif;
  color: #444;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: #0563bb;
  transition: 0.3s;
}
a:hover {
  color: #067ded;
}
h1,
h2,
h3,
h4 {
  font-family: "Raleway", sans-serif;
  color: #45505b;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* UTILITIES (Pour remplacer les styles inline) */
.d-flex {
  display: flex;
}
.justify-between {
  justify-content: space-between;
}
.align-center {
  align-items: center;
}
.flex-wrap {
  flex-wrap: wrap;
}
.mt-20 {
  margin-top: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.text-center {
  text-align: center;
}

/* Header */
#header {
  background: #f8f9fa;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  font-size: 24px;
  margin: 0;
}
.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.navbar li {
  margin: 0 15px;
}
.navbar a {
  color: #45505b;
  font-weight: 600;
  font-size: 15px;
}

/* Hero */
.hero {
  height: 60vh;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  border-bottom: 1px solid #eee;
}
.hero h1 {
  font-size: 48px;
  margin: 0;
  font-weight: 700;
}
.hero h2 {
  font-size: 20px;
  margin-top: 10px;
  color: #555;
}
.hero-badges {
  margin-top: 20px;
}

/* About */
section {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  padding-bottom: 30px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #0563bb;
  bottom: 0;
  left: calc(50% - 25px);
}
.about-placeholder {
  width: 100%;
  height: 300px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.about-icon {
  font-size: 50px;
  color: #ccc;
}
.btn-download {
  padding: 10px 20px;
  background: #0563bb;
  color: white;
  border-radius: 5px;
  display: inline-block;
}

/* Tabs & Cards */
.formation-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
  flex-wrap: wrap;
}
.formation-tab {
  padding: 10px 25px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50px;
  color: #444;
  font-weight: 600;
}
.formation-tab.active,
.formation-tab:hover {
  background: #0563bb;
  color: white;
  border-color: #0563bb;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  padding: 25px;
  border: 1px solid #f0f0f0;
}
.skill-badge {
  display: inline-block;
  padding: 5px 12px;
  background: #e9f5ff;
  border-radius: 4px;
  font-size: 12px;
  margin: 3px;
  color: #0563bb;
  font-weight: 600;
}

/* Grid System Simplified */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}
.col-lg-4 {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  padding: 15px;
  box-sizing: border-box;
}
.col-lg-8 {
  flex: 0 0 66.66%;
  max-width: 66.66%;
  padding: 15px;
  box-sizing: border-box;
}
.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 15px;
  box-sizing: border-box;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 15px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .col-lg-4,
  .col-lg-8,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Footer & Ticket */
footer {
  background: #f8f9fa;
  padding: 30px 0;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid #eee;
}
.ticket-search-container {
  display: inline-block;
}
.ticket-input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 15px;
}
.ticket-icon {
  color: #ccc;
  margin-right: 10px;
  font-size: 12px;
}
.ticket-input {
  border: none;
  outline: none;
  font-size: 12px;
  color: #666;
  width: 120px;
}
.ticket-error {
  font-size: 11px;
  color: #999;
  margin-top: 5px;
}

/* DASHBOARD MODULES */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.module-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.module-icon {
  font-size: 32px;
  color: #0563bb;
  margin-bottom: 15px;
}
.module-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}
.module-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}
.btn-module {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #0563bb;
  color: #0563bb;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.btn-module:hover {
  background: #0563bb;
  color: #fff;
}
.module-card.legacy .module-icon {
  color: #6c757d;
}
.module-card.legacy .btn-module {
  border-color: #6c757d;
  color: #6c757d;
}
.module-card.legacy .btn-module:hover {
  background: #6c757d;
  color: #fff;
}

.module-card.nextgen .module-icon {
  color: #6610f2;
}
.module-card.nextgen .btn-module {
  border-color: #6610f2;
  color: #6610f2;
}
.module-card.nextgen .btn-module:hover {
  background: #6610f2;
  color: #fff;
}

/* Styles pour Codex et Reasoning */
.module-card.codex .module-icon {
  color: #00897b;
}
.module-card.codex .btn-module {
  border-color: #00897b;
  color: #00897b;
}
.module-card.codex .btn-module:hover {
  background: #00897b;
  color: #fff;
}

.module-card.reasoning .module-icon {
  color: #d63384;
}
.module-card.reasoning .btn-module {
  border-color: #d63384;
  color: #d63384;
}
.module-card.reasoning .btn-module:hover {
  background: #d63384;
  color: #fff;
}

/* Breadcrumb for consoles */
.console-breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}
.console-breadcrumb a {
  color: #888;
  text-decoration: underline;
}

/* PROJECT DEMO SPECIFIC */
.demo-wrapper {
  flex: 1;
  padding: 40px 0;
  background: #fcfcfc;
}
.demo-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.demo-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demo-output {
  padding: 20px;
  height: 500px;
  overflow-y: auto;
  background: #fff;
}
.demo-input-area {
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}
.model-select {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  background: #fff;
  max-width: 200px;
}
.controls-row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  font-size: 11px;
}
.control-select {
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 11px;
}
.control-label {
  color: #666;
}
.status-online {
  font-size: 12px;
  color: #888;
}
.msg-row {
  margin-bottom: 15px;
  clear: both;
}
.msg-user {
  float: right;
  background: #0563bb;
  color: white;
  padding: 10px 15px;
  border-radius: 15px 15px 0 15px;
  max-width: 70%;
  font-size: 14px;
}
.msg-ai {
  float: left;
  background: #f0f2f5;
  color: #333;
  padding: 15px;
  border-radius: 15px 15px 15px 0;
  max-width: 80%;
  font-size: 14px;
  border: 1px solid #e1e4e8;
}
.input-group {
  display: flex;
  gap: 10px;
}
.form-control {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
}
.form-control:focus {
  border-color: #0563bb;
}
.btn-submit {
  background: #0563bb;
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}
.btn-submit:hover {
  background: #0456a3;
}
.btn-close-demo {
  color: #dc3545;
}
