.teams-section,
.results-section,
.hero-section {
  scroll-margin-top: 90px;
}

/* === HERO === */
.hero-section {
  padding: 1rem;
  background: linear-gradient(to bottom, #0f0f0f8a, #1a1a1a8a);
}

.hero-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-left {
  flex: 1 1 50%;
  min-width: 320px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.3;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-norsen {
  color: var(--color-accent);
  font-size: 1.2em;
  letter-spacing: 1px;
}

.hero-slogan {
  display: block;
  color: #ffffff;
  margin-top: 0.5rem;
  font-weight: 600;
}

.hero-description {
  color: #cccccc;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-right {
  flex: 1 1 45%;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.hero-image-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  z-index: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-color: #ffffff;
  border-radius: 20px;
  filter: blur(60px);
  opacity: 0.15;
  animation: glow-fade 2.5s infinite ease-in-out;
  z-index: 1;
}

@keyframes glow-fade {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.25; }
}

@media (max-width: 1024px) {
  .hero-wrapper { flex-direction: column; }
  .hero-title, .hero-description { text-align: center; }
  .hero-left { text-align: center; }
}


/* === TEAMS === */
.teams-section {
  padding: 4rem 1rem;
  color: var(--color-text);
  text-align: center;
}

.teams-container {
  max-width: 1600px;
  margin: 0 auto;
}

.teams-header {
  text-align: center;
  margin-bottom: 4rem;
}

.teams-title {
  font-size: 2.5rem;
  font-weight: bold;
}

.teams-divider {
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 1rem auto;
  border-radius: 2px;
}

.teams-subtitle {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.teams-grid {
  display: inline-flex;
  gap: 2rem;
  border-radius: 30px;
}

.team-card {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 30em;
  transition: transform 0.3s ease;
  background-size: cover;
  background-position: center;
  background-image: url('../img/team_tag.png');
}

.team-card:hover {
  transform: scale(1.015);
}

.team-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-header {
  margin-bottom: 1rem;
}

.team-header h3 {
  font-size: 1.4rem;
  font-weight: bold;
}

.team-badge-img {
  width: 5em;
}

.team-description {
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.team-roster {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.team-roster h4 {
  color: var(--color-accent);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.team-roster ul {
  list-style: none;
  padding: 0;
  display: inline-block;
}

.team-roster li {
  display: flex;
  align-items: center;
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.team-roster li span {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-right: 10px;
}


/* === RESULTS === */
.results-section {
  padding: 2rem;
  color: var(--color-text);
}

.results-container {
  max-width: 1600px;
  margin: 0 auto;
}

.results-header {
  text-align: center;
  margin-bottom: 4rem;
}

.results-title {
  font-size: 2.5rem;
  font-weight: bold;
}

.results-divider {
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 1rem auto;
  border-radius: 2px;
}

.results-subtitle {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Scroll vertical et centrage */
.results-table-container {
  display: flex;
  justify-content: center;
}

.results-scroll {
  max-height: calc(56px * 5); /* 5 lignes visibles */
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 8px;
}

/* Table stylée */
.results-table {
  min-width: 60%;
  border-collapse: collapse;
  background-color: #1c1c1c;
  border-radius: 12px;
}

/* Sticky header */
.results-table thead {
  background-color: #2a2a2a;
  color: var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Cellules */
.results-table th,
.results-table td {
  padding: 1rem 3rem;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
  height: 56px;
}

/* Hover sur ligne */
.results-table tbody tr {
  border-top: 1px solid #333;
  transition: background-color 0.2s ease;
}

.results-table tbody tr:hover {
  background-color: #2f2f2f;
}

/* Couleurs de résultat */
.result-victory {
  color: #4ade80;
  font-weight: bold;
}

.result-defeat {
  color: #f87171;
  font-weight: bold;
}

/* Bouton */
.results-button {
  display: inline-block;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.results-button:hover {
  background-color: rgba(165, 207, 231, 0.1);
}


/* === STAFF === */
.staff-section {
  margin-bottom: 3rem;
  text-align: center;
}

.staff-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 3rem;
}

.staff-grid {
  text-align: center;
  gap: 2rem;
}

.staff-card {
  width: 15%;
  min-width: 100px;
  height: 27em;
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: inline-block;
  margin: 2%;
}

.staff-card:hover {
  transform: scale(1.02);
}

.staff-card img {
  width: -webkit-fill-available;
  object-fit: cover;
  max-width: 80%;
}

.staff-info {
  padding: 1.5rem;
}

.staff-info h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

.staff-role {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.staff-bio {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}




/* === TABLETTE (≤1024px) === */
@media (max-width: 1024px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-left,
  .hero-right {
    flex: 1 1 100%;
    min-width: auto;
  }
  .hero-title { font-size: 3rem; }
  .hero-description { font-size: 1rem; }

  .teams-grid {
    flex-wrap: wrap;
    justify-content: center;
  }
  .team-card { max-width: 90%; }

  .results-table th,
  .results-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

}

/* === MOBILE (≤998px) === */
@media (max-width: 998px) {
  .hero-section { padding: 4rem 2rem; }
  .hero-title { font-size: 2.2rem; line-height: 1.2; }
  .hero-description { font-size: 0.95rem; line-height: 1.5; }

  .teams-section { padding: 2rem 1rem; }
  .teams-title { font-size: 1.8rem; }
  .team-card { max-width: 100%; margin-bottom: 1.5rem; }

  .results-title { font-size: 1.8rem; }
  .results-scroll { max-height: calc(56px * 3); }
  .results-table { font-size: 0.85rem; min-width: 100%; }

  .staff-card {
    width: 45%;
    height: auto;
    max-height: 30em;
    margin: 2% 5em;
    display: inline-block;
  }
}
