
/* High-Technologie.ca - thème modernisé, autonome et léger */

/* Reset de base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  background:
    radial-gradient(circle at top, rgba(67, 107, 255, 0.25), transparent 55%),
    radial-gradient(circle at bottom, rgba(255, 153, 0, 0.2), transparent 55%),
    #05060a;
  color: #f2f4ff;
}

/* Variables */
:root {
  --bg-main: #05060a;
  --bg-panel: #0b101c;
  --bg-panel-soft: #111728;
  --bg-header: linear-gradient(120deg, #141c33, #222f55, #171f38);
  --border-soft: #262f4b;
  --accent: #ffb347;
  --accent-strong: #ff9900;
  --accent-soft: rgba(255, 179, 71, 0.18);
  --accent-alt: #6fd5ff;
  --text-muted: #b3bedf;
}

/* Page globale */
.page {
  max-width: 1150px;
  margin: 14px auto 24px;
  padding: 0 12px;
}

/* HEADER */
.site-header {
  background: var(--bg-header);
  border-radius: 14px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: 12px 18px 0;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(255, 153, 0, 0.24), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1;
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.branding-logo {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 20%, #fffbe6, #ffb347 35%, #ff7a00 70%);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.75),
    0 10px 30px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(255, 179, 71, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #281108;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.branding-title h1 {
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff7dd;
  text-shadow:
    0 0 8px rgba(255, 179, 71, 0.9),
    0 1px 1px rgba(0, 0, 0, 0.9);
}

.branding-title p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Petit badge réseaux */
.network-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.network-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.network-pill span:first-child {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
}

/* Menu principal */
.main-nav {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f7f5ff;
  background: rgba(6, 10, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transition:
    background 0.18s ease-out,
    color 0.18s ease-out,
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
}

.main-nav li.active a,
.main-nav a:hover {
  background: radial-gradient(circle at top, #ffe7b5, #ff9900 60%);
  color: #251306;
  border-color: rgba(255, 214, 150, 0.95);
  transform: translateY(-1px);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(255, 179, 71, 0.6);
}

/* Layout principal */
.layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr) 240px;
  gap: 12px;
  margin-top: 14px;
}

/* Sidebars & cartes */
.sidebar-left,
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02), transparent 55%),
              var(--bg-panel);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  padding: 10px 11px 11px;
}

/* Menu latéral */
.side-nav h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.side-nav ul {
  list-style: none;
}

.side-nav li {
  margin-bottom: 4px;
}

.side-nav a {
  display: block;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  color: #dce2ff;
  transition: background 0.15s ease-out, color 0.15s ease-out, transform 0.1s ease-out;
}

.side-nav li.active a,
.side-nav a:hover {
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.2), transparent);
  color: var(--accent);
  transform: translateX(2px);
}

/* Encarts génériques */
.panel h3 {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--accent);
}

.panel p,
.panel li {
  font-size: 12px;
  color: var(--text-muted);
}

.panel ul {
  margin-left: 14px;
  list-style: square;
}

/* Contenu central */
.content {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.02), transparent 55%),
              var(--bg-panel-soft);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  padding: 14px 16px 16px;
  min-height: 320px;
}

.content-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.content-header h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.content-header span {
  font-size: 11px;
  color: var(--text-muted);
}

.content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.content-block {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.content-block h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--accent);
}

.content-block p + p {
  margin-top: 6px;
}

/* Grilles dans le contenu */
.grid-two {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 14px;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Cartes */
.card {
  background: rgba(3, 6, 18, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
}

.card h4 {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--accent);
}

.card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Placeholder image / zone visuelle */
.hero-placeholder {
  position: relative;
  border-radius: 12px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(111, 213, 255, 0.4), transparent 60%),
    radial-gradient(circle at 30% 90%, rgba(255, 153, 0, 0.4), transparent 60%),
    #050813;
  min-height: 120px;
  overflow: hidden;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-placeholder-inner {
  position: absolute;
  inset: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-placeholder span.title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-placeholder span.subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* Petits "pings" décoratifs */
.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Boutons génériques */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 25, 0.9);
  color: #f3f2ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.18s ease-out,
    color 0.18s ease-out,
    border-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.1s ease-out;
}

.btn-primary {
  background: radial-gradient(circle at top, #ffe9bf, #ff9900 60%);
  color: #251306;
  border-color: rgba(255, 214, 150, 0.95);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(255, 179, 71, 0.7);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(111, 213, 255, 0.3);
}

.btn-primary:hover {
  background: radial-gradient(circle at top, #fff2cd, #ffb347 60%);
}

/* Listes stylisées */
.styled-list {
  list-style: none;
  margin: 6px 0 0 0;
}

.styled-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}

.styled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 8px rgba(255, 153, 0, 0.7);
}

/* Login */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-form label {
  font-size: 11px;
}

.input {
  width: 100%;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 7, 18, 0.95);
  color: #f2f4ff;
  font-size: 12px;
}

.input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow:
    0 0 0 1px rgba(255, 153, 0, 0.6),
    0 0 10px rgba(255, 153, 0, 0.6);
}

/* Tableaux */
.table-wrapper {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 12px;
}

.table th,
.table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.01);
}

/* TChat - iframe IRC */
.irc-frame {
  width: 100%;
  min-height: 360px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050813;
}

/* Accordéons Shell (menus déroulants) */
.shell-accordions details {
  background: rgba(3, 6, 18, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  margin-bottom: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
}

.shell-accordions summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shell-accordions summary::-webkit-details-marker {
  display: none;
}

.shell-accordions summary::after {
  content: "▾";
  font-size: 12px;
  opacity: 0.7;
}

.shell-accordions details[open] summary::after {
  transform: rotate(180deg);
}

.shell-accordions .details-inner {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Formulaire de contact */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

/* Pied de page */
.site-footer {
  margin-top: 14px;
  padding: 10px 4px 4px;
  font-size: 11px;
  text-align: center;
  color: var(--text-muted);
}

/* Liens généraux dans le contenu */
.content a {
  color: var(--accent-alt);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1.2fr);
    grid-template-rows: auto auto;
  }

  .sidebar-right {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .sidebar-right .panel {
    flex: 1;
  }
}

@media (max-width: 780px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .network-badges {
    align-items: flex-start;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-right {
    flex-direction: column;
  }

  .grid-two,
  .grid-three,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .main-nav ul {
    flex-wrap: wrap;
  }
}
/* Widget de statut serveur (mini dashboard) */
.status-widget {
  border-radius: 9px;
  background: radial-gradient(circle at top, rgba(111, 213, 255, 0.09), transparent 55%),
              rgba(2, 6, 23, 0.98);
  padding: 8px 9px;
  font-size: 11px;
}

.status-widget-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.status-widget-header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.status-widget-title {
  font-weight: 600;
}

.status-widget-sub {
  display: block;
  color: var(--text-muted);
  opacity: 0.85;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.status-dot-ok {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.status-dot-warn {
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.9);
}

.status-dot-down {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
}

.status-dot-unknown {
  background: #6b7280;
  box-shadow: 0 0 8px rgba(107, 114, 128, 0.9);
}

.status-list {
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
}

.status-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.status-item:last-child {
  border-bottom: none;
}

.status-item-label {
  font-size: 11px;
}

.status-item-meta {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}

.status-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-pill-up {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.status-pill-down {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.status-pill-unknown {
  background: rgba(148, 163, 184, 0.25);
  color: #e5e7eb;
}

.status-footer {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.9;
}

/* Mobile layout: empiler les colonnes sur écran de cellulaire */
@media (max-width: 760px) {
  .page {
    padding: 6px 4px;
  }

  .site-header {
    padding: 8px 4px;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .branding-title h1 {
    font-size: 18px;
  }

  .branding-title p {
    font-size: 11px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
  }

  .main-nav a {
    padding: 4px 8px;
    font-size: 11px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .sidebar-left,
  .sidebar-right,
  .content {
    grid-column: 1 / -1;
  }

  .sidebar-right {
    flex-direction: column;
  }

  .sidebar-right .panel {
    width: 100%;
  }

  .content-header h2 {
    font-size: 17px;
  }

  .content-header span {
    font-size: 11px;
  }

  .content {
    padding: 8px 8px 10px;
  }

  .grid-two,
  .grid-three,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    font-size: 10px;
    padding-inline: 4px;
  }
}

