/* -------------------------------------------------------- */
/* sources/main.css – CATEGORY HUB LAYER                   */
/* + GLOBAL MAIN BACKGROUND INTEGRATION                    */
/* -------------------------------------------------------- */

/* ========================= */
/* MAIN WRAPPER OVERRIDE */
/* ========================= */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* ========================= */
/* PAGE ROOT */
/* ========================= */

.sources-page {
  width: 100%;
  min-height: 100vh;

  padding: 30px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;

  /* on garde une base claire pour les cards */
  background: transparent;
}

/* ========================= */
/* PAGE TITLE CONTAINER */
/* ========================= */

.sources-header {
  width: 100%;
  max-width: 1200px;

  text-align: center;

  margin-bottom: 40px;
}

.sources-header h1 {
  font-size: 2.2em;
  font-weight: 700;

  margin-bottom: 10px;

  background: linear-gradient(to right, #1e90ff, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sources-header p {
  font-size: 1.1em;
  color: #f1f1f1;
  opacity: 0.9;

  max-width: 700px;
  margin: 0 auto;
}

/* ========================= */
/* GRID CONTAINER */
/* ========================= */

.sources-grid {
  width: 100%;
  max-width: 1200px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ========================= */
/* CATEGORY CARD */
/* ========================= */

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 25px 15px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0,0,0,0.08);

  text-decoration: none;

  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;

  transform: translateZ(0);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);

  background: #f0f8ff;
}

/* ========================= */
/* ICON */
/* ========================= */

.category-card .icon {
  font-size: 2.2em;
  margin-bottom: 10px;
}

/* ========================= */
/* TITLE */
/* ========================= */

.category-card .title {
  font-size: 1.1em;
  font-weight: 600;

  text-align: center;
  color: #222;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 768px) {

  main {
    padding: 15px;
  }

  .sources-header h1 {
    font-size: 1.8em;
  }

  .category-card {
    padding: 20px 10px;
  }

  .category-card .icon {
    font-size: 2em;
  }
}

@media (max-width: 480px) {

  main {
    padding: 12px;
  }

  .sources-page {
    padding: 20px 10px;
  }

  .sources-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
  }

  .category-card .title {
    font-size: 1em;
  }
}