:root {
  --terminus-blue: #1a2b4c;
  --terminus-orange: #e8782a;
  --terminus-blue-light: #2c4068;
}
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body > nav { flex-shrink: 0; }
body > main { flex: 1 0 auto; overflow-y: auto; }
body > footer { flex-shrink: 0; }
.btn-terminus { background-color: var(--terminus-orange); border-color: var(--terminus-orange); color: #fff; border-radius: 6px; }
.btn-terminus:hover { background-color: #d4661f; border-color: #d4661f; color: #fff; }
.btn-outline-terminus { border-color: var(--terminus-orange); color: var(--terminus-orange); border-radius: 6px; }
.btn-outline-terminus:hover { background-color: var(--terminus-orange); color: #fff; }
.hero-terminus { background: linear-gradient(135deg, var(--terminus-blue) 0%, var(--terminus-blue-light) 100%); }
.card { border: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important; }
.form-control:focus, .form-select:focus { border-color: var(--terminus-orange); box-shadow: 0 0 0 0.2rem rgba(232, 120, 42, 0.25); }
.table-dark { background-color: var(--terminus-blue); }
.card .form-label { margin-bottom: 0.3rem; }
.card .form-text { font-size: 0.8rem; }
.card textarea { min-height: 120px; resize: vertical; }
.card input[type="text"], .card input[type="email"], .card input[type="number"], .card input[type="date"], .card input[type="time"], .card input[type="password"], .card textarea, .card select { width: 100%; padding: 0.45rem 0.75rem; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.95rem; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.card input[type="text"]:focus, .card input[type="email"]:focus, .card input[type="number"]:focus, .card input[type="date"]:focus, .card input[type="time"]:focus, .card input[type="password"]:focus, .card textarea:focus, .card select:focus { border-color: var(--terminus-orange); box-shadow: 0 0 0 0.2rem rgba(232, 120, 42, 0.25); outline: none; }
.inscriptions-table { table-layout: fixed; width: 100%; font-size: 0.9rem; }
.inscriptions-table th:nth-child(1) { width: 20px; }
.inscriptions-table th:nth-child(12) { width: 30px; }
.inscriptions-table th:nth-child(2) { width: 11%; }
.inscriptions-table th:nth-child(3) { width: 11%; }
.inscriptions-table th:nth-child(4) { width: 14%; }
.inscriptions-table th:nth-child(5) { width: 11%; }
.inscriptions-table th:nth-child(6) { width: 7%; }
.inscriptions-table th:nth-child(7) { width: 11%; }
.inscriptions-table th:nth-child(8) { width: 8%; }
.inscriptions-table th:nth-child(9) { width: 10%; }
.inscriptions-table th:nth-child(10) { width: 12%; }
.inscriptions-table th:nth-child(11) { width: 8%; }
.inscriptions-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inscriptions-table td:nth-child(8) { overflow: visible; text-overflow: clip; white-space: normal; text-align: center; }
.session-drop { min-height: 60px; transition: background 0.2s; }
.session-drop.drag-over { background: #fff3e0; }

/* ─── Responsive : table → carte sur mobile ────────────── */
@media (max-width: 767px) {
  table.table-hover thead { display: none !important; }
  table.table-hover, table.table-hover tbody, table.table-hover tr, table.table-hover td {
    display: block;
  }
  table.table-hover tr {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.5rem;
  }
  table.table-hover td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: right;
  }
  table.table-hover td:last-child { border-bottom: none; }
  table.table-hover td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--terminus-blue);
    margin-right: 1rem;
    text-align: left;
  }
  table.table-hover td[data-label=""]::before { content: none; }
  table.table-hover td[data-label=""] { justify-content: flex-end; }
}
