
/* === HEADER STARBORD (issu de model.css) === */

.header {
    background: rgba(15, 17, 22, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 1rem 3rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .header {
    padding: 0.7rem 1.2rem;
  }
}
@media (max-width: 600px) {
  .header {
    padding: 0.5rem 0.5rem;
  }
}



.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
}

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.header-nav {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0;
}
.header-login {
  flex: 0 0 auto;
}

.header-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin-left: 2rem;
}
.header-link {
  color: #7fd6ff;
  font-size: 1.18rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.1rem 0.2rem;
  border-radius: 0.5rem;
  transition: color 0.18s, background 0.18s;
  position: relative;
}
.header-link:hover {
  color: #fff;
  background: rgba(80, 140, 255, 0.18);
}

.header-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.6px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Tintin', Arial, sans-serif !important;

}

.spacer {
  flex: 1;
}


.header-login {
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(120, 170, 255, 0.25);
  color: #a9c7ff;
  background: rgba(80, 140, 255, 0.08);
  backdrop-filter: blur(6px);
  transition: var(--transition);
}

.login-btn:hover {
  color: #ffffff;
  background: rgba(80, 140, 255, 0.18);
  border-color: rgba(150, 190, 255, 0.6);
  box-shadow: 0 0 12px rgba(80, 140, 255, 0.35);
}

@media (max-width: 900px) {
  .header-inner {
    gap: 4px;
  }
  .logo {
    font-size: 17px;
  }
  .user-info {
    min-height: 38px;
    padding: 0.3rem 0.5rem;
    gap: 0.7rem;
  }
  .profile-pic {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .user-name {
    font-size: 0.97rem;
    min-width: 80px;
    height: 32px;
  }
  .profile-btn, .login-btn {
    font-size: 12px;
    padding: 5px 10px;
  }
}



@media (max-width: 600px) {
  .site-header {
    padding: 0.5rem 0.2rem;
  }
  .container {
    padding: 0 2px;
  }
  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }
  .logo {
    font-size: 15px;
    text-align: left;
    margin-bottom: 0;
    order: 1;
  }
  .spacer {
    order: 2;
  }
  .user-info, .login-btn {
    order: 3;
    margin-left: auto;
  }
  .search {
    margin: 0.5rem 0 0.5rem 0;
    order: 4;
    width: 100%;
  }
  .user-info {
    flex-direction: row;
    justify-content: flex-end;
    min-height: 32px;
    padding: 0.2rem 0.2rem;
    gap: 0.4rem;
  }
  .profile-pic {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
  }
  .user-name {
    font-size: 0.9rem;
    min-width: 60px;
    height: 26px;
  }
  .profile-btn, .login-btn {
    font-size: 11px;
    padding: 4px 7px;
  }
}



.user-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  min-height: 48px;
}
.profile-pic {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 8px rgba(80,140,255,0.12);
}
.user-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 100px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.profile-btn {
  background: rgba(80, 140, 255, 0.08);
  color: #a9c7ff;
  border: 1px solid rgba(120, 170, 255, 0.25);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 16px;
  margin-left: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.profile-btn:hover {
  color: #fff;
  background: rgba(80, 140, 255, 0.18);
  border-color: rgba(150, 190, 255, 0.6);
  box-shadow: 0 0 12px rgba(80, 140, 255, 0.35);
}

.header-user {
  color: var(--primary);
  font-family: 'Tintin', Arial, sans-serif !important;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0rem 1rem;
}

@media screen and (max-width: 600px) {
  .header {
    padding: 1rem 1rem;
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    word-break: break-word;
    white-space: normal;
  }

  .header-logo, .header-user, .header-profil {
    max-width: 95vw;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .header-user {
    font-size: 1rem;
    padding: none;
    font-size: small !important;
  }
  .header-profil {
    font-size: 0.8rem !important;
    padding: 0.2rem 0.8rem;
  }
}

.header-profil {
  color: #a9c7ff;
  background-color: rgba(80, 140, 255, 0.08);
  border: 1.5px solid #7fd6ff;
  border-radius: 999px;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 0.2rem 1rem;
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
}
.header-profil:hover {
  background: #3e4a5d;
  color: #fff;
  border-color: #fff;
}
