/* =========================================================
   NEO·GEO SPIRIT - Accueil propre PC (1180px) & Mobile
   ========================================================= */

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 20px 12px 40px;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #e2e8f0;
  background: radial-gradient(circle at top, #0c2330 0%, #070a10 55%, #05070b 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #22d3ee;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* Conteneur global PC */
.site-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 1180px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(180deg, #0b1922 0%, #090e16 35%, #080b11 100%);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 6px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.88), 0 0 22px rgba(6, 182, 212, 0.14);
}

.home-column {
  flex: 1 1 auto;
  min-width: 0;
}

/* Bannière en haut de l'accueil */
.site-banner {
  margin-bottom: 20px;
  padding: 12px;
  background: linear-gradient(180deg, #0f2633 0%, #0a121d 100%);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 14px rgba(6, 182, 212, 0.12);
}

.site-banner img {
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

/* Fil des mises à jour */
.updates-feed {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.news-card {
  background: linear-gradient(180deg, #0d1624 0%, #090f19 100%);
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.news-header {
  padding: 11px 18px;
  background: linear-gradient(90deg, #05080d 0%, #0c3b4a 45%, #0e7490 75%, #071921 100%);
  border-bottom: 1px solid rgba(34, 211, 238, 0.42);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(165, 243, 252, 0.2);
}

.news-header h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 10px rgba(34, 211, 238, 0.3);
}

.news-content {
  padding: 18px 22px 20px;
}

.news-thumb {
  margin-bottom: 14px;
  text-align: center;
}

.news-thumb img {
  display: block;
  margin: 0 auto;
  border-radius: 5px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.news-thumb a:hover img {
  transform: scale(1.025);
  filter: brightness(1.06);
  border-color: rgba(34, 211, 238, 0.55);
}

.news-content p {
  margin: 12px 0;
  text-align: justify;
  font-size: 15.5px;
  line-height: 1.65;
  color: #e2e8f0;
}

.news-content a.news-link {
  color: #5eead4;
}

.news-content a.news-link:hover {
  color: #fbbf24;
}

.news-author {
  margin-top: 10px !important;
  text-align: left !important;
  font-weight: 600;
  color: #94a3b8 !important;
}

/* Boutons bas d'accueil */
.home-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.home-nav a img {
  display: block;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.home-nav a:hover img {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Barre latérale PC */
.sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 14px 10px;
  background: linear-gradient(180deg, #0d2430 0%, #09121d 45%, #070b12 100%);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 14px rgba(6, 182, 212, 0.12);
}

.random-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #081924 0%, #060d15 100%);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 6px;
}

.random-box::before {
  content: "Un test au hasard";
  display: inline-block;
  padding: 3px 10px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.35;
  color: #ffffff;
  background: rgba(5, 12, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
}

.random-box img {
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.social-box {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(90deg, #06131c 0%, #0d3645 50%, #06131c 100%);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 6px;
}

.social-box img {
  display: block;
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-menu a img {
  display: block;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.side-menu a:hover img {
  transform: translateX(4px);
  filter: brightness(1.08);
}

.subsites-box {
  width: 100%;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 211, 238, 0.28);
}

.subsites-box h2 {
  margin: 0 0 10px;
  padding: 6px 8px;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: linear-gradient(90deg, #05090f 0%, #0d4558 50%, #05090f 100%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 4px;
}

.subsites-banners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   MOBILE & TABLETTE (<= 960px)
   ========================================================= */
@media screen and (max-width: 960px) {
  body {
    padding: 8px 6px 24px;
    font-size: 14.5px;
    line-height: 1.45;
    background: #090b10;
  }

  .site-shell {
    flex-direction: column;
    gap: 14px;
    padding: 8px;
    border-radius: 4px;
    background: #0d1017;
    box-shadow: none;
  }

  .home-column {
    display: contents;
  }

  .site-banner {
    order: 1;
    width: 100%;
    margin-bottom: 0;
    padding: 8px;
  }

  .sidebar {
    order: 2;
    flex: none;
    width: 100%;
    gap: 0;
    padding: 8px;
    background: linear-gradient(180deg, #0c1d28 0%, #080e17 100%);
    box-shadow: none;
  }

  .random-box,
  .social-box,
  .subsites-box {
    display: none;
  }

  .side-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .side-menu a {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .side-menu a img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .side-menu a:hover img {
    transform: none;
  }

  .updates-feed {
    order: 3;
    width: 100%;
    gap: 14px;
  }

  .news-header {
    padding: 9px 12px;
  }

  .news-header h2 {
    font-size: 16.5px;
  }

  .news-content {
    padding: 12px;
  }

  .news-content p {
    margin: 10px 0;
    font-size: 14.5px;
    line-height: 1.45;
    text-align: left;
  }

  .home-nav {
    order: 4;
    width: 100%;
    margin-top: 4px;
  }
}