:root {
  --ink: #20303f;
  --muted: #5b6b7a;
  --paper: #f4f7fb;
  --card: #ffffff;
  --line: #e3e9f1;
  --brand: #0f4c81;
  --accent: #f2a900;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(15, 42, 71, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

/* En-tête */
.site-header {
  background: linear-gradient(135deg, var(--brand), #16609f);
  color: #fff;
  padding: 22px 0;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  height: 64px;
  width: auto;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
}

.header-text h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.subtitle {
  margin: 4px 0 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Contenu */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.app-group { margin-bottom: 30px; }
.app-group:last-child { margin-bottom: 0; }
.group-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}

/* Grille d'applications */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent, var(--brand));
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15, 42, 71, 0.12);
}

.app-icon { font-size: 1.7rem; line-height: 1; }
.app-name { margin: 0; font-size: 1.02rem; }
.app-desc { margin: 0; color: var(--muted); font-size: 0.85rem; flex: 1; }
.app-open { font-weight: 600; color: var(--brand); font-size: 0.82rem; }

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a { color: var(--brand); }

@media (max-width: 560px) {
  .header-inner { flex-direction: column; text-align: center; }
  .header-text h1 { font-size: 1.15rem; }
}
