@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --primary: #02488c;
  --primary-700: #013260;
  --primary-800: #01274a;
  --accent: #e0a725;
  --accent-600: #c4911e;
  --bg-dark: #03182c;
  --bg-darker: #02101f;
  --muted: #b6c8d9;
  --muted-soft: #b6c6d5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-800) 100%);
  min-height: 100vh;
  color: #fff;
  padding: 1rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo {
  display: block;
  margin: 0 auto 1rem;
  height: 96px;
  width: auto;
}

@media (max-width: 768px) {
  .logo {
    height: 72px;
  }
}

h1 {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.subtitle {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.search-input {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.875rem;
  width: 100%;
  max-width: 300px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.search-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 167, 37, 0.25);
}

.section {
  margin-bottom: 1.5rem;
}

h2 {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.apps h2 {
  border-color: var(--primary);
}

.docs h2,
.plateformes h2 {
  border-color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:visited {
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
}

.card-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.card h3 {
  font-family: "Barlow", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.card .description {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  height: 2.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card .description:empty {
  display: none;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.card .language {
  color: var(--accent);
}

.card .stars {
  color: var(--accent);
}

.card .empty {
  color: var(--muted);
  opacity: 0.5;
  font-style: italic;
}

footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--muted);
  opacity: 0.7;
  padding-top: 1rem;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  body {
    padding: 0.75rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
