/* =========================================================
   HOME SERVER
   Modifie ici l'apparence générale du portail.
   ========================================================= */

:root {
  --background: #0b0f16;
  --panel: #121925;
  --panel-hover: #182233;
  --border: #263247;
  --text: #f7f9fc;
  --muted: #8e9aab;
  --accent: #6da7ff;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(109, 167, 255, 0.12), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 40px;
}

.hero { margin-bottom: 56px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section { margin-bottom: 46px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

h2 {
  margin: 0;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #bac4d3;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: rgba(18, 25, 37, .92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background: var(--panel-hover);
  border-color: #3b4d68;
  box-shadow: 0 18px 42px rgba(0,0,0,.25);
}

.service-card img,
.fallback-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

.service-card img { object-fit: contain; }

.fallback-icon {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #212c3d;
  border: 1px solid #334158;
  color: var(--text);
  font-weight: 800;
  font-size: .95rem;
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.admin-card {
  border-style: dashed;
}

footer {
  padding-top: 12px;
  color: #596578;
  font-size: .82rem;
  text-align: center;
}

@media (max-width: 600px) {
  .page {
    width: min(100% - 24px, 1400px);
    padding-top: 36px;
  }

  .hero { margin-bottom: 40px; }
  .grid { grid-template-columns: 1fr; }

  .service-card {
    min-height: 102px;
    padding: 18px;
  }
}

